:root {
  --bg: #0b0f14;
  --panel: rgba(16, 22, 30, .86);
  --panel-solid: #11171f;
  --stroke: rgba(255, 255, 255, .10);
  --stroke-strong: rgba(255, 255, 255, .18);
  --text: #e8edf4;
  --text-dim: #93a1b3;
  --text-faint: #67748a;
  --accent: #4ea3ff;
  --accent-soft: rgba(78, 163, 255, .16);
  --green: #5ed88a;
  --shadow: 0 8px 32px rgba(0, 0, 0, .45);
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --side-w: 168px;          /* vadības paneļa platums ainavā */
  --tap: 40px;
  --bar-h: 100px;          /* laika joslas augstums, ko uztur app.js */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input { font-family: inherit; touch-action: manipulation; }

#map { position: absolute; inset: 0; background: var(--bg); }

/* ───────────────────────────────────────────────────── Leaflet pielāgojumi */

.leaflet-container { background: #0b0f14; font-family: var(--font); }
.leaflet-top { z-index: 500; }              /* zem mūsu vadīklām */
.leaflet-top.leaflet-left { margin-top: 62px; }   /* zem pulksteņa */

.leaflet-control-zoom {
  border: none !important; box-shadow: none !important;
  margin: 12px !important; background: none !important;
}
.leaflet-control-zoom a,
.leaflet-touch .leaflet-control-zoom a {
  background: none; border: none;
  width: 32px; height: 30px; line-height: 28px;
  font-size: 23px; font-weight: 700;
  color: #f2f6fb;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 6px rgba(0, 0, 0, .5);
}
.leaflet-control-zoom a:hover { background: none; color: #fff; }
.leaflet-control-zoom a.leaflet-disabled { opacity: .35; }
body.light-map .leaflet-control-zoom a {
  color: #16202b;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .95), 0 0 6px rgba(255, 255, 255, .85);
}

.radar-img { transition: opacity .18s linear; will-change: opacity; }

/* ──────────────────────────────────────────── pulkstenis uz kartes */

.clock {
  position: absolute; z-index: 600;
  top: 10px; left: 14px;
  pointer-events: none;          /* karti drīkst vilkt arī zem pulksteņa */
  line-height: 1.08;
  color: #f2f6fb;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 10px rgba(0, 0, 0, .45);
}
.time-big { font-size: 30px; font-weight: 700; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.time-sub { font-size: 12px; margin-top: 2px; white-space: nowrap; opacity: .85; }
.time-sub .live { color: #7ef2a8; font-weight: 700; }
.time-sub .fc { color: #ffc27a; font-weight: 700; }

/* uz gaišās kartes cipariem jābūt tumšiem ar gaišu oreolu */
body.light-map .clock {
  color: #10161d;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .95), 0 0 10px rgba(255, 255, 255, .8);
}
body.light-map .time-sub .live { color: #0f8a43; }
body.light-map .time-sub .fc { color: #b26a00; }

/* ─────────────────────────────────────────────────────── kartes pogas */

.map-fabs {
  position: absolute; z-index: 600;
  top: 10px; right: calc(12px + var(--safe-r));
  display: flex; flex-direction: column; gap: 6px;
}

.fab {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none; padding: 0;
  color: #f2f6fb; cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)) drop-shadow(0 0 6px rgba(0, 0, 0, .5));
  transition: color .12s, transform .1s;
}
.fab svg { width: 25px; height: 25px; }
.fab:hover { color: #fff; }
.fab:active { transform: scale(.9); }
.fab[aria-pressed="true"] { color: var(--accent); }
.fab.searching { color: var(--accent); animation: pulse 1.1s ease-in-out infinite; }

body.light-map .fab {
  color: #16202b;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, .95)) drop-shadow(0 0 6px rgba(255, 255, 255, .85));
}
body.light-map .fab:hover { color: #000; }
body.light-map .fab[aria-pressed="true"] { color: #0b62c4; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* pašreizējā atrašanās vieta */
.gps-dot {
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.5);
}

/* ═════════════════════════════════════════════ laika josla (vienmēr redzama) */

.bar {
  position: absolute; z-index: 600;
  left: 12px; right: 12px;
  bottom: calc(8px + var(--safe-b));
  padding: 0;
  background: none; border: none; box-shadow: none;
  pointer-events: none;          /* karti drīkst vilkt starp vadīklām */
}
.bar .track,
.bar .transport,
.bar .icon-btn,
.bar .play-btn,
.bar #btnNow { pointer-events: auto; }

/* — ritentiņš — */

.track { position: relative; height: 46px; }

.rail, .fill, .grid, .load-bar { position: absolute; pointer-events: none; }

/* pati ass */
.rail {
  left: 0; right: 0; top: 15px; height: 8px; border-radius: 4px;
  background: rgba(255, 255, 255, .3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .25);
}
.fill {
  left: 0; top: 15px; height: 8px; border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0, 0, 0, .2);
  transition: width .12s linear;
}
body.light-map .rail {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .18);
}

/* stundu iedaļas pāri visai asij */
.grid { left: 0; right: 0; top: 9px; height: 20px; }
.grid-line {
  position: absolute; top: 0; width: 1px; height: 100%;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 0 2px rgba(0, 0, 0, .6);
  transform: translateX(-.5px);
}
body.light-map .grid-line {
  background: rgba(0, 0, 0, .45);
  box-shadow: 0 0 2px rgba(255, 255, 255, .8);
}

/* pašreizējais brīdis — te beidzas mērītie dati */
.now-mark {
  position: absolute; top: 4px; bottom: 12px; width: 2px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(94, 216, 138, .9);
  transform: translateX(-1px);
  pointer-events: none;
}
.now-mark span {
  position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; letter-spacing: .4px;
  color: var(--green); text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}
body.light-map .now-mark span {
  color: #0a7a3c;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .95), 0 0 5px rgba(255, 255, 255, .9);
}

.load-bar {
  left: 0; right: 0;
  top: 17px; height: 4px; border-radius: 2px; background: var(--accent);
  opacity: .22; transform-origin: left center; transform: scaleX(0);
  transition: transform .25s ease-out, opacity .3s;
}
.load-bar.busy {
  transform: none; opacity: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(78,163,255,.55) 45%,
                              rgba(78,163,255,.55) 55%, transparent 100%);
  background-size: 42% 100%; background-repeat: no-repeat;
  animation: sweep 1.1s ease-in-out infinite;
}
@keyframes sweep { 0% { background-position: -45% 0; } 100% { background-position: 145% 0; } }

.slider {
  -webkit-appearance: none; appearance: none;
  position: absolute; top: 0; left: 0;
  width: 100%; height: 38px;
  background: transparent; margin: 0; cursor: pointer;
}
.slider::-webkit-slider-runnable-track { height: 8px; margin-top: 15px; background: transparent; }
.slider::-moz-range-track { height: 8px; background: transparent; }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%; margin-top: -6px;
  background: #fff; border: 4px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 15, 20, .55), 0 2px 8px rgba(0, 0, 0, .6);
}
.slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 15, 20, .55);
}
.slider:focus-visible { outline: none; }
.slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(78,163,255,.4); }

/* prognozes daļa asī — svītrota, lai neizskatītos pēc izmērītiem datiem */
.future-zone {
  position: absolute; top: 15px; height: 8px;
  border-radius: 0 4px 4px 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg,
    rgba(255, 180, 92, .55) 0 3px, rgba(255, 180, 92, .12) 3px 7px);
}

.fc-badge {
  position: absolute; z-index: 610;
  top: 12px; left: 50%; transform: translateX(-50%);
  padding: 6px 13px; border-radius: 999px;
  background: rgba(38, 28, 16, .88);
  border: 1px solid rgba(255, 180, 92, .45);
  color: #ffc98a; font-size: 12px; font-weight: 600;
  white-space: nowrap; box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.note {
  margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: var(--text-faint);
}

.axis { position: absolute; top: 31px; left: 0; right: 0; height: 14px; pointer-events: none; }
.axis span {
  position: absolute; transform: translateX(-50%);
  font-size: 10.5px; font-weight: 650; color: #f2f6fb;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 6px rgba(0, 0, 0, .6);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
body.light-map .axis span {
  color: #10161d;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .95), 0 0 6px rgba(255, 255, 255, .85);
}

/* — vadīklu rinda — */

.controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1 1 0; min-width: 0; }

.transport { display: flex; align-items: center; gap: 4px; }

.ranges, .chips { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.chip {
  min-height: 32px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke);
  color: var(--text-dim);
  border-radius: 9px; padding: 6px 11px;
  font-size: 12.5px; font-weight: 550;
  cursor: pointer; white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
}
.chip:hover { background: rgba(255,255,255,.11); color: var(--text); }
.chip.on { background: var(--accent-soft); border-color: rgba(78,163,255,.55); color: #bcdcff; }
.arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 32px; flex: 0 0 auto;
  background: transparent; border: none; border-radius: 8px;
  color: var(--text-faint); cursor: pointer;
  transition: background .12s, color .12s;
}
.arrow svg { width: 15px; height: 15px; }
.arrow:hover { background: rgba(255,255,255,.1); color: var(--text); }
.chip-now { color: #a9e7c0; border-color: rgba(94,216,138,.28); }
.chip-now.on { background: rgba(94,216,138,.14); border-color: rgba(94,216,138,.5); color: #d3f6e0; }

/* joslā tas ir uz kartes, tāpēc bez fona un rāmja */
.bar #btnNow {
  background: none; border: none; padding: 4px 8px;
  color: #7ef2a8; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 6px rgba(0, 0, 0, .55);
}
body.light-map .bar #btnNow {
  color: #0a7a3c;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .95), 0 0 6px rgba(255, 255, 255, .9);
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); flex: 0 0 auto;
  background: none; border: none; padding: 0;
  color: #f2f6fb; cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)) drop-shadow(0 0 6px rgba(0, 0, 0, .5));
  transition: color .12s, transform .1s;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { color: #fff; }
.icon-btn:active { transform: scale(.9); }
.icon-btn:disabled { opacity: .35; cursor: default; }

body.light-map .bar .icon-btn {
  color: #16202b;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, .95)) drop-shadow(0 0 6px rgba(255, 255, 255, .85));
}
/* izvēlnē poga paliek uz paneļa, tur ēna nav vajadzīga */
.sheet .icon-btn { color: var(--text-dim); filter: none; }
.sheet .icon-btn:hover { color: var(--text); background: rgba(255,255,255,.12); }

.play-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: var(--tap); flex: 0 0 auto;
  background: none; border: none; padding: 0;
  color: var(--accent); cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .85)) drop-shadow(0 0 6px rgba(0, 0, 0, .5));
  transition: transform .1s, color .12s;
}
.play-btn svg { width: 30px; height: 30px; }
.play-btn:hover { color: #7ec0ff; }
.play-btn:active { transform: scale(.9); }
body.light-map .play-btn {
  color: #0b62c4;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, .95)) drop-shadow(0 0 6px rgba(255, 255, 255, .9));
}

/* ═════════════════════════════════════════════════════════ izvēlne */

/* Uz darbvirsmas tikai noķer klikšķi ārpus izvēlnes; mobilajā arī aptumšo. */
.scrim { position: absolute; inset: 0; z-index: 690; background: transparent; }

.sheet {
  position: absolute; z-index: 700;
  background: var(--panel-solid);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;

  /* darbvirsma: labās puses panelis */
  top: 12px; right: 12px; bottom: 12px; width: 320px;
  border-radius: 16px;
  animation: slide-right .2s ease-out;
}
@keyframes slide-right { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }

.sheet-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 10px 16px;
  border-bottom: 1px solid var(--stroke);
  flex: 0 0 auto;
}
.sheet-head h2 { margin: 0; flex: 1; font-size: 15px; font-weight: 600; }
.grip { display: none; }

.sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.block { padding: 14px 16px; border-bottom: 1px solid var(--stroke); }
.block:last-child { border-bottom: none; }
.block h3 {
  margin: 0 0 10px; font-size: 11px; font-weight: 600;
  letter-spacing: .9px; text-transform: uppercase; color: var(--text-faint);
}
.unit-note { color: var(--text-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* radaru saraksts */
.radar-list { display: flex; flex-direction: column; gap: 4px; }
.radar-row {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--tap);
  padding: 7px 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; user-select: none;
  transition: background .12s, border-color .12s;
}
.radar-row:hover { background: rgba(255,255,255,.05); }
.radar-row.on { background: rgba(255,255,255,.05); border-color: var(--stroke); }
.radar-row input { position: absolute; opacity: 0; pointer-events: none; }

.radar-swatch {
  width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto;
  background: var(--c); box-shadow: 0 0 9px var(--c);
  opacity: .28; transition: opacity .15s;
}
.radar-row.on .radar-swatch { opacity: 1; }

.radar-meta { min-width: 0; flex: 1; }
.radar-name { display: block; font-size: 13.5px; font-weight: 550; line-height: 1.25; }
.radar-row:not(.on) .radar-name { color: var(--text-faint); }
.radar-time {
  display: block; font-size: 11px; color: var(--text-faint); line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radar-time.stale { color: #d09a5a; }

/* slīdnis izvēlnē */
.block input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer;
}
.block input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; margin-top: 12px; border-radius: 2px; background: rgba(255,255,255,.14);
}
.block input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); }
.block input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; margin-top: -7px;
  background: #fff; border: 3px solid var(--accent);
}
.block input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent);
}

.window-nav { display: flex; gap: 6px; margin-top: 8px; }
.chip-wide { flex: 1; justify-content: center; }

.archive { display: flex; align-items: center; gap: 6px; }
.picker {
  flex: 1; min-width: 0; min-height: 34px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke); color: var(--text);
  border-radius: 9px; padding: 6px 9px;
  font-size: 12.5px; color-scheme: dark;
}
.picker:focus { outline: none; border-color: var(--accent); }

.legend { background: #fff; border-radius: 9px; padding: 7px; }
.legend img { display: block; width: 100%; height: auto; }
.legend.hidden { display: none; }

.sources { display: flex; flex-direction: column; gap: 7px; }
.sources a { display: flex; gap: 8px; color: var(--text-dim); text-decoration: none; font-size: 11.5px; line-height: 1.4; }
.sources a:hover { color: var(--accent); }
.sources .src-code { flex: 0 0 30px; color: var(--text-faint); font-weight: 600; font-size: 10.5px; letter-spacing: .5px; }

.info { margin-top: 12px; font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.info.err { color: #ff9b9b; }
.info:empty { display: none; }

.credit { margin-top: 10px; font-size: 10.5px; color: var(--text-faint); line-height: 1.55; }
.credit a { color: var(--text-dim); }

/* ═════════════════════════════════════════════════════════ paziņojums */

.toast {
  position: absolute; z-index: 800;
  left: 50%; bottom: calc(var(--bar-h) + var(--safe-b) + 28px); transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: var(--panel-solid); border: 1px solid var(--stroke-strong);
  border-radius: 11px; padding: 10px 16px;
  font-size: 12.5px; box-shadow: var(--shadow);
}

/* ═════════════════════════════════════════════════════════ gaišā karte */

body.light-map .leaflet-container { background: #eef1f5; }

/* ═════════════════════════════════════════════════════════ mobilais */

@media (max-width: 720px) {
  .bar {
    left: 8px; right: 8px;
    bottom: calc(8px + var(--safe-b));
    padding: 3px 10px 7px;
    border-radius: 18px;
  }

  .track { height: 42px; }
  .rail, .fill, .future-zone { top: 13px; }
  .grid { top: 7px; }
  .load-bar { top: 15px; }
  .slider { height: 34px; }
  .slider::-webkit-slider-runnable-track { margin-top: 13px; }
  .axis { top: 28px; }
  .axis span { font-size: 10px; }
  .axis span:nth-child(even) { display: none; }

  .controls { gap: 6px; }
  .transport { gap: 3px; }

  .icon-btn { width: 38px; height: 38px; border-radius: 10px; }
  .play-btn { width: 44px; height: 38px; }
  .clock { padding: 6px 12px 7px; }
  .time-big { font-size: 20px; }

  /* izvēlne = lapa, kas izslīd no apakšas */
  .sheet {
    top: auto; right: 0; left: 0; bottom: 0;
    width: auto; max-height: 86vh; max-height: 86dvh;
    border-radius: 20px 20px 0 0;
    border-left: none; border-right: none; border-bottom: none;
    padding-bottom: var(--safe-b);
    animation: slide-up .22s cubic-bezier(.2, .8, .3, 1);
  }
  .scrim { background: rgba(0, 0, 0, .45); animation: fade .18s ease-out; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  .sheet.dragging { animation: none; transition: none; }
  @keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }

  .sheet-head { padding: 6px 10px 10px 16px; flex-wrap: wrap; }
  /* rokturis aizņem visu rindu, bet pati "pogaļa" ir šaura un centrēta */
  .grip { display: block; flex: 0 0 100%; height: 4px; margin: 4px 0 9px; }
  .grip::before {
    content: ''; display: block; width: 38px; height: 4px;
    margin: 0 auto; border-radius: 2px; background: var(--stroke-strong);
  }

  .map-fabs { top: 8px; right: calc(10px + var(--safe-r)); }
  .fab { width: 40px; height: 40px; }

  .toast { bottom: calc(var(--bar-h) + var(--safe-b) + 30px); }
}

/* ļoti šauri ekrāni */
@media (max-width: 400px) {
  .time-big { font-size: 18px; }
  .time-sub { font-size: 10px; }
  .icon-btn { width: 36px; height: 36px; }
  .play-btn { width: 42px; height: 36px; }
  .transport { gap: 2px; }
}

/* zems ekrāns ainavas režīmā */
@media (max-height: 460px) and (max-width: 900px) {
  .track { height: 32px; }
  .ranges { flex: 0 1 auto; }
  .bar { padding: 2px 10px 6px; }
}

/* ═══════════════════════════════════ mobilais ainavā ══════════════════
   Karte aizņem visu logu. Skala un pogas — viena rinda pašā apakšā, bez fona.
   Izvēlne, sākumskats un atrašanās vieta — vertikāli pie labās malas. */

@media (orientation: landscape) and (max-height: 520px) {
  .bar {
    left: 12px;
    right: calc(64px + var(--safe-r));   /* vieta ikonu kolonnai */
    bottom: calc(6px + var(--safe-b));
    display: flex; align-items: center; gap: 14px;
  }

  /* `.controls` bērni kļūst par joslas tiešiem elementiem, lai skalu var
     ielikt starp transportu un "Tagad" */
  .controls { display: contents; }
  .transport { order: 1; gap: 2px; }
  .track { order: 2; flex: 1 1 auto; height: 40px; }
  .grow { display: none; }
  #btnNow { order: 3; }

  .rail, .fill, .future-zone { top: 12px; }
  .grid { top: 6px; }
  .load-bar { top: 14px; }
  .slider { height: 32px; }
  .slider::-webkit-slider-runnable-track { margin-top: 12px; }
  .axis { top: 26px; }
  .axis span { font-size: 9.5px; }

  .icon-btn { width: 32px; height: 32px; }
  .icon-btn svg { width: 19px; height: 19px; }
  .play-btn { width: 38px; height: 32px; }
  .play-btn svg { width: 25px; height: 25px; }
  #btnNow { padding: 4px 6px; font-size: 12px; }

  /* ikonas vertikāli augšējā labajā stūrī */
  .map-fabs {
    top: 8px; right: calc(10px + var(--safe-r));
    flex-direction: column; gap: 4px;
  }
  .fab { width: 34px; height: 34px; }
  .fab svg { width: 22px; height: 22px; }

  .leaflet-top.leaflet-left { margin-top: 52px; }
  .leaflet-control-zoom { margin: 8px !important; }

  .clock { top: 8px; left: 12px; }
  .time-big { font-size: 24px; }
  .fc-badge { top: 8px; }
  .toast { bottom: 58px; }

  /* izvēlne ainavā — sānu panelis no labās */
  .sheet {
    top: 0; bottom: 0; left: auto;
    right: 0; width: 320px; max-height: none;
    border-radius: 0; border-top: none; border-bottom: none; border-right: none;
    padding-bottom: 0;
    animation: slide-right .2s ease-out;
  }
  .grip { display: none; }
  .sheet-head { padding: 10px 10px 10px 16px; }
}
