/* Veder: tuleviku kiht. Klaaskaardid, valgusega servad, HUD-näidud, kompaktne ülevaade.
   Laetakse pärast app.css-i; taustapildirežiim (body.wallpaper) jääb vanaviisi, kus kujundus erineb. */
:root{
  --fx-a:#7cd4ff; --fx-b:#a78bfa; --fx-c:#5eead4;
  --card:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  --card-brd:rgba(255,255,255,.075);
  --card-hi:inset 0 1px 0 rgba(255,255,255,.06);
  --cap:10.5px;
}
:root[data-theme="night"]{--card:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); --card-brd:rgba(255,255,255,.07)}

/* ---------- üldine: taust, kaardid, kerimisribad ---------- */
body{background:
  radial-gradient(1100px 520px at 8% -12%, rgba(124,212,255,.07), transparent 60%),
  radial-gradient(900px 480px at 105% 0%, rgba(167,139,250,.06), transparent 60%), var(--bg)}
*{scrollbar-width:thin; scrollbar-color:rgba(159,208,228,.18) transparent}
::-webkit-scrollbar{width:8px; height:8px} ::-webkit-scrollbar-thumb{background:rgba(159,208,228,.16); border-radius:8px} ::-webkit-scrollbar-track{background:transparent}
::selection{background:rgba(124,212,255,.3)}
.panel{background:var(--card), var(--bg-2); border-color:var(--card-brd); border-radius:16px; box-shadow:var(--card-hi), 0 12px 32px -18px rgba(0,0,0,.6)}
.cap,.kt-l,.ov-now .rp-sum{font-size:var(--cap); text-transform:uppercase; letter-spacing:.09em; font-weight:600}
:focus-visible{outline:2px solid var(--fx-a); outline-offset:2px; box-shadow:0 0 0 4px rgba(124,212,255,.18)}

/* ülariba: klaas + valgusjoon */
@media (min-width:701px){
  .topbar{background:color-mix(in srgb, var(--bg-2) 82%, transparent); backdrop-filter:blur(14px) saturate(1.2); position:relative; border-bottom-color:transparent}
  .topbar::after{content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; pointer-events:none;
    background:linear-gradient(90deg, transparent, rgba(124,212,255,.35) 30%, rgba(167,139,250,.3) 70%, transparent)}
  .tabs button{position:relative; border-bottom-color:transparent!important; transition:color .2s}
  .tabs button::after{content:""; position:absolute; left:12px; right:12px; bottom:0; height:2px; border-radius:2px; opacity:0; transform:scaleX(.4);
    background:linear-gradient(90deg, var(--fx-a), var(--fx-b)); box-shadow:0 0 12px rgba(124,212,255,.55); transition:opacity .25s, transform .25s}
  .tabs button[aria-selected="true"]::after{opacity:1; transform:none}
}
@media (max-width:700px){
  .tabs{background:color-mix(in srgb, var(--bg-2) 78%, transparent); backdrop-filter:blur(16px) saturate(1.3); border-top-color:rgba(255,255,255,.06)}
  .tabs button[aria-selected="true"]{border-top-color:transparent; color:var(--ink); position:relative}
  .tabs button[aria-selected="true"]::before{content:""; position:absolute; top:0; left:28%; right:28%; height:2px; border-radius:0 0 2px 2px;
    background:linear-gradient(90deg, var(--fx-a), var(--fx-b)); box-shadow:0 0 10px rgba(124,212,255,.6)}
  .tabs button[aria-selected="true"] .tab-ic{filter:drop-shadow(0 0 6px rgba(124,212,255,.5)); stroke:var(--fx-a)}
}

/* alamvaated ja lülitid: pillid */
.subtabs{border:1px solid var(--card-brd); border-radius:999px; padding:3px; background:rgba(255,255,255,.025); gap:2px; align-items:center}
.subtabs button{border-radius:999px; transition:background .2s, color .2s}
.subtabs button.on{background:linear-gradient(135deg, rgba(124,212,255,.22), rgba(167,139,250,.18)); color:var(--ink); box-shadow:inset 0 0 0 1px rgba(124,212,255,.28)}
.subtabs .st-sec{padding:0 4px 0 10px}
.seg{border-color:var(--card-brd); border-radius:999px}
.seg button.on{background:rgba(124,212,255,.16); color:var(--ink)}

/* ---------- ÜLEVAADE: vasak veerg ---------- */
body:not(.wallpaper) .ov-now{padding:14px 16px 16px; gap:10px; overflow-y:auto; overscroll-behavior:contain; container-type:inline-size; scrollbar-width:none}
body:not(.wallpaper) .ov-now::-webkit-scrollbar{display:none}
body:not(.wallpaper) .ov-now > *{flex-shrink:0}

/* hero: temperatuur, olek, kokkuvõte, allikas ühel klaaskaardil */
body:not(.wallpaper) .now.hero{display:grid; grid-template-columns:minmax(0,1fr) auto auto; grid-template-areas:"main main main" "sum sum sum" "src rep conf";
  align-items:center; text-align:left; gap:0 8px; min-height:0; padding:14px 16px 12px; border-radius:20px; border:0;
  background:
    radial-gradient(120% 95% at 0% 0%, color-mix(in srgb, var(--tglow,#284156) 30%, transparent), transparent 62%),
    radial-gradient(90% 90% at 100% 100%, rgba(124,212,255,.09), transparent 60%), var(--card);
  box-shadow:var(--card-hi), 0 18px 40px -22px color-mix(in srgb, var(--tglow,#000) 60%, #000)}
body:not(.wallpaper) .now.hero::after{content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; pointer-events:none; z-index:2;
  background:linear-gradient(140deg, color-mix(in srgb, var(--tglow,#7cd4ff) 75%, transparent), rgba(255,255,255,.05) 38%, rgba(255,255,255,.04) 62%, rgba(124,212,255,.35));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude}
body:not(.wallpaper) .now.hero .wx-fx{opacity:.55}
body:not(.wallpaper) .now-main{grid-area:main; display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0}
body:not(.wallpaper) .now-temp{font-size:clamp(56px, 5vw, 88px); line-height:.86; letter-spacing:-.035em; font-weight:720; font-stretch:64%; text-shadow:none;
  background:linear-gradient(175deg, #fff 8%, color-mix(in srgb, var(--tcol,#fff) 88%, #fff) 52%, var(--tcol,#9fd0e4) 100%); -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 0 22px color-mix(in srgb, var(--tcol,#fff) 32%, transparent)); white-space:nowrap}
body:not(.wallpaper) .now-temp sup{-webkit-text-fill-color:var(--muted); color:var(--muted); font-size:.3em; top:.32em; font-weight:500; letter-spacing:0}
body:not(.wallpaper) .now-cond{display:flex; flex-direction:column; align-items:flex-end; text-align:right; min-width:0; gap:1px}
body:not(.wallpaper) .now-icon svg{width:50px; height:50px; filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}
body:not(.wallpaper) .now-phen{font-size:14.5px; font-weight:600; margin:0; font-stretch:90%; line-height:1.2}
body:not(.wallpaper) .now-feels{font-size:12px; color:var(--muted); line-height:1.3}
body:not(.wallpaper) .ov-now .ov-summary{grid-area:sum; margin:10px 0 0; padding:9px 0 0; border-top:1px solid rgba(255,255,255,.06); font-size:13.5px; line-height:1.45;
  color:color-mix(in srgb, var(--ink) 90%, transparent); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; cursor:pointer}
body:not(.wallpaper) .ov-now .ov-summary.open{-webkit-line-clamp:unset; display:block}
body:not(.wallpaper) .now.hero .now-source{grid-area:src; margin-top:8px; font-size:10.5px; color:var(--faint); opacity:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0}
body:not(.wallpaper) .ov-now .conf-chip{grid-area:conf; margin-top:8px; align-self:center; display:inline-flex; align-items:center; gap:5px; padding:2px 9px 2px 3px; border-radius:999px;
  border:1px solid var(--card-brd); background:rgba(255,255,255,.03); cursor:pointer}
body:not(.wallpaper) .ov-now .conf-chip svg{width:20px; height:20px}
body:not(.wallpaper) .ov-now .conf-chip b{font-size:11px; font-weight:550; color:var(--muted); white-space:nowrap}
.conf-dial text{font-size:12px}
.hero-rep{grid-area:rep; margin-top:8px; display:inline-flex; align-items:center; gap:4px; padding:2px 9px 2px 6px; border-radius:999px; border:1px solid var(--card-brd);
  background:rgba(255,255,255,.03); color:var(--muted); font-size:11px; cursor:pointer; white-space:nowrap; transition:color .2s, border-color .2s}
.hero-rep svg{width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2}
.hero-rep:hover{color:var(--ink); border-color:rgba(124,212,255,.4)}
.hero-rep.has{color:var(--fx-a)}

/* HUD-näidud */
body:not(.wallpaper) .key-tiles{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; border:0}
body:not(.wallpaper) .key-tiles:empty{display:none}
body:not(.wallpaper) .kt{padding:8px 9px 7px; border:1px solid var(--card-brd); border-radius:13px; background:var(--card); box-shadow:var(--card-hi); min-width:0; position:relative; overflow:hidden}
body:not(.wallpaper) .kt-l{font-size:9.5px; color:var(--muted); letter-spacing:.1em}
body:not(.wallpaper) .kt-v{font-size:20px; font-weight:680; font-stretch:72%; gap:2px; margin-top:3px; align-items:center; flex-wrap:nowrap; line-height:1.05}
body:not(.wallpaper) .kt-v small{display:none}
.kt-u{display:none; text-transform:none; letter-spacing:0; font-weight:500; opacity:.75}
body:not(.wallpaper) .kt-u{display:inline}
.kt-s{font-size:10.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px}
.kt-ar{width:13px; height:13px; flex:none; fill:var(--fx-a); transform:rotate(var(--r,0deg)); transition:transform 1.2s cubic-bezier(.3,1.3,.5,1); margin-right:2px; filter:drop-shadow(0 0 4px rgba(124,212,255,.6))}
.kt-bar{display:block; height:3px; border-radius:3px; background:rgba(255,255,255,.07); margin-top:6px; overflow:hidden}
.kt-bar i{display:block; height:100%; border-radius:3px; background:linear-gradient(90deg, var(--fx-c), var(--fx-a))}
.kt.down-fast .kt-s{color:var(--w-orange)}
body:not(.wallpaper) :is(.kt-wind,.kt-press,.kt-hum,.kt-water)::before{content:""; position:absolute; right:-14px; top:-14px; width:42px; height:42px; border-radius:50%; opacity:.18; filter:blur(10px)}
body:not(.wallpaper) .kt-wind::before{background:var(--fx-a)} body:not(.wallpaper) .kt-press::before{background:var(--fx-b)} body:not(.wallpaper) .kt-hum::before{background:var(--fx-c)} body:not(.wallpaper) .kt-water::before{background:#60a5fa}
@container (max-width:290px){ body:not(.wallpaper) .key-tiles{grid-template-columns:1fr 1fr} }

/* tubane näit: õhuke rida */
body:not(.wallpaper) .ov-indoor{border:0; padding:5px 11px; border-radius:10px; background:rgba(255,255,255,.025); font-size:12px; gap:8px; align-items:center}
body:not(.wallpaper) .ov-indoor::before{content:"⌂"; font-size:14px; color:var(--muted)}
body:not(.wallpaper) .ov-indoor b{font-size:14px}

/* vihmataimer: kompaktne */
body:not(.wallpaper) .rain-timer{position:relative; padding:9px 12px 9px; border-radius:15px; border-color:var(--card-brd); background:var(--card)}
body:not(.wallpaper) .rain-timer.st-near{border-color:rgba(61,143,224,.55); background:linear-gradient(135deg, rgba(61,143,224,.18), rgba(61,143,224,.04))}
body:not(.wallpaper) .rain-timer.st-soon,body:not(.wallpaper) .rain-timer.st-rain{border-color:rgba(96,165,250,.75); background:linear-gradient(135deg, rgba(61,143,224,.28), rgba(61,143,224,.06));
  box-shadow:0 0 0 1px rgba(124,192,240,.12), 0 0 26px -6px rgba(61,143,224,.45)}
body:not(.wallpaper) .rt-row{gap:10px; padding-right:22px}
body:not(.wallpaper) .rt-umb{width:30px; height:30px}
body:not(.wallpaper) .rt-txt b{font-size:13.5px; font-weight:620}
body:not(.wallpaper) .rt-txt small{font-size:11.5px}
body:not(.wallpaper) .rt-big span{font-size:28px}
body:not(.wallpaper) .rt-big small{font-size:11px}
body:not(.wallpaper) .rt-rib{height:9px; margin-top:8px; border-radius:5px}
body:not(.wallpaper) .rt-ticks{display:none}
body:not(.wallpaper) .rt-more{position:absolute; top:7px; right:7px; margin:0; width:24px; height:24px; padding:0; border-radius:50%; font-size:0; color:var(--muted)}
body:not(.wallpaper) .rt-more::after{content:"▾"; font-size:13px; display:inline-block; transition:transform .2s}
body:not(.wallpaper) .rt-more[aria-expanded="true"]::after{transform:rotate(180deg)}
body:not(.wallpaper) .rt-more:hover{background:rgba(255,255,255,.06); text-decoration:none; color:var(--ink)}
body:not(.wallpaper) .nowcast{border-radius:14px}

/* riietus: üks rida, klõpsuga lahti */
body:not(.wallpaper) .ov-clothes{display:block; padding:0; border:0; background:none}
.oc-line{display:flex; align-items:center; gap:9px; width:100%; padding:7px 10px; border-radius:13px; border:1px solid var(--card-brd); background:var(--card);
  text-align:left; cursor:pointer; font-size:13px; color:var(--ink)}
.oc-line:hover{border-color:rgba(124,212,255,.3)}
.oc-ic{font-size:17px; line-height:1}
.oc-main{flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.oc-main b{font-size:var(--cap); text-transform:uppercase; letter-spacing:.09em; color:var(--muted); font-weight:600; margin-right:5px}
.oc-tags{display:flex; gap:7px; font-size:12px; color:var(--fx-a); white-space:nowrap}
.oc-chev::after{content:"▾"; color:var(--muted); font-size:12px; display:inline-block; transition:transform .2s}
.oc-line[aria-expanded="true"] .oc-chev::after{transform:rotate(180deg)}
.oc-more{font-size:12px; color:var(--muted); padding:6px 12px 0; line-height:1.45}

/* Minu Veder: kiibirida */
body:not(.wallpaper) .ov-mine{display:flex; flex-wrap:nowrap; gap:6px; overflow-x:auto; scrollbar-width:none; margin:0; padding:1px}
.ov-mine::-webkit-scrollbar{display:none}
body:not(.wallpaper) .ov-mine button{flex:none; display:inline-flex; align-items:center; gap:5px; padding:5px 11px 5px 8px; border-radius:999px; font-size:12.5px;
  border:1px solid var(--card-brd); background:var(--card); color:var(--ink); white-space:nowrap}
body:not(.wallpaper) .ov-mine button:hover{border-color:rgba(124,212,255,.4); background:rgba(124,212,255,.08)}
.ov-mine button i{font-style:normal; font-size:13px}
.ov-mine button.lk{opacity:.65}
body:not(.wallpaper) .ov-mine .om-edit{padding:5px 10px; color:var(--muted); font-size:13px}
body:not(.wallpaper) .ov-mine .om-first{width:auto; border-style:dashed; color:var(--muted); background:none}
.ov-mine .om-first i{color:var(--fx-b)}

/* hoiatused: klaas */
body:not(.wallpaper) .ov-now .warn{border-radius:0 12px 12px 0}

/* ilmateate hüpik */
.rep-pop{position:fixed; z-index:3000; width:min(340px, calc(100vw - 24px)); padding:12px 14px; border-radius:16px; border:1px solid rgba(124,212,255,.22);
  background:color-mix(in srgb, var(--bg-2) 90%, transparent); backdrop-filter:blur(18px) saturate(1.3); box-shadow:0 24px 60px -16px rgba(0,0,0,.7), var(--card-hi);
  animation:popIn .18s ease-out}
.rep-pop[hidden]{display:none}
@keyframes popIn{from{opacity:0; transform:translateY(-6px) scale(.98)} to{opacity:1; transform:none}}
.rp-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px}
.rp-head b{font-size:14px}
.rp-x{background:none; border:0; color:var(--muted); cursor:pointer; font-size:14px}
.rep-pop .rp-sum{margin:0 0 8px; color:var(--muted); font-size:12px}
.rep-pop .rp-chips{padding:0}
.rep-pop .hint{margin:10px 0 0; font-size:11.5px}
.rp-hide{background:none; border:0; padding:0; color:var(--ice); font-size:11.5px; cursor:pointer; text-decoration:underline; margin-left:4px}
@media (max-width:640px){ .rep-pop{left:12px; right:12px; bottom:calc(76px + env(safe-area-inset-bottom)); top:auto!important; width:auto} }

/* ---------- alumine riba: tunnid ja päevad ---------- */
body:not(.wallpaper) .ov-bottom{background:color-mix(in srgb, var(--bg-2) 92%, transparent); border-top-color:transparent; position:relative}
body:not(.wallpaper) .ov-bottom::before{content:""; position:absolute; left:0; right:0; top:-1px; height:1px; pointer-events:none;
  background:linear-gradient(90deg, rgba(124,212,255,.28), rgba(255,255,255,.06) 40%, rgba(167,139,250,.25))}
.hs{transition:background .2s}
.hs:hover{background:rgba(124,212,255,.06)}

/* kaardi juhtnupud: klaas */
.map-overlay .ly-btn,.map-bottom,.tm-bar,.lightning-sum,.map-legend{backdrop-filter:blur(12px) saturate(1.2)}

/* sisu ilmub sujuvalt */
@keyframes riseIn{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none}}
body[data-ready] .ov-now > :is(.now,.key-tiles,.rain-timer){animation:riseIn .45s cubic-bezier(.2,.8,.2,1) both}
body[data-ready] .ov-now > .key-tiles{animation-delay:.05s}
body[data-ready] .ov-now > .rain-timer{animation-delay:.1s}
@media (prefers-reduced-motion:reduce){ body[data-ready] .ov-now > *{animation:none} .kt-ar{transition:none} }

/* lennukid: sujuv liikumine sekundi kaupa, tõus/laskumine värviga */
.pl-mk{transition:transform 1s linear}
.leaflet-zoom-anim .pl-mk,.leaflet-dragging .pl-mk{transition:none}
.pl-vs.up{color:#7fe0a0} .pl-vs.dn{color:#f1cb4a}
.pl-now{display:block; color:var(--muted); font-size:11.5px; margin-top:3px; font-variant-numeric:tabular-nums}
.pl-tip .pl-live,[data-live]{font-variant-numeric:tabular-nums}
.pl-cd{font-variant-numeric:tabular-nums}
.pl-chip{display:flex; align-items:center; gap:9px; text-align:left; padding:7px 12px 7px 9px; border-radius:14px; border:1px solid rgba(241,203,74,.45);
  background:color-mix(in srgb, var(--bg-2) 80%, transparent); backdrop-filter:blur(12px); color:var(--ink); font-size:12.5px; cursor:pointer; pointer-events:auto;
  box-shadow:0 0 22px -6px rgba(241,203,74,.45)}
.pl-chip[hidden]{display:none}
.pl-chip-ic{font-size:18px; color:#f1cb4a}
.pl-chip small{display:block; color:var(--muted); font-size:11.5px; margin-top:1px; font-variant-numeric:tabular-nums}
.pl-chip .pl-cd{color:#f1cb4a}
.pl-now{color:color-mix(in srgb, var(--ink) 80%, transparent); font-size:12.5px}

/* taustapilt: ainult ilm, mitte nupud ega isiklikud otseteed */
body.wallpaper .ov-clothes,body.wallpaper .ov-mine,body.wallpaper .hero-rep,body.wallpaper .rep-pop,body.wallpaper .pl-chip{display:none!important}
body.wallpaper .ov-now > *{flex-shrink:0}
body.wallpaper .now-main{display:flex; align-items:center; justify-content:center; gap:14px}
body.wallpaper .now-cond{display:flex; flex-direction:column; align-items:flex-start; text-align:left}
body.wallpaper .now-cond .now-icon svg{width:44px; height:44px}
body.wallpaper .now.hero .ov-summary{margin-top:6px}
body.wallpaper .now-temp{font-size:76px}

/* paketi vihjed: ühtne, mitte murtud ridadeks */
.lock-tile{background:linear-gradient(135deg, rgba(167,139,250,.14), rgba(124,212,255,.06)); border-color:rgba(167,139,250,.5); transition:background .2s, box-shadow .2s}
.lock-tile:hover{box-shadow:0 0 22px -8px rgba(167,139,250,.7)}
.lock-tile.day{display:flex; flex-wrap:wrap; justify-content:center; align-items:baseline; gap:4px 10px; grid-template-columns:none; width:100%; margin-top:10px; padding:10px 14px; border-bottom-style:dashed}
.hour-strip > .hs:first-child{background:linear-gradient(180deg, rgba(124,212,255,.1), rgba(124,212,255,.02)); box-shadow:inset 0 0 0 1px rgba(124,212,255,.15); border-radius:10px}

/* alamvaated rühmadena: kõik nähtaval, rida murdub rühmade vahelt (ei tee lehte laiemaks) */
.subtabs{max-width:100%}
.subtabs.grouped{display:flex; flex-wrap:wrap; width:auto; gap:4px; padding:4px; border-radius:16px; background:rgba(255,255,255,.02)}
.subtabs.grouped .st-grp{display:inline-flex; align-items:center; flex-wrap:nowrap; gap:1px; padding:2px 3px 2px 2px; border-radius:12px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.04)}
.subtabs.grouped .st-sec{padding:0 6px 0 8px; font-size:9.5px; letter-spacing:.1em; color:var(--faint)}
.subtabs.grouped button{padding:5px 11px; white-space:nowrap}
@media (max-width:700px){
  .subtabs.grouped{flex-wrap:nowrap; overflow-x:auto; border-radius:14px}
  .subtabs.grouped .st-grp{flex:none}
}
.subtabs{position:relative}

/* ---------- kohandatav vaade ---------- */
.ly-off{display:none!important}
.ly-open{flex:none; display:inline-flex; align-items:center; gap:5px; margin-left:auto; padding:5px 12px!important; border-radius:999px; border:1px dashed var(--card-brd)!important;
  background:none; color:var(--muted); font-size:12.5px; cursor:pointer; white-space:nowrap}
.ly-open:hover{color:var(--ink); border-color:rgba(124,212,255,.45)!important}
section.tab > .ly-open{float:right; margin:0 0 8px 8px; position:relative; z-index:2}
.subtabs:not(.grouped) .ly-open{margin-left:8px}
body.ly-editing .ly-open{color:var(--fx-a); border-style:solid!important; border-color:rgba(124,212,255,.5)!important}
.ly-unit{position:relative; outline:1.5px dashed rgba(124,212,255,.45); outline-offset:3px; border-radius:inherit; transition:opacity .2s}
.ly-unit-off{opacity:.32; max-height:110px; overflow:hidden!important}
.ly-unit-off > .ly-tb{opacity:1}
.ly-tb{position:absolute; top:6px; right:6px; z-index:60; display:flex; align-items:center; gap:3px; padding:3px 3px 3px 10px; border-radius:999px;
  background:color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter:blur(10px); border:1px solid rgba(124,212,255,.35); box-shadow:0 8px 24px -10px rgba(0,0,0,.7);
  font-size:12px; color:var(--ink); max-width:calc(100% - 12px)}
.ly-tb .ly-nm{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-right:4px; font-weight:600}
.ly-tb button{border:0; background:rgba(255,255,255,.06); color:var(--ink); border-radius:999px; min-width:28px; height:26px; padding:0 8px; cursor:pointer; font-size:12px}
.ly-tb button:hover:not(:disabled){background:rgba(124,212,255,.2)}
.ly-tb button:disabled{opacity:.3; cursor:default}
.ly-tb button.off{background:rgba(124,212,255,.22); color:var(--fx-a)}
.ly-bar-fixed{position:fixed; left:50%; transform:translateX(-50%); bottom:18px; z-index:3000; display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:center;
  padding:9px 12px 9px 16px; border-radius:16px; border:1px solid rgba(124,212,255,.35); background:color-mix(in srgb, var(--bg-2) 90%, transparent);
  backdrop-filter:blur(16px); box-shadow:0 20px 50px -16px rgba(0,0,0,.75); font-size:13px; max-width:calc(100vw - 24px); animation:popIn .2s ease-out}
.ly-bar-fixed[hidden]{display:none}
.ly-bar-fixed .ghost{padding:5px 10px; font-size:12.5px}
@media (max-width:700px){ .ly-bar-fixed{bottom:calc(72px + env(safe-area-inset-bottom)); font-size:12px} .ly-open span{display:none} }
/* tühi riba (nt "prognoosi pole") ei tohi jääda kitsasse veergu */
:is([class*="timeline"],[class*="strip"],[class*="grid"],[class*="-row"],.days,.days5) > .hint:only-child{grid-column:1/-1; flex:1 1 100%; white-space:normal}
@media (max-width:700px){ .ly-bar-fixed .ly-help{display:none} .ly-bar-fixed{flex-wrap:nowrap; gap:8px; padding:8px 10px} }

/* meri ja rannad: kaart + valitud rand */
.beach-top{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important; align-items:stretch}
.beach-map{height:420px; border-radius:12px; overflow:hidden; background:var(--map-bg)}
.beach-top.flash .beach-sel{animation:bsFlash 1.1s ease-out}
@keyframes bsFlash{0%{box-shadow:0 0 0 2px rgba(124,212,255,.9), 0 0 40px rgba(124,212,255,.4)}100%{box-shadow:var(--card-hi)}}
.bm-ic{background:none; border:0}
.bm{display:inline-flex; flex-direction:column; align-items:center; transform:translate(-50%,-50%); padding:3px 7px 2px; border-radius:10px; white-space:nowrap; cursor:pointer;
  background:color-mix(in srgb, var(--bg-2) 86%, transparent); border:2px solid var(--c); box-shadow:0 4px 14px rgba(0,0,0,.5); line-height:1.1}
.bm b{font-size:13px} .bm small{font-size:10px; color:var(--muted)}
.bm.on{transform:translate(-50%,-50%) scale(1.15); box-shadow:0 0 0 3px rgba(124,212,255,.55), 0 6px 20px rgba(0,0,0,.6)}
.bs-head{display:flex; justify-content:space-between; gap:12px; align-items:flex-start}
.bs-head h2{font-size:20px; color:var(--ink); margin:0}
.bs-water{text-align:right} .bs-water b{display:block; font-size:38px; line-height:1; color:var(--c); font-stretch:72%} .bs-water small{font-size:11px; color:var(--muted)}
.bs-now{display:flex; flex-wrap:wrap; gap:6px 16px; margin:12px 0 8px; font-size:13px; color:var(--muted)} .bs-now b{color:var(--ink)}
.bs-best{list-style:none; padding:0; margin:0 0 8px; display:grid; gap:4px; font-size:13px} .bs-best li{display:flex; gap:10px} .bs-best span{color:var(--muted); min-width:120px}
.bs-h{margin:12px 0 6px}
.bm.grp{border-style:dashed} .bm.grp small{color:var(--ink)}
.bs-hours{display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:4px; margin-bottom:2px}
.bs-hours>div{display:flex; flex-direction:column; align-items:center; gap:2px; padding:7px 2px 6px; border-radius:9px; background:rgba(255,255,255,.035); font-size:11.5px; color:var(--muted); position:relative; overflow:hidden}
.bs-hours .h{font-size:11px; color:var(--muted)} .bs-hours b{font-size:15px; color:var(--ink)}
.bs-hours i{position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--c)}
.bs-leg{font-size:11px; margin:2px 0 4px}
/* rannakaart lehe sinakas toonis, mitte hall */
#beachMap .base-tiles{filter:sepia(.45) hue-rotate(180deg) saturate(1.8) brightness(1.05)}
@media (max-width:560px){ .bs-hours{grid-template-columns:repeat(4,minmax(0,1fr))} }
.bc-live{border-radius:12px; overflow:hidden; border:1px solid var(--card-brd); margin-bottom:8px; background:#000}
.bc-live iframe{display:block; width:100%; aspect-ratio:16/9; border:0}
.bc-play{all:unset; box-sizing:border-box; cursor:pointer; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; gap:0 12px; align-items:center; width:100%; padding:14px 16px;
  background:linear-gradient(135deg, rgba(124,212,255,.12), rgba(167,139,250,.08))}
.bc-play span{grid-row:1/3; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background:rgba(124,212,255,.25); color:#fff; font-size:16px}
.bc-play small{color:var(--muted); font-size:11.5px}
.bc-play:hover span{background:rgba(124,212,255,.45)}
@media (max-width:900px){ .beach-top{grid-template-columns:1fr!important} .beach-map{height:300px} }

/* vanarahva enned */
.lore-scope{margin:0 0 6px; font-size:12.5px; color:var(--muted)}
.lore-sum{font-size:13px; margin-bottom:8px} .lore-sum .ok{color:#7fe0a0} .lore-sum .bad{color:#ff8a96}
.lore-filt{margin-bottom:10px}
.lore-yrs{display:flex; flex-wrap:wrap; gap:3px; margin-top:6px}
.lore-yrs span{font-size:10.5px; padding:1px 6px; border-radius:6px; border:1px solid var(--card-brd); color:var(--faint)}
.lore-yrs span.hit{color:#0b1520; background:#7fe0a0; border-color:#7fe0a0}
.lore-loc{display:inline-block; margin-left:6px; font-size:11.5px; color:var(--muted)}
.lore-src{display:inline-block; margin-top:6px; font-size:11.5px; color:var(--ice)}
section[data-tab="malu"] > [data-ly="h-vanarahva-enned-kontrollitud"]{grid-column:1/-1}
section[data-tab="malu"] .lore-list{display:grid; grid-template-columns:repeat(auto-fill,minmax(min(420px,100%),1fr)); gap:10px; align-items:start}
section[data-tab="malu"] .lore-list > .lore-scope,section[data-tab="malu"] .lore-list > .lore-sum,section[data-tab="malu"] .lore-list > .lore-filt{grid-column:1/-1}
@media (max-width:700px){ section[data-tab="malu"] .lore-list{grid-template-columns:1fr} }

/* täisekraanikaardid: lennukid ja laevad */
.fm-wrap{position:relative; display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:10px; height:calc(100vh - var(--top) - 190px); min-height:420px}
.fm-map{border-radius:12px; overflow:hidden; background:var(--map-bg); min-height:0}
.fm-tools{position:absolute; top:10px; left:56px; right:320px; display:flex; gap:6px; z-index:500; pointer-events:none}
.fm-tools > *{pointer-events:auto}
.fm-tools input{flex:0 1 260px; padding:7px 12px; border-radius:999px; border:1px solid var(--card-brd); background:color-mix(in srgb, var(--bg-2) 88%, transparent); color:var(--ink); font:inherit; font-size:13px; backdrop-filter:blur(10px)}
.fm-full-btn{margin-left:auto; width:36px; height:36px; border-radius:10px; border:1px solid var(--card-brd); background:color-mix(in srgb, var(--bg-2) 88%, transparent); color:var(--ink); font-size:17px; cursor:pointer; backdrop-filter:blur(10px)}
.fm-full-btn:hover{border-color:rgba(124,212,255,.5)}
.fm-side{overflow:auto; display:flex; flex-direction:column; gap:8px; min-height:0}
.fm-chips{display:flex; flex-wrap:wrap; gap:4px}
.fm-chips button{display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:999px; border:1px solid var(--card-brd); background:none; color:var(--muted); font-size:11.5px; cursor:pointer}
.fm-chips button.on{color:var(--ink); background:rgba(255,255,255,.05)}
.fm-chips i,.fm-row i{width:9px; height:9px; border-radius:50%; display:inline-block; flex:none}
.fm-list,.fm-over{display:grid; gap:3px}
.fm-row{all:unset; box-sizing:border-box; cursor:pointer; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; gap:0 8px; align-items:center; padding:6px 9px; border-radius:9px; border:1px solid transparent}
.fm-row:hover{background:rgba(124,212,255,.07); border-color:var(--card-brd)}
.fm-row i{grid-row:1/3} .fm-row b{font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis} .fm-row small{font-size:11.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.fm-over .fm-row{border-color:rgba(241,203,74,.4); background:rgba(241,203,74,.06)}
.fm-wrap:fullscreen,.fm-wrap.fm-full{position:fixed; inset:0; z-index:5000; height:100vh; background:var(--bg); padding:10px; border-radius:0}
.fm-wrap:fullscreen .fm-tools,.fm-wrap.fm-full .fm-tools{top:20px; left:66px; right:330px}
@media (max-width:800px){
  .fm-wrap{grid-template-columns:1fr; grid-template-rows:62vh auto; height:auto}
  .fm-tools{right:10px; left:52px}
  .fm-side{max-height:40vh}
  .fm-wrap.fm-full,.fm-wrap:fullscreen{grid-template-rows:1fr 30vh}
}
:root[data-theme="night"] #beachMap .base-tiles{filter:sepia(.45) hue-rotate(180deg) saturate(1.8) brightness(.55) contrast(1.1)}

/* sääsed ja puugid */
.bug-cards{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px}
.bug-card{border:1px solid var(--card-brd); border-radius:14px; padding:14px 16px; background:linear-gradient(160deg, color-mix(in srgb, var(--c, #7cd4ff) 12%, transparent), transparent 60%)}
.bug-card p{margin:6px 0 0; font-size:13.5px} .bug-card .hint{font-size:12px}
.bug-h{display:flex; align-items:center; gap:8px; font-size:14px} .bug-ic{font-size:18px}
.bug-num{position:relative; display:flex; align-items:flex-end; gap:8px; margin:6px 0 2px; height:62px}
.bug-g{width:104px; height:62px; flex:none} .bug-g path{fill:none; stroke-width:9; stroke-linecap:round} .bug-g .bg{stroke:rgba(255,255,255,.08)}
.bug-num>b{position:absolute; left:0; width:104px; bottom:0; text-align:center; font-size:30px; line-height:1; color:var(--c, var(--ink)); font-stretch:72%}
.bug-num small{color:var(--muted); font-size:12.5px; padding-bottom:4px}
.bug-f{display:grid; grid-template-columns:62px 1fr; gap:2px 10px; align-items:center; font-size:12.5px; margin:7px 0}
.bug-f i{height:7px; border-radius:4px; background:rgba(255,255,255,.07); overflow:hidden} .bug-f i b{display:block; height:100%; background:#7cd4ff; border-radius:4px}
.bug-f small{grid-column:2; color:var(--muted); font-size:11px}
.bug-days{display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:6px}
.bug-days>div{display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px 4px; border-radius:10px; background:rgba(255,255,255,.035); font-size:12.5px}
.bd-l{color:var(--muted); font-size:12px} .bd-t{color:var(--muted)}
.bd-v{padding:2px 8px; border-radius:8px; background:color-mix(in srgb, var(--c) 22%, transparent); border:1px solid color-mix(in srgb, var(--c) 45%, transparent)}
.bd-v b{color:var(--ink)}
.bug-how{margin-top:12px; font-size:13px} .bug-how summary{cursor:pointer; color:var(--muted)} .bug-how p{max-width:90ch}
@media (max-width:900px){ .bug-cards{grid-template-columns:1fr} .bug-days{grid-template-columns:repeat(4,minmax(0,1fr))} }

/* satelliidid */
.sat-list{display:grid; grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr)); gap:12px}
.sat-card{display:flex; gap:14px; align-items:flex-start; border:1px solid var(--card-brd); border-radius:14px; padding:12px 14px;
  background:linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 55%)}
.sat-sky{width:112px; height:112px; flex:none}
.sat-sky .h{fill:rgba(8,16,30,.55); stroke:rgba(255,255,255,.22)} .sat-sky .g{fill:none; stroke:rgba(255,255,255,.08); stroke-dasharray:2 3}
.sat-sky text{fill:var(--muted); font-size:9px; text-anchor:middle}
.sat-sky .p{fill:none; stroke:var(--c); stroke-width:2.2; stroke-linecap:round}
.sat-sky .s{fill:var(--c); opacity:.6} .sat-sky .m{fill:var(--c); stroke:#fff; stroke-width:1.2} .sat-sky .e{fill:#fff; opacity:.7}
.sat-body{min-width:0; flex:1} .sat-body p{margin:4px 0 6px; font-size:13px; color:var(--muted)}
.sat-top{display:flex; justify-content:space-between; gap:8px; align-items:center}
.sat-rate{font-size:11px; padding:2px 8px; border-radius:999px; color:#081220; background:var(--c); font-weight:600}
.sat-time{display:flex; flex-wrap:wrap; align-items:baseline; gap:0 8px; margin-top:2px} .sat-time b{font-size:19px; color:var(--ink)} .sat-time small{color:var(--c); font-size:12px}
.sat-meta{display:flex; flex-wrap:wrap; gap:4px 12px; font-size:12px; color:var(--muted)} .sat-meta b{color:var(--ink)}
.sat-map{height:380px; border-radius:12px; overflow:hidden; background:var(--map-bg)}
.sat-mk{background:none; border:0} .sat-mk span{display:grid; place-items:center; width:30px; height:30px; font-size:20px; filter:drop-shadow(0 0 6px rgba(124,212,255,.9))}
.sat-follow{padding:6px 10px; border-radius:8px; background:var(--bg-2); color:var(--ink); border:1px solid var(--line); font-size:12.5px; cursor:pointer} .sat-follow.on{border-color:#7cd4ff}
.sat-now{margin:8px 0 0; font-size:13px; color:var(--muted)} .sat-now b{color:var(--ink); margin-right:6px}
@media (max-width:560px){ .sat-list{grid-template-columns:1fr} .sat-sky{width:92px; height:92px} .sat-map{height:280px} }
/* raketistardid */
.ln-list{display:grid; grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr)); gap:12px}
.ln-card{min-width:0; display:flex; gap:12px; align-items:flex-start; border:1px solid var(--card-brd); border-radius:14px; padding:12px 14px;
  background:linear-gradient(160deg, color-mix(in srgb, var(--c) 8%, transparent), transparent 55%)}
.ln-card.sl{border-color:color-mix(in srgb, #c9a7ff 45%, var(--card-brd))} .ln-card.near{border-color:color-mix(in srgb, #7cd4ff 55%, var(--card-brd))}
.ln-card img,.ln-noimg{width:72px; height:72px; flex:none; border-radius:10px; object-fit:cover; background:var(--bg-2)}
.ln-noimg{display:grid; place-items:center; font-size:28px}
.ln-body{min-width:0; flex:1} .ln-body p{margin:3px 0; font-size:13px; color:var(--muted)}
.ln-top{display:flex; justify-content:space-between; gap:8px; align-items:center} .ln-top b{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.ln-st{flex:none; font-size:11px; padding:2px 8px; border-radius:999px; color:#081220; background:var(--c); font-weight:600}
.ln-time{display:flex; flex-wrap:wrap; align-items:baseline; gap:0 10px} .ln-time b{font-size:17px; color:var(--ink)}
.ln-cd{font-variant-numeric:tabular-nums; color:var(--c); font-size:12.5px}
.ln-note{color:var(--ink)!important; font-size:12.5px!important} .ln-live{color:#e3364c}
@media (max-width:560px){ .ln-list{grid-template-columns:minmax(0,1fr)} .ln-card img,.ln-noimg{width:56px; height:56px} .ln-body p{overflow-wrap:anywhere} }

/* ilmamäng */
.gm-head{display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:10px}
#gmRound .gm-head h3{margin:2px 0 0; font-size:22px; font-weight:700; color:var(--ink); text-transform:none} #gmRound .gm-head h3::first-letter{text-transform:uppercase}
.gm-dl{text-align:right; display:flex; flex-direction:column} .gm-dl b{font-size:16px; color:var(--ink)} .gm-dl small{color:#ffd96b; font-size:12.5px}
.gm-rows{display:grid; gap:6px}
.gm-row{display:grid; grid-template-columns:minmax(90px,1fr) auto auto 22px; gap:10px 16px; align-items:center; padding:8px 12px; border-radius:12px; background:rgba(255,255,255,.035)}
.gm-city{font-size:15px}
.gm-t{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted)} .gm-t em{font-style:normal}
.gm-num{display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:10px; overflow:hidden}
.gm-num button{border:0; border-radius:0; padding:6px 10px; font-size:15px; min-width:34px}
.gm-num input{width:64px; border:0; border-left:1px solid var(--line); border-right:1px solid var(--line); border-radius:0; text-align:center; font-size:16px; font-weight:600; background:transparent; color:var(--ink); padding:6px 4px; -moz-appearance:textfield}
.gm-num input::-webkit-inner-spin-button,.gm-num input::-webkit-outer-spin-button{-webkit-appearance:none; margin:0}
.gm-r{margin:0} .gm-r button{padding:7px 12px; font-size:13px} .gm-r button.on{background:rgba(124,212,255,.22); color:var(--ink)}
.gm-ok{color:#7fe0a0; font-weight:700}
.gm-act{display:flex; flex-wrap:wrap; gap:10px 14px; align-items:center; margin-top:12px}
.gm-me{display:flex; flex-wrap:wrap; gap:6px 20px; margin-top:12px; font-size:13px; color:var(--muted)} .gm-me b{color:var(--ink)}
.gm-me input{padding:4px 8px; border-radius:8px; border:1px solid var(--line); background:transparent; color:var(--ink)}
.gm-tbl{width:100%; border-collapse:collapse; font-size:13px} .gm-tbl th{font-weight:500; color:var(--muted); text-align:left; padding:4px 8px; font-size:12px}
.gm-tbl td{padding:6px 8px; border-top:1px solid var(--line); white-space:nowrap} .gm-tbl td small{display:block; color:var(--muted); font-size:11px}
.gm-tbl tfoot td{border-top:2px solid var(--line)}
.gm-pts{display:inline-block; min-width:24px; padding:1px 6px; border-radius:999px; text-align:center; font-size:11.5px; font-weight:700; color:#081220; background:var(--c)}
.gm-board tr.bot td{color:var(--muted)} .gm-board tr.me td{background:rgba(124,212,255,.1)} .gm-board tr.me td:first-child{box-shadow:inset 3px 0 0 #7cd4ff}
.gm-per{margin-bottom:8px}
.gm-rules summary{cursor:pointer; font-weight:600} .gm-rules ul{margin:10px 0 0; padding-left:20px; font-size:13.5px; display:grid; gap:6px; max-width:95ch}
@media (max-width:640px){
  .gm-row{grid-template-columns:1fr auto; grid-template-areas:"c ok" "t t" "r r"} .gm-city{grid-area:c} .gm-ok{grid-area:ok} .gm-t{grid-area:t} .gm-r{grid-area:r; display:flex} .gm-r button{flex:1}
  .gm-head h3{font-size:19px}
}

/* hommikune ilmakiri */
.acc-brief .br-on{display:flex; gap:8px; align-items:center; margin:12px 0}
.br-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px} .br-grid label{display:flex; flex-direction:column; gap:4px; font-size:12.5px; color:var(--muted)}
.br-grid select{padding:7px 8px; border-radius:8px; border:1px solid var(--line); background:var(--bg-2); color:var(--ink)}
.br-ch{display:grid; gap:6px; font-size:13.5px; margin-bottom:8px} .br-ch>span{font-size:12.5px; color:var(--muted)} .br-ch small{color:var(--muted)}
.br-ch label{display:flex; gap:8px; align-items:center}
.br-prev{margin:8px 0} .br-prev iframe{width:100%; height:420px; border:1px solid var(--line); border-radius:10px; background:#eef3f7}
@media (max-width:520px){ .br-grid{grid-template-columns:1fr} }

.pl-passed{margin:6px 0 12px} .pl-passed h3{margin:0 0 6px; font-size:14px} .pl-ago{min-width:92px; color:var(--muted); font-size:13px}

/* ilmapildid */
.ph-bar{display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin-bottom:10px}
.ph-chips{display:flex; flex-wrap:wrap; gap:4px} .ph-chips button{padding:5px 10px; border-radius:999px; border:1px solid var(--line); background:none; color:var(--muted); font-size:12.5px; cursor:pointer}
.ph-chips button.on{background:rgba(124,212,255,.18); color:var(--ink); border-color:rgba(124,212,255,.5)}
.ph-bar select{padding:6px 8px; border-radius:8px; border:1px solid var(--line); background:var(--bg-2); color:var(--ink)}
.ph-wrap{display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:12px}
.ph-map{height:560px; border-radius:12px; overflow:hidden; background:var(--map-bg)}
.ph-list{display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:8px; align-content:start; max-height:560px; overflow:auto; padding-right:2px}
.ph-th{all:unset; cursor:pointer; position:relative; border-radius:10px; overflow:hidden; aspect-ratio:1; background:var(--bg-2); border:1px solid var(--card-brd)}
.ph-th img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .2s} .ph-th:hover img{transform:scale(1.04)}
.ph-th.hid{opacity:.45; outline:2px dashed #ff8a96}
.ph-tl{position:absolute; left:0; right:0; bottom:0; padding:14px 7px 5px; font-size:11px; color:#fff; background:linear-gradient(transparent, rgba(0,0,0,.75))}
.ph-mk{background:none; border:0}
.ph-mk span{position:relative; display:block; width:46px; height:46px; border-radius:50%; background:#1a2433 center/cover; border:2px solid #fff; box-shadow:0 3px 12px rgba(0,0,0,.6)}
.ph-mk.sm span{width:30px; height:30px; border-width:2px}
.ph-mk i{position:absolute; right:-6px; bottom:-6px; font-style:normal; font-size:14px; line-height:1; filter:drop-shadow(0 1px 2px #000)}
.ph-mk.sm i{font-size:11px; right:-5px; bottom:-5px}
.ph-mk b{position:absolute; right:-7px; top:-7px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:#7cd4ff; color:#081220; font-size:11.5px; display:grid; place-items:center}
.ph-dlg{padding:0; border:0; background:transparent; max-width:min(96vw,1200px); max-height:94vh}
.ph-dlg::backdrop{background:rgba(3,8,16,.82)}
.ph-big{position:relative; background:#0b1220; border-radius:14px; overflow:hidden; border:1px solid var(--card-brd)}
.ph-big img{display:block; max-width:min(96vw,1200px); max-height:80vh; width:auto; height:auto; margin:0 auto}
.ph-x{position:absolute; top:8px; right:8px; z-index:2; width:36px; height:36px; border-radius:50%; border:0; background:rgba(0,0,0,.55); color:#fff; font-size:16px; cursor:pointer}
.ph-nav{position:absolute; top:40%; z-index:2; width:44px; height:64px; border:0; border-radius:10px; background:rgba(0,0,0,.4); color:#fff; font-size:32px; cursor:pointer}
.ph-nav.prev{left:8px} .ph-nav.next{right:8px}
.ph-cap{display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 16px; padding:12px 14px; align-items:center}
.ph-cap small{display:block; color:var(--muted); font-size:12px; margin-top:2px}
.ph-act{display:flex; gap:6px; flex-wrap:wrap} .ph-act .on{color:#ff8a96; border-color:#ff8a96}
.ph-add .acc-card{max-width:560px}
.ph-file{display:block; border:2px dashed var(--line); border-radius:12px; padding:18px; text-align:center; cursor:pointer; color:var(--muted); margin-bottom:10px}
.ph-file input{display:none} .ph-file:hover{border-color:#7cd4ff; color:var(--ink)}
.ph-prev img{display:block; max-width:100%; max-height:240px; margin:0 auto 10px; border-radius:10px}
.ph-f{display:flex; flex-direction:column; gap:4px; margin-bottom:10px; font-size:12.5px; color:var(--muted)} .ph-f small{color:var(--muted)}
.ph-f input,.ph-f select{padding:8px; border-radius:8px; border:1px solid var(--line); background:var(--bg-2); color:var(--ink); font-size:14px}
.ph-pick{height:220px; border-radius:10px; overflow:hidden; background:var(--map-bg)}
.ph-ok{display:flex; gap:8px; align-items:flex-start; font-size:13px; margin:6px 0}
@media (max-width:900px){ .ph-wrap{grid-template-columns:1fr} .ph-map{height:360px} .ph-list{max-height:none; grid-template-columns:repeat(3,minmax(0,1fr))} }
.ph-add label.ph-ok{display:flex; flex-direction:row; align-items:flex-start; gap:8px; text-align:left} .ph-add .ph-ok input{width:auto; flex:none; margin:2px 0 0}
@media (max-width:640px){ .ph-chips{flex-wrap:nowrap; overflow-x:auto; width:100%; padding-bottom:4px; scrollbar-width:none} .ph-chips button{flex:none} }

/* lennuki info (klõps): kust tuleb, kuhu läheb */
.pl-pop .leaflet-popup-content-wrapper{background:var(--bg-2); color:var(--ink); border:1px solid var(--card-brd); border-radius:12px; box-shadow:0 8px 28px rgba(0,0,0,.55)}
.pl-pop .leaflet-popup-tip{background:var(--bg-2)} .pl-pop .leaflet-popup-content{margin:12px 14px; min-width:220px}
.pl-pop a.leaflet-popup-close-button{color:var(--muted)}
.pl-pop-in>b{font-size:15px} .pl-pop-in>small{display:block; color:var(--muted); font-size:12px; margin-top:1px}
.pl-ft{display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; margin:10px 0 6px; padding:8px 10px; border-radius:10px; background:rgba(255,255,255,.05)}
.pl-ft span{display:block; font-size:10.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em} .pl-ft b{font-size:14px}
.pl-ft div:last-child{text-align:right} .pl-ft i{font-style:normal; color:#7cd4ff; font-size:18px}
.pl-pop .pl-live{font-size:12.5px; color:var(--muted); margin-top:4px}
.ph-dlg:focus,.ph-dlg:focus-visible{outline:none}
.pl-ic-w{display:block; position:relative} .pl-ic-w.mil .pl-ic{filter:drop-shadow(0 0 2px #000) drop-shadow(0 0 3px rgba(233,180,76,.9))}
.pl-ic-w.emg::after{content:""; position:absolute; inset:-7px; border-radius:50%; border:2px solid #ff4d5e; animation:plEmg 1.2s ease-out infinite}
@keyframes plEmg{0%{transform:scale(.6); opacity:1}100%{transform:scale(1.6); opacity:0}}
.pl-b{display:inline-block; padding:1px 7px; border-radius:999px; font-size:11px; font-weight:600; margin:1px 4px 1px 0}
.pl-b.mil{background:rgba(233,180,76,.2); color:#e9b44c; border:1px solid rgba(233,180,76,.5)} .pl-b.emg{background:#ff4d5e; color:#fff}
.pl-bs{margin-bottom:4px} .pl-photo{display:block; margin:-2px 0 8px; text-decoration:none} .pl-photo img{display:block; width:100%; max-height:150px; object-fit:cover; border-radius:8px}
.pl-photo small{display:block; font-size:10px; color:var(--muted); text-align:right; margin-top:2px}
.pl-pop-in>small{display:block}
.pl-chip.emg{border-color:#ff4d5e; background:rgba(255,77,94,.16)} .pl-chip.emg .pl-chip-ic{color:#ff4d5e}

/* GPS-segamine */
.gnss-bar{display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; margin-bottom:10px} .gnss-bar .seg{margin:0}
.gnss-leg{display:flex; flex-wrap:wrap; gap:4px 12px; font-size:12px; color:var(--muted); align-items:center}
.gnss-leg i{display:inline-block; width:12px; height:12px; border-radius:3px; background:var(--c); opacity:.8; margin-right:-6px}
.gnss-wrap{display:grid; grid-template-columns:minmax(0,1.6fr) minmax(min(240px,100%),1fr); gap:14px}
.gnss-map{height:480px; border-radius:12px; overflow:hidden; background:var(--map-bg)}
.gnss-side h3{font-size:14px; margin:12px 0 6px} .gnss-stat{display:inline-flex; flex-direction:column; margin-right:18px} .gnss-stat b{font-size:28px; line-height:1}
.gnss-stat span{font-size:12px; color:var(--muted)}
.gnss-list{list-style:none; padding:0; margin:0; display:grid; gap:6px} .gnss-list li{display:grid; grid-template-columns:12px 1fr; gap:2px 8px; font-size:13px; align-items:center}
.gnss-list i{width:12px; height:12px; border-radius:3px} .gnss-list span{grid-column:2; color:var(--muted); font-size:12px}
@media (max-width:900px){ .gnss-wrap{grid-template-columns:1fr} .gnss-map{height:360px} }

/* Eesti kosmosest */
.img-bar{display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; justify-content:space-between; margin-bottom:10px}
.img-days{display:flex; gap:4px; flex-wrap:wrap}
.img-days button{display:flex; flex-direction:column; align-items:center; min-width:62px; padding:6px 8px; border-radius:10px; border:1px solid var(--line); background:none; color:var(--muted); cursor:pointer; font-size:12.5px}
.img-days button b{color:var(--ink); font-weight:600} .img-days button small{font-size:10.5px} .img-days button small.hls{color:#7fe0a0}
.img-days button.on{background:rgba(124,212,255,.16); border-color:rgba(124,212,255,.55)}
.img-ctl{display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:13px}
.img-ctl select{padding:6px 8px; border-radius:8px; border:1px solid var(--line); background:var(--bg-2); color:var(--ink)}
.img-hls{display:flex; gap:6px; align-items:center}
.img-map{height:600px; border-radius:12px; overflow:hidden; background:var(--map-bg)}
@media (max-width:700px){ .img-days{flex-wrap:nowrap; overflow-x:auto; width:100%; scrollbar-width:none} .img-days button{flex:none} .img-map{height:420px} }

/* satelliidi tulekolded */
.fr-wrap{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:14px}
.fr-map{height:420px; border-radius:12px; overflow:hidden; background:var(--map-bg)}
.fr-side h3{margin:2px 0 6px; font-size:13px; color:var(--muted); font-weight:600} .fr-side h3:not(:first-child){margin-top:12px}
.fr-list{list-style:none; margin:0; padding:0; display:grid; gap:4px}
.fr-list li{display:grid; grid-template-columns:10px minmax(0,1fr); column-gap:8px; align-items:center; padding:6px 8px; border-radius:8px; cursor:pointer; background:var(--bg-2)}
.fr-list li:hover{background:color-mix(in srgb, var(--ink) 8%, var(--bg-2))}
.fr-list i{width:10px; height:10px; border-radius:50%; grid-row:span 2} .fr-list b{font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap} .fr-list span{font-size:12px; color:var(--muted)}
.fr-steady{margin-top:12px} .fr-steady summary{cursor:pointer; font-size:13px; color:var(--muted)} .fr-steady ul{margin-top:6px}
path.fr-hot{animation:frHot 1.8s ease-in-out infinite}
@keyframes frHot{50%{stroke-opacity:.35; fill-opacity:.65}}
@media (max-width:900px){ .fr-wrap{grid-template-columns:1fr} .fr-map{height:320px} }
@media (prefers-reduced-motion:reduce){ path.fr-hot{animation:none} }

/* ühistransport */
.tr-chips{display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 10px}
.tr-chips button{display:flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; border:1px solid var(--line); background:var(--bg-2); color:var(--muted); font-size:12.5px; cursor:pointer}
.tr-chips button.on{color:var(--ink); border-color:var(--c)} .tr-chips i{width:9px; height:9px; border-radius:50%; background:var(--c)} .tr-chips button:not(.on) i{opacity:.35}
.tr-wrap{display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:14px}
.tr-map{height:520px; border-radius:12px; overflow:hidden; background:var(--map-bg)}
.tr-side h3{margin:2px 0 6px; font-size:13px; color:var(--muted); font-weight:600}
.tr-list{list-style:none; margin:0; padding:0; display:grid; gap:4px}
.tr-list li{display:grid; grid-template-columns:10px minmax(0,1fr); column-gap:8px; align-items:center; padding:6px 8px; border-radius:8px; cursor:pointer; background:var(--bg-2)}
.tr-list i{width:10px; height:10px; border-radius:50%; grid-row:span 2} .tr-list b{font-size:13px} .tr-list span{font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.tr-ic{position:relative; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--c); border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.5)}
.tr-ic b{font-size:9.5px; font-weight:700; color:#fff; line-height:1; text-shadow:0 0 2px rgba(0,0,0,.6); letter-spacing:-.2px}
.tr-ic.est{border-style:dashed; background:color-mix(in srgb, var(--c) 75%, #0b1622)}
.tr-dir{position:absolute; inset:-7px; pointer-events:none} .tr-dir::before{content:""; position:absolute; left:50%; top:0; margin-left:-4px; border:4px solid transparent; border-bottom:6px solid var(--c); border-top:0}
.sv-cursor{cursor:crosshair!important} .sv-cursor .leaflet-interactive{cursor:pointer}
.sv-box img{display:block; width:300px; max-width:100%; height:auto; border-radius:8px; background:#0b1622}
.sv-meta{display:flex; justify-content:space-between; gap:8px; align-items:center; margin:6px 0 4px; font-size:12px; color:var(--muted)}
.sv-nav{display:flex; align-items:center; gap:4px} .sv-nav button{border:1px solid var(--line); background:var(--bg-2); color:var(--ink); border-radius:6px; width:24px; height:22px; cursor:pointer}
.sv-open{display:block; font-size:13px; margin-bottom:2px}
@media (max-width:900px){ .tr-wrap{grid-template-columns:1fr} .tr-map{height:420px} }

#camsNear .cam-h{margin:10px 0 6px; font-size:13px; color:var(--muted); font-weight:600}

/* Olud: rühmad ühe reana + valitud rühma vaated */
.subtabs.grouped{align-items:center; gap:6px}
.subtabs.grouped .st-secs{display:inline-flex; gap:1px; padding:2px; border-radius:12px; background:rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.05); flex:none}
.subtabs.grouped .st-secs button{padding:5px 11px; font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--faint); white-space:nowrap}
.subtabs.grouped .st-secs button.on{color:var(--ink); background:rgba(255,255,255,.07); box-shadow:none}
.subtabs.grouped .st-grp{background:none; border:0; padding:0}
@media (max-width:1100px){
  .subtabs.grouped{flex-wrap:wrap; overflow:visible; width:100%}
  .subtabs.grouped .st-secs,.subtabs.grouped .st-grp{max-width:100%; overflow-x:auto; scrollbar-width:none; flex-wrap:nowrap}
  .subtabs.grouped .st-secs::-webkit-scrollbar,.subtabs.grouped .st-grp::-webkit-scrollbar{display:none}
}

/* teekond: kaardilt valimine ja sõidujuhend */
.tk-pickbtn.on{border-color:#7cd4ff; color:var(--ink)}
.tk-pick{margin:8px 0 12px} .tk-pick #tkPickMap{height:360px; border-radius:12px; overflow:hidden; background:var(--map-bg); cursor:crosshair}
.tk-pin{display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--c); color:#fff; font:700 12px/1 system-ui; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.5)}
.tk-steps{margin-top:12px} .tk-steps summary{cursor:pointer; color:var(--muted); font-size:13px}
.tk-steps ol{margin:8px 0 0; padding-left:22px; display:grid; gap:2px; max-height:360px; overflow:auto}
.tk-steps li{display:flex; justify-content:space-between; gap:12px; padding:5px 8px; border-radius:6px; cursor:pointer; font-size:13px} .tk-steps li:hover{background:var(--bg-2)}
.tk-steps li small{color:var(--muted); white-space:nowrap}

/* lähim kaamera, lennuki ja laeva tegevused */
.pl-acts{display:flex; flex-wrap:wrap; gap:6px; margin-top:6px}
.cam-near{padding:4px 9px; border-radius:8px; border:1px solid var(--line); background:var(--bg-2); color:var(--ink); font-size:12px; cursor:pointer}
.cam-near:hover{border-color:#7cd4ff} .cam-near:disabled{opacity:.6}
.pop-in{font-size:13px; line-height:1.4}

/* maavärinad */
.qk-cols{display:grid; grid-template-columns:1fr 1fr; gap:16px} .qk-cols h3{margin:0 0 6px; font-size:13px; color:var(--muted); font-weight:600}
.qk-list{list-style:none; margin:0; padding:0; display:grid; gap:4px}
.qk-list li{display:flex; gap:10px; align-items:center; padding:5px 8px; border-radius:8px; background:var(--bg-2)}
.qk-list i{flex:none; display:grid; place-items:center; width:30px; height:22px; border-radius:6px; font:700 11.5px/1 system-ui; font-style:normal; color:#081220}
.qk-list span{display:grid; min-width:0} .qk-list b{font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap} .qk-list small{font-size:12px; color:var(--muted)}
@media (max-width:760px){ .qk-cols{grid-template-columns:1fr} }

/* merekaablid */
.cb-list{list-style:none; margin:0 0 10px; padding:0; display:grid; gap:4px}
.cb-list li{display:flex; gap:10px; align-items:flex-start; padding:7px 10px; border-radius:8px; background:var(--bg-2); cursor:pointer; font-size:13px}
.cb-list li i{flex:none; width:10px; height:10px; margin-top:4px; border-radius:50%; background:#f1cb4a} .cb-list li.l2 i{background:#e3364c; box-shadow:0 0 8px #e3364c}
.cb-list small{display:block; color:var(--muted); font-size:12px}
.cb-legend{display:flex; flex-wrap:wrap; gap:12px; font-size:12px; color:var(--muted); margin:6px 0} .cb-legend i{display:inline-block; width:16px; height:3px; border-radius:2px; margin-right:5px; vertical-align:middle}
.cb-names summary{cursor:pointer; font-size:13px; color:var(--muted)} .cb-names p{font-size:12.5px; line-height:1.7}
path.cb-alert{animation:cbPulse 1.6s ease-in-out infinite} @keyframes cbPulse{50%{stroke-opacity:.25}}
@media (prefers-reduced-motion:reduce){ path.cb-alert{animation:none} }

/* Kihid-menüü: alati teiste kaardikastide (lennuki teade, legend) peal ja telefonis ekraani sees */
#mapWrap .map-top:has(.ly-menu:not([hidden])){z-index:1500}
#mapWrap .ly-menu{position:relative; z-index:1500}
@media (max-width:760px){ #mapWrap .ly-menu{width:min(340px, calc(100vw - 84px))} }

/* juhtpaneeli vormid: väljad ja nupud kaardi sisse (pikk kohatäide ei tohi kaarti laiemaks venitada) */
.adm-ntm form{grid-template-columns:minmax(0,1fr)}
.adm-ntm input:not([type=checkbox]):not([type=radio]){width:100%; min-width:0; box-sizing:border-box; font:inherit; font-size:13px}
.adm-ntm .adm-chk input{width:auto; padding:0}
.adm-ntm .acc-row{flex-wrap:wrap; justify-content:flex-start}
.adm-ntm .acc-row button{flex:0 1 auto}
.adm-lbl small{overflow-wrap:anywhere}

/* Radari lehel on kaart üle terve ekraani: alamvaated (Radar ja välk · Eesti kosmosest) kaardi peale ülaossa keskele */
body[data-tab="kaart"] #subTabs{position:fixed; top:62px; left:50%; transform:translateX(-50%); z-index:1300; margin:0;
  background:rgba(10,18,30,.78); backdrop-filter:blur(8px); box-shadow:0 4px 18px rgba(0,0,0,.35)}
@media (max-width:760px){ body[data-tab="kaart"] #subTabs{top:auto; bottom:calc(196px + env(safe-area-inset-bottom)); max-width:calc(100vw - 24px)} }
.adm-good{color:#4fc07a;font-weight:600;margin:.2em 0}ul.adm-bad{margin:.2em 0;padding-left:1.2em}ul.adm-bad li{margin:.15em 0}
/* kõik satelliidid */
.orb-canvas{position:absolute;left:0;top:0;pointer-events:none;z-index:450}
.orb-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 10px}
.orb-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;border:1px solid var(--line,#2a3442);background:transparent;color:inherit;font:inherit;font-size:.85em;cursor:pointer;opacity:.55}
.orb-chip.on{opacity:1;background:rgba(255,255,255,.06)}
.orb-chip i,.orb-dot,.orb-list i{display:inline-block;width:9px;height:9px;border-radius:50%;flex:none}
.orb-chip small{opacity:.65}
.orb-wrap{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:12px}
.orb-map{height:470px;border-radius:12px;overflow:hidden;background:#0b0f15}
.orb-side{min-width:0;display:flex;flex-direction:column;gap:4px}
.orb-side h3{margin:10px 0 0;font-size:.95em}.orb-side .hint{margin:0}
.orb-side input[type=search]{width:100%;padding:8px 10px;border-radius:8px;border:1px solid var(--line,#2a3442);background:rgba(255,255,255,.04);color:inherit;font:inherit}
.orb-list{list-style:none;margin:4px 0;padding:0;max-height:330px;overflow:auto}
.orb-list li{display:grid;grid-template-columns:12px minmax(0,1fr);column-gap:8px;align-items:center;padding:6px 4px;border-bottom:1px solid rgba(255,255,255,.05);cursor:pointer}
.orb-list li:hover{background:rgba(255,255,255,.04)}
.orb-list li b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.orb-list li span{grid-column:2;font-size:.82em;opacity:.75}
.orb-list li.hint{display:block;cursor:default}
.orb-pi .hint{display:flex;align-items:center;gap:6px;margin:2px 0 6px}
.orb-tbl{border-collapse:collapse;font-size:.88em}.orb-tbl td{padding:2px 8px 2px 0;vertical-align:top}.orb-tbl td:first-child{opacity:.65;white-space:nowrap}
@media (max-width:760px){.orb-wrap{grid-template-columns:minmax(0,1fr)}.orb-map{height:340px}.orb-list{max-height:300px}.orb-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.orb-chip{flex:none}}
.ly-n{opacity:.6;margin-left:4px;font-variant-numeric:tabular-nums}
/* elekter: arvel olev hind, planeerija, küte, süsteem */
#energyPanel{margin-top:16px}
.pw-cards .best b,.pw-cards b{font-variant-numeric:tabular-nums}
.pw-cheap{color:#7fe0a0}.pw-dear{color:#ff7a7a}
.pw-bar,.pw-mix{display:flex;height:8px;border-radius:4px;overflow:hidden;margin-top:8px;gap:1px}
.pw-mix{height:14px;margin:12px 0 6px}
.pw-tbl td small{opacity:.7}
.pw-apps{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.pw-app{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:8px;align-items:center}
.pw-app input{padding:6px 8px;border-radius:8px;border:1px solid var(--line,#2a3442);background:rgba(255,255,255,.04);color:inherit;font:inherit}
.pw-app input[type=number]{width:72px}
.pw-chk{display:flex;align-items:center;gap:8px}
.pw-flows{display:flex;flex-wrap:wrap;gap:14px;margin:8px 0;font-size:.92em}
@media (max-width:560px){.pw-app{grid-template-columns:minmax(0,1fr) auto auto}.pw-app button{grid-column:3}}
.en-cards small span,.en-cards small b{display:inline;font-size:inherit;font-stretch:normal;color:inherit}.en-cards small .pw-cheap{color:#7fe0a0}.en-cards small .pw-dear{color:#ff7a7a}
#pwHeat .en-grid select,#pwPrice .en-grid select{width:100%;min-width:0}
.moon-stage{position:relative}
#moonImg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;mix-blend-mode:screen}
/* päike */
.sp-img-wrap{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:18px;align-items:start}
.sp-img img{width:100%;aspect-ratio:1;border-radius:50%;display:block;background:#000;box-shadow:0 0 40px rgba(255,190,90,.18)}
.sp-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.sp-tabs button{padding:6px 12px;border-radius:999px;border:1px solid var(--line,#2a3442);background:transparent;color:inherit;font:inherit;font-size:.88em;cursor:pointer}
.sp-tabs button.on{background:rgba(255,210,122,.14);border-color:rgba(255,210,122,.5)}
.sp-x{color:#ff6b7d}.sp-m{color:#f2933f}.sp-c{color:#f1cb4a}
.sp-list{list-style:none;margin:6px 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px}
.sp-list li{display:flex;gap:8px;align-items:baseline}.sp-list li span{font-size:.85em;opacity:.75}
.sp-dir{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:center;margin:8px 0 12px}
.sp-compass{width:100%;max-width:220px}
.sp-dir-txt p{margin:.3em 0}
#uvPanel select{background:var(--bg);color:inherit;border:1px solid var(--line);border-radius:6px;padding:2px 6px;font:inherit;font-size:12px}
@media (max-width:760px){.sp-img-wrap,.sp-dir{grid-template-columns:minmax(0,1fr)}.sp-img{max-width:300px;margin:0 auto;width:100%}.sp-compass{margin:0 auto;display:block}}
/* aasta ajajoon (aed): protsentidega, ei veni */
.tl-track{position:relative;height:62px;margin:6px 0 4px}
.tl-track .tl-b{position:absolute;display:block;border-radius:4px}
.tl-track .tl-season{top:6px;height:14px;opacity:.88}
.tl-track .tl-veg{top:26px;height:6px;opacity:.9}
.tl-track .tl-frost{top:36px;height:4px;opacity:.7}
.tl-track .tl-m{position:absolute;top:2px;bottom:0;border-left:1px solid var(--line-soft)}
.tl-track .tl-m em{position:absolute;bottom:0;left:4px;font-style:normal;font-size:11px;color:var(--faint);white-space:nowrap}
.tl-track .tl-astro{position:absolute;top:8px;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--bg);border:1.5px solid #fff;box-sizing:border-box}
.tl-track .tl-today{position:absolute;top:0;height:46px;width:2.5px;margin-left:-1px;background:#fff;border-radius:2px}
@media (max-width:600px){.tl-track .tl-m em{font-size:9.5px;left:2px}}
/* juhtpaneel: kompaktsem */
.adm-status{padding:12px 16px;border-radius:12px;margin-bottom:12px;border:1px solid var(--line);background:var(--glass)}
.adm-status.ok{border-color:rgba(127,224,160,.4)}.adm-status.ok b{color:#7fe0a0}
.adm-status.bad{border-color:rgba(227,54,76,.55);background:rgba(227,54,76,.07)}.adm-status.bad b{color:#ff8a96}
.adm-status ul{margin:6px 0;padding-left:1.2em}.adm-status small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.adm-kpis{grid-template-columns:repeat(8,minmax(0,1fr))}
.adm-kpis div{padding:10px 12px}.adm-kpis b{font-size:22px}.adm-kpis b small{font-size:13px;color:var(--muted)}
.adm-nav{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 12px;position:sticky;top:64px;z-index:5;padding:6px 0;background:linear-gradient(var(--bg) 70%,transparent)}
.adm-nav button{padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
.adm-nav button.on{color:var(--ink);background:rgba(124,212,255,.12);border-color:rgba(124,212,255,.4)}
.adm-nav button i{font-style:normal;display:inline-block;min-width:18px;padding:0 5px;margin-left:4px;border-radius:9px;background:#e3364c;color:#fff;font-size:11px}
.adm-cols{columns:3 300px;column-gap:12px;margin-bottom:12px}
.adm-cols > .adm-card{break-inside:avoid;margin:0 0 12px;display:block;width:100%;box-sizing:border-box}
.adm-meter{height:8px;border-radius:4px;background:rgba(255,255,255,.07);overflow:hidden;margin:4px 0 6px}.adm-meter i{display:block;height:100%}
.adm-log{max-height:340px;overflow:auto}
@media (max-width:1100px){.adm-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:640px){.adm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.adm-nav{top:56px}}
/* telefon: ülevaate vasak veerg ei ole eraldi keritav kast (pesastatud kerimine jäi kinni) */
@media (max-width:1100px){
  body:not(.wallpaper) .ov-now{overflow:visible!important;overscroll-behavior:auto}
  .ov{overflow:visible}
}
.ov-2f-hint{position:absolute;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px;text-align:center;
  background:rgba(0,0,0,.45);color:#fff;font-size:15px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .25s}
.ov-2f-hint.on{opacity:1}
/* minu liikumine */
.trk-pin{position:relative;width:26px;height:26px}
.trk-pin b{position:absolute;left:6px;top:6px;width:14px;height:14px;border-radius:50%;background:#3d8fe0;border:2.5px solid #fff;box-shadow:0 0 0 0 rgba(61,143,224,.6);animation:trkPulse 2s infinite}
.trk-dir{position:absolute;left:0;top:0;width:26px;height:26px}
.trk-dir::before{content:"";position:absolute;left:8px;top:-7px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:10px solid #3d8fe0;filter:drop-shadow(0 0 1px #fff)}
@keyframes trkPulse{0%{box-shadow:0 0 0 0 rgba(61,143,224,.55)}70%{box-shadow:0 0 0 14px rgba(61,143,224,0)}100%{box-shadow:0 0 0 0 rgba(61,143,224,0)}}
.trk-chip{position:absolute;left:50%;bottom:118px;transform:translateX(-50%);z-index:1100;display:flex;flex-direction:column;gap:2px;align-items:center;text-align:center;
  padding:8px 14px;border-radius:14px;background:rgba(10,16,26,.88);border:1px solid rgba(61,143,224,.5);color:#e8eef7;max-width:min(92%,420px);backdrop-filter:blur(6px)}
.trk-chip small{color:#9fb0c4;font-size:12px}
.trk-acts{display:flex;gap:6px;margin-top:4px}
.trk-acts button{padding:3px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer}
.trk-acts button.on{background:rgba(61,143,224,.3);border-color:#3d8fe0}
@media (max-width:760px){.trk-chip{bottom:auto;top:58px}}
.layer-toggles .ly-grp{flex-basis:100%;grid-column:1/-1;margin:6px 0 0;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--faint);font-weight:600}.layer-toggles .ly-grp:first-child{margin-top:0}
body.switching.quick-now .ov-now > .now{opacity:1}
/* Kihid nupp silmatorkavam */
.map-overlay .ly-btn{padding:9px 16px;font-size:14.5px;font-weight:600;color:var(--ink);border:1px solid rgba(124,212,255,.55);
  background:linear-gradient(135deg,rgba(124,212,255,.22),rgba(167,139,250,.16)),rgba(18,33,48,.94)!important;box-shadow:0 4px 18px rgba(0,0,0,.35),0 0 0 3px rgba(124,212,255,.08)}
.map-overlay .ly-btn svg{width:18px;height:18px;color:#9fdcff}
.map-overlay .ly-btn:hover{border-color:#9fdcff;box-shadow:0 4px 18px rgba(0,0,0,.35),0 0 0 4px rgba(124,212,255,.16)}
.map-overlay .ly-btn small{color:#cfe6f5}
/* tutvustus */
.tour{position:fixed;inset:0;z-index:5000;pointer-events:auto}
.tour-spot{position:fixed;border-radius:12px;box-shadow:0 0 0 9999px rgba(4,8,14,.66);outline:2px solid rgba(124,212,255,.85);transition:all .3s ease;pointer-events:none}
.tour-card{position:fixed;padding:16px 18px 14px;border-radius:14px;background:#122030;border:1px solid rgba(124,212,255,.45);box-shadow:0 18px 50px rgba(0,0,0,.5);color:var(--ink);transition:top .3s ease,left .3s ease}
.tour-card h3{margin:6px 0 6px;font-size:16px}.tour-card p{margin:0 0 12px;font-size:14px;line-height:1.5;color:#cbd8e6}
.tour-dots{display:flex;gap:5px}.tour-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.18)}.tour-dots i.on{background:#7cd4ff}
.tour-acts{display:flex;gap:8px;align-items:center}.tour-acts span{flex:1}
/* kasutajate haldus */
.adm-hbtns{display:flex;gap:8px}
.u-kpis{grid-template-columns:repeat(8,minmax(0,1fr))}
.u-bar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.u-bar input,.u-bar select{padding:8px 10px;border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;font-size:13px}
.u-bar input{flex:1 1 220px}
.u-tbl tbody tr{cursor:pointer}.u-tbl tbody tr:hover{background:rgba(124,212,255,.06)}
.u-tbl td .acc-pack{margin:2px 4px 2px 0}
.u-dlg .acc-card{max-width:640px;width:min(640px,94vw)}
.u-dh{display:flex;gap:12px;align-items:center}.u-dh h2{margin:0}.u-dh > div{flex:1}
.u-facts{margin:10px 0}
.u-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0}
.u-edit label,.u-note{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.u-edit input,.u-edit select,.u-note textarea{padding:7px 9px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;font-size:13.5px}
.u-note{margin:8px 0}
.u-acts{display:flex;flex-wrap:wrap;gap:8px}
.u-dlg h3{margin:16px 0 6px;font-size:13.5px}
.adm-roles-d{margin-top:12px}.adm-roles-d summary{cursor:pointer;color:var(--muted)}
@media (max-width:1100px){.u-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:640px){.u-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.u-kpis > div{padding:8px 8px}.u-kpis b{font-size:18px}.u-kpis span{font-size:11px;line-height:1.2}.u-edit{grid-template-columns:1fr}
  .u-bar select{flex:1 1 40%}
  .u-tbl thead{display:none}.u-tbl, .u-tbl tbody{display:block}.u-tbl tbody tr{display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding:10px 4px;border-bottom:1px solid var(--line)}
  .u-tbl td{display:block;border:0!important;padding:0!important}.u-tbl td:first-child{grid-column:1/-1}.u-tbl td:nth-child(5){display:none}}

/* juhtpaneel: kiirtegevused, teadaanne, OSM-i kihid */
.adm-acts{display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:8px}
.adm-acts .ghost{padding:9px 10px; font-size:13px; text-align:left; color:var(--ink); border-radius:9px; background:rgba(124,212,255,.05)}
.adm-acts .ghost:hover{background:rgba(124,212,255,.12)}
.adm-acts .ghost.danger{color:#ff9aa8; border-color:rgba(227,54,76,.45)}
.adm-act-msg{min-height:1.2em; margin:8px 0 0}
.adm-ann textarea{width:100%; box-sizing:border-box; background:rgba(0,0,0,.2); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:8px; font:inherit; font-size:13px; resize:vertical}
.adm-ann .acc-row{flex-wrap:wrap; gap:8px; align-items:center}
.adm-ann select{background:var(--bg-2); color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:5px 6px}
.adm-ann-push{font-size:12.5px; color:var(--muted); display:flex; gap:5px; align-items:center}
.adm-ann-live{font-size:13px; padding:7px 9px; border-radius:8px; background:rgba(124,212,255,.08); border:1px solid rgba(124,212,255,.25)}
.adm-osm td, .adm-osm th{padding:4px 6px; font-size:12.5px}
.adm-osm tr.bad td{color:#ff9aa8}
.adm-mini{padding:1px 7px !important; font-size:12px}
/* teadaande riba */
.ann-bar{position:fixed; z-index:900; bottom:18px; left:18px; width:min(440px, calc(100vw - 24px)); box-sizing:border-box;
  display:flex; gap:10px; align-items:center; padding:9px 12px 9px 14px; font-size:13.5px; border:1px solid rgba(124,212,255,.35); border-radius:12px; box-shadow:0 8px 28px rgba(0,0,0,.45); backdrop-filter:blur(10px);
  background:linear-gradient(90deg, rgba(30,70,110,.92), rgba(22,42,62,.92)); color:var(--ink)}
.ann-bar p{margin:0; flex:1; min-width:0}
@media (max-width:760px){ .ann-bar{left:12px; bottom:calc(70px + env(safe-area-inset-bottom, 0px))} }
body:has(.tour) .ann-bar{display:none}
.ann-bar > span{font-size:15px}
.ann-bar button{background:none; border:0; color:var(--muted); cursor:pointer; font-size:14px; padding:2px 6px}
.ann-bar.ann-warn{background:linear-gradient(90deg, rgba(120,66,20,.94), rgba(60,38,20,.92)); border-color:rgba(242,147,63,.55)}
.ann-bar.ann-ok{background:linear-gradient(90deg, rgba(26,90,52,.94), rgba(20,50,36,.92)); border-color:rgba(80,200,120,.5)}
@media (max-width:560px){ .ln-card{max-width:100%; box-sizing:border-box} .ln-top{flex-wrap:wrap; row-gap:4px} .ln-top b{white-space:normal; overflow-wrap:anywhere} }
.adm-relay{margin:10px 0; padding:10px 12px; border-radius:10px; border:1px solid var(--line); background:rgba(124,212,255,.04)}
.adm-relay.ok{border-color:rgba(80,200,120,.45)} .adm-relay.bad{border-color:rgba(227,54,76,.5)}
.adm-relay p{margin:4px 0 8px}
/* viide teisele lehele (asjad kolisid: nt lõkkekohad → Matkamine ja RMK) */
.go-link{display:block; margin-top:16px; padding:12px 16px; border-radius:12px; border:1px dashed rgba(124,212,255,.4); color:var(--muted); text-decoration:none; font-size:14px; background:rgba(124,212,255,.04)}
.go-link:hover{color:var(--ink); border-style:solid; background:rgba(124,212,255,.09)}
.go-link b{color:var(--ink)}
.u-dlg .adm-new-p{display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center}
.u-dlg .adm-new-p label{display:inline-flex; flex-direction:row; gap:6px; align-items:center; font-size:13px}

/* ilmakalender (kuu prognoos päev päevalt) */
.mo-cal .mc-wd, .mo-cal .mc-grid{display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px}
.mo-cal .mc-wd span{font-size:11.5px; color:var(--muted); text-align:center; padding:2px 0 4px}
.mc-d{position:relative; min-height:104px; display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 4px 7px; border-radius:10px;
  border:1px solid var(--line); background:rgba(255,255,255,.025); color:var(--ink); font:inherit; cursor:pointer; text-align:center}
.mc-d svg{width:34px; height:34px}
.mc-d.past, .mc-d.none{opacity:.28; cursor:default; background:none}
.mc-n{align-self:flex-start; font-size:11.5px; color:var(--muted); line-height:1}
.mc-d.today{border-color:#7cd4ff; box-shadow:0 0 0 1px rgba(124,212,255,.35) inset} .mc-d.today .mc-n{color:#7cd4ff; font-weight:700}
.mc-t{display:flex; gap:6px; align-items:baseline; font-size:14px} .mc-t i{font-style:normal; color:var(--muted); font-size:12.5px}
.mc-p{font-size:11.5px; color:#7cc0f0; min-height:1em} .mc-p small{color:var(--muted)}
.mc-r{font-size:10.5px; color:var(--faint)}
.mc-d.k2{background:rgba(255,255,255,.02)} .mc-d.k3{opacity:.82; border-style:dashed} .mc-d.k4{opacity:.62; border-style:dashed}
.mc-d.warm{background:rgba(242,147,63,.09)} .mc-d.warm2{background:rgba(242,147,63,.18)}
.mc-d.cold{background:rgba(124,192,240,.09)} .mc-d.cold2{background:rgba(124,192,240,.18)}
.mc-d.sel{outline:2px solid #7cd4ff; outline-offset:1px; opacity:1}
.mc-d:not(.past):not(.none):hover{border-color:var(--muted)}
.mc-info{margin-top:10px; padding:10px 12px; border-radius:10px; border:1px solid var(--line); background:rgba(124,212,255,.05); font-size:13.5px}
.mc-kv{display:flex; flex-wrap:wrap; gap:4px 16px; margin:6px 0}
.mo-cal-leg{display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:10px; font-size:11.5px; color:var(--muted)}
.mo-cal-leg .lg{display:inline-block; width:12px; height:12px; border-radius:3px; border:1px solid var(--line); vertical-align:-2px; margin-right:4px}
.mo-cal-leg .lg.k3, .mo-cal-leg .lg.k4{border-style:dashed} .mo-cal-leg .lg.k4{opacity:.6}
.mo-cal-leg .lg.warm{background:rgba(242,147,63,.3)} .mo-cal-leg .lg.cold{background:rgba(124,192,240,.3)}
@media (max-width:640px){ .mo-cal .mc-wd, .mo-cal .mc-grid{gap:3px} .mc-d{min-height:84px; padding:4px 1px 5px; border-radius:7px} .mc-d svg{width:24px; height:24px}
  .mc-t{flex-direction:column; gap:0; font-size:13px; line-height:1.15} .mc-p small, .mc-r{display:none} .mc-p{font-size:10.5px} .mc-n{font-size:10.5px} }

/* vaate tase: Lihtne / Tavaline / Ekspert */
.mode-btn{display:inline-flex; align-items:center; gap:6px; padding:4px 10px !important; font-size:12.5px !important; color:var(--ink) !important; border-radius:999px !important}
.mode-ic{display:inline-block; width:12px; height:12px; border-radius:50%; border:2px solid currentColor; flex:none}
.mode-ic.m-lihtne{background:none; border-color:#7fe0a0} .mode-ic.m-tavaline{background:linear-gradient(90deg,#7cd4ff 50%,transparent 50%); border-color:#7cd4ff}
.mode-ic.m-ekspert{background:#f2933f; border-color:#f2933f; box-shadow:0 0 0 2px rgba(242,147,63,.25)}
.mode-menu{position:fixed; z-index:2000; width:min(320px, calc(100vw - 16px)); padding:8px; border-radius:12px; background:var(--bg-2); border:1px solid var(--line); box-shadow:0 12px 32px rgba(0,0,0,.5)}
.mode-menu > small{display:block; padding:2px 6px 6px}
.mode-menu button{display:flex; gap:10px; align-items:flex-start; width:100%; text-align:left; padding:8px; border-radius:9px; border:1px solid transparent; background:none; color:var(--ink); font:inherit; cursor:pointer}
.mode-menu button .mode-ic{margin-top:3px}
.mode-menu button span{display:flex; flex-direction:column} .mode-menu button small{color:var(--muted); font-size:12px}
.mode-menu button.on{border-color:rgba(124,212,255,.45); background:rgba(124,212,255,.07)}
.mode-menu button:hover{background:rgba(255,255,255,.05)}
@media (max-width:760px){ .mode-btn span{display:none} .mode-btn{padding:6px !important} }
body[data-mode="lihtne"] [data-ly="h-vederi-prognoos-48-h"], body[data-mode="lihtne"] [data-ly="h-kui-tapne-veder-on"],
body[data-mode="lihtne"] section[data-tab="kuuprognoos"] .chart-wrap, body[data-mode="lihtne"] .x-tech{display:none !important}
body:not([data-mode="ekspert"]) .x-only{display:none !important}
.simple-card{margin:0 0 14px}
.sc-days{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px}
.sc-day{display:flex; gap:10px; align-items:flex-start; padding:10px; border-radius:12px; border:1px solid var(--line); background:rgba(255,255,255,.03)}
.sc-day svg{width:44px; height:44px; flex:none} .sc-day b{font-size:15px} .sc-day p{margin:2px 0 6px; font-size:14px; line-height:1.4}
.sc-tips{display:flex; flex-wrap:wrap; gap:5px} .sc-tips span{font-size:12.5px; padding:2px 8px; border-radius:999px; background:rgba(124,212,255,.09); border:1px solid rgba(124,212,255,.25)}

/* sondeering */
.sd-ctl{display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; margin:4px 0 10px}
.sd-ctl label{display:flex; gap:8px; align-items:center; font-size:13px; color:var(--muted)} .sd-ctl input[type=range]{width:min(320px,60vw)}
.sd-ctl select{background:var(--bg-2); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:5px 8px}
.sd-verdict{padding:8px 12px; border-radius:10px; border:1px solid var(--line); margin-bottom:10px; font-size:14px}
.sd-verdict p{margin:3px 0} .sd-verdict.lvl1{border-color:#f1cb4a} .sd-verdict.lvl2{border-color:#f2933f; background:rgba(242,147,63,.07)} .sd-verdict.lvl3{border-color:#e3364c; background:rgba(227,54,76,.09)}
.sd-grid{display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:14px} @media (max-width:980px){ .sd-grid{grid-template-columns:minmax(0,1fr)} }
.sd-svg{width:100%; height:auto; background:#0b151f; border-radius:10px; border:1px solid var(--line)}
.sd-iso{stroke:rgba(255,255,255,.12); stroke-width:1} .sd-iso0{stroke:rgba(124,212,255,.55); stroke-width:1.4}
.sd-dry{fill:none; stroke:rgba(127,224,160,.22); stroke-width:1} .sd-moist{fill:none; stroke:rgba(124,192,240,.25); stroke-width:1} .sd-mix{fill:none; stroke:rgba(200,170,255,.3); stroke-width:1}
.sd-mixl{fill:rgba(200,170,255,.6); font-size:9px}
.sd-t{fill:none; stroke:#ff6b6b; stroke-width:2.6; stroke-linejoin:round} .sd-td{fill:none; stroke:#5fd38a; stroke-width:2.6; stroke-linejoin:round}
.sd-par{fill:none; stroke:#fff; stroke-width:1.6; stroke-dasharray:6 4}
.sd-cape{fill:rgba(242,147,63,.35); stroke:none} .sd-cin{fill:rgba(124,192,240,.3); stroke:none}
.sd-pax{stroke:rgba(255,255,255,.22); stroke-width:1} .sd-lab{fill:var(--muted); font-size:11px} .sd-lvl{stroke:#f1cb4a; stroke-width:1.2} .sd-lvlt{fill:#f1cb4a; font-size:10.5px; font-weight:600}
.sd-barb{stroke:#dfe8ef; stroke-width:1.5; fill:none} .sd-flag{fill:#dfe8ef}
.sd-side{display:flex; flex-direction:column; gap:6px}
.sd-hodo-svg{width:200px; max-width:100%; align-self:center; background:#0b151f; border-radius:10px; border:1px solid var(--line)}
.sd-hr{fill:none; stroke:rgba(255,255,255,.14)} .sd-hodo{stroke-width:2.4} .sd-hodo.h1{stroke:#e3364c} .sd-hodo.h3{stroke:#f2933f} .sd-hodo.h6{stroke:#f1cb4a} .sd-hodo.h9{stroke:#7cc0f0}
.sd-tbl td{padding:4px 6px; font-size:12.5px} .sd-tbl td:last-child{text-align:right; white-space:nowrap} .sd-tbl .bad{color:#ff8a8a} .sd-tbl .warn{color:#f2b05a}
/* sünoptiline kaart */
.syn-presets{flex-wrap:wrap; margin:4px 0 10px}
.syn-wrap{position:relative} #synMap, #ohMap{height:min(68vh,640px); border-radius:12px; overflow:hidden; border:1px solid var(--line)}
@media (max-width:640px){ #synMap, #ohMap{height:62vh} }
.syn-when{position:absolute; top:10px; right:10px; z-index:500; padding:6px 10px; border-radius:9px; background:rgba(14,26,37,.85); border:1px solid var(--line); font-weight:700; font-size:14px}
.syn-when small{color:var(--muted); font-weight:500}
.syn-ctl{display:flex; gap:8px; align-items:center; margin:8px 0} .syn-ctl input{flex:1}
.syn-leg{display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; font-size:11.5px; color:var(--muted)} .syn-leg b{color:var(--ink); margin-right:4px}
.syn-leg i{display:inline-block; width:14px; height:10px; border-radius:2px; margin-right:3px; vertical-align:-1px}
.syn-pt{margin-top:6px; font-size:12.5px}
/* ansambel */
.ens-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px} .ens-grid h3{font-size:13px; margin:0 0 4px}
@media (max-width:900px){ .ens-grid{grid-template-columns:minmax(0,1fr)} }
/* ohtlikud nähtused */
.oh-off{display:flex; flex-direction:column; gap:6px; margin-bottom:10px} .oh-w{display:flex; flex-wrap:wrap; gap:4px 12px; padding:8px 12px; border-radius:10px; border-left:4px solid #f1cb4a; background:rgba(241,203,74,.08)}
.oh-w.c-orange{border-color:#f2933f; background:rgba(242,147,63,.1)} .oh-w.c-red{border-color:#e3364c; background:rgba(227,54,76,.12)} .oh-w small{color:var(--muted)}
.oh-sum{display:flex; flex-direction:column; gap:2px; padding:10px 14px; border-radius:12px; border:1px solid rgba(80,200,120,.45); background:rgba(80,200,120,.06); margin-bottom:10px}
.oh-sum.lvl1{border-color:#f1cb4a; background:rgba(241,203,74,.08)} .oh-sum.lvl2{border-color:#f2933f; background:rgba(242,147,63,.1)} .oh-sum.lvl3{border-color:#e3364c; background:rgba(227,54,76,.12)}
.oh-sum span{font-size:13px; color:var(--muted)}
.oh-ev{display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:8px; margin-bottom:12px}
.oh-e{display:flex; gap:10px; padding:9px 12px; border-radius:10px; border:1px solid var(--line); border-left:4px solid var(--c)} .oh-e p{margin:2px 0 0; font-size:13px; color:var(--muted)} .oh-ic{font-size:22px}
.oh-tl{overflow-x:auto; padding-bottom:4px} .oh-tl-h, .oh-tl-r{display:grid; grid-template-columns:150px repeat(var(--n,73),minmax(6px,1fr)); gap:1px; align-items:center; min-width:620px}
.oh-tl-h i{font-style:normal; font-size:10px; color:var(--muted); white-space:nowrap} .oh-tl-h i.mid{color:var(--ink); font-weight:700}
.oh-tl-r{margin-top:2px} .oh-tl-r span{font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis} .oh-tl-r i{height:16px; background:rgba(255,255,255,.04); border-radius:2px}
@media (max-width:760px){ .topbar{grid-template-columns:auto minmax(0,1fr) repeat(4, auto) !important} }
/* sünoptiku töölaud */
.tl-top{display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:14px; margin-bottom:12px} @media (max-width:900px){ .tl-top{grid-template-columns:minmax(0,1fr)} }
.tl-top h3, .tl-bottom h3{font-size:13.5px; margin:0 0 6px}
.tl-sit{padding:12px 14px; border-radius:12px; border:1px solid rgba(124,212,255,.3); background:rgba(124,212,255,.05)} .tl-sit p{font-size:14.5px; line-height:1.5; margin:0 0 10px}
.tl-links{display:flex; flex-wrap:wrap; gap:6px} .tl-links .ghost{padding:5px 10px; font-size:12.5px; color:var(--ink)}
.tl-learn{padding:12px 14px; border-radius:12px; border:1px solid var(--line)} .tl-lv{display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; margin:6px 0; font-size:12.5px} .tl-lv b{min-width:84px}
.tl-lv span{position:relative; padding:2px 8px; border-radius:6px; border:1px solid var(--line); overflow:hidden} .tl-lv span i{position:absolute; inset:0 auto 0 0; background:rgba(124,212,255,.15); z-index:-1}
.tl-lv small{color:#f2b05a}
.tl-acts{display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:8px 0 12px}
.tl-periods{display:flex; flex-direction:column; gap:10px}
.tl-p{border:1px solid var(--line); border-radius:12px; padding:10px 12px} .tl-p.tl-night{background:rgba(80,100,160,.06)} .tl-p.tl-day{background:rgba(240,214,92,.035)}
.tl-ph{display:flex; flex-wrap:wrap; gap:4px 12px; align-items:baseline; margin-bottom:6px} .tl-ph b{font-size:15px} .tl-ph small{color:var(--muted)}
.tl-cols{display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:12px} @media (max-width:800px){ .tl-cols{grid-template-columns:minmax(0,1fr)} }
.tl-cols textarea{width:100%; box-sizing:border-box; background:rgba(0,0,0,.22); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:7px 9px; font:inherit; font-size:14px; line-height:1.45; resize:vertical}
.tl-cols textarea.edited{border-color:#f2b05a} .tl-cols label{display:block; margin-top:6px}
.tl-off{font-size:13.5px; padding:4px 10px; border-left:3px solid var(--line)} .tl-off p{margin:4px 0}
.tl-bottom{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:14px} @media (max-width:900px){ .tl-bottom{grid-template-columns:minmax(0,1fr)} }
.tl-tbl td, .tl-tbl th{padding:4px 6px; font-size:12.5px}
.tl-hz{margin:3px 0; padding-left:8px; border-left:4px solid var(--c); font-size:13px} .tl-hz small{color:var(--muted)}
.tl-src{display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px} .tl-src div{display:flex; flex-direction:column; gap:3px; font-size:13px}
.tl-src a{color:#9fd0e4; text-decoration:none} .tl-src a:hover{text-decoration:underline}
/* anomaaliad (admin) */
.an-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px} @media (max-width:900px){ .an-grid{grid-template-columns:minmax(0,1fr)} }
.an-card{padding:12px 14px; border-radius:12px; border:1px solid var(--line); background:rgba(255,255,255,.02)} .an-card h3{margin:0 0 8px; font-size:14px} .an-card p{font-size:13.5px; margin:6px 0}
.an-yes{color:#f2b05a; font-weight:600} .an-no{color:#7fe0a0}
.an-strip{display:grid; grid-template-columns:repeat(49,minmax(0,1fr)); gap:1px; margin:4px 0 8px} .an-strip i{height:10px; border-radius:2px; background:rgba(255,255,255,.05)}
.an-tbl td, .an-tbl th{padding:3px 6px; font-size:12.5px}
.an-geo{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:10px} .an-g{padding:10px 12px; border-radius:10px; border:1px solid var(--line); font-size:13px}
.an-g p{margin:4px 0} .an-g small{display:block} .an-g a{color:#9fd0e4; text-decoration:none}
/* kaardi kiirkihid: kõige tähtsamad ühe klõpsuga (2026-10) */
.ly-quick{display:flex;flex-wrap:wrap;gap:5px;max-width:min(460px,calc(100vw - 90px))}
.ly-quick button{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:999px;font-size:12.5px;font-weight:600;cursor:pointer;
  color:#cfe0ec;background:rgba(18,33,48,.9);border:1px solid rgba(255,255,255,.14);box-shadow:0 2px 10px rgba(0,0,0,.28);backdrop-filter:blur(10px);transition:background .15s,border-color .15s,color .15s}
.ly-quick button:hover{border-color:rgba(124,212,255,.6)}
.ly-quick button[aria-pressed="true"]{color:#06121c;background:linear-gradient(135deg,#9fdcff,#7cc4ff);border-color:#bfe8ff}
.ly-quick .ly-more{color:#9fdcff;border-style:dashed}
.ly-quick button[hidden]{display:none}
body.wallpaper .ly-quick{display:none}
@media (max-width:760px){.ly-quick{flex-wrap:nowrap;overflow-x:auto;max-width:calc(100vw - 70px);scrollbar-width:none;padding-bottom:2px}.ly-quick::-webkit-scrollbar{display:none}.ly-quick button{flex:none}}
/* juhtpaneel: kokkuvõte, külastused, logi */
.adm-sum{border-color:rgba(124,212,255,.35);background:linear-gradient(135deg,rgba(124,212,255,.08),rgba(167,139,250,.05)),var(--glass)}
.adm-sum-t p{margin:0 0 6px;line-height:1.5;font-size:14px}
.adm-todo{margin:8px 0 0;padding:8px 10px;border-radius:8px;background:rgba(241,203,74,.1);border:1px solid rgba(241,203,74,.35);font-size:13px}
.adm-traffic{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px;align-items:start}
@media (max-width:760px){.adm-traffic{grid-template-columns:1fr}}
.adm-tr-svg{width:100%;height:130px;display:block}
.adm-tr-svg g:hover rect{opacity:1;filter:brightness(1.25)}
.adm-sw{display:inline-block;width:10px;height:10px;border-radius:2px;background:var(--ice);vertical-align:-1px}.adm-sw.g{opacity:.38}
.adm-top{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.adm-top li{display:grid;grid-template-columns:minmax(0,1fr) 70px 34px;gap:8px;align-items:center;font-size:13px}
.adm-top li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.adm-top li i{height:6px;border-radius:3px;background:var(--ice);opacity:.8}
.adm-top li small{text-align:right;color:var(--muted)}
.adm-audit td{vertical-align:top}.adm-audit td:last-child{max-width:340px}
/* täpsuse tabel */
.sb-ctl{display:flex;gap:6px}.sb-ctl select{font-size:12.5px}
.sb-lead{font-size:15px;line-height:1.5;margin:4px 0 12px}
.sb-tbl{width:100%;border-collapse:collapse;font-size:13.5px}
.sb-tbl th{font-weight:600;color:var(--muted);text-align:left;padding:6px 8px;border-bottom:1px solid var(--line);font-size:12px}
.sb-tbl td{padding:7px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
.sb-tbl td small{color:var(--muted);font-size:11px}
.sb-tbl tr.me td{background:rgba(124,212,255,.09)}.sb-tbl tr.me td:nth-child(2) b{color:var(--ice)}
.sb-tbl tr.ee td{background:rgba(241,203,74,.07)}.sb-tbl tr.ee td:nth-child(2) b{color:#f1cb4a}
.sb-chart svg{width:100%;height:160px;display:block;margin-top:14px}
.yd-st{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:10px 0;background:var(--glass)}
.yd-st.bad{border-color:rgba(255,138,150,.35)}.yd-st.ok{border-color:rgba(127,224,160,.35)}
.yd-st h3{margin:0 0 4px;font-size:15px}.yd-st h3 small{color:var(--muted);font-weight:400;font-size:12px}
.yd-head{margin:0 0 8px;font-weight:600}
.yd-st ul{margin:0;padding-left:18px;display:grid;gap:6px}.yd-st li{line-height:1.45;font-size:13.5px}
.yd-st li.ok::marker{color:#7fe0a0}.yd-st li.bad::marker{color:#ff8a96}.yd-st li span{color:var(--muted)}
.yd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px}
/* lume ja vihma piir, külmaaugud */
.pt-sum,.fr-sum{font-size:15px;line-height:1.5;margin:4px 0 10px}
.pt-map,.fr-map{height:380px;border-radius:12px;overflow:hidden;border:1px solid var(--line)}
@media (max-width:760px){.pt-map,.fr-map{height:300px}}
.pt-leg,.fr-leg{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0;font-size:12.5px;color:var(--muted)}
.pt-leg i,.fr-leg i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.pt-frames{list-style:none;padding:0;margin:6px 0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px}
.pt-ob span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(10,20,30,.85);border:1.5px solid var(--c);font-size:12px;color:var(--c)}
/* häired */
.dz-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.dz-r{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--glass)}
.dz-r.bad{border-color:rgba(255,107,107,.5)}.dz-r.warn{border-color:rgba(241,203,74,.5)}
.dz-r p{margin:4px 0;font-size:13.5px}.dz-r small{color:var(--muted);font-size:11.5px;line-height:1.4;display:block}
.dz-spark{width:100%;height:34px;display:block;margin:4px 0}
.dz-now{font-size:15px;line-height:1.5}.dz-peaks{margin:6px 0;padding-left:18px;font-size:13.5px}
/* Sinu päev */
.day-line{margin:14px 0}
.dl-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}
.dl-head h2{margin:0;font-size:15px}.dl-set{font-size:12px;padding:3px 9px}
.dl-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
.dl-it{border:1px solid var(--line);border-radius:12px;padding:9px 11px;background:var(--glass);min-width:0}
.dl-h{display:flex;align-items:center;gap:6px;font-size:12.5px}.dl-h small{margin-left:auto;color:var(--muted)}
.dl-w{display:flex;align-items:center;gap:6px;margin:4px 0 2px}.dl-w > :first-child{width:30px;height:30px;flex:none}.dl-w svg{width:30px;height:30px}.dl-w b{font-size:20px}
.dl-it p{margin:0;font-size:12.5px;color:var(--muted);line-height:1.35}
body.wallpaper .day-line{display:none}
/* otsing */
.srch-btn{display:inline-flex;align-items:center;gap:6px}
.srch-btn span{font-size:13px}
@media (max-width:900px){.srch-btn span{display:none}}
.srch-dlg{width:min(560px,calc(100vw - 24px));padding:0;margin-top:10vh}
.srch{padding:14px}
.srch-in{width:100%;font-size:17px;padding:11px 13px;border-radius:10px;border:1px solid var(--line);background:rgba(0,0,0,.25);color:var(--ink)}
.srch-res{list-style:none;margin:10px 0 0;padding:0;max-height:52vh;overflow:auto}
.srch-res li{padding:9px 11px;border-radius:9px;cursor:pointer;display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.srch-res li small{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.srch-res li.on,.srch-res li:hover{background:rgba(124,212,255,.14)}
.srch-foot{margin:8px 2px 0;font-size:11.5px}
.srch-hit{outline:2px solid var(--ice);outline-offset:3px;border-radius:12px;transition:outline-color 2s}
/* harvad vaated */
.st-more-btn{opacity:.8;border-style:dashed!important}
.st-more-menu{position:fixed;z-index:3000;min-width:220px}
.adm-views tr.dim td{opacity:.6}
/* kohaleht: lühike tekst lehe lõpus (otsingumootoritele ja ilma JS-ita) */
.seo-place{max-width:1100px;margin:28px auto 18px;padding:0 16px;color:var(--muted);font-size:12.5px;line-height:1.5}
.seo-place h1{font-size:14px;margin:0 0 4px;color:var(--ink)}.seo-place a{color:var(--muted)}
body.wallpaper .seo-place{display:none}
/* äpina paigaldamise riba (telefon) */
.pwa-bar{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:4000;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;
  background:rgba(14,26,36,.97);border:1px solid rgba(124,212,255,.35);box-shadow:0 10px 30px rgba(0,0,0,.5)}
.pwa-bar img{border-radius:8px}.pwa-bar p{margin:0;flex:1;display:flex;flex-direction:column;font-size:14px}.pwa-bar small{color:var(--muted);font-size:12px}
/* Lihtne vaade: kokkuvõte vasakus veerus, kaart jääb täiskõrguseks */
.ov-now{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.ov-now .simple-card{margin:0;padding:12px;background:rgba(255,255,255,.025)}
.ov-now .simple-card .sc-days{grid-template-columns:1fr;gap:8px}
.ov-now .simple-card .sc-day{padding:8px 10px}.ov-now .simple-card .sc-day svg{width:34px;height:34px}
.ov-now .simple-card .sc-day p{font-size:13px}
/* madal kaart: nupud ühele reale, kiirkihid peitu (need on menüüs „Kihid“), et midagi ei kattuks */
#mapWrap.map-short .map-tools{flex-direction:row;flex-wrap:wrap;align-items:center}
#mapWrap.map-short .ly-quick{display:none}
#mapWrap.map-short .map-overlay .ly-btn{padding:6px 11px;font-size:13px}
#mapWrap.map-short .tm-legend{display:none}
.fe-learn{margin:6px 0 4px;font-size:13px}.fe-learn small{display:block;color:var(--muted);font-size:11.5px}
.fe-learn.warn b{color:#f1cb4a}.fe-learn.bad b{color:#ff6b6b}
.lang-btn{font-weight:700;font-size:12.5px;letter-spacing:.04em;padding:5px 10px}
.lang-menu small{display:block;padding:6px 8px 2px;font-size:11.5px}
/* kogukond: radar pole kindel -> küsi */
.rep-ask{grid-column:1/-1; margin-top:10px; padding:9px 11px; border-radius:12px; border:1px solid rgba(124,212,255,.3); background:rgba(124,212,255,.07);
  display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; font-size:13px}
.rep-ask small{color:var(--muted); flex:1 1 180px}
.rep-ask .ra-opts{display:flex; gap:6px; flex-wrap:wrap}
.rep-ask button{padding:5px 10px; border-radius:999px; border:1px solid var(--card-brd); background:var(--glass); color:inherit; cursor:pointer; font:inherit; font-size:12.5px}
.rep-ask .ra-x{padding:5px 8px; color:var(--muted)}
.rep-pop .rp-help{margin:0 0 8px; font-size:12.5px; padding:7px 9px; border-radius:10px; background:rgba(120,220,150,.1)}
/* ligipääsetavus */
main#sisu{display:contents}
.skip-link{position:absolute; left:-9999px; top:8px; z-index:9999; padding:8px 14px; border-radius:10px; background:var(--bg-2); color:var(--ink); border:2px solid #7cd4ff}
.skip-link:focus{left:12px}
:focus-visible{outline:2px solid #7cd4ff; outline-offset:2px}
button:focus-visible,a:focus-visible,[role=tab]:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #7cd4ff; outline-offset:2px}
.site-foot{text-align:center; font-size:12px; color:var(--muted); padding:18px 16px 28px}
.site-foot a{color:var(--muted)}
body.wallpaper .site-foot,body.tv .site-foot{display:none}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto} .rep-ask,.rep-pop{animation:none}}
.sr-only{position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.as-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; margin-top:8px}
.as-card{border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:var(--glass)}
.as-card h3{margin:0 0 4px; font-size:15px}
.as-big{font-size:30px; font-weight:700; margin:2px 0}.as-big small{font-size:13px; font-weight:400; color:var(--muted)}
.as-big.ok,.as-tbl .ok{color:#7fe0a0}.as-big.mid,.as-tbl .mid{color:#f1cb4a}.as-big.bad,.as-tbl .bad{color:#ff8a96}
.as-tbl{width:100%; border-collapse:collapse; font-size:13px; margin-top:6px}.as-tbl th,.as-tbl td{text-align:left; padding:4px 6px; border-bottom:1px solid var(--line)}
.as-tbl th{color:var(--muted); font-weight:500}

/* kiiruskaamerad */
.sc-pin{display:grid; place-items:center; min-width:20px; height:20px; padding:0 3px; border-radius:50%; background:#fff; color:#111; font:800 10px/1 system-ui;
  border:3px solid var(--c); box-shadow:0 1px 4px rgba(0,0,0,.55)}
.sc-pin.sc-red{background:#1b232c; font-size:11px}
.sc-route{margin:8px 0} .sc-route summary{cursor:pointer; font-weight:600} .sc-route ul{margin:6px 0 4px 18px; padding:0} .sc-route li{margin:2px 0}
/* paketid: nõusolek, testrežiim, pere */
.pl-consent{display:flex; gap:10px; align-items:flex-start; max-width:820px; margin:14px auto 4px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; font-size:14px; line-height:1.45}
.pl-consent input{margin-top:3px; width:18px; height:18px; flex:none}
.pl-consent.need{border-color:#f2933f; box-shadow:0 0 0 2px rgba(242,147,63,.35)}
.pl-msg.warn{background:rgba(241,203,74,.12); border-color:rgba(241,203,74,.5)}
.pl-family{max-width:820px; margin:22px auto 0} .pl-fam{list-style:none; padding:0; margin:8px 0 12px}
.pl-fam li{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--line-soft)}
.pl-fam small{color:var(--muted)}
.adm-check{list-style:none; padding:0; margin:10px 0; font-size:14px} .adm-check li{margin:4px 0}
.adm-billset label{display:block; margin:8px 0} .adm-billset input[type=number]{width:80px}
.pl-bank{max-width:820px; margin:22px auto 0} .pl-bank-rows{display:grid; gap:8px; margin:10px 0}
.pl-bank-row{display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:12px}
.pl-bank-row b{min-width:70px} .pl-bank-row small{opacity:.8; font-weight:400}
.pl-pays ul{margin:6px 0 4px 18px; padding:0} .pl-pays li{margin:2px 0}
