/* Columbus EAS Archive (CEA). Colour tokens first; the alert colours themselves come from the data (the WSv4 event colours). Brand: amber on near-black, a red rule, the VCR EAS pixel font for the name and numbers. */
@font-face { font-family: "VCR EAS"; src: url("../fonts/VCREAS_4.5.ttf") format("truetype"); font-display: swap; }
:root {
  --bg: #0b0e13; --panel: #12171f; --panel-2: #181e28; --line: #232b38; --fg: #e8edf4; --muted: #8b98ab; --accent: #ffb000; --on-accent: #1a1200; --red: #c8102e; --pixel: "VCR EAS", ui-monospace, monospace;
  --live: #3dd68c; --warn: #ff6b6b; --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .25);
  --radius: 14px; --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f4ef; --panel: #ffffff; --panel-2: #f1eee6; --line: #e0dbcf; --fg: #151b26; --muted: #5b6778; --accent: #a86400; --on-accent: #ffffff;
  --live: #0f9d58; --warn: #d12f2f; --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 8px 24px rgba(20, 30, 50, .06); color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* a class like .btn sets display and would otherwise win over the hidden attribute */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: min(1480px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 3px 0 var(--red); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.brand .logo { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.brand b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.brand small { display: block; color: var(--muted); font-size: .8rem; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live.on i { background: var(--live); box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); animation: ping 2.4s infinite; }
.live.off i { background: var(--warn); }
@keyframes ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.btn, .icon, .chip, .seg button { font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-decoration: none; }
.btn { padding: 7px 14px; display: inline-block; font-size: .9rem; }
.icon { width: 36px; height: 36px; font-size: 1.1rem; line-height: 1; }
.btn:hover, .icon:hover, .chip:hover, .seg button:hover { border-color: var(--accent); }

/* summary */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 1.6rem; line-height: 1.2; letter-spacing: .03em; }
.stat span { color: var(--muted); font-size: .8rem; }

/* controls */
.controls { display: grid; gap: 10px; margin: 8px 0 6px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: .9rem; border-radius: 8px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.seg button small { opacity: .75; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 12px 5px 10px; font-size: .85rem; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; }
.chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.chip[aria-pressed="false"] { opacity: .5; }
.chip[aria-pressed="true"] { border-color: var(--c); }
.search input { width: 100%; padding: 10px 14px; font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.note { color: var(--muted); font-size: .85rem; margin: 10px 2px 6px; min-height: 1.3em; }

/* alerts */
.list { display: grid; gap: 10px; }
@media (min-width: 1000px) { .list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .day { grid-column: 1 / -1; } }
@media (min-width: 1500px) { .list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.day { font-family: var(--pixel); position: sticky; top: 62px; z-index: 2; margin: 14px 0 2px; padding: 4px 2px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.alert { --ev: #696969; position: relative; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--ev); border-radius: var(--radius); padding: 12px 14px 12px 14px; box-shadow: var(--shadow); }
.alert.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: color-mix(in srgb, var(--ev) 28%, var(--panel)); transform: translateY(-6px); } to { background: var(--panel); transform: none; } }
.alert:target { outline: 2px solid var(--accent); }
.a-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ev { display: inline-block; padding: 2px 10px; border-radius: 8px; font-weight: 700; font-size: .95rem; background: var(--ev); color: var(--ink, #fff); }
.lvl { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.src { font-size: .78rem; color: var(--muted); }
.when { margin-left: auto; text-align: right; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.when b { display: block; color: var(--fg); font-weight: 600; font-size: .9rem; }
.msg { margin: 8px 0 0; color: color-mix(in srgb, var(--fg) 88%, var(--muted)); overflow-wrap: anywhere; }
.msg mark { background: none; color: inherit; font-weight: 700; padding: 0 5px; border-radius: 5px; background: var(--ev); color: var(--ink, #fff); }
.msg .until { color: #d9a400; font-weight: 600; }
:root[data-theme="light"] .msg .until { color: #8a6600; }
.a-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.a-foot button, .a-foot a { font: inherit; font-size: .8rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; cursor: pointer; text-decoration: none; }
.a-foot button:hover, .a-foot a:hover { color: var(--fg); border-color: var(--accent); }
.detail { margin-top: 10px; padding: 10px 12px; background: var(--panel-2); border-radius: 10px; font-size: .85rem; display: grid; gap: 8px; }
.detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; }
.detail dt { color: var(--muted); } .detail dd { margin: 0; overflow-wrap: anywhere; }
.codes { display: flex; flex-wrap: wrap; gap: 4px; }
.codes code { font-family: var(--mono); font-size: .75rem; padding: 1px 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.detail audio { width: 100%; }
.more { text-align: center; margin: 16px 0 4px; }
.state { text-align: center; padding: 40px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); margin: 14px 0; }
.state h2 { color: var(--fg); margin: 0 0 6px; font-size: 1.1rem; }
.skeleton { height: 92px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.foot { margin: 36px auto 28px; color: var(--muted); font-size: .8rem; }
.foot p { margin: 4px 0; }

@media (max-width: 560px) {
  .when { margin-left: 0; text-align: left; width: 100%; display: flex; gap: 8px; align-items: baseline; }
  .when b { display: inline; }
  .brand small { display: none; }
  .top { position: static; }              /* the header wraps to two rows on a phone: let it scroll away */
  .day { top: 0; }
  .stat b { font-size: 1.15rem; }
  .stats { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* alert-type picker */
.types { position: relative; margin: 10px 0 0; width: fit-content; max-width: 100%; }
.types summary { cursor: pointer; list-style: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: .88rem; user-select: none; }
.types summary::-webkit-details-marker { display: none; }
.types summary::after { content: " \25BE"; color: var(--muted); }
.types[open] summary { border-color: var(--accent); }
.types-pop { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: min(440px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.types-bar { display: flex; gap: 8px; padding: 2px 4px 8px; }
.types-bar button { font: inherit; font-size: .8rem; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 2px 4px; }
.types-list { max-height: min(60vh, 420px); overflow: auto; display: grid; }
.type-row { display: grid; grid-template-columns: auto 3.2em 1fr auto; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: .88rem; }
.type-row:hover { background: var(--panel-2); }
.type-row small { color: var(--muted); font-variant-numeric: tabular-nums; }
.type-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* areas: the county name; the SAME code floats above it while hovered or focused */
.area { position: relative; display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .8rem; cursor: default; }
.area .cd { display: none; }
.area:hover .cd, .area:focus .cd { display: block; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); z-index: 6; padding: 2px 8px; border-radius: 6px; background: var(--fg); color: var(--bg); font-size: .75rem; white-space: nowrap; pointer-events: none; }

/* map in the details panel */
.mapbox { position: relative; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--bg) 70%, var(--panel-2)); border: 1px solid var(--line); }
.map { display: block; width: 100%; height: auto; max-height: 520px; }
.cty { fill: color-mix(in srgb, var(--fg) 7%, transparent); stroke: color-mix(in srgb, var(--fg) 22%, transparent); stroke-width: .6; vector-effect: non-scaling-stroke; }
.cty.hit { fill: color-mix(in srgb, var(--ev) 30%, transparent); stroke: var(--ev); stroke-width: 1.3; }
.cty.hit.lit { fill: color-mix(in srgb, var(--ev) 65%, transparent); }
.cty.hit.now { fill: var(--ev); animation: ctynow .5s ease-in-out infinite alternate; }
@keyframes ctynow { to { opacity: .55; } }
.mapcap { padding: 4px 10px; font-size: .72rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tape { font: .72rem/1.35 ui-monospace, Menlo, Consolas, monospace; padding: 6px 10px; border-top: 1px solid var(--line); color: var(--muted); overflow-wrap: anywhere; min-height: 1.4em; background: var(--panel); }
.tape .cur { background: var(--accent); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .cty.hit.now { animation: none; } }
.city circle { fill: var(--fg); stroke: var(--bg); stroke-width: calc(1px * var(--ls, 1)); }
/* the map is drawn in 560-unit space and scaled to the page, so label sizes are given in screen pixels times --ls (units per pixel, set from the map's width) */
.city text { fill: var(--fg); font-family: system-ui, sans-serif; font-weight: 600; font-size: calc(13px * var(--ls, 1)); paint-order: stroke; stroke: var(--bg); stroke-width: calc(3.5px * var(--ls, 1)); stroke-linejoin: round; pointer-events: none; }
.city.home circle { fill: #f5b73b; } .city.home text { font-size: calc(14.5px * var(--ls, 1)); }
.inset { position: absolute; top: 8px; width: 104px; height: auto; max-height: 90px; padding: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: visible; }
.inset text { fill: var(--muted); font: 600 9px system-ui, sans-serif; }
.maptip { position: absolute; z-index: 7; padding: 2px 8px; border-radius: 6px; background: var(--fg); color: var(--bg); font-size: .78rem; font-weight: 600; white-space: nowrap; pointer-events: none; }
.cty:hover { stroke-width: 2; filter: brightness(1.15); }
.cty.hit.under { fill: color-mix(in srgb, var(--ev) 12%, transparent); stroke-width: .8; }
.poly { fill: color-mix(in srgb, var(--ev) 38%, transparent); stroke: var(--ev); stroke-width: 2.4; vector-effect: non-scaling-stroke; pointer-events: none; }
.capwords { border-top: 1px solid var(--line); padding: 6px 10px; font-size: .82rem; background: var(--panel); }
.capwords summary { cursor: pointer; color: var(--muted); }
.capwords p { white-space: pre-wrap; margin: 6px 0 2px; }
.tape:empty { display: none; }
.frow { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 10px 0 0; }
.frow .types { margin: 0; }
.minc select { font: inherit; font-size: .88rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--fg); }
.capwords p.instruction { font-weight: 600; }
.rich { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bg); background: var(--accent); border-radius: 6px; padding: 1px 7px; }
.upd { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bg); background: #e0a030; border-radius: 6px; padding: 1px 7px; }
.richonly { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: .88rem; cursor: pointer; }
/* with a warning polygon the counties are faint until the replay reaches them: lit = read out, now = being read */
.cty.hit.under.lit { fill: color-mix(in srgb, var(--ev) 55%, transparent); stroke-width: 1.3; }
.cty.hit.under.now { fill: var(--ev); stroke-width: 2; }
.poly { fill: color-mix(in srgb, var(--ev) 22%, transparent); }
/* roads on the map */
.road { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.road-s { stroke: color-mix(in srgb, var(--fg) 22%, transparent); stroke-width: .8; }
.road-u { stroke: color-mix(in srgb, var(--fg) 34%, transparent); stroke-width: 1.2; }
.road-i { stroke: color-mix(in srgb, var(--fg) 52%, transparent); stroke-width: 2; }
.city.in text { font-weight: 800; }
.road-t { stroke: color-mix(in srgb, var(--fg) 14%, transparent); stroke-width: .6; }
.radar { opacity: .4; pointer-events: none; }
.mapbox.noradar .radar { display: none; }
.radarbtn { font: inherit; font-size: .72rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; }
.radarbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
/* the same alert on other sources */
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.also a { padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); text-decoration: none; font-variant-numeric: tabular-nums; }
.also a:hover { border-color: var(--accent); }
.alert.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: var(--shadow); } }
/* owner: render video */
.auth { font: inherit; font-size: .85rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.auth.on { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.rpanel { margin-top: 10px; padding: 10px 12px; background: var(--panel-2); border-radius: 10px; display: grid; gap: 8px; font-size: .85rem; }
.ropts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.ropts label { display: grid; gap: 2px; color: var(--muted); font-size: .75rem; }
.ropts select, .ropts input[type="number"], .ropts input[type="text"] { font: inherit; font-size: .85rem; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--fg); }
.ropts input[type="number"] { width: 6.5em; } .ropts input[type="text"] { width: 10em; } .ropts .chk { display: flex; gap: 4px; align-items: center; color: var(--fg); }
.rpanel .primary { justify-self: start; font: inherit; padding: 5px 16px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--bg); cursor: pointer; font-weight: 600; }
.rpanel .primary:disabled { opacity: .6; cursor: progress; }
.rhint { margin: 0; color: var(--muted); font-size: .75rem; } .rerr { color: #e5484d; margin: 0; } .rout p { margin: 4px 0; }
.rvideo { width: 100%; max-height: 320px; background: #000; border-radius: 8px; }
.rbar { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.rbar i { display: block; height: 100%; background: var(--accent); transition: width .5s linear; }

/* "Original" look: the page as it was before the 2026 redesign (anon64.github.io, 208690c): black page, black bar with a gold title, a bordered table with a blue header row and grey/white rows; chosen with the button at the bottom */
#orig-bar { display: none; }
:root[data-style="classic"] { --bg: #000; --fg: #fff; --muted: #c8c8c8; --accent: #ffd700; color-scheme: dark; }
:root[data-style="classic"] body { margin: 0; padding: 0 8px; font-family: Verdana, Geneva, Tahoma, sans-serif; }
:root[data-style="classic"] .top, :root[data-style="classic"] .stats, :root[data-style="classic"] .controls, :root[data-style="classic"] #count, :root[data-style="classic"] .more { display: none; }
:root[data-style="classic"] #orig-bar { display: block; background: #0a0a0a; overflow: hidden; position: fixed; top: 0; left: 0; width: 100%; z-index: 20; }
:root[data-style="classic"] #orig-bar h1 { font-size: 2em; font-family: Verdana, Geneva, Tahoma, sans-serif; text-transform: none; }
:root[data-style="classic"] #orig-bar { padding: 4px 8px 6px; } :root[data-style="classic"] #orig-bar p { margin: 6px 0 0; }
:root[data-style="classic"] .ndmbgold { color: #FFD700; }
:root[data-style="classic"] main.wrap { width: auto; margin: 0; padding-top: var(--bar-h, 100px); }
:root[data-style="classic"] .list { display: block; }
table.orig { table-layout: fixed; width: 100%; background: #fff; color: #000; border-collapse: separate; border-spacing: 0; border: 1px solid #000; font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 16px; }
table.orig td, table.orig th { border: 1px solid #000; padding: 5px; }
table.orig p { margin: 2px 0; }
table.orig thead { position: sticky; top: calc(var(--bar-h, 100px) + 36px); background: #263F78; color: #fff; z-index: 1; }
table.orig tbody tr:nth-child(odd) { background: #dedede; } table.orig tbody tr:nth-child(even) { background: #fff; }
table.orig.dark-mode { background: #000; color: #fff; border-color: #fff; }
table.orig.dark-mode td, table.orig.dark-mode th { border-color: #fff; }
table.orig.dark-mode tbody tr:nth-child(odd) { background: #333; } table.orig.dark-mode tbody tr:nth-child(even) { background: #222; }
table.orig th:nth-child(1) { width: 7.5em; } table.orig th:nth-child(2) { width: 11em; } table.orig th:nth-child(3) { width: 13em; }
table.orig td:nth-child(-n+3) { text-align: center; }
table.orig td.warning, table.orig mark.warning { background: #FF9090; } table.orig td.watch, table.orig mark.watch { background: #FFFF90; }
table.orig td.advisory, table.orig mark.advisory { background: #90FF90; } table.orig td.test, table.orig mark.test { background: #9090FF; } table.orig td.unknown { background: #696969; }
table.orig.dark-mode td.warning, table.orig.dark-mode mark.warning { background: #760000; } table.orig.dark-mode td.watch, table.orig.dark-mode mark.watch { background: #766F00; }
table.orig.dark-mode td.advisory, table.orig.dark-mode mark.advisory { background: #076F00; } table.orig.dark-mode td.test, table.orig.dark-mode mark.test { background: #07006F; }
table.orig mark { color: inherit; font-weight: 400; padding: 0; border-radius: 0; }
table.orig .until { color: inherit; font-weight: inherit; }
.orig-about { margin: 8px 0; max-width: 70ch; } .orig-about summary { cursor: pointer; width: fit-content; } .orig-about p { margin: 6px 0 0; }
.foot .btn-style { font: inherit; font-size: .8rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.foot .btn-style:hover { color: var(--fg); border-color: var(--accent); }
.o-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; height: 36px; margin: 0; padding: 4px 0; box-sizing: border-box; background: #000; position: sticky; top: var(--bar-h, 100px); z-index: 3; font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: .85rem; color: #fff; overflow: hidden; }
.o-pager:last-child { top: auto; bottom: 0; }
.o-pager button { font: inherit; background: #0a0a0a; color: #fff; border: 1px solid #555; padding: 3px 9px; cursor: pointer; }
.o-pager button:hover:not(:disabled) { border-color: #ffd700; } .o-pager button:disabled { opacity: .4; cursor: default; } .o-pager button.cur { background: #263F78; border-color: #ffd700; }
.o-pager .o-of { margin-left: 10px; color: #c8c8c8; }

/* page navigation: Alerts / Statistics / Status as one group, apart from the account and external buttons */
.navseg { display: inline-flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.navseg a { display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 9px; font-size: .9rem; color: var(--fg); text-decoration: none; }
.navseg a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.navseg a[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.sdot { width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--muted); }
.sdot.ok { background: var(--live); } .sdot.warn { background: #f2c230; } .sdot.bad { background: var(--warn); }
.top-actions { flex-wrap: wrap; justify-content: flex-end; }

.vidbox { position: relative; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.vidbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vidbox .vidyt { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; text-decoration: none; opacity: 0; transition: opacity .15s; }
.vidbox:hover .vidyt, .vidbox:focus-within .vidyt { opacity: 1; }
.mapbox[hidden], .vidbox[hidden] { display: none; }
.detail audio[hidden] { display: none; }
