/* sriv.bg — design direction: design/2026-10-12-design-direction.md
   One bold device (dots = people), everything else quiet: white paper, one ink, one indigo.
   Status colours mean state only and always come with an icon and a label. */

@font-face {
  font-family: "Geologica";
  src: url("fonts/geologica-cyrillic.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  src: url("fonts/geologica-latin.woff2") format("woff2");
  font-weight: 300 800;
  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+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --plane: #f3f4f7;
  --plane-2: #e9ebf0;
  --ink: #15171c;
  --ink-2: #4a505c;
  --ink-3: #656b7a;
  --line: #e3e5ea;
  --line-strong: #c9cdd6;
  --brand: #4535e8;
  --brand-hover: #3627c9;
  --brand-ink: #ffffff;
  --brand-wash: #efedff;
  --brand-text: #3a2bd6;
  --ok: #16a34a;
  --warn: #e0a100;
  --serious: #e5672a;
  --critical: #d33b3b;
  --warn-ink: #8a5a00;
  --warn-wash: #fff6dd;
  --critical-ink: #b42323;
  --critical-wash: #fdecec;
  --ok-ink: #15803d;
  --ok-wash: #e9f7ee;
  /* the dot map: one hue, light to dark (sequential) */
  --m0: #d9dce3;
  --m1: #c9c3ff;
  --m2: #9d93ff;
  --m3: #6e60f6;
  --m4: #4535e8;
  --shadow-pop: 0 10px 30px rgb(20 22 40 / 0.12), 0 2px 6px rgb(20 22 40 / 0.06);
  --shadow-sheet: 0 -10px 40px rgb(10 12 24 / 0.18);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --r-ctl: 10px;
  --r-panel: 14px;
  --r-sheet: 22px;
  --font: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12141b;
    --plane: #0b0d12;
    --plane-2: #1b1e28;
    --ink: #f1f2f5;
    --ink-2: #b9becb;
    --ink-3: #8a90a0;
    --line: #262a35;
    --line-strong: #363b49;
    --brand: #867cff;
    --brand-hover: #9f97ff;
    --brand-ink: #0d0f16;
    --brand-wash: #1f1c45;
    --brand-text: #a9a2ff;
    --warn-ink: #f2c14e;
    --warn-wash: #2b230d;
    --critical-ink: #ff8a8a;
    --critical-wash: #321516;
    --ok-ink: #5fd38a;
    --ok-wash: #11261a;
    --m0: #262a36;
    --m1: #3b357a;
    --m2: #5246b8;
    --m3: #7066ee;
    --m4: #a39cff;
    --shadow-pop: 0 10px 30px rgb(0 0 0 / 0.5), 0 2px 6px rgb(0 0 0 / 0.3);
    --shadow-sheet: 0 -10px 40px rgb(0 0 0 / 0.55);
  }
}
:root[data-theme="dark"] {
  --paper: #12141b; --plane: #0b0d12; --plane-2: #1b1e28; --ink: #f1f2f5; --ink-2: #b9becb; --ink-3: #8a90a0;
  --line: #262a35; --line-strong: #363b49; --brand: #867cff; --brand-hover: #9f97ff; --brand-ink: #0d0f16;
  --brand-wash: #1f1c45; --brand-text: #a9a2ff; --warn-ink: #f2c14e; --warn-wash: #2b230d; --critical-ink: #ff8a8a;
  --critical-wash: #321516; --ok-ink: #5fd38a; --ok-wash: #11261a; --m0: #262a36; --m1: #3b357a; --m2: #5246b8;
  --m3: #7066ee; --m4: #a39cff;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; font-weight: 650; }
h3 { font-size: 1.0625rem; font-weight: 650; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-wash); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
main { display: block; min-height: 60vh; }
main:focus { outline: none; }

/* ------------------------------------------------------------------ header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo {
  display: inline-flex; align-items: baseline; gap: 0;
  font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-dot { display: inline-block; width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--brand); margin: 0 0.07em; transform: translateY(-0.02em); }
.logo-tld { font-weight: 500; color: var(--ink-2); }
.logo-sm { font-size: 1.125rem; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.top-nav a:hover { color: var(--ink); background: var(--plane); }
.top-nav .lang { border: 1px solid var(--line-strong); padding: 6px 10px; font-weight: 600; font-size: 0.8125rem; }
.top-search { position: relative; order: 3; flex: 1 1 100%; }
.top-search input {
  width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--plane);
  padding: 0 14px 0 40px; font: 400 1rem var(--font); color: var(--ink);
}
.top-search input:focus { background: var(--paper); border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-wash); }
.top-search-icon { position: absolute; left: 12px; top: 11px; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
@media (min-width: 840px) {
  .top-search { order: 0; flex: 0 1 420px; margin-left: 12px; }
}

.banner { display: flex; gap: 10px; align-items: flex-start; max-width: 1120px; margin: 12px auto 0; padding: 10px 14px; border-radius: 12px; background: var(--plane); color: var(--ink-2); font-size: 0.875rem; }
.banner { margin-inline: var(--gutter); }
@media (min-width: 1184px) { .banner { margin-inline: auto; } }
.banner-demo { background: var(--warn-wash); color: var(--warn-ink); }
.banner-source { color: var(--ink-3); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-danger { background: var(--critical); color: #fff; }
.btn-lg { min-height: 52px; padding: 0 20px; font-size: 1.0625rem; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.875rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-hover); }
  .btn-quiet:hover { border-color: var(--ink-3); }
}
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 0;
  background: transparent; color: var(--ink-2); cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--plane); color: var(--ink); } }
.link-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--brand-text); font-weight: 600; padding: 10px 2px; cursor: pointer; }

/* ------------------------------------------------------------------ home */
/* The board: on a phone one column (question, map, ranking); from 1024px the question and the ranking on the
   left and the map beside them, staying in view while the ranking scrolls. One time switch drives both. */
.board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
.board-hero, .board-map, .board-rank { min-width: 0; }
@media (min-width: 1024px) {
  .board { grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr); grid-template-areas: "hero map" "rank map"; column-gap: 56px; row-gap: 40px; padding-top: 48px; align-items: start; }
  .board-hero { grid-area: hero; }
  .board-map { grid-area: map; position: sticky; top: 24px; }
  .board-rank { grid-area: rank; }
}
.board-rank .block-head { margin-bottom: 10px; }
.board-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-panel); background: var(--plane); }
.board-foot p { color: var(--ink-2); font-weight: 550; flex: 1 1 180px; }
.display {
  font-size: clamp(2.375rem, 1.6rem + 3.2vw, 3.875rem); font-weight: 760; letter-spacing: -0.035em; line-height: 1.0;
}
.lead { margin: 14px 0 22px; font-size: 1.0625rem; color: var(--ink-2); max-width: 44ch; }
.bigsearch { position: relative; }
.bigsearch input {
  width: 100%; height: 58px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--paper);
  padding: 0 112px 0 50px; font: 400 1.0625rem var(--font); color: var(--ink); -webkit-appearance: none; appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.bigsearch input::placeholder { color: var(--ink-3); }
.bigsearch input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }
.bigsearch-icon { position: absolute; left: 16px; top: 18px; color: var(--ink-3); pointer-events: none; }
.bigsearch-btn { position: absolute; right: 6px; top: 6px; min-height: 46px; border-radius: 11px; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.chips { list-style: none; display: flex; gap: 8px; margin: 16px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chips li { scroll-snap-align: start; flex: none; }
@media (min-width: 1024px) { .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}
.chip .icon { color: var(--brand); }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--plane); border-color: var(--ink-3); } }
.chip-near { background: var(--brand-wash); border-color: transparent; color: var(--brand-text); font-weight: 600; cursor: pointer; }
.chip-near .icon { color: currentColor; }
.chip-near[aria-busy="true"] { opacity: 0.72; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .chip-near:hover { background: var(--brand-wash); border-color: var(--brand); } }

.board-map { margin: 0; }
.mapframe { background: var(--plane); border-radius: 22px; padding: 14px 12px 10px; }
.dotmap { width: 100%; height: auto; overflow: visible; }
.dotmap .o { fill: none; stroke-width: 6.4; stroke-linecap: round; stroke: var(--m0); transition: stroke 300ms ease; }
/* every path holds a step per period, for its oblast (a…) and its община (u…); data-w picks the period, data-z the level:
   the country view is shaded by oblast, the closer views by община */
.dotmap[data-z="1"][data-w="1h"] .ah1, .dotmap[data-z="1"][data-w="today"] .at1, .dotmap[data-z="1"][data-w="24h"] .ad1, .dotmap[data-z="1"][data-w="7d"] .aw1, .dotmap[data-z="1"][data-w="30d"] .am1 { stroke: var(--m1); }
.dotmap[data-z="1"][data-w="1h"] .ah2, .dotmap[data-z="1"][data-w="today"] .at2, .dotmap[data-z="1"][data-w="24h"] .ad2, .dotmap[data-z="1"][data-w="7d"] .aw2, .dotmap[data-z="1"][data-w="30d"] .am2 { stroke: var(--m2); }
.dotmap[data-z="1"][data-w="1h"] .ah3, .dotmap[data-z="1"][data-w="today"] .at3, .dotmap[data-z="1"][data-w="24h"] .ad3, .dotmap[data-z="1"][data-w="7d"] .aw3, .dotmap[data-z="1"][data-w="30d"] .am3 { stroke: var(--m3); }
.dotmap[data-z="1"][data-w="1h"] .ah4, .dotmap[data-z="1"][data-w="today"] .at4, .dotmap[data-z="1"][data-w="24h"] .ad4, .dotmap[data-z="1"][data-w="7d"] .aw4, .dotmap[data-z="1"][data-w="30d"] .am4 { stroke: var(--m4); }
.dotmap:not([data-z="1"])[data-w="1h"] .uh1, .dotmap:not([data-z="1"])[data-w="today"] .ut1, .dotmap:not([data-z="1"])[data-w="24h"] .ud1, .dotmap:not([data-z="1"])[data-w="7d"] .uw1, .dotmap:not([data-z="1"])[data-w="30d"] .um1 { stroke: var(--m1); }
.dotmap:not([data-z="1"])[data-w="1h"] .uh2, .dotmap:not([data-z="1"])[data-w="today"] .ut2, .dotmap:not([data-z="1"])[data-w="24h"] .ud2, .dotmap:not([data-z="1"])[data-w="7d"] .uw2, .dotmap:not([data-z="1"])[data-w="30d"] .um2 { stroke: var(--m2); }
.dotmap:not([data-z="1"])[data-w="1h"] .uh3, .dotmap:not([data-z="1"])[data-w="today"] .ut3, .dotmap:not([data-z="1"])[data-w="24h"] .ud3, .dotmap:not([data-z="1"])[data-w="7d"] .uw3, .dotmap:not([data-z="1"])[data-w="30d"] .um3 { stroke: var(--m3); }
.dotmap:not([data-z="1"])[data-w="1h"] .uh4, .dotmap:not([data-z="1"])[data-w="today"] .ut4, .dotmap:not([data-z="1"])[data-w="24h"] .ud4, .dotmap:not([data-z="1"])[data-w="7d"] .uw4, .dotmap:not([data-z="1"])[data-w="30d"] .um4 { stroke: var(--m4); }
.dotmap .layer { display: none; }
.side-map { margin: 0 0 14px; padding: 10px 8px 8px; border-radius: var(--r-panel); }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 6px; padding: 0 4px; font-size: 0.75rem; color: var(--ink-3); }
.dotmap[data-w="1h"][data-z="1"] [data-for="1h"][data-lv="1"], .dotmap[data-w="1h"][data-z="2"] [data-for="1h"][data-lv="2"], .dotmap[data-w="1h"][data-z="3"] [data-for="1h"][data-lv="3"], .dotmap[data-w="today"][data-z="1"] [data-for="today"][data-lv="1"], .dotmap[data-w="today"][data-z="2"] [data-for="today"][data-lv="2"], .dotmap[data-w="today"][data-z="3"] [data-for="today"][data-lv="3"], .dotmap[data-w="24h"][data-z="1"] [data-for="24h"][data-lv="1"], .dotmap[data-w="24h"][data-z="2"] [data-for="24h"][data-lv="2"], .dotmap[data-w="24h"][data-z="3"] [data-for="24h"][data-lv="3"], .dotmap[data-w="7d"][data-z="1"] [data-for="7d"][data-lv="1"], .dotmap[data-w="7d"][data-z="2"] [data-for="7d"][data-lv="2"], .dotmap[data-w="7d"][data-z="3"] [data-for="7d"][data-lv="3"], .dotmap[data-w="30d"][data-z="1"] [data-for="30d"][data-lv="1"], .dotmap[data-w="30d"][data-z="2"] [data-for="30d"][data-lv="2"], .dotmap[data-w="30d"][data-z="3"] [data-for="30d"][data-lv="3"] { display: inline; }
/* the finer grid for the closer views (loaded with the first zoom); dots keep about the same size on screen */
.dotmap .grid-fine { display: none; }
.dotmap.has-fine:not([data-z="1"]) .grid-fine { display: inline; }
.dotmap.has-fine:not([data-z="1"]) .grid-coarse { display: none; }
.dotmap .grid-fine path { stroke-width: 2.6; }
.dotmap[data-z="3"] .grid-fine path { stroke-width: 2.4; }
.dotmap .spot .hit { fill: transparent; }
.dotmap .spot .dot { fill: var(--brand); stroke: var(--plane); stroke-width: 4; transform-box: fill-box; transform-origin: center; }
.dotmap .spot:focus-visible .dot { stroke: var(--ink); }
.dotmap .layer[data-lv="2"] .spot .dot { stroke-width: 1.6; }
.dotmap .layer[data-lv="3"] .spot .dot { stroke-width: 0.8; }
.dotmap .spot-zoom { cursor: zoom-in; }
.dotmap .spot.pulse .dot { animation: breathe 2.8s var(--ease-in-out) infinite; }
@media (hover: hover) and (pointer: fine) { .dotmap .spot:hover .dot { stroke: var(--ink); } }
/* names on the biggest spots, in map units (34 = 12px on a phone); a halo of the frame colour keeps them legible */
.dotmap .labs { pointer-events: none; }
.dotmap .lab { font: 600 34px var(--font); fill: var(--ink); paint-order: stroke; stroke: var(--plane); stroke-width: 9px; stroke-linejoin: round; dominant-baseline: central; letter-spacing: -0.01em; }
.dotmap .lab-n { fill: var(--brand-text); font-weight: 750; }
@media (max-width: 639px) { .dotmap .lab-minor { display: none; } }
/* each closer level is laid out for its zoom (Svg::ZOOM 2.5 and 5), so its names are drawn that much smaller */
.dotmap .layer[data-lv="2"] .lab { font-size: 13.6px; stroke-width: 3.6px; }
.dotmap .layer[data-lv="3"] .lab { font-size: 6.8px; stroke-width: 1.8px; }
@media (min-width: 1024px) {
  .board-map .dotmap .layer[data-lv="2"] .lab { font-size: 10.4px; stroke-width: 2.8px; }
  .board-map .dotmap .layer[data-lv="3"] .lab { font-size: 5.2px; stroke-width: 1.4px; }
}
/* zooming: one finger scrolls the page on the country view; once zoomed it moves the map */
.dotmap.zoomable { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.dotmap.zoomable:not([data-z="1"]) { touch-action: none; cursor: grab; }
.dotmap.zoomable:not([data-z="1"]):active { cursor: grabbing; }
.mapframe { position: relative; }
/* zoomed, the drawing reaches past the frame: clip it at every level (a zoom-out animates from level 1) */
.board-map .mapframe, .dotmap.zoomable { overflow: hidden; }
.map-ctl { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.map-btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; transition: transform 140ms var(--ease-out), opacity 160ms ease; }
.map-btn:active { transform: scale(0.94); }
.map-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
@media (hover: hover) and (pointer: fine) { .map-btn:not([aria-disabled="true"]):hover { border-color: var(--ink-3); } }
.map-reset { position: absolute; left: 10px; bottom: 10px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font: 600 0.8125rem var(--font); cursor: pointer; transition: transform 140ms var(--ease-out); }
.map-reset:active { transform: scale(0.97); }
.board-map[data-z="1"] .lv-u, .board-map:not([data-z="1"]) .lv-o { display: none; }
/* label sizes by how wide each map is drawn: about 12-14px on screen everywhere */
@media (min-width: 1024px) { .board-map .dotmap .lab { font-size: 26px; stroke-width: 7px; } }
.cat-map { max-width: 560px; }
@media (min-width: 640px) { .cat-map .dotmap .lab { font-size: 24px; stroke-width: 6.5px; } }
@media (min-width: 840px) { .where-map .dotmap .lab { font-size: 24px; stroke-width: 6.5px; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
.now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.now-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand-wash); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgb(69 53 232 / 0.45); } 80%, 100% { box-shadow: 0 0 0 9px rgb(69 53 232 / 0); } }
.now-line { flex: 1 1 260px; }
.legend { display: inline-grid; grid-template-columns: auto auto; gap: 2px 10px; align-items: center; font-size: 0.75rem; color: var(--ink-3); }
.legend-label { grid-column: 1 / -1; }
.legend-steps { display: inline-flex; gap: 3px; }
.legend-steps i { width: 14px; height: 8px; border-radius: 4px; background: var(--m0); }
.legend-steps .s1 { background: var(--m1); } .legend-steps .s2 { background: var(--m2); } .legend-steps .s3 { background: var(--m3); } .legend-steps .s4 { background: var(--m4); }
.legend-scale { display: inline-flex; gap: 8px; }

/* ------------------------------------------------------------------ blocks */
.block { margin-top: 40px; }
.block > h2, .block-head { margin-bottom: 14px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.h-sub { font-weight: 450; color: var(--ink-3); font-size: 0.875rem; letter-spacing: 0; }
.more { margin-top: 12px; font-weight: 600; }
.more a { text-decoration: none; }
.empty { color: var(--ink-3); padding: 12px 0; max-width: 60ch; }
.note, .note-small { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--plane); color: var(--ink-2); font-size: 0.9375rem; margin-block: 12px; }
.note-small { background: none; padding: 8px 0 0; font-size: 0.8125rem; color: var(--ink-3); align-items: center; gap: 6px; }
.note-warn { background: var(--warn-wash); color: var(--warn-ink); }
.note-ok { background: var(--ok-wash); color: var(--ok-ink); }

/* segmented control (time ranges, tabs) */
.seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; background: var(--plane); border-radius: 12px; isolation: isolate; }
.seg-ind { position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 9px; background: var(--paper); box-shadow: 0 1px 2px rgb(16 18 30 / 0.12), 0 0 0 1px var(--line); transition: transform 200ms var(--ease-out), width 200ms var(--ease-out); }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: 600 0.875rem var(--font); cursor: pointer; white-space: nowrap; transition: color 160ms ease; }
.seg-btn[aria-selected="true"] { color: var(--ink); }
.seg:not(.has-ind) .seg-btn[aria-selected="true"] { background: var(--paper); box-shadow: 0 1px 2px rgb(16 18 30 / 0.12), 0 0 0 1px var(--line); }

/* ranking rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row.has-me { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
.row-me { white-space: nowrap; }
.row-link { display: grid; grid-template-columns: auto 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 66px; padding: 10px 4px; color: inherit; text-decoration: none; border-radius: 10px; transition: background-color 140ms ease; }
.rows ul.rows .row-link, ul.rows .row-link { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
@media (hover: hover) and (pointer: fine) { .row-link:hover { background: var(--plane); } }
.row-rank { width: 22px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-3); font-size: 0.9375rem; }
.row-ico, .prow-ico, .op-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--plane); color: var(--ink-2); display: grid; place-items: center; }
.row-ico .icon, .prow-ico .icon { width: 21px; height: 21px; }
.mono { background: var(--brand-wash); color: var(--brand-text); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.01em; }
.row-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.row-text > * { max-width: 100%; }
.row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 0.8125rem; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; overflow-wrap: break-word; }
.row-spark { color: var(--ink-3); }
.spark { width: 72px; height: 22px; }
.spark .z { fill: var(--line-strong); }
.spark .p { fill: var(--ink-3); opacity: 0.6; }
.spark .n { fill: var(--brand); }
.row-num { text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; min-width: 44px; }
.row-num strong { font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.row-unit { font-size: 0.6875rem; color: var(--ink-3); }
/* Phones (13 Oct 2026): the unit („сигнала за последния час“) took the name's room and names fell to „Ту…“ on the
   tunnels list; names and the line under them may take two lines each, and the unit wraps under its number.
   No automatic hyphenation: Chromium split names in the wrong place („Благоевг-рад“, „УниКре-дит“; cold review).
   Only a word longer than the whole column breaks. */
@media (max-width: 560px) {
  .row-title, .row-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; overflow-wrap: break-word; }
  .row-unit { max-width: 76px; white-space: normal; text-align: right; }
}
@media (max-width: 400px) {
  .row-link { gap: 10px; }
  .row-unit { max-width: 52px; font-size: 0.625rem; }
  .row-me { padding: 0 8px; font-size: 0.8125rem; }
  /* „Проход на Републиката“, „Българо-американска кредитна банка“ in a ~110 px column: rare, so up to four lines */
  .row-title { -webkit-line-clamp: 4; line-clamp: 4; font-size: 0.9375rem; }
  .row-sub { -webkit-line-clamp: 3; line-clamp: 3; }
}
@media (max-width: 420px) {
  .row-spark { display: none; }
  .row-link { gap: 10px; }
  .has-me .row-rank { display: none; }
  .has-me .row-link { grid-template-columns: 40px minmax(0, 1fr) auto; padding-inline: 0; }
}
.state-inline { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 0.75rem; }
.state-few, .state-none { color: var(--ink-2); }
.state-more { color: var(--warn-ink); }
.state-many { color: var(--critical-ink); }

/* categories: rows and hairlines in two to four columns (design direction § 4), today's count on the right */
.kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; } }
.kinds > li { display: flex; }
.kind { flex: 1; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 56px; padding: 8px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform 140ms var(--ease-out); }
.kind:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .kind:hover .kind-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; } }
.kind-icon { color: var(--brand); display: grid; }
.kind-icon .icon { width: 21px; height: 21px; }
.kind-name { font-weight: 550; font-size: 0.9375rem; line-height: 1.25; }
.kind-count { font-size: 0.875rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* the services people check most, as a status board: name, what people report in the last hour, 24 hours as bars */
.svcs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .svcs { column-gap: 24px; } }
.svcs > li { display: flex; }
.svc { flex: 1; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 60px; padding: 10px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .svc:hover .svc-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; } }
.svc .mono { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.svc-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.svc-name { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; overflow-wrap: break-word; }
.svc-state { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .svc-state { white-space: normal; } .svc-name { -webkit-line-clamp: 4; line-clamp: 4; } }
.svc-state.is-on { color: var(--brand-text); font-weight: 600; }
.svc .state-more { color: var(--warn-ink); }
.svc .state-many { color: var(--critical-ink); }
.svc-spark { display: none; color: var(--ink-3); }
@media (min-width: 640px) { .svc-spark { display: block; } }

.how .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 840px) { .how .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.steps-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-wash); color: var(--brand-text); font-weight: 700; font-size: 0.875rem; display: grid; place-items: center; }

/* ------------------------------------------------------------------ subject and place pages */
.crumbs { margin-top: 16px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; padding: 6px 8px 6px 2px; border-radius: 8px; }
.crumbs a:hover { color: var(--ink); }
.subj { display: flex; align-items: center; gap: 14px; margin: 10px 0 22px; }
.subj-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--plane); color: var(--brand); display: grid; place-items: center; flex: none; }
.subj-ico .icon { width: 28px; height: 28px; }
.subj-ico.mono { font-size: 1rem; }
.road-sign { background: var(--ink); color: var(--paper); font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.02em; }
.subj-text { min-width: 0; }
.subj-title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem); font-weight: 760; letter-spacing: -0.03em; line-height: 1.05; }
.subj-context { color: var(--ink-2); margin-top: 4px; }
.subj-grid { display: grid; gap: 8px; }
@media (min-width: 1024px) { .subj-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; align-items: start; } .subj-side .block:first-child { margin-top: 0; } }

.kpi { display: grid; gap: 14px; }
.state { display: inline-flex; align-self: start; justify-self: start; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; background: var(--plane); color: var(--ink-2); }
.state.state-more { background: var(--warn-wash); color: var(--warn-ink); }
.state.state-many { background: var(--critical-wash); color: var(--critical-ink); }
.state-since { font-weight: 450; opacity: 0.85; }
.kpi-hero { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kpi-big { font-size: clamp(3.75rem, 2.6rem + 5vw, 6.25rem); font-weight: 760; letter-spacing: -0.045em; line-height: 0.88; }
.kpi-label { font-size: 1.0625rem; color: var(--ink-2); max-width: 18ch; line-height: 1.3; }
.kpi-empty { color: var(--ink-3); max-width: 52ch; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; max-width: 360px; align-items: center; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); }
.dots i:nth-child(3n + 2) { opacity: 0.86; }
.dots i:nth-child(5n + 4) { opacity: 0.72; }
.dots .you { background: var(--paper); box-shadow: inset 0 0 0 3px var(--brand); }
.dots-more { font-size: 0.8125rem; color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 4px 0 0; border: 1px solid var(--line); border-radius: 14px; }
.kpi-row div { padding: 10px 14px; }
.kpi-row div + div { border-left: 1px solid var(--line); }
.kpi-row dt { font-size: 0.8125rem; color: var(--ink-3); }
.kpi-row dd { margin: 2px 0 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.kpi-works { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--ink-2); }

.cta-bar { display: flex; gap: 10px; margin: 20px 0 4px; flex-wrap: wrap; }
.cta-bar .btn-primary { flex: 1 1 auto; }
@media (max-width: 719px) {
  .cta-bar {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; margin: 0; flex-wrap: nowrap;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 94%, transparent); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  }
  .cta-bar .btn { min-height: 50px; padding-inline: 14px; }
  .cta-bar .btn-primary span { overflow: hidden; text-overflow: ellipsis; }
  .cta-bar .btn-quiet { flex: none; }
  body:has(.cta-bar) .foot { padding-bottom: 96px; }
}

/* chart */
.chartblock { margin-top: 36px; }
.chart-wrap { position: relative; }
.lc { position: relative; padding: 8px 0 26px 38px; touch-action: pan-y; }
.lc-plot { position: relative; height: 184px; }
@media (min-width: 640px) { .lc-plot { height: 220px; } }
.lc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc .grid { stroke: var(--line); stroke-width: 1; }
.lc .axis { stroke: var(--line-strong); stroke-width: 1; }
.lc .band { fill: var(--plane-2); }
.lc .area { fill: var(--brand); opacity: 0.1; }
.lc .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc-end { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2.5px var(--paper); transform: translate(-50%, -50%); pointer-events: none; }
.lc-y { position: absolute; left: 0; top: 8px; bottom: 26px; width: 30px; }
.lc-y span { position: absolute; right: 0; transform: translateY(-50%); font-size: 0.6875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lc-x { position: absolute; left: 38px; right: 0; bottom: 0; height: 20px; }
.lc-x span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 0.6875rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lc-x span.a-start { transform: none; }
.lc-x span.a-end { transform: translateX(-100%); }
.lc-hit { position: absolute; inset: -8px 0; cursor: crosshair; }
.lc-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-3); transform: translateX(-0.5px); pointer-events: none; }
.chart-tip {
  position: absolute; z-index: 5; top: 0; left: 0; pointer-events: none; min-width: 120px;
  padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 0.8125rem; line-height: 1.3;
  box-shadow: var(--shadow-pop); transform: translate(-50%, calc(-100% - 10px));
}
.chart-tip strong { display: block; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.chart-tip .tip-band { opacity: 0.75; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); }
.key { display: inline-block; flex: none; }
.key-line { width: 16px; height: 2px; border-radius: 2px; background: var(--brand); }
.key-band { width: 16px; height: 10px; border-radius: 3px; background: var(--plane-2); margin-left: 8px; }
.table-view { margin-top: 8px; font-size: 0.875rem; }
.table-view summary { cursor: pointer; color: var(--brand-text); font-weight: 600; padding: 4px 0; width: max-content; }
.table-scroll { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }
.table-scroll table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table-scroll th, .table-scroll td { text-align: left; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.table-scroll td:last-child, .table-scroll th:last-child { text-align: right; }

/* bars */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.bar-label { font-size: 0.9375rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label a { color: var(--ink); text-decoration: none; }
.bar-label a:hover { text-decoration: underline; }
.bar-track { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 8px; }
.bar-bg { fill: var(--plane); }
.bar-fill { fill: var(--brand); }
.bar-val { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 0.9375rem; }
.bar-pct { font-weight: 450; color: var(--ink-3); margin-left: 4px; }
.extlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }

/* place rows */
.prows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; min-height: 68px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.prow-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; }
a.prow-text:hover .prow-title { text-decoration: underline; }
.prow-title { font-weight: 600; }
.prow-sub { font-size: 0.8125rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.prow-more .prow-ico { background: var(--warn-wash); color: var(--warn-ink); }
.prow-many .prow-ico { background: var(--critical-wash); color: var(--critical-ink); }
@media (max-width: 420px) { .prow { grid-template-columns: 40px minmax(0, 1fr) auto; } .prow .row-spark { display: none; } }
.road-line { position: relative; }
.road-line .prow-ico.road-node { background: none; position: relative; }
.road-line .road-node::before { content: ""; position: absolute; left: 50%; top: -12px; bottom: -12px; width: 3px; transform: translateX(-50%); background: var(--line-strong); border-radius: 2px; }
.road-line .road-node::after { content: ""; position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink-2); }
.road-line .prow-more .road-node::after { box-shadow: inset 0 0 0 3px var(--warn); }
.road-line .prow-many .road-node::after { background: var(--critical); box-shadow: none; }

.ops { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ops-wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.op { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.op-ico { color: var(--brand); }
.op-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.op-cat { font-size: 0.8125rem; color: var(--ink-3); }
.op-name { font-weight: 600; }
.op-phone { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; font-variant-numeric: tabular-nums; text-decoration: none; width: max-content; }
.op-link { font-size: 0.8125rem; color: var(--ink-3); }
.op-none { font-size: 0.875rem; color: var(--ink-2); }
.op-112 .op-ico { background: var(--critical-wash); color: var(--critical-ink); }

/* a town as dots, with its квартали (place pages; tools/build_citymaps.py) */
.where { display: grid; gap: 16px; }
@media (min-width: 840px) { .where { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; } }
.where-map { margin: 0; }
.where-map .dotmap { max-height: 460px; }   /* a narrow town keeps its shape, drawn smaller, never a tall strip */
@media (min-width: 840px) { .where-map .dotmap { max-height: 520px; } }
.citymap .fabric { fill: none; stroke: var(--m0); stroke-linecap: round; }   /* stroke-width: per town, on the path */
.citymap .focus-halo { fill: var(--brand); opacity: 0.14; }
.citymap .focus { fill: var(--paper); stroke: var(--brand); stroke-width: 6; }
.dotmap .lab-focus { fill: var(--brand-text); font-weight: 700; }
.where-h3 { font-size: 0.9375rem; font-weight: 650; margin-bottom: 8px; }
.qall summary { cursor: pointer; font-weight: 600; color: var(--brand-text); padding: 6px 0; width: fit-content; }
.qall[open] summary { margin-bottom: 10px; }
.qgrid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.qlink { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.875rem; }
.qlink:hover { border-color: var(--ink-3); }
.qlink.is-on { background: var(--brand-wash); border-color: transparent; color: var(--brand-text); font-weight: 600; }
.qcount { font-variant-numeric: tabular-nums; font-size: 0.75rem; background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 1px 7px; }
.linklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.linklist a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.linklist a:hover span:first-child { text-decoration: underline; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 16px; color: var(--ink-2); max-width: 68ch; }
.cite { margin: 28px 0 48px; font-size: 0.8125rem; color: var(--ink-3); max-width: 72ch; }

/* ------------------------------------------------------------------ prose pages */
.prose { max-width: 760px; padding-bottom: 56px; }
.page-title { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); font-weight: 760; letter-spacing: -0.03em; margin: 28px 0 12px; line-height: 1.08; }
.prose .lede { font-size: 1.0625rem; color: var(--ink-2); margin-bottom: 20px; }
.prose h2 { margin: 32px 0 10px; }
.prose h3 { margin: 22px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 8px 0 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.prose thead th { color: var(--ink-3); font-weight: 600; font-size: 0.8125rem; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 8px; }
.toc a { padding: 6px 12px; border-radius: 999px; background: var(--plane); text-decoration: none; color: var(--ink); font-size: 0.875rem; }
.fine-print { margin-top: 36px; font-size: 0.8125rem; color: var(--ink-2); }
.fine-print h2 { font-size: 1rem; }
.fine-print table { font-size: 0.8125rem; }
.page-meta { color: var(--ink-3); font-size: 0.8125rem; margin-top: 28px; }
.prose .kinds { margin: 0 0 24px; padding: 0; list-style: none; }
.prose .kinds > li { margin: 0; }
@media (min-width: 1024px) { .prose .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* the reading column is narrower than the home page */
.prose .seg { margin-bottom: 12px; }

/* forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; position: relative; }
.field > label, .choices legend { font-weight: 600; font-size: 0.9375rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font: 400 1rem var(--font);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
.field-note { font-size: 0.8125rem; color: var(--ink-3); }
.choices { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choices legend { padding: 0; margin-bottom: 8px; }
.choices-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 14px;
  border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 550;
  transition: border-color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out);
}
.choice:active { transform: scale(0.985); }
.choice input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: border-color 160ms ease; }
.choice input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform 160ms var(--ease-out); }
.choice input:checked { border-color: var(--brand); }
.choice input:checked::after { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
.choice input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.choice-danger::after { content: "112"; margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--critical-ink); background: var(--critical-wash); border-radius: 999px; padding: 2px 8px; }
.fine { font-size: 0.8125rem; color: var(--ink-3); }
.form-error { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--critical-wash); color: var(--critical-ink); font-size: 0.9375rem; }
.form-error.is-hint { background: var(--brand-wash); color: var(--brand-text); }   /* an instruction (tick the box), not a failure */

/* ------------------------------------------------------------------ search popup */
.suggest {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); max-height: min(70vh, 520px); overflow: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 6px;
  transform-origin: top center;
}
.suggest[data-open] { animation: pop-in 160ms var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.99); } }
.suggest-group { padding: 8px 10px 4px; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }
.suggest-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 52px; padding: 6px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; cursor: pointer; }
.suggest-item[aria-selected="true"], .suggest-item:hover { background: var(--plane); }
.suggest-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--plane); display: grid; place-items: center; color: var(--ink-2); font-size: 0.6875rem; font-weight: 700; }
.suggest-ico.mono { background: var(--brand-wash); color: var(--brand-text); }
.suggest-ico .icon { width: 19px; height: 19px; }
.suggest-text { min-width: 0; display: flex; flex-direction: column; }
.suggest-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-sub { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-empty { padding: 14px 12px; color: var(--ink-3); font-size: 0.9375rem; }

/* ------------------------------------------------------------------ the report sheet */
.sheet {
  border: 0; padding: 0; margin: 0; color: var(--ink); background: var(--paper);
  width: 100%; max-width: 100%; max-height: min(92dvh, 820px); height: auto;
  position: fixed; inset: auto 0 0 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow-sheet);
  transform: translateY(100%);
  transition-property: transform, display, overlay;
  transition-duration: 240ms;
  transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}
.sheet:is([open]):where(:not([data-closing])) {
  transform: translateY(0);
  transition-duration: 420ms;
  transition-timing-function: var(--ease-drawer);
  @starting-style { transform: translateY(100%); }
}
.sheet::backdrop { background: rgb(10 12 24 / 0); transition: background-color 240ms ease, display 240ms allow-discrete, overlay 240ms allow-discrete; }
.sheet:is([open]):where(:not([data-closing]))::backdrop { background: rgb(10 12 24 / 0.42); @starting-style { background: rgb(10 12 24 / 0); } }
@media (min-width: 720px) {
  .sheet {
    inset: 0; margin: auto; width: min(560px, calc(100% - 32px)); max-height: min(780px, calc(100dvh - 48px));
    border-radius: var(--r-sheet); transform: scale(0.96); opacity: 0;
    transition-property: transform, opacity, display, overlay; transition-duration: 180ms;
  }
  .sheet:is([open]):where(:not([data-closing])) { transform: scale(1); opacity: 1; transition-duration: 220ms; transition-timing-function: var(--ease-out);
    @starting-style { transform: scale(0.96); opacity: 0; } }
}
.sheet-form { display: flex; flex-direction: column; max-height: inherit; height: 100%; }
.sheet-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 6px; padding: 14px 12px 10px; }
.sheet-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; border-radius: 4px; background: var(--line-strong); transform: translateX(-50%); }
@media (min-width: 720px) { .sheet-head::before { display: none; } }
.sheet-titles { min-width: 0; text-align: center; }
.sheet-subject { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.sheet-title { font-size: 1.25rem; font-weight: 700; }
.sheet-head [data-sheet-back] { grid-column: 1; }
.sheet-head [data-sheet-close] { grid-column: 3; }
.sheet-progress { height: 3px; margin: 0 20px; background: var(--plane); border-radius: 3px; overflow: hidden; }
.sheet-progress span { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0.25); transition: transform 300ms var(--ease-out); }
.sheet-body { overflow: auto; padding: 18px 20px 12px; flex: 1 1 auto; overscroll-behavior: contain; }
.sheet-foot { padding: 10px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.step { display: grid; gap: 14px; }
.hint { font-size: 0.875rem; color: var(--ink-3); }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 86px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; text-align: center; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; transition: border-color 160ms ease, transform 140ms var(--ease-out); }
.tile:active { transform: scale(0.97); }
.tile-icon { color: var(--brand); }
@media (hover: hover) and (pointer: fine) { .tile:hover { border-color: var(--brand); } }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pick-list button { width: 100%; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; }
.field-search { position: relative; }
.field-search input { padding-left: 44px; }
.field-icon { position: absolute; left: 14px; top: 13px; color: var(--ink-3); pointer-events: none; }
.seg-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); width: 100%; }
.seg-tabs .seg-btn { justify-content: center; }
.tab-panel { display: grid; gap: 14px; }
.cb input { padding-right: 44px; }
.cb-clear { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.cb.is-set input { border-color: var(--brand); background: var(--brand-wash); font-weight: 600; }
.cb-list { list-style: none; margin: 4px 0 0; padding: 4px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.cb-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; }
.cb-list li[aria-selected="true"], .cb-list li:hover { background: var(--plane); }
.cb-list .cb-sub { font-size: 0.8125rem; color: var(--ink-3); }
.cb-list .cb-empty { color: var(--ink-3); cursor: default; }
.locate-result { font-weight: 600; min-height: 1.4em; }
.map-pick { position: relative; height: min(48dvh, 340px); border-radius: 16px; overflow: hidden; background: var(--plane); }
.map-pick .maplibregl-canvas { outline: none; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 0.875rem; }
.map-cross { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgb(255 255 255 / 0.9), 0 2px 8px rgb(0 0 0 / 0.3); transform: translate(-50%, -50%); pointer-events: none; z-index: 2; }
.summary { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; }
.summary div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 11px 14px; }
.summary div + div { border-top: 1px solid var(--line); }
.summary dt { color: var(--ink-3); font-size: 0.875rem; }
.summary dd { margin: 0; font-weight: 600; }
.danger { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 14px; background: var(--critical-wash); color: var(--critical-ink); }
.danger p { color: var(--ink); font-size: 0.9375rem; margin-bottom: 10px; }
.danger .danger-h { color: var(--critical-ink); font-weight: 700; font-size: 1.0625rem; margin-bottom: 4px; }
.turnstile:empty { display: none; }
.step-done { text-align: center; justify-items: center; padding: 8px 0 4px; }
.done-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 320px; min-height: 12px; }
.done-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); opacity: 0.45; }
.done-dots i.you { opacity: 1; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); animation: you-in 520ms var(--ease-out) 120ms both; }
@keyframes you-in { from { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } to { transform: scale(1); } }
.done-kicker { color: var(--brand-text); font-weight: 700; margin-top: 10px; }
.done-title { font-size: 1.5rem; font-weight: 760; letter-spacing: -0.02em; }
.done-line { color: var(--ink-2); max-width: 36ch; }
.done-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.works-btn { justify-self: start; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; font-size: 0.9375rem; box-shadow: var(--shadow-pop); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.toast[data-hide] { opacity: 0; transform: translate(-50%, 8px); }

/* ------------------------------------------------------------------ footer */
.foot { margin-top: 64px; background: var(--plane); border-top: 1px solid var(--line); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 36px var(--gutter) 40px; display: grid; gap: 18px; }
.foot-brand { display: grid; gap: 8px; color: var(--ink-2); max-width: 46ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 550; padding: 4px 0; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8125rem; color: var(--ink-2); max-width: 80ch; }
.foot-small { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.75rem; color: var(--ink-3); }
.foot-small a { color: var(--ink-3); }

/* ------------------------------------------------------------------ gate */
.gate { max-width: 380px; margin: 12vh auto; padding: 24px; display: grid; gap: 14px; }
.gate h1 { font-size: 1.5rem; }

/* ------------------------------------------------------------------ motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .sheet, .sheet:is([open]) { transition-duration: 120ms !important; transform: none !important; }
  .dotmap .spot.pulse circle, .live-dot { animation: none !important; }
  .btn:active, .chip:active, .tile:active, .kind:active, .choice:active { transform: none; }
}
@media (forced-colors: active) {
  .dots i, .lc-end, .logo-dot { forced-color-adjust: none; background: CanvasText; }
  .state, .choice:has(input:checked) { border: 1px solid CanvasText; }
}

/* ------------------------------------------------------------------ chart positions (generated: .px-N left N%, .py-N top N%) */
.px-0{left:0%}.px-1{left:1%}.px-2{left:2%}.px-3{left:3%}.px-4{left:4%}.px-5{left:5%}.px-6{left:6%}.px-7{left:7%}.px-8{left:8%}.px-9{left:9%}.px-10{left:10%}.px-11{left:11%}.px-12{left:12%}.px-13{left:13%}.px-14{left:14%}.px-15{left:15%}.px-16{left:16%}.px-17{left:17%}.px-18{left:18%}.px-19{left:19%}.px-20{left:20%}.px-21{left:21%}.px-22{left:22%}.px-23{left:23%}.px-24{left:24%}.px-25{left:25%}.px-26{left:26%}.px-27{left:27%}.px-28{left:28%}.px-29{left:29%}.px-30{left:30%}.px-31{left:31%}.px-32{left:32%}.px-33{left:33%}.px-34{left:34%}.px-35{left:35%}.px-36{left:36%}.px-37{left:37%}.px-38{left:38%}.px-39{left:39%}.px-40{left:40%}.px-41{left:41%}.px-42{left:42%}.px-43{left:43%}.px-44{left:44%}.px-45{left:45%}.px-46{left:46%}.px-47{left:47%}.px-48{left:48%}.px-49{left:49%}.px-50{left:50%}.px-51{left:51%}.px-52{left:52%}.px-53{left:53%}.px-54{left:54%}.px-55{left:55%}.px-56{left:56%}.px-57{left:57%}.px-58{left:58%}.px-59{left:59%}.px-60{left:60%}.px-61{left:61%}.px-62{left:62%}.px-63{left:63%}.px-64{left:64%}.px-65{left:65%}.px-66{left:66%}.px-67{left:67%}.px-68{left:68%}.px-69{left:69%}.px-70{left:70%}.px-71{left:71%}.px-72{left:72%}.px-73{left:73%}.px-74{left:74%}.px-75{left:75%}.px-76{left:76%}.px-77{left:77%}.px-78{left:78%}.px-79{left:79%}.px-80{left:80%}.px-81{left:81%}.px-82{left:82%}.px-83{left:83%}.px-84{left:84%}.px-85{left:85%}.px-86{left:86%}.px-87{left:87%}.px-88{left:88%}.px-89{left:89%}.px-90{left:90%}.px-91{left:91%}.px-92{left:92%}.px-93{left:93%}.px-94{left:94%}.px-95{left:95%}.px-96{left:96%}.px-97{left:97%}.px-98{left:98%}.px-99{left:99%}.px-100{left:100%}
.py-0{top:0%}.py-1{top:1%}.py-2{top:2%}.py-3{top:3%}.py-4{top:4%}.py-5{top:5%}.py-6{top:6%}.py-7{top:7%}.py-8{top:8%}.py-9{top:9%}.py-10{top:10%}.py-11{top:11%}.py-12{top:12%}.py-13{top:13%}.py-14{top:14%}.py-15{top:15%}.py-16{top:16%}.py-17{top:17%}.py-18{top:18%}.py-19{top:19%}.py-20{top:20%}.py-21{top:21%}.py-22{top:22%}.py-23{top:23%}.py-24{top:24%}.py-25{top:25%}.py-26{top:26%}.py-27{top:27%}.py-28{top:28%}.py-29{top:29%}.py-30{top:30%}.py-31{top:31%}.py-32{top:32%}.py-33{top:33%}.py-34{top:34%}.py-35{top:35%}.py-36{top:36%}.py-37{top:37%}.py-38{top:38%}.py-39{top:39%}.py-40{top:40%}.py-41{top:41%}.py-42{top:42%}.py-43{top:43%}.py-44{top:44%}.py-45{top:45%}.py-46{top:46%}.py-47{top:47%}.py-48{top:48%}.py-49{top:49%}.py-50{top:50%}.py-51{top:51%}.py-52{top:52%}.py-53{top:53%}.py-54{top:54%}.py-55{top:55%}.py-56{top:56%}.py-57{top:57%}.py-58{top:58%}.py-59{top:59%}.py-60{top:60%}.py-61{top:61%}.py-62{top:62%}.py-63{top:63%}.py-64{top:64%}.py-65{top:65%}.py-66{top:66%}.py-67{top:67%}.py-68{top:68%}.py-69{top:69%}.py-70{top:70%}.py-71{top:71%}.py-72{top:72%}.py-73{top:73%}.py-74{top:74%}.py-75{top:75%}.py-76{top:76%}.py-77{top:77%}.py-78{top:78%}.py-79{top:79%}.py-80{top:80%}.py-81{top:81%}.py-82{top:82%}.py-83{top:83%}.py-84{top:84%}.py-85{top:85%}.py-86{top:86%}.py-87{top:87%}.py-88{top:88%}.py-89{top:89%}.py-90{top:90%}.py-91{top:91%}.py-92{top:92%}.py-93{top:93%}.py-94{top:94%}.py-95{top:95%}.py-96{top:96%}.py-97{top:97%}.py-98{top:98%}.py-99{top:99%}.py-100{top:100%}

/* ------------------------------------------------------------------ iteration 1 fixes (first render, 12 Oct) */
.h-sub { display: block; margin-top: 2px; }
.block-head .h-sub { display: inline; }
.do-text { color: var(--ink-2); font-size: 0.9375rem; margin-bottom: 10px; }
@media (max-width: 479px) {
  .cta-bar .btn-works { width: 52px; padding: 0; }
  .cta-bar .btn-works span { display: none; }
}
.now { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: baseline; }
.now .legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.legend-label { margin-right: 4px; }
.legend-scale { order: 3; }
.legend-scale span:first-child::after { content: ""; }
/* the road strip */
/* the motorway as one bar: sections by length, shaded by today's reports (the home map's ramp); state stays in the list */
.strip { margin: 8px 0 8px; }
.strip-bar { display: flex; gap: 2px; height: 18px; border-radius: 9px; overflow: hidden; }
.strip-seg { display: block; height: 100%; background: var(--m0); transition: filter 160ms ease; }
@media (hover: hover) and (pointer: fine) { .strip-seg:hover { filter: brightness(0.9); } }
.strip-s1 { background: var(--m1); } .strip-s2 { background: var(--m2); } .strip-s3 { background: var(--m3); } .strip-s4 { background: var(--m4); }
.strip figcaption { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.strip-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: var(--ink-3); }
.strip-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.875rem; color: var(--ink-2); }
.strip-note .legend-ramp { font-size: 0.75rem; color: var(--ink-3); margin-left: auto; }
.w-1{flex:1 1 0}.w-2{flex:2 1 0}.w-3{flex:3 1 0}.w-4{flex:4 1 0}.w-5{flex:5 1 0}.w-6{flex:6 1 0}.w-7{flex:7 1 0}.w-8{flex:8 1 0}.w-9{flex:9 1 0}.w-10{flex:10 1 0}.w-11{flex:11 1 0}.w-12{flex:12 1 0}.w-13{flex:13 1 0}.w-14{flex:14 1 0}.w-15{flex:15 1 0}.w-16{flex:16 1 0}.w-17{flex:17 1 0}.w-18{flex:18 1 0}.w-19{flex:19 1 0}.w-20{flex:20 1 0}.w-21{flex:21 1 0}.w-22{flex:22 1 0}.w-23{flex:23 1 0}.w-24{flex:24 1 0}.w-25{flex:25 1 0}.w-26{flex:26 1 0}.w-27{flex:27 1 0}.w-28{flex:28 1 0}.w-29{flex:29 1 0}.w-30{flex:30 1 0}.w-31{flex:31 1 0}.w-32{flex:32 1 0}.w-33{flex:33 1 0}.w-34{flex:34 1 0}.w-35{flex:35 1 0}.w-36{flex:36 1 0}.w-37{flex:37 1 0}.w-38{flex:38 1 0}.w-39{flex:39 1 0}.w-40{flex:40 1 0}.w-41{flex:41 1 0}.w-42{flex:42 1 0}.w-43{flex:43 1 0}.w-44{flex:44 1 0}.w-45{flex:45 1 0}.w-46{flex:46 1 0}.w-47{flex:47 1 0}.w-48{flex:48 1 0}.w-49{flex:49 1 0}.w-50{flex:50 1 0}.w-51{flex:51 1 0}.w-52{flex:52 1 0}.w-53{flex:53 1 0}.w-54{flex:54 1 0}.w-55{flex:55 1 0}.w-56{flex:56 1 0}.w-57{flex:57 1 0}.w-58{flex:58 1 0}.w-59{flex:59 1 0}.w-60{flex:60 1 0}.w-61{flex:61 1 0}.w-62{flex:62 1 0}.w-63{flex:63 1 0}.w-64{flex:64 1 0}.w-65{flex:65 1 0}.w-66{flex:66 1 0}.w-67{flex:67 1 0}.w-68{flex:68 1 0}.w-69{flex:69 1 0}.w-70{flex:70 1 0}.w-71{flex:71 1 0}.w-72{flex:72 1 0}.w-73{flex:73 1 0}.w-74{flex:74 1 0}.w-75{flex:75 1 0}.w-76{flex:76 1 0}.w-77{flex:77 1 0}.w-78{flex:78 1 0}.w-79{flex:79 1 0}.w-80{flex:80 1 0}.w-81{flex:81 1 0}.w-82{flex:82 1 0}.w-83{flex:83 1 0}.w-84{flex:84 1 0}.w-85{flex:85 1 0}.w-86{flex:86 1 0}.w-87{flex:87 1 0}.w-88{flex:88 1 0}.w-89{flex:89 1 0}.w-90{flex:90 1 0}.w-91{flex:91 1 0}.w-92{flex:92 1 0}.w-93{flex:93 1 0}.w-94{flex:94 1 0}.w-95{flex:95 1 0}.w-96{flex:96 1 0}.w-97{flex:97 1 0}.w-98{flex:98 1 0}.w-99{flex:99 1 0}.w-100{flex:100 1 0}
.sheet-titles { grid-column: 2; grid-row: 1; }
.legend-ramp { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 420px) { .seg-tabs .seg-btn .icon { display: none; } .seg-tabs .seg-btn { padding: 0 8px; } }

/* ------------------------------------------------------------------ admin (13 Oct 2026; English, Radko only) */
.admin-brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.admin-nav { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.admin-main { padding-block: 24px 64px; }
.admin-login { max-width: 420px; }
.admin-note { padding: 10px 12px; border-radius: 12px; background: var(--brand-wash); color: var(--brand-text); }
.admin-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.admin-facts > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.admin-facts dt { font-size: 0.8125rem; color: var(--ink-3); }
.admin-facts dd { margin: 0; font-size: 1.25rem; font-weight: 650; }
.admin-panel { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; }
.admin-panel h2 { margin: 0 0 8px; font-size: 1.125rem; }
.admin-act { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 8px 4px 0; }
.admin-act input:not([type="hidden"]) { min-height: 36px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); font: 400 0.875rem var(--font); min-width: 180px; }
.admin-act-wide { display: flex; margin-bottom: 12px; }
.admin-act-wide input:not([type="hidden"]) { flex: 1 1 220px; }
.admin-list { padding-left: 18px; }
.admin-list li { margin: 6px 0; }
.admin-msg { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.admin-msg p { margin: 4px 0; }
.admin-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-flag { color: var(--critical-ink); background: var(--critical-wash); border-radius: 999px; padding: 1px 8px; font-size: 0.8125rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.admin-table th, .admin-table td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
.admin-table tr.is-hidden td { color: var(--ink-3); }
.admin-acts { min-width: 120px; }
.admin-acts summary, .admin-msg summary, .admin-panel > details > summary { cursor: pointer; font-weight: 600; color: var(--brand-text); }
.admin-acts details[open] { min-width: 260px; }
