/* THREAT_INTEL console, Phosphor look (spec §3.7). Later tasks append one section at the end
   headed "=== Task N: <name> ===". Third-party media rule (§3.3): nothing here may put a
   filter, opacity, blend, mask, clip-path or scanline on #map, a popup, the dock, the OFF-MAP
   strip or any ancestor of a player; scanlines and glow belong to console chrome only
   (.chrome: the status bar and the footer line). Square corners everywhere. */

:root {
    --bg: #0a0e0a;
    --panel: #101510;
    --panel-hi: #162016;
    --border: #1f2b1f;
    --text: #c8e6c9;
    --dim: #6b8f6b;
    --accent: #00e676;
    --warn: #ffb300;             /* warnings only: banner, DELAYED/STALE; never a severity */
    --extreme: #ff3b30;
    --severe: #ff9500;
    --moderate: #ffd60a;
    --minor: #8e8e93;
    --clip: #26c6da;             /* ◆ London clip (teal) */
    --still: #4f8a5b;            /* ■ relayed still (dim green) */
    --still-current: #8fd19e;    /* ■ still whose frame is current */
    --mono: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    --glow: 0 0 6px rgba(0, 230, 118, 0.55);
    --scanline: rgba(0, 230, 118, 0.035);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font: 13px/1.45 var(--mono);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --- Console chrome: the only surfaces with scanlines and glow --------------------------- */
.chrome { position: relative; background: var(--panel); }
.chrome::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, var(--scanline) 0 1px, transparent 1px 3px);
}

#status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 18px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
}
.brand {
    margin-right: auto;
    font-size: 1.15em;
    color: var(--accent);
    letter-spacing: 2px;
    text-shadow: var(--glow);
}
.cursor { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.status-slot { color: var(--dim); white-space: nowrap; }
.status-slot:empty { display: none; }
a.status-slot { color: var(--accent); }
.status-badge { padding: 0 6px; border: 1px solid currentColor; color: var(--dim); }
.status-badge[data-state="LIVE"] { color: var(--accent); }
.status-badge[data-state="DELAYED"] { color: var(--warn); }
.status-badge[data-state="STALE"] { color: var(--bg); background: var(--warn); border-color: var(--warn); }

#footer-credits {
    min-height: 1.9em;
    padding: 4px 14px;
    border-top: 1px solid var(--border);
    color: var(--dim);
    font-size: 0.85em;
}

.banner {
    padding: 6px 14px;
    border-bottom: 1px solid var(--warn);
    background: var(--panel);
    color: var(--warn);
}

/* --- Regions --------------------------------------------------------------------------- */
#console { flex: 1; display: flex; min-height: 0; }
#cue-list {
    flex: 0 0 21%;
    min-width: 260px;
    max-width: 440px;
    overflow-y: auto;
    border-right: 1px solid var(--border);
}
#map-region { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* isolation keeps Leaflet's pane and control z-indexes inside the map (overlays stay on top). */
#map { flex: 1; min-height: 0; background: #000; isolation: isolate; }
#offmap-strip {
    flex: 0 0 auto;
    max-height: 30%;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    background: var(--panel);
}
#offmap-strip:empty { display: none; }
/* Only rendered while something is pinned (#dock[hidden] otherwise). The 424 px floor fits a
   356 px media box with its YouTube zone, monitor and list chrome (48 px), the dock border and a
   classic scrollbar (.dock-list keeps its gutter): docked media are never cropped (spec §3.3,
   §4.4); spec §3.1 asks only for >= 380 px. */
#dock {
    flex: 0 0 clamp(424px, 26vw, 560px);
    overflow-y: auto;
    border-left: 1px solid var(--border);
    background: var(--bg);
}

.panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    padding: 5px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
    color: var(--dim);
    font-size: 0.85em;
}
.toggles { display: flex; flex-wrap: wrap; gap: 2px 12px; border: 0; }
.toggles label { cursor: pointer; white-space: nowrap; }
.toggles input { margin-right: 3px; vertical-align: -2px; accent-color: var(--accent); }

/* The legend opens in flow (pushing the map down), never as an overlay on the map. */
.legend { margin-left: auto; }
.legend[open] { flex-basis: 100%; margin-left: 0; }
.legend summary { cursor: pointer; color: var(--text); }
.legend-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 4px 18px;
    padding: 8px 0 4px;
    color: var(--text);
}
.glyph { display: inline-block; min-width: 2.2em; margin-right: 6px; text-align: center; }
.glyph-live { color: var(--accent); }
.glyph-clip { color: var(--clip); }
.glyph-still { color: var(--still); }
.glyph-cluster { min-width: 0; padding: 0 4px; border: 1px solid var(--accent); color: var(--accent); font-size: 0.85em; }
/* The YouTube marker is a plain text tag: square corners, console colours, no play triangle. */
.glyph-tv { min-width: 0; padding: 0 3px; border: 1px solid var(--text); color: var(--text); font-size: 0.85em; letter-spacing: 1px; }
.glyph-iss, .glyph-pad { color: var(--text); }
.swatch { display: inline-block; width: 0.9em; height: 0.9em; margin: 0 0.65em 0 0.65em; vertical-align: -1px; }
.sev-extreme { background: var(--extreme); }
.sev-severe { background: var(--severe); }
.sev-moderate { background: var(--moderate); }
.sev-minor { background: var(--minor); }

/* --- Controls -------------------------------------------------------------------------- */
.btn {
    padding: 7px 14px;
    border: 1px solid var(--accent);
    border-radius: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    cursor: pointer;
}
.btn:hover { background: rgba(0, 230, 118, 0.1); }
.btn:disabled { border-color: var(--border); color: var(--dim); cursor: default; }
.btn-small { padding: 0 8px; }

/* --- Gates: sign-in and terms (shown only while no player can exist) ------------------- */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}
.card {
    width: min(64ch, 100%);
    padding: 22px 24px;
    border: 1px solid var(--accent);
    background: var(--panel);
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.12);
}
.card-title { margin-bottom: 12px; font-size: 1.15em; color: var(--accent); letter-spacing: 2px; text-shadow: var(--glow); }
.card-text { margin-bottom: 12px; }
.card-links { list-style: none; margin-bottom: 16px; }
.card-links li { margin: 4px 0; }

/* --- Leaflet (loaded before this file; equal specificity, so these win) ------------------ */
.leaflet-container { background: #000; font-family: var(--mono); }
/* OSM tiles are light; invert + rotate gives a dark basemap without a keyed provider. */
.dark-tiles { filter: invert(1) hue-rotate(180deg) brightness(0.7) contrast(1.1) saturate(0.5); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--panel);
    color: var(--text);
    box-shadow: none;
}
.leaflet-container a.leaflet-popup-close-button { color: var(--dim); }
.leaflet-container .leaflet-control-attribution { background: var(--panel); color: var(--dim); }
.leaflet-container .leaflet-control-attribution a { color: var(--accent); }
.leaflet-bar a { background-color: var(--panel); color: var(--accent); border-bottom-color: var(--border); }
.leaflet-bar a:hover, .leaflet-bar a:focus { background-color: var(--panel-hi); color: var(--accent); }
.leaflet-bar a.leaflet-disabled { background-color: var(--panel); color: var(--dim); }

.popup-title { margin-bottom: 4px; font-weight: bold; }
.popup-meta { color: var(--dim); font-size: 0.85em; }
.popup-link a { color: var(--accent); }
/* New incidents pulse three times (0.56 Hz; nothing here flashes faster than 3 per second). */
.pulse { animation: pulseop 1.8s ease-out 3; }
@keyframes pulseop { 0% { opacity: 1; } 50% { opacity: 0.35; } 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Desktop-first (mobile is not a target, D2): narrow windows stack the regions. */
@media (max-width: 860px) {
    body { overflow: auto; }
    #console { flex-direction: column; }
    #cue-list { flex-basis: auto; max-width: none; max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--border); }
    #map-region { min-height: 60vh; }
    #dock { flex-basis: auto; border-left: 0; border-top: 1px solid var(--border); }
}

/* === Task 12: Sign-in panel message === */
/* Task 7's error line under [ Sign in ]: shown only with a reason (a failed sign-in or session check). */
#signin-message { margin-top: 12px; color: var(--warn); }

/* === Task 13: Session time left and renewal banner === */
#session-slot:not(:empty) { display: inline-flex; align-items: baseline; gap: 8px; }
#session-slot .session-left { color: var(--text); }
.banner:not([hidden]) { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; }
.banner .btn { border-color: var(--warn); color: var(--warn); }
.banner .btn:hover { background: rgba(255, 179, 0, 0.12); }

/* === Task 14: The /privacy page === */
/* /privacy reuses this stylesheet as a plain scrolling document (the console body is a fixed,
   non-scrolling flex column). */
html.doc-page, html.doc-page body { display: block; height: auto; min-height: 100%; overflow: auto; }
.doc { max-width: 760px; margin: 0 auto; padding: 24px 16px 16px; font-size: 0.85rem; line-height: 1.55; }
.doc h1 { color: var(--accent); font-size: 1rem; letter-spacing: 2px; margin-bottom: 4px; }
.doc h2 { color: var(--accent); font-size: 0.9rem; margin: 24px 0 8px; }
.doc p, .doc ul, .doc dl { margin-bottom: 10px; }
.doc ul { padding-left: 20px; }
.doc ul ul { margin: 4px 0 0; }
.doc dt { margin-top: 8px; }
.doc dd { margin-left: 16px; }
.doc code { color: var(--accent); }
.doc a, .doc-footer a { color: var(--accent); }
.doc-meta { color: var(--dim); }
.doc-footer { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; font-size: 0.85rem; }

/* === Task 39: Console shell — camera layer, notices, incident outlines === */
/* Cameras render below the incidents (spec §3.2): warning polygons take clicks on their outline
   only, so the cameras inside a warning area stay clickable. */
.leaflet-pane > svg path.inc-area.leaflet-interactive { pointer-events: visibleStroke; }
.popup-facts { list-style: none; margin-top: 4px; font-size: 0.85em; }
/* Cluster bubbles "N · M live": a zero-size icon with the bubble centred on the point. */
.cam-cluster { width: 0; height: 0; }
.cam-bubble {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 0 6px;
    border: 1px solid var(--still);
    background: var(--panel);
    color: var(--text);
    font-size: 11px;
    line-height: 1.6;
    white-space: nowrap;
    cursor: pointer;
}
.cam-bubble.has-live { border-color: var(--accent); color: var(--accent); }
.cam-bubble.is-highlight { outline: 2px solid #ffffff; outline-offset: 1px; }
.cam-cluster:focus-visible .cam-bubble { outline: 2px solid var(--accent); }
/* A camera that just went on air: a ring pulsing three times, 1.8 s each (never more than 3
   flashes per second); under prefers-reduced-motion Task 7's global rule leaves a still ring. */
.cam-pulse-icon { width: 0; height: 0; }
.cam-pulse {
    position: absolute;
    left: -11px;
    top: -11px;
    width: 22px;
    height: 22px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    animation: cam-pulse 1.8s ease-out 3;
}
@keyframes cam-pulse { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
/* Co-located cameras: one list popup per station. */
.cam-list { min-width: 220px; }
.cam-list-head { margin-bottom: 4px; color: var(--dim); }
.cam-list ul { list-style: none; max-height: 260px; overflow-y: auto; }
.cam-list-item {
    display: block;
    width: 100%;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.cam-list-item:hover, .cam-list-item:focus-visible { color: var(--accent); }
/* Per-layer notices ("warming up", Review Focus #1): amber is for warnings only. */
.map-notices { padding: 4px 8px; border: 1px solid var(--warn); background: var(--panel); color: var(--warn); font-size: 0.85em; }
.map-notices-list { list-style: none; }
/* === Task 40: Popup player — media boxes, YouTube zone, popup chrome === */
/* Third-party media rule (spec §3.3, §4.4): media is contained — never cropped or zoomed — and
   nothing on the media box or any ancestor dims, filters, blends, masks, clips or covers it.
   The resets also beat Leaflet's popup fade rule should fadeAnimation ever be switched on. */
.leaflet-popup.ti-popup, .ti-popup .leaflet-popup-content-wrapper, .ti-popup .leaflet-popup-content,
.ti-popup-body, .yt-surface, .yt-zone, .ti-media-box, .ti-media, .yt-thumb {
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
    clip-path: none;
    mask: none;
}
.ti-popup .leaflet-popup-content { margin: 8px 10px; }
.ti-popup-body { display: flex; flex-direction: column; gap: 6px; }
.ti-popup-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ti-popup-title { color: var(--accent); font-weight: bold; overflow-wrap: anywhere; }
.ti-popup-actions { display: flex; flex: none; gap: 4px; }
.ti-popup-info, .ti-popup-foot { color: var(--dim); font-size: 0.85em; overflow-wrap: anywhere; }
/* The popup's status line (chrome, above the media box): a blocked pop-up, a full dock — one
   reason per line (the text joins them with line breaks). Hidden while empty. */
.ti-popup-status { margin: 0; color: var(--warn); font-size: 0.85em; white-space: pre-line; overflow-wrap: anywhere; }
.ti-popup-status:empty { display: none; }
/* Media boxes: 480×270 in popups and pop-outs, 356×200 in the dock, 160×90 thumbnails in lists. */
.ti-media-box { position: relative; background: #000; }
.ti-media-box.size-popup, .yt-media.size-popup { width: 480px; height: 270px; }
.yt-media.size-dock { width: 356px; height: 200px; }
.yt-media.size-list { flex: none; width: 160px; height: 90px; }
.ti-media, .yt-thumb { display: block; width: 100%; height: 100%; object-fit: contain; }
.yt-frame { border: 0; }
.media-notice { padding: 8px; color: var(--warn); }
/* YouTube zone: YouTube data only, on an opaque ground; console data lives in the strip below. */
.yt-surface { display: flex; flex-direction: column; gap: 4px; }
.yt-zone { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--border); background: #000; }
.yt-zone.size-list { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.yt-zone.is-compact { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 2px 4px; }
.yt-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yt-zone.is-compact .yt-meta { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.yt-title { color: #ffffff; font-weight: bold; unicode-bidi: isolate; overflow-wrap: anywhere; }
.yt-channel { color: var(--text); unicode-bidi: isolate; overflow-wrap: anywhere; }
.yt-status, .yt-unverified { color: var(--dim); }
.yt-link { color: var(--accent); }
.yt-play { align-self: flex-start; }
.console-strip { padding-top: 4px; border-top: 1px dashed var(--border); color: var(--dim); font-size: 0.85em; overflow-wrap: anywhere; }
.strip-label { display: block; font-size: 0.85em; letter-spacing: 1px; text-transform: uppercase; }

/* === Task 41: YouTube layer, OFF-MAP strip, space layer === */
/* The YouTube marker is a TV text tag in the console font — square corners, phosphor colours —
   never a play triangle inside a rounded rectangle (the YouTube Icon, spec §3.2, §4.4). A group
   of overlapping feeds is the same tag with a stacked edge and no number (no YouTube counts). */
.yt-marker, .space-marker { width: 0; height: 0; }
/* A fixed 24×16 box (border included): yt-layer.js TAG_BOX_PX and its grouping radius rely on it. */
.yt-tag {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 16px;
    padding: 0;
    border: 1px solid var(--text);
    border-radius: 0;
    background: var(--panel);
    color: var(--text);
    font: 10px/14px var(--mono);
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}
/* .is-live is a hook only: live vs not live is never shown by colour alone (spec §3.2), and the
   legend's TV entry has no live variant; each feed's state is in its zone. */
.yt-tag.is-group { box-shadow: 2px 2px 0 var(--panel), 3px 3px 0 currentColor; }
.leaflet-marker-icon:focus-visible .yt-tag,
.leaflet-marker-icon:focus-visible .iss-glyph,
.leaflet-marker-icon:focus-visible .pad-marker { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Group list: the "YouTube" heading, then one YouTube zone per feed (Task 40's zone styles). */
.yt-group-list { min-width: 260px; }
.yt-group-head { margin-bottom: 6px; color: var(--text); font-weight: bold; letter-spacing: 1px; }
.yt-group-rows, .offmap-list { list-style: none; }
.yt-group-rows { max-height: 380px; overflow-y: auto; }
.yt-list-item { padding: 6px 0; border-bottom: 1px solid var(--border); }
.yt-list-actions, .offmap-actions { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
/* OFF-MAP strip: below the map, outside its container; console.css (Task 7) hides it while empty. */
.offmap-head { position: sticky; top: 0; z-index: 1; }
.offmap-note { color: var(--dim); }
.offmap-list { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 8px 12px; }
.offmap-list[hidden] { display: none; }
.offmap-toggle { margin-left: auto; }
.offmap-item { width: 380px; max-width: 100%; }
/* Space layer: ✛ ISS, ▲ pads with a pale T-minus, ON AIR in the accent colour. */
.iss-glyph, .pad-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    cursor: pointer;
    text-shadow: 0 0 2px #000, 0 0 2px #000;
}
.iss-glyph { color: var(--text); font: bold 20px/1 var(--mono); }
.pad-marker { display: inline-flex; align-items: baseline; gap: 4px; color: var(--text); font: 11px/1.3 var(--mono); }
.pad-label { padding: 0 3px; border: 1px solid var(--border); background: var(--panel); color: var(--dim); }
.pad-marker.is-onair, .pad-marker.is-onair .pad-label { color: var(--accent); border-color: var(--accent); }
.iss-labels .strip-text { display: block; }

/* === Task 42: Dock and pop-outs === */
/* Dock monitors: console chrome above and below each media box. Media boxes keep Task 40's
   third-party media rule — contained, nothing on them or on any ancestor. The header stays put
   and only the list scrolls (no sticky header), so nothing ever slides over a docked player
   (spec §4.4) and a player scrolled half out of the list is clipped where ytMount can see it. */
#dock:not([hidden]) { display: flex; flex-direction: column; overflow: hidden; }
.dock-head { flex: none; }
.dock-head .dock-unpin-all { margin-left: auto; }
.dock-note { color: var(--warn); }
.dock-note:empty { display: none; }
.dock-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.dock-monitor { flex: none; padding: 6px; border: 1px solid var(--border); background: var(--panel); }
.dock-monitor:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dock-monitor-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.dock-key { min-width: 1.6em; padding: 0 3px; border: 1px solid var(--border); color: var(--dim); text-align: center; }
.dock-title { flex: 1; min-width: 0; color: var(--accent); overflow-wrap: anywhere; }
.dock-actions { display: flex; flex: none; gap: 4px; }
.ti-media-box.size-dock { width: 356px; height: 200px; }
.feed-view { display: flex; flex-direction: column; gap: 4px; }
.feed-info, .feed-foot { color: var(--dim); font-size: 0.85em; overflow-wrap: anywhere; }
/* Pop-out page: a plain scrolling document; the player keeps its minimum size (spec §3.5). */
html.popout-page, html.popout-page body { display: block; height: auto; min-height: 100%; overflow: auto; }
#popout-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
/* 522 px: a 480 px player in its YouTube zone (2 × 7 px) plus this padding (2 × 14 px). */
.popout-feed { min-width: 522px; padding: 12px 14px; }

/* === Task 43: Cue list, eyes on target, status bar, footer credits === */
.cue-view, .eyes-view { display: flex; flex-direction: column; }
.cue-onair-list, .cue-rows, .eyes-cams, .eyes-yt-list { list-style: none; }
.cue-onair-row { display: flex; flex-direction: column; gap: 4px; padding: 6px 12px; border-bottom: 1px solid var(--border); }
.cue-onair-open {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
}
.cue-onair-meta, .cue-when, .cue-eyes, .cue-kind, .eyes-dist, .eyes-age { color: var(--dim); font-size: 0.85em; }
.cue-linkouts a { color: var(--accent); }
.cue-count { margin-left: auto; }
.cue-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 12px; border-bottom: 1px solid var(--border); }
/* The pressed chip is marked by weight and underline too, never by colour alone (aria-pressed for AT). */
.cue-chip.is-on { background: rgba(0, 230, 118, 0.15); font-weight: bold; text-decoration: underline; }
.cue-row, .eyes-cam {
    display: block;
    width: 100%;
    padding: 6px 12px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: none;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.cue-row:hover, .cue-row:focus-visible, .eyes-cam:hover, .eyes-cam:focus-visible { background: var(--panel-hi); }
/* The severity is the word on the chip; colour only repeats it. */
.sev-chip { display: inline-block; min-width: 7em; margin-right: 6px; padding: 0 4px; border: 1px solid currentColor; font-size: 0.8em; text-align: center; }
.sev-chip[data-severity="extreme"] { color: var(--extreme); }
.sev-chip[data-severity="severe"] { color: var(--severe); }
.sev-chip[data-severity="moderate"] { color: var(--moderate); }
.sev-chip[data-severity="minor"] { color: var(--minor); }
/* A source past its DELAYED limit: a warning, so the one amber token, in words (never colour alone). */
.cue-stale { margin-left: 6px; padding: 0 4px; border: 1px solid var(--warn); color: var(--warn); font-size: 0.8em; }
.cue-kind { margin-right: 6px; }
.cue-title { display: block; overflow-wrap: anywhere; }
.cue-eyes { display: block; }
.cue-empty, .eyes-empty, .eyes-more { padding: 8px 12px; color: var(--dim); }
.eyes-back { margin-left: auto; }
.eyes-title { padding: 8px 12px 0; font-size: 1em; color: var(--text); overflow-wrap: anywhere; }
.eyes-counts { padding: 2px 12px 8px; border-bottom: 1px solid var(--border); color: var(--dim); }
.eyes-cam { display: grid; grid-template-columns: 5.5em 1fr auto; gap: 0 8px; }
.eyes-cam.kind-live .eyes-kind { color: var(--accent); }
.eyes-cam.kind-clip .eyes-kind { color: var(--clip); }
.eyes-cam.kind-still .eyes-kind { color: var(--still-current); }
.eyes-name { overflow-wrap: anywhere; }
.eyes-age, .eyes-flag { grid-column: 2 / 4; }
.eyes-flag { color: var(--accent); font-weight: bold; }
.eyes-yt { padding: 8px 12px; border-top: 1px solid var(--border); }
.eyes-yt-head { margin-bottom: 6px; font-size: 0.9em; color: var(--text); letter-spacing: 1px; }
.credits-label { color: var(--dim); }
#footer-credits .credit { color: var(--text); }
