/* Night desk: earth at night is the stage, the interface is a broadcast desk laid over it.
   Colour lives in the data (status), never in decoration. */
:root {
  --space: #050505;
  --surface: #111111;
  --surface-2: #191919;
  --surface-3: #242424;
  --hairline: #303030;
  --hairline-2: #454545;
  --ink: #f2f2f2;
  --ink-2: #c7c7c7;
  --ink-3: #a3a3a3;
  --ink-4: #8c8c8c;
  --confirmed: #ff4a3d;
  --reported: #ffb547;
  --claimed: #dedede;
  --outage: #5ec8ff;
  --safe: #6ee7a8;
  --sans: "Mona Sans", system-ui, sans-serif;
  --display: "Hubot Sans", "Mona Sans", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --sb-w: 360px;
  --top: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html, body { height: 100%; margin: 0; background: var(--space); }
body { font-family: var(--sans); font-size: 14px; line-height: 1.4; color: var(--ink); overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--hairline-2); color: #fff; }
input::placeholder { color: var(--ink-4); }
h1, h2, h3, p { margin: 0; }
.ink2 { color: var(--ink-2); } .ink3 { color: var(--ink-3); } .ink4 { color: var(--ink-4); }
.eyebrow { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); font-weight: 400; font-variation-settings: "wdth" 87.5; }
.tab { font-variant-numeric: tabular-nums; }
.scroll-thin { scrollbar-width: thin; scrollbar-color: #555 transparent; }

/* ---- Map & atlas ---------------------------------------------------------- */
#map { position: fixed; inset: 0; background: transparent; }
#atlas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
body::before { /* faint stars */
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(1px 1px at 12% 22%, #ffffff30 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #ffffff28 50%, transparent 51%), radial-gradient(1px 1px at 86% 64%, #ffffff22 50%, transparent 51%), radial-gradient(1px 1px at 33% 78%, #ffffff20 50%, transparent 51%), radial-gradient(1px 1px at 55% 40%, #ffffff18 50%, transparent 51%), radial-gradient(1px 1px at 92% 30%, #ffffff26 50%, transparent 51%), radial-gradient(1px 1px at 22% 55%, #ffffff1c 50%, transparent 51%), radial-gradient(1px 1px at 64% 88%, #ffffff22 50%, transparent 51%);
  background-size: 420px 420px;
}
.maplibregl-ctrl-attrib { background: rgb(5 5 5 / .6) !important; color: var(--ink-4); font-size: 10.5px; }
.maplibregl-ctrl-attrib a { color: var(--ink-3) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }

/* ---- Top bar --------------------------------------------------------------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 16px; min-height: var(--top); padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); background: var(--space); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-variation-settings: "wdth" 87.5; font-weight: 700; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.brand-mark .brand-dot { fill: var(--confirmed); stroke: none; }
.pill-surface, .ticker, .nav, .pill { background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.ticker { flex: 1; min-width: 0; height: 40px; border-radius: 999px; display: flex; align-items: center; padding-left: 14px; overflow: hidden; }
.ticker-label { display: flex; align-items: center; gap: 8px; padding-right: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-2); flex: none; }
.ticker-label:hover { color: var(--ink); }
.ticker-sep { width: 1px; height: 16px; background: rgb(255 255 255 / .1); flex: none; }
.ticker-mask { flex: 1; min-width: 0; overflow: hidden; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker var(--dur, 60s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-mask::-webkit-scrollbar { display: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tick { display: flex; align-items: center; flex: none; }
.tick button { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 999px; white-space: nowrap; }
.tick button:hover { background: rgb(255 255 255 / .06); }
.tick .score { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--reported); }
.tick .flag { font-size: 11.5px; font-weight: 500; color: var(--confirmed); }
.tick .prod { font-size: 13px; font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.tick .id { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.tick .age { font-size: 11.5px; color: var(--ink-4); }
.tick::after { content: ""; width: 1px; height: 12px; background: rgb(255 255 255 / .08); margin: 0 4px; }
.nav { margin-left: auto; display: flex; gap: 2px; padding: 4px; border-radius: 999px; flex: none; }
.nav-link { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: color .16s; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { background: rgb(255 255 255 / .09); color: var(--ink); }

.live-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }
.live-dot.red { background: var(--confirmed); animation: livepulse 2.4s infinite; }
.live-dot.green { background: var(--safe); box-shadow: 0 0 0 0 rgb(110 231 168 / .5); animation: livepulse-g 2.4s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgb(255 74 61 / .55); } 70%, 100% { box-shadow: 0 0 0 7px rgb(255 74 61 / 0); } }
@keyframes livepulse-g { 0% { box-shadow: 0 0 0 0 rgb(110 231 168 / .5); } 70%, 100% { box-shadow: 0 0 0 7px rgb(110 231 168 / 0); } }

/* ---- Sidebar --------------------------------------------------------------- */
.sidebar { position: fixed; z-index: 20; top: var(--top); left: max(12px, env(safe-area-inset-left)); bottom: 12px; width: var(--sb-w); display: flex; flex-direction: column; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline), 0 12px 32px rgb(0 0 0 / .35); border-radius: 22px; overflow: hidden; }
.sheet-handle { display: none; }
.sb-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sb-head { padding: 14px 12px 0; flex: none; }
.sb-title { display: flex; align-items: flex-start; gap: 8px; padding: 4px 8px 0; }
.sb-title h1 { flex: 1; min-width: 0; font-family: var(--display); font-variation-settings: "wdth" 87.5; font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.icon-btn { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-3); font-size: 20px; line-height: 1; margin: -4px -4px 0 0; }
.icon-btn:hover { background: rgb(255 255 255 / .06); color: var(--ink); }
.icon-btn svg, .pill svg, .round svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sb-sub { padding: 4px 8px 0; font-size: 13px; line-height: 1.35; color: var(--ink-3); text-wrap: pretty; }
.liveline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 0 8px; }
.live { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.seg { display: grid; grid-auto-flow: column; padding: 3px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.seg button { padding: 4px 11px; border-radius: 999px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--surface-3); color: var(--ink); }

.summary { margin-top: 12px; border-radius: 18px; background: var(--surface-2); overflow: hidden; }
.sum-top { display: flex; justify-content: space-between; padding: 14px 16px 0; }
.sum-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 6px 16px 16px; }
.big { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 700; font-size: 68px; line-height: .86; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.tiny { margin-top: 8px; font-size: 11px; color: var(--ink-4); }
.spark { width: min(42%, 150px); flex: none; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.bars i { flex: 1; min-height: 2px; border-radius: 1.5px; background: var(--hairline-2); }
.bars i:last-child { background: var(--ink); }
.spark-axis { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 10px; color: var(--ink-4); }
.statuses { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(255 255 255 / .06); }
.st { text-align: left; padding: 10px 16px 12px; transition: background-color .16s; }
.st + .st { border-left: 1px solid rgb(255 255 255 / .06); }
.st:hover { background: rgb(255 255 255 / .03); }
.st .lbl { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.st b { display: block; margin-top: 4px; font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.st[aria-pressed="false"] b, .st[aria-pressed="false"] .lbl { color: var(--ink-4); }
.st[aria-pressed="false"] .sd { opacity: .35; }
.sd { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.sd.confirmed { background: var(--confirmed); }
.sd.reported { background: var(--reported); }
.sd.claimed { box-shadow: inset 0 0 0 1.5px var(--claimed); }
.sd.disputed { background: repeating-linear-gradient(45deg, transparent 0 1.5px, var(--ink-3) 1.5px 3px); box-shadow: inset 0 0 0 1px var(--ink-3); }
.sd.outage { box-shadow: inset 0 0 0 1.5px var(--outage); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px; border-top: 1px solid rgb(255 255 255 / .06); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgb(255 255 255 / .05); font-size: 11.5px; color: var(--ink-2); }
.chip span { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="false"] { opacity: .45; text-decoration: line-through; text-decoration-color: var(--ink-4); }
.sum-note { padding: 8px 16px; border-top: 1px solid rgb(255 255 255 / .06); font-size: 10.5px; line-height: 1.4; color: var(--ink-4); }

.omnibox { margin-top: 12px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.omnibox:focus-within { box-shadow: inset 0 0 0 1px var(--ink-3); }
.omnibox svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; flex: none; }
.omnibox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; }
.omnibox input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.omnibox kbd { font-family: var(--mono); font-size: 10px; color: var(--ink-4); padding: 3px 6px; border-radius: 5px; background: var(--surface-3); }
.country-chip { margin-top: 8px; }
.country-chip button { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--ink); color: var(--space); font-size: 12.5px; font-weight: 600; }

.tabs-wrap { flex: none; padding: 14px 12px 6px; background: var(--surface); }
.tabs { display: grid; grid-template-columns: repeat(4, auto); gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 6px; border-radius: 999px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.tabs button span { font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface-3); color: var(--ink); }
.tabs button[aria-selected="true"] span { color: var(--ink-3); }
.tabpanel { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 12px; scrollbar-width: thin; scrollbar-color: #555 transparent; }
.group-h { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; padding: 12px 12px 6px; background: var(--surface); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 8px; border-radius: 12px; text-align: left; transition: background-color .16s; }
.row:hover, .row.hl { background: rgb(255 255 255 / .05); }
.row-main { min-width: 0; flex: 1; }
.row-top { display: flex; align-items: baseline; gap: 10px; }
.row-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: -.005em; overflow: hidden; }
.row-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-time { flex: none; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.row-sub { margin-top: 3px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.row-sub .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub .cc { flex: none; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.sev { flex: none; display: inline-flex; align-items: center; gap: 5px; }
.sev.crit { color: var(--reported); } .sev.expl { color: var(--confirmed); }
.empty { margin: 8px 6px; padding: 32px 16px; text-align: center; font-size: 13px; color: var(--ink-3); }
.note { margin: 8px 6px 4px; padding: 10px 14px; border-radius: 12px; background: rgb(255 255 255 / .025); font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.more { display: block; margin: 8px auto; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .05); font-size: 12.5px; color: var(--ink-2); }

.logo { flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: var(--surface-3); color: var(--ink-2); font-family: var(--mono); font-weight: 500; letter-spacing: -.02em; border-radius: 9px; }
.logo img { width: 62%; height: 62%; object-fit: contain; }
.logo.white { background: #f2f2f2; }

.sb-foot { flex: none; display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid rgb(255 255 255 / .06); font-size: 11.5px; color: var(--ink-4); }
.linkish { font-size: 12px; color: var(--ink-3); }
.linkish:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); }
.pill:hover { color: var(--ink); }
.pill.sq { width: 36px; padding: 0; justify-content: center; font-size: 17px; }
.sidebar-show { position: fixed; z-index: 20; top: calc(var(--top) + 4px); left: 16px; }

/* ---- Map controls, callouts --------------------------------------------------- */
.map-ctrls { position: fixed; z-index: 15; top: calc(var(--top) + 4px); right: max(16px, env(safe-area-inset-right)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.popover { padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline), 0 12px 32px rgb(0 0 0 / .35); display: grid; gap: 10px; font-size: 13px; color: var(--ink-2); }
.popover label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.popover input { accent-color: var(--ink); width: 15px; height: 15px; }
.zoom-row { display: flex; gap: 6px; padding-top: 4px; border-top: 1px solid rgb(255 255 255 / .06); margin-top: 2px; padding-top: 10px; }

.tags { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.tags svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tags line { stroke: rgb(242 242 242 / .35); stroke-width: 1; }
.tag { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 4px 12px 4px 4px; border-radius: 10px; background: var(--space); box-shadow: 0 0 0 1px var(--hairline-2); text-align: left; white-space: nowrap; transition: background-color .2s, box-shadow .2s; animation: tagin .3s var(--ease); }
.tag:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--ink-4); }
.tag .logo { width: 26px; height: 26px; border-radius: 7px; font-size: 9.5px; }
.tag-name { display: block; font-family: var(--display); font-variation-settings: "wdth" 87.5; font-weight: 700; font-size: 12.5px; line-height: 1.15; letter-spacing: -.01em; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.tag-meta { display: flex; align-items: center; gap: 4px; font-size: 10.5px; line-height: 1.2; color: var(--ink-3); }
@keyframes tagin { from { opacity: 0; transform: var(--t) scale(.95); } }

.tip { position: fixed; z-index: 60; pointer-events: none; max-width: 300px; padding: 9px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline-2), 0 12px 32px rgb(0 0 0 / .45); font-size: 12.5px; line-height: 1.35; }
.tip b { display: block; font-weight: 600; font-size: 13px; }
.tip span { color: var(--ink-3); }

/* ---- Patch now dock ---------------------------------------------------------- */
.dock { position: fixed; z-index: 18; left: calc(max(12px, env(safe-area-inset-left)) + var(--sb-w) + 12px); right: max(12px, env(safe-area-inset-right)); bottom: 12px; padding: 12px 0 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline), 0 12px 32px rgb(0 0 0 / .35); }
body.no-sidebar .dock { left: max(12px, env(safe-area-inset-left)); }
.dock-head { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; }
.dock-sub { flex: 1; min-width: 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.dock-tools .linkish { margin-right: 6px; }
.round { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); color: var(--ink-2); }
.round svg { width: 13px; height: 13px; stroke-width: 2; }
.round:hover { color: var(--ink); }
.dock-tools .icon-btn { margin: 0; }
.dock-rail { list-style: none; margin: 10px 0 0; padding: 0 16px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 16px; scrollbar-width: none; }
.dock-rail::-webkit-scrollbar { display: none; }
.dock-rail li { flex: none; width: 262px; scroll-snap-align: start; }
.card { display: flex; flex-direction: column; align-items: flex-start; width: 100%; height: 100%; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / .035); text-align: left; transition: background-color .16s; }
.card:hover { background: rgb(255 255 255 / .06); }
.card-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.card-top .logo { width: 22px; height: 22px; border-radius: 6px; font-size: 8.5px; }
.card-prod { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-flag { flex: none; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--confirmed); }
.card-flag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card-flag span { color: var(--ink-3); }
.card h3 { margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card p { margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dock-show { position: fixed; z-index: 18; bottom: 16px; left: 50%; transform: translateX(-50%); }

/* ---- Drawer (details) -------------------------------------------------------- */
.drawer { position: fixed; z-index: 40; top: var(--top); right: max(12px, env(safe-area-inset-right)); bottom: 12px; width: 400px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline), 0 12px 32px rgb(0 0 0 / .45); border-radius: 22px; overflow: hidden; animation: drawerin .35s cubic-bezier(.32, .72, 0, 1); outline: none; }
@keyframes drawerin { from { transform: translateX(24px); opacity: 0; } }
.dr-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px 0 20px; }
.dr-head .logo { width: 44px; height: 44px; border-radius: 12px; font-size: 13px; }
.dr-head > div { flex: 1; min-width: 0; }
.dr-head h2 { font-family: var(--display); font-variation-settings: "wdth" 87.5; font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; overflow-wrap: anywhere; text-wrap: balance; }
.dr-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; font-size: 12px; color: var(--ink-3); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; background: rgb(255 255 255 / .06); font-size: 11.5px; font-weight: 500; color: var(--ink); }
.dr-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 20px 24px; scrollbar-width: thin; scrollbar-color: #555 transparent; }
.dr-headline { font-size: 14px; color: var(--ink-2); line-height: 1.45; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: 13px; }
.facts dt { color: var(--ink-4); }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.dr-summary { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-bottom: 16px; }
.dr-note { padding: 10px 14px; border-radius: 12px; background: rgb(255 255 255 / .025); font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin-bottom: 18px; }
.dr-h { margin: 0 0 8px; }
.srcs { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.srcs a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / .035); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; }
.srcs a:hover { background: rgb(255 255 255 / .07); }
.srcs a span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); font-size: 12.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.btn:hover { background: rgb(255 255 255 / .1); }
.btn.primary { background: var(--ink); color: var(--space); box-shadow: none; }

/* ---- Dialogs ---------------------------------------------------------------- */
.dlg { width: min(620px, calc(100vw - 24px)); max-height: min(84vh, 780px); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline), 0 24px 64px rgb(0 0 0 / .6); }
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgb(0 0 0 / .6); }
.dlg-head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 20px 6px 24px; }
.dlg-head > div { flex: 1; }
.dlg-head h2 { font-family: var(--display); font-variation-settings: "wdth" 87.5; font-size: 24px; font-weight: 700; letter-spacing: -.015em; }
.dlg-head p { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); max-width: 60ch; }
.omnibox.in-dlg { margin: 10px 24px 0; }
.check-results { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px; scrollbar-width: thin; scrollbar-color: #555 transparent; }
.dlg-note { padding: 12px 24px 18px; font-size: 11.5px; color: var(--ink-4); border-top: 1px solid rgb(255 255 255 / .06); }
.prose { padding: 4px 24px 24px; overflow-y: auto; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.prose p { margin: 0 0 12px; max-width: 64ch; }
.prose h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.legend-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.legend-dl dt { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.legend-dl dd { margin: 0; }
.source-status { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.source-status li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.source-status .ok { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.source-status .bad { font-size: 12px; color: var(--confirmed); }

/* ---- Tablet / phone ------------------------------------------------------- */
@media (max-width: 1180px) { .nav-link[data-nav="about"] { display: none; } .dock-sub { display: none; } }
@media (max-width: 900px) {
  :root { --sb-w: 330px; }
  .dock { display: none; }
  .dock-show { display: none !important; }
}
@media (max-width: 720px) {
  :root { --top: 108px; }
  .topbar { flex-wrap: wrap; gap: 8px 10px; padding-bottom: 10px; }
  .brand { font-size: 17px; }
  .ticker { order: 3; flex-basis: 100%; height: 36px; }
  .nav-link { padding: 0 10px; }
  .nav-link[data-nav="map"] { display: none; }
  .sidebar { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 46vh; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); transition: height .35s cubic-bezier(.32, .72, 0, 1); }
  .sidebar.open { height: calc(100dvh - var(--top) - 8px); }
  .sheet-handle { display: flex; justify-content: center; align-items: center; height: 22px; flex: none; }
  .sheet-handle span { width: 36px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .15); }
  .sb-scroll { overflow-y: auto; }
  .tabpanel { overflow: visible; flex: none; }
  .tabs-wrap { position: sticky; top: 0; z-index: 2; }
  .sb-title .icon-btn { display: none; }
  .sb-foot { display: none; }
  .map-ctrls { top: calc(var(--top) + 6px); }
  .tags { display: none; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; height: 82dvh; border-radius: 24px 24px 0 0; animation-name: sheetin; }
  @keyframes sheetin { from { transform: translateY(40px); opacity: 0; } }
  .big { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-mask { overflow-x: auto; }
}
