:root { --bg:#0e1014; --card:#171a20; --card2:#0e1014; --line:#2a2e36; --text:#ecedef; --muted:#a3a8b2;
  --gold:#e2b54a; --gold-bg:#221d10; --ok:#6fd59a; --ok-bg:#16241b; --bad:#ff8a8a; --bad-bg:#3a1a1c; --warn:#e8c06a; }
* { box-sizing:border-box; }
body { margin:0; padding:18px 14px 48px; background:var(--bg); color:var(--text);
  font-family:-apple-system, "Segoe UI", Inter, Arial, sans-serif; line-height:1.5; }
main { max-width:560px; margin:0 auto; }
h1 { font-size:24px; margin:6px 0 14px; } h1 span, .logo span { color:var(--gold); }
h2 { font-size:16px; margin:0 0 10px; }
p { color:var(--muted); font-size:14px; margin:6px 0 10px; }
.m { color:var(--muted); font-size:13px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:16px; margin-bottom:14px; }
.card.warn { border-color:#5a4a1e; } .card.warn strong { color:var(--warn); }
button { width:100%; padding:13px; border:0; border-radius:12px; background:var(--gold); color:#14120b; font-size:16px;
  font-weight:700; margin-top:8px; cursor:pointer; font-family:inherit; min-height:44px; }
button.light { background:transparent; border:1px solid var(--line); color:var(--text); }
button.small { width:auto; padding:9px 14px; font-size:14px; }
button:disabled { opacity:.45; cursor:default; }
input[type=text] { width:100%; padding:12px; background:var(--card2); color:var(--text); border:1px solid #3a3f49;
  border-radius:10px; font-size:16px; margin-top:6px; min-height:44px; }
label { font-size:14px; }
label.kuti { display:flex; gap:10px; align-items:flex-start; margin:12px 0 4px; }
label.kuti input { margin-top:4px; width:18px; height:18px; flex:none; accent-color:var(--gold); }
ul.plain { color:var(--muted); font-size:14px; padding-left:20px; margin:8px 0; }
.status { min-height:20px; font-size:14px; margin-top:10px; color:var(--muted); white-space:pre-wrap; }
.status.ok { color:var(--ok); } .status.err { color:var(--bad); }
.chip { display:inline-block; white-space:nowrap; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:600;
  border:1px solid var(--line); color:var(--muted); }
.chip.ok { color:var(--ok); background:var(--ok-bg); border-color:transparent; }
.chip.bad { color:var(--bad); border-color:#5a2a2c; } .chip.warn { color:var(--warn); border-color:#5a4a1e; }
.fit { color:var(--ok); } .hum { color:var(--bad); }
.bosh { color:var(--muted); font-size:14px; }
[hidden] { display:none !important; }

.koka { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:4px 2px 14px; }
.logo { font-size:22px; font-weight:800; letter-spacing:.3px; }
.koka-djathtas { display:flex; align-items:center; gap:8px; }
a.tg-buton { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex:none;
  border-radius:50%; border:1px solid var(--line); color:var(--gold); text-decoration:none; }
a.tg-buton:hover, a.tg-buton:focus-visible { border-color:var(--gold); background:rgba(226,181,74,.08); }

/* sinjali */
.sinjal { border-color:#3a3f49; }
.sinjal.skaduar { opacity:.75; }
.s-koka { display:flex; justify-content:space-between; align-items:center; }
.s-ane { font-weight:800; font-size:15px; letter-spacing:1px; padding:6px 12px; border-radius:8px; }
.s-shitje { background:var(--bad-bg); color:var(--bad); } .s-blerje { background:var(--ok-bg); color:var(--ok); }
.s-koha { display:flex; flex-direction:column; align-items:flex-end; }
.s-numeruesi { font-size:24px; font-weight:800; color:var(--gold); font-variant-numeric:tabular-nums; }
.skaduar .s-numeruesi { color:var(--muted); font-size:18px; }
.s-shirit { height:4px; background:var(--line); border-radius:2px; overflow:hidden; margin:12px 0; }
.s-mbush { height:4px; background:var(--gold); width:100%; transition:width 1s linear; }
.s-eti { text-transform:uppercase; letter-spacing:1px; font-size:12px; }
.s-zona { font-size:34px; font-weight:800; font-variant-numeric:tabular-nums; line-height:1.2; }
.skaduar .s-zona { text-decoration:line-through; text-decoration-thickness:2px; color:var(--muted); }
.s-cmimi { font-size:13px; margin-top:2px; }
.s-nivelet { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin-top:12px; }
.s-niv { background:var(--card2); border-radius:12px; padding:10px; display:flex; flex-direction:column; gap:2px; }
.s-niv-emri { font-size:12px; font-weight:700; } .k-sl .s-niv-emri { color:var(--bad); } .k-tp .s-niv-emri { color:var(--ok); }
.s-niv-vlera { font-size:16px; font-weight:800; font-variant-numeric:tabular-nums; }
.s-niv .m { font-size:11px; }
button.kopjo { margin-top:6px; padding:8px 6px; font-size:13px; min-height:36px; background:transparent; color:var(--text);
  border:1px solid #3a3f49; border-radius:10px; font-weight:700; }
button.kopjo:active { transform:scale(.97); }
button.kopjo-gjitha { border-style:dashed; width:100%; }
.s-loti { display:flex; justify-content:space-between; align-items:center; gap:10px; background:var(--gold-bg); border-radius:12px; padding:12px 14px; margin-top:10px; }
.s-loti-eti { color:#c9b57e; font-size:13px; font-weight:600; }
.s-loti-djathtas { display:flex; align-items:center; gap:10px; }
.s-loti-djathtas button.kopjo { width:auto; margin:0; padding:8px 12px; }
.s-loti-vlera { font-size:24px; font-weight:800; color:var(--gold); white-space:nowrap; }
.s-kujdes { margin-top:10px; padding:10px 12px; border-radius:10px; background:#2a1b12; border:1px solid #5a3a1e; color:#ffc58a; font-size:13px; }
.s-gjendja { margin-top:12px; border-top:1px solid var(--line); padding-top:8px; }
.s-pj { display:flex; justify-content:space-between; font-size:14px; padding:4px 0; }
.s-udhezim { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:8px; padding:12px; border-radius:12px;
  background:var(--ok-bg); color:var(--ok); }
.s-udhezim button.kopjo { width:auto; margin:0; color:var(--ok); border-color:#2f5a3d; }
.s-ora { margin-top:10px; font-size:12px; }
.bosh-sinjal { text-align:center; padding:22px 16px; }
.bosh-titull { font-size:18px; font-weight:700; }

/* grafiku */
.rrjesht-koka { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.rrjesht-koka h2 { margin:0; }
.zoomet { display:flex; gap:4px; background:var(--card2); border-radius:10px; padding:3px; }
.zoomet .zoom { width:auto; margin:0; min-height:32px; padding:6px 10px; font-size:12px; background:transparent; color:var(--muted); border-radius:8px; }
.zoomet .zoom.aktiv { background:var(--gold); color:#14120b; }
.grafik { width:100%; height:auto; display:block; background:var(--card2); border-radius:10px; }
.grafik .gr-rrjet { stroke:#1e2329; stroke-width:1; }
.grafik .gr-tekst { fill:var(--muted); font-size:10px; }
.grafik .gr-lart { stroke:#26a69a; fill:#26a69a; } .grafik .gr-posht { stroke:#ef5350; fill:#ef5350; }
.grafik .gr-zona { fill:#e2b54a; fill-opacity:.35; } .grafik .gr-zona.skaduar { fill:#8a8f99; fill-opacity:.25; }
.grafik .gr-sl { stroke:#ff8a8a; stroke-width:1.5; } .grafik .gr-tp { stroke:#6fd59a; stroke-width:1.5; }
.grafik .gr-eti { font-size:11px; font-weight:700; } .grafik .gr-sl-t { fill:#ff8a8a; } .grafik .gr-tp-t { fill:#6fd59a; }
.grafik .gr-cmimi-bg { fill:#e2b54a; } .grafik .gr-cmimi-t { fill:#14120b; font-size:11px; font-weight:800; }
.legjenda { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:12px; color:var(--muted); margin-top:8px; }
.legjenda span { display:inline-flex; align-items:center; gap:6px; }
.legjenda i { display:inline-block; width:14px; }
.lg-zona { height:9px; background:rgba(226,181,74,.6); border-radius:2px; }
.lg-sl { border-top:2px dashed #ff8a8a; } .lg-tp { border-top:2px dashed #6fd59a; }

.hapat { margin:0; padding-left:20px; font-size:14px; line-height:1.55; } .hapat li + li { margin-top:8px; }

/* historiku */
.rrjet3 { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.tile { background:var(--card2); border-radius:12px; padding:10px 12px; }
.tile-v { font-size:20px; font-weight:800; }
.h-rresht { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--line); }
.h-ane { font-size:11px; font-weight:800; padding:4px 8px; border-radius:6px; width:62px; text-align:center; flex:none; }
.h-mes { flex:1; min-width:0; } .h-mes .tit { font-size:14px; font-weight:600; }
.h-fitimi { font-weight:800; white-space:nowrap; }

/* llogaria */
.rresht-input { display:flex; gap:8px; align-items:center; }
.rresht-input input { margin-top:0; } .rresht-input button { width:auto; margin-top:0; padding:12px 18px; }
.loti-kuti { margin-top:12px; }
.loti-rresht { display:flex; justify-content:space-between; align-items:center; background:var(--gold-bg); border-radius:12px; padding:12px 14px; margin-bottom:8px; }
.loti-madh { font-size:22px; font-weight:800; color:var(--gold); }

.toast { position:fixed; left:50%; bottom:calc(24px + env(safe-area-inset-bottom)); transform:translate(-50%, 20px); opacity:0; pointer-events:none;
  background:#ecedef; color:#14120b; padding:10px 16px; border-radius:999px; font-size:14px; font-weight:700; transition:opacity .2s, transform .2s;
  z-index:50; max-width:90vw; text-align:center; }
.toast.shfaq { opacity:1; transform:translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .s-mbush, .toast { transition:none; } }
