/* ===========================================================================
   OTTO INTRANET DESIGN TOKENS - the "vellum" theme (JKG, 22 Nov 2026).
   File name kept (blueops.css) because every page and template links it.

   JKG approved the vellum front page and asked for it site-wide, top bar
   included. So vellum is no longer one page's own look: it IS the light theme,
   stated here as tokens, and every page inherits it. The dark theme is its
   warm-dark equivalent. The earlier charcoal + signal-red "Blue Ops" identity
   (portal DESIGN.md 8a) no longer applies to this site.

   The identity in one line: warm paper, soft 1px lines, serif headings, one
   rust accent, soft corners, system sans body, AA contrast in both themes.

   HOW A PAGE USES THIS
     1. <link rel="stylesheet" href="/static/blueops.css">  first, then
        intranet.css (site-specific components, written in these tokens).
     2. Chrome markup: .statusbar > .site-header > main > .site-footer.
     3. Never hard-code a hex outside this file (the QR plate is the one
        documented exception, in intranet.css).

   ---------------------------------------------------------------------------
   TOKENS                  light      dark       what it is
   ---------------------------------------------------------------------------
   --color-bg              #f5efdc    #1a1814    page ground (paper)
   --color-panel           #fbf8ee    #24211a    cards, panels
   --color-panel-2         #efe7d0    #2e2a20    tiles, wells, header bars
   --color-field           #fffdf6    #1f1c16    text inputs
   --color-text            #1a1814    #f1ead6    ink
   --color-muted           #6b5d3c    #b8ab88    secondary / label text
   --color-border          #e3d9bb    #423b2b    panel lines (decorative)
   --color-hairline        #e3d9bb    #423b2b    soft inner rules
   --color-edge            #8c7b50    #8f8364    control outlines (>=3:1)
   --color-header-bg       #2a2318    #100e0b    main bar: deep ink-brown
   --color-header-bg-2     #1a1814    #0b0a08    status strip above it
   --color-header-text     #fbf8ee    #f1ead6    text on the bar
   --color-header-muted    #cdbf9c    #b8ab88    secondary text on the bar
   --color-header-edge     #8c7b50    #8f8364    control outlines on the bar
   --color-header-rule     #4a3f2c    #3a3325    decorative dividers on the bar
   --color-accent          #8b3a1a    #e0935c    RUST - fills, rails, active marks
   --color-accent-on-dark  #e0935c    #e0935c    rust drawn on the bar
   --color-accent-contrast #fffaf0    #1a1814    text on filled rust
   --color-brand           #ff3b24    #ff3b24    the Red Cat mark only
   --color-link            = accent              links, rust-as-text
   --color-btn-text        = accent              secondary-button labels
   --color-focus           = accent              focus rings
   --color-ok              #5e6b3a    #a9b874    "good" (olive)
   --color-warn            #6f5510    #d8b24e    "attention" as TEXT (amber ink)
   --color-wait            #a07f26    #d8b24e    "attention" as a FILL (lamps, rails)
   --color-danger          #a82e2e    #e8776c    blocked / refused / destructive
   --color-data            #7a6a45    #b8ab88    chart and bar ink
   --shadow / --shadow-soft                      elevation washes
   --radius 10px, --radius-sm 8px, --radius-xs 4px, --radius-pill 999px
   --font-serif            Georgia, "Iowan Old Style", "Palatino Linotype", serif
   --wrap 1080px, --measure 72ch
   ---------------------------------------------------------------------------

   THE RULES
     1. Rust is the accent: the one filled primary button per view, active nav
        and tabs, links (always underlined too), key figures. State never rests
        on colour alone - every mark carries its word.
     2. SOFT CORNERS, site-wide (this replaces the old zero-radius rule and its
        !important reset): 10px on cards and panels, 8px on buttons and inputs,
        pills for chips and status marks. Use the --radius-* tokens.
     3. No bundled or fetched fonts. Headings are the system serif stack above;
        body is system sans; figures use tabular numerals.
     4. Minimum 16px body, 1.55 line-height, visible 2px focus rings, and every
        text/background pair AA in BOTH themes. dev/check_contrast.py proves it.
   =========================================================================== */

/* --- tokens ---------------------------------------------------------------- */
:root {
  --color-bg: #f5efdc; --color-panel: #fbf8ee; --color-panel-2: #efe7d0; --color-field: #fffdf6;
  --color-text: #1a1814; --color-muted: #6b5d3c;
  --color-border: #e3d9bb; --color-hairline: #e3d9bb; --color-edge: #8c7b50;
  --color-header-bg: #2a2318; --color-header-bg-2: #1a1814; --color-header-text: #fbf8ee;
  --color-header-muted: #cdbf9c; --color-header-edge: #8c7b50; --color-header-rule: #4a3f2c;
  --color-accent: #8b3a1a; --color-accent-on-dark: #e0935c; --color-accent-contrast: #fffaf0;
  --color-brand: #ff3b24;
  --color-link: #8b3a1a; --color-btn-text: #8b3a1a; --color-focus: #8b3a1a;
  --color-ok: #5e6b3a; --color-warn: #6f5510; --color-wait: #a07f26; --color-danger: #a82e2e;
  --color-data: #7a6a45;
  --shadow: rgba(60, 45, 10, .22); --shadow-soft: rgba(60, 45, 10, .08); --sketch-alpha: .13;
  --wrap: 1080px;
  --measure: 72ch;
  --radius: 10px; --radius-sm: 8px; --radius-xs: 4px; --radius-pill: 999px;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
  --color-bg: #1a1814; --color-panel: #24211a; --color-panel-2: #2e2a20; --color-field: #1f1c16;
  --color-text: #f1ead6; --color-muted: #b8ab88;
  --color-border: #423b2b; --color-hairline: #423b2b; --color-edge: #8f8364;
  --color-header-bg: #100e0b; --color-header-bg-2: #0b0a08; --color-header-text: #f1ead6;
  --color-header-muted: #b8ab88; --color-header-edge: #8f8364; --color-header-rule: #3a3325;
  --color-accent: #e0935c; --color-accent-on-dark: #e0935c; --color-accent-contrast: #1a1814;
  --color-brand: #ff3b24;
  --color-link: #e0935c; --color-btn-text: #e0935c; --color-focus: #e0935c;
  --color-ok: #a9b874; --color-warn: #d8b24e; --color-wait: #d8b24e; --color-danger: #e8776c;
  --color-data: #b8ab88;
  --shadow: rgba(0, 0, 0, .5); --shadow-soft: rgba(0, 0, 0, .35); --sketch-alpha: .16;
  }
}

/* An explicit choice must win over the OS preference in BOTH directions, so the
   theme toggle can put a light page on a dark laptop and vice versa. Repeating
   the values rather than nesting the media query is what makes that possible. */
:root[data-theme="light"] {
  --color-bg: #f5efdc; --color-panel: #fbf8ee; --color-panel-2: #efe7d0; --color-field: #fffdf6;
  --color-text: #1a1814; --color-muted: #6b5d3c;
  --color-border: #e3d9bb; --color-hairline: #e3d9bb; --color-edge: #8c7b50;
  --color-header-bg: #2a2318; --color-header-bg-2: #1a1814; --color-header-text: #fbf8ee;
  --color-header-muted: #cdbf9c; --color-header-edge: #8c7b50; --color-header-rule: #4a3f2c;
  --color-accent: #8b3a1a; --color-accent-on-dark: #e0935c; --color-accent-contrast: #fffaf0;
  --color-brand: #ff3b24;
  --color-link: #8b3a1a; --color-btn-text: #8b3a1a; --color-focus: #8b3a1a;
  --color-ok: #5e6b3a; --color-warn: #6f5510; --color-wait: #a07f26; --color-danger: #a82e2e;
  --color-data: #7a6a45;
  --shadow: rgba(60, 45, 10, .22); --shadow-soft: rgba(60, 45, 10, .08); --sketch-alpha: .13;
}
:root[data-theme="dark"] {
  --color-bg: #1a1814; --color-panel: #24211a; --color-panel-2: #2e2a20; --color-field: #1f1c16;
  --color-text: #f1ead6; --color-muted: #b8ab88;
  --color-border: #423b2b; --color-hairline: #423b2b; --color-edge: #8f8364;
  --color-header-bg: #100e0b; --color-header-bg-2: #0b0a08; --color-header-text: #f1ead6;
  --color-header-muted: #b8ab88; --color-header-edge: #8f8364; --color-header-rule: #3a3325;
  --color-accent: #e0935c; --color-accent-on-dark: #e0935c; --color-accent-contrast: #1a1814;
  --color-brand: #ff3b24;
  --color-link: #e0935c; --color-btn-text: #e0935c; --color-focus: #e0935c;
  --color-ok: #a9b874; --color-warn: #d8b24e; --color-wait: #d8b24e; --color-danger: #e8776c;
  --color-data: #b8ab88;
  --shadow: rgba(0, 0, 0, .5); --shadow-soft: rgba(0, 0, 0, .35); --sketch-alpha: .16;
}

/* --- reset ----------------------------------------------------------------- */
* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;            /* pins the footer to the bottom of a short page */
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;                   /* 16px floor - rule 4 */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono, code, kbd, pre {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", SFMono-Regular, Consolas, monospace;
}

/* --- typography ------------------------------------------------------------ */
/* Serif headings in sentence case, as on the front page. Sizes step down hard so
   a page reads as a document. h4 stays the small uppercase label voice. */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
  color: var(--color-text);
}
h1 { font-size: 1.9rem;  margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 .6rem;
     display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
h3 { font-size: 1.08rem; margin: 0 0 .4rem; }
h4 { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
     color: var(--color-muted); margin: 1rem 0 .5rem; }

p { margin: 0 0 .9rem; }

/* Prose is capped at the reading measure; panels and tables are not, because a
   72ch table would wrap every cell. */
.lead, .hint { max-width: var(--measure); }
.lead { color: var(--color-text); margin: 0 0 1rem; }
.hint { color: var(--color-muted); font-size: .875rem; margin: 0 0 .9rem; }
.dim, .muted { color: var(--color-muted); }

/* An uppercase micro-label above a block. */
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .68rem; font-weight: 700; color: var(--color-muted);
}

a { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* A link that leaves this site says so, in the mark and in the accessible name. */

/* Rule 4: the ring is never removed, only styled. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* --- status strip ---------------------------------------------------------- */
/* A thin ink band above the header carrying environment facts, the theme
   toggle, and any off-site link. Mono and tiny: it is instrumentation, not nav. */
.statusbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
  padding: .45rem 1.4rem;
  background: var(--color-header-bg-2);
  color: var(--color-header-text);
  border-bottom: 1px solid var(--color-header-rule);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --color-focus: var(--color-accent-on-dark);
}
.statusbar .sp { flex: 1 1 auto; }                     /* the spacer */
.statusbar .lo { color: var(--color-header-muted); }
.statusbar .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #a9b874;   /* olive lamp on ink, both themes */
  display: inline-block; margin-right: .5rem;
}
.statusbar a { color: var(--color-header-text); text-decoration: none;
               border-bottom: 1px solid var(--color-header-edge); padding-bottom: 1px; }
.statusbar a:hover, .statusbar a:focus-visible { border-bottom-color: var(--color-accent-on-dark); }
/* The toggle and anything beside it ride as one cluster at the right end, with a
   tighter gap than the strip's own so they do not read as two separate facts. */
.statusbar .sb-actions { display: flex; align-items: center; gap: .6rem; }
.statusbar .theme {
  cursor: pointer; background: none; color: var(--color-header-text);
  border: 1px solid var(--color-header-edge); border-radius: var(--radius-pill);
  padding: .12rem .7rem; box-shadow: none;
  font: inherit; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
}
.statusbar .theme:hover { background: none; color: var(--color-header-text);
                          border-color: var(--color-header-text); }

/* --- header / nav ---------------------------------------------------------- */
/* The main bar: deep ink-brown, cream type, one rust rule underneath - the cover
   of the book the paper pages sit in. Dark in both themes, so the Red Cat mark,
   the location and the clock keep the same contrast whichever theme is on. */
.site-header {
  background: var(--color-header-bg);
  color: var(--color-header-text);
  border-bottom: 3px solid var(--color-accent-on-dark);
  --color-focus: var(--color-accent-on-dark);
}
.site-header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: .85rem 1.4rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}

.brand {
  display: flex; align-items: center; gap: .7rem;
  color: var(--color-header-text); text-decoration: none;
}
/* The Red Cat mark: a small square red tick. It keeps the company's own red
   rather than the theme's rust - it says whose site this is. */
.brand .mark { width: 12px; height: 12px; flex: none; background: var(--color-brand); border-radius: 2px; }
.brand .bname { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; }
.brand .sub { text-transform: uppercase; letter-spacing: .2em; font-size: .62rem; color: var(--color-header-muted); }

.site-nav { display: flex; gap: .35rem 1.3rem; flex-wrap: wrap; align-items: baseline; }
.site-nav a {
  color: var(--color-header-text); text-decoration: none;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--color-header-edge); }
.site-nav a.on, .site-nav a[aria-current="page"] { border-bottom-color: var(--color-accent-on-dark); }

/* Optional header accessories: where you are, and what time it is there. */
.hright { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.site, .clock { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.site b { font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.site span, .clock span { font-size: .7rem; color: var(--color-header-muted); letter-spacing: .03em; }
.clock { padding-left: 1.4rem; border-left: 1px solid var(--color-header-rule); min-width: 104px; }
.clock b {
  font-family: var(--font-serif); font-variant-numeric: tabular-nums lining-nums;
  font-size: 1.25rem; font-weight: 600; line-height: 1; letter-spacing: .01em;
}
.clock span { margin-top: 3px; }

@media (max-width: 820px) {
  .hright { margin-left: 0; width: 100%; justify-content: space-between; gap: .75rem;
            padding-top: .6rem; border-top: 1px solid var(--color-header-rule); }
  .site, .clock { text-align: left; }
  .clock { border-left: 0; padding-left: 0; align-items: flex-end; }
}

/* --- shell ----------------------------------------------------------------- */
main { max-width: var(--wrap); width: 100%; margin: 0 auto;
       padding: 1.75rem 1.4rem 3.5rem; flex: 1 0 auto; }

.site-footer {
  width: 100%; flex: none;
  border-top: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-muted); font-size: .78rem; letter-spacing: .02em;
}
.site-footer .finner {
  max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.4rem 1.1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.site-footer b { color: var(--color-text); font-weight: 700; }
/* A quiet footer link: muted ink like the line it sits in, underlined so it still
   reads as a link, rust on hover, and the standard focus ring. */
.site-footer a { color: var(--color-muted); text-decoration: underline;
                 text-decoration-color: var(--color-edge); text-underline-offset: 3px;
                 border-radius: var(--radius-xs); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--color-link);
                 text-decoration-color: currentColor; }
.site-footer a:hover b, .site-footer a:focus-visible b { color: inherit; }

/* --- panels ---------------------------------------------------------------- */
.panel {
  background: var(--color-panel); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: 0 1px 2px var(--shadow-soft);
  padding: 1rem 1.25rem; margin: 1rem 0;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.alert { border: 1px solid var(--color-danger); border-left-width: 4px; background: var(--color-panel);
         border-radius: var(--radius); padding: .75rem 1rem; font-weight: 600; }

/* --- tiles ----------------------------------------------------------------- */
/* A row of equal cards, each usually a link into a section. A rust edge on
   hover is what tells you the whole card is clickable. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
         gap: .75rem; margin-top: 1.1rem; }
.tile { display: block; background: var(--color-panel); padding: 1.1rem 1.15rem;
        border: 1px solid var(--color-border); border-radius: var(--radius);
        box-shadow: 0 1px 2px var(--shadow-soft);
        text-decoration: none; color: inherit; }
a.tile { transition: box-shadow .15s ease, transform .15s ease; }
a.tile:hover, a.tile:focus-visible { border-color: var(--color-accent);
        box-shadow: 0 2px 4px var(--shadow-soft), 0 12px 24px -14px var(--shadow-soft);
        transform: translateY(-1px); }
.tile h3 { margin: 0 0 .35rem; }
.tile p { margin: 0 0 .7rem; color: var(--color-muted); font-size: .875rem; max-width: 46ch; }
/* A tile whose whole job is one number. */
.tile.stat { background: var(--color-panel-2); box-shadow: none; }
.tile.stat h3 { font-size: 2.1rem; line-height: 1; margin-bottom: .35rem; color: var(--color-link);
                font-variant-numeric: tabular-nums lining-nums; }
.tile.stat p { font-size: .8rem; color: var(--color-text); margin: 0; }
.tile.muted { opacity: .62; }
.tile.muted:hover { box-shadow: none; transform: none; border-color: var(--color-border); }
@media (prefers-reduced-motion: reduce) { a.tile { transition: none; } a.tile:hover { transform: none; } }

/* --- buttons --------------------------------------------------------------- */
/* Default is the paper button: card ground, soft line, rust label. `.primary`
   (and a bare submit) is filled rust. One filled button per view is the intent -
   if two compete, make one ghost. */
button, .btn {
  display: inline-block; background: var(--color-panel); color: var(--color-btn-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: .55rem 1rem;
  font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: .01em; line-height: 1.3;
  text-decoration: none; cursor: pointer; text-align: center;
}
button:hover, .btn:hover { background: var(--color-panel-2); border-color: var(--color-accent); }
button[type="submit"], .btn.primary, button.primary {
  background: var(--color-accent); border-color: var(--color-accent);
  color: var(--color-accent-contrast); box-shadow: 0 1px 2px var(--shadow-soft);
}
button[type="submit"]:hover, .btn.primary:hover, button.primary:hover {
  background: var(--color-accent); color: var(--color-accent-contrast); filter: brightness(1.1);
}
/* Ghost: the quiet alternative. Never rust - discarding, cancelling and going
   back must never look like the thing you are being invited to do. */
.btn.ghost, button.ghost, .btn.quiet, button.quiet {
  background: transparent; color: var(--color-muted); border-color: var(--color-border);
  box-shadow: none; filter: none;
}
.btn.ghost:hover, button.ghost:hover, .btn.quiet:hover, button.quiet:hover {
  background: transparent; color: var(--color-text); border-color: var(--color-edge); filter: none;
}
.btn.small, button.small { padding: .28rem .7rem; font-size: .8rem; }
button:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }

.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .8rem; }
form.inline { display: inline; margin: 0; }

/* --- forms ----------------------------------------------------------------- */
label { display: flex; flex-direction: column; gap: .3rem;
        text-transform: uppercase; letter-spacing: .07em;
        font-size: .7rem; font-weight: 700; color: var(--color-muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="file"],
input:not([type]), select, textarea {
  width: 100%; max-width: 100%;
  background: var(--color-field); color: var(--color-text);
  border: 1px solid var(--color-edge); border-radius: var(--radius-sm); padding: .55rem .7rem;
  font: inherit; font-size: 1rem;
}
input[type="file"] { padding: .45rem .5rem; font-size: .875rem; }
input::placeholder, textarea::placeholder { color: var(--color-muted); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-accent); }

/* The standard form block: a card of fields with the action at the end. */
form.upload {
  display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap;
  background: var(--color-panel); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: 0 1px 2px var(--shadow-soft);
  padding: 1rem 1.15rem;
}
form.upload label { flex: 1; min-width: 190px; }
/* A checkbox with its word beside it, not above it. */
label.inline { display: inline-flex; flex-direction: row; align-items: center; gap: .4rem; }

fieldset { border: 1px solid var(--color-border); border-radius: var(--radius);
           margin: 1rem 0; padding: 1rem 1.15rem; }
legend { text-transform: uppercase; letter-spacing: .09em; font-size: .7rem;
         font-weight: 700; padding: 0 .5rem; color: var(--color-muted); }

/* --- tables ---------------------------------------------------------------- */
/* border-collapse: separate is what lets the table carry rounded corners. */
.table-wrap { overflow-x: auto; margin: 0 0 .9rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem;
        background: var(--color-panel); border: 1px solid var(--color-border);
        border-radius: var(--radius); overflow: hidden; }
th { text-align: left; text-transform: uppercase; letter-spacing: .08em;
     font-size: .7rem; color: var(--color-muted); background: var(--color-panel-2);
     padding: .6rem .8rem; border-bottom: 1px solid var(--color-border); }
td { padding: .6rem .8rem; border-bottom: 1px solid var(--color-hairline); vertical-align: top; }
tbody th { background: transparent; border-bottom: 1px solid var(--color-hairline); }
tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { font-variant-numeric: tabular-nums; }

/* --- chips, badges, counts ------------------------------------------------- */
/* One shape - a small pill on the tile ground - and the ink carries the state.
   Only the filled one shouts. */
.chip, .badge, .count, .tag {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  background: var(--color-panel-2); padding: .08rem .6rem;
  font-family: var(--font-sans);
  font-size: .7rem; font-weight: 600; letter-spacing: .04em; line-height: 1.5;
  white-space: nowrap; color: var(--color-muted);
}
.count { font-variant-numeric: tabular-nums lining-nums; }
.badge { color: var(--color-muted); }
.chip.ok      { color: var(--color-ok);   border-color: color-mix(in srgb, var(--color-ok) 45%, transparent); }
.chip.warn    { color: var(--color-warn); border-color: color-mix(in srgb, var(--color-wait) 60%, transparent); }
.chip.accent, .badge.accent { color: var(--color-link); border-color: var(--color-accent); }
.chip.loud    { background: var(--color-accent); color: var(--color-accent-contrast);
                border-color: var(--color-accent); }
.chip.quiet   { color: var(--color-muted); background: transparent; }
/* A copyable value: mono, selectable in one click. */
.chip.pick { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0;
             font-size: .8rem; font-weight: 400; user-select: all; cursor: copy;
             border-radius: var(--radius-xs);
             color: var(--color-text); border-color: var(--color-border); }

/* A pulsing dot marks work in flight. */
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none;
             animation: bo-pulse 1.4s ease-in-out infinite; }
@keyframes bo-pulse { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }

.ok   { color: var(--color-ok);   font-weight: 700; }
.warn { color: var(--color-warn); font-weight: 700; }

/* --- busy overlay ---------------------------------------------------------- */
/* For any form that posts synchronously and takes real seconds. Without it the
   page looks broken and people submit twice. Markup: #busy > .busybox. */
.busy { position: fixed; inset: 0; z-index: 50;
        display: flex; align-items: center; justify-content: center;
        background: rgba(26, 24, 20, .6); backdrop-filter: blur(2px); }
.busy[hidden] { display: none; }
.busybox {
  background: var(--color-panel); border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent); border-radius: var(--radius);
  padding: 1.6rem 1.9rem; max-width: 340px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  box-shadow: 0 24px 60px -20px var(--shadow);
}
.busybox b { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }
.busybox span { font-size: .8rem; color: var(--color-muted); line-height: 1.5; }
.spinner { width: 30px; height: 30px; margin-bottom: .2rem; border-radius: 50%;
           border: 3px solid var(--color-hairline); border-top-color: var(--color-accent);
           animation: bo-spin .9s linear infinite; }
@keyframes bo-spin { to { transform: rotate(360deg) } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
  .chip .dot { animation: none; opacity: .85; }
}

/* --- print ----------------------------------------------------------------- */
@media print {
  :root { --color-bg: #FFFFFF; --color-panel: #FFFFFF; --color-panel-2: #FFFFFF; --color-text: #000000;
          --color-muted: #333333; --color-link: #000000; --color-border: #000000; }
  .statusbar, .site-header, .busy, .no-print, form, button { display: none !important; }
  body { background: #FFFFFF; color: #000000; font-size: 11pt; }
  main { max-width: none; padding: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
