/* Self-hosted fonts: Cyrillic and Latin subsets only (see static/fonts/OFL.txt). */
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-cyrillic-400.woff2?v=7b59d6bf7f8b8408) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-latin-400.woff2?v=c36f509c0a8f9f85) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-cyrillic-500.woff2?v=d524dc8ff6dbf7ed) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-latin-500.woff2?v=a76f53ca6612e7b3) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-cyrillic-italic.woff2?v=aa3307fb7cace734) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-latin-italic.woff2?v=134dc0ee94e70cf5) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-cyrillic.woff2?v=5bac72520e0a9a56) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-latin.woff2?v=056e4e2459f57a00) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-cyrillic.woff2?v=5bac72520e0a9a56) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-latin.woff2?v=056e4e2459f57a00) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-cyrillic.woff2?v=5bac72520e0a9a56) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-latin.woff2?v=056e4e2459f57a00) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/literata-cyrillic.woff2?v=c0963cb295d70107) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/literata-latin.woff2?v=33b49c485e21a38b) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/literata-cyrillic.woff2?v=c0963cb295d70107) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/literata-latin.woff2?v=33b49c485e21a38b) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Layout: one reading column; importance is expressed by type size, density and treatment,
   never by colour. Tier 1 = framed cards, tier 2 = open entries, tier 3 = a compact list. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #12151a;
  --muted: #5a6371;
  --faint: #8a93a1;
  --line: #e0e4ea;
  --accent: #1d4ed8;
  --accent-soft: #e6edfd;
  --new: #f4c430;
  --new-soft: #fff6d6;
  --ok: #16653a;      --ok-soft: #e3f3e9;
  --doc: #1d4ed8;     --doc-soft: #e6edfd;
  --party: #9a5a00;   --party-soft: #fdf0dc;
  --single: #5a6371;  --single-soft: #eceef2;
  --bad: #7a2fb3;     --bad-soft: #f3eafb;
  --crit: #c3161c;    --crit-soft: #fdecec;
  --shadow: 0 1px 2px rgba(18,21,26,.05), 0 4px 16px rgba(18,21,26,.05);

  --f-head: "Literata", "Georgia", "Times New Roman", serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s-t1: clamp(1.5rem, 1.1rem + 1.6vw, 2.05rem);
  --s-t2: clamp(1.15rem, 1.02rem + .5vw, 1.32rem);
  --s-t3: 1rem;
  --s-body: 1.0625rem;
  --s-small: .875rem;
  --s-tiny: .75rem;
  --col: 44rem;
  --page: 44rem;
}
@media (min-width: 960px) { :root { --page: 76rem; } }
@media (min-width: 1400px) { :root { --page: 82rem; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116; --surface: #161a21; --ink: #e7e9ee; --muted: #a0a8b5; --faint: #6f7886;
    --line: #262c36; --accent: #8aaeff; --accent-soft: #1b2440;
    --new: #e8b923; --new-soft: #2a2410;
    --ok: #6fd39a; --ok-soft: #12291c; --doc: #8aaeff; --doc-soft: #1b2440;
    --party: #f0b45a; --party-soft: #2d2212; --single: #a0a8b5; --single-soft: #222730;
    --bad: #c9a0f2; --bad-soft: #281a38;
    --crit: #ff6b5f; --crit-soft: #3a1513;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116; --surface: #161a21; --ink: #e7e9ee; --muted: #a0a8b5; --faint: #6f7886;
  --line: #262c36; --accent: #8aaeff; --accent-soft: #1b2440;
  --new: #e8b923; --new-soft: #2a2410;
  --ok: #6fd39a; --ok-soft: #12291c; --doc: #8aaeff; --doc-soft: #1b2440;
  --party: #f0b45a; --party-soft: #2d2212; --single: #a0a8b5; --single-soft: #222730;
  --bad: #c9a0f2; --bad-soft: #281a38;
  --crit: #ff6b5f; --crit-soft: #3a1513;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
:root { --bar-h: 56px; }
body {
  margin: 0;
  padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  background: var(--bg); color: var(--ink);
  font: 400 var(--s-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
.wrap { max-width: var(--page); margin: 0 auto; padding-inline: 16px; }
.data { font-family: var(--f-data); font-variant-numeric: tabular-nums; }

/* Header */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar { background: var(--bg); }
}
.bar .wrap { display: flex; align-items: center; height: var(--bar-h); }
.mark { font: 700 1.2rem/1 var(--f-head); letter-spacing: -.01em; display: flex; align-items: center; height: 32px; }
.alert-line { margin-top: 8px; margin-bottom: 0; font-size: var(--s-small); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.alert-line[hidden] { display: none; }
.alert-line .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--faint); }
.alert-line .dot[data-level="red"] { background: var(--crit); }
.alert-line .dot[data-level="yellow"] { background: var(--new); }
.bar .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; height: 36px; }
.region {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 var(--s-small)/1 var(--f-body); height: 36px; padding: 0 30px 0 12px; border-radius: 18px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
  max-width: 46vw; text-overflow: ellipsis;
}
.theme {
  display: inline-flex; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 2px; height: 36px;
}
.theme button {
  border: 0; background: transparent; color: var(--muted); width: 32px; border-radius: 15px; cursor: pointer;
  display: grid; place-items: center;
}
.theme button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.theme svg { width: 16px; height: 16px; }

/* Day summary */
.day { padding-block: 28px 8px; display: grid; gap: 6px; }
.day h1 { margin: 0; font: 700 clamp(1.9rem, 1.4rem + 2vw, 2.6rem)/1.1 var(--f-head); letter-spacing: -.02em; text-wrap: balance; }
.day p { margin: 0; color: var(--muted); font-size: var(--s-small); }
.day .count { color: var(--ink); font-weight: 500; }

/* Section labels */
.tier-label {
  display: flex; align-items: center; gap: 10px; margin: 28px 0 12px;
  font: 600 var(--s-tiny)/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.tier-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Importance as ripples: a dot and up to 3 rings; one fixed column at the right edge of a row */
:root { --pill-h: 22px; }
.imp-col { display: flex; justify-content: center; align-self: start; width: 28px; flex: none; }
.imp { display: block; flex: none; width: 20px; height: 20px; color: var(--muted); }
.imp[data-level="4"], .imp[data-level="5"] { color: var(--ink); }
.imp.is-crit { color: var(--crit); }
.imp-dot { fill: currentColor; }
.imp-r { fill: none; stroke: currentColor; stroke-width: 1.3; transform-box: fill-box; transform-origin: center; }
.imp-lg { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 var(--s-small)/1 var(--f-body); }
.imp-lg .imp { width: 32px; height: 32px; }
.imp.is-crit .imp-r2, .imp.is-crit .imp-r3, .imp.is-crit .imp-r4 { animation: ripple 4s ease-in-out infinite; }
.imp.is-crit .imp-r3 { animation-delay: .15s; }
.imp.is-crit .imp-r4 { animation-delay: .3s; }
@keyframes ripple { 0%, 60%, 100% { transform: scale(1); } 25% { transform: scale(1.12); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .imp.is-crit .imp-r { animation: none; } }

/* Region pill: neutral outline, same height as the other pills */
.reg {
  display: inline-flex; align-items: center; box-sizing: border-box; height: var(--pill-h); padding: 0 8px; border: 1px solid var(--line);
  border-radius: 6px; color: var(--muted); font: 500 var(--s-tiny)/1 var(--f-body); letter-spacing: 0; white-space: nowrap; vertical-align: middle;
}
.regs { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
/* In lists the region sits on its own line above the headline, so headlines align on the left. */
h3 .regs, .now-main .regs, .r-main .regs { display: flex; margin-bottom: 6px; }
h3 .reg, .now-main .reg, .r-main .reg { height: 20px; padding: 0 7px; font-size: .72rem; }
.now-main { min-width: 0; }

/* Source-kind icon from icons.svg */
.ico { width: 1.05em; height: 1.05em; flex: none; margin-right: .4em; vertical-align: -.17em; color: var(--faint); }

/* Evidence chips */
.ev {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font: 500 var(--s-tiny)/1 var(--f-body); padding: 0 8px 0 6px; height: var(--pill-h); box-sizing: border-box; border-radius: 6px; vertical-align: middle;
}
.ev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ev.anchored { color: var(--ok); background: var(--ok-soft); }
.ev.anchored::before { border-radius: 1px; transform: rotate(45deg); }
.ev.corrob { color: var(--ok); background: var(--ok-soft); font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 8px 0 7px; }
/* A drawn check mark: two borders of a rotated box, no icon font, no image. */
.ev.corrob::before {
  width: 4px; height: 8px; border-radius: 0; background: none;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.ev.doc { color: var(--doc); background: var(--doc-soft); }
.ev.doc::before { border-radius: 1px; }
.ev.party { color: var(--party); background: var(--party-soft); }
.ev.party::before { background: transparent; border: 1.5px solid currentColor; width: 6px; height: 6px; }
.ev.single { color: var(--single); background: var(--single-soft); }
.ev.single::before { background: transparent; border: 1.5px dashed currentColor; width: 6px; height: 6px; }
.ev.bad { color: var(--bad); background: var(--bad-soft); }
.ev.bad::before { content: "!"; width: auto; height: auto; background: none; font-weight: 700; }

.stake {
  display: inline-flex; align-items: center; gap: 6px; font: 500 var(--s-tiny)/1 var(--f-body);
  color: var(--accent); background: var(--accent-soft); padding: 5px 9px; border-radius: 999px;
}
.stake[hidden] { display: none; }

/* Tier 1 */
.t1 { display: grid; gap: 20px; }
.story {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 28px 24px 22px; display: grid; min-width: 0;
  grid-template-rows: auto 1fr auto; align-items: start;
}
.story .foot { align-self: end; }
.story .top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: var(--s-tiny); }
.story .top .data { color: var(--faint); }
.story h2 { margin: 0; font: 700 var(--s-t1)/1.22 var(--f-head); letter-spacing: -.015em; text-wrap: balance; }
.story h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.news-since {
  margin: 0; padding: 8px 12px; border-left: 3px solid var(--new); background: var(--new-soft); border-radius: 0 8px 8px 0;
  font-size: var(--s-small);
}
.news-since b { font-weight: 600; }
.facts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; line-height: 1.6; }
.facts li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.facts li span:first-child { min-width: 0; }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; } .facts li .ev { justify-self: start; } }
.story .foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: var(--s-small); color: var(--muted);
}
.story .foot .more { margin-left: auto; color: var(--accent); font-weight: 500; }

/* Critical: threat to life or safety, or disruption that needs action today */
.crit {
  display: inline-flex; align-items: center; gap: 6px; color: var(--crit);
  font: 700 var(--s-tiny)/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
}
.crit::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--crit-soft); }
.story.is-critical { border-color: color-mix(in srgb, var(--crit) 50%, var(--line)); }
.is-critical h1, .is-critical h2 { color: var(--crit); }

/* "Зараз": the first screen answers "what is really happening, did I miss anything" */
.now {
  margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px 6px; display: grid; gap: 8px;
}
.now-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--s-small); }
.now-head b { font-weight: 600; }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
@media (prefers-reduced-motion: no-preference) {
  .now-dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--ok-soft); } }
}
.now-since { color: var(--muted); }
.now-since .n { color: var(--ink); font-weight: 600; }
.now-list { list-style: none; margin: 0; padding: 0; }
.now-list li {
  display: grid; grid-template-columns: 3.1rem minmax(0, 1fr) auto 28px; gap: 4px 10px; align-items: baseline;
  padding: 12px 0; line-height: 1.4; border-top: 1px solid var(--line);
}
.now-list .data { font-size: var(--s-tiny); color: var(--faint); }
.now-list a { font-weight: 600; }
.now-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.now-list li.is-new .data { color: var(--ink); }
.now-list li.is-new .data::after { content: " нове"; color: var(--party); font-family: var(--f-body); font-weight: 600; }
.now-list .ev { justify-self: end; }
@media (max-width: 520px) {
  .now-list .ev { justify-self: start; }
}
.now-foot { font-size: var(--s-tiny); color: var(--faint); padding: 6px 0 4px; border-top: 1px solid var(--line); }

/* Tier 2 */
.t2 { display: grid; }
.entry { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 28px; column-gap: 12px; align-content: start; min-width: 0; }
.entry > :not(.imp-col) { grid-column: 1; }
.entry > .imp-col { grid-column: 2; grid-row: 1 / span 2; }
.entry:first-child { padding-top: 4px; }
.entry h3 { margin: 0; font: 600 var(--s-t2)/1.3 var(--f-head); letter-spacing: -.01em; text-wrap: balance; }
.entry p { margin: 12px 0 0; color: var(--muted); font-size: .97rem; line-height: 1.6; }
.entry .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: var(--s-tiny); color: var(--faint); }

/* Rail: «Усі новини · по порядку» */
.tier-label .sub { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list li {
  display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) 2rem 28px; gap: 12px; align-items: baseline; padding: 14px 0;
  border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.4; color: var(--muted);
}
.rail-list li:last-child { border-bottom: 0; }

.rail-list .data { font-size: var(--s-tiny); color: var(--faint); }
.rail-list li.is-new .data { color: var(--ink); font-weight: 500; }
.rail-list .r-main { min-width: 0; }
.rail-list a { color: var(--muted); font-weight: 400; }
.rail-list .r-mid a { color: var(--ink); font-weight: 600; }
.rail-list .r-hi a { color: var(--ink); font-weight: 700; }
.rail-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rail-list .n { font-size: var(--s-tiny); color: var(--faint); text-align: right; white-space: nowrap; }
.since { margin-right: 6px; font-size: var(--s-tiny); color: var(--faint); white-space: nowrap; }
.pill {
  display: inline-block; margin-right: 6px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 .66rem/1.2 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); vertical-align: 1px;
}
.rail-more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 500; font-size: var(--s-small); }
.day-nav { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 8px; font-size: var(--s-small); }
.day-nav a { color: var(--accent); font-weight: 500; }

/* End of feed */
.done {
  margin: 36px 0 24px; padding: 28px 20px; text-align: center; border-radius: 14px;
  border: 1px dashed var(--line); display: grid; gap: 6px; justify-items: center;
}
.done svg { width: 28px; height: 28px; color: var(--ok); }
.done h2 { margin: 0; font: 600 1.25rem/1.3 var(--f-head); }
.done p { margin: 0; color: var(--muted); font-size: var(--s-small); max-width: 32rem; }

details.legend { margin: 8px 0 0; font-size: var(--s-small); color: var(--muted); }
details.legend summary { cursor: pointer; color: var(--accent); font-weight: 500; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.legend summary::-webkit-details-marker { display: none; }
.legend-grid { display: grid; gap: 10px; margin-top: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.legend-grid > div { display: grid; grid-template-columns: 11.5rem 1fr; gap: 10px; align-items: start; }
@media (max-width: 520px) { .legend-grid > div { grid-template-columns: 1fr; gap: 4px; } }

footer.wrap { color: var(--faint); font-size: var(--s-small); margin-top: 64px; padding-bottom: 40px; }
@media (min-width: 720px) { footer.wrap { margin-top: 96px; } }

/* Event page */
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--accent); font-weight: 500; font-size: var(--s-small); margin-top: 20px; }
.ev-head { padding-block: 14px 4px; display: grid; gap: 12px; }
.ev-head h1 { margin: 0; font: 700 clamp(1.7rem, 1.2rem + 2vw, 2.4rem)/1.14 var(--f-head); letter-spacing: -.02em; text-wrap: balance; }
.ev-head .top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--muted); font-size: var(--s-tiny); }
.ev-fig { margin: 14px 0 0; display: grid; gap: 6px; }
.ev-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--single-soft); }
.ev-fig figcaption { color: var(--faint); font-size: var(--s-tiny); }
.ev-fig figcaption a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.ev-fig figcaption b { font-weight: 600; color: var(--muted); }
.sec { margin-top: 30px; display: grid; gap: 12px; }
.sec h2 { margin: 0; font: 600 var(--s-tiny)/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.claims li { display: grid; gap: 6px; }
.claims .src { font-size: var(--s-tiny); color: var(--faint); }
.claims .src a { color: var(--accent); }

.flag { border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--line)); background: var(--bad-soft); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.flag q { font-style: italic; quotes: "«" "»"; }
.flag .why { font-size: var(--s-small); }
.flag ul { margin: 0; padding-left: 18px; font-size: var(--s-small); color: var(--muted); }
.flag.party { border-color: color-mix(in srgb, var(--party) 35%, var(--line)); background: var(--party-soft); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--s-small); min-width: 30rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: var(--s-tiny); letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--f-data); font-variant-numeric: tabular-nums; white-space: nowrap; }


.coi { font: 500 var(--s-tiny)/1 var(--f-body); color: var(--party); background: var(--party-soft); padding: 4px 8px; border-radius: 6px; }
.grp { font: 400 var(--s-tiny)/1 var(--f-data); color: var(--faint); }


.story-main { display: grid; gap: 14px; align-content: start; align-self: start; min-width: 0; }
.story .top .imp-lg { font-size: var(--s-tiny); gap: 8px; }
.story .top .imp-lg .imp { width: 22px; height: 22px; }
.day p { max-width: 42rem; }

/* Wide screens: main column plus a rail; from 1240px a front-page lead and paired items. */
@media (min-width: 960px) {
  .feed-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 21rem; column-gap: 56px; align-items: start;
    grid-template-areas: "day rail" "t1 rail" "t2 rail" "done rail";
  }
  .feed-grid > .day { grid-area: day; }
  .tier-1 { grid-area: t1; min-width: 0; }
  .tier-2 { grid-area: t2; min-width: 0; }
  .feed-grid > .done { grid-area: done; }
  .tier-3 { grid-area: rail; padding-top: 28px; }
  .tier-3 .tier-label { margin-top: 0; }
  .rail-list li { grid-template-columns: 3rem minmax(0, 1fr) 2rem 28px; font-size: .94rem; }

  .event-grid {
    display: grid; grid-template-columns: minmax(0, 46rem) minmax(17rem, 22rem);
    justify-content: space-between; column-gap: 56px; align-items: start;
  }
  .ev-rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); padding-top: 14px; }
  .ev-rail .sec:first-child { margin-top: 0; }
  .ev-main, .ev-rail { min-width: 0; }
}
@media (min-width: 1240px) {
  .t1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .t1 .story:first-child {
    grid-column: 1 / -1; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: 36px; padding: 32px 32px 24px;
  }
  .t1 .story:first-child h2 { font-size: clamp(1.7rem, 2.1vw, 2.05rem); line-height: 1.18; }
  .t1 .story:first-child .facts { align-self: start; margin-top: 0; padding-top: 4px; gap: 12px; }
  .t1 .story:first-child .foot { grid-column: 1 / -1; }
  .t1 .story:not(:first-child) h2 { font-size: 1.45rem; }
  .t1 .story:not(:first-child) .facts li { grid-template-columns: 1fr; }
  .t1 .story:not(:first-child) .facts li .ev { justify-self: start; }
  .t2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; }
  .t2 .entry:nth-child(2) { padding-top: 4px; }
}

@media (prefers-reduced-motion: no-preference) {
  .view { animation: in .22s ease-out; }
  @keyframes in { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* Pages added around the prototype */
.mark:hover { text-decoration: none; }
.calm { margin: 28px 0; padding: 28px 20px; text-align: center; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); }
.calm h2 { margin: 0 0 6px; font: 600 1.25rem/1.3 var(--f-head); color: var(--ink); }
.calm p { margin: 0; font-size: var(--s-small); }
.news-since[hidden] { display: none; }
.now-list li.is-critical a { color: var(--crit); }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--s-small); color: var(--muted); }
.why li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 10px; }
.why .pts { font: 500 var(--s-small)/1.5 var(--f-data); color: var(--ink); text-align: right; }
.why .total { color: var(--ink); font-weight: 500; }
.more-note { font-size: var(--s-tiny); color: var(--faint); }
.prose { max-width: 42rem; padding-bottom: 12px; }
.prose h1 { margin: 24px 0 8px; font: 700 clamp(1.7rem, 1.2rem + 2vw, 2.4rem)/1.14 var(--f-head); letter-spacing: -.02em; text-wrap: balance; }
.prose h2 { margin: 30px 0 8px; font: 600 1.25rem/1.3 var(--f-head); }
.prose p, .prose li { max-width: 42rem; }
.prose ul, .prose ol { padding-left: 20px; }
.prose a, .link { color: var(--accent); text-underline-offset: 3px; }
.prose a:hover, .link:hover { text-decoration: underline; }
.prose code { font-family: var(--f-data); font-size: .9em; overflow-wrap: anywhere; }
.prose .lead { color: var(--muted); }
.prose table { min-width: 0; }
dl.facts-list { display: grid; grid-template-columns: 11rem 1fr; gap: 8px 14px; margin: 12px 0; font-size: var(--s-small); }
dl.facts-list dt { color: var(--muted); }
dl.facts-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
dl.facts-list ul { margin: 0; padding-left: 18px; }
@media (max-width: 520px) { dl.facts-list { grid-template-columns: 1fr; gap: 2px; } dl.facts-list dd { margin-bottom: 8px; } }
.rating { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--single-soft); color: var(--single); font-size: var(--s-small); font-weight: 500; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-list li { display: grid; grid-template-columns: 6.2rem 1fr 28px; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ev-list .data { font-size: var(--s-tiny); color: var(--faint); }
.ev-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .ev-list li { grid-template-columns: 1fr 28px; } .ev-list .data { grid-column: 1 / -1; } }
.site-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 32px; border-top: 1px solid var(--line); }
.site-foot nav { display: flex; gap: 24px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.updating { opacity: .6; }

/* Timeline: time and source on the left of the line, the line and its dots centred in their
   own column, the headline on the right. The dot masks the line with the page background. */
.timeline {
  --tl-left: 9.5rem; --tl-mid: 18px; --tl-gap: 14px;
  list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 18px;
}
.timeline::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; width: 2px; background: var(--line);
  left: calc(var(--tl-left) + var(--tl-gap) + var(--tl-mid) / 2 - 1px);
}
.timeline li {
  position: relative; display: grid; align-items: start;
  grid-template-columns: var(--tl-left) var(--tl-mid) minmax(0, 1fr); column-gap: var(--tl-gap);
}
.tl-meta { display: grid; justify-items: end; text-align: right; gap: 4px; min-width: 0; }
.timeline .data { font-size: var(--s-tiny); color: var(--faint); line-height: 1.2; }
.timeline .by {
  font: 600 var(--s-small)/1.25 var(--f-body); color: var(--ink);
  background: var(--single-soft); border-radius: 6px; padding: 3px 8px; max-width: 100%;
  overflow-wrap: anywhere; display: inline-flex; align-items: center; justify-self: end;
}
.tl-dot {
  justify-self: center; margin-top: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--faint); position: relative; z-index: 1;
}
.timeline li.is-new .tl-dot { border-color: var(--new); background: var(--new); }
.timeline li.is-new .by { background: var(--new-soft); }
.timeline a { font-weight: 500; line-height: 1.45; }
.timeline a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .timeline { --tl-left: 6.5rem; --tl-gap: 10px; gap: 16px; }
  .timeline .by { font-size: var(--s-tiny); padding: 3px 6px; }
}

/* Header navigation */
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: 24px; font: 500 var(--s-small)/1 var(--f-body); }
.main-nav a { position: relative; display: inline-flex; align-items: center; height: 32px; color: var(--muted); }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
@media (min-width: 960px) { .main-nav { margin-left: 40px; } }
.gear { display: none; }
.sheet { display: flex; gap: 8px; align-items: center; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; overflow: visible; width: auto; height: auto; color: inherit; }
@media (max-width: 640px) {
  :root { --bar-h: 96px; }
  .bar .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: 52px 44px; }
  .mark { font-size: 1.25rem; height: 44px; grid-row: 1; grid-column: 1; }
  .bar .tools { height: 44px; margin: 0; grid-row: 1; grid-column: 2; }
  .gear {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 12px;
    background: transparent; color: var(--ink); cursor: pointer;
  }
  .gear svg { width: 24px; height: 24px; }
  .gear:active { background: var(--accent-soft); }
  .main-nav { grid-row: 2; grid-column: 1 / -1; margin: 0 -16px; padding-inline: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; border-top: 1px solid var(--line); }
  .main-nav a { height: 44px; justify-content: center; font-size: .9375rem; }
  .sheet:popover-open {
    position: fixed; inset: auto 0 0 0; width: 100%; margin: 0; display: grid; gap: 16px;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  }
  .sheet::backdrop { background: rgba(0, 0, 0, .35); }
  .sheet:not(:popover-open) { display: none; }
  .sheet .region { width: 100%; max-width: none; height: 48px; border-radius: 12px; font-size: 1rem; }
  .sheet .theme { width: 100%; height: 52px; padding: 3px; border-radius: 14px; }
  .sheet .theme button { flex: 1; width: auto; height: 44px; border-radius: 11px; }
  .sheet .theme svg { width: 20px; height: 20px; }
}

/* «В реальному часі» */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.chips button {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: 500 var(--s-small)/1 var(--f-body); padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.chips button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }
.live-empty { color: var(--muted); font-size: var(--s-small); }
.rail-list li[hidden] { display: none; }
.rail-list li.is-fresh { background: color-mix(in srgb, var(--new) 16%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .rail-list li.is-fresh { animation: fresh 3s ease-out; }
  @keyframes fresh { from { background: color-mix(in srgb, var(--new) 40%, transparent); } }
}
.tr-badge { font: 500 var(--s-tiny)/1 var(--f-body); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.tr-orig { margin: 6px 0 0; color: var(--muted); font-size: var(--s-small); }

/* Event summary */
.summary { margin: 4px 0 0; font: 400 18px/1.65 var(--f-body); color: var(--ink); max-width: 65ch; text-wrap: pretty; }
.sum-label { margin: 18px 0 0; font: 600 var(--s-tiny)/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sum-label + .summary { margin-top: 6px; }
.also { margin-left: .35em; color: var(--faint); font-size: .85em; cursor: help; }
.cite { font: 500 .62em/0 var(--f-body); vertical-align: super; }
.cite a { color: var(--muted); }
.cite a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cites { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; max-width: 65ch; color: var(--muted); font-size: var(--s-small); }
.cites > span { display: inline-flex; align-items: center; }
.cites > span + span::before { content: "·"; margin: 0 .6em; color: var(--faint); }
.cites sup { font-size: .7em; margin-right: .35em; line-height: 0; }
.cites a { color: var(--ink); }
.cites a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Collapsible sections */
.fold { margin-top: 28px; border-top: 1px solid var(--line); }
.fold + .fold { margin-top: 0; }
.fold summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer;
  list-style: none; font: 600 var(--s-tiny)/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after {
  content: ""; width: 7px; height: 7px; flex: none; margin-right: 4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s;
}
.fold summary:hover { color: var(--ink); }
.fold[open] summary::after { transform: rotate(-135deg); }
.fold[open] { padding-bottom: 18px; }
.fold[open] > summary { margin-bottom: 8px; }
.fold:last-of-type { border-bottom: 1px solid var(--line); }

/* Sources: one compact list, an owner popover per outlet */
.src-head { font: 600 var(--s-tiny)/1.3 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.src-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; }
@media (min-width: 720px) and (max-width: 959px) { .src-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.src-list li { display: flex; align-items: center; gap: 8px; min-height: 36px; border-bottom: 1px solid var(--line); }
.src-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 var(--s-small)/1.4 var(--f-body); }
.src-name:hover { color: var(--accent); }
.src-n { flex: none; color: var(--faint); font: 400 var(--s-tiny)/1 var(--f-data); }
.src-tag { flex: none; color: var(--muted); font: 400 var(--s-tiny)/1 var(--f-body); white-space: nowrap; }
.src-i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--faint); cursor: pointer; }
.src-i:hover, .src-i[aria-expanded="true"] { color: var(--ink); background: var(--accent-soft); }
.src-i svg { width: 16px; height: 16px; }
.own {
  width: min(18rem, calc(100vw - 32px)); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-size: var(--s-small); line-height: 1.45;
}
.own:popover-open { display: grid; gap: 6px; }
.own b { font-weight: 600; }
.own p { margin: 0; }
.own-kind, .own-k { color: var(--muted); }
.own-k { display: block; font-size: var(--s-tiny); }
.own .link { justify-self: start; font-weight: 500; }

/* Mobile type scale and lists */
@media (max-width: 640px) {
  :root { --s-body: 1.0625rem; --s-t1: 1.1875rem; --s-t2: 1.0625rem; --s-tiny: .8125rem; }
  html { scroll-padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 8px); }
  [id], [data-event] { scroll-margin-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 8px); }
  .day h1, .ev-head h1, .prose h1 { font-size: 1.75rem; line-height: 1.15; }
  .day { display: block; padding-block: 20px 4px; }
  .day h1 { margin-bottom: 6px; }
  .day > p { display: inline; font-size: var(--s-tiny); }
  .day > p .data { font-family: var(--f-body); }
  .day > p + p::before { content: " · "; color: var(--faint); }
  .day > p + p .count { font-weight: 400; color: var(--muted); }
  .now { margin-top: 16px; padding: 10px 12px 2px; }
  .now-list li { display: block; position: relative; padding: 12px 36px 12px 0; }
  .now-list .imp-col { position: absolute; top: 12px; right: 0; }
  .now-list .data { display: block; font-size: var(--s-tiny); margin-bottom: 2px; }
  .now-list a { font-size: 1.0625rem; display: inline; }
  .now-list .ev, .now-list .crit { display: inline-flex; margin-left: 8px; vertical-align: 2px; }
  .story { padding: 24px 16px 18px; }
  .entry { padding: 24px 0; }
  .rail-list li { font-size: 1.0625rem; }
  .summary { font-size: 17px; }
}

/* Text separators and labels kept for reader modes and screen readers */
.sep, .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* «Тривоги»: raion map, point history, weekly clock, tile map */
.alerts { padding-bottom: 24px; }
.alerts .day { padding-block: 24px 16px; }
.a-grid { display: grid; gap: 20px; }
.a-mapcol { position: relative; min-width: 0; }
.a-map { aspect-ratio: 1000 / 674; overflow: auto; }
.a-svg { display: block; width: 100%; height: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.a-map .a-err { margin: 0; padding: 12px 0; }
.raion { fill: var(--surface); stroke: color-mix(in srgb, var(--faint) 42%, transparent); stroke-width: .6; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; }
.raion:hover { fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.raion.red { fill: color-mix(in srgb, var(--crit) 90%, var(--surface)); }
.raion.red:hover { fill: var(--crit); }
.raion.part { fill: color-mix(in srgb, var(--new) 40%, var(--surface)); }
.raion.unk { fill: url(#a-hatch); }
.hatch-bg { fill: var(--surface); }
.hatch-l { stroke: color-mix(in srgb, var(--faint) 55%, transparent); stroke-width: 1; }
.oblast { fill: none; stroke: var(--faint); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.oblast.sel { stroke: var(--accent); stroke-width: 1.6; }
.a-sel { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.a-pin { fill: var(--ink); stroke: var(--bg); stroke-width: 1.4; vector-effect: non-scaling-stroke; pointer-events: none; }
.a-tip {
  position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, -140%); white-space: nowrap;
  background: var(--ink); color: var(--bg); font: 500 .8125rem/1 var(--f-body); padding: 7px 9px; border-radius: 6px;
}
.a-tip[hidden] { display: none; }
.a-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.a-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--s-small); }
.a-list li .data { margin-left: auto; color: var(--muted); }
.a-calm { margin: 0; color: var(--muted); font-size: var(--s-small); }
.a-list .dot, .a-state .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--faint); }
.a-list .dot[data-level="red"], .a-state .dot[data-level="red"] { background: var(--crit); }
.a-list .dot[data-level="yellow"], .a-state .dot[data-level="yellow"] { background: var(--new); }
.a-state .dot[data-level="unknown"] { background: repeating-linear-gradient(45deg, var(--faint) 0 2px, transparent 2px 4px); }

.a-panel { min-width: 0; display: grid; align-content: start; gap: 12px; }
.a-head { display: grid; gap: 2px; }
.a-title { margin: 0; font: 700 clamp(1.25rem, 1.05rem + 1vw, 1.65rem)/1.2 var(--f-head); letter-spacing: -.01em; }
.a-sub { margin: 0; color: var(--muted); font-size: var(--s-small); }
.a-sub:empty { display: none; }
.a-state { margin: 0; min-height: 1.4em; display: flex; align-items: center; gap: 8px; font-size: var(--s-small); color: var(--muted); }
.a-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.a-actions:not(:has(.a-here:not([hidden]), .a-err:not(:empty))) { display: none; }
.a-here {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 var(--s-small)/1 var(--f-body); height: 36px; padding: 0 14px; border-radius: 18px; cursor: pointer;
}
.a-here:hover { border-color: var(--accent); }
.a-here[disabled] { opacity: .55; cursor: progress; }
.a-here[hidden] { display: none; }
.a-err { color: var(--muted); font-size: var(--s-small); }
.a-point { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.a-point[hidden] { display: none; }
.a-sum { margin: 0; font-size: .8125rem; line-height: 1.5; }
.a-strip { display: block; width: 100%; height: auto; }
.s-track { fill: color-mix(in srgb, var(--line) 55%, transparent); }
.s-own { fill: var(--crit); }
.s-wide { fill: url(#s-hatch); stroke: var(--crit); stroke-width: .75; vector-effect: non-scaling-stroke; }
.s-hl { stroke: var(--crit); stroke-width: 1.2; }
.s-axis { stroke: var(--faint); stroke-width: .75; vector-effect: non-scaling-stroke; fill: none; }
.s-txt { fill: var(--muted); font: 400 10px var(--f-data); }
.a-rows { list-style: none; margin: 0; padding: 0; max-height: 22rem; overflow: auto; }
.a-rows li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .8125rem; }
.a-rows .r-day { color: var(--muted); }
.a-rows .r-d { color: var(--muted); text-align: right; }
.a-rows li.wide .r-t { color: var(--muted); }
.a-clock { display: grid; justify-items: center; padding-top: 4px; }
.a-clock:empty { display: none; }
.a-kclock { width: min(100%, 22rem); height: auto; display: block; overflow: visible; }
.k-track { fill: none; stroke: color-mix(in srgb, var(--line) 55%, transparent); stroke-width: 10; }
.k-hair { stroke: var(--faint); stroke-width: .6; opacity: .55; vector-effect: non-scaling-stroke; }
.k-arc { fill: none; stroke-width: 10; }
.k-red { stroke: var(--crit); }
.k-yellow { stroke: var(--new); }
.k-now { stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.k-lbl { fill: var(--muted); font: 500 9px var(--f-data); text-anchor: middle; dominant-baseline: central; }

.a-glance { margin-top: 36px; }
.a-h2 { margin: 0 0 12px; font: 600 1.15rem/1.3 var(--f-head); }
.a-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: auto; gap: 6px; }
.t-tile {
  appearance: none; display: grid; align-content: space-between; gap: 8px; min-width: 0; min-height: 54px; padding: 7px 6px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.t-tile:hover { border-color: var(--faint); }
.t-tile[aria-pressed="true"] { border-color: var(--accent); }
.t-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-name .ab { font: 600 .75rem/1 var(--f-body); }
.t-name .nm { display: none; font: 500 .8125rem/1.1 var(--f-body); }
.t-strip { display: block; width: 100%; height: 6px; }
.t-bg { fill: color-mix(in srgb, var(--line) 70%, transparent); }
.t-seg.t-red { fill: var(--crit); }
.t-seg.t-yellow { fill: var(--new); }
.t-div { stroke: var(--surface); stroke-width: 1; vector-effect: non-scaling-stroke; }
.t-tile.t-on { border-color: var(--crit); box-shadow: inset 0 0 0 1px var(--crit); }
.t-tile.t-on.t-red { background: var(--crit-soft); }
.t-tile.t-on.t-yellow { background: var(--new-soft); }
.t-tile.t-unk { background: repeating-linear-gradient(45deg, transparent 0 4px, color-mix(in srgb, var(--faint) 18%, transparent) 4px 5px), var(--surface); }
.t-tile.t-mine .ab, .t-tile.t-mine .nm { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.a-credit { margin: 28px 0 0; font-size: var(--s-tiny); color: var(--faint); }
.a-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 640px) {
  .t-name .ab { display: none; }
  .t-name .nm { display: inline; }
  .t-tile { min-height: 64px; padding: 9px 10px; }
  .a-tiles { gap: 8px; }
}
@media (min-width: 960px) {
  .a-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .a-mapcol { position: sticky; top: calc(var(--bar-h) + 16px); }
}
@media (max-width: 640px) {
  .main-nav { grid-template-columns: repeat(3, 1fr); }
  .main-nav a { font-size: .875rem; padding-inline: 4px; text-align: center; }
}
