/* GK Meteo — design system. Dark cartographic instrument for a mountain region. */
/* Fonts are subsets: Latin (weights 400–700, only the features used) + a tiny Croatian file (č ć đ š ž). Built with fonttools — see docs/PERF.md. */
@font-face { font-family: Inter; src: url(/assets/fonts/inter-latin-v2.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; src: url(/assets/fonts/inter-hr.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E; }
@font-face { font-family: 'Instrument Serif'; src: url(/assets/fonts/instrument-serif-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; src: url(/assets/fonts/instrument-serif-hr.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; src: url(/assets/fonts/instrument-serif-italic-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; src: url(/assets/fonts/instrument-serif-italic-hr.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E; }
@font-face { font-family: 'JetBrains Mono'; src: url(/assets/fonts/jetbrains-mono-latin-v2.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+2191, U+2193, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; src: url(/assets/fonts/jetbrains-mono-hr.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E; }

/* crit:start */
:root {
  --bg: #070b0c; --bg2: #0a1012; --surface: #0e1517; --surface2: #131c1f; --surface3: #19252a;
  --line: rgba(255, 255, 255, 0.075); --line2: rgba(255, 255, 255, 0.15);
  --text: #e8efec; --muted: #94a5a1; --faint: #7f8d8a;
  --accent: #6ef0c8; --accent-ink: #052019; --amber: #ffb454; --cold: #6cb6ff; --danger: #ff6a5d; --snow: #dfe9ff; --violet: #b79cff; --pink: #ff7eb6;
  --w-yellow: #f6d84a; --w-orange: #ff9838; --w-red: #ff4d4d;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 16px; --top: 58px; --nav: 0px; --pad: clamp(14px, 2.2vw, 28px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --glass: rgba(9, 14, 15, 0.74);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14.5px/1.5 var(--sans); font-feature-settings: 'cv11', 'ss03', 'calt'; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100dvh; padding-bottom: var(--nav); }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration-color: var(--line2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(110, 240, 200, 0.3); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
.ic { width: 1em; height: 1em; display: block; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 20px; padding: 0 var(--pad); background: rgba(7, 11, 12, 0.78); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { width: 30px; height: 30px; color: var(--accent); }
.brand-t { display: grid; line-height: 1.05; }
.brand-t b { font: 400 22px/1 var(--serif); letter-spacing: 0.01em; }
.brand-t small { font: 500 9.5px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; height: 100%; align-items: stretch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 12px; font-weight: 500; font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.tabs a svg { width: 18px; height: 18px; display: none; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current='page'] { color: var(--text); }
.tabs a[aria-current='page']::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; box-shadow: 0 0 14px var(--accent); }
.tabs a .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--w-yellow); box-shadow: 0 0 0 3px rgba(246, 216, 74, 0.18); }
.tabs a .dot.orange { background: var(--w-orange); } .tabs a .dot.red { background: var(--w-red); }
.top-r { display: flex; align-items: center; gap: 14px; flex: none; }
.place-btn { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; padding: 7px 14px 7px 12px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(255, 255, 255, 0.03); transition: border-color 0.2s, background 0.2s; }
.place-btn:hover { border-color: var(--accent); background: rgba(110, 240, 200, 0.06); }
.place-btn .pb-l { font: 500 9.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.place-btn b { font: italic 400 19px/1 var(--serif); }
.clock { font: 500 12px/1.2 var(--mono); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.clock b { display: block; color: var(--text); font-size: 15px; font-weight: 500; }
/* crit:end */

/* ---------- alert bar ---------- */
.alertbar { position: relative; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px var(--pad); font-size: 13.5px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--wc) 20%, var(--bg)) 0, var(--bg2) 70%); --wc: var(--w-yellow); }
.alertbar.orange { --wc: var(--w-orange); } .alertbar.red { --wc: var(--w-red); }
.alertbar .lv { display: inline-flex; align-items: center; gap: 6px; flex: none; background: var(--wc); color: #1a1405; font: 700 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px 4px 7px; border-radius: 999px; }
.alertbar .lv .ic { width: 14px; height: 14px; }
.alertbar .tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alertbar .tx b { font-weight: 600; } .alertbar .tx span { color: var(--muted); }
.alertbar a { flex: none; font-weight: 500; color: var(--wc); text-decoration: none; white-space: nowrap; }

/* ---------- stage (map) ---------- */
.stage { position: relative; }
.mapwrap { position: relative; height: clamp(540px, calc(100dvh - var(--top) - 96px), 860px); background: #0b1214; overflow: hidden; isolation: isolate; }
.stage.mode-full .mapwrap { height: calc(100dvh - var(--top) - var(--nav) - var(--alert, 0px)); }
.stage.mode-full .hero { display: none; }
.map, .particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.particles { pointer-events: none; z-index: 2; transition: opacity 0.5s; mix-blend-mode: screen; }
.stage-fade { position: absolute; inset: auto 0 0 0; height: 150px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent, var(--bg)); }
.stage.mode-full .stage-fade { display: none; }
.mapwrap::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 180px 20px rgba(3, 6, 7, 0.75); }

.hero { position: absolute; z-index: 6; left: var(--pad); top: 22px; width: min(404px, 33vw); padding: 22px 24px 16px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(22px) saturate(1.35); -webkit-backdrop-filter: blur(22px) saturate(1.35); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: var(--shadow); }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kicker { font: 500 12px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.kicker i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(110, 240, 200, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(110, 240, 200, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 240, 200, 0); } }
.hero h1 { font: italic 400 clamp(38px, 3.4vw, 50px)/1 var(--serif); margin: 12px 0 4px; letter-spacing: -0.005em; }
.hero .where { color: var(--muted); font-size: 13px; }
.hero .where b { color: var(--text); font: 500 12.5px var(--mono); }
.hero-now { display: flex; align-items: flex-end; gap: 14px; margin: 10px 0 2px; }
.hero-temp { font: 400 clamp(92px, 9vw, 132px)/0.84 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums; margin-left: -4px; }
.hero-temp sup { font-size: 0.42em; vertical-align: 0.95em; margin-left: 2px; color: var(--muted); letter-spacing: 0; }
.hero-cond { padding-bottom: 8px; min-width: 0; }
.hero-cond .wx { width: 44px; height: 44px; display: block; margin-bottom: 4px; }
.hero-cond b { display: block; font-weight: 500; font-size: 15px; line-height: 1.25; }
.hero-cond span { color: var(--muted); font-size: 12.5px; }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--line); }
.hero-grid .stat { padding: 11px 10px 10px 0; border-bottom: 1px solid var(--line); }
.hero-grid .stat:nth-child(3n + 2), .hero-grid .stat:nth-child(3n) { padding-left: 12px; border-left: 1px solid var(--line); }
.hero-obs { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(110, 240, 200, 0.06); border: 1px solid rgba(110, 240, 200, 0.16); font-size: 12.5px; line-height: 1.45; }
.hero-obs b { font-weight: 600; }
.hero .p-meta { margin-top: 12px; }

.stat { display: grid; gap: 2px; min-width: 0; }
.stat .lbl { font: 500 9.5px/1.3 var(--mono); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.stat .val { font: 500 19px/1.2 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.stat .val small { font-size: 11.5px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.stat .sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.big .val { font: 400 40px/1 var(--serif); letter-spacing: -0.01em; }
.warrow { display: inline-flex; width: 15px; height: 15px; color: var(--accent); transition: transform 0.6s var(--ease); }
.warrow .ic { width: 100%; height: 100%; }
.wx { width: 24px; height: 24px; flex: none; color: #cdd9d6; }
.wx.k-sun { color: #ffd166; } .wx.k-moon { color: #c9d4ff; } .wx.k-part .a { color: #ffd166; } .wx.k-rain { color: #7cc4ff; } .wx.k-snow { color: #ecf3ff; } .wx.k-ice { color: #ff9ad1; } .wx.k-thun { color: #ffd166; } .wx.k-fog { color: #a9b8b5; }

/* layer rail */
.rail { position: absolute; z-index: 7; right: var(--pad); top: 18px; width: 172px; max-height: calc(100% - 150px); overflow: auto; padding: 10px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, 0.09); scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.rail-h { font: 500 9px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding: 8px 8px 4px; }
.rail-h:first-child { padding-top: 2px; }
.rail-g { display: grid; gap: 1px; }
.rail button { text-align: left; padding: 6px 8px; border-radius: 8px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; transition: background 0.15s, color 0.15s; }
.rail button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.rail button[aria-checked='true']:not(.tg) { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.rail .tg i { width: 24px; height: 14px; border-radius: 9px; background: rgba(255, 255, 255, 0.14); position: relative; flex: none; transition: background 0.2s; }
.rail .tg i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.rail .tg[aria-checked='true'] { color: var(--text); }
.rail .tg[aria-checked='true'] i { background: var(--accent); } .rail .tg[aria-checked='true'] i::after { transform: translateX(10px); background: var(--accent-ink); }
.rail-btn { display: none; }

/* legend + timeline */
.legend { position: absolute; z-index: 6; right: var(--pad); bottom: 22px; width: 250px; padding: 10px 12px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, 0.09); }
.lg-t { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 12.5px; }
.lg-t span { font: 500 10px var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.lg-bar { height: 8px; border-radius: 4px; margin: 7px 0 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.lg-ticks { display: flex; justify-content: space-between; font: 500 10px var(--mono); color: var(--muted); }
.lg-src { font-size: 10.5px; color: var(--faint); margin-top: 5px; line-height: 1.35; }
.timeline { position: absolute; z-index: 6; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(600px, calc(100% - 2 * var(--pad) - 560px)); min-width: 380px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 9px 14px 9px 9px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, 0.09); }
.stage.mode-hero .timeline { left: calc(var(--pad) + min(404px, 33vw) + 20px); transform: none; width: calc(100% - 2 * var(--pad) - min(404px, 33vw) - 250px - 40px); min-width: 0; }
.timeline.empty .tl-track, .timeline.empty .tl-play, .timeline.empty .tl-now { opacity: 0.3; pointer-events: none; }
.tl-play { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 15px; transition: transform 0.15s; flex: none; }
.tl-play:hover { transform: scale(1.07); }
.tl-track { position: relative; height: 36px; min-width: 0; }
.tl-track input { position: absolute; inset: -3px 0 auto 0; width: 100%; height: 28px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; z-index: 2; }
.tl-track input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--pos, 0%), rgba(255, 255, 255, 0.16) var(--pos, 0%)); }
.tl-track input::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.tl-track input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.tl-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.tl-track input::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.tl-ticks { position: absolute; left: 8px; right: 8px; top: 19px; height: 16px; pointer-events: none; }
.tl-ticks i { position: absolute; transform: translateX(-50%); font: 500 9.5px/1 var(--mono); font-style: normal; color: var(--muted); padding-top: 6px; white-space: nowrap; }
.tl-ticks i::before { content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 4px; background: var(--line2); }
.tl-ticks b { position: absolute; top: -13px; width: 2px; height: 10px; background: var(--amber); border-radius: 1px; transform: translateX(-50%); }
.tl-time { display: grid; text-align: right; line-height: 1.2; min-width: 112px; }
.tl-time b { font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; } .tl-time span { font-size: 11px; color: var(--muted); }
.tl-now { font: 500 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(255, 180, 84, 0.35); border-radius: 999px; padding: 5px 9px; }
.tl-now:hover { background: rgba(255, 180, 84, 0.12); }
.tl-date { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line2); border-radius: 8px; padding: 4px 6px; font: 500 11px var(--mono); color-scheme: dark; max-width: 128px; }
.map-note { position: absolute; z-index: 6; left: 50%; top: 18px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line2); font-size: 12.5px; backdrop-filter: blur(12px); white-space: nowrap; }

/* maplibre overrides */
.maplibregl-map { font: inherit; }
.maplibregl-ctrl-bottom-left { z-index: 5; left: calc(var(--pad) - 10px); bottom: 12px; display: flex; flex-direction: column-reverse; align-items: flex-start; }
.stage.mode-hero .maplibregl-ctrl-bottom-left { left: auto; right: calc(var(--pad) + 250px + 2px); bottom: 12px; align-items: flex-end; }
.stage.mode-hero .maplibregl-ctrl-group { display: none; }
.maplibregl-ctrl-group { background: var(--glass) !important; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); border-radius: 12px !important; overflow: hidden; box-shadow: none !important; }
.maplibregl-ctrl-group button { width: 34px; height: 34px; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.6); }
.maplibregl-ctrl-attrib { background: rgba(7, 11, 12, 0.6) !important; color: var(--muted); font-size: 12px; border-radius: 10px !important; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); opacity: 0.6; }
.maplibregl-popup-content { background: rgba(10, 16, 18, 0.94); color: var(--text); border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 12.5px; }
.maplibregl-popup-tip { border-top-color: rgba(10, 16, 18, 0.94) !important; border-bottom-color: rgba(10, 16, 18, 0.94) !important; }
.maplibregl-popup-close-button { color: var(--muted); font-size: 18px; padding: 2px 8px; }
.probe-h { font: 500 10.5px var(--mono); color: var(--muted); margin: 0 18px 8px 0; letter-spacing: 0.04em; }
.pr { display: flex; justify-content: space-between; gap: 18px; padding: 2.5px 0; }
.pr span { color: var(--muted); } .pr b { font: 500 12.5px var(--mono); }
.probe small { display: block; margin-top: 7px; color: var(--faint); font-size: 10.5px; }
.maplibregl-cooperative-gesture-screen { background: rgba(5, 9, 10, 0.6); font-size: 15px; z-index: 8; }

/* ---------- views & panels ---------- */
.view { max-width: 1560px; margin: 0 auto; padding: 22px var(--pad) 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; animation: rise 0.5s var(--ease) both; }
#v-pregled { margin-top: -34px; position: relative; z-index: 5; }
#v-karta { display: none; }
@keyframes rise { from { transform: translateY(8px); } }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s9 { grid-column: span 9; } .s12 { grid-column: 1 / -1; }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.view-head { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 2px 4px; }
.view-head h2 { font: 400 clamp(34px, 4vw, 54px)/1 var(--serif); letter-spacing: -0.01em; }
.view-head h2 em { font-style: italic; color: var(--accent); }
.view-head p { color: var(--muted); max-width: 62ch; margin-top: 8px; }
.panel { background: linear-gradient(180deg, var(--surface) 0, var(--bg2) 100%); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 14px; min-width: 0; position: relative; }
.panel.is-stale { border-color: rgba(255, 180, 84, 0.35); }
.p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.p-head h3 { font: 400 23px/1.15 var(--serif); letter-spacing: 0.005em; margin-top: 3px; }
.p-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.p-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.p-meta .src { min-width: 0; } .p-meta .age { font-family: var(--mono); white-space: nowrap; }
.p-meta .age.stale { color: var(--amber); }
.p-err { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: rgba(255, 106, 93, 0.06); border: 1px dashed rgba(255, 106, 93, 0.3); color: var(--muted); }
.p-err > span { font-size: 22px; color: var(--danger); } .p-err strong { display: block; color: var(--text); font-weight: 500; } .p-err small { font-size: 11.5px; }
.skel { display: grid; gap: 10px; padding: 6px 0; }
.skel i { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--surface2), var(--surface3), var(--surface2)); background-size: 200% 100%; animation: sh 1.4s infinite linear; }
@keyframes sh { to { background-position: -200% 0; } }
.lead { font: 400 21px/1.35 var(--serif); color: #dfe8e4; text-wrap: pretty; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px 16px; }
.hr { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font: 500 11px var(--mono); border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.chip.ok { color: #7df0c0; border-color: rgba(125, 240, 192, 0.35); background: rgba(125, 240, 192, 0.07); }
.chip.warn { color: var(--w-yellow); border-color: rgba(246, 216, 74, 0.4); background: rgba(246, 216, 74, 0.07); }
.chip.bad { color: var(--danger); border-color: rgba(255, 106, 93, 0.45); background: rgba(255, 106, 93, 0.08); }
.chip.cold { color: var(--cold); border-color: rgba(108, 182, 255, 0.4); background: rgba(108, 182, 255, 0.08); }
.badge { font: 600 9px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.b-obs { background: rgba(110, 240, 200, 0.14); color: var(--accent); } .b-mod { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'] { background: var(--surface3); color: var(--text); box-shadow: 0 0 0 1px var(--line2); }
.link-out { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--accent); }
.link-out:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; background: var(--accent); color: var(--accent-ink); transition: transform 0.15s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px var(--accent); }
.btn.ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border: 1px solid var(--line2); }
.btn.amber { background: var(--amber); color: #201300; }
.btn.amber:hover { box-shadow: 0 8px 24px -8px var(--amber); }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -6px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font: 500 9.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.tbl th[aria-sort]:not([aria-sort='none']) button { color: var(--accent); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background 0.15s; }
.tbl tbody tr.click { cursor: pointer; } .tbl tbody tr.click:hover { background: rgba(255, 255, 255, 0.035); }
.tbl tbody tr.sel { background: rgba(110, 240, 200, 0.07); box-shadow: inset 2px 0 0 var(--accent); }
.tbl td .nm { font-weight: 500; } .tbl td .el { color: var(--faint); font: 500 11px var(--mono); margin-left: 7px; }
.tbl td.t b { display: inline-block; min-width: 54px; padding: 2px 8px; border-radius: 7px; font: 600 12.5px var(--mono); color: #06100f; text-align: center; }
.tbl .wx { width: 20px; height: 20px; vertical-align: -5px; margin-right: 4px; }
.tbl .warrow { vertical-align: -2px; margin-right: 3px; }

/* charts (uPlot) */
.chart { width: 100%; min-height: var(--ch); position: relative; }
.uplot { font-family: var(--mono); width: 100% !important; }
.u-legend { text-align: left; font: 500 11px var(--mono); color: var(--muted); margin: 4px 0 0; padding-left: 40px; display: flex; flex-wrap: wrap; gap: 0 12px; }
.u-legend .u-series { display: inline-flex; align-items: center; gap: 4px; padding: 1px 0; }
.u-legend .u-series th { font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.u-legend .u-series:first-child th { display: none; } .u-legend .u-series:first-child td { color: var(--text); min-width: 118px; }
.u-legend .u-marker { width: 10px; height: 10px; border-radius: 3px; border-width: 2px !important; }
.u-legend .u-value { color: var(--text); min-width: 4ch; }
.u-legend .u-off { opacity: 0.35; }
.u-legend.u-idle .u-series:first-child, .u-legend.u-idle .u-value { display: none; } .u-legend.u-idle .u-series th::after { content: none !important; }
.u-cursor-pt { border-width: 2px !important; background: var(--bg) !important; }
.u-cursor-x { border-right: 1px dashed var(--line2) !important; }
.spark { display: block; }

/* 48 h strip */
.hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(46px, 1fr); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; padding-bottom: 6px; margin: 0 -4px; }
.hour { display: grid; justify-items: center; gap: 3px; padding: 8px 2px 6px; border-radius: 10px; font-size: 12px; position: relative; }
.hour.d0 { margin-left: 8px; } .hour.d0::before { content: attr(data-day); position: absolute; left: 4px; top: -2px; font: 500 9px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.hour .hh { font: 500 10.5px var(--mono); color: var(--muted); margin-top: 8px; }
.hour .tt { font: 600 14px var(--sans); font-variant-numeric: tabular-nums; }
.hour .bar { width: 100%; height: 44px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.hour .bar i { width: 9px; border-radius: 3px 3px 0 0; background: var(--cold); min-height: 0; }
.hour .bar i.s { background: var(--snow); }
.hour .pp { font: 500 10px var(--mono); color: var(--cold); min-height: 13px; } .hour .pp.s { color: var(--snow); }
.hour .gg { font: 500 10px var(--mono); color: var(--muted); display: flex; align-items: center; gap: 2px; }
.hour .gg.hi { color: var(--amber); } .hour .gg .warrow { width: 10px; height: 10px; color: inherit; }
.hour.now { background: rgba(110, 240, 200, 0.07); box-shadow: inset 0 0 0 1px rgba(110, 240, 200, 0.25); }
.hour.night { color: #c5d0e6; }

/* days */
.days { display: grid; gap: 2px; }
.day { display: grid; grid-template-columns: 78px 30px minmax(120px, 1fr) 64px 64px 78px; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; font-size: 13px; }
.day:hover { background: rgba(255, 255, 255, 0.03); }
.day .dn b { font-weight: 600; text-transform: capitalize; } .day .dn span { display: block; font: 500 10.5px var(--mono); color: var(--muted); }
.day .rng { display: grid; grid-template-columns: 38px 1fr 38px; gap: 8px; align-items: center; font: 500 12.5px var(--mono); }
.day .rng .lo { color: var(--muted); text-align: right; }
.day .rng .trk { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); position: relative; }
.day .rng .trk i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.day .pr1, .day .sn1, .day .gu1 { font: 500 12px var(--mono); text-align: right; white-space: nowrap; }
.day .pr1 { color: var(--cold); } .day .sn1 { color: var(--snow); } .day .gu1 { color: var(--muted); } .day .gu1.hi { color: var(--amber); }
.day .zero { opacity: 0.3; }

/* alerts & lists */
.alerts { display: grid; gap: 8px; }
.al { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); border-left: 3px solid var(--wc, var(--line2)); }
.al.yellow { --wc: var(--w-yellow); } .al.orange { --wc: var(--w-orange); } .al.red { --wc: var(--w-red); } .al.info { --wc: var(--cold); } .al.ok { --wc: var(--accent); }
.al .ai { font-size: 20px; color: var(--wc); padding-top: 1px; }
.al h4 { font: 600 14px/1.3 var(--sans); } .al p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.al .when { font: 500 10.5px var(--mono); color: var(--faint); margin-top: 5px; letter-spacing: 0.03em; }
.al details { margin-top: 6px; font-size: 12.5px; color: var(--muted); } .al summary { cursor: pointer; color: var(--text); font-weight: 500; }

/* cameras */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cam { position: relative; display: grid; text-align: left; border-radius: 12px; overflow: hidden; background: var(--surface2); border: 1px solid var(--line); scroll-snap-align: start; transition: border-color 0.2s, transform 0.2s var(--ease); }
.cam:hover { border-color: var(--accent); transform: translateY(-2px); }
.cam .ph { aspect-ratio: 16 / 10; background: #0a0f10 center/cover no-repeat; position: relative; overflow: hidden; }
.cam img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.4s; }
.cam .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 8, 9, 0.85)); pointer-events: none; }
.cam .tag { position: absolute; left: 8px; top: 8px; z-index: 2; font: 600 9px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 6px; border-radius: 5px; background: rgba(4, 8, 9, 0.7); color: var(--amber); backdrop-filter: blur(6px); }
.cam .tag.live { color: #ff6a5d; } .cam .tag.live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.cam .wxv { position: absolute; right: 8px; top: 8px; z-index: 2; font: 600 11px var(--mono); padding: 3px 7px; border-radius: 6px; color: #06100f; }
.cam .cap { padding: 8px 10px 9px; display: grid; gap: 1px; }
.cam .cap b { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam .cap span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam.off { opacity: 0.5; } .cam.off .ph { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.cam .risk { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; }

/* dialogs */
.dlg { border: 1px solid var(--line2); border-radius: 20px; background: #0b1113; color: var(--text); padding: 0; max-width: min(1180px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); }
.dlg::backdrop { background: rgba(3, 6, 7, 0.72); backdrop-filter: blur(6px); }
.dlg-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #0b1113; z-index: 2; }
.dlg-h h2 { font: 400 26px/1.1 var(--serif); } .dlg-h p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.dlg-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: rgba(255, 255, 255, 0.06); flex: none; }
.dlg-x:hover { background: rgba(255, 255, 255, 0.12); }
.place-dlg { max-width: 760px; }
.place-dlg input[type='search'] { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.04); margin-top: 10px; font-size: 15px; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; padding: 14px 16px 18px; }
.plist button { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); transition: border-color 0.15s, background 0.15s; }
.plist button:hover { border-color: var(--accent); background: rgba(110, 240, 200, 0.05); }
.plist button[aria-current='true'] { border-color: var(--accent); background: rgba(110, 240, 200, 0.1); }
.plist b { font: italic 400 20px/1.1 var(--serif); } .plist small { grid-column: 1; color: var(--muted); font: 500 10.5px var(--mono); }
.plist .tv { grid-row: 1 / span 2; grid-column: 2; font: 600 13px var(--mono); padding: 4px 9px; border-radius: 8px; color: #06100f; }
.cam-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; }
.cam-view { background: #000; position: relative; display: grid; place-items: center; min-height: 240px; }
.cam-view img, .cam-view video { width: 100%; max-height: calc(100dvh - 250px); object-fit: contain; display: block; background: #000; }
.cam-stamp { position: absolute; left: 12px; bottom: 12px; font: 600 12px var(--mono); padding: 5px 9px; border-radius: 8px; background: rgba(4, 8, 9, 0.75); backdrop-filter: blur(6px); }
.cam-side { padding: 16px 18px; display: grid; gap: 14px; align-content: start; border-left: 1px solid var(--line); font-size: 13px; }
.cam-side dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; } .cam-side dt { color: var(--muted); } .cam-side dd { margin: 0; text-align: right; font-weight: 500; }
.cam-scrub { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); grid-column: 1 / -1; }
.cam-scrub input[type='range'] { width: 100%; accent-color: var(--accent); }
.cam-scrub .tl-play { width: 40px; height: 40px; }

/* region scatter & profiles */
.svgc { width: 100%; height: auto; display: block; overflow: visible; }
.svgc.wide { min-width: 600px; }
.svgc text { font: 500 10px var(--mono); fill: var(--muted); }
.svgc .lblp { font: 500 10.5px var(--sans); fill: var(--text); }
.svgc .ax { stroke: var(--line); } .svgc .fit { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 5 4; fill: none; }
.svgc circle.pt { stroke: rgba(4, 8, 9, 0.9); stroke-width: 1.2; cursor: pointer; transition: r 0.2s; }
.svgc circle.pt.sel { stroke: #fff; stroke-width: 2; }

/* heat calendar */
.cal-wrap { position: relative; }
.cal-y { display: grid; height: clamp(250px, 31vw, 470px); font: 500 9.5px/1 var(--mono); color: var(--muted); }
.cal-y span { min-height: 0; overflow: visible; align-self: center; height: 0; display: flex; align-items: center; }
.cal-wrap canvas { width: 100%; height: clamp(250px, 31vw, 470px); display: block; border-radius: 8px; image-rendering: pixelated; cursor: crosshair; }
.cal-tip { position: absolute; z-index: 3; pointer-events: none; padding: 6px 9px; border-radius: 8px; background: rgba(10, 16, 18, 0.95); border: 1px solid var(--line2); font: 500 11px var(--mono); white-space: nowrap; transform: translate(-50%, -130%); }
.cal-x { display: grid; grid-template-columns: repeat(12, 1fr); font: 500 9.5px var(--mono); color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin: 6px 0 0 38px; }
.stripes { display: flex; height: 64px; border-radius: 8px; overflow: hidden; } .stripes i { flex: 1; }
.matrix { display: grid; gap: 2px; font: 500 10px var(--mono); }
.matrix .mr { display: grid; grid-template-columns: 132px repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: center; }
.matrix .mr > span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 500 12px var(--sans); }
.matrix .mr > i { height: 20px; border-radius: 3px; background: rgba(255, 255, 255, 0.04); }
.matrix .mh > i { background: none; height: auto; font-style: normal; color: var(--muted); text-align: left; }
.win { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1px; height: 26px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, 0.04); }
.win i.ok { background: var(--accent); } .win i.mid { background: #e6d84b; } .win i.no { background: rgba(255, 106, 93, 0.5); }
.win-ax { display: flex; justify-content: space-between; font: 500 10px var(--mono); color: var(--muted); margin-top: 4px; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend-inline i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.gauge { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); position: relative; overflow: hidden; }
.gauge i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--accent); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; font-size: 13px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font: 500 12.5px var(--mono); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 28px var(--pad) 30px; border-top: 1px solid var(--line); margin-top: 16px; color: var(--muted); font-size: 12px; max-width: 1560px; margin-inline: auto; }
.foot-data { max-width: 92ch; display: grid; gap: 6px; } .foot-data b { color: var(--text); font: 500 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.foot-note { color: var(--faint); }
.tejl-credit { text-align: right; display: grid; justify-items: end; gap: 2px; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.tejl-credit a { color: var(--text); }
.tejl-links { display: flex; gap: 12px; justify-content: flex-end; }
.tejl-credit-logo { display: inline-block; width: 68px; margin-bottom: 6px; }
.tejl-credit-logo img { width: 100%; height: auto; }
.tejl-logo-light { display: block; } .tejl-logo-dark { display: none; }
:root[data-theme='dark'] .tejl-logo-light { display: none; } :root[data-theme='dark'] .tejl-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) .tejl-logo-light { display: none; }
  :root:not([data-theme='light']):not([data-theme='dark']) .tejl-logo-dark { display: block; }
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .s3 { grid-column: span 6; } .s4 { grid-column: span 6; } .s5, .s7 { grid-column: span 6; } .s8, .s9 { grid-column: 1 / -1; }
  .clock { display: none; }
  .legend { width: 220px; }
  .stage.mode-hero .timeline { width: calc(100% - 2 * var(--pad) - min(404px, 33vw) - 220px - 40px); }
  .stage.mode-hero .maplibregl-ctrl-bottom-left { right: calc(var(--pad) + 222px); }
  .tl-time { min-width: 0; } .stage.mode-hero .tl-now { display: none; }
}
@media (max-width: 859px) {
  :root { --top: 52px; --nav: calc(58px + env(safe-area-inset-bottom, 0px)); }
  body { font-size: 14px; }
  .top { gap: 10px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7, 11, 12, 0.96); }
  .brand-t small { display: none; } .brand-t b { font-size: 21px; }
  .top-r { margin-left: auto; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: var(--nav); padding: 0 4px env(safe-area-inset-bottom, 0px); z-index: 45; background: rgba(7, 11, 12, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); gap: 0; scroll-snap-type: x proximity; }
  .tabs a { flex: 1 0 66px; flex-direction: column; justify-content: center; gap: 3px; padding: 0 4px; font-size: 10px; letter-spacing: 0.01em; scroll-snap-align: start; }
  .tabs a svg { display: block; width: 21px; height: 21px; }
  .tabs a[aria-current='page'] { color: var(--accent); }
  .tabs a[aria-current='page']::after { top: 0; bottom: auto; left: 22%; right: 22%; border-radius: 0 0 2px 2px; }
  .tabs a .dot { position: absolute; top: 9px; left: calc(50% + 7px); width: 6px; height: 6px; }
  .alertbar { font-size: 12.5px; gap: 8px; } .alertbar a span { display: none; }
  .mapwrap { height: min(56dvh, 480px); }
  .stage.mode-full .mapwrap { height: calc(100dvh - var(--top) - var(--nav) - var(--alert, 0px)); }
  .mapwrap::after { box-shadow: inset 0 0 60px 0 rgba(3, 6, 7, 0.6); }
  .stage-fade { height: 60px; }
  .hero { position: relative; left: auto; top: auto; width: auto; margin: -26px 12px 0; padding: 18px 18px 14px; z-index: 6; background: rgba(12, 18, 20, 0.92); }
  .hero h1 { font-size: 40px; margin-top: 10px; }
  .hero-temp { font-size: 104px; }
  #v-pregled { margin-top: 0; padding-top: 14px; }
  .view { gap: 12px; padding: 14px 12px 28px; } .stack { gap: 12px; }
  .view > * { grid-column: 1 / -1 !important; }
  .panel { padding: 16px 14px 12px; border-radius: 14px; }
  .p-head h3 { font-size: 21px; }
  .p-head { flex-wrap: wrap; } .p-tools { justify-content: flex-start; width: 100%; }
  .view-head .seg { width: 100%; }
  .rail-btn { display: flex; align-items: center; gap: 7px; position: absolute; z-index: 7; right: 10px; top: 10px; padding: 7px 10px 7px 12px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line2); font-size: 12.5px; }
  .rail-btn span:first-child { font: 500 9px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  .rail-btn b { font-weight: 600; }
  .rail { display: none; right: 10px; top: 50px; width: 196px; max-height: calc(100% - 64px); background: rgba(9, 14, 15, 0.96); }
  .rail.open { display: block; }
  .rail button { padding: 8px 9px; }
  .legend { left: 10px; right: auto; top: 10px; bottom: auto; width: 168px; padding: 7px 9px; }
  .lg-src { display: none; } .lg-t { font-size: 11.5px; }
  .timeline, .stage.mode-hero .timeline { left: 10px; right: 10px; bottom: 34px; width: auto; min-width: 0; transform: none; grid-template-columns: auto 1fr auto; gap: 8px; padding: 6px 12px 6px 6px; }
  .stage.mode-full .timeline { bottom: 12px; }
  .tl-now { display: none; } .tl-time { min-width: 0; } .tl-time b { font-size: 11.5px; }
  .tl-date { grid-column: 1 / -1; max-width: none; }
  .maplibregl-ctrl-group { display: none; }
  .maplibregl-ctrl-bottom-left, .stage.mode-hero .maplibregl-ctrl-bottom-left { left: 4px; right: auto; bottom: 78px; align-items: flex-start; }
  .stage.mode-hero .maplibregl-ctrl-bottom-left { display: none; }
  .day { grid-template-columns: 58px 24px minmax(90px, 1fr) 50px 44px; gap: 8px; padding: 8px 0; } .day .gu1 { display: none; }
  .foot { grid-template-columns: 1fr; gap: 22px; }
  .cam-body { grid-template-columns: 1fr; } .cam-side { border-left: 0; border-top: 1px solid var(--line); }
  .dlg { border-radius: 16px; }
  .matrix .mr { grid-template-columns: 84px repeat(var(--n), minmax(0, 1fr)); }
  .cams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .strip { grid-auto-columns: 164px; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
  .lead { font-size: 19px; }
}
@media (max-width: 380px) { .hero-temp { font-size: 92px; } .place-btn .pb-l { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
@media print { .top, .tabs, .stage, .alertbar { display: none; } body { background: #fff; color: #000; } }

/* ---------- two-click third-party embeds (embed.js) ---------- */
.embed-wrap { display: grid; gap: 8px; }
.embed { position: relative; height: min(var(--eh, 640px), 78dvh); border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #0a1012; isolation: isolate; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.embed-ph { position: absolute; inset: -40px; filter: blur(22px) saturate(1.2); opacity: 0.75; }
.embed-ph i { position: absolute; border-radius: 10px; }
.embed-ph.art-road i:nth-child(1) { left: 6%; top: 10%; width: 40%; height: 14%; background: #f1f4f2; }
.embed-ph.art-road i:nth-child(2) { left: 6%; top: 30%; width: 70%; height: 9%; background: #ffb454; }
.embed-ph.art-road i:nth-child(3) { left: 6%; top: 44%; width: 82%; height: 9%; background: #d8dedb; }
.embed-ph.art-road i:nth-child(4) { left: 6%; top: 58%; width: 60%; height: 9%; background: #2fd3a0; }
.embed-ph.art-road i:nth-child(5) { left: 6%; top: 72%; width: 76%; height: 9%; background: #cfd6d3; }
.embed-ph.art-cams i { width: 28%; height: 26%; background: linear-gradient(160deg, #7f9aa3, #2b3a3f 60%, #d9e2e4); }
.embed-ph.art-cams i:nth-child(1) { left: 4%; top: 8%; } .embed-ph.art-cams i:nth-child(2) { left: 36%; top: 8%; } .embed-ph.art-cams i:nth-child(3) { left: 68%; top: 8%; }
.embed-ph.art-cams i:nth-child(4) { left: 4%; top: 40%; } .embed-ph.art-cams i:nth-child(5) { left: 36%; top: 40%; }
.embed-veil { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; background: linear-gradient(180deg, rgba(7, 11, 12, 0.35), rgba(7, 11, 12, 0.78)); }
.embed-card { max-width: 520px; display: grid; gap: 10px; justify-items: start; padding: 22px 24px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.1); }
.embed-card h4 { margin: 0; font: 400 26px/1.1 var(--serif); }
.embed-card p { margin: 0; color: var(--muted); font-size: 13px; }
.embed-card .small a { color: var(--muted); }
.embed-go { font-size: 15px; }
.embed-go .ic { width: 18px; height: 18px; }
.embed-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.2); background: rgba(7, 11, 12, 0.82); color: #fff; display: grid; place-items: center; cursor: pointer; }
.embed-x .ic { width: 16px; height: 16px; }
.embed-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; color: var(--faint); font-size: 11.5px; }
@media (max-width: 640px) { .embed-card { padding: 16px; } .embed-card h4 { font-size: 21px; } .embed { height: min(var(--eh, 640px), 70dvh); } }
.cam .ph.ph-hak { display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, rgba(255, 180, 84, 0.18), transparent 60%), #0d1416; }
.cam .ph-note { font-size: 12px; color: var(--muted); padding: 0 12px; text-align: center; }
.cam-view.cam-embed { background: transparent; }

/* ---------- compact footer on the full-screen map (always inside the first screen) ---------- */
:root { --footc: 0px; }
.foot-mini { display: none; margin: 0; }
html[data-tab='karta'] body { --footc: 64px; }
html[data-tab='karta'] body .foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: var(--footc); padding-block: 8px; margin-top: 0; border-top: 1px solid var(--line); box-sizing: border-box; }
html[data-tab='karta'] body .foot-data { display: none; }
html[data-tab='karta'] body .foot-mini { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-tab='karta'] body .tejl-credit { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; justify-content: flex-end; }
html[data-tab='karta'] body .tejl-credit p { margin: 0; }
html[data-tab='karta'] body .tejl-credit-logo { width: 52px; }
.stage.mode-full .mapwrap { height: calc(100dvh - var(--top) - var(--nav) - var(--alert, 0px) - var(--footc)); }
@media (max-width: 860px) {
  html[data-tab='karta'] body { --footc: 96px; }
  html[data-tab='karta'] body .foot { grid-template-columns: 1fr; gap: 4px; padding-block: 8px; }
  html[data-tab='karta'] body .foot-mini { white-space: normal; font-size: 12px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  html[data-tab='karta'] body .tejl-credit { font-size: 12px; gap: 2px 10px; }
  html[data-tab='karta'] body .tejl-credit-logo { width: 40px; }
  .stage.mode-full .mapwrap { height: calc(100dvh - var(--top) - var(--nav) - var(--alert, 0px) - var(--footc)); }
  .foot { padding-bottom: calc(30px + 12px); }
}
.doc-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; } .doc-nav a { color: var(--muted); }

.foot-free { margin: 0 0 12px; color: var(--text); font-weight: 500; }

/* ---------- wave 2: stable first paint, keyboard-reachable scroll regions ---------- */
/* the footer never sits in the first viewport while a tab's panels are still loading (it used to jump down: layout shift) */
.view:not([hidden]) { min-height: calc(100dvh - var(--top)); }
/* the map area before MapLibre arrives: quiet terrain-coloured placeholder, same size as the map */
.mapwrap:empty { background: radial-gradient(900px 520px at 62% 44%, #14262a 0, #0c1719 46%, #070b0c 100%); }
.tbl-wrap:focus-visible, .ak-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ---------- the page skeleton follows the tab from the first paint (html[data-tab] is set inline in index.html) ---------- */
html[data-tab='karta'] .mapwrap { height: calc(100dvh - var(--top) - var(--nav) - var(--alert, 0px) - var(--footc)); }
html[data-tab='karta'] .hero, html[data-tab='karta'] .stage-fade { display: none; }
html:not([data-tab='pregled']):not([data-tab='karta']) #stage { display: none; }
html[data-tab='pregled'] .view:not(#v-pregled) { display: none; }
html[data-tab='prognoza'] .view:not(#v-prognoza) { display: none; }
html[data-tab='karta'] .view:not(#v-karta) { display: none; }
html[data-tab='klima'] .view:not(#v-klima) { display: none; }
html[data-tab='agro'] .view:not(#v-agro) { display: none; }
html[data-tab='ceste'] .view:not(#v-ceste) { display: none; }
html[data-tab='kamere'] .view:not(#v-kamere) { display: none; }
html[data-tab='upozorenja'] .view:not(#v-upozorenja) { display: none; }
/* phones: the "now" card keeps its place while its numbers load (it sits in the flow under the map) */
@media (max-width: 859px) { .hero:empty { min-height: 600px; } }

/* ---------- shared helper ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- nothing jumps while data arrives ---------- */
.p-body { min-height: var(--rh-d, 0); }
@media (max-width: 859px) { .p-body { min-height: var(--rh-m, 0); } }
/* the warnings strip is always there, one line high: empty while loading, quiet when there is nothing, coloured when there is */
:root { --alert: 41px; }
.alertbar { height: 41px; padding-block: 0; overflow: hidden; }
.alertbar.wait { background: none; border-bottom-color: transparent; }
.alertbar.none { background: none; color: var(--muted); font-size: 12.5px; } .alertbar.none .ok { color: var(--accent); font-weight: 700; }
@media (max-width: 859px) { :root { --alert: 38px; } .alertbar { height: 38px; } }

.hero-obs.wait { min-height: 62px; background: rgba(255, 255, 255, 0.025); border-color: var(--line); }

/* ---------- phone tab bar: it scrolls sideways — edge glows and a position line say so ---------- */
.tabs-ind { display: none; }
@media (max-width: 859px) {
  .tabs-ind.on { display: block; position: fixed; left: 0; right: 0; bottom: 0; height: var(--nav); z-index: 46; pointer-events: none; }
  .tabs-ind i { position: absolute; top: 0; bottom: 0; width: 34px; opacity: 0; transition: opacity 0.25s; }
  .tabs-ind i.l { left: 0; background: linear-gradient(90deg, rgba(7, 11, 12, 0.96) 12%, rgba(110, 240, 200, 0.1) 60%, transparent); }
  .tabs-ind i.r { right: 0; background: linear-gradient(270deg, rgba(7, 11, 12, 0.96) 12%, rgba(110, 240, 200, 0.1) 60%, transparent); }
  .tabs-ind i::after { content: ''; position: absolute; top: calc(50% - 8px - env(safe-area-inset-bottom, 0px) / 2); width: 7px; height: 7px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); opacity: 0.9; }
  .tabs-ind i.l::after { left: 9px; transform: rotate(-135deg); } .tabs-ind i.r::after { right: 9px; transform: rotate(45deg); }
  .tabs-ind.can-l i.l, .tabs-ind.can-r i.r { opacity: 1; }
  .tabs-ind b { position: absolute; left: 0; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, transparent, rgba(110, 240, 200, 0.75) 20%, rgba(110, 240, 200, 0.75) 80%, transparent); transition: transform 0.12s linear; will-change: transform; }
  .tabs-ind.nudge i.r::after { animation: nav-nudge 0.9s var(--ease) 1; }
  html.ask-open .tabs-ind { display: none; }
}
@keyframes nav-nudge { 40% { transform: translateX(5px) rotate(45deg); } }

/* ---------- Pristupačnost: personal display settings (classes on <html>, see js/a11y.js) ---------- */
.skip2 { left: 220px; }
html.a-text #views, html.a-text .foot, html.a-text .ask-shell, html.a-text dialog.dlg { zoom: 1.15; }
@media (max-width: 859px) { html.a-text .hero { zoom: 1.12; } }
html.a-contrast { --muted: #c9d5d1; --faint: #b7c4c0; --line: rgba(255, 255, 255, 0.3); --line2: rgba(255, 255, 255, 0.55); --glass: rgba(4, 7, 8, 0.96); --surface: #0a1012; }
html.a-contrast .panel, html.a-contrast .hero, html.a-contrast .ak-card, html.a-contrast .ask-shell { background: #090e10; border-color: var(--line2); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.a-contrast :focus-visible { outline-width: 3px; outline-color: #fff; }
html.a-contrast .kicker, html.a-contrast .ak-src, html.a-contrast .p-meta { color: var(--muted); }
html.a-motion *, html.a-motion *::before, html.a-motion *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
html.a-links a:not(.brand):not(.ak-tel):not(.tejl-credit-logo) { text-decoration: underline !important; text-decoration-thickness: 1.5px !important; text-underline-offset: 3px; }
html.a-spacing body, html.a-spacing dialog { letter-spacing: 0.035em; word-spacing: 0.14em; }
html.a-spacing p, html.a-spacing li, html.a-spacing td, html.a-spacing small, html.a-spacing .ans-main, html.a-spacing .ak-kbtext { line-height: 1.8; }
.dlg-a11y { width: min(520px, calc(100vw - 24px)); }
.dlg-a11y-list { display: grid; gap: 6px; padding: 6px 0 10px; }
.dlg-a11y-sw { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; min-height: 60px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); text-align: left; transition: border-color 0.2s, background 0.2s; }
.dlg-a11y-sw:hover { border-color: var(--line2); background: rgba(255, 255, 255, 0.03); }
.dlg-a11y-sw i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); transition: background 0.2s; }
.dlg-a11y-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.dlg-a11y-sw[aria-checked='true'] { border-color: rgba(110, 240, 200, 0.55); background: rgba(110, 240, 200, 0.07); }
.dlg-a11y-sw[aria-checked='true'] i { background: var(--accent); } .dlg-a11y-sw[aria-checked='true'] i::after { transform: translateX(18px); background: #052019; }
.dlg-a11y-sw b { display: block; font-weight: 500; font-size: 15px; } .dlg-a11y-sw small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.dlg-a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }

.foot-btn { font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; } .foot-btn:hover { text-decoration-color: currentColor; }
.doc-nav .foot-btn { color: var(--muted); }
html.a-links .foot-btn { text-decoration-thickness: 1.5px; text-decoration-color: currentColor; }

/* Provider lens: source-owned HTML, always uncropped. */
.embed-window { width: min(1100px, 92vw); max-width: 100%; height: 80dvh; max-height: 100dvh; padding: 0; border: 1px solid rgba(154,244,211,.4); border-radius: 24px; background: var(--bg, #070b0c); color: var(--text, #eef6f2); box-shadow: 0 0 60px #7affc51a, 0 30px 120px #0009; overflow: hidden; }
.embed-window[open] { display: flex; flex-direction: column; }
.embed-window::backdrop { background: #020807b8; backdrop-filter: blur(12px); }
.embed-window-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 24px 12px; background: linear-gradient(125deg,#a9ffcf12,transparent); }
.embed-window-head h2 { font-size: 22px; margin: 4px 0; }
.embed-window-head .dlg-x { position: static; flex-shrink: 0; }
.embed-window-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 24px 12px; }
.embed-window-tabs button[aria-pressed='true'] { border-color: var(--accent); background: #a9ffcf20; }
.embed-window-body { flex: 1; min-height: 0; overflow: auto; padding: 0 16px; }
.embed-window-body > p { padding: 24px; }
.embed-window-slot { display: flex; flex-direction: column; height: 100%; min-height: 240px; gap: 8px; }
.embed-window-slot p { margin: 0; }
.embed-window-clip { position: relative; overflow: hidden; flex: 1; min-height: 240px; background: #15231e; border-radius: 12px; }
.embed-window-clip iframe { border: 0; width: 100%; height: 100%; position: absolute; inset: 0; transform-origin: top left; opacity: 0; filter: blur(5px); transition: opacity .3s, filter .3s; background: white; }
.embed-window-clip.ready iframe { opacity: 1; filter: none; }
.embed-window-clip.loading::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg,transparent 25%,#afffd220 45%,transparent 65%); background-size: 200% 100%; animation: provider-shimmer 1.5s linear infinite; }
.embed-window-source { padding: 4px 2px 8px; font-size: 12px; }
.embed-window-foot { padding: 12px 24px; font-size: 12px; line-height: 1.6; border-top: 1px solid var(--line); }
.embed-window-foot a { text-decoration: underline; }
.embed-window-handle { display: none; }
.cam-feed { display: grid; gap: 20px; min-width: 0; }
.cam-consent { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #afffd20a; }
.cam-consent p { flex: 1 1 240px; margin: 0; }
.cam-feed-toggle { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 0; text-align: left; font-size: 18px; }
.cam-feed-toggle span:first-child { flex: 1; }
.cam-feed-toggle span:last-child { transition: transform .25s; }
.cam-feed-toggle[aria-expanded='false'] span:last-child { transform: rotate(-90deg); }
.cam-feed-collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.cam-feed-collapse.closed { grid-template-rows: 0fr; }
.cam-feed-collapse > div { min-height: 0; overflow: hidden; }
.cam-feed-list { display: grid; gap: 20px; padding-top: 12px; }
.cam-feed-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.cam-feed-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; justify-content: space-between; }
.cam-feed-heading h4 { margin: 0; }
.cam-feed-heading .chip { font-size: 12px; }
.cam-feed-live { min-height: 160px; }
.cam-feed-live .embed-window-clip { flex: none; height: clamp(240px, 40vw, 460px); }
.cam-feed-live .embed { max-height: 400px; }
.cam-feed-placeholder { min-height: 320px; display: grid; place-content: center; gap: 16px; text-align: center; color: var(--muted); background: repeating-linear-gradient(135deg,#afffd206 0 1px,transparent 1px 28px); border-radius: 12px; }
.cam-feed-placeholder .ic { width: 42px; height: 42px; margin: auto; }
@keyframes provider-shimmer { to { background-position: -200% 0; } }
@media (max-width: 600px) {
 .embed-window { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 20px 20px 0 0; }
 .embed-window-head { padding: 12px 16px; }
 .embed-window-body { padding: 0 8px; }
 .embed-window-tabs { padding: 0 12px 12px; gap: 4px; }
 .embed-window-tabs .btn { padding: 8px 10px; font-size: 13px; }
 .embed-window-foot { padding: 10px 16px max(16px, env(safe-area-inset-bottom)); }
 .embed-window-handle { display: block; width: 36px; height: 4px; border-radius: 8px; background: #caffdd66; margin: 8px auto 0; flex-shrink: 0; }
 .cam-feed-card { padding: 10px; }
 .cam-feed-placeholder { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .embed-window *, .cam-feed-collapse, .cam-feed-toggle span { transition: none !important; animation: none !important; } }
html.a-motion .embed-window *, html.a-motion .cam-feed-collapse, html.a-motion .cam-feed-toggle span { transition: none !important; animation: none !important; }

.cam-window-title { font-size: 16px; margin: 8px 0; }
.cam-window-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cam-hak-window { scroll-margin-top: 90px; }
.cam-hak-window .embed-window-clip { flex: none; height: clamp(480px, 70vh, var(--frame-desktop, 900px)); }
.cam-road-jumps { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.cam-road-jumps .btn { flex: none; min-height: 44px; }
/* phones: HAK's camera page full-bleed and nearly full-height, our jumps above it */
@media (max-width: 600px) { .cam-hak-window .embed-window-clip { height: calc(100dvh - 190px); min-height: 420px; margin-inline: calc(-1 * var(--pad, 16px)); border-radius: 0; } }
.cam-feed-card .embed-window-clip { flex: none; height: var(--frame-desktop, 420px); }
.cam-feed-group summary { cursor: pointer; font-size: 18px; padding: 12px 0; }
.cam-index-entry { display: grid; gap: 6px; width: 100%; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.cam-skip { display: inline-block; margin-bottom: 12px; text-decoration: underline; }
.cam-image-tile { aspect-ratio: 16 / 9; background: #15231e; }
.cam-image-tile img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 600px) { .cam-feed-card .embed-window-clip { height: var(--frame-mobile, 260px); } }

/* Navigacija i berba (js/nav/menu.js): route options with risk, "Pripremiti rutu?", picking-session card */
.nv { display: grid; gap: 12px; }
.nv-head { margin: 0; font-size: 15px; line-height: 1.45; }
.nv-opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.nv-opt { display: grid; gap: 6px; text-align: left; min-height: 44px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; cursor: pointer; }
.nv-opt:hover { border-color: var(--accent); }
.nv-opt.on { border-color: var(--accent); background: rgba(110, 240, 200, 0.09); box-shadow: inset 0 0 0 1px var(--accent); }
.nv-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.nv-mt { color: var(--muted); font-variant-numeric: tabular-nums; }
.nv-risk { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.nv-risk i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.nv-opt small { color: var(--muted); font-size: 12px; }
.nv-why { margin: 0; padding: 10px 12px; border-left: 3px solid var(--amber); background: rgba(255, 180, 84, 0.07); border-radius: 6px; font-size: 14px; line-height: 1.5; }
.nv-ask { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line2); border-radius: 12px; }
.nv-ask small, .nv-fine, .nv-disc { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.nv-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.nv-btns .btn, .nv-btns .ask-sug { min-height: 44px; }
.nv-track { width: 100%; max-height: 190px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px; }
.nv-track .ln { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.nv-track .st { fill: #2fd3a0; stroke: #0b1512; stroke-width: 2; }
.nv-track .en { fill: var(--amber); stroke: #0b1512; stroke-width: 2; }
@media (max-width: 600px) { .nv-opts { grid-template-columns: 1fr; } }
