/* The look of Osian's House Dash: dark glass cards lit along the top edge in a colour that follows the time of day
   (--mood, set by app.js), light big numbers in Inter, and a headline banner across the top. The name is the sign's letters as a neon tube in Olidor's colours (wordmark.svg). */
:root {
  color-scheme: dark;
  --bg: #0a0a0c; --surface: #16171c; --surface-2: #1d1e24; --surface-3: #25262d;
  --card-a: rgba(38, 40, 50, 0.82); --card-b: rgba(16, 17, 21, 0.9); --card-2: rgba(255, 255, 255, 0.05);
  --ink-1: #f0efec; --ink-2: #c3c2b7; --ink-3: #8d8c85; --ink-4: #6d6c66; --ink-5: #4a4945;
  --line-1: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.12);
  --good: #0ca30c; --emerald: #34b934; --garnet: #e25555; --gold: #fab219; --stone: #8d8c85; --cobalt: #3987e5; --amethyst: #9085e9;
  --accent: #6f63d8; --accent-ink: #b9b0f0;
  --mood: #7b84e8; /* night; app.js moves it through dawn amber, day blue and dusk orange */
  --ring: 0 0 0 3px color-mix(in srgb, var(--mood) 35%, transparent);
  --radius: 22px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; --mono: ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink-1); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 620px at 12% -8%, color-mix(in srgb, var(--mood) 13%, transparent), transparent 62%),
              radial-gradient(900px 520px at 100% 0%, color-mix(in srgb, var(--mood) 7%, transparent), transparent 60%), var(--bg);
  background-attachment: fixed; }
.wrap, .topbar-in { max-width: 1520px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.topbar-in { max-width: none; } /* the top bar runs the full width, so it all starts at the left edge (Osian, 2026-10-23: "have it all move left") */
.wrap { padding-block: 0 48px; }
.ic { width: 1em; height: 1em; flex: none; }

/* The headline banner and the top bar stay together at the top of the screen, so a red flash is never scrolled away. */
.head { position: sticky; top: var(--head-top, 0px); z-index: 10; } /* app.js sets --head-top to minus the banner's height, so only the top bar stays pinned; 0 while an unseen outage holds the banner */
/* The top bar, as in Opex: a translucent strip over the page with a hairline under it. */
.topbar { position: relative; background: rgba(10, 10, 12, 0.72); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line-1); }
.topbar-in { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; min-height: 48px; padding-block: 6px; } /* kept slim (Osian, 2026-10-23: "we need the top bar to be minimilistic") */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.brand img { display: block; flex-shrink: 0; }
.brand h1 { margin: 0; min-width: 0; overflow: hidden; line-height: 0; }
/* The logo, then the name on one line with the date under it: one compact block, then the nav (Osian, 2026-10-23: "need to oragnise the
   nav bar better and have it all move left"). */
.brand-txt { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
/* Outpost (the watch copy; lib/watch.js markWatch puts this in place of the wordmark): the name in the date's Orbitron, as the same neon tube. */
.brand h1 .wordmark-txt { display: block; font: 600 15px/15px 'Orbitron', var(--sans); letter-spacing: 0.32em; text-transform: uppercase; white-space: nowrap; color: #e8d4d4; text-shadow: 0 0 1px #e05a3a, 0 0 6px rgba(224, 90, 58, 0.55), 0 0 14px rgba(139, 58, 74, 0.6); }
.brand h1 .wordmark { display: block; height: 15px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0 0 4px rgba(224, 90, 58, 0.35)); } /* the sign's letters as a neon tube in Olidor's colours: eggshell core, orange edge, burgundy halo */
.chip { font: 600 11px var(--sans); padding: 2px 9px; border-radius: 999px; color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.live { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--stone); display: inline-block; }
.dot.on { background: var(--emerald); box-shadow: 0 0 8px rgba(12, 163, 12, 0.8); } .dot.bad { background: var(--garnet); }
@media (prefers-reduced-motion: no-preference) { .dot.on { animation: beat 2s ease-in-out infinite; } }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.dot.warn { background: var(--gold); } .dot.on-flat { background: var(--emerald); }
/* A system down: the pill's dot flashes red at about 1 Hz, with the holograms (steady red for reduced motion). */
@keyframes alarm { 0%, 100% { opacity: 1; box-shadow: 0 0 9px rgba(255, 59, 59, 0.9); } 50% { opacity: 0.3; box-shadow: none; } }
@media (prefers-reduced-motion: no-preference) { .dot.alarm { animation: alarm 1.1s ease-in-out infinite; } }
/* Who is signed in and whether it is all working: a pill with the live dot and the first name, at the right of the top bar on every
   page; it opens a list of every feed (Osian, 2026-10-23: "i do actually need my name somewhere now to know its mine and a live
   button to make sure i am online and all is working fine"). */
.me { position: relative; }
.me-pill { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-1); font: 500 13px var(--sans); cursor: pointer; white-space: nowrap; }
.me-pill:hover { background: var(--card-2); }
.me-pill:focus-visible { outline: none; box-shadow: var(--ring); }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 19rem; max-width: calc(100vw - 32px); padding: 10px 0 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7); z-index: 20; }
.me-head { padding: 0 14px 8px; font: 600 12px var(--sans); color: var(--ink-1); border-bottom: 1px solid var(--line-1); }
.me-list { list-style: none; margin: 4px 0 0; padding: 0; }
.me-row { display: flex; align-items: center; gap: 9px; padding: 6px 14px; font-size: 12.5px; color: var(--ink-2); }
.me-row .dot { width: 7px; height: 7px; flex: none; }
.me-name { flex: 1; min-width: 0; }
.me-when { color: var(--ink-4); font-size: 11.5px; white-space: nowrap; }
/* Under the holograms: where alerts go, pop-ups here and the last alert (app.js renderAlerts). One quiet line, so the dashboard stays short. */
.holo-alerts { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 4px; margin: 6px 4px 0; font-size: 12.5px; color: var(--ink-3); }
.holo-alerts:empty { display: none; }
.holo-alerts .ha-k { margin-right: 12px; font: 600 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.holo-alerts .ha-i + .ha-i::before { content: '·'; margin: 0 9px; color: var(--ink-4); }
.holo-alerts .ha-warn { color: var(--gold); }
/* Pop-ups when a system goes down (app.js renderPopups): a line under the list, with a Turn on button until the browser has been asked. */
.me-pop { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 9px 14px 2px; border-top: 1px solid var(--line-1); font-size: 12px; color: var(--ink-3); }
.me-pop-txt { flex: 1; min-width: 0; }
.me-pop-btn { flex: none; padding: 4px 11px; font: 600 12px var(--sans); color: var(--ink-1); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; }
.me-pop-btn:hover, .me-pop-btn:focus-visible { border-color: color-mix(in srgb, var(--mood) 50%, var(--line-2)); outline: none; }
.me-pop-btn[hidden] { display: none; }
/* Meeting reminders (app.js renderMeetingCards): from 10 minutes before a meeting until it starts, one card each, bottom right, lit along the top edge in --mood. */
.meet-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; flex-direction: column; gap: 8px; width: 22rem; max-width: calc(100vw - 32px); pointer-events: none; }
.meet-toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 13px 14px 13px 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--mood) 40%, var(--line-2)); border-radius: 14px; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--mood) 70%, transparent), 0 24px 48px -12px rgba(0, 0, 0, 0.7); }
.meet-txt { flex: 1; min-width: 0; }
.meet-in { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mood); }
.meet-subject { margin-top: 3px; font-size: 15px; font-weight: 600; color: var(--ink-1); overflow-wrap: anywhere; }
.meet-sub { margin-top: 2px; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.meet-x { flex: none; padding: 5px 12px; font: 600 12px var(--sans); color: var(--ink-1); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; }
.meet-x:hover, .meet-x:focus-visible { border-color: color-mix(in srgb, var(--mood) 50%, var(--line-2)); outline: none; }
.meet-acts { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.meet-ping { flex: none; padding: 5px 12px; font: 600 12px var(--sans); color: var(--bg, #0b0d14); background: var(--mood); border: 1px solid var(--mood); border-radius: 999px; cursor: pointer; }
.meet-ping:hover, .meet-ping:focus-visible { filter: brightness(1.1); outline: none; }
.meet-ping[hidden] { display: none; }
.btn { font: 500 13px var(--sans); color: var(--ink-2); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.btn:hover { color: var(--ink-1); border-color: color-mix(in srgb, var(--mood) 50%, var(--line-2)); }
a.btn { text-decoration: none; display: inline-block; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
[hidden] { display: none !important; }
#ms-note { color: var(--gold); }

/* Switch app: the same menu every CRM and Opex carry. */
.switch { position: relative; }
.switch-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; font: 500 13px var(--sans); color: var(--ink-1); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; }
.switch-btn:hover, .switch-btn[aria-expanded="true"] { border-color: color-mix(in srgb, var(--mood) 50%, var(--line-2)); }
.switch-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.switch-btn img { display: block; border-radius: 3px; }
.switch-btn svg { color: var(--ink-4); }
@media (max-width: 480px) { .switch-btn span { display: none; } }
.switch-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 15.5rem; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7); padding: 6px 0; z-index: 20; }
.switch-h { padding: 6px 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.switch-cur, .switch-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13px; }
.switch-cur { background: color-mix(in srgb, var(--mood) 14%, var(--surface)); color: var(--ink-1); font-weight: 600; }
.switch-cur img { display: block; }
.switch-cur em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.switch-menu hr { border: 0; border-top: 1px solid var(--line-1); margin: 6px 0; }
.switch-menu a { color: var(--ink-2); text-decoration: none; }
.switch-menu a:hover, .switch-menu a:focus-visible { background: var(--card-2); color: var(--ink-1); outline: none; }
.switch-menu a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch-menu a svg { margin-left: auto; flex-shrink: 0; color: var(--ink-4); }
/* Each app's own logo (Osian, 2026-10-23: "need the logos here"), from its own repo, in public/apps/: the Portal's, Omniverse's and
   TOB's home-screen icons, Karimix's round emblem on Karimix CRM's brown, Opex's sidebar mark. */
.switch-menu .sw-logo { display: block; width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }

/* The nav bar (nav.js), in the top bar of both pages: Dashboard and Tickets, a hairline, then the dashboard's sections.
   On a wide screen it sits right after the name and date, past a hairline; below 1680px (where the name, all eleven links and the right-hand buttons stop fitting on one line, measured 2026-11-13 with Scooby Doo: about 1570px; it was 1500px with nine, 1440px with eight, until Tasks came on 2026-10-28) it takes its own row under it.
   Every link is always in view: when they do not fit across, they wrap onto another row, never a strip to scroll (Osian, 2026-10-27: "i dont want to scroll to
   find a header"). The current link is lit in the time-of-day colour. */
.topbar-in.has-nav .brand { margin-right: 0; }
.topbar-in.has-nav .brand::after { content: ""; align-self: center; width: 1px; height: 28px; margin-left: 6px; background: var(--line-2); } /* a hairline between the name and the nav */
.nav { position: relative; flex: 1 1 0; min-width: 0; max-width: max-content; margin: -4px auto -4px 4px; padding: 4px 3px; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-li { display: flex; align-items: center; }
.nav-gap::before { content: ""; width: 1px; height: 18px; margin-inline: 8px; background: var(--line-2); }
.nav-a { display: block; padding: 6px 13px; border-radius: 999px; font: 500 13.5px/1.25 var(--sans); color: var(--ink-3); text-decoration: none; white-space: nowrap; transition: color 0.15s, background-color 0.15s; }
.nav-a:hover { color: var(--ink-1); background: var(--card-2); }
.nav-a[aria-current="page"] { color: var(--ink-1); }
.nav-a.on { color: #fff; background: color-mix(in srgb, var(--mood) 24%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mood) 60%, transparent); }
.nav-a:focus-visible { outline: none; box-shadow: var(--ring); }
.nav-a.on:focus-visible { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mood) 60%, transparent), var(--ring); }
@media (pointer: coarse) { .nav-a { padding: 9px 14px; } }
@media (max-width: 1679px) { .topbar-in.has-nav .brand { margin-right: auto; } .topbar-in.has-nav .brand::after { display: none; } .nav { order: 10; flex: 1 0 100%; max-width: 100%; margin: -2px -3px -4px; } }

/* What is playing (now-playing.js), just before the name pill on every page, only while this PC's helper or the owner's Spotify says
   something is playing or paused (Osian, 2026-10-28: "a section on the top bar showing what audio is playing right now like spotify etc").
   Made to look like Spotify's own mini player (same day: "needs to look cooler with the now playing stuff that spotify does"): a rounded
   tile tinted with the album art's own colour (--np-tint, worked out in the page; a dark grey until the art is in), the art on the
   left, Spotify-green bars beside the title while Spotify plays (the time-of-day colour for anything else), the title over
   "artist · app" (a title too long for it scrolls across and back), the times in place of that line on hover, a white play/pause
   disc between previous and next, and a thin progress line along the bottom that glides with the song. Paused, the bars go and the
   words dim. Below 600px only the art and the buttons. */
.np { --np-tint: 46 46 54; position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 23rem; height: 36px; padding: 0 5px 0 4px; overflow: hidden; border-radius: 8px; background-color: rgb(var(--np-tint)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 6px 18px -8px rgb(var(--np-tint) / 0.9); transition: background-color 0.8s ease, box-shadow 0.8s ease; }
.np::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 0) 25%, rgb(0 0 0 / 0.38)); pointer-events: none; } /* deeper to the right, under the buttons */
.np > * { position: relative; }
.np[hidden] { display: none; }
.np-art { flex: none; width: 28px; height: 28px; border-radius: 4px; overflow: hidden; background: rgb(255 255 255 / 0.1); box-shadow: 0 2px 8px rgb(0 0 0 / 0.5); }
.np-img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
.np-img.ready { opacity: 1; }
.np-txt { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.np-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.np-eq { display: none; align-items: flex-end; gap: 1.5px; flex: none; height: 10px; }
.np.on .np-eq { display: flex; }
.np-eq i { width: 2px; height: 9px; border-radius: 1px; background: var(--mood); }
.np.spotify .np-eq i { background: #1ed760; }
@media (prefers-reduced-motion: no-preference) {
  .np.on .np-eq i { animation: np-eq 0.9s ease-in-out infinite alternate; }
  .np.on .np-eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.4s; }
  .np.on .np-eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.2s; }
  .np.long .np-title-in { animation: np-scroll var(--np-dur, 12s) ease-in-out infinite alternate; text-overflow: clip; overflow: visible; }
}
@keyframes np-eq { from { height: 3px; } to { height: 10px; } }
@keyframes np-scroll { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(var(--np-shift, 0)); } }
.np-title { min-width: 0; overflow: hidden; }
.np-title-in { display: block; width: max-content; max-width: 100%; font: 600 12.5px var(--sans); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np.long .np-title-in { max-width: none; }
.np-sub, .np-time { font-size: 10.5px; color: rgb(255 255 255 / 0.68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-time { display: none; font-variant-numeric: tabular-nums; }
.np.timed:hover .np-sub { display: none; }
.np.timed:hover .np-time { display: block; }
.np:not(.on) .np-txt, .np:not(.on) .np-art { opacity: 0.7; }
.np-btns { display: flex; align-items: center; gap: 2px; flex: none; }
.np-btn { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgb(255 255 255 / 0.75); cursor: pointer; transition: color 0.15s, transform 0.15s; }
.np-btn svg { display: block; }
.np-btn:hover { color: #fff; transform: scale(1.08); }
.np-btn.np-toggle { width: 28px; height: 28px; color: #000; background: #fff; }
.np-btn.np-toggle:hover { transform: scale(1.08); }
.np-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.7); }
.np-bar { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; border-radius: 1px; background: rgb(255 255 255 / 0.2); overflow: hidden; display: none; }
.np.timed .np-bar { display: block; }
.np-fill { display: block; height: 100%; background: #fff; transform-origin: left center; transform: scaleX(var(--np-p, 0)); }
.np.on .np-fill { transition: transform 1s linear; }
@media (max-width: 600px) { .np-txt { display: none; } }

/* The date, in the logo's lime and a holographic face (Orbitron), small, under the name in every page's top bar (Osian, 2026-10-22:
   "just the date in a holographic font"; 2026-10-23: "have this smaller and in the top left", "make it clearer": solid letters with a
   soft glow, no flicker; then under the name so the bar is one tidy block: "need to oragnise the nav bar better"). */
.wrap > :first-child { margin-top: 22px; }
/* The Command Centre artwork (no sign: the name is in the top bar) fills the window behind the dashboard, large, centred across and sitting
   lower down, still while the page scrolls (Osian, 2026-10-23: "much bigger in the background and centred", then "make the background lower
   and smaller"). Wide enough to cover the window at any shape. */
body.dash::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url('/dashboard-scene.svg') center calc(50% + 10vh) / max(120vw, 160vh) auto no-repeat; opacity: 0.55; pointer-events: none; }
.brand .holo-date { font: 600 10px/1 'Orbitron', var(--sans); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; color: #c8ec5c;
  text-shadow: 0 0 6px rgba(185, 220, 63, 0.45); }

/* Cards: dark glass, lit along the top edge in the time-of-day colour. */
.tile, .panel { position: relative; background: linear-gradient(155deg, var(--card-a) 0%, var(--card-b) 62%); border: 1px solid rgba(255, 255, 255, 0.075); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -22px rgba(0, 0, 0, 0.9); min-width: 0; }
.tile::before, .panel::before { content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--mood) 85%, #ffffff), transparent); opacity: 0.6; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 18px; margin-top: 22px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* big tiles, three across (Osian's ask) */
@media (min-width: 600px) and (max-width: 899px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* two across, so Tasks done is not left alone beside the full-width Tickets tile */
.tile { padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 12.5rem; overflow: hidden; } /* shorter than before (17rem) so the dashboard scrolls less (Osian, 2026-10-22) */
.tile > * { position: relative; z-index: 1; }
.tile-h, .panel h2 { margin: 0; display: flex; align-items: center; gap: 10px; font: 600 13px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.tile-h .ic, .panel h2 .ic { font-size: 18px; color: var(--mood); }
.tile.dim .big { color: var(--ink-4); }

/* A tile whose number changes glows green, comes up fast and fades slowly. */
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 90% at 30% 70%, rgba(52, 185, 52, 0.34), rgba(12, 163, 12, 0.12)); opacity: 0; pointer-events: none; }
@keyframes tile-glow {
  0% { border-color: rgba(255, 255, 255, 0.075); }
  12% { border-color: #4fd06b; box-shadow: 0 0 0 1px #4fd06b, 0 0 36px rgba(52, 185, 52, 0.5); }
  100% { border-color: rgba(255, 255, 255, 0.075); }
}
@keyframes tile-wash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes num-glow { 0% { color: var(--ink-1); } 12% { color: #7dec93; text-shadow: 0 0 30px rgba(12, 163, 12, 0.6); } 100% { color: var(--ink-1); } }
.tile.flash { animation: tile-glow 3.2s ease-out; }
.tile.flash::after { animation: tile-wash 3.2s ease-out; }
.tile.flash .big { animation: num-glow 3.2s ease-out; }
@media (prefers-reduced-motion: reduce) { .tile.flash, .tile.flash::after, .tile.flash .big { animation-timing-function: steps(1, end); } }

.big { font-size: clamp(3rem, 5.2vw, 5rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-block: auto 4px; }
.big.txt { font-size: clamp(2.1rem, 3.2vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; }
.big.alert { color: var(--garnet); }
/* Tasks done: today's number and the week's side by side, a hairline between (Osian, 2026-11-11: "show the weekly total on the dashboard tile too"). */
.done-pair { display: flex; align-items: flex-end; margin-top: auto; min-width: 0; }
.done-pair .big { margin-block: 0 4px; }
.done-one { min-width: 0; }
.done-more { color: var(--ink-3); font-size: clamp(0.92rem, 1.05vw, 1.05rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* "Ed 212 · combined 405 this week" */
.done-more b { color: var(--ink-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.done-wk { margin-left: clamp(18px, 2.6vw, 36px); padding-left: clamp(18px, 2.6vw, 36px); border-left: 1px solid var(--line-2); }
.l1 { color: var(--ink-2); font-size: clamp(1.02rem, 1.3vw, 1.25rem); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l2 { color: var(--ink-3); font-size: clamp(0.88rem, 1vw, 1rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Full screen: use the whole screen and make the numbers bigger for a wall display. */
.in-full { background: var(--bg); overflow: auto; }
/* Full screen is this app in a frame that fills the screen (app.js), so the nav works without leaving full screen. */
.fs-frame { position: fixed; inset: 0; z-index: 2147483647; width: 100%; height: 100%; border: 0; background: var(--bg); }
.in-full .wrap { max-width: none; }
.in-full .tile { min-height: 21rem; }
.in-full .big { font-size: clamp(5rem, 8.5vw, 9.5rem); }
.in-full .big.txt { font-size: clamp(2.6rem, 4.2vw, 4.6rem); }
.in-full .l1 { font-size: clamp(1.2rem, 1.7vw, 1.8rem); }
.in-full .l2 { font-size: clamp(1rem, 1.3vw, 1.3rem); }

/* Tickets: one row per system, small light numbers. With the news tile gone there are five tiles, so on a wide page this
   one spans the last two of the three columns (Tasks done sits beside it) and its rows fill as many columns as fit (three
   across from about 1150px, so five systems read 3 + 2; two across below that); on a narrower page it takes the full width
   and the rows stack. The numbers are always plain white, whatever they are
   (Osian, 2026-10-21): the only colours here are the page's white and greys, and no alert or glow class is ever put on it. */
.tile-tickets { grid-column: 1 / -1; }
@media (min-width: 900px) { .tile-tickets { grid-column: span 2; } }
/* A tile opens its app: one link laid over the whole tile (Osian, 2026-10-23: "if i click a tile it needs to open emails or teams
   etc or opex or calander"). Email, Teams and Next meeting go to Outlook and Teams on the web, Tasks done to Opex through the portal,
   Tickets to the ticket console (shown to whoever may open it). The tile lights along its edge on hover. */
.tile > .tile-go { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.tile > .tile-go[hidden] { display: none; }
.tile > .tile-go:focus-visible { outline: none; box-shadow: var(--ring), inset 0 0 0 1px var(--mood); }
.tile:has(> .tile-go:not([hidden])) { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.tile:has(> .tile-go:not([hidden])):hover { border-color: color-mix(in srgb, var(--mood) 60%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px color-mix(in srgb, var(--mood) 35%, transparent); }
.tile-link { margin-left: 12px; font: 500 12.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.tile-link:hover { text-decoration: underline; }
.tile-link[hidden] { display: none; }
.tile-cap { margin-left: auto; font: 400 12.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-4); white-space: nowrap; }
.tix-body { margin-block: auto; } /* the rows sit in the middle of what the header leaves, like the big number on the other tiles */
.tix-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(13rem, calc((100% - 57px) / 3))), 1fr)); column-gap: 28px; } /* auto-fit, but never more than three across (the calc is a third of the width less two gaps and 1px of slack), so five systems never read 4 + 1 */
.tix-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 14px; padding: 12px 0; border-top: 1px solid var(--line-1); }
.tix-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tix-name { font-weight: 600; font-size: clamp(0.95rem, 1.15vw, 1.1rem); color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tix-sub { font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; } /* wraps rather than clipping, so "last known" is never cut off, in full screen too */
.tix-num { font-size: clamp(1.6rem, 2.3vw, 2.3rem); font-weight: 300; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink-1); }
.tix-row.off .tix-name { color: var(--ink-3); font-weight: 500; }
.tix-note { margin: 0; color: var(--ink-3); font-size: 14px; }
.in-full .tix-name { font-size: clamp(1.15rem, 1.5vw, 1.6rem); }
.in-full .tix-sub { font-size: clamp(0.95rem, 1.15vw, 1.25rem); }
.in-full .tix-num { font-size: clamp(2.2rem, 3.2vw, 3.4rem); }
.in-full .tile-cap { font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 18px; margin-top: 18px; }
.panel { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.panel.wide { grid-column: 1 / -1; }
.panel h2 span { margin-left: auto; font: 400 12.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-4); }
.note, .empty { color: var(--ink-3); font-size: 14px; margin: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-1); }
.row:first-child { border-top: 0; padding-top: 2px; }
.row .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t b { font-weight: 600; margin-right: 8px; }
.row .t span { color: var(--ink-2); }
.row .w { font-size: 13px; color: var(--ink-3); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.row .s { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.new { box-shadow: inset 2px 0 0 var(--mood); padding-left: 12px; }
.row.past { opacity: 0.45; }
.dayh { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 0 2px; }
.dayh:first-child { padding-top: 0; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--stone)) 16%, transparent); color: var(--c, var(--stone)); white-space: nowrap; }

/* Tech headlines: the list, and the banner across the top that scrolls through them. */
.row.headline .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.row.headline a { color: var(--ink-1); text-decoration: none; }
.row.headline a:hover, .row.headline a:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }
.src { display: inline-block; font-size: 11px; font-weight: 700; color: #0a0a0c; background: var(--src, var(--ink-2)); padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 10px; vertical-align: 1px; white-space: nowrap; }

/* The banner: a label on the left and headlines scrolling right to left. app.js repeats the headlines enough times to fill
   the width and sets --tk-shift (one pass, as a share of the track) and --tk-dur, so the loop has no seam. Hover or focus pauses it. */
.ticker { display: flex; align-items: stretch; height: var(--tk-h, 40px); overflow: hidden; background: rgba(12, 12, 16, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--mood) 45%, var(--line-1)); }
.in-full .ticker { --tk-h: 52px; }
.tk-label { flex: none; display: flex; align-items: center; padding-inline: max(16px, env(safe-area-inset-left, 0px)) 12px; font: 700 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mood); white-space: nowrap; }
.tk-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tk-track { display: flex; align-items: center; width: max-content; height: 100%; animation: tk-scroll var(--tk-dur, 90s) linear infinite; will-change: transform; }
@keyframes tk-scroll { to { transform: translateX(var(--tk-shift, -50%)); } }
.ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
.tk-item { flex: none; display: flex; align-items: center; margin-right: 56px; white-space: nowrap; font-size: clamp(0.92rem, 1.1vw, 1.1rem); }
.in-full .tk-item { font-size: clamp(1.1rem, 1.4vw, 1.4rem); }
.tk-item .src { margin-right: 10px; }
.tk-item a, .tk-item .tk-text { color: var(--ink-1); text-decoration: none; }
.tk-item a:hover, .tk-item a:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }

/* A fresh headline about a major outage: the whole banner flashes red (about once a second, well under the three flashes a second
   that can trigger seizures) and those headlines lead, marked OUTAGE. Reduced motion gets a solid red banner instead of a flash. */
.ticker.alert { border-bottom-color: #ff9a9a; animation: tk-flash 1.2s ease-in-out infinite; }
.ticker.alert .tk-label { color: #fff; }
.ticker.alert .tk-item a, .ticker.alert .tk-item .tk-text { color: #fff; }
.tk-item.outage a, .tk-item.outage .tk-text { font-weight: 700; }
.tk-item.outage::before { content: "Outage"; margin-right: 10px; padding: 2px 8px; border-radius: 6px; font: 800 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #b00f0f; background: #fff; }
@keyframes tk-flash { 0%, 100% { background: #4a0909; } 50% { background: #d11a1a; } }
/* An unseen outage stops the scroll and holds still on its headline(s), flashing, until Seen is pressed: the scrolling copies and
   the ordinary headlines drop out, and a long headline wraps instead of running off the edge. */
.ticker.alert { height: auto; min-height: var(--tk-h, 40px); }
.ticker.alert .tk-view { display: flex; align-items: center; padding-block: 6px; -webkit-mask-image: none; mask-image: none; }
.ticker.alert .tk-track { animation: none; transform: none; width: 100%; height: auto; flex-wrap: wrap; gap: 4px 0; }
.ticker.alert .tk-clone, .ticker.alert .tk-item:not(.unseen) { display: none; }
.ticker.alert .tk-item { white-space: normal; margin-right: 32px; }
.ticker.alert .tk-item a, .ticker.alert .tk-item .tk-text { min-width: 0; }
/* Seen: stops the flashing. Shown only while the banner is red. */
.tk-seen { flex: none; align-self: center; margin-inline: 8px max(16px, env(safe-area-inset-right, 0px)); padding: 4px 16px; font: 700 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, 0.4); border: 1.5px solid #fff; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tk-seen:hover, .tk-seen:focus-visible { background: #fff; color: #9c0d0d; outline: none; }
.in-full .tk-seen { padding: 7px 22px; font-size: 14px; }
.row.headline .pill { margin-right: 8px; }
@media (prefers-reduced-motion: reduce) {
  .tk-track { animation: none; }
  .tk-view { overflow-x: auto; scrollbar-width: thin; }
  .tk-clone { display: none; }
  .ticker.alert { animation: none; background: #b01919; }
}

/* The brief: the Briefing routine's report for today, every section as a card in the briefing's order (brief.js). Top priority and
   Where we're at take the whole width; the rest fill the row, one column on a phone (Osian, 2026-10-23: "we could use cool ui to show
   progress of projects also etc"). In the logo's scheme ("all the bars etc need to be in this holographic scheme we have going on"),
   then purpler, darker and matte ("more purple colours and darker tones please", "i like matt neon colours"): deep plum panels from the
   logo's own background, flat neon violet for the frame and the bars, the logo's lime for headings and numbers, amber when late, the
   logo's red for Suspicious. Flat colour: no glow, no gloss gradient, no sheen. */
.brief-panel { margin-top: 22px; --h-violet: #9b7bff; --h-lilac: #c3b2ff; --h-lime: #b9dc3f; --h-amber: #f5a524; --h-red: #e8263a;
  --h-plum: #3a1334; --h-deep: #1a0a1d; --h-ink: #12070f; --h-line: rgba(155, 123, 255, 0.24);
  background: linear-gradient(180deg, rgba(31, 12, 34, 0.94), rgba(14, 6, 15, 0.97)); border-color: rgba(155, 123, 255, 0.16); }
.panel .brief-h { margin: 0 0 10px; display: flex; align-items: baseline; gap: 10px; font: 600 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.brief-mhead { margin-bottom: 4px; }
.brief-mtitle { font: 600 16px/1.3 'Orbitron', var(--sans); letter-spacing: 0.06em; color: var(--h-lime); }
.brief-mnote { margin-top: 4px; font-size: 12px; color: var(--ink-4); }
.bx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 14px; margin-top: 14px; } /* dense: a small card fills a gap */
.bx-priority, .bx-projects { grid-column: 1 / -1; }
.bx-people { grid-column: span 2; }
@media (max-width: 1000px) { .bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bx-grid { grid-template-columns: minmax(0, 1fr); } .bx-people { grid-column: auto; }
  .bx-person { flex-wrap: wrap; } .bx-who { flex-basis: calc(100% - 46px); } .bx-person .bx-chip { margin-left: 46px; } }
/* A HUD panel: deep plum over a faint violet grid, a thin violet edge and flat corner brackets. */
.bx { position: relative; min-width: 0; padding: 14px 16px; border-radius: 4px; border: 1px solid var(--h-line);
  background: linear-gradient(rgba(155, 123, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(155, 123, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px, rgba(18, 7, 15, 0.92); }
.bx::before, .bx::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.bx::before { top: -1px; left: -1px; border-top: 2px solid var(--h-violet); border-left: 2px solid var(--h-violet); }
.bx::after { right: -1px; bottom: -1px; border-right: 2px solid var(--h-violet); border-bottom: 2px solid var(--h-violet); }
.panel .bx .brief-h { gap: 8px; align-items: center; font: 600 11px 'Orbitron', var(--sans); letter-spacing: 0.18em; color: var(--h-lime); }
.panel .bx .brief-h::before { content: ""; width: 6px; height: 6px; background: var(--h-violet); }
.bx-items { list-style: none; margin: 0; padding: 0; }
.bx-items > li { padding: 8px 0; color: var(--ink-2); line-height: 1.45; }
.bx-items > li + li { border-top: 1px dashed rgba(155, 123, 255, 0.18); }
.bx-more { font: 600 10px 'Orbitron', var(--sans); letter-spacing: 0.12em; color: rgba(195, 178, 255, 0.6); }
/* Top priority: a lighter plum banner with a flat violet bar. */
.bx-priority { border-color: rgba(155, 123, 255, 0.55); background: rgba(58, 19, 52, 0.55); }
.bx-items > .bx-pri { padding: 6px 0 6px 14px; font-size: 16px; font-weight: 600; color: var(--ink-1); box-shadow: inset 3px 0 0 var(--h-violet); }
.bx-items > .bx-pri + .bx-pri { border-top: 0; margin-top: 8px; }
/* Suspicious: the logo's red frame, amber words. */
.bx-warn { border-color: rgba(232, 38, 58, 0.45); }
.bx-warn::before, .bx-warn::after { border-color: var(--h-red); }
.panel .bx-warn .brief-h { color: var(--h-red); }
.panel .bx-warn .brief-h::before { background: var(--h-red); }
.bx-items > .bx-warn-line { color: var(--h-amber); }
/* Projects: a panel each, with a row of flat violet blocks, one per checklist step (amber when late). */
.bx-projects .bx-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.bx-items > li.bx-proj { padding: 12px 14px; border-radius: 3px; border: 1px solid var(--h-line); background: rgba(58, 19, 52, 0.35); }
.bx-proj.late { border-color: rgba(245, 165, 36, 0.45); background: rgba(245, 165, 36, 0.05); }
.bx-proj-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bx-rank { padding: 3px 7px; font: 700 11px 'Orbitron', var(--sans); color: var(--h-ink); background: var(--h-violet);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.bx-proj.late .bx-rank { background: var(--h-amber); }
.bx-proj-name { color: var(--ink-1); font-weight: 600; }
.bx-code { font: 10px 'Orbitron', var(--sans); letter-spacing: 0.08em; color: var(--h-lilac); opacity: 0.75; }
.bx-chip { padding: 2px 8px; border: 1px solid rgba(155, 123, 255, 0.55); border-radius: 2px; font: 600 9.5px 'Orbitron', var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--h-lilac); white-space: nowrap; }
.bx-late { border-color: var(--h-amber); color: var(--h-amber); }
.bx-seg { display: grid; gap: 5px; margin: 12px 3px 8px; }
.bx-seg > i { height: 12px; transform: skewX(-20deg); border: 1px solid rgba(155, 123, 255, 0.3); background: rgba(155, 123, 255, 0.06); }
.bx-seg > i.on { border-color: var(--h-violet); background: var(--h-violet); }
.bx-proj.late .bx-seg > i { border-color: rgba(245, 165, 36, 0.32); background: rgba(245, 165, 36, 0.06); }
.bx-proj.late .bx-seg > i.on { border-color: var(--h-amber); background: var(--h-amber); }
.bx-bar { height: 8px; margin: 12px 0 8px; border: 1px solid var(--h-line); background: rgba(155, 123, 255, 0.06); overflow: hidden; }
.bx-bar > span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--h-violet) 0 6px, transparent 6px 8px); transition: width 0.6s ease; }
.bx-bar-thin { height: 6px; margin: 6px 0 2px; }
.bx-proj-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.bx-steps { font: 600 10.5px 'Orbitron', var(--sans); letter-spacing: 0.06em; color: var(--h-lilac); white-space: nowrap; }
.bx-proj.late .bx-steps { color: var(--h-amber); }
/* Counts as big flat lime numbers in the date's face. The tickets ones stay plain white (Osian, 2026-10-21: "just white"). */
.bx-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0 6px; }
.bx-num { font: 600 2.1rem/1 'Orbitron', var(--sans); color: var(--h-lime); }
.bx-label { font-size: 13px; color: var(--ink-2); }
.bx-rest { flex-basis: 100%; font-size: 12.5px; color: var(--ink-3); }
.bx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.bx-stats .bx-big { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; border: 1px solid var(--h-line); background: rgba(58, 19, 52, 0.35); }
.bx-stats .bx-num { color: var(--ink-1); }
.bx-stats .bx-label { font: 600 9.5px 'Orbitron', var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.bx-tday { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* The within-SLA share: a ring of violet ticks, filled flat as far as the share goes. */
.bx-ring { display: flex; align-items: center; gap: 8px; }
.bx-ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.bx-ring-bg, .bx-ring-fg { fill: none; stroke-width: 3.4; }
.bx-ring-bg { stroke: rgba(155, 123, 255, 0.3); stroke-dasharray: 1.6 1.53; }
.bx-ring-fg { stroke: var(--h-violet); }
.bx-ring-t { display: flex; flex-direction: column; line-height: 1.2; }
.bx-ring-t b { font: 600 14px 'Orbitron', var(--sans); color: var(--h-lime); }
.bx-ring-t span { font-size: 11.5px; color: var(--ink-3); }
/* Done yesterday and Last week: where it happened, small and lilac, over what happened. */
.bx-path { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 600 9.5px 'Orbitron', var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--h-lilac); }
.bx-path i { font-style: normal; color: var(--h-violet); }
.bx-line-t { color: var(--ink-2); }
/* People waiting on a reply, with their initials in a flat violet ring; meetings on a timeline. */
.bx-person { display: flex; align-items: center; gap: 12px; }
.bx-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--h-violet);
  font: 700 11px 'Orbitron', var(--sans); color: var(--h-lime); background: var(--h-ink); }
.bx-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bx-who b { font-weight: 600; color: var(--ink-1); }
.bx-who span { font-size: 13.5px; color: var(--ink-2); }
.bx-meet { display: flex; gap: 12px; }
.bx-time { min-width: 3.6em; font: 600 12px 'Orbitron', var(--sans); color: var(--h-lime); }
/* Show message: a person waiting on a reply opens their message in the Ask box (brief.js, brief-ask.js). */
.bx-ask { flex: none; padding: 4px 10px; border: 1px solid var(--h-violet); border-radius: 2px; background: transparent; color: var(--h-lilac); cursor: pointer;
  font: 600 9.5px 'Orbitron', var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.bx-ask:hover, .bx-ask:focus-visible { background: var(--h-violet); color: var(--h-ink); outline: none; }
@media (max-width: 640px) { .bx-person .bx-ask { margin-left: 46px; } }
/* Answered since the brief was written (lib/brief-crossoff.js): struck through and dimmed, with a lime tick and the time. The line stays. */
.bx-answered .bx-who b, .bx-answered .bx-who span { text-decoration: line-through; text-decoration-color: var(--h-violet); color: var(--ink-3); }
.bx-answered .bx-avatar { opacity: 0.5; }
.bx-tick { flex: none; font: 600 10px 'Orbitron', var(--sans); letter-spacing: 0.06em; color: var(--h-lime); }
/* Edit brief (Osian, 2026-10-27: "needs to be able to edit my brief also"): a toggle by the title; in edit mode each line has Edit and
   Remove, each card Add a line, and a line being reworded is a box with Save. Same flat violet as the rest of the brief. */
.brief-mbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brief-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.brief-err { margin-top: 6px; font-size: 13px; color: var(--h-amber); }
.brief-notice { margin-top: 6px; font-size: 13px; color: var(--h-lilac); }
.bx-tool { padding: 4px 10px; border: 1px solid var(--h-line); border-radius: 2px; background: transparent; color: var(--h-lilac); cursor: pointer; font: 600 9.5px 'Orbitron', var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.bx-tool:hover, .bx-tool:focus-visible { border-color: var(--h-violet); background: rgba(155, 123, 255, 0.16); outline: none; }
.bx-tool-on { border-color: var(--h-violet); background: var(--h-violet); color: var(--h-ink); }
.bx-tool-warn { border-color: var(--h-amber); color: var(--h-amber); }
.bx-tool:disabled { opacity: 0.55; cursor: progress; }
.bx-tools { display: flex; gap: 6px; flex-basis: 100%; margin-top: 6px; }
.bx-person .bx-tools { margin-left: 46px; }
.bx-person, .bx-meet { flex-wrap: wrap; }
.bx-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bx-editing { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bx-edit-input { flex: 1 1 14rem; min-width: 0; padding: 7px 10px; border: 1px solid var(--h-violet); border-radius: 3px; background: rgba(18, 7, 15, 0.92); color: var(--ink-1); font: 400 14px var(--sans); }
.bx-edit-input:focus { outline: none; box-shadow: 0 0 0 1px var(--h-violet); }
/* Ask your brief: above the brief, in the same plum and flat violet. My words on the right, the answer on the left. */
.ask-panel { margin-top: 22px; }
.ask-panel #ask-box { display: flex; flex-direction: column; gap: 12px; }
.ask-log { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.ask-msg { max-width: min(100%, 80ch); padding: 10px 14px; border: 1px solid var(--h-line); border-radius: 3px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-1); }
.ask-me { align-self: flex-end; border-color: var(--h-violet); background: rgba(155, 123, 255, 0.12); }
.ask-ai { align-self: flex-start; background: rgba(58, 19, 52, 0.45); }
.ask-changes { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--h-line); display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--h-lilac); }
.ask-nochange { color: var(--h-amber); }
.ask-wait { align-self: flex-start; border-style: dashed; color: var(--ink-3); }
.ask-err { align-self: flex-start; border-color: rgba(245, 165, 36, 0.55); color: var(--h-amber); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chip { padding: 5px 11px; border: 1px solid var(--h-line); border-radius: 2px; background: rgba(155, 123, 255, 0.06); color: var(--h-lilac); cursor: pointer; font: 500 12.5px var(--sans); }
.ask-chip:hover, .ask-chip:focus-visible { border-color: var(--h-violet); background: rgba(155, 123, 255, 0.16); outline: none; }
.ask-form { display: flex; gap: 8px; flex-wrap: wrap; }
.ask-input { flex: 1 1 18rem; min-width: 0; padding: 10px 12px; border: 1px solid var(--h-line); border-radius: 3px; background: rgba(18, 7, 15, 0.92); color: var(--ink-1); font: 400 14px var(--sans); }
.ask-input:focus { border-color: var(--h-violet); outline: none; }
.ask-input::placeholder { color: var(--ink-4); }
.ask-go, .ask-clear { padding: 9px 16px; border: 1px solid var(--h-violet); border-radius: 3px; cursor: pointer; font: 600 11px 'Orbitron', var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.ask-go { background: var(--h-violet); color: var(--h-ink); }
.ask-clear { background: transparent; color: var(--h-lilac); }
.ask-go:disabled { opacity: 0.55; cursor: progress; }
.ask-note { margin: 0; font-size: 12px; color: var(--ink-4); }

/* Systems: the holograms. Near-black inside, like the picture they come from. */
.holo-panel { margin-top: 22px; padding-bottom: 10px; }
.releases-panel { margin-top: 22px; } /* Tasks done per day: its own full-width panel at the top of the Releases page */
.news-panel { margin-top: 22px; } /* the tech headlines, their own page since 2026-10-23 */
.holo { position: relative; min-height: 300px; margin-inline: -8px; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 100% at 50% 40%, rgba(10, 22, 16, 0.55), rgba(0, 0, 0, 0.35)); }
.holo canvas { display: block; width: 100%; height: 300px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Systems: every system that is down, in full, under the holograms (public/systems.js; Osian, 2026-10-26: "a lot more detail about
   the system that has gone down"). Red along the left edge and the dot flashing with the holograms; calm everywhere else so the facts read. */
.incidents { margin-top: 22px; border-color: color-mix(in srgb, var(--garnet) 40%, transparent); }
.incidents h2 .ic { color: var(--garnet); }
.inc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.inc { padding: 16px 20px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--garnet) 30%, transparent); box-shadow: inset 3px 0 0 var(--garnet);
  background: linear-gradient(160deg, color-mix(in srgb, var(--garnet) 11%, transparent), color-mix(in srgb, var(--garnet) 3%, transparent) 60%), rgba(0, 0, 0, 0.18); }
.inc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.inc .inc-name { margin: 0; font: 600 20px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-1); }
.inc-biz { color: var(--ink-3); font-size: 13px; }
.inc-for { margin-left: auto; font: 600 13px var(--sans); color: var(--garnet); font-variant-numeric: tabular-nums; }
.inc-about { margin: 6px 0 0; max-width: 72ch; color: var(--ink-3); font-size: 13.5px; }
.inc-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px 32px; margin-top: 14px; }
@media (max-width: 900px) { .inc-body { grid-template-columns: minmax(0, 1fr); } }
.inc-cause { margin: 0; font: 600 16px/1.4 var(--sans); color: var(--ink-1); }
.inc-why { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.inc-note { margin: 6px 0 0; color: var(--ink-4); font-size: 12.5px; }
.inc-facts { margin: 14px 0 0; display: flex; flex-direction: column; }
.inc-f { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 2px 14px; padding: 7px 0; border-top: 1px solid var(--line-1); font-size: 13.5px; }
.inc-f dt { color: var(--ink-4); }
.inc-f dd { margin: 0; color: var(--ink-1); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.inc-f.warn dd { color: var(--gold); }
@media (max-width: 520px) { .inc-f { grid-template-columns: minmax(0, 1fr); } }
.inc-sub { margin: 0 0 8px; font: 600 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.inc-side .inc-sub:not(:first-child) { margin-top: 20px; }
.inc-strip { display: flex; gap: 4px; height: 30px; }
.inc-c { flex: 1 1 0; max-width: 24px; border-radius: 4px; background: var(--emerald); opacity: 0.8; }
.inc-c.bad { background: var(--garnet); opacity: 1; }
.inc-steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 9px; color: var(--ink-2); font-size: 14px; }
.inc-steps li::marker { color: var(--ink-4); }

/* Systems: how the server itself is doing (public/vitals.js; Osian, 2026-10-28: "a bar showing the server storage and performance").
   One card each for CPU, memory, swap and every disk with a bar that goes amber then red past its limit (vitals-model.js LIMITS), then
   plain cards for the network, uptime and this app. The state shows in words as well as colour (High / Critical). */
.vitals { margin-top: 22px; }
.vitals.vitals-warn { border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.vitals.vitals-bad { border-color: color-mix(in srgb, var(--garnet) 45%, transparent); }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 12px; }
.vt { --vt: var(--emerald); display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px 14px; border-radius: 16px; border: 1px solid var(--line-1); background: rgba(0, 0, 0, 0.18); }
.vt-warn { --vt: var(--gold); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.vt-bad { --vt: var(--garnet); border-color: color-mix(in srgb, var(--garnet) 45%, transparent); box-shadow: inset 3px 0 0 var(--garnet); }
.vt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vt-label { font: 600 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-flag { flex: none; font: 600 11px var(--sans); padding: 1px 8px; border-radius: 999px; color: var(--vt); background: color-mix(in srgb, var(--vt) 16%, transparent); }
.vt-val { font: 300 2rem/1.1 var(--sans); color: var(--ink-1); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.vt-warn .vt-val { color: var(--gold); } .vt-bad .vt-val { color: var(--garnet); }
.vt-plain .vt-val { font-size: 1.3rem; font-weight: 400; }
.vt-bar { height: 8px; border-radius: 999px; background: var(--line-1); overflow: hidden; }
.vt-fill { display: block; height: 100%; width: var(--w, 0%); min-width: 3px; border-radius: 999px; background: var(--vt); opacity: 0.85; }
.vt-bad .vt-fill { opacity: 1; }
.vt-sub { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.vt-spark { display: flex; align-items: flex-end; gap: 1px; height: 24px; margin-top: 2px; }
.vt-spark i { flex: 1 1 0; height: var(--h, 4%); min-height: 2px; border-radius: 1px; background: color-mix(in srgb, var(--vt) 55%, transparent); }
.vt-note { margin: 0; color: var(--ink-4); font-size: 13.5px; }
.vt-extra { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.vt-extra:empty { display: none; }
.vt-topline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; font-size: 12.5px; color: var(--ink-3); }
.vt-k { font: 600 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.vt-t b { font-weight: 600; color: var(--ink-1); }
.vt-chip { font: 600 12px var(--sans); padding: 3px 11px; border-radius: 999px; }
.vt-chip.warn { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }

/* What fills each disk, under the cards (vitals.js draws storage-model.js; Osian, 2026-10-29: "add to this a breakdown of what we are
   storing etc"). A bar per disk, a part per group in its own colour (`--c`, set by the script) and as wide as its share (`--n`, MB), 2px
   apart; space no file accounts for is hatched and free space is the empty track. Under it every group is a row with its swatch, which
   doubles as the key, opening to what is inside. Text stays in the ink colours; only the swatches and bars carry a group's colour. */
.st { display: flex; flex-direction: column; gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-1); }
.st:empty { display: none; }
.st-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.st-meta { font-size: 12.5px; color: var(--ink-4); }
.st-disk { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-dh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13.5px; color: var(--ink-3); }
.st-dh b { font-size: 15px; font-weight: 600; color: var(--ink-1); }
.st-bar { display: flex; gap: 2px; height: 14px; }
.st-part { flex: var(--n, 1) 1 0; min-width: 3px; background: var(--c); }
.st-part:first-child { border-radius: 4px 0 0 4px; }
.st-part:last-child { border-radius: 0 4px 4px 0; }
.st-part:only-child { border-radius: 4px; }
.st-unseen.st-part, .st-unseen .st-sw { background: repeating-linear-gradient(135deg, var(--ink-4) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px var(--ink-5); }
.st-free.st-part { background: var(--line-1); }
.st-free .st-sw { background: var(--line-2); }
.st-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 2px 22px; align-items: start; }
.st-row { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 5px 6px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.st-g summary { cursor: pointer; list-style: none; }
.st-g summary::-webkit-details-marker { display: none; }
.st-g summary::after { content: ""; flex: none; width: 6px; height: 6px; margin-left: 2px; border: solid var(--ink-4); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform 0.15s; }
.st-g[open] summary::after { transform: rotate(45deg); }
.st-g summary:hover { background: var(--card-2); color: var(--ink-1); }
.st-g summary:focus-visible { outline: none; box-shadow: var(--ring); }
.st-flat .st-row { padding-right: 18px; }
.st-sw { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.st-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-size { flex: none; font-weight: 600; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.st-share { flex: none; width: 2.6em; text-align: right; font-size: 12.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.st-note { margin: 2px 6px 6px 25px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.st-items { list-style: none; margin: 2px 0 10px 25px; padding: 0 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.st-items li { display: grid; grid-template-columns: minmax(0, 1fr) 56px 5.2em; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.st-iname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ib { height: 4px; border-radius: 2px; background: linear-gradient(to right, color-mix(in srgb, var(--c) 80%, transparent) var(--w, 0%), var(--line-1) var(--w, 0%)); }
.st-unseen .st-ib { background: linear-gradient(to right, var(--ink-4) var(--w, 0%), var(--line-1) var(--w, 0%)); }
.st-items b { font-weight: 600; text-align: right; color: var(--ink-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-items li.st-more { display: block; color: var(--ink-4); }
@media (max-width: 480px) { .st-items li { grid-template-columns: minmax(0, 1fr) auto; } .st-ib { display: none; } } /* a phone: the name gets the room */
/* Trimming (Osian, 2026-10-29: "allow us to trim the storage from that area"): a button per trim inside its group, the server's preview in
   a box under it with a button per choice, and one line under the heading while a trim runs and after it ends. */
.st-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 6px 10px 25px; }
.st-trim, .st-btn { font: 600 12.5px var(--sans); padding: 5px 12px; border-radius: 999px; cursor: pointer; color: var(--ink-1); background: var(--card-2); border: 1px solid var(--line-2); }
.st-trim:hover:not(:disabled), .st-btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.st-trim:focus-visible, .st-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.st-trim:disabled, .st-btn:disabled { cursor: default; opacity: 0.45; }
.st-btn.primary { color: #1a1206; background: var(--gold); border-color: var(--gold); }
.st-confirm { display: flex; flex-direction: column; gap: 6px; margin: 0 6px 12px 25px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); background: rgba(0, 0, 0, 0.25); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.st-confirm p { margin: 0; }
.st-ctitle { color: var(--ink-1); font-size: 13.5px; }
.st-cbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.st-warn { font-size: 12px; color: var(--ink-4); }
.st-err { color: var(--garnet); }
.st-job { margin: 0; font-size: 13px; color: var(--ink-2); }
.st-job:empty { display: none; }
.st-job.running { color: var(--gold); }
.st-job.failed { color: var(--garnet); }

.chart { position: relative; min-height: 250px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { fill: var(--ink-3); font: 12px var(--sans); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }
/* Tasks done per day: work days (Mon to Fri) have a soft band behind the bar and a grey mark under it, the key's last item;
   weekends' dates are dimmed, today's is bright, and the month is named where it starts. The mark is grey, not --mood: by day
   --mood is blue, and under a day with no tasks it read as a sliver of a Brusco bar. */
.chart .wd-band { fill: rgba(255, 255, 255, 0.055); }
.chart .wd-mark { fill: var(--ink-3); }
.chart text.we { opacity: 0.45; }
.chart text.today { fill: var(--ink-1); font-weight: 600; }
.chart text.mon { fill: var(--ink-2); font-weight: 600; }
.chart .wk { stroke: var(--ink-4); stroke-width: 1; } /* under each week: Mon to Sun */
.chart text.wk-total { fill: var(--ink-2); font-weight: 600; }
.chart text.wk-total.now { fill: var(--ink-1); }
.legend .wd-key { margin-left: auto; }
.legend .wd-key i { width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; background: var(--ink-3); }
.tip { position: absolute; z-index: 3; pointer-events: none; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 11px; font-size: 13px; white-space: nowrap; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55); }

/* The PIN page */
/* The login page: the Olidor Command Centre artwork fills the whole page, and the only thing on it is six asterisks (Osian, 2026-10-21: "make this the background to the whole log in page with the pin on top of it", then "literally just needs ****** on the screen and i type my pin into it and press enter"). The scene has no background of its own, so the page's own plum gradient runs out to every edge. */
.pin-wrap { min-height: 100vh; display: grid; place-items: start center; padding-block: max(16px, 15.5vh) 24px;
  background: url('/pin-scene.svg') 50% 46% / contain no-repeat, radial-gradient(ellipse at 50% 52%, #3a1334 0%, #1a0a1d 72%); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (max-aspect-ratio: 1/1) { .pin-wrap { place-items: end center; padding-block: 24px max(28px, 12vh); } } /* portrait: the artwork is small and centred, so the asterisks sit below it, not above the sign */
.pin-form { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pin-real { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; background: transparent; color: transparent; font-size: 16px; cursor: text; } /* the real field: invisible, covering the asterisks, so a click or tap on them focuses it (16px stops phones zooming in) */
.pin-stars { display: flex; gap: clamp(0.5rem, 2.2vw, 1.2rem); font: 700 min(clamp(2.8rem, 6.5vw, 4.6rem), 9vh)/1 var(--mono); user-select: none; pointer-events: none; }
.star { display: block; padding-top: 0.32em; color: #000; -webkit-text-stroke: 1.6px rgba(240, 226, 210, 0.5); text-shadow: 0 0 12px rgba(240, 226, 210, 0.22); transition: -webkit-text-stroke-color 0.12s, text-shadow 0.12s; } /* black (Osian, 2026-10-21: "make the asterisks black"); on this dark page a thin pale outline keeps each one visible, and an asterisk sits high in its line, so it is pushed down to look centred */
.star.on { -webkit-text-stroke-color: #fbb03b; text-shadow: 0 0 16px rgba(251, 176, 59, 0.8), 0 0 3px rgba(251, 176, 59, 0.9); } /* a typed digit: the outline lights amber, like the lettering on the sign */
/* The next empty asterisk pulses amber, like a cursor waiting for the next digit (Osian, 2026-10-23: "this needs a bit of movement
   please"); still for reduced motion. */
@keyframes pin-cursor { 0%, 100% { -webkit-text-stroke-color: rgba(240, 226, 210, 0.5); } 50% { -webkit-text-stroke-color: rgba(251, 176, 59, 0.9); } }
.star:first-child:not(.on), .star.on + .star:not(.on) { animation: pin-cursor 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .star { animation: none !important; } }
.pin-msg { min-height: 1.5em; margin: 0; color: var(--gold); font-size: 16px; text-align: center; text-shadow: 0 1px 8px #000, 0 0 3px #000; }
/* Above the asterisks, in the clear strip under the sign, so it never crosses the picture (Osian, 2026-10-23: "i dont like that text
   crossing the back picture"); floated, so the asterisks stay put whether there is a message or not. On a portrait screen the asterisks
   sit under the picture with clear space below, so there it stays under them, in the flow (the touch Enter button follows it). */
@media (min-aspect-ratio: 1/1) { .pin-msg { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); min-height: 0; margin-bottom: 10px; white-space: nowrap; } }
/* The "private" page (public/private.html), for anyone signed in to the portal who is not an owner: where the asterisks would be. */
.private-note { margin: 0; text-align: center; color: var(--ink-2); font-size: 16px; text-shadow: 0 1px 8px #000, 0 0 3px #000; }
.private-note p { margin: 0 0 6px; }
.private-head { font-size: 20px; font-weight: 600; color: var(--gold); }
.private-note a { color: var(--ink); }
.pin-go { display: none; } /* Enter does it on a keyboard; a phone's number pad has no Enter key, so there a small button shows */
@media (pointer: coarse) { .pin-go { display: inline-block; margin-top: 6px; padding: 9px 26px; font: 600 14px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: rgba(15, 12, 19, 0.6); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; } .pin-go:disabled { opacity: 0.5; } }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; padding: 11px 14px; font-size: 15px; font-weight: 600; border-radius: 14px; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* 4A tablets: the section under the panels. A summary row, a map with trails, and a table of every tablet. */
.tablets { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.sec-head h2 { margin: 0; margin-right: auto; font: 600 13px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.sec-meta { font: 400 12.5px var(--sans); color: var(--ink-4); }
#tab-body { display: flex; flex-direction: column; gap: 12px; }
.panel h3 { margin: 0; margin-right: auto; font: 600 13px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.panel a { color: var(--accent-ink); }
.tab-msg { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tab-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.tab-sum-main { display: flex; align-items: baseline; gap: 10px; }
.tab-big { font-size: 2.6rem; font-weight: 300; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tab-big.alert { color: var(--garnet); }
.tab-sum-l { color: var(--ink-2); font-size: 1.1rem; }
.tab-pills { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.tab-pills .pill { font-size: 12.5px; padding: 3px 11px; }
.tab-sum-names { flex-basis: 100%; margin: 0; color: var(--ink-3); font-size: 13.5px; }
.tab-sum .note { flex-basis: 100%; }

.tab-maphead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.tab-mapnote { flex-basis: 100%; min-height: 1.3em; font-size: 12.5px; color: var(--ink-4); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.seg-btn { font: 500 13px var(--sans); padding: 5px 14px; color: var(--ink-3); background: var(--surface-2); border: 0; border-left: 1px solid var(--line-2); cursor: pointer; }
.seg-btn:first-child { border-left: 0; }
.seg-btn:hover { color: var(--ink-1); }
.seg-btn[aria-pressed="true"] { color: var(--ink-1); background: color-mix(in srgb, var(--mood) 28%, var(--surface-2)); }
.seg-btn:focus-visible { outline: none; box-shadow: inset var(--ring); }
.tab-map { height: 26rem; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; isolation: isolate; } /* keeps Leaflet's high z-index panes and controls under the sticky header */
.in-full .tab-map { height: 46vh; }
@media (max-width: 640px) { .tab-map { height: 20rem; } }

/* The table: wide, so it scrolls sideways inside its panel with the tablet name held in place. */
.tab-scroll { overflow-x: auto; }
.tab-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12.5px; white-space: nowrap; }
.tab-table td.wrap { white-space: normal; min-width: 5.5rem; max-width: 10rem; }
.tab-table th, .tab-table td { padding: 8px 10px 8px 0; text-align: left; vertical-align: middle; border-top: 1px solid var(--line-1); }
.tab-table thead th { border-top: 0; padding-top: 0; font: 600 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.tab-table th.tab-name { position: sticky; left: 0; z-index: 1; background: var(--surface); padding-right: 18px; font-weight: 500; }
.tab-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.tab-row.has-pos { cursor: pointer; }
.tab-row.has-pos:hover td, .tab-row.has-pos:hover th { background: var(--surface-2); }
.tab-row.sel td, .tab-row.sel th { background: color-mix(in srgb, var(--mood) 14%, var(--surface)); }
.tab-row.sel th.tab-name { box-shadow: inset 2px 0 0 var(--mood); }
.tab-link { font: inherit; font-weight: 500; color: var(--ink-1); background: none; border: 0; padding: 0; cursor: inherit; text-align: left; }
.tab-link:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.tab-sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; background: var(--c, var(--stone)); }
.tab-st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 8px; background: var(--emerald); }
.tab-st.off { background: var(--garnet); }
.tab-bad { color: var(--garnet); }
.tab-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.tab-sub { font-size: 11.5px; color: var(--ink-4); }
.mono { font-family: var(--mono); font-size: 12px; }
.tab-wifi { display: inline-flex; align-items: center; gap: 8px; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { display: block; width: 3px; background: var(--ink-5); border-radius: 1px; }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 9px; } .bars i:nth-child(4) { height: 12px; }
.bars i.on { background: var(--emerald); }

/* Leaflet, on the Osh dark: OpenStreetMap's light tiles are inverted and muted, and its controls and popups take the page's colours. */
.tab-map.leaflet-container { background: var(--bg); font: inherit; }
.tab-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.82) contrast(0.9) saturate(0.55); }
.tab-map .leaflet-bar { border: 1px solid var(--line-2); box-shadow: none; }
.tab-map .leaflet-bar a, .tab-map .leaflet-bar a:hover { background: var(--surface-2); color: var(--ink-2); border-bottom-color: var(--line-2); }
.tab-map .leaflet-bar a:hover { color: var(--ink-1); background: var(--surface-3); }
.tab-map .leaflet-control-attribution { background: rgba(15, 14, 19, 0.75); color: var(--ink-4); font-size: 10.5px; }
.tab-map .leaflet-control-attribution a { color: var(--ink-3); }
.tab-map .leaflet-popup-content-wrapper, .tab-map .leaflet-popup-tip { background: var(--surface-3); color: var(--ink-1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.tab-map .leaflet-popup-content { margin: 10px 14px; font: 12.5px/1.45 var(--sans); }
.tab-map .leaflet-container a.leaflet-popup-close-button { color: var(--ink-3); }
.tab-pop b { display: block; margin-bottom: 4px; font-weight: 600; }
.tab-pop-r { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-3); }
.tab-pop-r span:last-child { color: var(--ink-1); font-family: var(--mono); font-size: 12px; }
.tab-pin-wrap { background: transparent; border: 0; }
.tab-pin { width: 18px; height: 18px; margin: 4px; border-radius: 50%; background: var(--c, var(--amethyst)); border: 2px solid #f3eefb; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.55); }
.tab-pin.off { opacity: 0.55; border-style: dashed; border-color: var(--ink-3); }
.tab-pin.sel { box-shadow: 0 0 0 3px rgba(178, 170, 203, 0.65), 0 2px 8px rgba(0, 0, 0, 0.6); }

/* The tablet cards (Osian, 2026-10-23: "the tablets should auto show at the top of this with a preview of their home screen
   on it"): one HUD card per tablet in the Brief's matte neon (deep plum, flat violet corner brackets, Orbitron chips, no
   glow), each holding the tablet itself: a dark bezel round a drawn picture of its screen (.ts, tablet-cards.js). */
.tab-cards { --h-violet: #9b7bff; --h-lilac: #c3b2ff; --h-lime: #b9dc3f; --h-amber: #f5a524; --h-red: #e8263a; --h-line: rgba(155, 123, 255, 0.24);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tc { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 4px; border: 1px solid var(--h-line);
  background: linear-gradient(rgba(155, 123, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(155, 123, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px, rgba(18, 7, 15, 0.92); }
.tc::before, .tc::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.tc::before { top: -1px; left: -1px; border-top: 2px solid var(--tc-edge, var(--h-violet)); border-left: 2px solid var(--tc-edge, var(--h-violet)); }
.tc::after { right: -1px; bottom: -1px; border-right: 2px solid var(--tc-edge, var(--h-violet)); border-bottom: 2px solid var(--tc-edge, var(--h-violet)); }
.tc-pending { --tc-edge: var(--h-amber); border-color: rgba(245, 165, 36, 0.4); }
.tc-offline, .tc-gone { --tc-edge: var(--h-red); border-color: rgba(232, 38, 58, 0.4); }
.tc-retired { --tc-edge: var(--ink-4); border-color: var(--line-2); }
.tc.has-pos { cursor: pointer; }
.tc.has-pos:hover { border-color: rgba(155, 123, 255, 0.55); }
.tc.sel { border-color: var(--h-violet); background-color: rgba(58, 19, 52, 0.7); }
/* The tablet: a landscape bezel with its camera on the left edge. */
.tc-frame { position: relative; padding: 7px 9px; border-radius: 12px; background: #050407; box-shadow: inset 0 0 0 1px rgba(155, 123, 255, 0.28); }
.tc-frame::before { content: ""; position: absolute; left: 3px; top: calc(50% - 1.5px); width: 3px; height: 3px; border-radius: 50%; background: #2a2630; }
.tc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tc-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; margin-bottom: 2px; }
.tc-top .tab-sw { margin-right: 0; flex: none; }
.tc-name { min-width: 0; margin-right: auto; overflow-wrap: anywhere; font: 600 15px var(--sans); color: var(--ink-1); background: none; border: 0; padding: 0; text-align: left; cursor: inherit; }
.tc-name:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.tc-chip { flex: none; padding: 2px 8px; border: 1px solid currentColor; border-radius: 2px; font: 600 9.5px 'Orbitron', var(--sans); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.tc-chip-online { color: var(--h-lime); }
.tc-chip-offline, .tc-chip-gone { color: #ff6b78; }
.tc-chip-pending { color: var(--h-amber); }
.tc-chip-retired { color: var(--ink-3); }
.tc-what { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.tc-setup { margin: 0; color: var(--h-lilac); font-size: 13px; }
.tc-sub { margin: 0; color: var(--ink-4); font-size: 12px; overflow-wrap: anywhere; }
.tc-sub.mono { font-size: 11.5px; }
.tc-issues { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 0; }
.tc-issue { padding: 1px 7px; border: 1px solid rgba(245, 165, 36, 0.55); border-radius: 2px; color: var(--h-amber); font-size: 11.5px; }
.tc-act { align-self: flex-start; margin-top: 8px; padding: 4px 10px; border: 1px solid var(--h-amber); border-radius: 2px; color: var(--h-amber); text-decoration: none; font: 600 10px 'Orbitron', var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.tc-act:hover { background: rgba(245, 165, 36, 0.12); }
.tc-act:focus-visible { outline: none; box-shadow: var(--ring); }

/* The drawn screen. Laid out on a 1280 x 800 tablet in --u units (one tablet pixel), so it scales with the card. Colours
   and words are the 4A apps' own (Guardian's clock.css and fire.css), not the Command Centre's. */
.ts { position: relative; container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #1a1a2e; font-family: "Nunito", var(--sans); line-height: 1.25; -webkit-user-select: none; user-select: none; }
.ts-in { --u: calc(100cqw / 1280); position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.ts-in b { font-weight: 800; }
.ts-sp { flex: 1; }
.ts-bar { display: block; flex: none; height: calc(14 * var(--u)); border-radius: calc(7 * var(--u)); background: rgba(36, 38, 44, 0.12); }
.ts-logo { position: relative; flex: none; display: inline-flex; align-items: flex-end; height: calc(48 * var(--u)); padding-top: calc(14 * var(--u)); color: #fff; }
.ts-logo b { font-size: calc(15 * var(--u)); letter-spacing: 0.02em; white-space: nowrap; }
.ts-logo-halo { position: absolute; top: calc(2 * var(--u)); left: 48%; width: calc(18 * var(--u)); height: calc(9 * var(--u)); border: calc(3 * var(--u)) solid #7aafdd; border-radius: 50%; transform: translateX(-50%) rotate(-12deg); }
/* The app's own bar above the page while kiosk mode is off. */
.ts-kbar { flex: none; display: flex; align-items: center; gap: calc(8 * var(--u)); min-height: calc(48 * var(--u)); padding: 0 calc(8 * var(--u)) 0 calc(16 * var(--u)); background: #b45309; color: #fff; font: 500 calc(16 * var(--u)) Roboto, var(--sans); }
.ts-kbar-t { flex: 1; min-width: 0; padding: calc(8 * var(--u)) 0; }
.ts-kbar-b { padding: calc(8 * var(--u)) calc(14 * var(--u)); text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }
.ts-kbar-lock { font-weight: 800; }
/* 4A Clock In: always dark. */
.ts-clock .ts-in { color: #f2f3f8; background: linear-gradient(160deg, #1a1a2e 0%, #232442 100%); }
.ts-k-top { flex: none; display: flex; align-items: center; gap: calc(16 * var(--u)); padding: calc(16 * var(--u)) calc(32 * var(--u)); }
.ts-k-app { color: #fff; font-size: calc(22 * var(--u)); white-space: nowrap; }
.ts-k-net, .ts-f-net { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(16 * var(--u)); white-space: nowrap; }
.ts-k-net { color: rgba(242, 243, 248, 0.7); font-weight: 700; }
.ts-k-net::before, .ts-f-net::before { content: ""; width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%; background: #5bd07a; }
.ts-k-net.off { color: #ffd66b; }
.ts-k-net.off::before { background: #ff8d98; }
.ts-k-clock { display: flex; align-items: baseline; gap: calc(8 * var(--u)); white-space: nowrap; }
.ts-k-time { color: #fff; font-size: calc(30 * var(--u)); line-height: 1; font-variant-numeric: tabular-nums; }
.ts-k-date { color: rgba(242, 243, 248, 0.7); font-size: calc(16 * var(--u)); font-weight: 700; }
.ts-k-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(24 * var(--u)); padding: calc(24 * var(--u)) calc(32 * var(--u)); text-align: center; }
.ts-k-start { position: relative; flex: none; width: calc(336 * var(--u)); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(12 * var(--u));
  color: #fff; font-weight: 800; font-size: calc(28 * var(--u)); line-height: 1.2; background: linear-gradient(180deg, #6ea6dc 0%, #4a86c6 100%); box-shadow: 0 calc(16 * var(--u)) calc(40 * var(--u)) rgba(0, 0, 0, 0.35); }
.ts-k-start::after { content: ""; position: absolute; inset: calc(-14 * var(--u)); border-radius: 50%; border: calc(3 * var(--u)) solid rgba(122, 175, 221, 0.55); opacity: 0.6; } /* the pulse ring, still */
.ts-k-halo { position: absolute; top: calc(-34 * var(--u)); left: 50%; width: 46%; height: calc(30 * var(--u)); border: calc(7 * var(--u)) solid #7aafdd; border-radius: 50%; transform: translateX(-50%) rotate(-10deg); }
.ts-k-face { width: calc(64 * var(--u)); height: calc(64 * var(--u)); fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ts-k-newface { display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); min-height: calc(60 * var(--u)); min-width: calc(220 * var(--u)); padding: 0 calc(32 * var(--u)); border-radius: 999px;
  border: calc(2 * var(--u)) solid rgba(122, 175, 221, 0.75); background: rgba(122, 175, 221, 0.12); color: #fff; font-weight: 800; font-size: calc(21 * var(--u)); }
.ts-k-newface span { font-size: calc(28 * var(--u)); line-height: 1; font-weight: 700; }
.ts-k-foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: calc(24 * var(--u)); padding: calc(8 * var(--u)) calc(32 * var(--u)) calc(16 * var(--u)); color: rgba(242, 243, 248, 0.6); font-size: calc(16 * var(--u)); }
.ts-k-foot-l, .ts-k-foot-r { display: flex; align-items: center; gap: calc(16 * var(--u)); white-space: nowrap; }
.ts-k-foot-r { color: rgba(242, 243, 248, 0.75); font-weight: 700; }
.ts-k-alt { color: rgba(242, 243, 248, 0.45); font-size: calc(14 * var(--u)); font-weight: 700; }
.ts-k-title { color: #fff; font-size: calc(34 * var(--u)); }
.ts-k-sub { max-width: calc(560 * var(--u)); color: rgba(242, 243, 248, 0.75); font-size: calc(22 * var(--u)); font-weight: 600; }
.ts-k-form { display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u)); width: calc(520 * var(--u)); }
.ts-k-input { align-self: stretch; display: flex; align-items: center; height: calc(56 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: calc(12 * var(--u)); background: rgba(255, 255, 255, 0.1); color: rgba(242, 243, 248, 0.55); font-size: calc(19 * var(--u)); }
.ts-k-main { display: inline-flex; align-items: center; height: calc(56 * var(--u)); padding: 0 calc(32 * var(--u)); border-radius: 999px; background: #5f97cf; color: #fff; font-weight: 800; font-size: calc(18 * var(--u)); }
/* 4A Fire Roll Call: light, its header and big button in the area's colour (production navy, office charcoal). */
.ts-fire .ts-in { --area: #262350; color: #24262c; background: #f5f6f9; }
.ts-area-office .ts-in { --area: #3d3e40; }
.ts-f-top { flex: none; display: flex; align-items: center; gap: calc(16 * var(--u)); min-height: calc(64 * var(--u)); padding: calc(8 * var(--u)) calc(32 * var(--u)); background: var(--area); color: #fff; }
.ts-fire .ts-logo { height: calc(40 * var(--u)); padding-top: calc(12 * var(--u)); }
.ts-f-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ts-f-title b { color: #fff; font-size: calc(26 * var(--u)); line-height: 1.2; white-space: nowrap; }
.ts-f-title small { color: rgba(255, 255, 255, 0.78); font-size: calc(16 * var(--u)); font-weight: 700; white-space: nowrap; }
.ts-f-net { color: rgba(255, 255, 255, 0.9); font-weight: 800; }
.ts-f-net::before { background: #7ee29a; }
.ts-f-net.off { color: #ffd66b; }
.ts-f-net.off::before { background: #ffd66b; }
.ts-f-time { font-size: calc(26 * var(--u)); font-variant-numeric: tabular-nums; }
.ts-f-main { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: calc(16 * var(--u)); padding: calc(40 * var(--u)) calc(32 * var(--u)) 0; }
.ts-f-go { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(8 * var(--u)); width: calc(560 * var(--u)); min-height: calc(128 * var(--u)); border-radius: 999px;
  background: var(--area); color: #fff; box-shadow: 0 calc(12 * var(--u)) calc(32 * var(--u)) rgba(20, 22, 50, 0.22); }
.ts-f-go-main { display: inline-flex; align-items: center; gap: calc(12 * var(--u)); font-size: calc(44 * var(--u)); font-weight: 800; line-height: 1.1; }
.ts-f-flame { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ts-f-go .ts-bar { width: calc(250 * var(--u)); height: calc(16 * var(--u)); background: rgba(255, 255, 255, 0.35); }
.ts-f-main > .ts-bar { width: calc(300 * var(--u)); }
.ts-f-board { flex: none; width: 100%; display: flex; flex-direction: column; gap: calc(12 * var(--u)); margin-top: calc(16 * var(--u)); }
.ts-f-head { display: flex; align-items: center; justify-content: space-between; gap: calc(16 * var(--u)); }
.ts-f-head b { color: #1f1d3f; font-size: calc(23 * var(--u)); }
.ts-f-head .ts-bar, .ts-f-sect .ts-bar + .ts-bar { width: calc(90 * var(--u)); }
.ts-f-tools { display: flex; }
.ts-f-visitor { display: inline-flex; align-items: center; min-height: calc(52 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: calc(12 * var(--u)); box-shadow: inset 0 0 0 calc(2 * var(--u)) #e4e6ec; color: var(--area); font-weight: 800; font-size: calc(19 * var(--u)); }
.ts-f-sect { display: flex; align-items: center; gap: calc(12 * var(--u)); min-height: calc(64 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u)); border-radius: calc(16 * var(--u)); background: #fff;
  box-shadow: 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(20, 22, 50, 0.06), 0 calc(2 * var(--u)) calc(8 * var(--u)) rgba(20, 22, 50, 0.05); }
.ts-f-sect .ts-bar:first-child { width: calc(240 * var(--u)); height: calc(18 * var(--u)); margin-right: auto; background: rgba(31, 29, 63, 0.16); }
.ts-f-chev { flex: none; width: calc(12 * var(--u)); height: calc(12 * var(--u)); margin: 0 calc(4 * var(--u)) calc(4 * var(--u)); border-right: calc(3 * var(--u)) solid #646a78; border-bottom: calc(3 * var(--u)) solid #646a78; transform: rotate(45deg); }
.ts-f-foot { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: calc(56 * var(--u)); padding: calc(12 * var(--u)) calc(32 * var(--u)) calc(16 * var(--u)); color: #646a78; font-size: calc(16 * var(--u)); white-space: nowrap; }
.ts-f-mgr { padding: calc(8 * var(--u)) calc(20 * var(--u)); border-radius: 999px; background: #fff; border: calc(2 * var(--u)) solid #262350; color: #262350; font-weight: 800; }
.ts-f-setup { gap: calc(14 * var(--u)); padding-top: calc(28 * var(--u)); text-align: center; }
.ts-f-h { color: #1f1d3f; font-size: calc(30 * var(--u)); }
.ts-f-lead { max-width: calc(640 * var(--u)); color: #646a78; font-size: calc(19 * var(--u)); }
.ts-f-types { display: flex; gap: calc(12 * var(--u)); }
.ts-f-type { display: flex; flex-direction: column; width: calc(274 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u)); border-radius: calc(16 * var(--u)); background: #fff; box-shadow: inset 0 0 0 calc(2 * var(--u)) #e4e6ec; text-align: left; }
.ts-f-type b { color: #1f1d3f; font-size: calc(19 * var(--u)); }
.ts-f-type small, .ts-f-field small { color: #646a78; font-size: calc(15 * var(--u)); }
.ts-f-fields { display: flex; flex-direction: column; gap: calc(8 * var(--u)); width: calc(560 * var(--u)); text-align: left; }
.ts-f-field { display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.ts-f-field small { color: #1f1d3f; font-weight: 800; }
.ts-f-box { display: block; height: calc(44 * var(--u)); border-radius: calc(12 * var(--u)); background: #fff; box-shadow: inset 0 0 0 calc(1 * var(--u)) #cdd2dc; }
.ts-f-btn { display: inline-flex; align-items: center; min-height: calc(56 * var(--u)); padding: 0 calc(32 * var(--u)); border-radius: 999px; background: var(--area); color: #fff; font-weight: 800; font-size: calc(19 * var(--u)); }
/* No picture: the screen was off, or the tablet is retired or gone. These words are the Command Centre's, not the app's. */
/* 4A Sterling (2026-11-16): Guardian's Sterling tablet page, four-anjels quality-wastage.css (body.qf): a navy bar, a light page, white name tiles, teal buttons. */
.ts-sterling .ts-in { --teal: #2a7f7a; color: #24262c; background: #f5f6f9; }
.ts-s-top { flex: none; display: flex; align-items: center; gap: calc(16 * var(--u)); min-height: calc(64 * var(--u)); padding: calc(8 * var(--u)) calc(20 * var(--u)); background: #262350; color: #f6efe0; }
.ts-s-title { display: flex; flex-direction: column; min-width: 0; }
.ts-s-title b { font-size: calc(22 * var(--u)); line-height: 1.15; }
.ts-s-title small { font-size: calc(14 * var(--u)); opacity: 0.8; white-space: nowrap; }
.ts-s-kiosk { display: inline-flex; align-items: center; min-height: calc(48 * var(--u)); padding: 0 calc(18 * var(--u)); border-radius: calc(10 * var(--u)); box-shadow: inset 0 0 0 calc(1 * var(--u)) rgba(246, 239, 224, 0.4); font-weight: 800; font-size: calc(16 * var(--u)); }
.ts-s-main { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: calc(10 * var(--u)); padding: calc(20 * var(--u)) calc(20 * var(--u)) 0; }
.ts-s-h { color: #24262c; font-size: calc(28 * var(--u)); }
.ts-s-lead { color: #646a78; font-size: calc(17 * var(--u)); }
.ts-s-search { display: flex; align-items: center; width: calc(420 * var(--u)); min-height: calc(56 * var(--u)); padding: 0 calc(14 * var(--u)); border-radius: calc(10 * var(--u)); background: #fff; box-shadow: inset 0 0 0 calc(1 * var(--u)) #cdd2dc; color: #9aa0ab; font-size: calc(19 * var(--u)); }
.ts-s-people { display: grid; grid-template-columns: repeat(6, 1fr); gap: calc(10 * var(--u)); margin-top: calc(6 * var(--u)); }
.ts-s-person { display: flex; flex-direction: column; justify-content: center; gap: calc(8 * var(--u)); min-height: calc(76 * var(--u)); padding: calc(10 * var(--u)) calc(16 * var(--u)); border-radius: calc(12 * var(--u)); background: #fff; box-shadow: inset 0 0 0 calc(1 * var(--u)) #e1e4ea; }
.ts-s-person .ts-bar:first-child { width: 80%; height: calc(18 * var(--u)); background: rgba(36, 38, 44, 0.2); }
.ts-s-person .ts-bar + .ts-bar { width: 50%; height: calc(11 * var(--u)); }
.ts-s-setup { gap: calc(12 * var(--u)); }
.ts-s-fields { display: flex; flex-direction: column; gap: calc(8 * var(--u)); width: calc(640 * var(--u)); }
.ts-s-field { display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.ts-s-field small { color: #24262c; font-weight: 800; font-size: calc(17 * var(--u)); }
.ts-s-box { display: block; height: calc(52 * var(--u)); border-radius: calc(10 * var(--u)); background: #fff; box-shadow: inset 0 0 0 calc(1 * var(--u)) #cdd2dc; }
.ts-s-btn { display: flex; align-items: center; justify-content: center; width: calc(640 * var(--u)); min-height: calc(64 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--teal); color: #fff; font-weight: 800; font-size: calc(22 * var(--u)); }

.ts-off .ts-in { background: #000; }
.ts-retired .ts-in, .ts-gone .ts-in, .ts-unknown .ts-in { background: repeating-linear-gradient(135deg, #0d0a10 0 calc(14 * var(--u)), #120d16 calc(14 * var(--u)) calc(28 * var(--u))); }
.ts-word { margin: auto; padding: 0 calc(40 * var(--u)); text-align: center; font: 600 calc(34 * var(--u)) 'Orbitron', var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(195, 178, 255, 0.55); }
.ts-off .ts-word { color: rgba(255, 255, 255, 0.28); }
/* No heartbeat for 3 minutes: what it last showed, greyed, with when it was last heard from. */
.ts-dim .ts-in { filter: grayscale(0.85) brightness(0.42); }
.ts-note { position: absolute; left: 50%; top: 50%; max-width: 92%; transform: translate(-50%, -50%); padding: 4px 10px; border: 1px solid rgba(232, 38, 58, 0.6); border-radius: 2px; background: rgba(18, 7, 15, 0.88);
  color: #ff8d98; font: 600 10px 'Orbitron', var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
/* The real picture of the screen (tablet app 1.4.0, tablet-screens.js): the tablet's own pixels, whole, on black, with a LIVE badge or
   its age in the corner. The clock's camera is never in a picture: its drawn screen is dimmed instead, with a calm note. */
.ts-shot .ts-in { background: #000; }
.ts-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.ts-live { position: absolute; top: 5px; left: 5px; padding: 2px 6px; border-radius: 2px; background: rgba(5, 4, 7, 0.78); color: var(--ink-3);
  font: 600 8.5px 'Orbitron', var(--sans); letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; }
.ts-live:empty { display: none; }
.ts-live.on { color: var(--h-lime); }
.ts-live.on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #ff4d5e; vertical-align: 0; }
@media (prefers-reduced-motion: no-preference) { .ts-live.on::before { animation: beat 2s ease-in-out infinite; } }
.ts-dim .ts-live { display: none; }
.ts-note.calm { border-color: rgba(155, 123, 255, 0.55); color: #d9ccff; }

/* One tablet's screen, bigger (Osian, 2026-11-11: "click on the tablet on the command centre to see it ... bigger not really full screen";
   tablets.js openZoom, tablet-cards.js drawZoom): a dialog as large as the window allows, the screen kept at 16:10. */
.tc-zoomable { cursor: zoom-in; transition: box-shadow 0.15s; }
.tc-zoomable:hover { box-shadow: inset 0 0 0 1px rgba(155, 123, 255, 0.7); }
.tc-zoomable:focus-visible { outline: none; box-shadow: var(--ring), inset 0 0 0 1px rgba(155, 123, 255, 0.7); }
.tz { --h-violet: #9b7bff; --h-lilac: #c3b2ff; --h-lime: #b9dc3f; --h-amber: #f5a524; --h-red: #e8263a; --h-line: rgba(155, 123, 255, 0.24);
  width: min(96vw, calc((100vh - 130px) * 1.6 + 30px)); max-width: none; max-height: none; margin: auto; padding: 12px 14px 10px;
  border: 1px solid var(--h-line); border-radius: 6px; background: #0b0910; color: var(--ink-1); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65); }
.tz::backdrop { background: rgba(4, 3, 6, 0.82); }
.tz-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tz-name { min-width: 0; margin-right: auto; overflow-wrap: anywhere; font: 600 17px var(--sans); color: var(--ink-1); }
.tz-close { flex: none; width: 34px; height: 34px; border: 1px solid var(--h-line); border-radius: 4px; background: none; color: var(--ink-2);
  font: 400 22px/1 var(--sans); cursor: pointer; }
.tz-close:hover { color: var(--ink-1); border-color: rgba(155, 123, 255, 0.7); }
.tz-close:focus-visible { outline: none; box-shadow: var(--ring); }
.tz-frame { padding: 10px 14px; border-radius: 16px; }
.tz .ts-live { top: 10px; left: 10px; padding: 4px 9px; font-size: 12px; }
.tz .ts-note { padding: 10px 20px; font-size: clamp(12px, 1.4vw, 20px); } /* "Camera in use · not shown", "No heartbeat since …": readable at this size */
.tz-what { margin: 8px 2px 0; color: var(--ink-3); font-size: 13px; }
/* Restart (Osian, 2026-11-11): under the screen, with what it is waiting for or what the last press said. */
.tz-act { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 2px 2px; }
.tz-restart[disabled] { opacity: 0.5; cursor: not-allowed; }
.tz-act-note { color: var(--ink-3); font-size: 13px; }
.tz-act-note.waiting { color: var(--h-amber); }
@media (max-width: 600px) { .tz { padding: 10px; } .tz-frame { padding: 6px 8px; border-radius: 10px; } }
.ts-blank .ts-in { background: #0d0a10; }

/* Set up a new tablet: a collapsed panel under the table, with the QR code a factory-reset tablet scans. */
details.tab-setup.panel { display: block; }
.tab-setup > summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; }
.tab-setup > summary::-webkit-details-marker { display: none; }
.tab-setup > summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.tab-setup > summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-size: 20px; line-height: 1; }
.tab-setup[open] > summary::after { content: "\2013"; }
.tab-setup-hint { font-size: 12.5px; color: var(--ink-4); }
.qs-body { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.qs-body h4 { margin: 10px 0 0; font: 600 13px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.qs-steps { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.qs-steps b { color: var(--ink-1); font-weight: 600; }
.qs-error { margin: 0; color: var(--garnet); font-size: 14px; }
.qs-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px 16px; align-items: end; }
.qs-form .qs-error, .qs-check { grid-column: 1 / -1; }
.qs-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-3); }
.qs-field input, .qs-field select { font: 400 15px var(--sans); color: var(--ink-1); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; }
.qs-field input:focus, .qs-field select:focus { outline: none; box-shadow: var(--ring); border-color: var(--mood); }
.qs-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.qs-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.qs-choice { padding: 12px 20px; font-size: 15px; font-weight: 600; border-radius: 16px; }
.btn.qs-choice.is-on { color: var(--ink-1); border-color: var(--mood); background: color-mix(in srgb, var(--mood) 22%, var(--card-2)); }
.qs-small { font-size: 12.5px; font-weight: 400; color: var(--ink-4); }
.qs-qr { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.qs-qr[hidden] { display: none; }
.qs-qr canvas { display: block; width: min(100%, 520px); height: auto; image-rendering: pixelated; border-radius: 6px; }
.qs-qr-text { flex: 1 1 16rem; display: flex; flex-direction: column; gap: 8px; }
.qs-qr-text p { margin: 0; }
.qs-which { font-weight: 600; }
.qs-warn { color: var(--gold); font-size: 14px; }
.qs-actions { display: flex; gap: 8px; }
/* Full screen: the code as big as the screen allows, on white, so a tablet can scan it off the monitor. */
.qs-qr:fullscreen { flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 12px; padding: 2vmin; background: #fff; color: #111; }
.qs-qr:fullscreen canvas { width: min(88vw, 88vh); }
.qs-qr:fullscreen .qs-qr-text { flex: none; align-items: center; }
.qs-qr:fullscreen .qs-qr-text > :not(.qs-which) { display: none; }
.qs-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 13.5px; }
.qs-facts dt { color: var(--ink-3); }
.qs-facts dd { margin: 0; color: var(--ink-1); overflow-wrap: anywhere; }
.qs-facts code { font: 12px var(--mono); color: var(--ink-2); }
@media (max-width: 640px) { .qs-facts { grid-template-columns: 1fr; } }

/* The ringfence switch in each approved tablet's row, and its badge: Off, Inside, OUTSIDE (red), No position. */
.tab-fence { display: inline-flex; align-items: center; gap: 10px; }
.tab-switch { position: relative; flex: none; width: 40px; height: 22px; padding: 0; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.08); cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.tab-switch-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: transform 0.15s ease, background 0.15s ease; }
.tab-switch.on { background: color-mix(in srgb, var(--emerald) 30%, transparent); border-color: color-mix(in srgb, var(--emerald) 60%, transparent); }
.tab-switch.on .tab-switch-knob { transform: translateX(18px); background: var(--emerald); }
.tab-switch:hover:not(:disabled) { border-color: color-mix(in srgb, var(--mood) 55%, var(--line-2)); }
.tab-switch:focus-visible { outline: none; box-shadow: var(--ring); }
.tab-switch:disabled { opacity: 0.45; cursor: default; }
.tab-switch[aria-busy="true"] { cursor: progress; }
.tab-fence.is-outside .pill { background: color-mix(in srgb, var(--garnet) 28%, transparent); letter-spacing: 0.04em; }
.tab-fence-hint { font-size: 11.5px; color: var(--accent-ink); }
.tab-centre { margin-top: 4px; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 11.5px; cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease; }
.tab-centre:hover:not(:disabled) { border-color: color-mix(in srgb, var(--mood) 55%, var(--line-2)); color: var(--ink-1); }
.tab-centre:focus-visible { outline: none; box-shadow: var(--ring); }
.tab-centre:disabled { opacity: 0.45; cursor: default; }
.tab-centre[aria-busy="true"] { cursor: progress; }
.tab-fence-note { margin: 0; min-height: 1.4em; font-size: 13.5px; color: var(--ink-2); }
.tab-fence-note:empty { min-height: 0; }

/* The Tasks page (tasks.js; Osian, 2026-10-28: "we need a head called tasks so i can see a break down of the tasks done in a day", then of
   the first version: "very difficult to read or understand"). Read top to bottom: the day's number and what it was in words, a bar of
   where it went (one colour per project, the same on its card's edge), the tickets that moved on the same five stops, then each
   project in one column with its features as plain headings and titles in white at reading size. Codes and times stay small and quiet. */
.td-panel { margin-top: 22px; }
.td-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.td-top h2 { flex: 1 1 auto; }
.td-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.td-arrow { min-width: 34px; padding: 4px 10px; font-size: 16px; line-height: 1.1; }
.td-arrow:disabled { opacity: 0.35; cursor: default; border-color: var(--line-2); color: var(--ink-3); }
.td-day { min-width: 6.5rem; text-align: center; font: 600 14px var(--sans); color: var(--ink-1); }
.td-date { font: 500 13px var(--sans); color: var(--ink-2); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; color-scheme: dark; }
.td-date:focus-visible { outline: none; box-shadow: var(--ring); }
.td-sum { display: flex; flex-direction: column; gap: 6px; }
.td-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.td-big { font-size: clamp(2.6rem, 4.4vw, 3.8rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.td-of { color: var(--ink-2); font-size: 16px; }
.td-line { margin: 0; max-width: 75ch; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.td-bar { display: flex; gap: 3px; height: 10px; margin-top: 10px; max-width: 72rem; }
.td-bar-part { flex: var(--n, 1) 1 0; min-width: 6px; border-radius: 3px; background: var(--c); }
.td-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
.td-key-item { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.td-key-item i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.td-key-item b { color: var(--ink-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.td-key-name { color: var(--ink-2); }
.td-key-item:hover .td-key-name, .td-key-item:focus-visible .td-key-name { color: var(--ink-1); text-decoration: underline; }
.td-key-item:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
#td-body { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.td-panel h3.td-sec { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.td-panel h3.td-sec .td-n { margin-left: 0; }
.td-n { font: 600 12.5px var(--sans); letter-spacing: 0; color: var(--ink-1); font-variant-numeric: tabular-nums; padding: 1px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
/* Tickets moved: what it is about, where it lives, the five stops (today's lit), where it got to. */
.td-tk-list, .td-list, .td-steps { list-style: none; margin: 0; padding: 0; }
.td-tk { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto 10rem; align-items: center; gap: 6px 16px; padding: 11px 14px; border-radius: 12px; background: var(--card-2); border-left: 3px solid var(--c, var(--ink-4)); }
.td-tk + .td-tk { margin-top: 6px; }
.td-tk-what { display: flex; flex-direction: column; min-width: 0; }
.td-tk-subject { min-width: 0; font-size: 15px; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-tk-where { font-size: 12.5px; color: var(--ink-3); }
.td-pipe { display: inline-flex; gap: 4px; }
.td-stop { font: 600 11px var(--sans); padding: 3px 8px; border-radius: 999px; color: var(--ink-5); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.td-now { font: 600 13.5px var(--sans); color: var(--ink-1); white-space: nowrap; }
.td-ref { justify-self: start; font: 600 12.5px var(--mono); color: #c8ec5c; padding: 2px 8px; border-radius: 6px; background: rgba(200, 236, 92, 0.1); box-shadow: inset 0 0 0 1px rgba(200, 236, 92, 0.28); text-decoration: none; white-space: nowrap; }
a.td-ref:hover, a.td-ref:focus-visible { outline: none; background: rgba(200, 236, 92, 0.2); }
/* Step colours, the same on a stop, a step's chip and a ticket's "now". */
.s-raised { --s: #b9b0f0; --sb: rgba(144, 133, 233, 0.18); }
.s-staging { --s: #f5c25a; --sb: rgba(250, 178, 25, 0.16); }
.s-production { --s: #7dd88a; --sb: rgba(52, 185, 52, 0.17); }
.s-checklist { --s: #7cc4f5; --sb: rgba(57, 135, 229, 0.18); }
.s-closed, .s-replied { --s: #f0efec; --sb: rgba(255, 255, 255, 0.14); }
.s-work { --s: var(--ink-3); --sb: transparent; }
.td-stop.on, .td-step { color: var(--s, var(--ink-2)); background: var(--sb, rgba(255, 255, 255, 0.07)); box-shadow: none; }
.td-now[class*="s-"] { color: var(--s); }
.td-step.s-work { box-shadow: inset 0 0 0 1px var(--line-2); }
/* By project: one column, a card each, its colour down the left edge. */
.td-projects { display: flex; flex-direction: column; gap: 14px; }
.td-proj { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 16px 26px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line-1); min-width: 0; scroll-margin-top: 90px; }
.td-proj::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c, var(--ink-4)); }
.td-ph { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.td-pcode { font: 600 13px var(--mono); color: var(--c, var(--ink-3)); white-space: nowrap; }
.td-panel .td-pname { margin: 0; flex: 1 1 auto; min-width: 0; font: 600 20px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-1); overflow-wrap: anywhere; }
.td-proj.none .td-pname { color: var(--ink-3); }
.td-ph .td-n { font: 300 26px/1 var(--sans); background: none; padding: 0; }
.td-feat { max-width: 72rem; }
.td-fh { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; padding-top: 12px; border-top: 1px solid var(--line-1); font: 600 15px var(--sans); color: var(--ink-1); }
.td-feat:first-of-type .td-fh { border-top: 0; padding-top: 4px; }
.td-fh.none { color: var(--ink-3); }
.td-fh .td-n { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.td-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: baseline; gap: 2px 12px; padding: 6px 0; font-size: 15px; line-height: 1.45; }
.td-row:has(.td-step) { grid-template-columns: 3.4rem 6.6rem minmax(0, 1fr); }
.td-at { font-size: 13px; color: var(--ink-4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-title { min-width: 0; color: var(--ink-1); overflow-wrap: anywhere; }
.td-code { margin-left: 4px; font: 500 11.5px var(--mono); color: var(--ink-4); text-decoration: none; white-space: nowrap; }
a.td-code:hover, a.td-code:focus-visible { color: var(--accent-ink); outline: none; text-decoration: underline; }
.td-step { justify-self: start; font: 600 11px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
/* A ticket inside its feature: one line that opens to its steps. */
.td-ticket { scroll-margin-top: 90px; }
.td-ticket:target .td-th { background: rgba(200, 236, 92, 0.08); }
.td-fold > summary { list-style: none; }
.td-fold > summary::-webkit-details-marker { display: none; }
.td-th { display: grid; grid-template-columns: 1rem 6.5rem minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 7px 6px 7px 0; border-radius: 8px; cursor: pointer; }
.td-th::before { content: "\25B8"; color: var(--ink-3); font-size: 13px; transition: transform 0.15s; }
.td-fold[open] > .td-th::before { transform: rotate(90deg); }
.td-th:hover { background: rgba(255, 255, 255, 0.04); }
.td-th:focus-visible { outline: none; box-shadow: var(--ring); }
.td-sub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.td-steps { margin: 2px 0 8px 1.4rem; padding-left: 14px; border-left: 2px solid var(--line-2); }
/* Whose Tasks done per day ("Mine" / "Ed's"): the switch sits after the title, in the title's line; the time stays at the right. */
.panel h2 .who-seg { margin-left: 6px; flex-shrink: 0; letter-spacing: 0; text-transform: none; } /* never squeezed: on a phone the title and the time wrap instead */
.panel h2 .who-seg .seg-btn { font-size: 12.5px; padding: 3px 12px; }
@media (max-width: 640px) { /* a phone: the title and the time on one line, the three-way switch on its own line under them */
  #releases-h { flex-wrap: wrap; row-gap: 10px; }
  #releases-h #rel-meta { order: 2; }
  #releases-h .who-seg { order: 3; margin-left: 0; }
}
.chart .day-hit { cursor: pointer; } /* a day on the Tasks done per day chart opens its tasks on the Tasks page */
@media (max-width: 899px) { /* the stops go under what the ticket is about */
  .td-tk { grid-template-columns: auto minmax(0, 1fr); }
  .td-tk > .td-pipe { grid-column: 1 / -1; flex-wrap: wrap; }
  .td-tk > .td-now { grid-column: 2; grid-row: 1; justify-self: end; }
  .td-tk > .td-tk-what { grid-column: 1 / -1; }
  .td-tk .td-tk-subject { white-space: normal; }
  .td-th { grid-template-columns: 1rem auto minmax(0, 1fr) auto; }
  .td-th > .td-sub { display: none; }
}
@media (max-width: 599px) { /* on a phone the time and the chip sit over the title, so the title has the width */
  .td-row, .td-row:has(.td-step) { grid-template-columns: auto minmax(0, 1fr); }
  .td-row > .td-title { grid-column: 1 / -1; }
  .td-th { grid-template-columns: 1rem auto minmax(0, 1fr); }
  .td-th > .td-now { grid-column: 2 / -1; }
  .td-steps { margin-left: 0.6rem; }
}

/* Projects (Osian, 2026-11-11: "make another header named projects and add the kharos gate game"): one card per project. Kharos
   Gate's in the game's own gilt and crimson on black iron; the whole card is the link and opens the game in a new tab. */
.projects-panel { margin-top: 22px; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; margin-top: 14px; }
.proj-card { display: flex; gap: 20px; align-items: stretch; min-width: 0; padding: 18px; border-radius: 16px; text-decoration: none; color: var(--ink-1); border: 1px solid var(--line-2); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.proj-card:hover, .proj-card:focus-visible { transform: translateY(-2px); outline: none; }
.proj-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.proj-kicker { font: 600 10.5px var(--sans); letter-spacing: 0.3em; text-transform: uppercase; }
.proj-name { font: 600 22px/1.15 "Orbitron", var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.proj-desc { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.proj-keys { font-size: 12px; color: var(--ink-3); }
.proj-play { align-self: flex-start; margin-top: auto; padding: 6px 16px; border-radius: 999px; font: 600 12.5px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.proj-art { position: relative; flex: none; width: 128px; border-radius: 12px; overflow: hidden; }
.proj-kharos { border-color: rgba(201, 163, 90, 0.42); background: radial-gradient(120% 140% at 0% 0%, rgba(201, 163, 90, 0.14), transparent 55%), linear-gradient(160deg, #17131b, #0b090d); }
.proj-kharos:hover, .proj-kharos:focus-visible { border-color: #f2d898; box-shadow: 0 0 0 1px rgba(242, 216, 152, 0.35), 0 18px 40px -18px rgba(226, 65, 47, 0.45); }
.proj-kharos .proj-kicker { color: #c9a35a; }
.proj-kharos .proj-name { color: #f2d898; text-shadow: 0 0 14px rgba(242, 216, 152, 0.35); }
.proj-kharos .proj-play { color: #fff4dc; background: linear-gradient(#b3241f, #5a0c0c); box-shadow: inset 0 0 0 1px rgba(255, 220, 180, 0.35); }
.proj-kharos .proj-art { background: radial-gradient(circle at 50% 120%, rgba(255, 110, 40, 0.75), rgba(138, 20, 20, 0.5) 38%, transparent 62%), radial-gradient(circle at 30% 25%, rgba(180, 92, 255, 0.28), transparent 45%), #050407; box-shadow: inset 0 0 0 1px rgba(201, 163, 90, 0.4); }
.proj-ring { position: absolute; inset: 22% 14%; border-radius: 50%; border: 1px solid rgba(242, 216, 152, 0.55); transform: rotate(-18deg) scaleY(0.42); }
.proj-ring.r2 { inset: 30% 24%; border-color: rgba(180, 92, 255, 0.55); }
.proj-ship { position: absolute; left: 50%; top: 42%; width: 34px; height: 12px; margin-left: -17px; background: linear-gradient(90deg, #7a5a2c, #f2d898); clip-path: polygon(0 30%, 70% 0, 100% 50%, 70% 100%, 0 70%); filter: drop-shadow(0 0 6px rgba(242, 216, 152, 0.7)); transform: rotate(-24deg); }
@media (prefers-reduced-motion: no-preference) { .proj-kharos:hover .proj-ship { transition: transform 0.6s ease; transform: rotate(-24deg) translateX(8px); } }
/* Vector Deck: a dark wall, the picture glowing green on it and a faint beam coming down onto it from above. */
.proj-deck { border-color: rgba(125, 255, 138, 0.3); background: radial-gradient(120% 140% at 0% 0%, rgba(125, 255, 138, 0.1), transparent 55%), linear-gradient(160deg, #0d1411, #07090a); }
.proj-deck:hover, .proj-deck:focus-visible { border-color: #7dff8a; box-shadow: 0 0 0 1px rgba(125, 255, 138, 0.3), 0 18px 40px -18px rgba(125, 255, 138, 0.4); }
.proj-deck .proj-kicker { color: #67c977; }
.proj-deck .proj-name { color: #c8ffd0; text-shadow: 0 0 14px rgba(125, 255, 138, 0.4); }
.proj-deck .proj-play { color: #04140a; background: linear-gradient(#a8ffb2, #4fcf62); box-shadow: inset 0 0 0 1px rgba(230, 255, 235, 0.5); }
.proj-deck .proj-art { background: radial-gradient(ellipse 75% 65% at 50% 58%, #24262b, #121418 55%, #08090b); box-shadow: inset 0 0 0 1px rgba(125, 255, 138, 0.3); }
.proj-beam { position: absolute; inset: 0 0 auto 0; height: 34%; background: linear-gradient(rgba(225, 233, 255, 0.16), rgba(225, 233, 255, 0.04)); clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); }
.proj-screen { position: absolute; left: 16%; right: 16%; top: 34%; bottom: 26%; border-radius: 2px; background: radial-gradient(circle at 50% 50%, rgba(125, 255, 138, 0.28), transparent 70%), repeating-linear-gradient(90deg, rgba(125, 255, 138, 0.16) 0 1px, transparent 1px 9px), repeating-linear-gradient(0deg, rgba(125, 255, 138, 0.16) 0 1px, transparent 1px 9px), #050a07; box-shadow: 0 0 18px rgba(125, 255, 138, 0.25); }
.proj-orb { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 1px solid #e05aff; box-shadow: 0 0 8px #e05aff, inset 0 0 6px rgba(80, 230, 255, 0.8); }
@media (prefers-reduced-motion: no-preference) { .proj-deck:hover .proj-screen { animation: proj-flicker 0.9s steps(1) infinite; } }
@keyframes proj-flicker { 0%, 100% { opacity: 1; } 18% { opacity: 0.55; } 30% { opacity: 1; } 62% { opacity: 0.8; } }
@media (max-width: 560px) { .proj-card { flex-direction: column; } .proj-art { width: 100%; height: 120px; } }

/* The dashboard fits the window, with no scrolling (Osian, 2026-11-11: "i want no scroll on the dash page needs to be so it can just fit
   full screen"). From 900px wide and 600px tall the page is exactly the window's height: the tiles and their numbers size to the
   height, and the Systems panel takes what is left, its holograms filling it (holo.js reads --holo-fill). Full screen gets the same
   with bigger sizes. A narrower or shorter window (a phone, a small laptop) scrolls as before. */
@media (min-width: 900px) and (min-height: 600px) {
  body.dash { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
  body.dash > .wrap { flex: 1 1 auto; min-height: 0; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; padding-bottom: 14px; }
  body.dash .wrap > .tiles { flex: none; gap: 14px; margin-top: 14px; }
  body.dash .tile { min-height: clamp(8rem, 19vh, 12.5rem); padding: clamp(14px, 2.2vh, 26px) 28px clamp(12px, 2vh, 24px); gap: clamp(4px, 0.9vh, 10px); }
  body.dash .big { font-size: clamp(2.4rem, min(5.2vw, 7.4vh), 5rem); }
  body.dash .holo-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-top: 14px; padding-bottom: 8px; }
  body.dash .holo { flex: 1 1 auto; min-height: 210px; --holo-fill: 1; } /* holo.js's floor too: under it the names collide */
  body.dash .holo canvas { position: absolute; inset: 0; height: 100%; }
  .in-full body.dash .tile { min-height: clamp(9rem, 23vh, 21rem); }
  .in-full body.dash .big { font-size: clamp(2.8rem, min(8.5vw, 9.5vh), 9.5rem); }
}
/* A short window (a laptop): tighter spacing and smaller small print, so the holograms still get a band of their own. */
@media (min-width: 900px) and (min-height: 600px) and (max-height: 780px) {
  body.dash .wrap > .tiles { gap: 10px; margin-top: 10px; }
  body.dash .tile { gap: 2px; }
  body.dash .l1 { font-size: 0.98rem; }
  body.dash .l2, body.dash .done-more { font-size: 0.84rem; }
  body.dash .tix-row { padding: 7px 0; }
  body.dash .tix-sub { font-size: 12px; }
  body.dash .holo-panel { margin-top: 10px; padding-top: 12px; gap: 6px; }
}

/* Scooby Doo, the business's security guard (public/scooby.js, rules in scooby-model.js; Osian, 2026-11-13: "an area on command centre, a main
   header called scooby doo"). Minimal since 2026-11-16 ("much easier to read not so much text very minimilistic but give me text if we need to
   act on anythign"), and the same day "i need logos of the business and more symbols for meaning of states etc. needs to look more modern
   also": a guard gone quiet is itself an alert, so the banner comes first (amber over 15 minutes, red over 60 or with no report, the data under
   it dimmed by .sc-old); then the War Room piece; then the Systems panel (the headline, a card per business with its logo and everything it
   runs as tiles, each with its state's symbol, and the key); then the To do list (only when something needs a person). No approve or reject
   button anywhere: this page is read-only. Every colour comes with its word and its symbol. */
.sc-top { margin-top: 14px; }
#sc-findings, #sc-ops { margin-top: 18px; }
.sc-hero.critical, .sc-pill.critical, .sc-sev.critical, .sc-find.critical { --sev: var(--garnet); }
.sc-hero.high, .sc-pill.high, .sc-sev.high, .sc-find.high { --sev: #f08a3c; }
.sc-hero.medium, .sc-pill.medium, .sc-sev.medium, .sc-find.medium { --sev: var(--gold); }
.sc-hero.low, .sc-pill.low, .sc-sev.low, .sc-find.low { --sev: var(--cobalt); }
.sc-hero.info, .sc-pill.info, .sc-sev.info, .sc-find.info { --sev: var(--stone); }
.sc-hero.waiting, .sc-pill.waiting, .sc-sev.waiting, .sc-find.waiting, .sc-pill.hand, .sc-sev.hand, .sc-find.hand, .sc-pill.blind, .sc-sev.blind, .sc-find.blind { --sev: var(--amethyst); }
.sc-pill.unmonitored, .sc-sev.unmonitored, .sc-find.unmonitored { --sev: var(--stone); }
.sc-hero.ok { --sev: var(--emerald); }
.sc-banner { --sc: var(--gold); display: flex; align-items: flex-start; gap: 14px; margin-top: 22px; padding: 14px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--sc) 60%, transparent); background: color-mix(in srgb, var(--sc) 14%, rgba(0, 0, 0, 0.3)); box-shadow: inset 4px 0 0 var(--sc); }
.sc-banner.bad { --sc: var(--garnet); }
.sc-banner .ic { font-size: 22px; margin-top: 2px; color: var(--sc); }
.sc-banner-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-banner-txt b { font: 600 16px/1.35 var(--sans); color: var(--ink-1); overflow-wrap: anywhere; }
.sc-banner-txt span { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.sc-old .sc-counts, .sc-old .sc-foot, .sc-old .sc-grid, .sc-old .sc-list { opacity: 0.55; }
.sc-note { margin: 0; color: var(--ink-3); font-size: 14px; }
.sc-grid > .sc-note { grid-column: 1 / -1; }
/* The symbols (scooby-model.js ICON): drawn as masks in the colour of whatever they sit in, so one icon set serves every colour. Each is a
   24-pixel line drawing, inline as data (img-src allows data:), nothing fetched. */
.sc-ico { --i: none; display: inline-block; flex: none; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.sc-ico.i-ok { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.4l2.8 2.8L16.2 9.8'/%3E%3C/svg%3E"); }
.sc-ico.i-warn { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.6l9.2 16.2H2.8z'/%3E%3Cpath d='M12 10v4.2M12 17.4v.1'/%3E%3C/svg%3E"); }
.sc-ico.i-alert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.3 3h7.4L21 8.3v7.4L15.7 21H8.3L3 15.7V8.3z'/%3E%3Cpath d='M12 7.6v5.4M12 16.4v.1'/%3E%3C/svg%3E"); }
.sc-ico.i-blind { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M8.6 16.2a5 5 0 0 1 6.9.1M5.2 12.8a10 10 0 0 1 4.4-2.3M18.8 12.8a10 10 0 0 0-3.4-2.1M1.8 9.2A15 15 0 0 1 6 6.7M10.3 5.1A15 15 0 0 1 22.2 9.2M12 19.6v.1'/%3E%3C/svg%3E"); }
.sc-ico.i-unmon { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 6.1A9 9 0 0 1 12 6c5.6 0 9 6 9 6a16 16 0 0 1-2.7 3.4M6.7 6.7C4.3 8.3 3 12 3 12s3.4 6 9 6a8.6 8.6 0 0 0 4.3-1.2M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E"); }
.sc-ico.i-info { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.2M12 7.8v.1'/%3E%3C/svg%3E"); }
.sc-ico.i-clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.2V12l3.2 2'/%3E%3C/svg%3E"); }
.sc-ico.i-hand { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7.8' r='3.8'/%3E%3Cpath d='M4.8 20.5a7.2 7.2 0 0 1 14.4 0'/%3E%3C/svg%3E"); }
.sc-ico.i-wrench { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.6 6.4a4.2 4.2 0 0 0-5.3 5.3l-5.6 5.6a1.9 1.9 0 0 0 2.7 2.7l5.6-5.6a4.2 4.2 0 0 0 5.3-5.3l-2.5 2.5-2.4-.3-.3-2.4z'/%3E%3C/svg%3E"); }
.sc-ico.i-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.5c0 4.6-3.1 8.2-7.5 9.5-4.4-1.3-7.5-4.9-7.5-9.5V6z'/%3E%3Cpath d='M8.8 12l2.3 2.3 4.2-4.4'/%3E%3C/svg%3E"); }
.sc-ico.i-shield-alert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.5c0 4.6-3.1 8.2-7.5 9.5-4.4-1.3-7.5-4.9-7.5-9.5V6z'/%3E%3Cpath d='M12 8.2v4.4M12 15.6v.1'/%3E%3C/svg%3E"); }
.sc-ico.i-server { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4' width='17' height='6.5' rx='1.6'/%3E%3Crect x='3.5' y='13.5' width='17' height='6.5' rx='1.6'/%3E%3Cpath d='M7.2 7.25h.1M7.2 16.75h.1'/%3E%3C/svg%3E"); }
.sc-ico.i-other { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='M4 7.5l8 4.5 8-4.5M12 12v9'/%3E%3C/svg%3E"); }
/* The groups' symbols (2026-11-17): payments, email and domains, updates, backups, log-ins, server files, websites. */
.sc-ico.i-card { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M7 15h3.5'/%3E%3C/svg%3E"); }
.sc-ico.i-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2'/%3E%3Cpath d='M3.6 7.2l8.4 6 8.4-6'/%3E%3C/svg%3E"); }
.sc-ico.i-update { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 12a7.5 7.5 0 1 1-2.2-5.3'/%3E%3Cpath d='M19.6 4.6v4.6H15'/%3E%3C/svg%3E"); }
.sc-ico.i-disk { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='6' rx='7.5' ry='2.8'/%3E%3Cpath d='M4.5 6v12c0 1.5 3.4 2.8 7.5 2.8s7.5-1.3 7.5-2.8V6M4.5 12c0 1.5 3.4 2.8 7.5 2.8s7.5-1.3 7.5-2.8'/%3E%3C/svg%3E"); }
.sc-ico.i-key { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15.5' r='4'/%3E%3Cpath d='M10.9 12.6L19.5 4M16.2 7.3l2.5 2.5M13.9 9.6l2 2'/%3E%3C/svg%3E"); }
.sc-ico.i-folder { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6.6c0-.9.7-1.6 1.6-1.6h4.1l2.1 2.3h7.6c.9 0 1.6.7 1.6 1.6v9c0 .9-.7 1.6-1.6 1.6H5.1c-.9 0-1.6-.7-1.6-1.6z'/%3E%3C/svg%3E"); }
.sc-ico.i-globe { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.7 5.6 3.7 9s-1.2 6.4-3.7 9c-2.5-2.6-3.7-5.6-3.7-9S9.5 5.6 12 3z'/%3E%3C/svg%3E"); }
/* The War Room (2026-11-16: "a cool holographic piece that says 'War Room' with like hacking tools etc moving around it"): a band across the top,
   the words in Orbitron with a cyan / lime / violet gradient, a soft glow and a slow colour fringe either side, three rings, a radar sweeping on
   the floor, a scanline and drifting data at the edges, and ten tools orbiting (SMIL in scooby.html). Still for reduced motion. */
.war { margin-top: 22px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(94, 242, 255, 0.16); background: radial-gradient(60% 90% at 50% 55%, rgba(94, 242, 255, 0.12), transparent 70%), radial-gradient(45% 60% at 50% 100%, rgba(155, 123, 255, 0.18), transparent 70%), linear-gradient(180deg, rgba(8, 10, 26, 0.88), rgba(14, 8, 30, 0.62)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 40px rgba(0, 0, 0, 0.35); }
.war-svg { display: block; width: 100%; height: clamp(120px, 15vw, 230px); }
.war-title { font-family: 'Orbitron', var(--sans); font-weight: 600; font-size: 42px; letter-spacing: 7px; } /* "SCOOBY DOO · SECURITY", one line, clear of Scooby and the data column */
.war-main { animation: war-hum 5s ease-in-out infinite; }
.war-ghost { opacity: 0.38; }
.war-ghost.c { fill: #5ef2ff; animation: war-shift 6s ease-in-out infinite; }
.war-ghost.m { fill: #ff4fd8; animation: war-shift 6s ease-in-out infinite reverse; }
.war-ring { fill: none; stroke: #5ef2ff; stroke-opacity: 0.38; stroke-width: 1.2; stroke-dasharray: 3 9; animation: war-dash 24s linear infinite; }
.war-ring.v { stroke: #9b7bff; stroke-opacity: 0.45; animation-duration: 40s; animation-direction: reverse; }
.war-ring.o { stroke-opacity: 0.14; stroke-dasharray: none; animation: none; }
.war-floor circle { fill: none; stroke: #5ef2ff; stroke-opacity: 0.2; stroke-width: 1; }
.war-sweep { animation: war-spin 7s linear infinite; }
.war-scan { fill: #5ef2ff; fill-opacity: 0.16; animation: war-scan 7s linear infinite; }
.war-chip { fill: #0a0d22; fill-opacity: 0.92; stroke: #5ef2ff; stroke-opacity: 0.7; stroke-width: 1.2; }
.war-glyph { fill: none; stroke: #5ef2ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.war-lbl { font: 600 10px var(--mono); letter-spacing: 1px; fill: #c8ec5c; text-anchor: middle; }
.war-hex text { font: 500 9px var(--mono); fill: #5ef2ff; fill-opacity: 0.32; letter-spacing: 1px; }
.war-hex { animation: war-rise 10s linear infinite; }
.war-hex.r { animation-duration: 13s; }
/* The guard's mascot in the War Room (2026-11-16: "have an image of scooby do integrated into the warroom header", then "nah an actual image
   of scooby doo"): public/scooby-mascot.png in his own colours, with hologram touches: a cyan glow round his outline (#war-holo), a cyan and
   magenta fringe drifting either side like the words, scanlines and a scan bar masked to his shape, his projector's beam and pad, a gentle bob
   and a soft shimmer. Still for reduced motion with the rest of the band. */
.war-dog-pad { fill: none; stroke: #5ef2ff; stroke-opacity: 0.5; stroke-width: 1.4; }
.war-dog-pad.i { stroke: #9b7bff; stroke-opacity: 0.6; }
.war-scooby-body { animation: war-bob 4.5s ease-in-out infinite; }
.war-scooby-img { animation: war-shimmer 5s ease-in-out infinite; }
.war-scooby-ghost { opacity: 0.32; }
.war-scooby-ghost.c { animation: war-shift 6s ease-in-out infinite; }
.war-scooby-ghost.m { animation: war-shift 6s ease-in-out infinite reverse; }
.war-scooby-mask { mask-type: alpha; }
.war-dog-scan { fill: #c8ec5c; fill-opacity: 0.45; animation: war-dog-scan 3.5s linear infinite; }
@keyframes war-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes war-shimmer { 0%, 100% { opacity: 1; } 50% { opacity: 0.9; } }
@keyframes war-dog-scan { from { transform: translateY(10px); } to { transform: translateY(205px); } }
@keyframes war-hum { 0%, 100% { opacity: 1; } 50% { opacity: 0.84; } }
@keyframes war-shift { 0%, 100% { transform: translateX(-2.5px); } 50% { transform: translateX(2.5px); } }
@keyframes war-dash { to { stroke-dashoffset: -240; } }
@keyframes war-spin { to { transform: rotate(360deg); } }
@keyframes war-scan { from { transform: translateY(-10px); } to { transform: translateY(240px); } }
@keyframes war-rise { from { transform: translateY(0); } to { transform: translateY(-120px); } }
@media (prefers-reduced-motion: reduce) { .war * { animation: none !important; } }
@media (max-width: 640px) { .war-lbl, .war-hex { display: none; } .war { border-radius: 16px; } }
/* The headline: a shield and one phrase, large and light, in the colour of the worst thing open; the non-zero counts as chips with symbols. */
.sc-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-width: 0; }
.sc-hero { --sev: var(--ink-1); display: inline-flex; align-items: center; gap: 12px; font: 300 2.6rem/1.1 var(--sans); letter-spacing: -0.02em; color: var(--sev); overflow-wrap: anywhere; }
.sc-hero .sc-ico { width: 0.9em; height: 0.9em; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-pill { --sev: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1.2 var(--sans); padding: 5px 12px 5px 9px; border-radius: 999px; color: var(--sev); background: color-mix(in srgb, var(--sev) 15%, transparent); white-space: nowrap; }
.sc-run { margin: 0; font-size: 12.5px; color: var(--ink-4); overflow-wrap: anywhere; }
.sc-run:empty { display: none; }
/* To do, in groups (Osian, 2026-11-17, of Outpost: "more clean and minimilsitic ... it needs to be broken up into groups"): each list is a column
   of group rows (a symbol for the kind of work, its name with the systems under it, how many, and its worst as a chip), its colour down the left
   edge. A group opens to one line per item (the word, the headline, where and how long, how many steps); an item opens to what Scooby said, its
   fixes with their buttons, and its small print. Native <details>, so the keyboard and screen readers get them for free. */
.sc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-group.critical { --sev: var(--garnet); } .sc-group.high { --sev: #f08a3c; } .sc-group.medium { --sev: var(--gold); } .sc-group.low { --sev: var(--cobalt); }
.sc-group.info, .sc-group.unmonitored { --sev: var(--stone); } .sc-group.waiting, .sc-group.hand, .sc-group.blind { --sev: var(--amethyst); }
.sc-group { --sev: var(--ink-3); min-width: 0; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.05); background: linear-gradient(100deg, color-mix(in srgb, var(--sev) 7%, rgba(0, 0, 0, 0.2)), rgba(0, 0, 0, 0.14) 55%); box-shadow: inset 3px 0 0 var(--sev); }
.sc-gbox > summary { list-style: none; }
.sc-gbox > summary::-webkit-details-marker, .sc-item > summary::-webkit-details-marker, .sd-more > summary::-webkit-details-marker { display: none; }
.sc-ghead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; border-radius: 14px; }
.sc-ghead:hover { background: rgba(255, 255, 255, 0.025); }
.sc-ghead:focus-visible, .sc-find-top:focus-visible, .sd-head:focus-visible { outline: 2px solid var(--mood, #5ef2ff); outline-offset: -2px; }
.sc-ghead > .sc-ico { width: 20px; height: 20px; flex: none; color: var(--sev); }
.sc-gname { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sc-gtitle { font: 600 15px/1.3 var(--sans); color: var(--ink-1); }
.sc-gsys { font-size: 12.5px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-gsys:empty { display: none; }
.sc-gcount { font: 300 1.5rem/1 var(--sans); color: var(--ink-1); font-variant-numeric: tabular-nums; min-width: 1.6ch; text-align: right; }
.sc-ghead::after, .sc-find-top::after, .sd-head::after { content: ''; flex: none; width: 8px; height: 8px; margin-left: 2px; border-right: 1.6px solid var(--ink-4); border-bottom: 1.6px solid var(--ink-4); transform: rotate(-45deg); transition: transform 0.15s; }
.sc-gbox[open] > .sc-ghead::after, .sc-item[open] > .sc-find-top::after, .sd-more[open] > .sd-head::after { transform: rotate(45deg); }
.sc-items { list-style: none; margin: 0; padding: 0 8px 8px; display: flex; flex-direction: column; }
.sc-find { --sev: var(--ink-3); min-width: 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.sc-find.blind, .sc-find.unmonitored { border-left: 2px dashed color-mix(in srgb, var(--sev) 50%, transparent); }
.sc-find-top { display: flex; align-items: center; gap: 4px 12px; padding: 9px 8px; cursor: pointer; list-style: none; border-radius: 8px; }
.sc-find-top:hover { background: rgba(255, 255, 255, 0.03); }
.sc-sev { display: inline-flex; align-items: center; gap: 5px; font: 600 11px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px 3px 8px; border-radius: 999px; color: var(--sev); background: color-mix(in srgb, var(--sev) 16%, transparent); white-space: nowrap; }
.sc-find-top > .sc-sev { flex: none; min-width: 6.4rem; justify-content: flex-start; }
.sc-find-h { flex: 1; min-width: 0; font: 500 14.5px/1.4 var(--sans); color: var(--ink-1); overflow-wrap: anywhere; }
.sc-find-meta { display: flex; flex: none; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-4); white-space: nowrap; }
.sc-find-sys { color: var(--ink-3); }
.sc-find-age { font-variant-numeric: tabular-nums; }
.sc-find-n { color: var(--amethyst); }
.sc-item-body { display: flex; flex-direction: column; gap: 6px; padding: 0 8px 12px calc(6.4rem + 20px); }
.sc-find-a { margin: 0; font-size: 13.5px; color: var(--ink-2); max-width: 80ch; overflow-wrap: anywhere; }
.sc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 4px 0 0; font-size: 12px; }
.sc-facts dt { color: var(--ink-4); } .sc-facts dd { margin: 0; color: var(--ink-3); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .sc-find-top { flex-wrap: wrap; }
  .sc-find-top > .sc-sev { min-width: 0; }
  .sc-find-h { flex-basis: calc(100% - 40px); order: 2; }
  .sc-find-meta { order: 3; white-space: normal; flex-wrap: wrap; }
  .sc-find-top::after { margin-left: auto; order: 1; }
  .sc-item-body { padding-left: 8px; }
  .sc-gsys { white-space: normal; }
}
.sc-fix { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(0, 0, 0, 0.24); }
.sc-fix-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sc-fix-k { display: inline-flex; align-items: center; gap: 5px; font: 600 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amethyst); }
.sc-prop-act { font: 600 14px var(--sans); color: var(--ink-1); }
.sc-prop-exp { margin-left: auto; font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.sc-prop-exp.gone, .sc-prop-gone { color: var(--gold); }
.sc-prop-why { margin: 0; font-size: 13px; color: var(--ink-2); max-width: 80ch; overflow-wrap: anywhere; }
.sc-prop-gone { margin: 0; font-size: 13px; }
.sc-fix-note { margin: 0; font-size: 12.5px; color: var(--ink-3); max-width: 80ch; overflow-wrap: anywhere; }
.sc-steps { display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; border-radius: 9px; background: color-mix(in srgb, var(--amethyst) 9%, rgba(0, 0, 0, 0.2)); border-left: 2px solid color-mix(in srgb, var(--amethyst) 70%, transparent); }
.sc-steps-k { font: 600 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amethyst); }
.sc-steps-t { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-1); max-width: 80ch; overflow-wrap: anywhere; }
.sc-cmd { display: block; padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line-2); font: 13px/1.5 var(--mono); color: #c8ec5c; overflow-wrap: anywhere; user-select: all; }
.sc-how { font-size: 12.5px; color: var(--ink-4); }
/* The systems: a card per business as the holograms group them, with its logo, name, how it is doing and a badge with its worst state's symbol,
   then everything it runs as tiles (2026-11-16: "prefer this to be at the top and add everything into these sections even what we arent
   monitoring yet and put colour coding", then logos, symbols and "more modern"). One colour, one meaning, on the tiles, the cards' top glow,
   the badges, the chips and the key alike: green all clear, amber warning, red alert, violet no signal (dashed and hatched as well), grey not
   monitored (dashed as well). Soft tinted glass, no hard boxes. */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 25rem), 1fr)); gap: 14px; align-items: start; }
.sc-grid:empty { display: none; }
.sc-site, .sc-sys, .sc-k, .sc-site-badge { --st: var(--emerald); }
.sc-site.warn, .sc-sys.warn, .sc-k.warn, .sc-site-badge.warn { --st: var(--gold); }
.sc-site.alert, .sc-sys.alert, .sc-k.alert, .sc-site-badge.alert { --st: var(--garnet); }
.sc-site.blind, .sc-sys.blind, .sc-k.blind, .sc-site-badge.blind { --st: var(--amethyst); }
.sc-site.unmonitored, .sc-sys.unmonitored, .sc-k.unmonitored, .sc-site-badge.unmonitored { --st: var(--stone); }
.sc-site { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.06); background: linear-gradient(160deg, color-mix(in srgb, var(--st) 9%, rgba(255, 255, 255, 0.035)), rgba(255, 255, 255, 0.012) 60%); overflow: hidden; }
.sc-site::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--st), transparent); }
.sc-site-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sc-logo { flex: none; width: 38px; height: 38px; border-radius: 11px; object-fit: cover; background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.35); }
.sc-logo-ico { display: grid; place-items: center; font-size: 19px; color: var(--ink-2); background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)); }
.sc-site-title { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.panel h3.sc-site-name { margin: 0; font: 600 15px/1.3 var(--sans); letter-spacing: 0.01em; text-transform: none; color: var(--ink-1); overflow-wrap: anywhere; }
.sc-site-line { font-size: 12px; color: color-mix(in srgb, var(--st) 70%, var(--ink-3)); overflow-wrap: anywhere; }
.sc-site-badge { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 15px; color: var(--st); background: color-mix(in srgb, var(--st) 16%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--st) 22%, transparent); }
.sc-site-systems { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: 8px; min-width: 0; }
.sc-sys { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 11px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--st) 24%, transparent); background: color-mix(in srgb, var(--st) 10%, rgba(0, 0, 0, 0.22)); font: 500 13.5px/1.25 var(--sans); color: var(--ink-1); transition: transform 0.15s ease, border-color 0.15s ease; }
.sc-sys > .sc-ico { font-size: 16px; color: var(--st); }
.sc-sys-txt { display: flex; flex-direction: column; min-width: 0; }
.sc-sys-name { min-width: 0; overflow-wrap: anywhere; }
.sc-sys-word { font: 600 11px/1.35 var(--sans); letter-spacing: 0.02em; color: color-mix(in srgb, var(--st) 85%, #fff); }
.sc-sys.blind { border-style: dashed; border-color: color-mix(in srgb, var(--st) 60%, transparent); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--st) 14%, transparent) 0 6px, rgba(0, 0, 0, 0.2) 6px 12px); }
.sc-sys.unmonitored { border-style: dashed; border-color: color-mix(in srgb, var(--st) 55%, transparent); background: rgba(0, 0, 0, 0.12); color: var(--ink-2); }
@media (hover: hover) { .sc-sys:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--st) 60%, transparent); } }
.sc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.sc-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-3); }
.sc-k { display: inline-flex; align-items: center; gap: 6px; }
.sc-k > .sc-ico { font-size: 14px; color: var(--st); }
@media (max-width: 520px) { .sc-banner { padding: 12px 14px; } .sc-hero { font-size: 2rem; } .sc-find { padding: 12px 14px; } .sc-find-age, .sc-prop-exp { margin-left: 0; } }

/* Deciding a fix from the page (public/scooby.js; Osian, 2026-11-16: "make it so we can make suggested fixes from there with claude", "Safe list by
   button, rest via Claude"). A fix on Scooby's safe list has Approve and Reject; a manual step has Do this with Claude, Mark done and Not needed. A press
   opens a question that says what it does (.sc-confirm) and only its Yes sends anything; what it did shows in .sc-result for a few seconds. Operations are
   the quieter list under Security (.sc-quiet). */
.sc-result { --sc: var(--emerald); margin-top: 14px; padding: 10px 16px; border-radius: 12px; font-size: 14px; color: var(--ink-1); border: 1px solid color-mix(in srgb, var(--sc) 55%, transparent); background: color-mix(in srgb, var(--sc) 12%, rgba(0, 0, 0, 0.3)); overflow-wrap: anywhere; }
.sc-result.bad { --sc: var(--garnet); }
.sc-fix-what { margin: 0; font-size: 13.5px; color: var(--ink-1); max-width: 80ch; overflow-wrap: anywhere; }
.sc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.sc-btn { display: inline-block; font: 600 13px/1.2 var(--sans); padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink-1); cursor: pointer; text-decoration: none; }
.sc-btn:hover:not(:disabled), .sc-btn:focus-visible { border-color: color-mix(in srgb, var(--mood) 60%, var(--line-2)); outline: none; }
.sc-btn:focus-visible { box-shadow: var(--ring); }
.sc-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.sc-btn.approve, .sc-btn.yes.approve { color: #04210a; background: var(--emerald); border-color: var(--emerald); }
.sc-btn.reject, .sc-btn.yes.reject { color: var(--garnet); background: color-mix(in srgb, var(--garnet) 12%, transparent); border-color: color-mix(in srgb, var(--garnet) 50%, transparent); }
.sc-btn.claude { color: var(--accent-ink); background: color-mix(in srgb, var(--accent-ink) 12%, transparent); border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.sc-confirm { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 9%, rgba(0, 0, 0, 0.25)); }
.sc-confirm-q { font: 600 14px var(--sans); color: var(--ink-1); }
.sc-confirm-d { margin: 0; font-size: 13.5px; color: var(--ink-1); max-width: 80ch; overflow-wrap: anywhere; }
.sc-brief { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.4); color: var(--ink-1); font: 12.5px/1.5 var(--mono); resize: vertical; }
.sc-quiet h2 { color: var(--ink-4); }
.sc-quiet .sc-group { background: rgba(255, 255, 255, 0.02); }
.sc-quiet .sc-gtitle { font-weight: 500; color: var(--ink-2); }
.sc-quiet .sc-find-h { font-size: 14px; color: var(--ink-2); }
/* "Checked, it's fine" (2026-11-18): the button on an open finding (quiet, as it runs nothing on the server), and the list of what has been marked,
   one line each, a critical one in red. */
.sc-ack { margin-top: 8px; }
.sc-btn.ack, .sc-btn.yes.ack { color: var(--ink-1); background: color-mix(in srgb, var(--emerald) 10%, transparent); border-color: color-mix(in srgb, var(--emerald) 45%, transparent); }
.sc-chk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-chk { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.sc-chk.crit { border: 1px solid color-mix(in srgb, var(--garnet) 45%, transparent); background: color-mix(in srgb, var(--garnet) 7%, transparent); }
.sc-chk-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-chk-h { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.sc-chk-l { font-size: 12.5px; color: var(--ink-4); overflow-wrap: anywhere; }
.sc-chk-crit { font-size: 12.5px; color: var(--garnet); }

/* Claude working a manual fix (Osian, 2026-11-16: "i need to be able to use claude in here to do stuff not in my claude"; public/scooby-claude.js): a dialog over
   the page with the transcript (Claude's words, each command it ran with what it printed), Stop, and a reply box. Hidden unless open. */
.scc { width: min(94vw, 920px); max-width: none; height: min(86vh, 820px); max-height: none; margin: auto; padding: 0; display: none; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(155, 123, 255, 0.28); border-radius: 16px; background: #0b0910; color: var(--ink-1); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65); }
.scc[open] { display: flex; }
.scc::backdrop { background: rgba(4, 3, 6, 0.82); }
.scc-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.scc-title { flex: 1; min-width: 0; font: 600 16px var(--sans); overflow-wrap: anywhere; }
.scc-state { flex: none; font-size: 13px; color: var(--ink-3); }
.scc-stop { flex: none; padding: 6px 16px; }
/* One system's pop-up (Osian, 2026-11-17, of the tiles: "click these tiles to see the issues instead of another drop down"; scooby.js): a tile
   with a Scooby system behind it is a button, and opens this panel with every issue about it open in full. It was a side panel from the right until
   2026-11-18 (Osian: "make this pop out a square in the middle of the screen"): now a square in the middle of the window, lit along its top edge in the
   system's colour, the issues scrolling inside it. The square is the smaller of the window's width and height (and 720px), so it stays square on a
   wide window and a short one; a phone gets nearly the whole screen, as a square would be too small to read there. Still for reduced motion. */
button.sc-sys { font: inherit; font-weight: 500; color: inherit; text-align: left; cursor: pointer; width: 100%; transition: transform 0.12s, border-color 0.12s, background 0.12s; }
button.sc-sys:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--st) 55%, transparent); background-color: color-mix(in srgb, var(--st) 16%, rgba(0, 0, 0, 0.22)); }
button.sc-sys:focus-visible { outline: 2px solid color-mix(in srgb, var(--st) 80%, #fff); outline-offset: 2px; }
.scd { --st: var(--emerald); --sq: min(92vw, 92vh, 720px); position: fixed; inset: 0; width: var(--sq); max-width: none; height: var(--sq); max-height: none; margin: auto; padding: 0; display: none; flex-direction: column; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--st) 40%, var(--line-2)); border-radius: 18px; background: #0b0910; color: var(--ink-1); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), inset 0 3px 0 var(--st); }
.scd.warn { --st: var(--gold); } .scd.alert { --st: var(--garnet); } .scd.blind { --st: var(--amethyst); } .scd.unmonitored { --st: var(--stone); }
.scd[open] { display: flex; animation: scd-in 0.18s ease-out; }
@keyframes scd-in { from { transform: translateY(14px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scd[open] { animation: none; } button.sc-sys { transition: none; } button.sc-sys:hover { transform: none; } }
.scd::backdrop { background: rgba(4, 3, 6, 0.72); }
@media (max-width: 600px) { .scd { width: 94vw; height: 88dvh; } }
.scd-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.scd-head { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.scd-name { font: 600 18px/1.25 var(--sans); overflow-wrap: anywhere; }
.scd-line { font-size: 12.5px; color: var(--ink-3); }
.scd > .sc-result { margin: 12px 18px 0; }
.scd-list { flex: 1; overflow-y: auto; padding: 14px 18px 24px; gap: 10px; }
.scd-none { color: var(--ink-3); font-size: 14px; padding: 8px 0; }
/* One alert in the pop-up (2026-11-18, opened from its Teams card): Claude's button under the fixes, and what happened to it. */
.sc-ask-claude { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.scd-claude, .scd-past { list-style: none; }
.scd-past { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line-1); }
.scd-past-k { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }
.sc-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sc-hist-row { display: grid; grid-template-columns: 11rem 6rem 1fr; gap: 2px 10px; padding: 5px 0; border-bottom: 1px solid var(--line-1); font-size: 12.5px; }
.sc-hist-when, .sc-hist-ev { color: var(--ink-3); font-weight: 400; }
.sc-hist-t { color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 600px) { .sc-hist-row { grid-template-columns: 1fr; gap: 0; } }
.sc-find.flat { border-top: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 3px 0 0 var(--sev); padding: 4px 4px 2px; }
.sc-find.flat .sc-find-top { cursor: default; align-items: flex-start; flex-wrap: wrap; }
.sc-find.flat .sc-find-top:hover { background: none; }
.sc-find.flat .sc-find-top::after { display: none; }
.sc-find.flat .sc-find-h { flex-basis: calc(100% - 8rem); font-weight: 600; }
.sc-find.flat .sc-find-meta { width: 100%; padding-left: calc(6.4rem + 12px); white-space: normal; flex-wrap: wrap; }
.sc-find.flat .sc-item-body { padding: 0 8px 10px calc(6.4rem + 20px); }
@media (max-width: 760px) { .sc-find.flat .sc-find-meta, .sc-find.flat .sc-item-body { padding-left: 8px; } }
.scc-close { flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.scc-close:hover { color: var(--ink-1); border-color: color-mix(in srgb, var(--mood) 60%, var(--line-2)); }
.scc-close:focus-visible, .scc-say:focus-visible { outline: none; box-shadow: var(--ring); }
.scc-log { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 14px 16px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.scc-msg { align-self: flex-start; max-width: min(78ch, 100%); padding: 9px 14px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.scc-msg.owner { align-self: flex-end; background: color-mix(in srgb, var(--accent) 24%, rgba(0, 0, 0, 0.2)); }
.scc-msg p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.scc-who { font: 600 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.scc-cmd { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.38); }
.scc-cmd-head { display: flex; align-items: flex-start; gap: 10px; }
.scc-cmd-text { flex: 1; min-width: 0; font: 13px/1.5 var(--mono); color: #c8ec5c; white-space: pre-wrap; overflow-wrap: anywhere; }
.scc-cmd-text::before { content: "$ "; color: var(--ink-4); }
.scc-tag { flex: none; padding: 2px 9px; border-radius: 999px; font: 600 10.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); background: rgba(255, 255, 255, 0.06); }
.scc-tag.ok { color: var(--emerald); background: color-mix(in srgb, var(--emerald) 14%, transparent); }
.scc-tag.bad { color: var(--garnet); background: color-mix(in srgb, var(--garnet) 14%, transparent); }
.scc-tag.warn { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.scc-tag.run { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.scc-why { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.scc-out summary { margin-top: 6px; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.scc-out pre { margin: 6px 0 0; padding: 8px 10px; max-height: 260px; overflow: auto; border-radius: 8px; background: rgba(0, 0, 0, 0.45); font: 12px/1.5 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.scc-info { font-size: 13px; color: var(--ink-3); text-align: center; overflow-wrap: anywhere; }
.scc-working { font-size: 13px; color: var(--ink-3); }
.scc-working::after { content: "…"; }
@media (prefers-reduced-motion: no-preference) { .scc-working { animation: scc-pulse 1.6s ease-in-out infinite; } }
@keyframes scc-pulse { 50% { opacity: 0.4; } }
.scc-err { margin: 0; padding: 8px 16px; font-size: 13.5px; color: var(--garnet); border-top: 1px solid color-mix(in srgb, var(--garnet) 40%, transparent); background: color-mix(in srgb, var(--garnet) 9%, transparent); overflow-wrap: anywhere; }
.scc-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line-2); }
.scc-say { flex: 1; box-sizing: border-box; resize: none; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.4); color: var(--ink-1); font: 14px/1.5 var(--sans); }
.scc-say:disabled { opacity: 0.5; }
.scc-note { margin: 0; padding: 0 16px 10px; font-size: 12px; color: var(--ink-4); }
@media (max-width: 600px) { .scc { width: 100vw; height: 100vh; border-radius: 0; } .scc-top { gap: 8px; padding: 10px 12px; } .scc-state { display: none; } .scc-log, .scc-form, .scc-note { padding-left: 12px; padding-right: 12px; } }

/* The watch copy (CC_ROLE=watch, watch.olidor.cloud on Scooby Doo's own droplet; server.js marks its pages class="watch"). What reads the Olidor
   server is not on it: the Server panel and the Apps list (that server's /proc, disks and git copies), the Switch app menu (every app goes
   through the portal, on that server) and Connect Microsoft (no mailbox here). */
.watch #vitals, .watch #apps, .watch .switch, .watch #ms-connect { display: none !important; }

/* The watch copy's sign-in and backup password pages (public/signin.html, backup.html): a frosted card over the PIN page's artwork. */
.si-wrap { place-items: center; }
.si-card { width: min(24rem, 100%); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; background: rgba(15, 12, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; backdrop-filter: blur(10px); box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7); }
.si-card h1 { margin: 0 0 4px; font: 600 18px var(--sans); color: var(--ink-1); }
.si-sub { font: 600 11px var(--sans); color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-left: 6px; }
.si-ms, .si-go { display: block; text-align: center; padding: 11px 16px; border-radius: 10px; font: 600 14px var(--sans); text-decoration: none; cursor: pointer;
  color: #10141c; background: var(--ink-1); border: 0; }
.si-ms:hover, .si-go:hover { background: #fff; }
.si-go:disabled { opacity: 0.6; cursor: default; }
.si-alt { align-self: center; background: none; border: 0; padding: 4px; color: var(--ink-2); font: 500 13px var(--sans); text-decoration: underline; cursor: pointer; }
.si-form { display: flex; flex-direction: column; gap: 6px; }
.si-form label { font: 500 12px var(--sans); color: var(--ink-2); }
.si-form input { padding: 9px 11px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.35); color: var(--ink-1); font: 15px var(--sans); }
.si-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.si-form .si-go { margin-top: 6px; }
.si-msg { margin: 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-1); background: color-mix(in srgb, var(--garnet) 22%, transparent); }
.si-msg.ok { background: color-mix(in srgb, var(--emerald) 22%, transparent); }
.si-note { margin: 0; font-size: 12px; color: var(--ink-3); }
.si-rules { padding-left: 18px; }
/* The watch copy's lines in the name pill's menu: how you signed in, the last backup sign-in, the backup password, Sign out. */
.me-signin { border-top: 1px solid var(--line-1); margin-top: 6px; padding: 8px 14px 2px; font-size: 12.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.me-signin a { color: var(--ink-1); }
.me-signin .warn { color: var(--gold); }

/* Outpost's Scooby page (the watch copy; scooby-detail.js): every system in detail and his history, each a closed row at the foot of the page
   (2026-11-17: this was an "In full" section, 13,800px of every finding and fix, until Osian: "more clean and minimilsitic"). No Security Room band there. */
.watch #war { display: none !important; }
.sc-detail { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.sd-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; border-radius: 10px; font: 500 14px var(--sans); color: var(--ink-3); }
.sd-head:hover { background: rgba(255, 255, 255, 0.03); color: var(--ink-2); }
.sd-title { flex: 1; }
.sd-n { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.sd-list { list-style: none; margin: 0; padding: 0 12px 10px; display: flex; flex-direction: column; }
.sd-sys { color: var(--ink-1); font-weight: 600; font-size: 13px; }
.sd-text { margin: 0; font-size: 13px; color: var(--ink-2); white-space: pre-line; }
.sd-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--line-1); font-size: 13px; }
.sd-line { color: var(--ink-3); font-size: 12px; }
.sd-word { font-size: 12px; }
.sd-hrow { display: grid; grid-template-columns: 9.5rem 6rem 9rem 1fr; gap: 4px 10px; font-size: 12.5px; padding: 4px 0; border-bottom: 1px solid var(--line-1); }
@media (max-width: 760px) { .sd-hrow { grid-template-columns: 1fr; gap: 0; padding: 6px 0; } }
.sd-when, .sd-ev { color: var(--ink-3); }
.sd-none { color: var(--ink-3); font-size: 13px; }
@media (max-width: 640px) { .sd-hrow { grid-template-columns: 1fr; } .sd-facts { grid-template-columns: 1fr; } }
/* The watch copy: the passphrase of the key for the Olidor server, asked before Claude starts and with each reply (scooby.js, scooby-claude.js). */
.sc-pass-l { display: block; margin: 8px 0 4px; font-size: 12px; color: var(--ink-2); }
.sc-pass, .scc-pass { width: 100%; max-width: 22rem; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); color: var(--ink-1); font: 14px var(--sans); }
.scc-pass { max-width: 12rem; }
/* The backup's authenticator and recovery codes (public/backup.html). */
.bk-h { margin: 14px 0 2px; font: 600 14px var(--sans); color: var(--ink-1); }
.bk-enrol { display: flex; flex-direction: column; gap: 8px; }
.bk-qr { align-self: center; width: 232px; height: 232px; background: #fff; border-radius: 6px; }
.bk-secret { font: 13px var(--mono); color: var(--ink-1); word-break: break-all; }
.bk-code-list { columns: 2; margin: 6px 0; padding-left: 22px; font: 15px var(--mono); color: var(--ink-1); }
