/* tokens:start (copied from tokens.css by tools/sync-tokens.mjs; edit tokens.css, never here) */
:root {
  /* THE ONE PLACE A SCREEN COLOUR IS WRITTEN (13 Nov 2026). Before this
     file the app and its seven tool pages carried eight :root blocks of
     their own (114 colour tokens, one name sometimes meaning two colours)
     and 498 literal colours outside them, and the dark-mode preview had
     to rewrite every rule that held one. Every value here is exactly the
     literal it replaced, so light mode is unchanged to the pixel.
     Pages do not link this file: each stylesheet carries a copy between
     tokens:start and tokens:end, written by tools/sync-tokens.mjs,
     because serving a new file would have meant a new route in the
     frozen server and a new door past the login on the worker pages.
     Edit here, then run the script; a test fails on any copy that
     differs. Since 13 Nov 2026 this file holds three blocks (light, the
     dark values, the paper that stays light) and each copy is this file
     followed by what the script makes of it: the dark list again for a
     device set to dark, paper, and print. Server code reads the values
     through deploy/beta/kasq-tokens.mjs, never by inlining this file. */
  /* NAMED BY ROLE, GROUPED BY FAMILY (13 Nov 2026). The first cut named
     the new tokens by hue and lightness (--bg-amber-94-2, --text-grey-36)
     because that was all a literal said; dark mode gives every token a
     second value, and a second value is chosen by what a colour DOES, not
     by what it looked like. So each name now says its job, tokens with
     the same value and the same job became one, and a token that did two
     jobs (--accent was both a fill and a text colour) became one token per
     job, each still at its old light value. 298 tokens became 284, light
     mode unchanged to the pixel (pixel and resolved-rule proofs in the
     pull request, which lists every old -> new name). */

  /* LIGHT IS THIS BLOCK, DARK IS THE NEXT ONE (13 Nov 2026). Form
     controls, scrollbars and the browser's own widgets follow
     color-scheme, so it is set with the colours, never apart from them. */
  color-scheme: light;

  /* ---- Grounds: the page, panels, and the neutral fills on them ---- */
  --bg: #f8f8f7;
  --panel: #ffffff;
  --surface-subtle: #f2f2f1;
  --grey-bg: #ededec;
  --pressed: #e4e4e3;
  --user-bubble: #f0f1f0;
  --disabled-bg: #d6d9d4;
  --grey-bg-note: #eef5f1;
  --grey-bg-check-mark: #e6e6e2;
  --grey-bg-build: #f7f8f7;
  --check-desk-bg: #eceef0;
  --kit-pressed-bg: #eef4f1;
  --plans-state-bg: #f4f3ef;
  --papers-stage-bg: #eceae4;
  --papers-hover-bg: #f4f1ea;
  --strikes-waiting-bg: #f1efe9;
  --strikes-ticket-bg: #eef1f0;
  --work-bg: #f2f7f4;
  --holding-bg: #faf9f6;
  --take5-disabled-bg: #9db3a9;
  --take5-done-bg: #f2f8f5;
  --take5-sheet-bg: #fbfcfb;
  /* FILLS THAT CARRY WHITE TEXT (13 Nov 2026). These rules painted their
     ground with an INK token (--ink, --muted) and wrote white on it. In
     dark mode an ink turns pale and white on it measured 1.1 (the toast)
     and 2.2 (the file badge), so each now reads a fill of its own, at the
     very same light value. */
  --toast-bg: #1a1a1a;
  --file-mark-fill: #6e6e73;
  /* The signs tool's "turn" arrow is a picture in a data URI, and a url()
     cannot read var() inside it, so the whole picture is the token: the
     same arrow, its stroke dark ink in light and pale ink in dark (13 Nov
     2026). No ";charset" in it: a token value holds no semicolon. */
  --signs-turn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e2c2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpolyline points='21 3 21 9 15 9'/%3E%3C/svg%3E");

  /* ---- Text: ink and its quieter steps ---- */
  --ink: #1a1a1a;
  --muted: #6e6e73;
  --disabled-ink: #5f6862;
  --grey-ink-optional: #6b7477;
  --signin-placeholder: #a8b2ba;
  --strikes-ink-strong: #14261e;
  --strikes-ink: #3b4a44;
  --strikes-ink-quiet: #7d8a84;
  --havs-ink-head: #8f8f87;
  --havs-ink-soft: #5b5b5b;
  --havs-ink-strong: #111111;
  --holding-ink: #1d2730;
  --holding-muted: #5f6e7c;

  /* ---- Lines: borders and rules ---- */
  --line: #e5e5e5;
  --line-subtle: #efefee;
  --line-strong: #c9c9c8;
  --inside-row-line: #f2f2f1;
  --holding-line: #e6e4de;
  --work-line-strong: #c6d5cd;
  --work-line: #cfe0d7;
  --work-line-soft: #dfeae4;
  --work-line-faint: #eef4f1;
  --take5-disabled-line: #9db3a9;
  --havs-line-cell: rgba(0,0,0,0.12);
  --havs-line-blank: rgba(0,0,0,0.18);
  --havs-line-heavy: #1c1c1c;
  --havs-line-write: #999999;
  --havs-row-gap: #ffffff;
  --grey-line-check-mark: #7a7a74;

  /* ---- Accent: the one green. --accent fills buttons and draws the
     lines and edges of chosen things; --accent-text is the same green
     used AS TEXT (links, "STEP 1 OF 1", ticks). They are one colour in
     light mode and split on purpose: white on #0b6e4f is 6.3, so the
     fill stays the same in dark, but as text on a dark page it would be
     unreadable (the owner's call, 13 Nov 2026). ---- */
  --accent: #0b6e4f;
  --accent-text: #0b6e4f;
  --accent-ink: #ffffff;
  --accent-hover: #095f45;
  /* "Ready" in the top bar is the hover green AS TEXT (#095f45, not the
     #0b6e4f of --accent-text), so it has its own name: in dark it takes
     the text green, the hover fill keeps a fill (13 Nov 2026). */
  --accent-text-hover: #095f45;
  /* THE FOCUS RING (13 Nov 2026): the accent green in light, the text
     green in dark, where #0b6e4f measured 2.82 against a panel - under the
     3 a focus indicator needs to be seen. Same light value as --accent. */
  --focus-ring: #0b6e4f;
  --accent-pressed: #074e39;
  /* THE ONE PICKED LOOK (the owner's call, 2 September 2026): a chosen
     option pill is the lightest green tint, a single hairline of the
     accent, and ink text - everywhere. Nine different selected looks
     grew here before anybody counted them. */
  --picked: #eaf3ee;
  --accent-soft: #e6f2ec;
  --accent-veil: rgba(11,110,79,0.08);
  --accent-veil-sweep: rgba(31,92,70,0.1);
  --accent-focus-ring: rgba(11,110,79,0.12);
  --accent-glow-strong: rgba(11,110,79,0.45);
  --accent-glow-soft: rgba(11,110,79,0.18);
  --accent-glow-clear: rgba(11,110,79,0);
  --papers-ghost-glow: rgba(11,110,79,0.25);
  --plans-buy-hover: #095c42;
  --plans-tick: rgba(11,110,79,0.55);

  /* ---- Amber: action needed ---- */
  --amber-bg: #fdf4e3;
  --amber-line: #e3b45c;
  --amber-ink: #6b4a00;
  /* The tool pages' one amber (2 Sep 2026): text and its line. */
  --audit-warn: #8a5a00;
  --audit-warn-line: #8a5a00;
  --warn-soft: #fdf3d7;
  --amber-bg-notice: #fff8e6;
  --amber-bg-coshh: #fdf6e3;
  --amber-bg-havs: #fdf3e0;
  --amber-bg-kit: #fff8e7;
  --amber-bg-check-mark: #fbe7c2;
  --amber-bg-check-quote: #fdf6e9;
  --amber-bg-check-ledger: #fdf6ec;
  --amber-line-plans: #ecd9a3;
  --amber-line-coshh: #e6d49a;
  --amber-line-rams: #c9a227;
  --amber-line-kit: #d8a400;
  --amber-line-log: #b8860b;
  --amber-line-tool: #e8d6a8;
  --amber-line-strikes: #8a6100;
  --amber-line-check: #b26a00;
  --amber-line-check-mark: #b26a00;
  --amber-ink-plans: #4a3b12;
  --amber-ink-havs: #4a3a12;
  --amber-ink-kit: #6b4700;
  --amber-ink-coshh: #7a5a12;
  --amber-ink-strikes: #8a6100;
  --amber-ink-rams-state: #8a6d0c;
  --amber-ink-rams-heading: #8a6d1d;
  --amber-ink-check: #7a4a00;
  --amber-ink-check-topic: #b26a00;
  --check-pulse: #ffd966;

  /* ---- Red: stop, danger, remove ---- */
  --red-bg: #fbeeee;
  --red-line: #dca3a3;
  --red-ink: #7a2727;
  --risk: #b3261e;
  --risk-line: #b3261e;
  --risk-fill: #b3261e;
  /* The conduct board's level-3 pip and chip, the danger button and the
     bad toast are FILLED with the red ink, with white on them. Same light
     value as --red-ink; in dark the ink turns pale (white on it 1.75), so
     the fill keeps a solid red (13 Nov 2026). */
  --red-fill: #7a2727;
  --risk-soft: #fbdedc;
  --red-bg-havs: #fbe5e2;
  --red-bg-kit: #fdeceb;
  --red-bg-strikes: #fffafa;
  --red-bg-check-mark: #f7d4d0;
  --red-line-remove: #e3b7b3;
  --red-line-remove-hover: #cc9999;
  --red-line-danger-row: #f0cfcd;
  --red-ink-settings: #5a2f2f;
  --red-ink-havs: #8c1d18;
  --red-ink-work-remove: #a4342c;
  --red-ink-remove-hover: #aa3333;
  --account-red-ink: #8a2b2b;
  --account-red-line: #e6c9c9;
  --account-red-line-soft: #ecd6d6;
  --account-red-bg: #fdf8f8;
  --account-red-bg-hover: #fbf1f1;
  --offline: #c34a4a;
  --file-pdf: #d0463b;

  /* ---- Info: blue ---- */
  /* Reserved for informational notices - defined once, unused until a
     screen earns it, so nobody invents an ad-hoc blue later. */
  --info-bg: #edf4fb;
  --info-line: #9dbddd;
  --info-ink: #24557a;
  --info-bg-check-mark: #d9e6f5;
  --info-line-check-mark: #2f5d9a;
  --file-doc: #2b5797;

  /* ---- Green: done, clear, in limits (not the accent) ---- */
  /* LIVE means happening NOW - a sensor connected, data flowing, an
     answer being written. Never a second accent: the moment it decorates
     anything static it stops meaning anything. */
  --live: #19c08a;
  --green-bg-check-mark: #dff0e3;
  --green-bg-check-added: #f1f8f3;
  --green-bg-viewer: #e6efe9;
  --green-bg-havs: #e6f2e6;
  --green-ink-havs: #1d3b30;
  --green-ink-strikes: #14432c;
  --green-ink-check: #2f6b43;
  --strikes-line-clear: #bcd8ca;
  --strikes-line-clear-badge: #cfe6da;

  /* ---- Orange: the conduct board's level 2 ---- */
  --orange: #9a3d00;
  --orange-back: #ffe8d7;

  /* ---- Violet: the "old site" mark ---- */
  --violet-bg: #e9dcf3;
  --violet-ink: #6b3f9a;
  --violet-line: #6b3f9a;

  /* ---- Scales: solid ladders that must read as a gradient of risk ---- */
  /* The strikes/tickets scale only - like the drops scale below, a
     deliberate SOLID ladder: a pale amber chip beside a solid red one
     reads as "nothing much", and a ticket with three weeks left is the
     one an office can still act on (see strikes-tickets.test.mjs).
     Everything outside these two scales speaks the quiet token pairs. */
  --scale-orange: #C77700;
  --scale-red: #B3261E;
  --red: #b3261e;
  --strikes-level-1-edge: #d99a00;
  --strikes-level-2-edge: #e06000;
  /* The drops severity scale only - the DROPS Calculator's own four bands
     (Slight/Minor/Major/Fatality). Deliberately more saturated than the
     muted --amber-line/--red-line pair above: this is the one place on
     the page a colour has to read as a risk gradient at a glance (the
     chart's zone fill, its legend, the verdict card's edge and the live
     readout) rather than sit quietly the way most of KASQ's UI does. */
  --drops-slight: #219a4d;
  --drops-minor: #ffc20f;
  --drops-major: #ff5b0b;
  --drops-fatality: #e3191e;
  /* Chart-FILL variants. The four above are badge colours: they sit on a
     verdict card the size of a stamp, and at that size full strength is
     right. The chart paints the same colours across the whole plot, and a
     reading deep in the fatality band turns most of the picture into a wall
     of #e3191e, which is tiring to look at and makes the boundary lines
     harder to pick out. Only the two hottest are softened, and only for the
     large fills - the legend swatch reads from these too, so the key can
     never disagree with the band it labels. Slight and minor had fill
     twins at the very same values; since 13 Nov 2026 the chart reads their
     badge tokens instead (app-drops.mjs). */
  --drops-major-fill: #f5590f;
  --drops-fatality-fill: #d42128;
  /* The DROPS glass readout that floats over the chart. */
  --drops-glass: rgba(255,255,255,0.5);
  --drops-glass-shine: rgba(255,255,255,0.45);
  --drops-glass-clear: rgba(255,255,255,0);
  --drops-glass-tint: rgba(240,255,242,0.2);
  --drops-glass-tint-soft: rgba(240,255,242,0.1);
  --drops-glass-tint-edge: rgba(230,250,236,0.06);
  --drops-glass-line: rgba(255,255,255,0.85);
  --drops-glass-line-slight: rgba(33,154,77,0.6);
  --drops-glass-line-minor: rgba(255,194,15,0.75);
  --drops-glass-line-major: rgba(255,91,11,0.7);
  --drops-glass-line-fatality: rgba(227,25,30,0.65);
  --drops-glass-inner: rgba(255,255,255,0.95);
  --drops-glass-ink: #2f3b45;
  --drops-glass-ink-glow: rgba(255,255,255,0.6);
  --drops-glass-ink-halo: rgba(255,255,255,0.9);
  --drops-glass-dot: #2f3b45;
  --drops-glass-pill: #5f6e7c;
  /* The noise gauge and the HAVS dots: each edge matches its band or dot. */
  --noise-band-low: #2b6643;
  --noise-band-mid: #d08a1a;
  --noise-band-high: #e63b25;
  --noise-tick: rgba(255,255,255,0.9);
  --noise-line-amber: #d08a1a;
  --noise-line-red: #e63b25;
  --noise-ink-green: #2b6643;
  --noise-ink-amber: #b06a00;
  --noise-ink-red: #e63b25;
  --havs-dot-green: #2e7d32;
  --havs-dot-amber: #f2a900;
  --havs-dot-red: #c62828;
  --havs-edge-green: #2e7d32;
  --havs-edge-amber: #f2a900;
  --havs-edge-red: #c62828;
  --havs-scan-sweep: rgba(46,125,50,0.3);
  --havs-scan-glow: rgba(46,125,50,0.35);
  --havs-scan-glow-clear: rgba(46,125,50,0);

  /* ---- Over a photograph: the home page's wash and the words on it,
     and the badges on photo thumbnails. Photographs stay as they are in
     any theme, so these keep their values when the rest changes. ---- */
  --photo-wash-deep: rgba(0,0,0,0.82);
  --photo-wash-strong: rgba(0,0,0,0.6);
  --photo-wash-soft: rgba(0,0,0,0.2);
  --photo-wash-faint: rgba(0,0,0,0.05);
  --photo-wash-foot: rgba(0,0,0,0.32);
  --photo-wash-veil: rgba(0,0,0,0.08);
  --photo-wash-clear: rgba(0,0,0,0);
  --photo-shade: rgba(0,0,0,0.55);
  --photo-ink: rgba(255,255,255,0.9);
  --photo-ink-soft: rgba(255,255,255,0.8);
  --photo-chip: rgba(20,32,27,0.72);
  --photo-badge-loading: rgba(255,255,255,0.7);
  --photo-badge-ink: #5b6660;
  /* THE GROUND UNDER THE HOME PAGE'S PHOTOGRAPH (14 Nov 2026). The hero
     was painted --ink, the text colour, with white words over it: in dark
     --ink turns near-white and the words vanished until the picture came
     in. Its own token, the value --ink had, the same in both modes. */
  --photo-ground: #1a1a1a;
  /* THE PHOTOGRAPHS ARE BLACK AND WHITE (14 Nov 2026, the owner's choice,
     seen live in both modes): green stays the only colour on the page. NOT
     A COLOUR: a CSS filter, read only by the rule for img[data-photo] (the
     mark kasq-site.mjs sets where it draws a photograph) - an image without
     the mark is untouched. Plain grey in light; in dark dimmed, with the faintest cool
     green, so highlights do not glare on the dark ground. On paper, in
     print and under forced colours it is none (the paper block below). */
  --photo-filter: grayscale(1);

  /* ---- Paper: what is printed or stands for a sheet of paper (the
     toolbox-talk A4 sheet, the Take 5 page, the Word preview, a tool
     page's example sheet and the white frame behind an uploaded logo).
     Paper is white with dark ink whatever the screen. ---- */
  --example-paper: #ffffff;
  --sheet-ink: #1d2730;
  --sheet-ink-small: #55636f;
  --sheet-ink-declaration: #37424b;
  --sheet-ink-ref: #555555;
  --sheet-ink-trainer: #7d746a;
  --sheet-ink-plain: #3c5b4d;
  --sheet-ink-plain-em: #8a6d1f;
  --sheet-line-head: #1d2730;
  --sheet-line-table: #9aa5ae;
  --sheet-line-foot: #cfd6db;
  --sheet-line-stake: #b77a1c;
  --sheet-line-trainer: #e2dece;
  --sheet-bg-table-head: #f1f0ec;
  --sheet-bg-stake: #fcf6e8;
  --sheet-bg-trainer: #f6f4ee;
  --sheet-veil-fold: rgba(255,255,255,0.94);
  --sheet-zoom-bg: rgba(29,39,48,0.62);
  --sheet-zoom-bg-hover: rgba(29,39,48,0.82);
  --take5-ink: #111111;
  --take5-label-ink: #5b5b5b;
  --take5-placeholder: #8fa79b;
  --take5-label-placeholder: #b9c2bd;
  --take5-page-shadow: rgba(0,0,0,0.05);
  /* The Take 5 tint's own green, as channels for rgb(var(--t5-box) /
     alpha), and the ONLY green on that page that is not --accent. It is
     the sheet's accent taken up a tenth in saturation (hsl 161.2 81.8%
     23.7% -> 90% 23.7%), asked for on 25.08.2026: at the depths these
     tints are laid on, the accent as it stands reads grey-green rather
     than green on an office screen. The brand colour itself is untouched
     - this is a wash, not a repaint. It sat on #take5-view, the TOOL and
     not the boxes, because the crosses and pluses on the table's header
     row are not boxes and need exactly the same green; since 13 Nov 2026
     it sits here on :root with every other colour, which covers both and
     is used by nothing outside #take5-view. */
  --t5-box: 6 115 81;
  --check-doc-current-bg: #fff6d8;
  --check-doc-current-halo: #fff6d8;
  --check-doc-edited-bg: #eaf7ee;
  --check-doc-edited-halo: #eaf7ee;
  --doc-paper-shadow-near: rgba(0,0,0,0.18);
  --doc-paper-shadow-far: rgba(0,0,0,0.1);
  --papers-ghost-ring: #ffffff;

  /* ---- The tool pages' family (audit, audit report, kit, log, the
     conduct board, Take 5, work). Where a tool used an app name for a
     different colour it has its own name here (--tool-ink, --tool-line),
     because every page receives every token and the tool's value must
     not overwrite the app's. --tool-line is a border; --tool-fill is the
     same grey used as a ground. ---- */
  /* The three levels and "put right". Observation is quiet, action is
   * amber, stop is red, done is the green everything else in KASQ says
   * yes with. Every one of them is also written in words beside it. */
  --ground: #f6f8f7;
  --tool-ink: #14201b;
  --ink-soft: #33403a;
  --quiet: #5b6660;
  --tool-line: #d6ded9;
  --tool-fill: #d6ded9;
  --edge: #b9c4be;
  --note: #5b6660;
  --note-soft: #eef1ef;

  /* ---- Shadows, scrims and veils, and the dark stages (the signature
     pad, the photo viewer) that are dark in any theme ---- */
  --shadow: 0 1px 2px rgba(29, 39, 48, 0.05), 0 4px 16px rgba(29, 39, 48, 0.05);
  --shadow-soft: rgba(29,39,48,0.08);
  --shadow-tab: rgba(29,39,48,0.06);
  --shadow-topic: rgba(0,0,0,0.04);
  --shadow-menu-near: rgba(29,39,48,0.05);
  --shadow-menu-far: rgba(29,39,48,0.14);
  --shadow-window: rgba(0,0,0,0.22);
  --shadow-signs-cell: rgba(0,0,0,0.12);
  --shadow-signs-drag: rgba(0,0,0,0.16);
  --shadow-signs-list: rgba(29,39,48,0.12);
  --shadow-sign-near: rgba(46,44,43,0.16);
  --shadow-sign-far: rgba(46,44,43,0.3);
  --shadow-sign-drag: rgba(46,44,43,0.35);
  --shadow-papers-zoom: rgba(15,23,30,0.12);
  --shadow-papers-page: rgba(15,23,30,0.16);
  --shadow-drops-glass: rgba(29,39,48,0.18);
  --shadow-viewer-card: rgba(10,16,14,0.35);
  --scrim: rgba(15,23,30,0.35);
  --scrim-side: rgba(15,23,30,0.3);
  --scrim-dialog: rgba(29,39,48,0.35);
  --scrim-ask: rgba(20,25,23,0.45);
  --scrim-caption: rgba(15,23,30,0.6);
  --scrim-viewer: rgba(15,23,30,0.72);
  --hover-veil: rgba(0,0,0,0.045);
  --hover-veil-row: rgba(29,39,48,0.03);
  --hover-veil-tab: rgba(29,39,48,0.05);
  --papers-veil-zoom: rgba(236,234,228,0.94);
  --papers-veil-hover: rgba(255,255,255,0.75);
  --scrollbar-thumb: rgba(29,39,48,0.22);
  --scrollbar-thumb-hover: rgba(29,39,48,0.4);
  --scrollbar-track-thumb: rgba(29,39,48,0.25);
  --scrollbar-thumb-tool: rgba(22,25,26,0.22);
  --scrollbar-thumb-hover-tool: rgba(22,25,26,0.4);
  --scrollbar-track-thumb-tool: rgba(22,25,26,0.25);
  --pad-stage: rgba(10,14,12,0.96);
  --pad-line-canvas: rgba(255,255,255,0.14);
  --pad-line-button: rgba(255,255,255,0.35);
  --stage-focus: #ffffff;
  --on-dark-ink-soft: rgba(255,255,255,0.75);
  --viewer-line-shut: rgba(255,255,255,0.55);
  --viewer-shut-hover: rgba(255,255,255,0.14);
  /* ---- The home page (the v19 mockup, 15 Nov 2026) ---- */
  /* THE HOME PAGE IS THE OWNER'S MOCKUP, PORTED AS IT IS
     (~/kasq-home-v19-mockup.html, deploy/beta/kasq-home-style.mjs and
     home-demos/). Where the mockup's colour is one of these tokens' own it
     uses the token (--bg, --panel, --ink, --muted, --line, --accent,
     --accent-text, --picked); these are the mockup's other colours, each
     its value there. Most are over the hero's photograph, on its always-dark
     form, on paper, or a shadow, and the mockup keeps them in both modes. */
  --home-photo-ground: #111111;
  --home-photo-wash-1: rgba(0,0,0,0.88);
  --home-photo-wash-2: rgba(0,0,0,0.72);
  --home-photo-wash-3: rgba(0,0,0,0.5);
  --home-on-photo: #ffffff;
  --home-on-photo-strong: rgba(255,255,255,0.85);
  --home-on-photo-soft: rgba(255,255,255,0.72);
  --home-on-photo-faint: rgba(255,255,255,0.55);
  --home-on-photo-line: rgba(255,255,255,0.16);
  --home-on-photo-veil: rgba(255,255,255,0.14);
  --home-white-veil-8: rgba(255,255,255,0.08);
  --home-dark-panel: #16191b;
  --home-dark-ground: #0d0f10;
  --home-dark-line: #2c3135;
  --home-dark-ink: #f3f4f2;
  --home-dark-muted: #a9afb4;
  --home-dark-green-text: #8fcfb3;
  --home-dark-picked: #15261f;
  --home-dark-picked-line: #2d5a47;
  --home-paper-ink: #1a1a1a;
  --home-paper-ink-soft: #444444;
  --home-paper-ink-faint: #8a8a8f;
  --home-paper-line-strong: #d9d9d9;
  --home-paper-head: #f4f4f3;
  --home-paper-rule: #2c3540;
  --home-paper-signature: #1d3557;
  --home-paper-note-bg: #fdf3e3;
  --home-paper-note-line: #d9963a;
  --home-paper-bar: #e9e9e7;
  --home-paper-hit: #f6e3a6;
  --home-paper-dot: #d5d5d2;
  --home-sign-blue: #005387;
  --home-glass-1: rgba(255,255,255,0.92);
  --home-glass-2: rgba(255,255,255,0.78);
  --home-amber-bg: #fbf3dc;
  --home-amber-line: #e6cf8f;
  --home-amber-ink: #6b4e00;
  --home-alarm: #d7222a;
  --home-alarm-bg: #fbe9e7;
  --home-alarm-ink: #8a1c14;
  --home-ok-line: #2b8a62;
  --home-ok-bg: #dff1e8;
  --home-ok-ink: #0b5a40;
  --home-green-veil-0: rgba(11,110,79,0);
  --home-green-veil-5: rgba(11,110,79,0.05);
  --home-green-veil-14: rgba(11,110,79,0.14);
  --home-green-veil-22: rgba(11,110,79,0.22);
  --home-green-veil-25: rgba(11,110,79,0.25);
  --home-green-veil-28: rgba(11,110,79,0.28);
  --home-green-veil-45: rgba(11,110,79,0.45);
  --home-green-veil-50: rgba(11,110,79,0.5);
  --home-green-veil-55: rgba(11,110,79,0.55);
  --home-green-veil-75: rgba(11,110,79,0.75);
  --home-pale-green-veil-25: rgba(143,207,179,0.25);
  --home-pale-green-veil-50: rgba(143,207,179,0.5);
  --home-shadow-25: rgba(0,0,0,0.25);
  --home-shadow-28: rgba(0,0,0,0.28);
  --home-shadow-30: rgba(0,0,0,0.3);
  --home-shadow-35: rgba(0,0,0,0.35);
  --home-shadow-40: rgba(0,0,0,0.4);
  --home-shadow-50: rgba(0,0,0,0.5);
  /* THE HERO'S SIGN-IN BUTTONS ARE THE COMPANIES' OWN (16 Nov 2026, the
     owner: "with their official marks used the way each company's brand
     rules allow"). Each its light theme's values from its branding page:
     Google's "Sign in with Google" button (developers.google.com/identity/
     branding-guidelines) and Microsoft's "Sign in with Microsoft" button
     (learn.microsoft.com, identity platform, branding guidelines). */
  --home-google-fill: #ffffff;
  --home-google-line: #747775;
  --home-google-ink: #1f1f1f;
  --home-ms-fill: #ffffff;
  --home-ms-line: #8c8c8c;
  --home-ms-ink: #5e5e5e;
  /* A white tick, as the mockup draws a stage that is done. */
  --home-tick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* DARK: THE SAME NAMES, THEIR SECOND VALUE, WRITTEN ONCE (13 Nov 2026).
   Every value was chosen by the owner or proposed from the nearest value
   he chose and approved by him (the table in the pull request). A token
   whose colour must not change in dark (a photograph's wash, paper, a
   solid risk scale, a scrim) is not declared here: it is NAMED in a "same
   in dark" comment with its reason, and tests/colour-tokens.test.mjs
   fails on a token that is in neither. This block is the switch's choice
   ("dark" stored in this browser). tools/sync-tokens.mjs writes the same
   list a second time, into each stylesheet's copy, under
   @media (prefers-color-scheme: dark) for :root:not([data-theme="light"]):
   with no choice stored the page follows the device, with no script. */
:root[data-theme="dark"] {
  color-scheme: dark;
  /* ---- Grounds ---- */
  --bg: #0d0f10;
  --panel: #16191b;
  --surface-subtle: #121517;
  --grey-bg: #1c2023;
  --pressed: #23282b;
  --user-bubble: #1f2427;
  --disabled-bg: #23282b;
  --grey-bg-note: #121517;
  --grey-bg-check-mark: #23282b;
  --grey-bg-build: #0d0f10;
  --check-desk-bg: #1c2023;
  --kit-pressed-bg: #121517;
  --plans-state-bg: #121517;
  --papers-stage-bg: #1c2023;
  --papers-hover-bg: #1c2023;
  --strikes-waiting-bg: #1c2023;
  --strikes-ticket-bg: #121517;
  --work-bg: #0d0f10;
  --holding-bg: #0d0f10;
  --take5-disabled-bg: #23282b;
  --take5-done-bg: #0d0f10;
  --take5-sheet-bg: #16191b;
  --toast-bg: #23282b;
  --file-mark-fill: #5f6e7c;
  --signs-turn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f4f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpolyline points='21 3 21 9 15 9'/%3E%3C/svg%3E");

  /* ---- Text ---- */
  --ink: #f3f4f2;
  --muted: #a9afb4;
  --disabled-ink: #a9afb4;
  --grey-ink-optional: #a9afb4;
  --signin-placeholder: #7d8287;
  --strikes-ink-strong: #ebedec;
  --strikes-ink: #caced0;
  --strikes-ink-quiet: #989ea3;
  --havs-ink-head: #93999e;
  --havs-ink-soft: #b8bdc1;
  --havs-ink-strong: #f9faf8;
  --holding-ink: #f3f4f2;
  --holding-muted: #a9afb4;

  /* ---- Lines ---- */
  --line: #262a2d;
  --line-subtle: #1f2326;
  --line-strong: #3a4045;
  --inside-row-line: #1f2326;
  --holding-line: #262a2d;
  --work-line-strong: #3a4045;
  --work-line: #2d3235;
  --work-line-soft: #262a2d;
  --work-line-faint: #1f2326;
  --take5-disabled-line: #3a4045;
  --havs-line-cell: rgba(255,255,255,0.12);
  --havs-line-blank: rgba(255,255,255,0.18);
  --havs-line-heavy: #a9afb4;
  --havs-line-write: #636a6f;
  --havs-row-gap: #16191b;
  --grey-line-check-mark: #81888e;

  /* ---- Accent ---- */
  --accent-text: #8fcfb3;
  --accent-hover: #0d7c59;
  --accent-text-hover: #8fcfb3;
  --focus-ring: #8fcfb3;
  --accent-pressed: #096045;
  --picked: #15261f;
  --accent-soft: #15261f;
  --accent-veil: rgba(143,207,179,0.08);
  --accent-veil-sweep: rgba(143,207,179,0.1);
  --plans-buy-hover: #0d7c59;
  --plans-tick: rgba(143,207,179,0.55);
  /* same in dark (the owner's table: the one green fills a button in both modes): --accent --accent-ink */
  /* same in dark (a scrim, a dark stage or a glow, kept): --accent-focus-ring --accent-glow-strong --accent-glow-soft --accent-glow-clear --papers-ghost-glow */

  /* ---- Amber ---- */
  --amber-bg: #2a2210;
  --amber-line: #8a6a22;
  --amber-ink: #f1d28c;
  --audit-warn: #f1d28c;
  --audit-warn-line: #8a6a22;
  --warn-soft: #2a2210;
  --amber-bg-notice: #2a2210;
  --amber-bg-coshh: #2a2210;
  --amber-bg-havs: #2a2210;
  --amber-bg-kit: #2a2210;
  --amber-bg-check-mark: #2a2210;
  --amber-bg-check-quote: #2a2210;
  --amber-bg-check-ledger: #2a2210;
  --amber-line-plans: #8a6a22;
  --amber-line-coshh: #8a6a22;
  --amber-line-rams: #8a6a22;
  --amber-line-kit: #8a6a22;
  --amber-line-log: #8a6a22;
  --amber-line-tool: #8a6a22;
  --amber-line-strikes: #8a6a22;
  --amber-line-check: #8a6a22;
  --amber-line-check-mark: #8a6a22;
  --amber-ink-plans: #f1d28c;
  --amber-ink-havs: #f1d28c;
  --amber-ink-kit: #f1d28c;
  --amber-ink-coshh: #f1d28c;
  --amber-ink-strikes: #f1d28c;
  --amber-ink-rams-state: #f1d28c;
  --amber-ink-rams-heading: #f1d28c;
  --amber-ink-check: #f1d28c;
  --amber-ink-check-topic: #f1d28c;
  /* same in dark (a bright ring that reads on any ground, candidate A of the table): --check-pulse */

  /* ---- Red ---- */
  --red-bg: #2b1616;
  --red-line: #8a4040;
  --red-ink: #f3b4b4;
  --risk: #f3b4b4;
  --risk-line: #8a4040;
  --red-fill: #b3261e;
  --risk-soft: #2b1616;
  --red-bg-havs: #2b1616;
  --red-bg-kit: #2b1616;
  --red-bg-strikes: #2b1616;
  --red-bg-check-mark: #2b1616;
  --red-line-remove: #8a4040;
  --red-line-remove-hover: #8a4040;
  --red-line-danger-row: #8a4040;
  --red-ink-settings: #f3b4b4;
  --red-ink-havs: #f3b4b4;
  --red-ink-work-remove: #f3b4b4;
  --red-ink-remove-hover: #f3b4b4;
  --account-red-ink: #f3b4b4;
  --account-red-line: #8a4040;
  --account-red-line-soft: #8a4040;
  --account-red-bg: #2b1616;
  --account-red-bg-hover: #2b1616;
  /* same in dark (a solid scale or strong mark, kept): --risk-fill --offline --file-pdf */

  /* ---- Info ---- */
  --info-bg: #13212c;
  --info-line: #2f5878;
  --info-ink: #a9d1f0;
  --info-bg-check-mark: #13212c;
  --info-line-check-mark: #2f5878;
  /* same in dark (a solid scale or strong mark, kept): --file-doc */

  /* ---- Green ---- */
  --green-bg-check-mark: #15261f;
  --green-bg-check-added: #15261f;
  --green-bg-viewer: #15261f;
  --green-bg-havs: #15261f;
  --green-ink-havs: #8fcfb3;
  --green-ink-strikes: #8fcfb3;
  --green-ink-check: #8fcfb3;
  --strikes-line-clear: #12805c;
  --strikes-line-clear-badge: #12805c;
  /* same in dark (a solid scale or strong mark, kept): --live */

  /* ---- Orange ---- */
  --orange: #f5c49b;
  --orange-back: #2d1b10;

  /* ---- Violet ---- */
  --violet-bg: #231a2c;
  --violet-ink: #d9c2f0;
  --violet-line: #6a4a8a;

  /* ---- Scales ---- */
  /* THE LEVEL-3 CARD EDGE READS STRONGEST (14 Nov 2026, decided by the
     planner, not yet seen by the owner). The red line #8a4040 measured
     2.43 on the dark panel, weaker than level 2's #e06000 (4.91) for the
     most serious level; #ec5a50 measures 5.17 there. */
  --red: #ec5a50;
  --noise-ink-green: #8fcfb3;
  --noise-ink-amber: #f1d28c;
  --noise-ink-red: #f3b4b4;
  /* same in dark (a solid scale or strong mark, kept): --scale-orange --scale-red --strikes-level-1-edge --strikes-level-2-edge --drops-slight --drops-minor --drops-major --drops-fatality --drops-major-fill --drops-fatality-fill --noise-band-low --noise-band-mid --noise-band-high --noise-tick --noise-line-amber --noise-line-red --havs-dot-green --havs-dot-amber --havs-dot-red --havs-edge-green --havs-edge-amber --havs-edge-red --havs-scan-sweep */
  /* same in dark (the DROPS glass readout over the chart, light in this pull request: the owner's answer 4): --drops-glass --drops-glass-shine --drops-glass-clear --drops-glass-tint --drops-glass-tint-soft --drops-glass-tint-edge --drops-glass-line --drops-glass-line-slight --drops-glass-line-minor --drops-glass-line-major --drops-glass-line-fatality --drops-glass-inner --drops-glass-ink --drops-glass-ink-glow --drops-glass-ink-halo --drops-glass-dot --drops-glass-pill */
  /* same in dark (a scrim, a dark stage or a glow, kept): --havs-scan-glow --havs-scan-glow-clear */

  /* ---- Over a photograph ---- */
  /* same in dark (over a photograph): --photo-wash-deep --photo-wash-strong --photo-wash-soft --photo-wash-faint --photo-wash-foot --photo-wash-veil --photo-wash-clear --photo-shade --photo-ink --photo-ink-soft --photo-chip --photo-badge-loading --photo-ground */
  /* The loading badge is a white veil over a frame that turns dark: its
     words keep dark ink, darker than in light (3.07 with --quiet's own). */
  --photo-badge-ink: #14201b;
  /* The owner's approved dark value, exactly (14 Nov 2026). */
  --photo-filter: grayscale(1) sepia(.1) hue-rotate(125deg) contrast(.92) brightness(.8);

  /* ---- Paper ---- */
  /* same in dark (paper): --example-paper --sheet-ink --sheet-ink-small --sheet-ink-declaration --sheet-ink-ref --sheet-ink-trainer --sheet-ink-plain --sheet-ink-plain-em --sheet-line-head --sheet-line-table --sheet-line-foot --sheet-line-stake --sheet-line-trainer --sheet-bg-table-head --sheet-bg-stake --sheet-bg-trainer --sheet-veil-fold --sheet-zoom-bg --sheet-zoom-bg-hover --take5-ink --take5-label-ink --take5-placeholder --take5-label-placeholder --take5-page-shadow --t5-box --check-doc-current-bg --check-doc-current-halo --check-doc-edited-bg --check-doc-edited-halo --doc-paper-shadow-near --doc-paper-shadow-far --papers-ghost-ring */

  /* ---- The tool pages' family ---- */
  --ground: #0d0f10;
  --tool-ink: #f3f4f2;
  --ink-soft: #d2d5d7;
  --quiet: #b2b8bc;
  --tool-line: #262a2d;
  --tool-fill: #23282b;
  --edge: #3a4045;
  --note: #99a0a6;
  --note-soft: #121517;

  /* ---- Shadows, scrims and veils, and the dark stages ---- */
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.5);
  --shadow-soft: rgba(0,0,0,0.16);
  --shadow-tab: rgba(0,0,0,0.12);
  --shadow-topic: rgba(0,0,0,0.08);
  --shadow-menu-near: rgba(0,0,0,0.1);
  --shadow-menu-far: rgba(0,0,0,0.28);
  --shadow-window: rgba(0,0,0,0.44);
  --shadow-signs-cell: rgba(0,0,0,0.24);
  --shadow-signs-drag: rgba(0,0,0,0.32);
  --shadow-signs-list: rgba(0,0,0,0.24);
  --shadow-sign-near: rgba(0,0,0,0.32);
  --shadow-sign-far: rgba(0,0,0,0.6);
  --shadow-sign-drag: rgba(0,0,0,0.6);
  --shadow-papers-zoom: rgba(0,0,0,0.24);
  --shadow-papers-page: rgba(0,0,0,0.32);
  --shadow-drops-glass: rgba(0,0,0,0.36);
  --shadow-viewer-card: rgba(0,0,0,0.6);
  --hover-veil: rgba(255,255,255,0.06);
  --hover-veil-row: rgba(255,255,255,0.03);
  --hover-veil-tab: rgba(255,255,255,0.05);
  --papers-veil-zoom: rgba(28,32,35,0.94);
  --papers-veil-hover: rgba(28,32,35,0.75);
  --scrollbar-thumb: rgba(243,244,242,0.22);
  --scrollbar-thumb-hover: rgba(243,244,242,0.4);
  --scrollbar-track-thumb: rgba(243,244,242,0.25);
  --scrollbar-thumb-tool: rgba(243,244,242,0.22);
  --scrollbar-thumb-hover-tool: rgba(243,244,242,0.4);
  --scrollbar-track-thumb-tool: rgba(243,244,242,0.25);
  /* same in dark (a scrim, a dark stage or a glow, kept): --scrim --scrim-side --scrim-dialog --scrim-ask --scrim-caption --scrim-viewer --pad-stage --pad-line-canvas --pad-line-button --stage-focus --on-dark-ink-soft --viewer-line-shut --viewer-shut-hover */

  /* ---- The home page (the v19 mockup) ---- */
  /* The mockup's own dark values (its [data-theme="dark"] block and rules). */
  --home-amber-bg: #2a2210;
  --home-amber-line: #8a6a22;
  --home-amber-ink: #f1d28c;
  --home-alarm-bg: #2b1616;
  --home-alarm-ink: #f3b4b4;
  /* same in dark (over a photograph): --home-photo-ground --home-photo-wash-1 --home-photo-wash-2 --home-photo-wash-3 --home-on-photo --home-on-photo-strong --home-on-photo-soft --home-on-photo-faint --home-on-photo-line --home-on-photo-veil --home-white-veil-8 */
  /* same in dark (the hero's form is dark in both modes, as the mockup draws it): --home-dark-panel --home-dark-ground --home-dark-line --home-dark-ink --home-dark-muted --home-dark-green-text --home-dark-picked --home-dark-picked-line */
  /* same in dark (paper): --home-paper-ink --home-paper-ink-soft --home-paper-ink-faint --home-paper-line-strong --home-paper-head --home-paper-rule --home-paper-signature --home-paper-note-bg --home-paper-note-line --home-paper-bar --home-paper-hit --home-paper-dot --home-sign-blue --home-glass-1 --home-glass-2 */
  /* same in dark (a solid scale or strong mark, kept): --home-alarm --home-ok-line --home-ok-bg --home-ok-ink */
  /* same in dark (a company's own button, its light theme, over the hero's photograph): --home-google-fill --home-google-line --home-google-ink --home-ms-fill --home-ms-line --home-ms-ink */
  /* same in dark (a scrim, a dark stage or a glow, kept): --home-green-veil-0 --home-green-veil-5 --home-green-veil-14 --home-green-veil-22 --home-green-veil-25 --home-green-veil-28 --home-green-veil-45 --home-green-veil-50 --home-green-veil-55 --home-green-veil-75 --home-pale-green-veil-25 --home-pale-green-veil-50 --home-shadow-25 --home-shadow-28 --home-shadow-30 --home-shadow-35 --home-shadow-40 --home-shadow-50 --home-tick-icon */
}

/* PAPER STAYS PAPER (13 Nov 2026, the owner's answer 3). The toolbox
   talk's A4 sheet, the sign-on sheet and the Take 5 page are drawn with
   the app's own --panel, --line, --ink and --shadow, so in dark they would
   turn into dark sheets with pale ink that print as nothing like what was
   on screen. Inside these the light values hold: tools/sync-tokens.mjs
   writes every token that has a dark value back at its light value for
   these selectors. The DROPS chart and the glass readout over it stay
   light the same way (answer 4: a separate small pull request later).
   The news map's picture keeps its light ground too (14 Nov 2026, the
   owner's answer 8: maps stay light, like photographs).
   THE HAND-ARM VIBRATION BOARD AND RECORD CARD (.havs-sheet) and THE
   REGISTER'S WALL CODE (.strikes-qr) joined on 14 Nov 2026, from the
   dark sheets sweep: both were drawn on --panel, which turned dark, under
   artwork with its own fixed near-black ink - the board's "AT THE END OF
   THE DAY" and the card's title could not be read, and the code was dark
   squares on a dark ground that no camera reads. THE COSHH SHEET
   (.coshh-sheet) the same day: its --sheet-ink lay straight on the dark
   page (styles.css gives it the page's --bg as its own ground).
   A TOKEN'S PAPER VALUE (14 Nov 2026): a declaration in this block is
   what that token is on paper when it is not its light value. The
   generated paper, print and forced-colours rules write it. Only
   --photo-filter has one: its light value is grayscale(1), and print
   resets to light, so without it every photograph would print grey. */
.tbt-sheet .talk-page, .signon-page, .take5-page, .drops-chart-frame, .news-map img, .havs-sheet, .strikes-qr, .coshh-sheet {
  color-scheme: light;
  --photo-filter: none;
}

/* ---- GENERATED by tools/sync-tokens.mjs from the blocks above; edit
   tokens.css, never here (13 Nov 2026) ---- */
/* The device's dark, when no choice is stored: the dark list again. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0f10;
    --panel: #16191b;
    --surface-subtle: #121517;
    --grey-bg: #1c2023;
    --pressed: #23282b;
    --user-bubble: #1f2427;
    --disabled-bg: #23282b;
    --grey-bg-note: #121517;
    --grey-bg-check-mark: #23282b;
    --grey-bg-build: #0d0f10;
    --check-desk-bg: #1c2023;
    --kit-pressed-bg: #121517;
    --plans-state-bg: #121517;
    --papers-stage-bg: #1c2023;
    --papers-hover-bg: #1c2023;
    --strikes-waiting-bg: #1c2023;
    --strikes-ticket-bg: #121517;
    --work-bg: #0d0f10;
    --holding-bg: #0d0f10;
    --take5-disabled-bg: #23282b;
    --take5-done-bg: #0d0f10;
    --take5-sheet-bg: #16191b;
    --toast-bg: #23282b;
    --file-mark-fill: #5f6e7c;
    --signs-turn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f4f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpolyline points='21 3 21 9 15 9'/%3E%3C/svg%3E");
    --ink: #f3f4f2;
    --muted: #a9afb4;
    --disabled-ink: #a9afb4;
    --grey-ink-optional: #a9afb4;
    --signin-placeholder: #7d8287;
    --strikes-ink-strong: #ebedec;
    --strikes-ink: #caced0;
    --strikes-ink-quiet: #989ea3;
    --havs-ink-head: #93999e;
    --havs-ink-soft: #b8bdc1;
    --havs-ink-strong: #f9faf8;
    --holding-ink: #f3f4f2;
    --holding-muted: #a9afb4;
    --line: #262a2d;
    --line-subtle: #1f2326;
    --line-strong: #3a4045;
    --inside-row-line: #1f2326;
    --holding-line: #262a2d;
    --work-line-strong: #3a4045;
    --work-line: #2d3235;
    --work-line-soft: #262a2d;
    --work-line-faint: #1f2326;
    --take5-disabled-line: #3a4045;
    --havs-line-cell: rgba(255,255,255,0.12);
    --havs-line-blank: rgba(255,255,255,0.18);
    --havs-line-heavy: #a9afb4;
    --havs-line-write: #636a6f;
    --havs-row-gap: #16191b;
    --grey-line-check-mark: #81888e;
    --accent-text: #8fcfb3;
    --accent-hover: #0d7c59;
    --accent-text-hover: #8fcfb3;
    --focus-ring: #8fcfb3;
    --accent-pressed: #096045;
    --picked: #15261f;
    --accent-soft: #15261f;
    --accent-veil: rgba(143,207,179,0.08);
    --accent-veil-sweep: rgba(143,207,179,0.1);
    --plans-buy-hover: #0d7c59;
    --plans-tick: rgba(143,207,179,0.55);
    --amber-bg: #2a2210;
    --amber-line: #8a6a22;
    --amber-ink: #f1d28c;
    --audit-warn: #f1d28c;
    --audit-warn-line: #8a6a22;
    --warn-soft: #2a2210;
    --amber-bg-notice: #2a2210;
    --amber-bg-coshh: #2a2210;
    --amber-bg-havs: #2a2210;
    --amber-bg-kit: #2a2210;
    --amber-bg-check-mark: #2a2210;
    --amber-bg-check-quote: #2a2210;
    --amber-bg-check-ledger: #2a2210;
    --amber-line-plans: #8a6a22;
    --amber-line-coshh: #8a6a22;
    --amber-line-rams: #8a6a22;
    --amber-line-kit: #8a6a22;
    --amber-line-log: #8a6a22;
    --amber-line-tool: #8a6a22;
    --amber-line-strikes: #8a6a22;
    --amber-line-check: #8a6a22;
    --amber-line-check-mark: #8a6a22;
    --amber-ink-plans: #f1d28c;
    --amber-ink-havs: #f1d28c;
    --amber-ink-kit: #f1d28c;
    --amber-ink-coshh: #f1d28c;
    --amber-ink-strikes: #f1d28c;
    --amber-ink-rams-state: #f1d28c;
    --amber-ink-rams-heading: #f1d28c;
    --amber-ink-check: #f1d28c;
    --amber-ink-check-topic: #f1d28c;
    --red-bg: #2b1616;
    --red-line: #8a4040;
    --red-ink: #f3b4b4;
    --risk: #f3b4b4;
    --risk-line: #8a4040;
    --red-fill: #b3261e;
    --risk-soft: #2b1616;
    --red-bg-havs: #2b1616;
    --red-bg-kit: #2b1616;
    --red-bg-strikes: #2b1616;
    --red-bg-check-mark: #2b1616;
    --red-line-remove: #8a4040;
    --red-line-remove-hover: #8a4040;
    --red-line-danger-row: #8a4040;
    --red-ink-settings: #f3b4b4;
    --red-ink-havs: #f3b4b4;
    --red-ink-work-remove: #f3b4b4;
    --red-ink-remove-hover: #f3b4b4;
    --account-red-ink: #f3b4b4;
    --account-red-line: #8a4040;
    --account-red-line-soft: #8a4040;
    --account-red-bg: #2b1616;
    --account-red-bg-hover: #2b1616;
    --info-bg: #13212c;
    --info-line: #2f5878;
    --info-ink: #a9d1f0;
    --info-bg-check-mark: #13212c;
    --info-line-check-mark: #2f5878;
    --green-bg-check-mark: #15261f;
    --green-bg-check-added: #15261f;
    --green-bg-viewer: #15261f;
    --green-bg-havs: #15261f;
    --green-ink-havs: #8fcfb3;
    --green-ink-strikes: #8fcfb3;
    --green-ink-check: #8fcfb3;
    --strikes-line-clear: #12805c;
    --strikes-line-clear-badge: #12805c;
    --orange: #f5c49b;
    --orange-back: #2d1b10;
    --violet-bg: #231a2c;
    --violet-ink: #d9c2f0;
    --violet-line: #6a4a8a;
    --red: #ec5a50;
    --noise-ink-green: #8fcfb3;
    --noise-ink-amber: #f1d28c;
    --noise-ink-red: #f3b4b4;
    --photo-badge-ink: #14201b;
    --photo-filter: grayscale(1) sepia(.1) hue-rotate(125deg) contrast(.92) brightness(.8);
    --ground: #0d0f10;
    --tool-ink: #f3f4f2;
    --ink-soft: #d2d5d7;
    --quiet: #b2b8bc;
    --tool-line: #262a2d;
    --tool-fill: #23282b;
    --edge: #3a4045;
    --note: #99a0a6;
    --note-soft: #121517;
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.5);
    --shadow-soft: rgba(0,0,0,0.16);
    --shadow-tab: rgba(0,0,0,0.12);
    --shadow-topic: rgba(0,0,0,0.08);
    --shadow-menu-near: rgba(0,0,0,0.1);
    --shadow-menu-far: rgba(0,0,0,0.28);
    --shadow-window: rgba(0,0,0,0.44);
    --shadow-signs-cell: rgba(0,0,0,0.24);
    --shadow-signs-drag: rgba(0,0,0,0.32);
    --shadow-signs-list: rgba(0,0,0,0.24);
    --shadow-sign-near: rgba(0,0,0,0.32);
    --shadow-sign-far: rgba(0,0,0,0.6);
    --shadow-sign-drag: rgba(0,0,0,0.6);
    --shadow-papers-zoom: rgba(0,0,0,0.24);
    --shadow-papers-page: rgba(0,0,0,0.32);
    --shadow-drops-glass: rgba(0,0,0,0.36);
    --shadow-viewer-card: rgba(0,0,0,0.6);
    --hover-veil: rgba(255,255,255,0.06);
    --hover-veil-row: rgba(255,255,255,0.03);
    --hover-veil-tab: rgba(255,255,255,0.05);
    --papers-veil-zoom: rgba(28,32,35,0.94);
    --papers-veil-hover: rgba(28,32,35,0.75);
    --scrollbar-thumb: rgba(243,244,242,0.22);
    --scrollbar-thumb-hover: rgba(243,244,242,0.4);
    --scrollbar-track-thumb: rgba(243,244,242,0.25);
    --scrollbar-thumb-tool: rgba(243,244,242,0.22);
    --scrollbar-thumb-hover-tool: rgba(243,244,242,0.4);
    --scrollbar-track-thumb-tool: rgba(243,244,242,0.25);
    --home-amber-bg: #2a2210;
    --home-amber-line: #8a6a22;
    --home-amber-ink: #f1d28c;
    --home-alarm-bg: #2b1616;
    --home-alarm-ink: #f3b4b4;
  }
}
/* Paper keeps its light values on a dark screen. */
.tbt-sheet .talk-page, .signon-page, .take5-page, .drops-chart-frame, .news-map img, .havs-sheet, .strikes-qr, .coshh-sheet {
  --bg: #f8f8f7;
  --panel: #ffffff;
  --surface-subtle: #f2f2f1;
  --grey-bg: #ededec;
  --pressed: #e4e4e3;
  --user-bubble: #f0f1f0;
  --disabled-bg: #d6d9d4;
  --grey-bg-note: #eef5f1;
  --grey-bg-check-mark: #e6e6e2;
  --grey-bg-build: #f7f8f7;
  --check-desk-bg: #eceef0;
  --kit-pressed-bg: #eef4f1;
  --plans-state-bg: #f4f3ef;
  --papers-stage-bg: #eceae4;
  --papers-hover-bg: #f4f1ea;
  --strikes-waiting-bg: #f1efe9;
  --strikes-ticket-bg: #eef1f0;
  --work-bg: #f2f7f4;
  --holding-bg: #faf9f6;
  --take5-disabled-bg: #9db3a9;
  --take5-done-bg: #f2f8f5;
  --take5-sheet-bg: #fbfcfb;
  --toast-bg: #1a1a1a;
  --file-mark-fill: #6e6e73;
  --signs-turn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e2c2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpolyline points='21 3 21 9 15 9'/%3E%3C/svg%3E");
  --ink: #1a1a1a;
  --muted: #6e6e73;
  --disabled-ink: #5f6862;
  --grey-ink-optional: #6b7477;
  --signin-placeholder: #a8b2ba;
  --strikes-ink-strong: #14261e;
  --strikes-ink: #3b4a44;
  --strikes-ink-quiet: #7d8a84;
  --havs-ink-head: #8f8f87;
  --havs-ink-soft: #5b5b5b;
  --havs-ink-strong: #111111;
  --holding-ink: #1d2730;
  --holding-muted: #5f6e7c;
  --line: #e5e5e5;
  --line-subtle: #efefee;
  --line-strong: #c9c9c8;
  --inside-row-line: #f2f2f1;
  --holding-line: #e6e4de;
  --work-line-strong: #c6d5cd;
  --work-line: #cfe0d7;
  --work-line-soft: #dfeae4;
  --work-line-faint: #eef4f1;
  --take5-disabled-line: #9db3a9;
  --havs-line-cell: rgba(0,0,0,0.12);
  --havs-line-blank: rgba(0,0,0,0.18);
  --havs-line-heavy: #1c1c1c;
  --havs-line-write: #999999;
  --havs-row-gap: #ffffff;
  --grey-line-check-mark: #7a7a74;
  --accent-text: #0b6e4f;
  --accent-hover: #095f45;
  --accent-text-hover: #095f45;
  --focus-ring: #0b6e4f;
  --accent-pressed: #074e39;
  --picked: #eaf3ee;
  --accent-soft: #e6f2ec;
  --accent-veil: rgba(11,110,79,0.08);
  --accent-veil-sweep: rgba(31,92,70,0.1);
  --plans-buy-hover: #095c42;
  --plans-tick: rgba(11,110,79,0.55);
  --amber-bg: #fdf4e3;
  --amber-line: #e3b45c;
  --amber-ink: #6b4a00;
  --audit-warn: #8a5a00;
  --audit-warn-line: #8a5a00;
  --warn-soft: #fdf3d7;
  --amber-bg-notice: #fff8e6;
  --amber-bg-coshh: #fdf6e3;
  --amber-bg-havs: #fdf3e0;
  --amber-bg-kit: #fff8e7;
  --amber-bg-check-mark: #fbe7c2;
  --amber-bg-check-quote: #fdf6e9;
  --amber-bg-check-ledger: #fdf6ec;
  --amber-line-plans: #ecd9a3;
  --amber-line-coshh: #e6d49a;
  --amber-line-rams: #c9a227;
  --amber-line-kit: #d8a400;
  --amber-line-log: #b8860b;
  --amber-line-tool: #e8d6a8;
  --amber-line-strikes: #8a6100;
  --amber-line-check: #b26a00;
  --amber-line-check-mark: #b26a00;
  --amber-ink-plans: #4a3b12;
  --amber-ink-havs: #4a3a12;
  --amber-ink-kit: #6b4700;
  --amber-ink-coshh: #7a5a12;
  --amber-ink-strikes: #8a6100;
  --amber-ink-rams-state: #8a6d0c;
  --amber-ink-rams-heading: #8a6d1d;
  --amber-ink-check: #7a4a00;
  --amber-ink-check-topic: #b26a00;
  --red-bg: #fbeeee;
  --red-line: #dca3a3;
  --red-ink: #7a2727;
  --risk: #b3261e;
  --risk-line: #b3261e;
  --red-fill: #7a2727;
  --risk-soft: #fbdedc;
  --red-bg-havs: #fbe5e2;
  --red-bg-kit: #fdeceb;
  --red-bg-strikes: #fffafa;
  --red-bg-check-mark: #f7d4d0;
  --red-line-remove: #e3b7b3;
  --red-line-remove-hover: #cc9999;
  --red-line-danger-row: #f0cfcd;
  --red-ink-settings: #5a2f2f;
  --red-ink-havs: #8c1d18;
  --red-ink-work-remove: #a4342c;
  --red-ink-remove-hover: #aa3333;
  --account-red-ink: #8a2b2b;
  --account-red-line: #e6c9c9;
  --account-red-line-soft: #ecd6d6;
  --account-red-bg: #fdf8f8;
  --account-red-bg-hover: #fbf1f1;
  --info-bg: #edf4fb;
  --info-line: #9dbddd;
  --info-ink: #24557a;
  --info-bg-check-mark: #d9e6f5;
  --info-line-check-mark: #2f5d9a;
  --green-bg-check-mark: #dff0e3;
  --green-bg-check-added: #f1f8f3;
  --green-bg-viewer: #e6efe9;
  --green-bg-havs: #e6f2e6;
  --green-ink-havs: #1d3b30;
  --green-ink-strikes: #14432c;
  --green-ink-check: #2f6b43;
  --strikes-line-clear: #bcd8ca;
  --strikes-line-clear-badge: #cfe6da;
  --orange: #9a3d00;
  --orange-back: #ffe8d7;
  --violet-bg: #e9dcf3;
  --violet-ink: #6b3f9a;
  --violet-line: #6b3f9a;
  --red: #b3261e;
  --noise-ink-green: #2b6643;
  --noise-ink-amber: #b06a00;
  --noise-ink-red: #e63b25;
  --photo-badge-ink: #5b6660;
  --photo-filter: none;
  --ground: #f6f8f7;
  --tool-ink: #14201b;
  --ink-soft: #33403a;
  --quiet: #5b6660;
  --tool-line: #d6ded9;
  --tool-fill: #d6ded9;
  --edge: #b9c4be;
  --note: #5b6660;
  --note-soft: #eef1ef;
  --shadow: 0 1px 2px rgba(29, 39, 48, 0.05), 0 4px 16px rgba(29, 39, 48, 0.05);
  --shadow-soft: rgba(29,39,48,0.08);
  --shadow-tab: rgba(29,39,48,0.06);
  --shadow-topic: rgba(0,0,0,0.04);
  --shadow-menu-near: rgba(29,39,48,0.05);
  --shadow-menu-far: rgba(29,39,48,0.14);
  --shadow-window: rgba(0,0,0,0.22);
  --shadow-signs-cell: rgba(0,0,0,0.12);
  --shadow-signs-drag: rgba(0,0,0,0.16);
  --shadow-signs-list: rgba(29,39,48,0.12);
  --shadow-sign-near: rgba(46,44,43,0.16);
  --shadow-sign-far: rgba(46,44,43,0.3);
  --shadow-sign-drag: rgba(46,44,43,0.35);
  --shadow-papers-zoom: rgba(15,23,30,0.12);
  --shadow-papers-page: rgba(15,23,30,0.16);
  --shadow-drops-glass: rgba(29,39,48,0.18);
  --shadow-viewer-card: rgba(10,16,14,0.35);
  --hover-veil: rgba(0,0,0,0.045);
  --hover-veil-row: rgba(29,39,48,0.03);
  --hover-veil-tab: rgba(29,39,48,0.05);
  --papers-veil-zoom: rgba(236,234,228,0.94);
  --papers-veil-hover: rgba(255,255,255,0.75);
  --scrollbar-thumb: rgba(29,39,48,0.22);
  --scrollbar-thumb-hover: rgba(29,39,48,0.4);
  --scrollbar-track-thumb: rgba(29,39,48,0.25);
  --scrollbar-thumb-tool: rgba(22,25,26,0.22);
  --scrollbar-thumb-hover-tool: rgba(22,25,26,0.4);
  --scrollbar-track-thumb-tool: rgba(22,25,26,0.25);
  --home-amber-bg: #fbf3dc;
  --home-amber-line: #e6cf8f;
  --home-amber-ink: #6b4e00;
  --home-alarm-bg: #fbe9e7;
  --home-alarm-ink: #8a1c14;
}
/* Print is always light. */
@media print {
  :root:root {
    color-scheme: light;
    --bg: #f8f8f7;
    --panel: #ffffff;
    --surface-subtle: #f2f2f1;
    --grey-bg: #ededec;
    --pressed: #e4e4e3;
    --user-bubble: #f0f1f0;
    --disabled-bg: #d6d9d4;
    --grey-bg-note: #eef5f1;
    --grey-bg-check-mark: #e6e6e2;
    --grey-bg-build: #f7f8f7;
    --check-desk-bg: #eceef0;
    --kit-pressed-bg: #eef4f1;
    --plans-state-bg: #f4f3ef;
    --papers-stage-bg: #eceae4;
    --papers-hover-bg: #f4f1ea;
    --strikes-waiting-bg: #f1efe9;
    --strikes-ticket-bg: #eef1f0;
    --work-bg: #f2f7f4;
    --holding-bg: #faf9f6;
    --take5-disabled-bg: #9db3a9;
    --take5-done-bg: #f2f8f5;
    --take5-sheet-bg: #fbfcfb;
    --toast-bg: #1a1a1a;
    --file-mark-fill: #6e6e73;
    --signs-turn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e2c2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpolyline points='21 3 21 9 15 9'/%3E%3C/svg%3E");
    --ink: #1a1a1a;
    --muted: #6e6e73;
    --disabled-ink: #5f6862;
    --grey-ink-optional: #6b7477;
    --signin-placeholder: #a8b2ba;
    --strikes-ink-strong: #14261e;
    --strikes-ink: #3b4a44;
    --strikes-ink-quiet: #7d8a84;
    --havs-ink-head: #8f8f87;
    --havs-ink-soft: #5b5b5b;
    --havs-ink-strong: #111111;
    --holding-ink: #1d2730;
    --holding-muted: #5f6e7c;
    --line: #e5e5e5;
    --line-subtle: #efefee;
    --line-strong: #c9c9c8;
    --inside-row-line: #f2f2f1;
    --holding-line: #e6e4de;
    --work-line-strong: #c6d5cd;
    --work-line: #cfe0d7;
    --work-line-soft: #dfeae4;
    --work-line-faint: #eef4f1;
    --take5-disabled-line: #9db3a9;
    --havs-line-cell: rgba(0,0,0,0.12);
    --havs-line-blank: rgba(0,0,0,0.18);
    --havs-line-heavy: #1c1c1c;
    --havs-line-write: #999999;
    --havs-row-gap: #ffffff;
    --grey-line-check-mark: #7a7a74;
    --accent-text: #0b6e4f;
    --accent-hover: #095f45;
    --accent-text-hover: #095f45;
    --focus-ring: #0b6e4f;
    --accent-pressed: #074e39;
    --picked: #eaf3ee;
    --accent-soft: #e6f2ec;
    --accent-veil: rgba(11,110,79,0.08);
    --accent-veil-sweep: rgba(31,92,70,0.1);
    --plans-buy-hover: #095c42;
    --plans-tick: rgba(11,110,79,0.55);
    --amber-bg: #fdf4e3;
    --amber-line: #e3b45c;
    --amber-ink: #6b4a00;
    --audit-warn: #8a5a00;
    --audit-warn-line: #8a5a00;
    --warn-soft: #fdf3d7;
    --amber-bg-notice: #fff8e6;
    --amber-bg-coshh: #fdf6e3;
    --amber-bg-havs: #fdf3e0;
    --amber-bg-kit: #fff8e7;
    --amber-bg-check-mark: #fbe7c2;
    --amber-bg-check-quote: #fdf6e9;
    --amber-bg-check-ledger: #fdf6ec;
    --amber-line-plans: #ecd9a3;
    --amber-line-coshh: #e6d49a;
    --amber-line-rams: #c9a227;
    --amber-line-kit: #d8a400;
    --amber-line-log: #b8860b;
    --amber-line-tool: #e8d6a8;
    --amber-line-strikes: #8a6100;
    --amber-line-check: #b26a00;
    --amber-line-check-mark: #b26a00;
    --amber-ink-plans: #4a3b12;
    --amber-ink-havs: #4a3a12;
    --amber-ink-kit: #6b4700;
    --amber-ink-coshh: #7a5a12;
    --amber-ink-strikes: #8a6100;
    --amber-ink-rams-state: #8a6d0c;
    --amber-ink-rams-heading: #8a6d1d;
    --amber-ink-check: #7a4a00;
    --amber-ink-check-topic: #b26a00;
    --red-bg: #fbeeee;
    --red-line: #dca3a3;
    --red-ink: #7a2727;
    --risk: #b3261e;
    --risk-line: #b3261e;
    --red-fill: #7a2727;
    --risk-soft: #fbdedc;
    --red-bg-havs: #fbe5e2;
    --red-bg-kit: #fdeceb;
    --red-bg-strikes: #fffafa;
    --red-bg-check-mark: #f7d4d0;
    --red-line-remove: #e3b7b3;
    --red-line-remove-hover: #cc9999;
    --red-line-danger-row: #f0cfcd;
    --red-ink-settings: #5a2f2f;
    --red-ink-havs: #8c1d18;
    --red-ink-work-remove: #a4342c;
    --red-ink-remove-hover: #aa3333;
    --account-red-ink: #8a2b2b;
    --account-red-line: #e6c9c9;
    --account-red-line-soft: #ecd6d6;
    --account-red-bg: #fdf8f8;
    --account-red-bg-hover: #fbf1f1;
    --info-bg: #edf4fb;
    --info-line: #9dbddd;
    --info-ink: #24557a;
    --info-bg-check-mark: #d9e6f5;
    --info-line-check-mark: #2f5d9a;
    --green-bg-check-mark: #dff0e3;
    --green-bg-check-added: #f1f8f3;
    --green-bg-viewer: #e6efe9;
    --green-bg-havs: #e6f2e6;
    --green-ink-havs: #1d3b30;
    --green-ink-strikes: #14432c;
    --green-ink-check: #2f6b43;
    --strikes-line-clear: #bcd8ca;
    --strikes-line-clear-badge: #cfe6da;
    --orange: #9a3d00;
    --orange-back: #ffe8d7;
    --violet-bg: #e9dcf3;
    --violet-ink: #6b3f9a;
    --violet-line: #6b3f9a;
    --red: #b3261e;
    --noise-ink-green: #2b6643;
    --noise-ink-amber: #b06a00;
    --noise-ink-red: #e63b25;
    --photo-badge-ink: #5b6660;
    --photo-filter: none;
    --ground: #f6f8f7;
    --tool-ink: #14201b;
    --ink-soft: #33403a;
    --quiet: #5b6660;
    --tool-line: #d6ded9;
    --tool-fill: #d6ded9;
    --edge: #b9c4be;
    --note: #5b6660;
    --note-soft: #eef1ef;
    --shadow: 0 1px 2px rgba(29, 39, 48, 0.05), 0 4px 16px rgba(29, 39, 48, 0.05);
    --shadow-soft: rgba(29,39,48,0.08);
    --shadow-tab: rgba(29,39,48,0.06);
    --shadow-topic: rgba(0,0,0,0.04);
    --shadow-menu-near: rgba(29,39,48,0.05);
    --shadow-menu-far: rgba(29,39,48,0.14);
    --shadow-window: rgba(0,0,0,0.22);
    --shadow-signs-cell: rgba(0,0,0,0.12);
    --shadow-signs-drag: rgba(0,0,0,0.16);
    --shadow-signs-list: rgba(29,39,48,0.12);
    --shadow-sign-near: rgba(46,44,43,0.16);
    --shadow-sign-far: rgba(46,44,43,0.3);
    --shadow-sign-drag: rgba(46,44,43,0.35);
    --shadow-papers-zoom: rgba(15,23,30,0.12);
    --shadow-papers-page: rgba(15,23,30,0.16);
    --shadow-drops-glass: rgba(29,39,48,0.18);
    --shadow-viewer-card: rgba(10,16,14,0.35);
    --hover-veil: rgba(0,0,0,0.045);
    --hover-veil-row: rgba(29,39,48,0.03);
    --hover-veil-tab: rgba(29,39,48,0.05);
    --papers-veil-zoom: rgba(236,234,228,0.94);
    --papers-veil-hover: rgba(255,255,255,0.75);
    --scrollbar-thumb: rgba(29,39,48,0.22);
    --scrollbar-thumb-hover: rgba(29,39,48,0.4);
    --scrollbar-track-thumb: rgba(29,39,48,0.25);
    --scrollbar-thumb-tool: rgba(22,25,26,0.22);
    --scrollbar-thumb-hover-tool: rgba(22,25,26,0.4);
    --scrollbar-track-thumb-tool: rgba(22,25,26,0.25);
    --home-amber-bg: #fbf3dc;
    --home-amber-line: #e6cf8f;
    --home-amber-ink: #6b4e00;
    --home-alarm-bg: #fbe9e7;
    --home-alarm-ink: #8a1c14;
  }
}
/* Forced colours: the paper values that are not colours. */
@media (forced-colors: active) {
  :root:root {
    --photo-filter: none;
  }
}
/* tokens:end */
:root {
  /* ONE MACHINE VOICE (6 November 2026): the monospace stack was spelled
     five ways across nine rules - some with Consolas, some without, some
     broken over two lines - and the next copy would have been a sixth.
     The five were unified into this one on 6 Nov 2026. The fallback order
     is unchanged for the common case (ui-monospace first on Apple, then
     SFMono-Regular, Menlo); the two rules that skipped Consolas now offer
     it before the generic monospace, as the other seven always did. */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino", Georgia, "Times New Roman", serif;
}

/* ---- THE SCROLLBAR, DRESSED --------------------------------------------
   The browser's stock bar is a grey machine part wedged into rounded
   cards (the owner put ours beside a panel that does it right, 2
   September 2026). One thin, rounded thumb on a transparent track,
   everywhere - scrollbar-color inherits from the root, and the webkit
   pseudo covers every scroller the same way. The thumb is the app's own
   ink, quiet until the pointer needs it. */
html { scrollbar-width: thin; scrollbar-color: var(--scrollbar-track-thumb) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb); border-radius: 999px;
  /* The clear border is the inset: the thumb floats off the card edge
     instead of butting the rounded corner. */
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover);
  background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* One palette everywhere. KASQ is a print-first product - every sign,
   board and poster lands on white paper - and a site manager comparing
   the phone in his hand with the office PC must see the same product.
   The dark palette is deliberately not applied; revisit only if testers
   ask for it, and then for both platforms at once. */

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  font: 16px/1.55 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

/* EVERY LINK IS OURS. Without this one rule, any anchor nobody styled
   fell back to the browser's 1996 blue - found glowing on the Kit check
   register card the night before launch (the lightness walk, 3 September
   2026). Scoped rules below still override where a link deliberately
   dresses differently. */
a { color: var(--accent-text); }

/* A quick double tap is a tap that repeats, not a request to zoom: on
   the phone the viewers (a certificate, a strike photograph) kept
   blowing up under a fast second tap (the owner's phone, launch day).
   "manipulation" drops only double-tap zoom - scrolling stays, and
   pinch zoom stays for anybody who needs the page bigger. The drag
   surfaces' own touch-action: none rules outrank this by class. */
body, body * { touch-action: manipulation; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* THE BAR ACROSS THE TOP. It was transparent with a backdrop blur on it,
   which does nothing while the tool scrolls inside its own pane — and
   smears whatever passes under it the moment the document scrolls instead.
   A ghost of the Publish button, blurred, sitting over the title. The blur
   is gone and the bar carries the page's own colour: on a flat background
   the two looked identical anyway, and now there is nothing to smear. */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px calc(18px + env(safe-area-inset-right)) 12px calc(18px + env(safe-area-inset-left));
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.brand small { color: var(--muted); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mark {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.status {
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted);
}
/* ITS OWN TEXT GREEN (13 Nov 2026): every accent-coloured text reads
   --accent-text (#0b6e4f), but this one was always the hover green
   #095f45, and moving it would have changed light mode. As text in dark
   it takes the readable green (#8fcfb3); the hover FILL stays a fill. */
.status.ready { color: var(--accent-text-hover); }
.status.ready::before, .status.offline::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}
.status.ready::before {
  background: var(--live);
  animation: kasq-live 2.4s ease-in-out infinite;
}
@keyframes kasq-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .status.ready::before { animation: none; }
}
.status.offline::before { background: var(--offline); }

/* THE DARK MODE SWITCH (13 Nov 2026). An icon button drawn like the
   sidebar's icons (18 px, stroke 1.7, round caps), a 40 px target for a
   gloved thumb, the moon showing while dark is on and the sun while it is
   off; aria-pressed says the same to a screen reader. theme.js keeps the
   state and stores the choice. The negative margins keep the bar exactly
   as tall as it was: the target overhangs the bar's padding, the 18 px
   icon is what takes room. Never printed. */
.theme-switch {
  flex: none; display: inline-grid; place-items: center;
  width: 40px; height: 40px; margin: -9px -10px -9px 0; padding: 0;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer;
}
.theme-switch:hover { background: var(--grey-bg); color: var(--ink); }
.theme-switch .theme-moon { display: none; }
.theme-switch[aria-pressed="true"] .theme-sun { display: none; }
.theme-switch[aria-pressed="true"] .theme-moon { display: block; }
@media print { .theme-switch { display: none; } }

button.ghost {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
button.ghost:hover:not(:disabled) { background: var(--grey-bg); }
button.ghost:disabled { opacity: 0.45; cursor: default; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: 0;
  padding: 0 4px;
}

/* Empty state: hero and composer float together in the centre of the page,
   like a fresh ChatGPT/Claude conversation. After the first question the
   composer docks to the bottom and the hero disappears. */
/* Centred while it fits; when the Start makes it taller than the pane
   (a phone) it must scroll from the top, not clip the top - so the
   centring is done by two auto margins, not by justify-content, which
   would push the first card up out of reach. */
main.empty { justify-content: flex-start; overflow-y: auto; }
main.empty::before, main.empty::after { content: ""; display: block; flex: 0 0 0; }
main.empty::before { margin-top: auto; }
main.empty::after { margin-bottom: auto; }
main.empty #chat { display: none; }
/* ---- The Start: ongoing work, then three tasks, above the question box */
#start, #start[hidden], #start [hidden] { display: none; }
main.empty #start { display: block; width: min(760px, 100%); margin: 0 auto 26px; padding: 0 18px; }
.start-ongoing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.start-ongoing .lbl { color: var(--muted); font-size: 12.5px; margin-right: 2px; }
.start-chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
  padding: 8px 14px; min-height: 40px; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; text-align: left; }
.start-chip b { font-weight: 600; }
.start-chip:hover { border-color: var(--accent); }
.start-chip.stop { border-color: var(--red-line); background: var(--red-bg); }
.start-chip.warn { border-color: var(--amber-line); background: var(--amber-bg); }
.start-chip.more { color: var(--muted); border-style: dashed; }
.start-tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.start-task { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 14px 12px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; }
.start-task:hover { border-color: var(--accent); }
.start-task h3 { margin: 0; font-size: 15px; font-weight: 600; }
.start-task p { margin: 0 0 6px; color: var(--muted); font-size: 13.5px; line-height: 1.45; flex: 1; }
.start-task .go { align-self: flex-start; border-radius: 999px; padding: 7px 14px; background: var(--accent);
  color: var(--accent-ink); font-size: 13.5px; font-weight: 600; margin-top: auto; }
/* THE THREE BUTTONS SIT ON ONE LINE. The description grows to fill, the
   button follows it, and the cost note underneath gets the same slot on
   every card - three lines, which is the longest one ("walks are counted
   against your plan, 2 a month on Free") - so a one-line note no longer
   lets its button sink below its neighbours' (12 September 2026). */
.start-task .cost { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 8px; min-height: 4.4em; }
main.empty #start ~ #hero h1 { font-size: 24px; }
@media (max-width: 700px) {
  .start-tasks { grid-template-columns: 1fr; }
  .start-task .cost { min-height: 0; }
  main.empty #start { padding: 0 12px; }
}
/* ON A PHONE THE QUESTION BOX COMES FIRST. At 390px the three full cards
   were 570px tall and pushed the box to the foot of the screen and the
   starter questions below it (29 September 2026). So on a phone the Start
   moves under the box, and each card becomes one row: title and button.
   The description and the allowance line are left to the tool itself.
   Moved by flex order only - the DOM, and a desk, are as they were. */
@media (max-width: 700px) {
  main.empty #start { order: 1; margin: 22px auto 12px; }
  main.empty::after { order: 2; }
  .start-tasks { gap: 8px; }
  .start-task { flex-direction: row; align-items: center; justify-content: space-between;
    gap: 12px; padding: 10px 10px 10px 14px; }
  .start-task p, .start-task .cost { display: none; }
  .start-task .go { align-self: center; margin-top: 0; flex: none; }
}
/* "Or ask" follows the cards on a desk; on a phone the box leads, so
   there is nothing for "Or" to follow. One word or the other is shown,
   never both - display: none keeps the hidden one from a screen reader. */
#hero .ask-bare { display: none; }
@media (max-width: 700px) {
  #hero .ask-or { display: none; }
  #hero .ask-bare { display: inline; }
}
#hero { display: none; }
main.empty #hero {
  display: block;
  text-align: center;
  padding: 0 18px 6px;
}
#hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
#hero .spark { color: var(--accent-text); font-size: 26px; vertical-align: 2px; }
/* Balanced wrapping: the browser evens the lines out instead of leaving
   a long first line and a three-word second. Where unsupported it simply
   does nothing. */
#hero p, .smallprint, .tbt-sub { text-wrap: balance; }
#hero p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 460px;
  font-size: 15px;
}

#chat {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Smooth only for those who asked for motion - the audit page already
 * holds its own scroll behind this same gate, and this pane was the one
 * scroll in the product that did not. */
@media (prefers-reduced-motion: no-preference) {
  #chat { scroll-behavior: smooth; }
}

.message { display: flex; gap: 10px; }
.message.user { justify-content: flex-end; }

.avatar {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grey-bg);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-top: 3px;
}

.bubble {
  max-width: min(94%, 640px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.message.user .bubble {
  background: var(--user-bubble);
  color: var(--ink);
  border: none;
  box-shadow: none;
  white-space: pre-wrap;
  border-radius: var(--radius) var(--radius) 4px var(--radius);
}

.bubble h2 { font-size: 16px; margin: 0 0 8px; letter-spacing: -0.01em; }
.bubble p { margin: 9px 0; }
.bubble p:first-child { margin-top: 0; }
.bubble p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
/* One-word states stay small caps; a sentence reads as a sentence. */
.assistant.stopped .eyebrow, .assistant.error .eyebrow {
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
}
.assistant.stopped .eyebrow, .assistant.error .eyebrow { color: var(--red-ink); }
.assistant.insufficient .eyebrow, .assistant.partial .eyebrow { color: var(--amber-ink); }

p.important {
  background: var(--amber-bg);
  border-left: 3px solid var(--amber-line);
  padding: 9px 12px;
  border-radius: 8px;
}
p.action { padding-left: 24px; position: relative; }
p.action::before {
  content: "→";
  position: absolute;
  left: 3px;
  color: var(--accent-text);
  font-weight: 700;
}
p.limit { color: var(--muted); font-size: 13.5px; }
p.clarification {
  background: var(--grey-bg);
  border-radius: 8px;
  padding: 9px 12px;
  font-style: italic;
}
.assistant.stopped .bubble, .assistant.error .bubble {
  background: var(--red-bg);
  border-color: var(--red-line);
}

details.sources { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 9px; }
details.sources summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13.5px;
  user-select: none;
}
details.sources ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 9px; }
details.sources a { color: var(--accent-text); text-decoration: none; font-size: 13.5px; }
details.sources a:hover { text-decoration: underline; }
.source-meta { display: block; color: var(--muted); font-size: 12.5px; }

.answer-tools { margin-top: 11px; display: flex; gap: 14px; align-items: center; }
/* Direct children only. The feedback box sits inside this bar now, and its
   Send button must not be flattened into an underlined link. */
.answer-tools > button {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.answer-tools > button:hover { color: var(--ink); }
.answer-tools .reported { color: var(--accent-text); font-size: 12.5px; }

.progress .bubble { color: var(--muted); }
.progress .stage-line { display: flex; align-items: center; gap: 9px; }
.progress .dots { display: inline-flex; gap: 3px; }
.progress .dots i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: pulse 1.2s infinite ease-in-out;
}
.progress .dots i:nth-child(2) { animation-delay: 0.15s; }
.progress .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.progress .elapsed { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.progress .patience { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

form#form { padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); }

.input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 9px 9px 9px 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}
.input-row:focus-within { border-color: var(--accent); }

.input-row textarea {
  flex: 1;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  resize: none;
  outline: none;
  max-height: 132px;
  padding: 5px 0;
}
.input-row textarea::placeholder { color: var(--muted); }

button#send {
  flex: none;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity 0.15s ease;
}
button#send:disabled { opacity: 0.35; cursor: default; }

button.stop {
  flex: none;
  border: 1px solid var(--red-line);
  color: var(--red-ink);
  background: var(--red-bg);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13.5px;
  cursor: pointer;
}

.examples {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
main.empty .examples { display: flex; }
.examples button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 15px;
  min-height: 40px;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.examples button:hover { border-color: var(--accent); color: var(--ink); }

.smallprint {
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  margin: 10px auto 0;
  max-width: 640px;
}

/* A visitor is told under the box, before typing, that asking needs a
   free account (see chat-referral.mjs). Calm: muted ink, one green link. */
.advisor-visitor-note {
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  margin: 10px auto 0;
  max-width: 640px;
}
.advisor-visitor-note a { color: var(--accent-text); font-weight: 600; white-space: nowrap; }

/* The Open Government Licence acknowledgement. Quieter than the safety
   smallprint above it — it is a licence condition, not site advice — but it
   must stay legible, so no opacity trick and no smaller than 11px. */
.attribution { margin-top: 6px; font-size: 12.5px; }
.attribution a { color: inherit; text-decoration: underline; }
.attribution a:hover { color: var(--ink); }

/* CSP-safe replacement for style="white-space:nowrap": the server's static
   Content-Security-Policy has no style-src, so it falls back to
   default-src 'self' and silently drops any inline style attribute - the
   text would wrap and nobody would see a console error. */
.nowrap { white-space: nowrap; }

/* The plan-allowance banner (showPlanNotice in app.mjs). Built from
   JavaScript, but the styling has to live here: the same static CSP that
   blocks a style="" attribute also blocks .style.cssText, so the banner
   would mount with no position, no colour and no padding and look like
   nothing had happened. */
#plan-notice {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 16px;
  background: var(--amber-bg-notice);
  color: var(--amber-ink-plans);
  border-bottom: 1px solid var(--amber-line-plans);
  font-size: 13.5px;
  line-height: 1.4;
  text-align: center;
}
/* "See the plans" stays one piece: at 1280px a two-line notice broke it
   into "See the" and "plans" (12 Nov 2026). */
#plan-notice a { margin-left: 10px; color: var(--accent-text); white-space: nowrap; }
/* The modal copy is set with textContent, so a blank line in the string is
   the only way to break a paragraph. pre-line honours the newline and still
   collapses ordinary wrapping, which is what that copy expects. */
#modal-body { white-space: pre-line; }
.modal-source { display: block; margin-top: 14px; white-space: normal; }
.modal-source a { color: var(--accent-text); }

/* The build stamp. Deliberately no `display` here: an author rule setting
   display beats the browser's own [hidden] { display: none }, and this line
   must genuinely disappear when there is no stamp to show. */
.build {
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  margin: 6px auto 0;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .brand small { display: none; }
  #hero h1 { font-size: 27px; }
  .bubble { max-width: 100%; }
  .examples button { font-size: 12.5px; }
}

/* ================= UI V2: module sidebar + spark avatar ================= */

.app { flex: 1; display: flex; min-height: 0; }

aside#sidebar {
  width: 264px;
  flex: none;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.22s ease;
}
body.side-collapsed #sidebar { width: 62px; }

.side-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.side-name { font-size: 15px; white-space: nowrap; }
.collapse-btn {
  margin-left: auto;
  border: none; background: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 6px; border-radius: 8px;
}
.collapse-btn:hover { background: var(--grey-bg); }

.side-label {
  font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); padding: 8px 16px 6px; white-space: nowrap;
}
/* "Coming soon" heads the tools that are still locked. Unlocking moves a
   tile above it, so with every tool open the heading would sit over
   nothing and read as something that failed to load. No locked tile left
   after it: no heading. */
#coming-label:not(:has(~ .side-item.locked)) { display: none; }
.modules { flex: 1; overflow-y: auto; }
.module {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; margin: 2px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.module .ico { flex: none; width: 20px; text-align: center; margin-top: 1px; }
.module .txt { min-width: 0; }
.module .txt b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.module .txt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 1px; }
.module.active { background: var(--user-bubble); border-color: var(--line); }
.module.active .ico { color: var(--accent-text); }
.module.locked { opacity: 0.82; }
.module.locked .txt b::after {
  content: "SOON";
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--amber-ink);
  border: 1px solid var(--amber-line);
  border-radius: 5px; padding: 1px 5px; margin-left: 7px;
  vertical-align: 2px;
}
button.vote {
  display: inline-block; margin-top: 5px;
  border: none; background: none; padding: 0;
  font-size: 12.5px; color: var(--accent-text); font-family: inherit;
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; text-align: left;
}
button.vote:disabled { color: var(--muted); text-decoration: none; cursor: default; }

.side-foot { border-top: 1px solid var(--line); padding: 10px 16px 12px; }
.side-foot a {
  display: block; color: var(--muted); font-size: 12.5px;
  text-decoration: none; padding: 3px 0; white-space: nowrap;
}
.side-foot a:hover { color: var(--ink); }
/* The rule above hands every link in here a display, which beats the
   browser's [hidden] — so a link kept in the DOM only to be clicked from
   the account menu would otherwise still be printed under the rail. */
.side-foot a[hidden] { display: none; }

/* The account row and the menu it opens. The three links that used to sit
   here as bare text now live inside it, which gives the rail its bottom
   back. Positioned relative to the footer so the menu opens UPWARD — it is
   the last thing in the column and has nowhere else to go. */
.side-foot { position: relative; }
.acct-button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 6px; border: 0; border-radius: 10px; background: none;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.acct-button:hover { background: var(--grey-bg); }
.acct-mark {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 13.5px; font-weight: 700;
}
.acct-mark svg { display: block; }
.acct-who { font-size: 13.5px; line-height: 1.25; min-width: 0; }
.acct-who small {
  display: block; color: var(--muted); font-size: 12.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acct-chev { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.acct-menu {
  position: absolute; left: 8px; right: 8px; bottom: calc(100% - 6px);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; z-index: 20;
  box-shadow: 0 1px 2px var(--shadow-menu-near), 0 10px 30px var(--shadow-menu-far);
}
.acct-menu[hidden] { display: none; }
/* The account menu: who, what is left, and four things to do. One block
   per idea, nothing in it a sentence — the sign-in page has the sentences. */
.acct-id { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px; }
.acct-id .acct-mark { width: 32px; height: 32px; font-size: 13.5px; }
.acct-id-words { min-width: 0; line-height: 1.25; }
.acct-id-words b {
  display: block; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acct-id-words span { color: var(--muted); font-size: 12.5px; }
.acct-meters { padding: 4px 12px 8px; display: grid; gap: 9px; }
.acct-meter-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 12.5px;
}
.acct-meter-line span { color: var(--ink); }
.acct-meter-line b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-meter-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.acct-plans-link { font-size: 12.5px; color: var(--accent-text); text-decoration: none; justify-self: end; }
.acct-plans-link:hover { text-decoration: underline; }
.acct-bar {
  height: 4px; border-radius: 999px; background: var(--line);
  margin-top: 5px; overflow: hidden;
}
.acct-bar > i {
  display: block; height: 100%; background: var(--accent); border-radius: 999px;
}
.acct-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.acct-item {
  display: flex; align-items: center; width: 100%; gap: 10px;
  padding: 8px 12px; border: 0; border-radius: 9px; background: none;
  font: inherit; font-size: 13.5px; color: inherit; cursor: pointer;
  text-align: left;
}
/* A row that goes somewhere is an anchor - and every anchor inside the
   rail's foot is already dressed by ".side-foot a" three rules up: block,
   muted, 12.5px, padding 3px 0. That selector carries a class AND a type,
   so it beat the plain ".acct-item" and the price row arrived smaller,
   greyer and hanging a dozen pixels left of the buttons above it (seen on
   the live site the hour it shipped, 5 September 2026). This rule is
   pinned to the same place with one more class, so it wins - and it
   restates every property that rule sets, because inheriting half of a
   dressing is how the row came out crooked in the first place. */
.side-foot a.acct-item {
  display: flex; color: inherit; font-size: 13.5px;
  padding: 8px 12px; text-decoration: none; white-space: normal;
}
.acct-item:hover { background: var(--grey-bg); }
/* The public site's sections on one line of the account menu (12 Nov
   2026): a label and three short links, not three more rows - the owner
   asked for the menu to stay as short as it is. Written against
   ".side-foot a" above for the same reason as the price row: that rule
   would make each link a muted block. The links are underlined because
   they sit in a line of words, not alone on a row. */
.acct-site {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
  padding: 0 6px 0 12px; font-size: 13.5px; color: var(--muted);
}
.side-foot .acct-site a {
  display: inline-flex; align-items: center; min-height: 34px;
  padding: 0 6px; border-radius: 9px; color: var(--ink); font-size: 13.5px;
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.side-foot .acct-site a:hover { background: var(--grey-bg); }
.side-foot .acct-site a[hidden] { display: none; }
@media (max-width: 700px) {
  .side-foot .acct-site a { min-height: 40px; }
}
.acct-item small { margin-left: auto; color: var(--muted); font-size: 12.5px; }
/* The square that signs a phone in, inside the account menu rather than
   on a page of its own. Nothing here is wider than the menu: the popover
   is pinned to the sidebar and a code that overflows it is a code half a
   camera can see. */
/* The panel fills the box the menu left behind and never asks for more:
   the stage takes whatever is over after the heading and the words, and
   the square scales down into it. A popover that resizes when you press a
   row in it reads as a new window, which is exactly what this is not. */
.acct-phone {
  display: flex; flex-direction: column; height: 100%;
  padding: 2px 2px 6px;
}
.acct-phone-head {
  display: flex; align-items: center; gap: 8px; padding: 6px 4px 6px 10px;
}
.acct-phone-head b { font-size: 13.5px; font-weight: 600; }
.acct-phone-x {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  /* 20px, not 18: the office runs one type scale and a test holds it.
     The settings dialog wears 24 because it is a whole screen; a cross
     inside a popover the width of the sidebar is one step down. */
  font: inherit; font-size: 20px; line-height: 1; color: var(--muted);
  padding: 1px 7px; border-radius: 8px;
}
.acct-phone-x:hover { background: var(--grey-bg); color: var(--ink); }
.acct-phone-stage {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 2px 10px 6px;
}
.acct-phone-qr {
  display: block; width: 100%; height: 100%; max-width: 200px;
  border-radius: 8px;
}
.acct-phone-said {
  margin: 0 10px; font-size: 12.5px; line-height: 1.35; color: var(--muted);
}
/* On the caption's own line, not under it - see the note in app.mjs. */
.acct-phone-clock { white-space: nowrap; font-variant-numeric: tabular-nums; }
.acct-phone-again {
  display: inline-block; margin-top: 6px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 9px; padding: 5px 11px; font: inherit; font-size: 12.5px;
  cursor: pointer;
}
.acct-phone-again:hover { background: var(--grey-bg); }
.acct-stamp {
  margin: 6px 0 2px; text-align: center;
  color: var(--muted); font-size: 12.5px;
}

body.side-collapsed .side-name,
body.side-collapsed .side-label,
body.side-collapsed .module .txt,
body.side-collapsed .side-foot { display: none; }
body.side-collapsed .module { justify-content: center; padding: 12px 0; }

/* min-height: 0 IS LOAD-BEARING. Without it a flex column refuses to
   shrink below its content, so a tall tool pushes the whole column past
   the viewport and the DOCUMENT scrolls instead of the tool. The sidebar
   then slides up out of the window and leaves white below it — which is
   exactly what Kit check did the day its board preview made the page tall
   enough to matter. Every tool's own scroller depends on this line. */
.workspace {
  flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0;
}
/* THE PRIVACY CARD (13 Nov 2026; it was a full-width strip, and keeps the
   strip's name so the print rule below and the browser smoke still hold
   it). The co-owner's phone screenshots: the strip stood 750px of an 844px
   screen (89%) and pushed the question box off it. Now one sentence, one
   link and two pills.
   WHERE IT SITS, MEASURED AT 1280x800. A card floating in a corner covers
   something on every screen it could float over. Bottom right covers the
   send button once a question is asked: the composer docks at the bottom of
   a 760px column (x 396-1148, y 629-800, send at x 1088-1124) and the
   gutter right of the column is 128px, too narrow for any card. Top right
   (fixed under the header) covered the third tool card on the start screen,
   which is a button. So it is never fixed: it stands IN THE PAGE FLOW above
   the work, in the right-hand corner under the header on a wide screen,
   full width with the page's margin on a phone (the app's 700px
   breakpoint). It pushes the work down by its own height, about 100px
   (the strip pushed it 418px at 1280), and lies over nothing.
   Tokens only, and the two button tiers the app already has (button.primary
   and button.ghost), so dark mode has nothing to undo here. No animation. */
.notice-strip {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--amber-line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px; font-size: 13.5px; line-height: 1.45;
  margin: 10px 12px 0;
}
@media (min-width: 701px) {
  .notice-strip {
    align-self: flex-end; width: min(360px, calc(100% - 32px));
    margin: 12px 16px 0;
  }
}
.notice-strip[hidden] { display: none; }
.notice-strip .notice-say { margin: 0; font-weight: 600; }
.notice-strip .notice-said { margin: 4px 0 0; color: var(--amber-ink); }
.notice-strip .notice-acts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 10px;
}
.notice-strip .notice-read { margin-right: auto; min-height: 40px; }
.notice-strip .notice-later { border-color: var(--line-strong); }
.notice-strip .notice-later,
.notice-strip .notice-accept { min-height: 40px; }
/* The panel's own copy of the shut sentence (it left the card). */
.privacy-consent .notice-shut { margin: 6px 0 0; }
/* THE STRIP NEVER PRINTS, ON ANY PRINT (11 Nov 2026). It printed across
   the top of page 1 of a toolbox talk and of a COSHH assessment: the print
   rules hide header, main and aside by name, and the strip is a div
   between them, so nothing hid it. Since the notice changed, every
   existing account that has not answered it has the strip up. Not scoped
   to body.printing, because Ctrl+P on any screen prints too; !important,
   so the strip's own display rules and anything later cannot bring it
   back onto paper. On screen nothing changes. */
@media print {
  .notice-strip { display: none !important; }
}
/* NOTHING BEHIND THE ACCOUNT PANEL MOVES WHILE IT IS OPEN (13 Nov 2026):
   the wheel scrolled the page behind it by 113px at 1280 and 120px at 390
   once the notice had reached its end. Set by openSettings, cleared by
   closeSettings. */
html.settings-open, html.settings-open body { overflow: hidden; }
/* THE WAY BACK AFTER "Not now". A dot on the account button, for as long
   as there is something to answer - without it, one press hides the thing
   for the session and leaves nothing pointing at it. */
.acct-button.has-notice .acct-mark::after {
  content: ""; position: absolute; top: -2px; right: -2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber-line); border: 2px solid var(--panel);
}
.acct-button.has-notice .acct-mark { position: relative; }
.small-mark { width: 26px; height: 26px; font-size: 13.5px; border-radius: 8px; }
.menu-btn {
  display: none;
  border: none; background: none; color: var(--ink);
  font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
#side-backdrop { display: none; }
/* THE MENU'S GREY LAYER NEVER PRINTS, IN ANY MENU STATE (13 Nov 2026).
   It is a fixed, full-page layer drawn under the phone menu when
   body.side-open is set, and no print rule hid it: the print rules hide
   header, main and aside by name, and it is none of them. On A4 it
   happens to stay off the paper, because the print page is 794px wide
   and the layer only exists below 700px; on narrower paper it does not.
   Measured on main e8ea7cd8: a COSHH assessment printed on A5 from a
   390px screen with the menu open came out with page 1 under a grey
   wash. Not scoped to body.printing, because Ctrl+P prints too;
   !important, so the narrow-screen rule cannot bring it back. On screen
   nothing changes. */
@media print {
  #side-backdrop { display: none !important; }
}

/* The KASQ spark avatar — replaces the grey "AI" chip. While a question is
   in flight the spark spins and breathes; finished answers keep it still. */
.spark-avatar {
  flex: none; width: 30px; height: 30px; margin-top: 3px;
  display: grid; place-items: center;
  color: var(--accent-text); font-size: 20px;
}
.spark-avatar i { display: inline-block; font-style: normal; }
.thinking .spark-avatar i {
  animation: kasq-spin 2.4s linear infinite, kasq-breathe 1.2s ease-in-out infinite alternate;
}
@keyframes kasq-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes kasq-breathe { from { opacity: 0.45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .thinking .spark-avatar i { animation: kasq-breathe 1.6s ease-in-out infinite alternate; }
}

.modal {
  position: fixed; inset: 0; z-index: 50;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 460px; width: 100%;
  padding: 24px 26px;
}
.modal-card h2 { margin: 0 0 10px; font-size: 17px; }

/* ---- The account panel ---- */
.settings {
  position: fixed; inset: 0; z-index: 50;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.settings[hidden] { display: none; }
.settings-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow);
  width: min(860px, 100%); height: min(640px, 100%);
  display: grid; grid-template-columns: 210px 1fr; overflow: hidden;
}
.settings-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  border: none; background: transparent; font: inherit; font-size: 24px;
  line-height: 1; color: var(--muted); cursor: pointer; padding: 6px 10px;
  border-radius: 10px;
}
.settings-close:hover { background: var(--bg); color: var(--ink); }
.settings-nav {
  border-right: 1px solid var(--line); padding: 18px 10px;
  display: flex; flex-direction: column; gap: 2px; background: var(--bg);
}
.settings-tab {
  border: none; background: transparent; font: inherit; font-size: 13.5px;
  text-align: left; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  color: var(--ink);
}
.settings-tab:hover { background: var(--hover-veil-tab); }
/* The seats, drawn in the sheet - rows like the account page's own. */
.settings-people { margin-top: 22px; }
.settings-people h3 { margin: 0 0 8px; }
.settings-people-list { list-style: none; margin: 10px 0; padding: 0;
  display: grid; gap: 8px; }
.settings-people-list li { display: flex; align-items: center;
  justify-content: space-between; gap: 12px; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 8px 8px 14px; }
.settings-people-email { flex: 1 1 220px; min-width: 0; font: inherit;
  font-size: 13.5px; padding: 9px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--panel); color: var(--ink); }
.settings-people-email:focus { outline: none;
  border-color: var(--accent); }
.settings-people-err { color: var(--red-ink); font-size: 13.5px;
  min-height: 18px; margin: 8px 0 0; }
/* The focus ring is for the keyboard; a mouse click already shows which
   tab is on. */
.settings-tab:focus { outline: none; }
.settings-tab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.settings-tab.on { background: var(--panel); font-weight: 600; box-shadow: 0 1px 2px var(--shadow-tab); }
.settings-body { padding: 26px 30px; overflow-y: auto; }
.settings-body h3 { margin: 0 0 16px; font-size: 17px; }
.settings-body h4 { margin: 22px 0 8px; font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.settings-body p { margin: 0 0 12px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.settings-body p.plain { color: var(--ink); }
.settings-rows { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 15px; margin: 0 0 16px; }
.settings-rows dt { color: var(--muted); margin: 0; }
.settings-rows dd { margin: 0; overflow-wrap: anywhere; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.settings-actions .btn, .settings-actions a.btn {
  border: 1px solid transparent; background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 15px; font: inherit; font-size: 13.5px;
  font-weight: 500;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.settings-actions .btn:hover { background: var(--grey-bg); }
.settings-actions .btn.red { color: var(--red-ink); }
.settings-actions .btn.red:hover { background: var(--red-bg); }
.settings-actions .btn:disabled { opacity: .5; cursor: default; }
.settings-actions input { font: inherit; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; width: 9rem; }
.settings-beta { display: inline-block; vertical-align: middle; margin-left: 6px;
  padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); }
.settings-meter .line { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.settings-meter .bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.settings-meter .bar i { display: block; height: 100%; background: var(--accent); }
.settings-meter small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.settings-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 14px 0 6px; }
.settings-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 0 0 6px; }
.settings-table td { padding: 8px 0; border-top: 1px solid var(--line); }
.settings-table th:not(:first-child), .settings-table td:not(:first-child) { text-align: right; }
.settings-danger { border: 1px solid var(--red-line); background: var(--red-bg); border-radius: 14px; padding: 14px 16px; margin-top: 18px; }
.settings-quiet {
  border: none; background: transparent; font: inherit; font-size: 13.5px;
  color: var(--muted); text-decoration: underline; cursor: pointer;
  padding: 0; margin-top: 28px; display: block;
}
.settings-quiet:hover { color: var(--red-ink); }
.acct-left { margin: 6px 12px 8px; font-size: 13.5px; color: var(--muted); }
.settings-danger p { color: var(--red-ink-settings); }
/* WHAT THE ACCOUNT HOLDS, on the deletion screen. Counts and a choice,
   inside the red box because it is part of the same irreversible act -
   not a separate panel that could be scrolled past and left unanswered. */
.settings-records { margin: 10px 0 2px; }
.settings-shelves {
  list-style: none; margin: 8px 0 12px; padding: 0;
  font-size: 13.5px; color: var(--red-ink-settings);
}
.settings-shelves li { padding: 2px 0 2px 14px; position: relative; }
.settings-shelves li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--red-line);
}
.settings-picks { display: grid; gap: 6px; margin-bottom: 12px; }
/* The whole row is the target, because a 14px radio on a phone is not
   one. The reason sits under the label rather than beside it: a person
   choosing this has to be able to read what each one costs. */
.settings-pick {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px;
  align-items: start; cursor: pointer;
  border: 1px solid var(--red-line); border-radius: 10px; padding: 10px 12px;
  background: transparent;
}
.settings-pick input { margin: 2px 0 0; grid-row: 1 / span 2; }
.settings-pick-lbl { font-size: 15px; color: var(--ink); }
.settings-pick-why { font-size: 12.5px; color: var(--muted); }
.settings-pick:has(input:checked) { border-color: var(--red-ink); }
.settings-pick:has(input:focus-visible) { outline: 2px solid var(--red-ink); outline-offset: 2px; }
.settings-err { color: var(--red-ink); font-size: 13.5px; min-height: 18px; margin: 6px 0 0; }
.settings-status { color: var(--muted); font-size: 13.5px; }
@media (max-width: 700px) {
  .settings { padding: 0; }
  .settings-card {
    width: 100%; height: 100%; border-radius: 0; border: none;
    grid-template-columns: 1fr; grid-template-rows: auto 1fr;
  }
  /* The close button gets its own strip above the tabs, so the last tab
     is never under it. */
  .settings-nav {
    /* WRAPPED, NOT SCROLLED. The row used to scroll sideways with no
       cue, and on a 375px phone "About KASQ" sat clipped at the edge
       looking like a rendering fault (the first-time walk, 2 September
       2026). Four short words earn a second line before they earn a
       hidden scrollbar - every tab is simply visible. */
    flex-direction: row; flex-wrap: wrap; border-right: none;
    border-bottom: 1px solid var(--line); padding: 44px 12px 10px 12px;
    gap: 2px;
  }
  .settings-close { top: 6px; right: 8px; background: var(--panel); border: 1px solid var(--line); }
  .settings-tab { white-space: nowrap; font-size: 13.5px; padding: 8px 10px; }
  .settings-body { padding: 18px 16px 40px; }
  .settings-rows { grid-template-columns: 1fr; gap: 2px; }
  .settings-rows dt { font-size: 12.5px; margin-top: 8px; }
}
.modal-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

@media (max-width: 700px) {
  aside#sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 40;
    width: 264px;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow);
  }
  body.side-open #sidebar { transform: none; }
  body.side-collapsed #sidebar { width: 264px; }
  body.side-collapsed .side-name,
  body.side-collapsed .side-label,
  body.side-collapsed .module .txt,
  body.side-collapsed .side-foot { display: block; }
  body.side-collapsed .side-label { display: block; }
  #side-backdrop {
    position: fixed; inset: 0; z-index: 30;
    background: var(--scrim-side);
  }
  body.side-open #side-backdrop { display: block; }
  .menu-btn { display: grid; place-items: center; }
  .collapse-btn { display: none; }
}

/* V2.1 polish: monochrome module icons; usable collapsed rail */
.module .ico { color: var(--muted); }
.module .ico svg { display: block; margin: 2px auto 0; }
.module.active .ico { color: var(--accent-text); }
body.side-collapsed .side-top {
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 8px;
}
body.side-collapsed .collapse-btn { margin-left: 0; }

/* ================= UI V2.2: minimalist single-line sidebar ================= */

.side-nav { flex: 1; overflow-y: auto; padding: 4px 8px; }
.side-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 9px 10px; margin: 1px 0;
  border: none; border-radius: 10px;
  background: none; color: var(--ink);
  font: inherit; font-size: 13.5px; text-align: left;
  cursor: pointer;
}
/* THE TOOLBAR'S BADGE - the phone's own pattern: a small count on the
   tile, amber for things waiting, red the moment a stop is among them.
   It appears with one soft pulse and stands still: motion here means
   "this just changed", so it never loops. Collapsed, the count becomes
   a plain dot on the icon's shoulder - the number returns with the
   label. */
.side-badge {
  margin-left: auto; flex: none;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600; line-height: 1;
  background: var(--amber-bg); color: var(--amber-ink);
  border: 1px solid var(--amber-line);
}
.side-badge.stop {
  background: var(--red-bg); color: var(--red-ink);
  border-color: var(--red-line);
}
.side-badge.grew { animation: badge-pulse 0.45s ease-out; }
@keyframes badge-pulse {
  0% { transform: scale(0.6); opacity: 0.3; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .side-badge.grew { animation: none; }
}
body.side-collapsed .side-badge {
  position: absolute; top: 5px; right: 9px;
  min-width: 9px; height: 9px; padding: 0;
  font-size: 0;
}
.side-item:hover { background: var(--grey-bg); }
.side-item.active { background: var(--user-bubble); font-weight: 600; }
.side-item .ico { flex: none; width: 20px; display: grid; place-items: center; color: var(--muted); }
.side-item .ico svg { display: block; }
.side-item.active .ico, .side-item .spark-ico { color: var(--accent-text); font-size: 16px; }
.side-item .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item.locked { color: var(--muted); }
/* THE NEWS ROW'S COUNT (the owner, 6 November 2026): "<n> today" on the
   right, plain muted words - not .side-badge, whose amber means work is
   waiting. Folded away with the label when the desk collapses the bar. */
.side-count {
  margin-left: auto; flex: none;
  color: var(--muted); font-size: 12.5px; font-weight: 400;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
body.side-collapsed .side-count { display: none; }
.side-item:disabled { opacity: 0.5; cursor: default; }

body.side-collapsed .side-item { justify-content: center; padding: 11px 0; }
body.side-collapsed .side-item .lbl { display: none; }
body.side-collapsed .side-nav { padding: 4px 6px; }

.small-mark { display: none; }

.modal-buttons { display: flex; gap: 10px; justify-content: flex-end; }
/* THE TYPE SCALE (the owner's typography report, 2 Sep 2026). Six
   sizes, not fourteen: 12.5 / 13.5 / 15 / 16 / 17 / 20px, plus the
   serif display sizes. Nothing readable sits under 12.5px any more,
   and neighbours half a pixel apart - which no eye can tell and every
   screen can mismatch - merged upward. ui-integrity holds the set. */
/* ONE GREEN, FULL STOP (the owner's colour report, 2 Sep 2026). The
   brighter status green measured 3.7:1 on its tint - under AA for the
   small badges it lived on - and was the last second-green standing.
   Valid tickets, level 0, the answer tick and the zoom slider all key
   to var(--accent) now, and its near-twin tint folded into the
   family's #e6f2ec. ui-integrity names the retired pair and refuses
   both. */
/* THE BUTTON TIERS (the owner's sweep, 2 Sep 2026). Two, on purpose:
   the CHAT SHELL runs 13.5px pills - primary 9px 17px in the accent,
   quiet 8px 15px on the line - and the CARD SHEETS run 14px pills at
   10px 20px, sized for thumbs on phones. One green for every primary:
   var(--accent); the save button wore its own var(--accent) until today.
   ui-integrity parses this file and holds both tiers. */
button.primary {
  border: none; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 17px; cursor: pointer;
}
button.primary:hover:not(:disabled) { background: var(--accent-hover); }
button.primary:active:not(:disabled) { background: var(--accent-pressed); }
/* EVERY FOCUS IS OURS. The browser's default ring is the same stranger
   as its link blue - one accent ring, keyboard only, and only where
   nothing else says "you are here": buttons and links. FIELDS already
   speak focus in their own tongue - the border turns accent (see
   .input-row:focus-within and every field's :focus rule) - and a ring
   on top of that drew a green rectangle inside the advisor's rounded
   composer (the owner's catch, launch day). */
button:focus-visible, a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 2px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
}
/* Grey, not pale green: a disabled button that looks nearly active gets
   pressed and does nothing. */
button.primary:disabled {
  background: var(--disabled-bg); color: var(--disabled-ink); cursor: default; opacity: 1;
}

@media (max-width: 700px) {
  .small-mark { display: grid; }
  body.side-collapsed .side-item { justify-content: flex-start; padding: 9px 10px; }
  body.side-collapsed .side-item .lbl { display: inline; }
  body.side-collapsed .side-count { display: inline; }
  /* On a phone the drawer always opens full width, so the badge keeps
     its number even while the desk would have shown a dot. */
  body.side-collapsed .side-badge {
    position: static;
    min-width: 20px; height: 20px; padding: 0 6px;
    font-size: 12.5px;
  }
}

/* ============ UI V2.3: wordmark, SVG spark, ChatGPT-style toggle ============ */
.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
/* The name is a link to the front page (12 Nov 2026) and must still look
   like the name: no underline, no link colour. 40px tall for a thumb in the
   phone's drawer, with the extra height taken back by the margin so the
   row under it does not move. */
a.wordmark {
  color: inherit; text-decoration: none; border-radius: 6px;
  display: inline-flex; align-items: center; min-height: 40px; margin: -3px 0;
}
.side-top { padding: 15px 14px 11px; }
.collapse-btn { width: 34px; height: 34px; display: grid; place-items: center; }
.collapse-btn svg { width: 19px; height: 19px; display: block; }
.collapse-btn .ic-spark { display: none; }
.collapse-btn .ic-panel { display: block; color: var(--muted); }
.collapse-btn:hover .ic-panel { color: var(--ink); }

body.side-collapsed .wordmark { display: none; }
body.side-collapsed .side-top {
  flex-direction: row;
  justify-content: center;
  padding: 15px 0 11px;
}
body.side-collapsed .collapse-btn { margin-left: 0; }
body.side-collapsed .collapse-btn .ic-panel { display: none; }
body.side-collapsed .collapse-btn .ic-spark { display: block; color: var(--accent-text); }
body.side-collapsed .collapse-btn:hover .ic-spark { display: none; }
body.side-collapsed .collapse-btn:hover .ic-panel { display: block; }

#hero .spark { display: inline-block; vertical-align: -3px; }
#hero .spark svg { width: 27px; height: 27px; color: var(--accent-text); }
.side-item .spark-ico svg { width: 16px; height: 16px; }
.spark-avatar svg { width: 20px; height: 20px; display: block; }
.thinking .spark-avatar svg {
  animation: kasq-spin 2.4s linear infinite, kasq-breathe 1.2s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .thinking .spark-avatar svg { animation: kasq-breathe 1.6s ease-in-out infinite alternate; }
}

/* V2.5: no default blue focus ring on mouse clicks (keyboard keeps a ring) */
.collapse-btn:focus { outline: none; }
.collapse-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ================= The news view (6 November 2026) ================= */
/* THE NEWS IN THE APP WEARS THE SITE'S OWN RULES. Its markup is the
   server's (kasq-site.mjs) and its look is /news/news.css, the file
   kasq.uk/news links. What is here is the little the site's shell gives
   that markup and the app has no rule for: the canvas as wide as the
   site's news list, the serif headings, the muted lede, the pill
   buttons, and the links that are text until hovered. The view's id is
   always inside :where(), so a rule here weighs no more than its element
   and class names and news.css wins wherever it speaks. */
#news-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#news-view[hidden] { display: none; }
.news-canvas { max-width: 1180px; width: 100%; min-width: 0; margin: 0 auto; padding: 30px 22px 48px; }
:where(#news-view) h1 {
  font-family: var(--serif); font-weight: 500; font-size: 31px; line-height: 1.2;
  letter-spacing: -0.01em; margin: 0 0 12px;
}
:where(#news-view) h2 { font-family: var(--serif); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 6px; }
:where(#news-view) p { margin: 0 0 12px; }
:where(#news-view) .sub { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 640px; }
:where(#news-view) a { text-decoration: none; }
:where(#news-view) a:hover { text-decoration: underline; }
:where(#news-view p, #news-view li) a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(#news-view) .cta {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 999px; padding: 10px 20px;
  font-size: 13.5px; font-weight: 600; line-height: 1.2; text-decoration: none;
}
:where(#news-view) .cta:hover { text-decoration: none; }
:where(#news-view) .cta.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
:where(#news-view) .cta.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
:where(#news-view) .cta.secondary { background: var(--panel); color: var(--ink); border-color: var(--line); }
:where(#news-view) .cta.secondary:hover { border-color: var(--accent); color: var(--accent-text); }
@media (max-width: 700px) {
  .news-canvas { padding: 22px 16px 40px; }
  :where(#news-view) h1 { font-size: 25px; }
}

/* ================= TBT generator view + print sheet ================= */

#tbt-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
/* margin: 0 auto, not auto: inside a flex column "auto" centred a short
   page vertically, so RAMS and COSHH started a third of the way down the
   screen while Toolbox talks started at the top. Every tool starts at the
   same line now. */
.tbt-canvas { max-width: 760px; width: 100%; min-width: 0; margin: 0 auto; padding: 30px 20px 48px; }
/* THE CENTRED SERIF STAYS (step 8 reversed step 7's axis, the owner's
   call on launch day): he saw the old centred version and recognised it
   as the product's character. Serif for the one title, centred; sans
   for the work below it; mono for the machines' own numbers. */
.tbt-heading { font-family: var(--serif); font-weight: 500; font-size: 31px; margin: 10px 0 8px; text-align: center; }
.tbt-sub { color: var(--muted); margin: 0 auto 30px; font-size: 15px; text-align: center; max-width: 640px; }
.tbt-label {
  display: block; font-size: 12.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted); margin: 16px 0 6px;
}
#tbt-view input[type="text"], #tbt-view input[type="number"], #tbt-view input[type="date"],
#coshh-view input[type="text"], #coshh-view input[type="number"],
#havs-view input[type="text"], #havs-view input[type="number"], #havs-view input[type="email"],
#drops-view input[type="number"],
/* KIT CHECK WAS NOT ON THIS LIST. Every text box in it — the site name, the
   search, the load — rendered as a bare browser control while every other
   tool's was rounded, padded and in the house font. It did not "not match
   the design"; it had never been given it. Drops was added the day it was
   built, on purpose, so it never repeats that. */
#kit-view input[type="text"], #kit-view input[type="number"],
/* And the toolbox talk's context box, the day it stopped being an input
   and became a textarea - the same trap the note above describes, which
   is why it is on the list in the same commit that created it. */
#tbt-view textarea,
#strikes-view input[type="text"], #strikes-view textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font: inherit;
  padding: 10px 13px; outline: none;
}
#tbt-view input:focus, #tbt-view textarea:focus,
#coshh-view input:focus, #havs-view input:focus,
#drops-view input:focus, #strikes-view input:focus,
#strikes-view textarea:focus {
  border-color: var(--accent);
}
/* A date field on iOS Safari is a native control, and its value lives in a
   ::-webkit-date-and-time-value box that is centred and refuses to shrink.
   width: 100% is obeyed, the intrinsic minimum is not, so on a phone the
   field grows wider than the card and the row runs off the screen. No other
   engine does this, which is why it never showed on the office machine.
   Not inside a phone media query on purpose: an iPad does it too. */
#tbt-view input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  max-width: 100%;
}
#tbt-view input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-width: 0;
  margin: 0;
}
.tbt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
/* Drops: the unit toggle above the mass/height fields. The fields
   themselves are plain #drops-view input[type=number] - the shared
   rounded-field look already comes from the selector list above, and the
   native spin buttons are left showing on purpose: the source DROPS
   calculator (dropsforum.org) uses the same plain number field with its
   own native spinner, no custom control, and this follows it rather than
   hiding what a person dragging in from that site would expect to see. */
.drops-unit-toggle { margin: 4px 0 6px; }
.drops-unit-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
/* Same pill-button vocabulary as .signs-turn (border, radius, the
   aria-pressed state) rather than a new toggle style. */
.drops-unit-btn {
  border: 1px solid transparent; background: transparent; color: var(--ink);
  border-radius: 999px; font: inherit; font-size: 13.5px;
  font-weight: 500;
  padding: 8px 15px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.drops-unit-btn:hover { background: var(--grey-bg); }
.drops-unit-btn:active { transform: scale(0.97); }
.drops-unit-btn[aria-pressed="true"] {
  border-color: var(--accent); background-color: var(--picked);
  font-weight: 600;
}
.lang-row { display: flex; gap: 8px; flex-wrap: wrap; }
/* The Take 5 language picker. One chip is always on - a sheet is printed
   in one language and there is no such thing as none - so unlike the
   toolbox talk's row this one behaves as radio buttons, not switches. */
.take5-lang { display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin: 0 0 14px; }
.take5-lang .tbt-label { margin: 0; }
/* The site is not a third setting - it is which world the two settings
   under it belong to. Same chips, because they are the same gesture, but
   the rule says which way the page reads: everything below this line is
   the property of whatever is highlighted above it. */
.take5-sites {
  padding: 0 0 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.take5-sites .tbt-label { font-weight: 700; color: var(--ink); }
.lang-chip {
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--muted); font: inherit; font-size: 13.5px; padding: 9px 16px;
}
.lang-chip.fixed { color: var(--ink); background: var(--grey-bg); }
button.lang-chip { cursor: pointer; }
button.lang-chip.on {
  background: var(--picked); border-color: var(--accent);
  color: var(--ink); font-weight: 600;
}
.logo-row { display: flex; align-items: center; gap: 14px; }
.logo-preview {
  display: grid; place-items: center;
  height: 52px; min-width: 90px; padding: 4px 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.logo-preview img { max-height: 44px; max-width: 150px; object-fit: contain; }
.tbt-actions {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-top: 30px; text-align: center;
}
#tbt-generate {
  border: none; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink); font: inherit; font-size: 15px; font-weight: 600;
  padding: 12px 24px; cursor: pointer;
}
#tbt-generate:disabled { opacity: 0.5; cursor: default; }
.tbt-status { color: var(--muted); font-size: 13.5px; }
.tbt-result-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin: 26px 0 12px; flex-wrap: wrap;
}
/* WHERE THE TALK WENT GETS ITS OWN LINE. Squeezed into the last column of
   this row it wrapped four words deep and read as a broken button (the
   owner, 18 September 2026). It is a status line, not something to press. */
.tbt-result-bar .tbt-shelf { flex: 1 0 100%; order: 10; margin: 0; }
/* The download button is one quiet line. Squeezed by a long verdict it
   wrapped into a two-storey slab (the owner's catch, launch day). */
.tbt-result-bar > button { white-space: nowrap; flex-shrink: 0; }
/* After a run the "make" button steps back so the one green button on the
   screen is the one that gets the result out. */
#tbt-generate.secondary {
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
}
/* Desktop says drop, phone says choose - nobody drags a file onto a phone. */
.drop-phone { display: none; }
@media (max-width: 700px) {
  .drop-desk { display: none; }
  .drop-phone { display: inline; }
  /* Summary, button, "Saved as…" in a column, not three squeezed columns. */
  .tbt-result-bar { flex-direction: column; align-items: stretch; }
  .tbt-result-bar > button { width: 100%; }
  /* One line under the chat box on a phone - the rest is in About. */
  .smallprint { font-size: 12.5px; line-height: 1.35; }
}
#tbt-verdict { font-size: 13.5px; color: var(--muted); }
/* One green primary per tool. The result bar's button IS the tool's
   "done" - it used to be the only grey one on the page. */

/* The sheet is styled for paper: always light, print-safe colours. */
/* On screen every language page and the sign-on are their OWN cards,
   stacked with air between - the owner's call (28 August 2026): the
   sheet read as one long receipt. On paper each card is one side. */
/* THE PREVIEW IS THE PAGE, AND UNTIL NOW IT WAS A DIFFERENT DOCUMENT.
   Measured, not argued: the page on screen was 720px wide and printed at
   794px; the type was 13.5px on screen and 12.5px on paper; the photo column
   was 250px on screen and 180px on a dense printed sheet. The supervisor drags
   the photo to frame it and gets a different crop on the paper twelve people
   sign - the owner's catch, 5 September 2026, and he was right that the
   preview "has no A4 proportions".
   So a page IS A4 now, on screen and on paper alike: 210 x 297mm with the
   paper margin as its own padding, and the whole sheet scaled down to fit the
   panel (see fitTbtPaper in app.mjs). One geometry, one set of type sizes -
   the ones that used to live in @media print - so what he sees is the sheet.
   The outline, not a border, draws the paper's edge on screen: a border would
   eat 2px of the 210mm and put the screen half a millimetre out again. */
.tbt-sheet {
  background: transparent; color: var(--sheet-ink);
  display: grid; gap: 22px;
  width: 210mm; transform-origin: top left;
  font-size: 12.5px; line-height: 1.5;
}
/* The frame the scaled sheet sits in. Its height is set from the scale, so
   the rest of the panel does not sit under a page that only LOOKS smaller. */
#tbt-paper { overflow: hidden; }
/* The box fitTbtPages scales, and the box that carries its drawn height - a
   transform changes what is drawn and never what is laid out, so without a
   height of its own the page would stay as tall as the sheet was before it was
   reduced. */
/* overflow: hidden IS LOAD-BEARING, not tidiness. The box inside is laid out
   WIDER than the page - 100/f per cent - and drawn back to size by the scale,
   and a transform hides that from scrollWidth but not from the printer: Chrome
   saw a page whose content overflowed and quietly scaled the whole sheet up to
   compensate. Measured at a fit of 0.78: the content came out 186.33mm inside
   11.84mm margins instead of 182mm inside 14mm. Clipping the box the widening
   happens in leaves nothing to compensate for - 181.93mm inside 14.03mm - and
   clips nothing real, because the scale brings the content back inside. */
.tbt-sheet .talk-page > .page-fit { position: relative; overflow: hidden; }
.tbt-sheet .talk-page > .page-fit > .page-inner { transform-origin: top left; }
.tbt-sheet .talk-page,
.tbt-sheet .signon-page {
  position: relative;
  width: 210mm; min-height: 297mm; box-sizing: border-box;
  padding: 12mm 14mm 10mm;
  background: var(--panel);
  outline: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
}
/* WHERE THE PAPER ENDS. A page that has outgrown A4 still LOOKS like one page
   on a screen - it is just a taller white card - so the sheet could overrun by
   an inch and say nothing.
   ONLY ON A PAGE THAT ACTUALLY OVERRUNS, and CSS cannot know that: markTbtFold
   in app.mjs measures each page against A4 and puts .over-a4 on the ones that
   spill. Drawn on every page, it announced a second sheet on pages that fit -
   a warning that is false is worse than no warning.
   AND IT SITS INSIDE THE PAGE. Hung below the 297mm line, its white strip
   stood in the gap between the cards and read as a stray white band rather
   than as a fold - the owner's words, "between the sheets there should be the
   background colour, not a strange white section". Lifted by its own height,
   the line lands exactly on 297mm and the words sit above it, on the paper.
   It never prints. */
.tbt-sheet .talk-page.over-a4::after {
  content: "page ends here \2014\A0the rest runs onto a second sheet";
  position: absolute; left: 1px; right: 1px; top: 297mm;
  transform: translateY(-100%);
  border-bottom: 1px dashed var(--red-line);
  background: var(--sheet-veil-fold);
  font-size: 9.5px; color: var(--red-ink); text-align: right;
  padding: 3px 14mm 4px; pointer-events: none;
}
.tbt-sheet .sheet-head {
  display: flex; gap: 18px; align-items: center;
  border-bottom: 2px solid var(--sheet-line-head); padding-bottom: 12px; margin-bottom: 14px;
}
.tbt-sheet .sheet-logo {
  flex: none; display: grid; place-items: center;
  height: 56px; min-width: 90px; background: var(--panel);
}
.tbt-sheet .sheet-logo img { max-height: 52px; max-width: 160px; object-fit: contain; }
/* The company's NAME is not in this box. It was, for one round - under the
   mark, or standing in for it where a firm has no logo file - and a wordmark
   and a typeset name in the same box are two answers to the same question.
   It reads with the sheet's other facts instead, on the line under the
   title. */
.tbt-sheet .sheet-title { flex: 1; }
.tbt-sheet .sheet-title h2 { margin: 0 0 3px; font-size: 20px; }
.tbt-sheet .sheet-title small { color: var(--sheet-ink-small); display: block; font-size: 12.5px; }
/* ONE FIXED COLUMN, WHATEVER THE LANGUAGE. flex: none gave this corner as much
   width as its words wanted, and "Toolbox talk · Polski" wants half as much
   again as "Toolbox talk" - so on every translated page it took that width out
   of the TITLE, which wrapped onto two lines with clear space beside it. The
   sheet's layout is the same in every language or it is not one layout. */
.tbt-sheet .sheet-kind {
  flex: 0 0 108px; text-align: right; font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sheet-ink-small); line-height: 1.35;
}
/* 108px IS THE LABEL'S OWN WIDTH, and the label is the one thing here that is
   the same on every page: measured, "TOOLBOX TALK" is 107px at this size and
   spacing. A first attempt at 92px was a guess, and it broke the label itself
   across two lines - TOOLBOX over TALK - which is the owner's screenshot. The
   widest of the six language names, Български, is 89px, so every one of them
   fits underneath without touching the width.
   That also means the ENGLISH page keeps the column it always had: this takes
   nothing from the title, it only stops the translated pages having less. */
.tbt-sheet .sheet-kind span { display: block; white-space: nowrap; }
.tbt-sheet .sheet-kind-lang { color: var(--accent-text); }
.tbt-sheet h3 {
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-text); margin: 18px 0 8px;
}
.tbt-sheet h3.danger { color: var(--red-ink); }
/* The stake: consequences up front, amber-edged like the COSHH caveats. */
.tbt-stake {
  margin: 14px 0 0; padding: 9px 13px; font-size: 13.5px; line-height: 1.5;
  border-left: 3px solid var(--sheet-line-stake); background: var(--sheet-bg-stake); font-weight: 500;
}
/* Key points beside the photo, stretched to the same height. */
.tbt-sheet .kp-row {
  display: grid; grid-template-columns: 1fr 250px; gap: 20px;
  align-items: stretch;
}
/* A GRID COLUMN IS AS WIDE AS ITS WIDEST WORD UNLESS YOU SAY OTHERWISE, and
   a supervisor typing into a point can produce a "word" of any length. Without
   these two lines one unbroken string pushed the whole sheet off the screen -
   the owner's own test, 5 September 2026, and exactly the way a person who
   knows nothing about layout finds a hole in it. min-width lets the column be
   narrower than its content; the wrap lets the content break rather than
   demand room. Applied to every line of the sheet a person can type into. */
.tbt-sheet .kp-row > ol.points { min-width: 0; }
.tbt-sheet ol.points > li,
.tbt-sheet ul.marked li,
.tbt-sheet ol.ask > li { overflow-wrap: break-word; }
.tbt-sheet .photo-col { margin: 0; display: flex; flex-direction: column; }
/* A SHAPE OF ITS OWN, NOT THE HEIGHT OF THE COLUMN BESIDE IT. The photo used
   to stretch to whatever the key points came to (flex: 1, capped at 440px) in
   a column 250px wide - so a long point turned it into a 250 x 415 sliver, a
   1.66 crop, and the owner's own test string did exactly that. The crop was
   never the same twice and never the same as the paper's. 4:5 is one portrait
   shape, the same on screen and in print, so the frame he drags is the frame
   that prints. */
.tbt-sheet .photo-col { position: relative; }
.tbt-sheet .photo-col .photo-frame {
  position: relative; overflow: hidden; border-radius: 6px;
  aspect-ratio: 5 / 4;
}
/* The photo is placed by paintPhotoPan, which sizes it to COVER the frame and
   holds its offset inside the overhang - so it is absolute, centred, and moved
   from that centre. object-fit is gone with the object-position it went with:
   between them they could only move the photo along the one axis its own
   proportions left slack on, which is why it would not go sideways. */
.tbt-sheet .photo-col img {
  position: absolute; left: 50%; top: 50%; display: block;
  max-width: none;
  /* THE PLACEHOLDER IS NEVER EMPTY, not even for the moment before the photo
     has loaded and paintPhotoPan can measure it. These three fill the frame on
     their own; the inline width and height that arrive with the first paint
     match the photo's own proportions exactly, so cover then crops nothing and
     the two never fight. Without them the image sat at zero width between the
     render and the load, and the frame was a bare strip. */
  width: 100%; height: 100%; object-fit: cover;
  transform: translate(-50%, -50%);
  cursor: grab; touch-action: none; user-select: none;
}
/* ZOOM, AND IT COSTS THE SHEET NOTHING. Dragging chose which part of the photo
   showed; there was no way to choose HOW MUCH of it showed, so a wide shot of
   a boiler room could not be brought in on the bracket being welded. The
   controls sit ON the photo, absolutely placed, so they take no room in the
   flow: the sheet is laid out identically whether they are there or not, which
   is the rule the whole preview now rests on. They never print. */
.tbt-sheet .photo-zoom {
  position: absolute; right: 6px; bottom: 6px;
  display: flex; gap: 4px; pointer-events: auto;
}
.tbt-sheet .photo-zoom button {
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 999px;
  background: var(--sheet-zoom-bg); color: var(--accent-ink);
  font: inherit; font-size: 15px; line-height: 1; cursor: pointer;
}
.tbt-sheet .photo-zoom button:hover:not(:disabled) { background: var(--sheet-zoom-bg-hover); }
.tbt-sheet .photo-zoom button:disabled { opacity: 0.4; cursor: default; }
.tbt-sheet .photo-col img:active { cursor: grabbing; }
.tbt-sheet .photo-col figcaption { font-size: 12.5px; color: var(--sheet-ink-small); margin-top: 5px; }
.tbt-sheet ol.points { margin: 0; padding-left: 0; list-style: none; counter-reset: kp; }
.tbt-sheet ol.points > li {
  counter-increment: kp; position: relative; padding-left: 32px;
  margin-bottom: 9px;
}
.tbt-sheet ol.points > li::before {
  content: counter(kp); position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%; background: var(--accent);
  color: var(--accent-ink); font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
/* The sign-on table's column widths. They lived in style="" attributes
   inside innerHTML until the live product's Content-Security-Policy - which
   sets default-src 'self' and no style-src - refused every one of them, so
   the sheet a crew signs came out with the browser's default columns on
   production and the right ones on a developer's machine. */
.tbt-sheet .signon .signon-col-6 { width: 6%; }
.tbt-sheet .signon .signon-col-34 { width: 34%; }
.tbt-sheet .signon .signon-col-30 { width: 30%; }
.tbt-sheet .pl-line { color: var(--sheet-ink-plain); font-size: 12.5px; margin-top: 2px; }
/* THE ORDER IS HIS. Any line on the English page - a key point, a DO, a
   DON'T, a question - can be picked up and moved; the open hand is the only
   thing that says so, because the numbers are a CSS counter and there is no
   handle to draw. Nothing here prints: a drag cannot happen on paper, and a
   cursor has never been printable. */
.tbt-sheet .talk-page ol.points > li[data-tbt-point],
.tbt-sheet .talk-page ul.marked > li[data-tbt-do],
.tbt-sheet .talk-page ul.marked > li[data-tbt-dont],
.tbt-sheet .talk-page ol.ask > li[data-tbt-ask] { cursor: grab; }
/* AND THE HAND CLOSES. On the BODY, not on the row: a pointer that has left
   the row it picked up is still holding it, and a cursor that opens again
   halfway through the drag says the opposite. The !important outranks the
   grab above and every text cursor the sheet sets, and user-select stops the
   browser turning the same press into a text selection - which is what it
   did, so a dragged line highlighted itself and nothing said it was held. */
body.tbt-dragging, body.tbt-dragging * { cursor: grabbing !important; }
body.tbt-dragging { user-select: none; -webkit-user-select: none; }
.tbt-sheet li.tbt-point-dragging {
  position: relative; z-index: 2;
  background: var(--panel); box-shadow: var(--shadow); border-radius: 6px;
}
/* While one is moving, the rest slide rather than jump. The row being
   carried is excluded - it follows the pointer, and a transition on it
   would make it lag behind the finger. */
.tbt-sheet .tbt-points-dragging > li { transition: transform 0.14s ease; }
.tbt-sheet li.tbt-point-dragging { transition: none; }
/* THE ONE CONTROL THAT SITS ON THE SHEET, AND IT NEVER PRINTS. The sheet is
   the printed artefact and its layout is not negotiable, so this takes no room
   of its own: it rides at the end of the line the way a footnote mark does,
   in the page's muted grey, and grows no larger on hover. It is hidden while
   printing beside the result bar, which has been hidden there since the sheet
   was first drawn. */
/* SEEN, BUT NOT SHOUTING. In muted grey the owner read straight past it. Red
   was his suggestion and it is the one colour this sheet cannot lend: red on a
   toolbox talk means a prohibition and it belongs to the DON'T column alone.
   The accent is the office's own colour for "you can do something here".
   NOT BOLD AND NOT UNDERLINED: weight and a rule under the word made a control
   shout on a sheet whose whole job is to be read once, out loud - the accent
   on its own is enough, and it is the owner's call (5 September 2026).
   AND THE GROUND UNDER IT IS EVEN. The 8px that held it off the sentence was
   PADDING, so the hover ground ran out to the left of the word and nowhere
   else: what lit up looked mis-hung rather than like a control. The gap is a
   margin now and the padding is even, so the word lights up with the same air
   on all four sides. */
/* IN A COLUMN, NOT WHEREVER THE SENTENCE HAPPENED TO END. Riding at the end of
   its line put four controls at four different places down a list and the
   owner said so at once. Each editable line reserves the same gutter and the
   control sits in it, so every Edit on the sheet stands on one vertical line -
   and, because it is out of the flow, it cannot move a word.
   The gutter is what keeps the preview honest: it is padding, so it is there
   on paper too, and the text wraps in exactly the same places whether the
   control is showing or hidden. */
.tbt-sheet ol.points > li,
.tbt-sheet ul.marked li,
.tbt-sheet ol.ask > li { padding-right: 42px; }
.tbt-sheet ul.marked li { position: relative; }
.tbt-sheet .tbt-edit {
  position: absolute; right: 0; top: 0;
  border: 0; background: none; padding: 1px 6px; margin: 0;
  font: inherit; font-size: 12.5px; color: var(--accent-text);
  cursor: pointer; white-space: nowrap;
}
.tbt-sheet .tbt-edit:hover, .tbt-sheet .tbt-edit:focus-visible {
  background: var(--grey-bg); border-radius: 4px;
}
.tbt-kept { margin: 0 0 14px; font-size: 15px; text-align: center; }
.tbt-add-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.tbt-add-label { font-size: 13.5px; color: var(--muted); }
.tbt-add-bar button {
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
  padding: 5px 12px; font: inherit; font-size: 13.5px; color: var(--accent-text); cursor: pointer;
}
.tbt-add-bar button:hover, .tbt-add-bar button:focus-visible { background: var(--grey-bg); }
/* THE OPENING'S EDIT SITS BESIDE THE BOX, NOT INSIDE IT.
   It used to be absolutely positioned in the stake's own top-right corner,
   over the amber tint, where it read as part of the warning rather than a
   control. The row puts it in the white margin to the right; the tinted box
   keeps its ordinary padding. `visibility: hidden` on print still reserves
   its width, so the paper wraps exactly where the screen does — the reason
   the list rows hold their 42px too. */
.tbt-stake-row { display: flex; align-items: flex-start; gap: 6px; }
.tbt-stake-row > .tbt-stake { flex: 1 1 auto; min-width: 0; }
.tbt-stake-row > .tbt-edit {
  position: static; flex: 0 0 auto; margin-top: 15px;
}
.tbt-edit-dialog {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0;
  max-width: 560px; width: 92%; background: var(--panel); color: var(--ink);
}
.tbt-edit-dialog::backdrop { background: var(--scrim-dialog); }

/* THE ONE WAY THE APPLICATION ASKS A QUESTION (ask.mjs). The same frame,
   backdrop and type as the talk editor above, so a question looks like the
   product and not like the browser. Two buttons, two tiers, one filled. */
.ask-dialog {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0;
  max-width: 480px; width: 92%; background: var(--panel); color: var(--ink);
}
/* NOT `.ask` - that is the talk sheet's list of crew questions, and this
   frame on it would have reshaped a printed page. Checked before naming. */
.ask-dialog::backdrop { background: var(--scrim-dialog); }
.ask-dialog form { padding: 20px 22px; }
.ask-title { margin: 0 0 6px; font-size: 16px; }
.ask-body p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.ask-body p:last-child { margin-bottom: 14px; }
.ask-field {
  width: 100%; box-sizing: border-box; margin: 0 0 14px;
  font: inherit; font-size: 15px; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--panel); color: var(--ink);
}
.ask-field:focus { outline: none; border-color: var(--accent); }
.ask-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tbt-edit-dialog form { padding: 20px 22px; }
.tbt-edit-dialog h3 { margin: 0 0 4px; font-size: 16px; }
.tbt-edit-hint { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
/* The frame changes with the budget, not only the sentence beneath it: the
   owner typed past the limit and saw nothing move.
   AND IT HAS TO OUT-RANK THE TOOL'S OWN FIELD RULE TO DO IT. #tbt-view
   textarea, an id, sets this border, and #tbt-view textarea:focus turns it
   accent while he is typing - which is precisely when the budget matters. Two
   class names lose to an id, so the frame never moved. MEASURED in his running
   browser rather than reasoned about: with .long set, the computed border came
   back rgb(229, 229, 229), the plain --line grey (5 September 2026). Carrying
   the id here puts all three above the field rule and above its focus. */
#tbt-view .tbt-edit-dialog textarea { width: 100%; resize: vertical; }
#tbt-view .tbt-edit-dialog textarea.long { border-color: var(--amber-line); }
#tbt-view .tbt-edit-dialog textarea.over { border-color: var(--red-line); }
.tbt-edit-budget { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
/* The office speaks one amber and one red, and they come from the tokens. */
.tbt-edit-budget.long { color: var(--amber-ink); }
.tbt-edit-budget.over { color: var(--red-ink); }
.tbt-edit-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px;
}
/* AND THE ROW ITSELF MUST BE ABLE TO GO. `display: flex` above is an author
   rule, and any author rule that sets display beats the browser's own
   [hidden] { display: none } - so `actions.hidden = true` moved nothing and
   the two rows stood on top of each other while the removal was being
   confirmed. The Site audit sheet lost a day to the same trap on its "By
   when" field, which is why this was looked for. */
.tbt-edit-actions[hidden] { display: none; }

/* AN AUTHOR RULE THAT SETS `display` BEATS THE BROWSER'S OWN
   [hidden] { display: none }, so each of these says so itself. The Site
   audit sheet lost a whole day to this: the "By when" field refused to
   disappear when Stop was chosen, which would have let somebody put a
   date on a stoppage. */
.tbt-edit-remove { margin-right: auto; color: var(--red-ink); }
.tbt-edit-remove[hidden] { display: none; }
.tbt-edit-confirm { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.tbt-edit-confirm[hidden] { display: none; }
.tbt-edit-confirm p { margin: 0; font-size: 13.5px; color: var(--red-ink); }
.tbt-edit-floor { margin: 10px 0 0; font-size: 12.5px; color: var(--amber-ink); }
.tbt-edit-floor[hidden] { display: none; }
.tbt-add-full { margin: -4px 0 10px; font-size: 12.5px; color: var(--amber-ink); }
.tbt-add-full[hidden] { display: none; }
.tbt-sheet .pl-line em { font-style: normal; font-size: 12.5px; color: var(--sheet-ink-plain-em); }
.tbt-sheet .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.tbt-sheet ul { margin: 0; padding-left: 18px; }
.tbt-sheet ul li { margin-bottom: 5px; }
.tbt-sheet table.signon { width: 100%; border-collapse: collapse; margin-top: 8px; }
.tbt-sheet table.signon th, .tbt-sheet table.signon td {
  border: 1px solid var(--sheet-line-table); padding: 7px 9px; font-size: 12.5px; text-align: left;
}
.tbt-sheet table.signon th { background: var(--sheet-bg-table-head); }
/* THE ROW THAT REPEATS. It lives in the thead so a browser prints it again at
   the top of every page the list runs onto - the whole mechanism, and no
   page-counting code. It is not a column header and must not look like one. */
/* THE PAPER MARGIN LIVES IN HERE, NOT ON THE PAGE. A block's padding-top is
   drawn ONCE, at the start of the block - not again on every sheet it runs
   onto - so the second page of a list began hard against the top edge of the
   paper with no margin at all. The page gives up its top padding and this
   repeating row carries it, which puts the same 12mm above the first row of
   every sheet, the first one included. */
.tbt-sheet .signon-page { padding-top: 0; }
.tbt-sheet table.signon .signon-head th {
  background: var(--panel); border: 0; padding: 12mm 0 10px;
  text-align: left; font-weight: 400; color: inherit;
}
.tbt-sheet table.signon .signon-head h3 { margin-top: 0; }
.tbt-sheet table.signon .signon-head .signon-ref { margin: 0 0 8px; }
.tbt-sheet table.signon .signon-head .signon-declaration:last-child { margin-bottom: 0; }
.tbt-sheet table.signon td { height: 34px; }
.tbt-sheet .sources { margin-top: 14px; font-size: 12.5px; color: var(--sheet-ink-small); }
.tbt-sheet .sheet-foot {
  margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--sheet-line-foot);
  font-size: 12.5px; color: var(--sheet-ink-small);
}

@media print {
  body.printing > *:not(.app) { display: none !important; }
  body.printing aside, body.printing header,
  body.printing main, body.printing .tbt-canvas > *:not(#tbt-result) { display: none !important; }
  body.printing #tbt-result .tbt-result-bar { display: none !important; }
  /* HIDDEN, BUT ITS ROOM IS KEPT. display: none took the control out of the
     line and the words re-wrapped around the space it left, so the printed
     sheet was 15.8mm shorter than the preview - measured, and the last thing
     standing between the two after the page became A4. visibility keeps the
     wrap identical and prints nothing but the white space at the end of a
     line, which no reader will ever see. */
  body.printing .tbt-sheet .tbt-edit { visibility: hidden !important; }
  body.printing .tbt-add-bar,
  /* The line that says the talk is full is part of the editor, not the
     talk. It sits OUTSIDE the add bar, so hiding the bar left it on the
     paper. */
  body.printing .tbt-add-full { display: none !important; }
  /* The zoom buttons are absolutely placed, so they hold no room in the flow
     and can simply go. */
  body.printing .tbt-sheet .photo-zoom { display: none !important; }
  body.printing #tbt-view { overflow: visible; }
  /* The page keeps its A4 box and its paper margin - they are the same on
     screen - and loses only what makes it look like paper on a desk. The
     scale comes off: on paper a millimetre is a millimetre. */
  /* !important, AND IT IS THE WHOLE BUG. fitTbtPaper writes the panel scale as
     an INLINE style on this element - sheet.style.transform = scale(0.907) -
     and an inline style beats any rule in a stylesheet that does not say
     !important. So "transform: none" here was simply ignored and the printed
     sheet came out at 90.7% of the paper, anchored top-left, with white down
     the right-hand side and along the foot. Measured on the owner's own
     download: the rule under the header, which spans the full content width,
     ran 78.3% of the page instead of 86.7% - a ratio of 0.903 against the
     0.907 the panel happened to need that day.
     It is the same fault that made his earlier sheet "just shrink", which was
     wrongly put down to the density step alone. On paper a millimetre is a
     millimetre and nothing may scale the sheet but the page fit itself. */
  body.printing .tbt-sheet {
    border: none; box-shadow: none; border-radius: 0; padding: 0;
    display: block; width: auto; gap: 0;
    transform: none !important;
  }
  body.printing #tbt-paper { overflow: visible; height: auto !important; }
  body.printing .tbt-sheet .talk-page,
  body.printing .tbt-sheet .signon-page {
    outline: none; box-shadow: none; border-radius: 0;
    width: auto; min-height: 0;
  }
  body.printing .tbt-sheet .talk-page.over-a4::after { display: none; }
}

@media (max-width: 560px) {
  .tbt-grid { grid-template-columns: 1fr; }
  /* The dropped-object tool keeps its two fields side by side on a phone:
   * mass and height are a pair, and stacking them put the mass off the top
   * of the screen - a phone showed one lonely height field and a tool that
   * "never gives results". Both are short numbers; half a width is plenty. */
  #drops-view .tbt-grid { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  /* THE SHEET IS NOT ON THE PHONE'S SIDE OF THE GLASS. .tbt-sheet .two-col
     used to be stacked here, and it was the last place a browser width still
     reached inside a piece of A4 paper: on a phone the DO and DON'T columns
     came apart, the page grew taller, the fit shrank it further, and it no
     longer matched the sheet the same talk shows on a desk. Measured at 390px:
     one column 800px wide inside a 794px page, a fit of 0.859 against the
     desktop's 0.895. The form around the sheet belongs to the screen and is
     stacked freely above; the sheet belongs to the paper and takes its
     orders from nothing else. */
}

/* V2.6: the hidden attribute must beat main{display:flex}, otherwise the
   advisor hero and composer stay visible above the TBT view. */
main[hidden] { display: none; }

/* TBT sheet polish: key points dominate, do/dont carry meaning, sign-on
   is a self-evidencing audit page. */
.tbt-sheet ol.points > li { line-height: 1.45; }
/* The ticks and crosses are drawn SVG strokes, never font glyphs - a
   missing glyph once printed a tofu square inside a prohibition. */
.tbt-sheet ul.marked { list-style: none; padding: 0; margin: 0; }
.tbt-sheet ul.marked li {
  display: flex; gap: 9px; line-height: 1.45; margin-bottom: 7px;
}
.tbt-sheet ul.marked .tick-mark { flex: 0 0 15px; margin-top: 2px; display: inline-flex; }
.tbt-sheet ul.marked .tick-mark svg { display: block; }
.tbt-sheet ol.ask { margin: 0; padding-left: 0; list-style: none; counter-reset: q; }
.tbt-sheet ol.ask > li {
  counter-increment: q; padding-left: 24px; position: relative; margin-bottom: 5px;
}
.tbt-sheet ol.ask > li::before {
  content: counter(q) "."; position: absolute; left: 2px;
  color: var(--accent-text); font-weight: 700;
}
.signon-ref { font-size: 12.5px; color: var(--sheet-ink-ref); margin: 4px 0 10px; }
.signon-declaration {
  font-size: 12.5px; color: var(--sheet-ink-declaration); margin: 2px 0 10px; max-width: 60em;
}
.tbt-sheet .trainer {
  background: var(--sheet-bg-trainer); border: 1px solid var(--sheet-line-trainer); border-radius: 10px;
  margin-top: 16px; padding: 11px 15px; color: var(--sheet-ink-small);
  font-size: 12.5px; line-height: 1.5;
}
.tbt-sheet .trainer .label {
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 6px; color: var(--sheet-ink-trainer);
}
.tbt-sheet .trainer ul.trainer-note { margin: 0; padding-left: 16px; }
.tbt-sheet .trainer li { margin-bottom: 4px; }
.tbt-sheet .trainer li:last-child { margin-bottom: 0; }
/* ONE PRINTED PAGE: near the contract's maximum content the sheet steps
   down one deterministic size instead of spilling onto the sign-on page. */
/* The screen's own dense sizes are gone with the split: a dense sheet is
   dense in one way now, stated once below beside the print contract. */
/* THE ONE-PAGE CONTRACT, AND IT IS NOW THE ONLY SET OF SIZES. These rules
   lived in @media print, which is precisely why the preview lied: the screen
   ran 13.5px type in a 720px page and the paper ran 12.5px in a 794px page.
   The page is A4 in both places now, so there is one measure. Held against a
   printable A4 side with the contract-maximum content. */
.tbt-sheet .tbt-stake { margin-top: 8px; padding: 7px 11px; }
.tbt-sheet h3 { margin: 11px 0 6px; }
.tbt-sheet ol.points > li,
.tbt-sheet ul.marked li { line-height: 1.35; margin-bottom: 5px; }
.tbt-sheet ol.ask > li { line-height: 1.35; margin-bottom: 3px; }
.tbt-sheet .trainer { margin-top: 10px; padding: 8px 12px; font-size: 12.5px; line-height: 1.4; }
/* THE DENSE VARIANT IS GONE, and with it the second layout it quietly was.
   It fired whole - smaller type, tighter lines, the photo column from 250px to
   150px - so a page a sixth too tall came back a third too small, with the
   content ending at 72% of the sheet and the photo shrunk with it. There is one
   layout now and fitTbtPages reduces it by exactly what is missing, the way a
   photocopier reduces a page: nothing re-wraps, nothing changes its proportions
   against anything else. */
.talk-language-note {
  margin: 8px 0 0; font-size: 12.5px; color: var(--sheet-ink-small);
}
.signon-page { margin-top: 0; }
@media print {
  /* padding-top: 0 USED TO BE RIGHT HERE AND STOPPED BEING SO. When the pages
     were cards on a screen and the paper margin lived on the sheet around
     them, zeroing a following card's own padding closed the gap between two
     printed pages. The paper margin is the PAGE's padding now - so this line
     was taking the top margin off every sheet after the first, and a talk in a
     second language began 1.4mm from the edge of the paper. Measured on the
     owner's download: 13.7mm on the English page, 1.7mm on the Polish one. */
  .tbt-sheet .talk-page + .talk-page {
    break-before: page; page-break-before: always;
    margin-top: 0; border-top: none;
  }
  .tbt-sheet { display: block; }
  .signon-page { break-before: page; page-break-before: always; }
  .signon-page { margin-top: 0; }
  .tbt-sheet table.signon td { height: 11mm; }
}

/* No trailing blank page on print: strip end-of-sheet margins. */
@media print {
  .tbt-sheet { padding-bottom: 0; margin-bottom: 0; }
  .tbt-sheet .sheet-foot { margin-bottom: 0; padding-bottom: 0; }
  .tbt-sheet > *:last-child, .signon-page > *:last-child { margin-bottom: 0; }
}

/* TBT form facelift: echo the advisor's calm, centred composition. */
.logo-preview[hidden] { display: none; }
.tbt-label { margin: 22px 0 8px; }
#tbt-topic {
  border-radius: 999px; padding: 14px 20px; font-size: 16px;
  box-shadow: 0 1px 6px var(--shadow-topic);
}
#tbt-view input[type="file"] { font-size: 13.5px; color: var(--muted); }
#tbt-view input[type="file"]::file-selector-button {
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--ink); font: inherit; font-size: 13.5px;
  padding: 8px 15px; margin-right: 12px; cursor: pointer;
}
#tbt-view input[type="file"]::file-selector-button:hover { border-color: var(--accent); }

/* Tidy uploads: hide the native "No file chosen" text (the thumbnail
   preview shows the chosen image), single quiet privacy line. */
#tbt-view input[type="file"] { font-size: 0; color: transparent; }
#tbt-view input[type="file"]::file-selector-button { font-size: 13.5px; }
.tbt-privacy { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
#tbt-photo-caption { margin-top: 10px; }

/* Guard: the hidden attribute must always win, whatever display we set. */
#tbt-view[hidden] { display: none; }
#tbt-result[hidden] { display: none; }
button.stop[hidden] { display: none; }

/* ================= RAMS review view ================= */
#rams-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#rams-view[hidden] { display: none; }
#rams-view [hidden] { display: none !important; }

/* ---- THE ONE PLACE YOU PUT A FILE INTO KASQ -------------------------
   The same block on RAMS, COSHH, HAVS, kit check, CPP compatibility and
   a man's certificates: an upload arrow, one bold line saying what to
   drop, and a quiet line saying what happens to it. It was written five
   times under five different ids and drifted nowhere yet, which is luck
   rather than design; it is one class now, and a new tool that wants an
   upload gets the one the office already knows how to use.

   THE WHOLE BLOCK IS A LABEL, which is the part worth keeping: a label
   for a hidden input opens the picker on a click with no script at all,
   so the same rectangle both takes a drop and answers a click. That is
   how one target can offer a file, several files or a whole folder
   without asking anybody to declare which he has first. */
.kasq-drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px 24px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 18px;
  background: var(--panel); color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.kasq-drop:hover, .kasq-drop.dragging { border-color: var(--accent); }
.kasq-drop.dragging { background: var(--user-bubble); }
.rams-drop-icon { color: var(--accent-text); }
.rams-drop-note { font-size: 12.5px; color: var(--muted); max-width: 440px; }

#rams-progress { margin-top: 26px; }
.rams-redact-viz {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); padding: 18px 20px;
  display: grid; gap: 10px; margin-bottom: 18px;
}
.rams-redact-viz .viz-line { display: flex; gap: 6px; }
.rams-redact-viz i, .rams-redact-viz b {
  display: block; height: 9px; border-radius: 5px;
}
.rams-redact-viz i { background: var(--grey-bg); }
.rams-redact-viz b { background: var(--grey-bg); animation: kasq-redact 1.6s ease forwards; }
.rams-redact-viz .viz-line:nth-child(2) b { animation-delay: 0.5s; }
.rams-redact-viz .viz-line:nth-child(4) b { animation-delay: 1s; }
.rams-redact-viz::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%,
    var(--accent-veil-sweep) 50%, transparent 100%);
  transform: translateY(-100%);
  animation: kasq-scan 2.4s ease-in-out infinite;
}
@keyframes kasq-redact { to { background: var(--accent); opacity: 0.85; } }
@keyframes kasq-scan { 55%, 100% { transform: translateY(100%); } }

#rams-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
#rams-stages li {
  position: relative; padding-left: 26px;
  color: var(--muted); font-size: 13.5px; transition: color 0.2s ease;
}
#rams-stages li::before {
  content: ""; position: absolute; left: 2px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--line);
}
#rams-stages li.active { color: var(--ink); }
#rams-stages li.active::before {
  border-color: var(--accent);
  border-top-color: transparent;
  animation: kasq-spin 0.9s linear infinite;
}
#rams-stages li.done { color: var(--ink); }
#rams-stages li.done::before {
  content: "\2713"; border: none; color: var(--accent-text);
  font-weight: 700; font-size: 13.5px; line-height: 1; top: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .rams-redact-viz::after { animation: none; }
  .rams-redact-viz b { animation-duration: 0.01s; }
  #rams-stages li.active::before { animation: none; border-top-color: var(--accent); }
}

#rams-status { color: var(--red-ink); font-size: 13.5px; margin-top: 14px; min-height: 1em; }
#rams-report { margin-top: 26px; }
.rams-redaction-note {
  font-size: 13.5px; color: var(--accent-text); background: var(--user-bubble);
  border: 1px solid var(--accent); border-radius: 999px;
  display: inline-block; padding: 6px 14px; margin: 0 0 14px;
}
.rams-summary { font-size: 15px; margin: 0 0 6px; }
.rams-dropped, .rams-na { font-size: 12.5px; color: var(--muted); }
/* The twelve checks as twelve rows, each with what became of it. */
.rams-coverage { list-style: none; margin: 0 0 12px; padding: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.rams-coverage-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  font-size: 13.5px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.rams-coverage-name { color: var(--ink); min-width: 0; }
.rams-coverage-state { flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rams-coverage-row.is-missing .rams-coverage-state { color: var(--red-ink); }
.rams-coverage-row.is-vague .rams-coverage-state { color: var(--amber-ink-rams-state); }
.rams-coverage-row.is-ok .rams-coverage-state { color: var(--accent-text); }
.rams-coverage-row.is-unverified .rams-coverage-state { color: var(--ink); }
@media (max-width: 600px) { .rams-coverage { grid-template-columns: 1fr; } }
.rams-group { margin-top: 20px; }
.rams-group h3 {
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 10px;
}
.rams-group.sev-missing h3 { color: var(--red-ink); }
.rams-group.sev-vague h3 { color: var(--amber-ink-rams-heading); }
.rams-group.sev-ok h3 { color: var(--accent-text); }
.rams-finding {
  border: 1px solid var(--line); border-left-width: 3px;
  border-radius: 12px; background: var(--panel);
  padding: 12px 16px; margin-bottom: 10px;
}
.sev-missing .rams-finding { border-left-color: var(--red-ink); }
.sev-vague .rams-finding { border-left-color: var(--amber-line-rams); }
.sev-ok .rams-finding { border-left-color: var(--accent); }
.rams-finding strong { display: block; margin-bottom: 4px; }
.rams-finding p { margin: 0 0 6px; font-size: 13.5px; }
.rams-finding blockquote {
  margin: 0; padding: 6px 12px; font-size: 13.5px; color: var(--muted);
  border-left: 2px solid var(--line); font-style: italic;
}
.rams-smallprint { font-size: 12.5px; color: var(--muted); margin-top: 22px; }

.rams-basis { display: block; font-size: 12.5px; color: var(--muted); margin: -2px 0 6px; }

/* "What to add" draft block inside a finding card */
.rams-suggestion {
  margin-top: 8px; padding: 10px 12px;
  border: 1.5px dashed var(--accent); border-radius: 10px;
  background: var(--user-bubble);
}
.rams-suggestion-label {
  display: block; font-size: 12.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 5px;
}
.rams-suggestion p { margin: 0 0 8px; font-size: 13.5px; }
.rams-copy {
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--panel); color: var(--accent-text);
  font: inherit; font-size: 12.5px; padding: 4px 14px; cursor: pointer;
}
.rams-copy:hover { background: var(--picked); }

/* At-a-glance verdict bar on top of the RAMS report */
.rams-verdict {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-left-width: 4px;
  border-radius: 12px; background: var(--panel);
  padding: 14px 18px; margin: 0 0 14px;
}
.rams-verdict strong { font-size: 16px; }
.rams-verdict span { font-size: 13.5px; color: var(--muted); }
.rams-verdict.tone-bad { border-left-color: var(--red-ink); }
.rams-verdict.tone-mid { border-left-color: var(--amber-line-rams); }
.rams-verdict.tone-good { border-left-color: var(--accent); }

/* ================= Dropped object risk view =================
   Same "verdict bar" shape as .rams-verdict above — a left border that
   carries the colour, so this reads as one design and not two — but its
   own class, not a shared one: four bands here, three there, and the two
   have nothing else in common. Slight and Minor stay on the plain white
   panel and speak through the border alone; Fatality is the one band that
   also fills the card, on purpose, so the worst answer is the one that
   cannot be read at a glance and mistaken for any other. */
#drops-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#drops-view[hidden] { display: none; }
/* A display of our own beats the browser's bare [hidden] the moment the
   two tie on specificity - .drops-figures sets display:flex, which is
   exactly that tie, and without this line the figures row stayed visible,
   empty, under the waiting-for-input card. Same fix as every other view
   in this file; see the note above #noise-view for the first time it bit
   somebody. */
#drops-view [hidden] { display: none !important; }
.drops-verdict {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-left-width: 4px;
  border-radius: 12px; background: var(--panel);
  padding: 14px 18px; margin: 22px 0 4px;
  /* The severity changing colour (typing a worse or better height) morphs
     instead of snapping - one more place a value changing is felt, not
     just read. */
  transition: border-left-color 0.25s ease, background-color 0.25s ease;
}
.drops-verdict strong { font-size: 17px; transition: color 0.25s ease; }
.drops-verdict span { font-size: 13.5px; color: var(--muted); }
.drops-verdict.tone-slight { border-left-color: var(--drops-slight); }
.drops-verdict.tone-minor { border-left-color: var(--drops-minor); }
.drops-verdict.tone-major { border-left-color: var(--drops-major); }
.drops-verdict.tone-fatality {
  border-left-color: var(--drops-fatality);
  background: var(--red-bg);
}
.drops-verdict.tone-fatality strong { color: var(--red-ink); }
@media (prefers-reduced-motion: reduce) {
  .drops-verdict, .drops-verdict strong { transition: none; }
}
.drops-figures {
  display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 10px;
  margin: 14px 0 6px;
}
.drops-figures .tbt-label { margin: 0 0 2px; }
.drops-figures strong { display: block; font-size: 16px; }

/* ---- Drops: pin-to-compare ------------------------------------------- */
.drops-pin-btn {
  border: 1.5px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.drops-pin-btn:hover { border-color: var(--accent); }
.drops-pin-btn[aria-pressed="true"] {
  background: var(--picked);
  border-color: var(--accent);
  color: var(--ink); font-weight: 600;
}
.drops-compare {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--panel);
}
.drops-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.drops-compare-grid {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 1fr 1fr 1fr;
  gap: 4px 10px;
  align-items: center;
}
.drops-compare-grid .head { font-size: 12.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--quiet); }
.drops-compare-grid strong { font-size: 15px; }
.drops-compare-delta { color: var(--quiet); font-size: 13.5px; }
.drops-compare-tone {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 13.5px;
}

/* The landing light: after a pinned chart click carries the page up to
   the comparison, the panel breathes once so the eye knows where it
   arrived. One pulse, then gone. */
.drops-compare-flash {
  animation: drops-compare-flash 1.1s ease-out 1;
}
@keyframes drops-compare-flash {
  0% { box-shadow: 0 0 0 0 var(--accent-glow-strong); }
  45% { box-shadow: 0 0 0 6px var(--accent-glow-soft); }
  100% { box-shadow: 0 0 0 0 var(--accent-glow-clear); }
}
@media (prefers-reduced-motion: reduce) {
  .drops-compare-flash { animation: none; }
}
@media (max-width: 700px) {
  .drops-verdict { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* A recommendation, not a reading - boxed on purpose so it does not look
   like one more figure in the row above it. exclusionZoneRadiusM's own
   comment in drops-core.mjs is the place that explains why its caveat
   sits right here rather than folded into the DROPS methodology note. */
.drops-zone {
  margin: 4px 0 18px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.drops-zone .tbt-label { margin: 0 0 4px; }
.drops-zone strong { display: block; font-size: 20px; }
.drops-zone .smallprint { text-align: left; margin: 8px 0 0; }

/* ================= Drops chart =================
   Every colour here is read from the same custom properties
   .drops-verdict.tone-* uses (dropsChartColors() in app.mjs), and every
   boundary line is the exact severityOf/thresholdHeights curve, not a
   redrawn approximation of it - see the comment above dropsRenderChart(). */
.drops-chart-wrap { margin: 4px 0 18px; }
.drops-chart-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px;
  /* Breathing room before the plot - with the pin button in this row the
     old 4px gap sat the controls straight on the chart frame. */
  margin-bottom: 12px;
}
.drops-chart-head .tbt-label { margin: 0; }
.drops-chart-hint { font-size: 12.5px; color: var(--muted); }
.drops-chart-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 260px;
  border: 1px solid var(--line); border-radius: var(--radius);
  /* A faint diagonal wash instead of a flat fill - it only shows through
     the canvas's own axis-label margin, since the grid painted over it
     fills the rest, but it keeps that margin from reading as a plain grey
     box. Still --bg and --panel, the site's own light tones. */
  background: linear-gradient(135deg, var(--bg) 0%, var(--panel) 55%, var(--bg) 100%);
  /* ITS OWN INK, BECAUSE THE FRAME IS A LIGHT SCOPE (14 Nov 2026). The
     frame and the glass readout stay light in dark (the owner's answer 4),
     but `color` is inherited already computed: the readout's figures came
     in with the dark page's ink, #f3f4f2 on the white glass, and could not
     be read (stage 4 crop of --drops-glass-ink). Light pixels unchanged:
     the frame inherited --ink before. */
  color: var(--ink);
  overflow: hidden;
  /* A dragged finger explores the chart; it must not also scroll the page
     under it, or the two gestures fight on every tablet on site. */
  touch-action: none;
}
#drops-chart { display: block; width: 100%; height: 100%; cursor: crosshair; }
.drops-chart-legend {
  display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 2px 0;
  font-size: 12.5px; color: var(--muted);
}
.drops-chart-swatch {
  /* Round, not the rounded square this used to be. Strict chart convention
     would say a square, because these are filled AREAS rather than plotted
     points - but at 10px that distinction is invisible, and every other mark
     on this chart is a circle: the reading's ring and the lens's live dot.
     The PDF legend matches (see buildDropsReportSvg). */
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 5px; vertical-align: middle;
}
.drops-chart-swatch.tone-slight { background: var(--drops-slight); }
.drops-chart-swatch.tone-minor { background: var(--drops-minor); }
.drops-chart-swatch.tone-major { background: var(--drops-major-fill); }
.drops-chart-swatch.tone-fatality { background: var(--drops-fatality-fill); }

/* The live readout - a lens, not a card. Every other panel on this page is
   a flat KASQ card - line border, panel background, a coloured left edge -
   but this one sits ON TOP of the chart it is reporting on and follows the
   pointer while hovering (dropsPositionLens in app.mjs sets its left/top
   directly, via the CSSOM property setters the page's CSP allows rather
   than a style attribute or transition, so it can track every eased
   animation frame without fighting the JS for control of its own
   position), resting back over the typed reading once the pointer leaves.
   Still the site's light-only palette - see the note at the top of this
   file - just frosted glass, not dark glass, and deliberately a thin
   frost: low enough opacity and blur that the crosshair drawn into the
   canvas beneath it - the exact point the lens is centred on - stays
   visible through the glass rather than hidden under it, the way a real
   lens still shows you what's underneath.
   The background layers a small tight highlight over the broader tint, and
   the box-shadow adds a soft inset shade opposite it - the same two-step
   trick that reads as "glass sphere" rather than "frosted disc", still
   built from the site's own light, cool tones rather than a dark backing.
   The text-shadow is what keeps the numbers legible now that the glass
   itself is this thin - a soft light halo behind dark text reads clearly
   over any of the four severity colours it might be sitting on. */
.drops-chart-readout {
  position: absolute; z-index: 2; pointer-events: none;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 216px; height: 216px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  /* A uniform white base UNDER the two highlight gradients, not just the
     gradients on their own. The disc sits over all four severity colours,
     and with only the gradients the band showed through at roughly 27%
     white - which left the small labels on it at 1.5:1 over the fatality
     red, far under the 4.5:1 small text needs. The base takes the surface
     to a consistent 50%, so the glass reads the same wherever it lands and
     the type is legible over every band; the highlights still ride on top,
     so it is still glass. */
  background:
    radial-gradient(circle at 30% 21%, var(--drops-glass-shine), var(--drops-glass-clear) 30%),
    radial-gradient(circle at 34% 30%,
      var(--drops-glass-tint), var(--drops-glass-tint-soft) 68%, var(--drops-glass-tint-edge) 100%),
    linear-gradient(var(--drops-glass), var(--drops-glass));
  backdrop-filter: blur(2px) saturate(1.25);
  -webkit-backdrop-filter: blur(2px) saturate(1.25);
  border: 1.5px solid var(--drops-glass-line);
  box-shadow: 0 10px 30px var(--shadow-drops-glass), 0 2px 10px var(--shadow-soft),
    inset 0 1px 1px var(--drops-glass-inner), inset -6px -8px 18px var(--shadow-tab);
  text-shadow: 0 1px 3px var(--drops-glass-ink-halo), 0 0 8px var(--drops-glass-ink-glow);
  transition: border-color 0.15s ease;
}
.drops-chart-readout.tone-slight { border-color: var(--drops-glass-line-slight); }
.drops-chart-readout.tone-minor { border-color: var(--drops-glass-line-minor); }
.drops-chart-readout.tone-major { border-color: var(--drops-glass-line-major); }
.drops-chart-readout.tone-fatality { border-color: var(--drops-glass-line-fatality); }
.drops-chart-readout-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  /* Same reason as the cell labels below - the accent green is a link
     colour picked against white, and it disappears on the green band. */
  color: var(--drops-glass-ink);
}
.drops-chart-readout-dot {
  width: 6px; height: 6px; border-radius: 50%;
  /* Was the accent green, which vanished against the slight band it most
     often sits on. It is a "this is updating" light, not a severity light -
     the pill below carries severity - so it takes the same dark ink as the
     text beside it. */
  background: var(--drops-glass-dot);
  animation: pulse 1.6s ease-in-out infinite;
}
.drops-chart-readout-rows {
  display: flex; flex-direction: column; gap: 5px;
  width: 100%; max-width: 150px;
  /* Set by dropsFitReadout when a translation still will not fit the disc.
     1 in every language shipped today; it exists so a longer one added later
     shrinks to fit rather than hanging outside the glass. */
  transform: scale(var(--drops-lens-fit, 1));
  transform-origin: center;
}
/* Label left, value hard right. The circle narrows toward top and bottom,
   so the rows are held to a width that still fits inside it at the outer
   rows rather than to the disc's full diameter. */
.drops-chart-readout-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
}
.drops-chart-readout-row .tbt-label::after { content: ":"; }
/* Darker than the page's muted grey, which is tuned for near-white panels
   and not for a translucent disc over a colour. Measured across all four
   bands at the glass opacity above: this clears 4.8:1, the page muted only
   managed 2.2:1. */
.drops-chart-readout-row .tbt-label {
  margin: 0; font-size: 10.5px; color: var(--drops-glass-ink); white-space: nowrap;
}
.drops-chart-readout-row strong {
  font-size: 13.5px; line-height: 1.2; white-space: nowrap;
}
/* The verdict, as a filled pill in its own band's colour rather than a
   4px dot beside grey text. White on these four is only legible because
   the pill is a solid fill of the full-strength colour - unlike the glass
   behind it, which is half white and where white type fails (see the note
   on the labels above). Minor's yellow is the exception and keeps the ink. */
.drops-chart-readout-tone {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12.5px; line-height: 1.35; color: var(--accent-ink);
  text-shadow: none; background: var(--drops-glass-pill);
}
.drops-chart-readout-tone.tone-slight { background: var(--drops-slight); }
.drops-chart-readout-tone.tone-minor { background: var(--drops-minor); color: var(--sheet-ink); }
.drops-chart-readout-tone.tone-major { background: var(--drops-major); }
.drops-chart-readout-tone.tone-fatality { background: var(--drops-fatality); }
.drops-chart-readout-tone.tone-slight { background: var(--drops-slight); }
.drops-chart-readout-tone.tone-minor { background: var(--drops-minor); }
.drops-chart-readout-tone.tone-major { background: var(--drops-major); }
.drops-chart-readout-tone.tone-fatality { background: var(--drops-fatality); }
/* THE PHONE'S READOUT IS NOT A SMALLER DISC. A disc is centred on the point
   being read, and on a phone that point is under a finger - the owner's
   report of 5 September 2026, with half the figures hidden by his own hand.
   Measured on beta at 375px wide, the disc was 178px across a 333x258 plot:
   53% of its width, 69% of its height, leaving 80px of vertical travel, so
   no offset inside the frame clears a fingertip. The readout therefore
   leaves the chart: dropsPlaceReadout moves the SAME element into
   #drops-chart-strip above the plot, and these rules restyle it from
   glass-on-the-chart into a plain panel the hand never covers. Keyed on the
   parent rather than on a class of its own, because dropsChartShowReadout
   reassigns the element's className on every reading and would wipe one.
   (What stood here before - a 178px disc and two rules for a -grid/-cell
   markup this readout has not used since it became rows - is gone with it.) */
@media (max-width: 700px) {
  .drops-chart-strip .drops-chart-readout {
    position: static; width: auto; height: auto;
    margin: 0 0 10px; padding: 10px 12px; border-radius: var(--radius);
    align-items: stretch; justify-content: flex-start; gap: 6px;
    /* Solid, not glass. The translucency existed to let the severity band
       under the disc show through; above the chart there is no band under
       it. The tone rules above still colour the border, so the strip still
       carries the band on its edge. */
    background: var(--panel);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: none; text-shadow: none;
    /* The disc is centred on its point by translate(-50%, -50%). In the
       strip there is no point to be centred on, and leaving it on pulled
       the whole panel half its own width off the left edge of the phone -
       the owner's screenshot of 5 September 2026, with the mass and the
       verdict cut off the screen. Measured on beta at 375px: with the
       transform the panel sat at x -147.5, with it off at x 20. */
    transform: none;
  }
  /* Two columns rather than the disc's single stack: mass beside height,
     risk beside energy, so the strip costs two lines of the screen instead
     of four and the pairs that belong together read together. */
  .drops-chart-strip .drops-chart-readout-rows {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px;
    max-width: none; width: 100%; transform: none;
  }
  /* dropsOrbIn is a disc popping into place; a strip does not pop. */
  .drops-chart-strip .drops-chart-readout-enter { animation: none; }
}

/* Motion: a one-shot entrance the first time the chart appears (triggered
   from dropsUpdate in app.mjs, guarded so it never replays), plus the
   verdict card's colour morphing smoothly between severities instead of
   snapping (see .drops-verdict above). Everything else about the chart's
   motion - the grid fading in, the boundary curves tracing left to right,
   the crosshair easing toward the pointer - is drawn frame-by-frame on the
   canvas itself; see dropsChartStartReveal/dropsChartMotionTick in
   app.mjs. */
.drops-chart-wrap-enter { animation: dropsChartWrapIn 0.5s ease-out both; }
@keyframes dropsChartWrapIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.drops-chart-readout-enter { animation: dropsOrbIn 0.5s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes dropsOrbIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .drops-chart-readout-dot { animation: none; }
  .drops-chart-wrap-enter { animation: none; }
  .drops-chart-readout-enter { animation: none; }
}

/* ================= COSHH assessment view ================= */
#coshh-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#coshh-view[hidden] { display: none; }
#coshh-view [hidden] { display: none !important; }
#coshh-view select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font: inherit;
  padding: 10px 13px; outline: none;
}
#coshh-view select:focus { border-color: var(--accent); }
/* Kit check, COSHH and HAVS carried their own copies of the block above
   until 30 August 2026. They wear .kasq-drop now. */

/* The files chosen, named. A file input that says "3 files" and nothing
   else leaves the office guessing which three. */
.kit-chosen {
  list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px;
}
/* A display of our own beats the browser's [hidden], and an empty list
   with a border on it under the drop zone is a thing nobody asked for. */
.kit-chosen[hidden] { display: none; }
.kit-chosen li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted);
}
.kit-chosen li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}
/* The same "remove" as on a row of the reading, in the same clothes — it
   does the same thing and there is no reason for it to look different. */
.kit-chosen .kit-drop { margin-left: auto; flex: none; }

/* The windows an office plans around. Chips rather than a dropdown: the
   counts have to be readable without opening anything, because the count is
   the news. */
.kit-aimed {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--user-bubble); color: var(--ink); font-size: 13.5px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.kit-aimed[hidden] { display: none; }
.kit-aimed .kit-drop { margin-left: auto; }

/* A ROW THAT OPENS. The number is the way in, so it is the thing that looks
   pressable — and the destructive act lives inside, not in a column of a
   hundred and fifty-nine buttons beside kit that is perfectly sound. */
.kit-open-row {
  font: inherit; font-family: var(--mono);
  font-size: 13.5px; padding: 4px 8px 4px 22px; cursor: pointer;
  border: 1px solid transparent; border-radius: 7px; background: none;
  color: var(--ink); text-align: left; position: relative; width: 100%;
  /* A serial number is ONE WORD. On a squeezed phone table the column's
     keep-all sat on the cell while this button wrapped its own text, and
     "18TH003" came out one or two characters to a line (the owner's
     phone, 3 September 2026). */
  white-space: nowrap;
}
.kit-open-row::before {
  content: "›"; position: absolute; left: 8px; top: 50%;
  transform: translateY(-50%); color: var(--muted);
  transition: transform 0.15s ease;
}
.kit-row.on .kit-open-row::before { transform: translateY(-50%) rotate(90deg); }
.kit-open-row:hover, .kit-open-row:focus-visible {
  border-color: var(--line); background: var(--panel);
}
.kit-row.on { background: var(--user-bubble); }
.kit-row-more[hidden] { display: none; }
.kit-item { padding: 6px 4px 14px; display: grid; gap: 10px; }
.kit-item-line { margin: 0; font-size: 13.5px; color: var(--muted); }
.kit-item-history {
  margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink);
  display: grid; gap: 4px;
}
.kit-item-page {
  max-width: 100%; width: 640px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel);
}
/* One line, so a table of a hundred and fifty rows is a hundred and fifty
   rows tall and not three hundred. */
.kit-standing-cell { white-space: nowrap; }

/* THE PHONE. There was not one media rule in this stylesheet touching a
   .kit- selector — Site signs has a carefully worked sticky preview and this
   had nothing at all. On a narrow screen the number column, which carries
   `overflow-wrap: anywhere` so a long serial cannot burst the table, broke
   EL02 into E / L / 0 / 2 stacked down the page: rows went from 44px to
   114px and the table ran to nineteen thousand pixels.
   So the numbers stop breaking mid-number, the table may scroll sideways
   inside its own box rather than pushing the page, and the two columns an
   office does not need on a phone step out of the way. */
/* THE REGISTER PAGE, IN THE ORDER IT IS USED (the owner's call,
   2 September 2026): paper folds until asked, the working tools ride
   sticky over the table, and the table's own header rides just under
   them. On a phone the table scrolls sideways in its wrap, which makes
   the wrap the scroll container - so the header sticks on the widths
   where the wrap does not scroll, and the standing colours carry the
   eye where it cannot. */
.kit-fold { margin: 12px 0; }
.kit-fold > summary {
  list-style: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-weight: 600; font-size: 13.5px;
  background: var(--panel); color: var(--ink);
}
.kit-fold > summary::-webkit-details-marker { display: none; }
.kit-fold > summary::before {
  content: "\203A"; display: inline-block; margin-right: 8px;
  color: var(--muted); transition: transform 0.15s ease;
}
.kit-fold[open] > summary::before { transform: rotate(90deg); }
.kit-fold[open] > summary { margin-bottom: 8px; }
.kit-tools {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); padding: 6px 0 10px;
}
/* THE STICKY BAR MUST STAY A BAR. Stacked full-width, the search and the
   rating pinned 296px of a 723px window - the reader scrolled a register
   through less than half a screen (measured live, 3 September 2026). At
   desk width the two questions stand side by side; the chips keep the
   full width above them. */
@media (min-width: 700px) {
  .kit-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    column-gap: 16px;
  }
  .kit-tools > #kit-one-windows { grid-column: 1 / -1; }
  .kit-tools > label[for="kit-one-find"] { grid-column: 1; }
  .kit-tools > #kit-one-find { grid-column: 1; }
  .kit-tools > .kit-one-controls {
    grid-column: 2; grid-row: 2 / span 2;
    display: block; margin: 0;
  }
  .kit-tools .kit-one-controls .kit-said { display: block; margin-top: 6px; }
  .kit-tools .tbt-label { margin-top: 2px; }
  /* Three classes deep on purpose: the base sheet zeroes this label's
     margin later in the file, and the base pair would win the cascade. */
  .kit-tools .kit-one-controls .tbt-label { margin: 2px 0 6px; display: block; }
}
/* The register's end matter, below a line: deleting it is the last thing
   on the page and looks like what it is. */
.kit-danger {
  margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px;
}
#kit-one-forget { color: var(--red-ink); }
.kit-rows th {
  position: sticky; top: var(--kit-tools-h, 0px);
  background: var(--panel); z-index: 10;
}
.kit-standing-pill { font-size: 12.5px; white-space: nowrap; }
.kit-standing-pill.kit-standing-out, .kit-standing-pill.kit-standing-soon {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
}
.kit-standing-out { background: var(--red-bg); color: var(--red-ink); font-weight: 600; }
.kit-standing-soon { background: var(--amber-bg); color: var(--amber-ink); font-weight: 600; }
.kit-standing-ok { color: var(--accent-text); }
.kit-standing-none { color: var(--muted); }
.kit-standing-gone { color: var(--muted); }

/* NO overflow on the table's wrap at desk width. `overflow-x: auto`
   makes the wrap a scroll container, and a scroll container CAPTURES its
   sticky children: the header row pins to the wrap — which never scrolls
   vertically — instead of the page, and so it rode away with the list
   (the owner watched it go, 2 September 2026). The first cut tried to
   undo the capture with a `min-width: 700px` override, but that override
   stood ABOVE the plain rule in this file, and at equal specificity the
   LATER rule wins at every width — the override was dead on arrival.
   The sideways scroll now lives only in the narrow cut below, where the
   table really is wider than the phone that shows it. */

/* The code, its state and the way in, on one line. */
/* .tbt-actions is a CENTRED COLUMN — the right shape for the one big button
   that ends a form, and the wrong one for three small buttons that belong
   side by side. Copy / Change it / Turn it off came out stacked down the
   middle of the panel with the code stranded above them. */
.kit-said { font-size: 13.5px; color: var(--muted); }
.kit-row-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 14px;
}
.kit-code-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kit-code-head h3 { margin: 0; }
.kit-code-head .kit-code-is { margin: 0; }
.kit-code-head .kit-drop { margin-left: auto; }
.kit-code-rest[hidden] { display: none; }
.kit-code-rest { margin-top: 12px; }

@media (max-width: 700px) {
  /* NOTHING PINS ON A PHONE (the owner's phone, 3 September 2026). At
     desk width the sticky bar is a bar; on a phone the chips wrap to
     three lines and the two questions stack, so the pinned block WAS
     most of the window - and the header row, offset by the bar's
     measured height, pinned itself halfway down the screen and sat
     over the rows, or clamped to the table's end and stood UNDER them.
     A phone scrolls; nothing rides. */
  .kit-tools { position: static; }
  .kit-rows th { position: static; }
  .kit-rows-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .kit-rows td.kit-numbers { overflow-wrap: normal; word-break: keep-all; }
  .kit-rows { min-width: 520px; }
  .kit-one-controls .ghost-btn { margin-left: 0; }
  .kit-one-controls input { width: 100%; }
  .kit-item-page { width: 100%; }
  /* The register's name on its own line, the actions in a row under
     it, and each action in one piece - squeezed beside the name they
     folded into four-line pills. */
  .kit-one-top { flex-wrap: wrap; align-items: center; }
  .kit-one-top .tbt-step { flex-basis: 100%; }
  .kit-one-top .ghost-btn { white-space: nowrap; }
  /* THE REPORT CARD IN TWO CLEAN ROWS (the owner's phone, 3 September
     2026): the desk layout pushed "Take out of service" to the card's
     right edge, and on a phone that put one button beside the words
     and dropped the other underneath alone. The words (and the photo)
     keep the first row; the two answers share the second, half each. */
  .kit-flag > span { flex: 1 1 auto; }
  .kit-flag button { margin-left: 0; flex: 1 1 40%; }
}
@media (max-width: 520px) {
  .kit-rows th:nth-child(3), .kit-rows td:nth-child(3) { display: none; }
  .kit-rows { min-width: 420px; }
  .kit-window { font-size: 12.5px; padding: 5px 10px; }
}

.kit-windows {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px;
}
.kit-window {
  font: inherit; font-size: 13.5px; font-weight: 500;
  padding: 6px 12px; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; background: transparent;
  color: var(--ink); white-space: nowrap;
}
.kit-window:hover { background: var(--grey-bg); }
.kit-window.on {
  background: var(--picked); border-color: var(--accent);
  color: var(--ink); font-weight: 600;
}
/* Empty is the news, so it is dimmed rather than removed. */
.kit-window.none { color: var(--muted); opacity: 0.65; }
.kit-window.bad:not(.on) {
  border-color: var(--red-line); background: var(--red-bg); color: var(--red-ink);
}
.kit-one-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 12px 0 4px;
}
.kit-one-controls .tbt-label { margin: 0; }
.kit-one-controls input { width: 110px; margin: 0; }
.kit-one-controls .ghost-btn { margin-left: auto; }
.kit-chosen .kit-drop:hover, .kit-chosen .kit-drop:focus-visible {
  color: var(--ink); border-color: var(--accent);
}
#coshh-progress { margin-top: 26px; }
#coshh-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
#coshh-stages li {
  position: relative; padding-left: 26px;
  color: var(--muted); font-size: 13.5px; transition: color 0.2s ease;
}
#coshh-stages li::before {
  content: ""; position: absolute; left: 2px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--line);
}
#coshh-stages li.active { color: var(--ink); }
#coshh-stages li.active::before {
  border-color: var(--accent); border-top-color: transparent;
  animation: kasq-spin 0.9s linear infinite;
}
#coshh-stages li.done { color: var(--ink); }
#coshh-stages li.done::before {
  content: "\2713"; border: none; color: var(--accent-text);
  font-weight: 700; font-size: 13.5px; line-height: 1; top: 3px;
}
@media (prefers-reduced-motion: reduce) {
  #coshh-stages li.active::before { animation: none; border-top-color: var(--accent); }
}
#coshh-status, #coshh-task-status { color: var(--red-ink); font-size: 13.5px; min-height: 1em; }
#coshh-product { margin-top: 24px; }
.coshh-product-card {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; background: var(--panel);
  padding: 14px 16px; display: grid; gap: 4px;
}
.coshh-product-card span { color: var(--muted); font-size: 13.5px; }
.coshh-codes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.coshh-code {
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent-text); font-size: 12.5px; font-weight: 600;
  padding: 2px 10px;
}
#coshh-task { margin-top: 8px; }
#coshh-result { margin-top: 26px; }
/* THE COSHH SHEET HAS A GROUND OF ITS OWN (14 Nov 2026, dark sheets sweep).
   It is drawn straight on the page, with no card under it, in --sheet-ink:
   in dark that ink sat on the dark page (#1d2730 on #0d0f10, read with a
   probe line in the empty sheet box). It is paper now (tokens.css), and
   paints the page's own --bg under itself, which inside the paper scope is
   the light page. Light pixels unchanged: the sheet already lay on --bg.
   On screen only: on paper the sheet stays without a ground, as before. */
@media screen { .coshh-sheet { background: var(--bg); } }
.coshh-level { font-weight: 600; }
.coshh-specialist {
  color: var(--red-ink); background: var(--red-bg);
  border: 1px solid var(--red-line); border-radius: 10px;
  padding: 10px 14px; font-weight: 600;
}
.coshh-signoff {
  margin-top: 18px; display: grid; gap: 12px; font-size: 13.5px;
}
@media print {
  body.printing-coshh .coshh-canvas > *:not(#coshh-result) { display: none !important; }
  body.printing.printing-coshh .coshh-canvas > #coshh-result { display: block !important; }
  body.printing-coshh #coshh-result .tbt-result-bar { display: none !important; }
  body.printing-coshh #coshh-view { overflow: visible; }
  /* No padding here: the sheet's paper margin is the shared rule beside
     @page (13 Nov 2026). "padding: 0" here printed it edge to edge. */
  body.printing-coshh .coshh-sheet { border: none; box-shadow: none; border-radius: 0; }
  /* NOTHING BREAKS IN HALF ON PAPER. The owner printed the sheet and
     the WEL table snapped across two pages - half a row of exposure
     limits on each (2 Sep 2026); on another print it was the amber
     flag. A table row, a flag, a numbered step or the sign-off block
     is one thought and prints as one piece; a TABLE may still break
     BETWEEN rows, with its header said again on the new page. */
  body.printing-coshh .coshh-sheet tr,
  body.printing-coshh .coshh-sheet .coshh-warning,
  body.printing-coshh .coshh-sheet li,
  body.printing-coshh .coshh-sheet .coshh-signoff,
  body.printing-coshh .coshh-sheet .sheet-foot {
    break-inside: avoid; page-break-inside: avoid;
  }
  body.printing-coshh .coshh-sheet thead { display: table-header-group; }
}

.coshh-warning {
  color: var(--amber-ink-coshh); background: var(--amber-bg-coshh); border: 1px solid var(--amber-line-coshh);
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px;
}

/* GHS pictogram row on the COSHH sheet */
.coshh-pictogram-row {
  display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 4px;
}
.coshh-pictogram { margin: 0; text-align: center; }
.coshh-pictogram svg { width: 58px; height: 58px; display: block; margin: 0 auto; }
.coshh-pictogram figcaption {
  font-size: 12.5px; color: var(--muted); margin-top: 2px; max-width: 76px;
}

.coshh-constituents td { height: auto; padding: 7px 10px; font-size: 12.5px; }
/* Column widths as classes: a style="" attribute inside innerHTML is
   refused by the page's content policy on the live server. */
.coshh-constituents .coshh-col-28 { width: 28%; }
.coshh-constituents .coshh-col-14 { width: 14%; }
.coshh-constituents .coshh-col-29 { width: 29%; }
.coshh-limits-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.coshh-pictogram img { display: block; margin: 0 auto; width: 58px; height: 58px; }

/* Step-by-step derivation box on the COSHH sheet (compact, print-safe) */
.coshh-method {
  margin: 0; padding: 12px 16px 12px 34px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); font-size: 12.5px;
}
.coshh-method li { margin-bottom: 5px; }
.coshh-method li::marker { font-weight: 700; color: var(--accent-text); }

/* ---- HAVS exposure view ---- */
#havs-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#havs-view[hidden] { display: none; }
#havs-view [hidden] { display: none !important; }
#havs-view select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font: inherit;
  padding: 10px 13px; outline: none;
}
#havs-view select:focus { border-color: var(--accent); }
.havs-tool-box {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; margin: 14px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.havs-hint { margin: 0; font-size: 13.5px; color: var(--muted); }
/* What a press costs, under the button that costs it. */
/* The price line is centred EVERYWHERE - it always sits under a
   centred action or dropzone. Two tools used to centre it with their
   own bandaid rules while Kit check's sat left over the picker
   (the spacing sweep, 2 Sep 2026). */
.cost-line { margin: 6px 0 0; font-size: 12.5px; color: var(--muted);
  text-align: center; }
.havs-register-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.havs-register-table th {
  text-align: left; font-size: 12.5px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted);
  padding: 6px 10px; border-bottom: 1px solid var(--line);
}
.havs-register-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.havs-remove {
  border: 1px solid var(--line); background: none; color: var(--muted);
  border-radius: 9px; padding: 4px 10px; font: inherit; font-size: 12.5px;
  cursor: pointer;
}
.havs-remove:hover { color: var(--red-ink-remove-hover); border-color: var(--red-line-remove-hover); }

/* ---- The billboard sheet ---- */
.havs-head { text-align: center; margin-bottom: 14px; }
.havs-title { margin: 6px 0 2px; font-size: 30px; letter-spacing: -0.01em; }
.havs-site { font-size: 17px; font-weight: 600; }
.havs-meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.havs-board-table {
  width: 100%; border-collapse: collapse; margin: 12px 0 16px;
}
.havs-board-table th {
  text-align: left; font-size: 12.5px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted);
  padding: 8px 10px; border-bottom: 2px solid var(--havs-line-heavy);
}
.havs-board-table td {
  padding: 11px 10px; border-bottom: 1px solid var(--line);
  vertical-align: top; font-size: 15px;
}
.havs-tool-cell strong { display: block; font-size: 16px; }
.havs-tool-cell small { display: block; color: var(--muted); }
.havs-tool-cell .havs-flag { color: var(--amber-ink-coshh); margin-top: 2px; }
.havs-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 17px; white-space: nowrap; }
.havs-time-elv { color: var(--red-ink-havs); }
tr.havs-cat-green > td { background: var(--green-bg-havs); }
tr.havs-cat-amber > td { background: var(--amber-bg); }
tr.havs-cat-red > td { background: var(--red-bg-havs); }
.havs-tool-cell.havs-edge-green { border-left: 5px solid var(--havs-edge-green); }
.havs-tool-cell.havs-edge-amber { border-left: 5px solid var(--havs-edge-amber); }
.havs-tool-cell.havs-edge-red { border-left: 5px solid var(--havs-edge-red); }
.havs-task-cell { font-size: 13.5px; }
.havs-board-table td { border-bottom: 1px solid var(--havs-line-cell); }
.havs-legend {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; margin: 14px 0; font-size: 13.5px;
}
.havs-legend ul { margin: 8px 0 0; padding-left: 20px; }
.havs-legend li { margin: 5px 0; }
.havs-method {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 14px; padding: 12px 18px; margin: 14px 0; font-size: 13.5px;
}
.havs-method p { margin: 6px 0 0; color: var(--muted); }
.havs-foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.havs-sign { min-width: 220px; border-bottom: 1px solid var(--havs-line-write); }

@media print {
  body.printing-havs .havs-canvas > *:not(#havs-result) { display: none !important; }
  body.printing.printing-havs .havs-canvas > #havs-result { display: block !important; }
  body.printing-havs #havs-result .tbt-result-bar { display: none !important; }
  body.printing-havs #havs-view { overflow: visible; }
  body.printing-havs .havs-sheet { border: none; box-shadow: none; border-radius: 0; padding: 0; }
  body.printing-havs .havs-board-table td,
  body.printing-havs .havs-tool-cell {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  body.printing-havs .havs-legend, body.printing-havs .havs-method { break-inside: avoid; }
}

/* ---- HAVS V2: manual upload ---- */
.havs-box-title { font-size: 13.5px; }
.havs-card-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.havs-card-head span { font-size: 13.5px; color: var(--muted); }
#havs-tool-card {
  display: flex; flex-direction: column; gap: 12px; margin: 12px 0;
}
.havs-tool-card-item {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.havs-card-file { color: var(--muted); font-size: 12.5px; }
.havs-card-error {
  border: 1px solid var(--amber-line-coshh); background: var(--amber-bg-coshh); color: var(--amber-ink-coshh);
  border-radius: 12px; padding: 10px 14px; font-size: 13.5px;
}
.havs-mode-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 0; border-top: 1px solid var(--line);
}
.havs-mode-text { display: flex; flex-direction: column; gap: 1px; }
.havs-mode-text span { font-size: 13.5px; color: var(--muted); }
.havs-mode-add {
  border: 1px solid var(--line); background: none; color: inherit;
  border-radius: 10px; padding: 7px 13px; font: inherit; font-size: 13.5px;
  cursor: pointer; white-space: nowrap;
}
.havs-mode-add:hover:not(:disabled) { border-color: var(--accent); }
.havs-mode-add:disabled { color: var(--muted); cursor: default; }

/* Consistency pass: HAVS secondary button matches the shared pill style */
#havs-add {
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: inherit; font: inherit; font-size: 13.5px; padding: 9px 18px;
  cursor: pointer;
}
#havs-add:hover { border-color: var(--accent); }

/* ---- HAVS V1.1: weekly record card ---- */
.havs-card-title { font-size: 24px; }
.havs-card-identity {
  display: flex; gap: 26px; margin: 14px 0 10px; font-size: 13.5px;
}
.havs-fill {
  flex: 1; border-bottom: 1px solid var(--havs-line-write); padding-bottom: 3px;
  color: var(--muted);
}
.havs-card-instruction { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.havs-card-table th.havs-day { text-align: center; }
.havs-card-table td.havs-blank {
  border: 1px solid var(--havs-line-blank); min-width: 30px;
}
.havs-card-table .havs-rate { font-weight: 700; text-align: center; }
.havs-card-table td { padding: 9px 8px; font-size: 13.5px; }
.havs-card-totals td { font-weight: 700; border-top: 2px solid var(--havs-line-heavy); }
.havs-card-limits {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; margin: 12px 0; font-size: 13.5px;
}
.havs-card-notes { margin: 10px 0; padding-left: 20px; font-size: 13.5px; }
.havs-card-notes li { margin: 4px 0; }
#havs-card-result[hidden] { display: none !important; }

@media print {
  body.printing-havscard .havs-canvas > *:not(#havs-card-result) { display: none !important; }
  body.printing.printing-havscard .havs-canvas > #havs-card-result { display: block !important; }
  body.printing-havscard #havs-card-result .tbt-result-bar { display: none !important; }
  body.printing-havscard #havs-view { overflow: visible; }
  body.printing-havscard .havs-sheet { border: none; box-shadow: none; border-radius: 0; padding: 0; }
  body.printing-havscard .havs-card-table td,
  body.printing-havscard .havs-tool-cell {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* ---- HAVS UX rebuild: three numbered steps ---- */
.havs-step { margin: 30px 0; }
.havs-step-head {
  display: flex; align-items: center; gap: 11px; margin-bottom: 13px;
}
.havs-step-no {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  color: var(--accent-ink); font-size: 13.5px; font-weight: 700;
  display: grid; place-items: center; flex: none;
}
.havs-step-title { font-weight: 600; font-size: 15px; }
.havs-count {
  margin-left: auto; font-size: 12.5px; color: var(--accent-text);
  border: 1px solid var(--accent); border-radius: 999px; padding: 3px 11px;
  white-space: nowrap;
}
.havs-manual-details { margin-top: 12px; }
.havs-manual-details summary {
  cursor: pointer; font-size: 13.5px; color: var(--muted); padding: 6px 0;
}
.havs-manual-details summary:hover { color: var(--ink); }
.havs-manual-details[open] summary { color: var(--ink); margin-bottom: 6px; }
.havs-print-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.havs-doc-btn {
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
  padding: 16px 18px; font: inherit; color: inherit; text-align: left;
  cursor: pointer; display: flex; flex-direction: column; gap: 4px;
}
.havs-doc-btn:hover { border-color: var(--accent); }
.havs-doc-btn strong { font-size: 15px; }
.havs-doc-btn span { font-size: 13.5px; color: var(--muted); }
.havs-mode-add.on {
  border-color: var(--accent); background: var(--picked); font-weight: 600;
}
#havs-generate-status { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }
@media (max-width: 560px) {
  .havs-print-row { grid-template-columns: 1fr; }
}

/* ---- HAVS print facelift: quieter chrome, louder numbers ---- */
.havs-sheet .tbt-kicker {
  color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12.5px;
}
.havs-title { font-size: 34px; letter-spacing: -0.02em; margin: 8px 0 4px; }
.havs-head { border-bottom: 2px solid var(--accent); padding-bottom: 14px; }
.havs-chip-row {
  display: flex; gap: 18px; justify-content: center; margin: 12px 0 2px;
  font-size: 12.5px; color: var(--muted);
}
.havs-chip { display: inline-flex; align-items: center; gap: 6px; }
.havs-chip i { width: 10px; height: 10px; border-radius: 3px; }
.havs-chip.green i { background: var(--havs-dot-green); }
.havs-chip.amber i { background: var(--havs-dot-amber); }
.havs-chip.red i { background: var(--havs-dot-red); }
.havs-board-table th { border-bottom: none; color: var(--havs-ink-head); padding-bottom: 10px; }
.havs-board-table td { border-bottom: 2px solid var(--havs-row-gap); padding: 13px 10px; }
.havs-time { font-size: 17px; }
.havs-legend {
  border: none; border-top: 1px solid var(--line); border-radius: 0;
  padding: 14px 4px 0;
}

/* Long registers (7-10+ tools): keep rows whole across page breaks and
   repeat the table header on every printed page. */
@media print {
  .havs-board-table thead { display: table-header-group; }
  .havs-board-table tr { break-inside: avoid; }
  .havs-tool-card-item { break-inside: avoid; }
}

/* HAVS: one clear "working" state while the queue runs */
#havs-progress {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px; margin: 12px 0;
}
.havs-progress-file {
  margin: 0 0 10px; font-weight: 600; font-size: 13.5px;
}
.havs-progress-file[hidden] { display: none !important; }

/* ---- HAVS: modern scanning animation while KASQ works ---- */
#havs-progress {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px;
}
.havs-scan {
  position: relative; width: 54px; height: 68px;
  border: 2px solid var(--line); border-radius: 9px;
  margin-bottom: 16px; overflow: hidden;
  padding: 9px 8px; background-clip: content-box;
  background-image: repeating-linear-gradient(
    var(--panel), var(--panel) 7px, var(--line) 7px, var(--line) 9px);
  background-origin: content-box; background-repeat: no-repeat;
}
.havs-scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18px;
  background: linear-gradient(180deg, transparent, var(--havs-scan-sweep));
  border-bottom: 2px solid var(--accent);
  animation: havs-scanline 1.5s ease-in-out infinite;
}
@keyframes havs-scanline {
  0% { top: -20px; }
  100% { top: 100%; }
}
#havs-stages {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
#havs-stages li {
  position: relative; padding: 7px 0 7px 32px;
  color: var(--muted); font-size: 13.5px; transition: color 0.3s;
}
#havs-stages li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 17px; height: 17px;
  border-radius: 50%; border: 2px solid var(--line);
  background: var(--panel); transition: background 0.3s, border-color 0.3s;
  box-sizing: border-box;
}
#havs-stages li.active { color: var(--ink); font-weight: 600; }
#havs-stages li.active::before {
  border-color: var(--accent);
  animation: havs-pulse 1.3s ease-in-out infinite;
}
#havs-stages li.done { color: var(--ink); }
#havs-stages li.done::before {
  background: var(--accent); border-color: var(--accent);
}
#havs-stages li.done::after {
  content: "✓"; position: absolute; left: 4px; top: 50%;
  transform: translateY(-50%); font-size: 12.5px; font-weight: 700;
  color: var(--accent-ink);
}
@keyframes havs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--havs-scan-glow); }
  50% { box-shadow: 0 0 0 8px var(--havs-scan-glow-clear); }
}
@media (prefers-reduced-motion: reduce) {
  .havs-scan::after, #havs-stages li.active::before { animation: none; }
}

/* ---- Site signs editor ---- */
#signs-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#signs-view[hidden] { display: none; }
#signs-view [hidden] { display: none !important; }
#signs-view input[type="text"], #signs-view select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font: inherit;
  padding: 10px 13px; outline: none;
}
#signs-view input:focus, #signs-view select:focus { border-color: var(--accent); }
.signs-canvas { max-width: 900px; }
.signs-editor {
  display: grid; grid-template-columns: 1fr 320px; gap: 26px;
  align-items: start;
}
.signs-cat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.signs-step { margin: 0 0 26px; }
.signs-step .tbt-label:first-of-type { margin-top: 0; }
.signs-cat {
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--muted); font: inherit; font-size: 13.5px; padding: 8px 14px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.signs-cat.on {
  border-color: var(--accent); background: var(--picked);
  color: var(--ink); font-weight: 600;
}
/* Our arrow over the two wording boxes, and the list it opens - see
   app.mjs: the native datalist arrow opened nothing once the box held a
   full suggestion. */
.signs-combo { position: relative; }
.signs-combo input { width: 100%; padding-right: 44px; }
.signs-combo-open {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  min-height: 32px; width: 32px; padding: 0; line-height: 1;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 15px; border-radius: 8px;
}
.signs-combo-open:hover { color: var(--accent-text); }
.signs-combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 28px var(--shadow-signs-list); overflow: hidden;
}
.signs-combo-list button {
  display: block; width: 100%; text-align: left;
  font: inherit; font-size: 13.5px; padding: 9px 12px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.signs-combo-list button:hover { background: var(--picked); }

.signs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}
.signs-cell {
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 8px; cursor: pointer;
}
.signs-cell svg, .signs-cell img {
  width: 100%; height: 74px; object-fit: contain; display: block;
}
/* A chosen sign wears the picked tint like every other chooser. We
   tried the frame alone for an hour on launch day, and in a grid of
   twenty red circles a hairline could not say "this one" from across
   the room. The tile is a thumbnail for choosing - the preview beside
   the grid shows the true sign on its true white. */
.signs-cell.on { border-color: var(--accent); background: var(--picked); }
.signs-preview-pane { position: sticky; top: 10px; }
.signs-preview {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px;
}
.signs-preview > svg { width: 100%; height: auto; display: block; }
.signs-preview-note {
  text-align: center; font-size: 12.5px; color: var(--muted); margin: 8px 0 0;
}
/* SCREEN only. A printed A4 page is 733px wide inside its margins, which
   is under this breakpoint, so without "screen" these phone rules - the
   38vh cap especially - were clamping every printed sign. */
@media screen and (max-width: 760px) {
  .signs-editor { grid-template-columns: 1fr; }
  /* THE CONTROLS COME FIRST ON A PHONE, THE PREVIEW AFTER THEM. Until
     29 September 2026 the preview was lifted above the controls and held
     there, sticky; at 390px it met a person before anything they could
     choose. Now the page reads in its own order - pick, word, then see -
     and the preview no longer sticks, so the fade strip that hid the grid
     sliding under it has gone too. */
  .signs-preview-pane { position: static; padding: 8px 0 10px; }
  /* 38vh took over a third of a phone screen and pushed the sign grid below
     the fold, so choosing a sign meant scrolling past a picture of the sign
     you had not chosen yet. Capped in px as well as vh: on a tall phone a
     third of the screen is a lot of pixels, and the preview only has to be
     big enough to read the wording. */
  /* The cap sits on the drawing, not on the box around it. With the same
     max-height on both, the box ran out of room before the drawing did and
     the strip along the bottom of the sign — the one carrying the code —
     was sliced off. */
  /* No overflow: hidden here any more. The height cap moved onto the drawing,
     so there is nothing left to clip — and while it was on, it also clipped
     the drop shadow the sheet casts, which is the one shadow that tells you
     you are looking at a piece of paper. */
  .signs-preview {
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
  }
  /* Sized by HEIGHT, with the width left to follow the sheet's own shape.
     With width: 100% and only a max-height, the element stayed a fixed
     landscape box whatever was drawn in it: an upright sheet was letterboxed
     inside, white on white, invisible — and the shadow, which belongs to the
     element, hugged that box instead of the paper. So the shadow sat around
     a rectangle that was not the sign, and turning the sign upright did not
     move it. Height first, width from the viewBox, and the element is the
     sheet again in both orientations. max-width guards the landscape case.

     Scoped through #signs-view for weight, not for tidiness: the sheet rule
     further down this file has the same specificity, and a media query adds
     none — so the later rule was quietly winning and width: auto here never
     applied at all. That is what pinned the element to a landscape box in
     the first place. */
  #signs-view .signs-preview > svg {
    height: min(20vh, 160px);
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
  .signs-preview-note {
    margin: 0; padding: 7px 0 9px; font-size: 12.5px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    /* Deliberately no shadow on this card. It briefly had one, to mark where
       the grid passes underneath, and it was the wrong call: two shadows on
       one screen and the eye reads the loud one, so the sheet stopped
       looking like a sheet. Same as the office screen — the only thing that
       casts a shadow here is the paper. The hairline walls mark the panel;
       the fade below marks the join. */
  }
  .signs-segregation { font-size: 12.5px; padding: 10px 12px; }
}

/* The signs section no longer prints through the browser: it writes its
   own PDF, so there is nothing here to lay out for a printer. */

/* Turning the page belongs next to the page, not in a form field below
   it - you decide by looking. */
.signs-preview-tools {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin: 0 0 8px;
}
/* Quiet, and at the other end of the row from the button that turns the
   page - clearing your work should never be next to something you press
   often. */
.signs-reset {
  border: 1px solid transparent; background: none; color: var(--muted);
  border-radius: 999px; font: inherit; font-size: 13.5px;
  padding: 7px 14px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.signs-reset:hover { color: var(--ink); border-color: var(--line); }
.signs-reset.armed {
  color: var(--accent-text); border-color: var(--accent);
  background: var(--user-bubble); font-weight: 600;
}
.signs-turn {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 999px; font: inherit; font-size: 13.5px;
  padding: 7px 16px 7px 34px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background-image: var(--signs-turn-icon);
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 15px 15px;
}
.signs-turn:hover { border-color: var(--accent); }
.signs-turn:active { transform: scale(0.97); background-color: var(--user-bubble); }
.signs-turn[aria-pressed="true"] {
  border-color: var(--accent); background-color: var(--picked);
}

/* The sheet is drawn off-screen while its PDF is written, so a
   half-built page is never visible. A class, not an inline style: the
   site's content-security policy blocks style attributes. */
.signs-pdf-holder {
  position: fixed; left: -10000px; top: 0;
  width: 1px; height: 1px; overflow: hidden;
}

/* Only the sheet, never the nested artwork inside it. */
.signs-preview > svg {
  width: 100%; height: auto; display: block;
  box-shadow: 0 1px 3px var(--shadow-sign-near),
    0 8px 24px -12px var(--shadow-sign-far);
  border-radius: 2px;
}

/* ---- Site board composer ---- */
.signs-mode-row { margin-bottom: 24px; }
.signs-board-row {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.signs-board-row select, .signs-board-row input { width: 100%; }
.signs-board-row-head {
  display: flex; align-items: center; gap: 10px;
}
.signs-board-grip {
  cursor: grab; touch-action: none; user-select: none;
  color: var(--muted); font-size: 15px; padding: 2px 8px;
  border-radius: 8px;
}
.signs-board-grip:hover { color: var(--ink); background: var(--panel); }
.signs-board-row-no {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.signs-board-remove {
  margin-left: auto;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; font: inherit; font-size: 12.5px;
  padding: 4px 14px; cursor: pointer;
}
.signs-board-remove:hover:not(:disabled) { color: var(--ink); }
.signs-board-remove:disabled { opacity: 0.4; cursor: default; }
.signs-board-row { transition: transform 0.18s ease; }
.signs-board-row.dragging {
  transition: none; position: relative; z-index: 5;
  border-color: var(--accent); background: var(--user-bubble);
  box-shadow: 0 12px 30px var(--shadow-signs-drag);
}
@media (prefers-reduced-motion: reduce) {
  .signs-board-row { transition: none; }
}
#signs-board-preview g[data-row] { cursor: grab; touch-action: none; }
#signs-board-preview.row-drag g[data-row],
#signs-board-preview.row-drag g[data-chrome] {
  opacity: 0.45; transition: opacity 0.15s ease;
}
#signs-board-preview.row-drag g[data-row].row-active {
  opacity: 1;
  filter: drop-shadow(0 4px 10px var(--shadow-sign-drag));
}
.signs-board-row.dragging .signs-board-grip { cursor: grabbing; }
.signs-board-actions { margin-bottom: 4px; }
#signs-board-add, #signs-poster-add, #signs-poster-add-blank {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 999px; font: inherit; font-size: 13.5px;
  padding: 9px 22px; cursor: pointer;
}
#signs-board-add:hover:not(:disabled),
#signs-poster-add:hover:not(:disabled),
#signs-poster-add-blank:hover:not(:disabled) { border-color: var(--accent); }
#signs-board-add:disabled, #signs-poster-add:disabled,
#signs-poster-add-blank:disabled { opacity: 0.4; cursor: default; }
.tbt-actions.signs-board-actions {
  display: flex; flex-direction: row; flex-wrap: wrap;
  gap: 10px; justify-content: center;
}
.signs-poster-note { margin: 10px 0 22px; text-align: center; }
.signs-photo-state { color: var(--accent-text); font-size: 12.5px; margin: 6px 0 0; }
/* File inputs in the signs view match the TBT treatment. */
#signs-view input[type="file"] { font-size: 13.5px; color: var(--muted); }
#signs-view input[type="file"]::file-selector-button {
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--ink); font: inherit; font-size: 13.5px;
  padding: 8px 15px; margin-right: 12px; cursor: pointer;
}

.signs-poster-check {
  display: flex; align-items: center; gap: 9px; margin: 0 0 14px;
  font-size: 13.5px; color: var(--ink); cursor: pointer;
}

/* Touch: phones have no hover and no lasting focus ring, so selection has
   to be carried by the "on" class alone - and a press has to feel like
   a press. */
.signs-cat, .signs-cell, .signs-board-remove, #signs-board-add,
#signs-poster-add, .signs-board-grip {
  -webkit-tap-highlight-color: transparent;
}
.signs-cat:active, .signs-cell:active,
.signs-board-remove:active, #signs-board-add:active,
#signs-poster-add:active {
  transform: scale(0.97); background: var(--user-bubble);
}
.signs-cat.on {
  border-color: var(--accent); background: var(--picked);
  color: var(--ink); font-weight: 600;
}
.signs-cell.on {
  border-color: var(--accent); background: var(--picked);
}

/* Campaign posters print edge to edge on exactly one sheet. Every
   container has to be stripped of its own spacing, or the fractions add
   up and the poster tips onto a second page. */
@media print {
  body.printing-signs.signs-campaign,
  body.printing-signs.signs-campaign .app,
  body.printing-signs.signs-campaign .workspace,
  body.printing-signs.signs-campaign #signs-view,
  body.printing-signs.signs-campaign .signs-canvas,
  body.printing-signs.signs-campaign .signs-editor,
  body.printing-signs.signs-campaign .signs-preview-pane,
  body.printing-signs.signs-campaign .signs-preview {
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    line-height: 0 !important; overflow: hidden !important;
  }
  body.printing-signs.signs-campaign .signs-preview > svg {
    width: 210mm !important; height: 297mm !important;
    max-width: none; display: block; margin: 0;
  }
  body.printing-signs.signs-campaign.signs-a3 .signs-preview > svg {
    width: 297mm !important; height: 420mm !important;
  }
}

/* Put several pictograms on one sign: the cell picks a sign, the badge
   adds it alongside whatever is already chosen. */
.signs-cell-wrap { position: relative; }
.signs-cell-wrap .signs-cell { width: 100%; }
.signs-cell-add {
  position: absolute; top: -6px; right: -6px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: inherit; font-size: 15px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 1px 4px var(--shadow-signs-cell);
}
.signs-cell-add:hover { border-color: var(--accent); }
.signs-cell-add[hidden] { display: none; }

/* Storage segregation advice: informative, not an error - the sign is
   still printable, because only the site knows how the store is laid out. */
.signs-segregation {
  margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--amber-line-coshh); background: var(--amber-bg-coshh); color: var(--amber-ink-coshh);
  font-size: 13.5px; line-height: 1.45;
}
.signs-segregation strong { display: block; margin-bottom: 6px; }
.signs-segregation ul { margin: 0; padding-left: 18px; }
.signs-segregation li + li { margin-top: 6px; }
.signs-segregation[hidden] { display: none; }

/* Template chips say what is inside them, so choosing is not the only
   way to find out - and choosing overwrites. */
.signs-cat-stacked {
  flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 7px 16px; line-height: 1.25;
}
.signs-cat-sub { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.signs-cat.on .signs-cat-sub { color: var(--accent-text); }
.signs-cat-blank { margin-left: 14px; border-style: dashed; }
.signs-undo {
  border: 1px solid var(--accent); background: var(--user-bubble);
  color: var(--ink); border-radius: 999px; font: inherit; font-size: 13.5px;
  padding: 8px 16px; cursor: pointer; align-self: center;
}
.signs-board-count {
  align-self: center; font-size: 12.5px; color: var(--muted);
}
.signs-drag-hint { margin: -2px 0 10px; }
.signs-inline-action {
  border: 0; background: none; padding: 0; font: inherit;
  color: inherit; text-decoration: underline; cursor: pointer;
}

/* A board row picks its sign by picture, exactly like a single sign. */
.signs-row-picker { display: flex; flex-direction: column; gap: 10px; }
.signs-row-chosen {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  font: inherit; font-size: 13.5px; color: var(--ink);
  padding: 8px 14px; cursor: pointer; text-align: left;
}
.signs-row-chosen:hover { border-color: var(--accent); }
.signs-row-chosen img { width: 34px; height: 34px; object-fit: contain; }
.signs-row-chevron { margin-left: auto; color: var(--muted); }
.signs-row-cats { margin: 2px 0 0; }
.signs-row-grid {
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  background: var(--panel); border-radius: 12px; padding: 10px;
}
.signs-row-grid .signs-cell img { height: 52px; }

/* Search: with 74 signs, typing beats knowing which category a sign
   lives in. */
.signs-search {
  width: 100%; font: inherit; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; margin-bottom: 12px; background: var(--panel);
}
.signs-search:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

.signs-about { margin: -6px 0 20px; text-align: center; }
/* A disclosure that does not look like one is a paragraph nobody clicks.
   `display: inline-block` removes the marker the browser draws for
   `list-item`, so these blocks lost their triangle and read as plain grey
   text - the owner tried to open one and could not tell it opened. Draw
   our own, and turn it when the block is open. */
.signs-about summary {
  cursor: pointer; font-size: 13.5px; color: var(--muted); display: inline-block;
  list-style: none; user-select: none;
}
.signs-about summary::-webkit-details-marker { display: none; }
.signs-about summary::before {
  content: ""; display: inline-block; width: 0; height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-right: 8px; vertical-align: baseline;
  transition: transform 0.15s ease;
}
.signs-about[open] summary::before { transform: rotate(90deg); }
.signs-about summary:hover { color: var(--ink); text-decoration: underline;
  text-underline-offset: 3px; }
.signs-about p {
  max-width: 62ch; margin: 10px auto 0; font-size: 13.5px; color: var(--muted);
  text-align: left;
}
/* "Show the working" in the noise view is the first LIST this block has
   ever held - the signs version was paragraphs only, so the centring here
   went unnoticed until a <ul> inherited it and the bullets floated in the
   middle of the page. */
.signs-about ul {
  max-width: 62ch; margin: 10px auto 6px; padding: 0 0 0 20px;
  text-align: left; font-size: 13.5px; color: var(--muted);
}
.signs-about li { margin: 0 0 4px; }
/* Keyboard focus stays visible - it just stops being the browser's blue. */
.signs-about summary:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px;
}

/* A tile that cannot join the current plate says why, and looks it. */
.signs-cell.blocked { opacity: 0.32; cursor: not-allowed; }
.signs-cell.blocked:hover { border-color: var(--line); }
#signs-combine-status { text-align: center; margin: -4px 0 14px; }


/* ---- Noise exposure ---- */
/* The form controls are styled per view, by id, everywhere else in this
   file. A new view that is not named in those lists gets the browser's
   default boxes and reads as a different product - which is exactly what
   happened here until the owner spotted it. */
#noise-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#noise-view[hidden] { display: none; }
#noise-view [hidden] { display: none !important; }
#noise-view input[type="text"], #noise-view input[type="number"],
#noise-view select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font: inherit;
  padding: 10px 13px; outline: none;
}
#noise-view input:focus, #noise-view select:focus { border-color: var(--accent); }
/* Example figures must not read as values already entered. */
#noise-view ::placeholder { color: var(--muted); opacity: 1; }
.noise-skipped {
  margin: 0 0 16px; font-size: 13.5px; color: var(--muted);
  border-left: 3px solid var(--noise-line-amber); padding-left: 10px;
}
#noise-add {
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: inherit; font: inherit; font-size: 13.5px; padding: 9px 18px;
  cursor: pointer;
}
#noise-add:hover:not(:disabled) { border-color: var(--accent); }
#noise-add:disabled { opacity: 0.4; cursor: default; }
.noise-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
@media (max-width: 620px) { .noise-grid { grid-template-columns: 1fr; } }
.noise-row-note {
  margin: 8px 0 0; font-size: 13.5px; color: var(--muted);
  border-left: 3px solid var(--line); padding-left: 10px;
}
.noise-row-note.amber { border-left-color: var(--noise-line-amber); }
/* --accent is the BRAND GREEN (#0b6e4f). Using it here painted the loudest
   row on the page green - the one row where the allowance runs out in
   minutes. Red means red; it is the same red as the headline and the limit
   note, and it is a literal so no palette change can quietly turn it into
   an approval. */
.noise-row-note.red { border-left-color: var(--noise-line-red); color: var(--ink); }
/* Green stays the neutral grey line ON PURPOSE. A quiet level can still be
   part of a day that goes over the action values, and a green mark beside
   a row would read as approval the row alone cannot give. */
.noise-result { margin-top: 4px; }
/* The "how it works" block at the top of a page is centred, because the
   whole page head is. Inside the result it is not: everything in step 2
   is set to the left margin, so a 62ch column centred in the canvas would
   sit adrift of the headline above it. */
.noise-result .signs-about { text-align: left; margin: 4px 0 0; }
.noise-result .signs-about summary { display: block; }
.noise-result .signs-about p,
.noise-result .signs-about ul { margin-left: 0; margin-right: 0; }
.noise-headline {
  font-size: 26px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.noise-headline.below_leav { color: var(--noise-ink-green); }
.noise-headline.at_or_above_leav { color: var(--noise-ink-amber); }
.noise-headline.at_or_above_ueav { color: var(--noise-ink-red); }
.noise-duty { margin: 0 0 14px; font-size: 15px; }
.noise-limit {
  margin: 0 0 16px; font-size: 15px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--noise-line-red); border-radius: 10px; padding: 12px 14px;
}
/* HSE's protector table, quoted with its own warning. Amber, not red:
   it is advice on what to buy, not a duty unmet. */
.noise-protect {
  margin: 0 0 16px; font-size: 15px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--noise-line-amber); border-radius: 10px; padding: 12px 14px;
}
/* The day drawn against the action values. The gradient's hard stops sit
   exactly where 80 and 85 fall on a 70-105 span: (80-70)/35 and (85-70)/35.
   The same danger literals as the headline - the two pictures must not
   disagree about what red means. */
.noise-gauge { position: relative; height: 44px; margin: 2px 0 12px; }
.noise-gauge-bar {
  position: absolute; top: 12px; left: 0; right: 0; height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right,
    var(--noise-band-low) 0 28.57%, var(--noise-band-mid) 28.57% 42.86%, var(--noise-band-high) 42.86% 100%);
}
.noise-gauge-tick {
  position: absolute; top: 8px; width: 2px; height: 16px;
  background: var(--noise-tick); transform: translateX(-50%);
}
.noise-gauge-label {
  position: absolute; top: 26px; transform: translateX(-50%);
  font-size: 12.5px; color: var(--muted);
}
.noise-gauge-you {
  position: absolute; top: 4px; width: 3px; height: 24px;
  background: var(--ink); border-radius: 2px; transform: translateX(-50%);
}
/* The typical-levels picker sits under the task name, full width. */
.noise-typical { margin-top: 8px; width: 100%; }

/* An answer that leaned on the previous question says so, and offers the
   way out in the same breath. Quiet, not alarming - it is usually right. */
.answer-linked {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); font-size: 13.5px; color: var(--muted);
}
.answer-linked-btn {
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--ink); font: inherit; font-size: 12.5px; padding: 5px 12px;
  cursor: pointer;
}
.answer-linked-btn:hover:not(:disabled) { border-color: var(--accent); }
.answer-linked-btn:disabled { opacity: 0.5; cursor: default; }

/* What a point is, said where the number first appears. */
.noise-scale {
  margin: -6px 0 14px; font-size: 13.5px; color: var(--muted);
  max-width: 62ch;
}

/* A saved file, named. The button returning to its old label is not a
   confirmation - it looks identical to having done nothing. */
.download-saved {
  margin: 8px 0 0; font-size: 13.5px; color: var(--accent-text);
  overflow-wrap: anywhere;
}

/* The record card's look-up: minutes to points, printed per tool, so the
   worker reads instead of multiplying. */
.havs-card-lookup {
  display: block; margin-top: 3px; font-size: 12.5px; letter-spacing: 0.01em;
  color: var(--havs-ink-strong); font-variant-numeric: tabular-nums;
}
.havs-card-alone {
  display: block; margin-top: 2px; font-size: 12.5px; color: var(--havs-ink-soft);
}
.havs-card-table th.havs-day { white-space: pre-line; line-height: 1.15; }

/* The worker's number, in the worker's unit, ahead of the arithmetic. */
.havs-card-allowance {
  display: block; margin-top: 4px; font-size: 12.5px; color: var(--havs-ink-strong);
}
.havs-card-tell {
  display: block; margin-top: 1px; font-size: 12.5px; color: var(--amber-ink);
}

/* The record card preview is the drawing that gets written to the PDF -
   not a second rendering that only resembles it. */
#havs-card-sheet svg { display: block; width: 100%; height: auto; }
#havs-card-sheet { background: var(--panel); padding: 14px; }

#havs-sheet svg { display: block; width: 100%; height: auto; }
#havs-sheet { background: var(--panel); padding: 14px; }

/* The card shrinks to keep its one-page promise; this is the sentence that
   refuses to let the shrinking happen quietly. */
.havs-card-scale {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--amber-ink);
  background: var(--amber-bg-havs);
  color: var(--amber-ink-havs);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* The redaction animation used inline widths. Production sends
   default-src 'self', which forbids inline styles, so every bar arrived
   with no width and the animation played invisibly - a thing that only
   ever broke where nobody was watching it. Widths now come from the
   stylesheet, which the policy allows. */
.rams-redact-viz [data-w="12"] { width: 12%; }
.rams-redact-viz [data-w="18"] { width: 18%; }
.rams-redact-viz [data-w="22"] { width: 22%; }
.rams-redact-viz [data-w="24"] { width: 24%; }
.rams-redact-viz [data-w="26"] { width: 26%; }
.rams-redact-viz [data-w="30"] { width: 30%; }
.rams-redact-viz [data-w="44"] { width: 44%; }
.rams-redact-viz [data-w="62"] { width: 62%; }
.rams-redact-viz [data-w="71"] { width: 71%; }

/* The address the day's returns go to, and what the square code on the
   board is going to say about it. */
.havs-returns-field { grid-column: 1 / -1; }
/* The address box was a 150px inline input with five lines of helper
   wrapped round it on a phone. Full width, helper underneath. */
.havs-returns-field input { display: block; width: 100%; box-sizing: border-box; }
.havs-returns-field .tbt-hint { display: block; margin-top: 4px; }
#tbt-form .tbt-hint {
  display: block; margin: 5px 0 0; font-size: 12.5px; line-height: 1.45;
  color: var(--muted);
}
/* The gap box: the talk's sources did not cover a hot-work task the
   user named. Amber, the caveat colour, right under the stake. */
.tbt-gap {
  margin: 10px 0 0; padding: 9px 13px; font-size: 12.5px; line-height: 1.5;
  color: var(--amber-ink-coshh); background: var(--amber-bg-coshh); border: 1px solid var(--amber-line-coshh);
  border-radius: 10px;
}
.tbt-optional { font-weight: 400; color: var(--grey-ink-optional); }
.havs-qr-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--grey-bg-note);
  color: var(--green-ink-havs);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.havs-qr-note.warn {
  border-left-color: var(--amber-ink);
  background: var(--amber-bg-havs);
  color: var(--amber-ink-havs);
}

/* The laminating guides are a choice, not a default, so the control reads
   as a line of the form rather than another button competing with
   "Download the sign". */
.signs-laminate-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 2px;
  font-size: 0.95rem;
  cursor: pointer;
}

.signs-laminate-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ---- Take 5 / POWRA: the screen itself ----
   This view went out with no rules of its own, so its boxes were whatever
   the browser draws by default and the panel scrolled the whole document
   instead of itself. Everything here is what every other tool already had;
   nothing in it is new to this product. */
#take5-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#take5-view[hidden] { display: none; }
#take5-view [hidden] { display: none !important; }
/* The panel's own inputs. A box that sits ON the paper carries .take5-f and
   is excluded - it has the sheet's own tint instead. */
#take5-view input[type="text"]:not(.take5-f),
#take5-view input[type="number"]:not(.take5-f),
#take5-view input[type="email"]:not(.take5-f) {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font: inherit;
  padding: 10px 13px; outline: none;
}
#take5-view input:not(.take5-f):focus { border-color: var(--accent); }
#take5-view input[type="file"] { font-size: 0; color: transparent; }
#take5-view input[type="file"]::file-selector-button {
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--ink); font: inherit; font-size: 13.5px;
  padding: 8px 15px; margin-right: 12px; cursor: pointer;
}
#take5-view input[type="file"]::file-selector-button:hover {
  border-color: var(--accent);
}
/* The logo he just chose, shown at the size it will actually print at.
   Without this the box is whatever pixels the normaliser produced - 1200
   square for an Illustrator SVG - and it takes over the screen. */
#take5-view .tbt-logo-preview {
  display: grid; place-items: center; width: max-content;
  height: 52px; min-width: 90px; padding: 4px 10px; margin-top: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
#take5-view .tbt-logo-preview img {
  max-height: 44px; max-width: 150px; object-fit: contain;
}

/* The notes under a box explain the box. Inline, they read as a sentence
   the input has been dropped into the middle of. */
#take5-view .tbt-hint {
  display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.45;
  color: var(--muted);
}

/* ---- Take 5: several jobs in one print run ----
   Each job is a card, because a screen of thirty identical boxes is a
   screen where the office loses which location belongs to which permit.
   The card, its number and its name are the whole navigation. */
.take5-jobs { display: grid; gap: 14px; margin-bottom: 14px; }

.take5-job {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 18px 18px; background: var(--panel);
}

.take5-job-head {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 0 2px; border-bottom: 1px solid var(--line);
}

.take5-job-no {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-text); white-space: nowrap;
}

.take5-job-name {
  font-size: 15px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.take5-job-head .havs-remove { margin-left: auto; align-self: center; }

#take5-add-job {
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: inherit; font: inherit; font-size: 13.5px; padding: 9px 18px;
  cursor: pointer;
}
#take5-add-job:hover:not(:disabled) { border-color: var(--accent); }
#take5-add-job:disabled { color: var(--muted); cursor: default; }

/* Every page that is in the file, captioned, in printing order. There is
   deliberately no control here: a picker above the preview reads as "choose
   what to download" however it is labelled, and somebody downloaded twice
   to be sure. */
/* The project's own vocabulary, set once. Boxed off from the fields above
   it because it is a different kind of decision: those are values, these
   are names. */
.take5-refs {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 18px 18px; margin: 20px 0 0; background: var(--panel);
}
.take5-refs > .tbt-label { margin-top: 16px; }
.take5-ref-grid { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 700px) {
  .take5-ref-grid { grid-template-columns: 1fr; }
}
.take5-memory { margin: 0 0 14px; text-align: center; }
/* Out of reach and out of the tab order, but still taking up its room, so
   the line does not change height when there is suddenly something to
   forget. */
.link-btn.is-away { visibility: hidden; }
.link-btn {
  background: none; border: 0; color: var(--accent-text); font: inherit;
  font-size: 13.5px; text-decoration: underline; padding: 2px 4px;
  cursor: pointer;
}

/* ---- The screen is the sheet ----
   The A4 page is on screen at a size you can read, and the boxes the office
   may fill in are real inputs lying over the rules they print on. Nothing is
   a preview of anything: what you type is what comes out, where it comes
   out. Everything below is positioned in the page's own millimetres, carried
   by one custom property that JavaScript sets from the page's width. */
.take5-canvas {
  max-width: 1180px; width: 100%; margin: 0 auto; padding: 30px 22px 48px;
}
/* Not a <header>: the app's own header rule is a flex bar, and this is a
   title above a document. */
.take5-top { text-align: center; margin-bottom: 22px; }
.take5-top .tbt-heading { margin-top: 0; }
.take5-top .tbt-sub { margin-bottom: 0; }

.take5-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.take5-tab {
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--muted); font: inherit; font-size: 13.5px; padding: 8px 16px;
  cursor: pointer; max-width: 22rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.take5-tab:hover:not(:disabled) { border-color: var(--accent); }
.take5-tab.active {
  border-color: var(--accent); background: var(--picked);
  color: var(--ink); font-weight: 600;
}
.take5-tab-add { margin-left: auto; }
.take5-tab-drop { color: var(--muted); }
.take5-tab-drop:hover { color: var(--red-ink-remove-hover); border-color: var(--red-line-remove-hover); }
.take5-tab:disabled { cursor: default; opacity: 0.6; }

.take5-doc { display: grid; gap: 6px; }
.take5-page {
  position: relative; width: 100%; aspect-ratio: 297 / 210;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--panel); box-shadow: 0 1px 10px var(--take5-page-shadow);
}
.take5-page svg { display: block; width: 100%; height: 100%; }
.take5-legend { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.take5-page-note {
  display: block; width: 100%; text-align: left; margin: 16px 0 0;
  font-size: 13.5px; color: var(--muted); background: none; font-family: inherit;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  cursor: pointer;
}
.take5-page-note:hover { border-color: var(--accent); color: var(--ink); }
.take5-locked { cursor: default; }

/* The Take 5 tint's own green, --t5-box, is in tokens.css with the
   reason for it (moved there with every colour, 13 Nov 2026). */

/* A box on the paper. It has no border of its own: the rule printed under
   it IS the border, which is why it looks like a form and behaves like one. */
#take5-view .take5-f {
  position: absolute; border: 0; background: transparent; padding: 0;
  margin: 0; font-family: Helvetica, Arial, sans-serif; color: var(--take5-ink);
  line-height: 1; outline: none; border-radius: 2px;
}
/* Every box you may fill in is tinted, always - the convention every PDF
   form has used for twenty years, and the reason nobody has to be told
   which parts of a form are theirs. Without it a filled-in address reads as
   printed text and nobody tries to change it. It is screen only: the tint
   lives in CSS and the PDF is drawn from the SVG, so paper stays clean.
   Stepped up one notch on 10.08.2026: at 0.1 the resting tint washed out
   on a bright office screen and the boxes read as print.
   Stepped up once more on 12.08.2026, and given a hair of air: where a
   caption box sits flush against its field the two tints ran into one
   shape, so every box now keeps its tint 1px inside its own edge (the
   transparent border below; geometry unchanged under border-box, so the
   boxes still sit exactly on the printed rules).
   Flattened the same day, at the owner's direction: no ring around a box —
   just the tint and a line of the sheet's own accent green along the
   box's bottom edge. The grey rule the paper prints under a covered box
   is hidden on a big screen (.t5-live-rule below), because next to the
   box's own line it read as a smudged double stroke. The paper keeps
   every rule: the tag is only ever emitted in screen mode. */
#take5-view .take5-f {
  background: rgb(var(--t5-box) / 0.19);
  box-shadow: inset 0 -1px 0 rgb(var(--t5-box) / 0.65);
  border: 1px solid transparent;
  background-clip: padding-box;
}
#take5-view .take5-f:hover { background: rgb(var(--t5-box) / 0.26); }
#take5-view .take5-f:focus {
  background: rgb(var(--t5-box) / 0.33);
  box-shadow: inset 0 -2px 0 rgb(var(--t5-box) / 0.9);
}
#take5-view .take5-page svg .t5-live-rule,
#take5-view .take5-page svg .t5-live-frame { display: none; }
#take5-view .take5-f::placeholder { color: var(--take5-placeholder); font-weight: 400; }
#take5-view .take5-f-label { color: var(--take5-label-ink); }
/* THE SITE'S OWN HAZARD CHECKLIST, TYPED WHERE IT IS PRINTED.
   Every heading and every line on the back page has a real box over it. At
   rest the box is completely invisible - no tint, no letters of its own -
   because the back page is PRINT, not a form to fill in: tinting sixty-eight
   lines green would say "answer these here", which is the one thing this
   page must never say. The invitation appears under the pointer and the box
   only becomes a box once it is opened, which is also when it stops being
   the paper and starts being something you are changing.
   The letters you see at rest are the SVG's, drawn underneath. */
#take5-view .take5-f-hz, #take5-view .take5-f-col {
  background: transparent; box-shadow: none; color: transparent;
  caret-color: var(--accent-text); cursor: text;
  resize: none; overflow: hidden; padding: 0; border: 0;
  border-radius: 1px;
}
/* Under the pointer it is exactly the front's box, to the value: one
   product, one way a box says "this one is yours". The back differs from
   the front only where it has to - at REST, where the front tints every
   box because every box is to be filled in, and the back does not because
   the back is print. */
#take5-view .take5-f-hz:hover, #take5-view .take5-f-col:hover {
  background: rgb(var(--t5-box) / 0.26);
  box-shadow: inset 0 -1px 0 rgb(var(--t5-box) / 0.65);
}
/* Opened, and it is the front's box - same tint, same green line under it,
   words in ink. It can be, because the drawing steps its own letters aside
   the moment the box takes focus (see take5Overlay): there is nothing left
   underneath to read through, so there is nothing for a white panel to
   cover, and one product keeps one way of saying "you are typing here". */
#take5-view .take5-f-hz:focus, #take5-view .take5-f-col:focus {
  background: rgb(var(--t5-box) / 0.33); color: var(--take5-ink);
  box-shadow: inset 0 -2px 0 rgb(var(--t5-box) / 0.9);
  overflow: auto; z-index: 4;
}
#take5-view .take5-f-hzt, #take5-view .take5-f-hzt:focus { font-weight: 700; }
/* The default only shows in an OPEN box. On the paper an emptied line is
   already drawn in its old words, greyed and struck through. */
#take5-view .take5-f-hz::placeholder,
#take5-view .take5-f-col::placeholder { color: transparent; }
#take5-view .take5-f-hz:focus::placeholder,
#take5-view .take5-f-col:focus::placeholder { color: var(--take5-placeholder); }

.take5-f-label::placeholder { color: var(--take5-label-placeholder); }
.take5-f-logo { cursor: pointer; display: block; }
.take5-f-logo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.take5-f-project { }

/* A column heading. The same box as a checklist line - see .take5-f-hz
   above - because it is the same job: a word on the paper that belongs to
   the site. The header row carried a cross, a padlock and a plus until
   25.08.2026; the chips above the sheet say which columns print, and there
   are only four tables to choose from, so three hover-only controls were
   buying access to exactly one of them. */
.take5-layout-note { margin: -2px 0 12px; text-align: left; }

.take5-memory { margin: 0 0 14px; text-align: center; }
/* Out of reach and out of the tab order, but still taking up its room, so
   the line does not change height when there is suddenly something to
   forget. */
.link-btn.is-away { visibility: hidden; }
.take5-download { margin: 22px 0 0; }
.take5-download .havs-doc-btn { margin-top: 10px; max-width: 22rem; }
/* The Take 5 download is the tool's one primary, so it is green like the
   others - a card shape that keeps its second line. */
.take5-download button.primary {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  text-align: left; border-radius: 16px; padding: 14px 18px; margin-top: 10px;
  max-width: 22rem; width: 100%;
}
.take5-download button.primary strong { font-size: 15px; }
.take5-download button.primary span { font-size: 13.5px; opacity: 0.85; font-weight: 400; }
.link-btn {
  background: none; border: 0; color: var(--accent-text); font: inherit;
  font-size: 13.5px; text-decoration: underline; padding: 2px 4px;
  cursor: pointer;
}

/* Both belong to the narrow screen only. On a wide one you type straight
   onto the paper, so a second set of fields would be a second truth. */
.take5-form-note { margin: 2px 0 8px; font-size: 12.5px; color: var(--muted); }
/* A group heading in the phone's folded checklist, so sixty-eight lines
   read as twenty-one groups rather than as one list. */
.take5-form-head { margin-top: 12px; }
.take5-form-head .take5-form-label { font-weight: 700; color: var(--ink); }
.take5-form-row textarea.take5-form-input { resize: none; }

.take5-small-screen { display: none; }
.take5-form { display: none; }

@media (max-width: 900px) {
  /* Too small to type on: the sheet becomes a picture and the boxes are
     switched off rather than made unusable. Switching them off silently is
     what made a tester think the product was broken, so the line below is
     shown at the same breakpoint and says which it is. */
  .take5-f { pointer-events: none; }
  /* The tint means one thing: this box is yours to fill in. On a phone it is
     not — the boxes are switched off and the form above does the filling —
     so the tint would be an invitation the sheet cannot honour. Stripped
     here and only here, which leaves the preview showing what will actually
     come out of the printer. The boxes themselves stay: they are what puts
     the typed values onto the paper. */
  #take5-view .take5-f {
    background: transparent;
    box-shadow: none;
  }
  #take5-view .take5-f:hover, #take5-view .take5-f:focus {
    background: transparent;
    box-shadow: none;
  }
  /* The phone shows the sheet as it comes off the printer, so the paper's
     own rules return where the big screen hides them — and the logo frame
     too, or its invitation would float on bare paper. */
  #take5-view .take5-page svg .t5-live-rule,
  #take5-view .take5-page svg .t5-live-frame { display: inline; }
  /* Placeholders are invitations too — "name this box", "the address they
     come back to". On paper those lines are simply empty. */
  #take5-view .take5-f::placeholder { color: transparent; }
  /* The sheet is a picture at this width. The chips above still switch the
     layout, and the column names are in the folded list under the form. */
  #take5-view .take5-f-col:hover, #take5-view .take5-f-col:focus {
    background: transparent; box-shadow: none;
  }
  .take5-canvas { padding: 20px 12px 40px; }
  .take5-small-screen {
    display: block;
    max-width: 34rem;
    margin: 0 auto 14px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--grey-bg);
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
    text-align: center;
  }
  /* The legend explains how to type into boxes that are switched off here. */
  .take5-legend { display: none; }

  .take5-form { display: block; max-width: 34rem; margin: 0 auto 18px; }
  .take5-form-row { margin: 0 0 12px; }
  .take5-form-label {
    display: block;
    font-size: 12.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 5px;
  }
  .take5-form-input, .take5-form-file {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: inherit;
    font: inherit;
    /* 16px or larger, or iOS Safari zooms the whole page in the moment the
       keyboard opens and the sheet below scrolls out of sight. */
    font-size: 16px;
    padding: 11px 13px;
    outline: none;
  }
  .take5-form-input:focus { border-color: var(--accent); }
  .take5-form-rename { margin: 4px 0 14px; }
  .take5-form-rename > summary {
    font-size: 13.5px; color: var(--accent-text); cursor: pointer; padding: 4px 0;
  }
}

}


/* ---- Feedback: a thumb down where the thing itself is ----
   Down only, on purpose: a tester who is happy says nothing, and a
   thumbs-up in a closed beta takes the room the complaint needs. It sits
   at the foot of the answer and at the foot of every module, because a
   button in the header corner is furniture, and furniture is invisible. */
.down-strip { margin: 18px 0 0; max-width: 46rem; }
/* At the foot of a tool the strip is the tool's last line, set apart by
   a rule and a breath of space, so it never reads as part of the form. */
.tbt-canvas > .down-strip, .take5-canvas > .down-strip, .news-canvas > .down-strip {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  max-width: none;
}
/* Room under it. A margin or the canvas's own padding is dropped from the
   scrollable height here (the view is a flex row that scrolls), so the
   space is real content: an empty block at the foot of the strip. */
.tbt-canvas > .down-strip::after, .take5-canvas > .down-strip::after, .news-canvas > .down-strip::after {
  content: ""; display: block; height: 72px;
}
/* The cost line sits on the same axis as the button it prices. */
/* CPP: the button, its hint and its price share the page's centre line,
   like every other tool's primary. */
#crosscheck-run { display: block; margin: 26px auto 0; }
#crosscheck-hint { text-align: center; }
/* A mouse click already shows which tile is on; the ring is for the keyboard. */
.side-item:focus { outline: none; }
.side-item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* The status in the corner belongs to the chat; on a tool it said
   "New chat ready" over a sign. */
body.tool-open #status { visibility: hidden; }
.down-open {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  font: inherit; font-size: 13.5px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.down-open:hover { color: var(--red-ink); border-color: var(--red-line); background: var(--red-bg); }
.down-open .ico { display: inline-flex; }
/* An author `display` beats the browser's [hidden] rule, so both of
   these must say it themselves or the box never closes. */
.down-open[hidden], .down-box[hidden] { display: none; }
.down-note-input {
  display: block; width: 100%; min-height: 74px; resize: vertical;
  padding: 10px 12px; margin: 0 0 10px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--panel);
  border: 1.5px solid var(--line); border-radius: 12px;
}
.down-note-input:focus { outline: none; border-color: var(--accent); }
.down-actions { display: flex; gap: 10px; align-items: center; }
/* The microphone sits apart from Send/Cancel, on the right: it is an
   input method, not a third verdict. The label doubles as the state -
   "Dictate", "Stop · 0:12", "Making it into text…". */
.down-actions .down-mic {
  margin-left: auto; padding: 7px 13px; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 7px;
}
.down-actions .down-mic .ico { display: inline-flex; }
/* The level meter. Seven bars on their own line under the buttons - on
   a phone the actions row has no width to spare, and this is the one
   thing a person watches while they talk. */
.down-meter {
  display: flex; gap: 3px; align-items: flex-end;
  height: 16px; margin: 9px 0 0;
}
.down-bar {
  width: 4px; height: 4px; border-radius: 2px; background: var(--line);
  transition: height 0.08s linear, background 0.08s linear;
}
.down-bar.lit { height: 16px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .down-bar { transition: none; }
}
/* Send and Cancel are one pair, one size. The primary used to be a size
   up, and in a small dialog it shouted over the box it belonged to. */
.down-actions .down-send { padding: 7px 15px; font-size: 13.5px; font-weight: 600; }
.down-who { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
/* The microphone under a form field rather than in an actions row - the
   shape placeDictation builds, borrowed from the audit page for the one
   box that decides whether a toolbox talk is general or somebody's. */
.dictate {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 6px 0 14px;
}
.dictate .down-mic {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 9px; padding: 6px 11px; font: inherit; font-size: 12.5px;
  cursor: pointer;
}
.dictate .down-mic:hover { background: var(--grey-bg); }
.dictate .down-mic .ico { display: inline-flex; }
.dictate .down-meter { margin: 0; }
.dictate .down-status { flex-basis: 100%; margin: 0; }
.dictate .down-status:empty { display: none; }
.dictate .down-mic[hidden], .dictate .down-meter[hidden] { display: none; }
/* No empty row where a browser without a microphone would leave one. */
.dictate:has(> .down-mic[hidden]):has(> .down-status:empty) { display: none; }
.down-status { margin: 8px 0 0; font-size: 12.5px; color: var(--accent-text); }
.down-status.warn { color: var(--red-ink); }

/* Under an answer the two live in one quiet row of icons - the pattern
   every person on earth has already used under a chat answer. The box, when
   it opens, takes the full width underneath them. */
.answer-tools { display: flex; gap: 4px; align-items: flex-start; flex-wrap: wrap; }
.answer-tools .down-strip { margin-top: 0; }
.answer-tools .down-strip.icon-only { display: contents; }
.answer-copy, .down-strip.icon-only .down-open {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  color: var(--muted);
  background: none; border: 1px solid transparent; border-radius: 8px;
  cursor: pointer;
}
.answer-copy { order: 1; }
.down-strip.icon-only .down-open { order: 2; }
.answer-copy:hover, .down-strip.icon-only .down-open:hover {
  color: var(--ink); background: var(--hover-veil);
}
.down-strip.icon-only .down-open:hover { color: var(--red-ink); }
/* When it has something to say it stops being a square and says it. */
.answer-copy.copied, .answer-copy.copy-failed {
  width: auto; padding: 0 10px; gap: 6px;
  font: inherit; font-size: 12.5px; font-weight: 600;
}
.answer-copy.copied { color: var(--accent-text); background: var(--accent-veil); }
.answer-copy.copy-failed { color: var(--red-ink); background: var(--red-bg); }
.copy-said { white-space: nowrap; }
/* The row is icons; the box that opens under it is not. */
.answer-tools .down-box { order: 3; flex: 1 1 100%; margin-top: 8px; }
.answer-tools .down-status { order: 4; flex: 1 1 100%; }

/* ---- Cross-check: RAMS versus the project pack ---- */
/* The drop zones borrow the RAMS drop look; the ledger is deliberately a
   bordered box, not grey smallprint — "what was not checked" is the honesty
   of this feature and must not be skimmable past. */
/* Every other view scrolls INSIDE itself and the sidebar stays put. This
   one was missing the rule, so the whole page scrolled instead and took
   the nav with it — and this is the view with the longest output in the
   product, so the nav was off-screen by the second finding. */
/* And the display above is an AUTHOR rule, which beats the browser's own
   [hidden] { display: none } — so without the next line the whole
   cross-check view stays on screen underneath every other tool. It did:
   the chat had the CPP page hanging off the bottom of it. Every view in
   this file carries this pair for exactly that reason. */
#crosscheck-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
/* MY RAMS scrolls inside itself like every other tool: a view that lets the
   DOCUMENT scroll instead takes the sidebar with it. */
#ramslib-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#ramslib-view[hidden] { display: none; }
#ramslib-view [hidden] { display: none !important; }
/* The shelf beside it scrolls inside itself for the same reason: a view
   without this line grows the document and takes the sidebar with it. */
#coshhlib-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#coshhlib-view[hidden] { display: none; }
#coshhlib-view [hidden] { display: none !important; }
#tbtlib-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#tbtlib-view[hidden] { display: none; }
#tbtlib-view [hidden] { display: none !important; }
#build-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#build-view[hidden] { display: none; }
#build-view [hidden] { display: none !important; }
#crosscheck-view[hidden] { display: none; }
#crosscheck-view [hidden] { display: none !important; }
/* The two role chips are gone. Neither was a control — both were spans —
   and the second said "soon" about something that does not exist, on the
   first screen of a product people are meant to pay for. The subtitle
   already says whose RAMS is being checked against whose pack. */
/* CPP compatibility carried a fourth copy of the block. It wears
   .kasq-drop now, and .cc-drop is only what is different about it. */
/* One chip per file, wrapping, rather than a full-width row each. Pack
   filenames run to seventy characters, so the name is capped and the whole
   of it — with the size — is in the tooltip. */
.cc-files {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cc-file {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 10px; margin: 0; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-size: 13.5px;
}
.cc-file-mark {
  flex: none; border-radius: 5px; padding: 2px 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent-ink); background: var(--file-mark-fill);
}
.cc-file-mark.is-pdf { background: var(--file-pdf); }
.cc-file-mark.is-doc { background: var(--file-doc); }
.cc-file-name {
  min-width: 0; max-width: 22rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cc-file-remove {
  flex: none; border: 0; background: none; color: var(--muted);
  font: inherit; font-size: 16px; line-height: 1; cursor: pointer;
  padding: 0 4px; border-radius: 999px;
}
.cc-file-remove:hover { color: var(--ink); background: var(--grey-bg); }
#crosscheck-run { margin-top: 16px; max-width: 26rem; }
#crosscheck-run[hidden] { display: none; }
/* Stands where the button would be, for a tester whose invite code is not
   on the cross-check list. Bordered rather than grey smallprint: it is the
   answer to "why can I not press this", and it should not be skimmable
   past any more than the ledger is. */
#crosscheck-closed {
  margin-top: 16px; max-width: 34rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); padding: 14px 16px;
}
#crosscheck-closed[hidden] { display: none; }
.cc-closed-head { display: block; margin-bottom: 6px; }
.cc-closed-body { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.cc-closed-body:last-child { margin-bottom: 0; }
/* The check runs for a quarter of an hour and used to show one unchanging
   line for the whole of it. A screen that does not move reads as a screen
   that has stopped. The stages below are the ones the pipeline actually
   has; every count and the bar move when a call finishes and at no other
   time. The one thing driven by a clock is the elapsed reading, which is a
   fact about the world rather than a claim about progress. */
#crosscheck-progress { margin: 18px 0 4px; max-width: 34rem; }
.cc-steps { list-style: none; margin: 0 0 12px; padding: 0; }
.cc-step {
  display: flex; gap: 10px; align-items: baseline;
  padding: 5px 0; font-size: 13.5px; color: var(--muted);
}
.cc-step-mark { width: 1.1rem; flex: none; text-align: center; }
.cc-step-count { margin-left: auto; font-variant-numeric: tabular-nums; }
/* Finished steps stay dim on purpose, so the one line in progress is the
   only dark line on the panel and the eye finds it without reading. The
   tick keeps its colour — that is what says the step is done. */
.cc-step.is-done { color: var(--muted); }
.cc-step.is-done .cc-step-mark { color: var(--accent-text); }
.cc-step.is-running { color: var(--ink); font-weight: 600; }
.cc-step.is-running .cc-step-mark {
  color: var(--accent-text); animation: cc-working 1.5s ease-in-out infinite;
}
/* What the running step is reading right now, on the line under it:
   the file, the pages, the rules. Indented past the mark so it reads as
   part of that step, and allowed to wrap - filenames are long. */
.cc-now {
  color: var(--muted); font-size: 12.5px; padding: 0 0 6px calc(1.1rem + 10px);
  overflow-wrap: anywhere;
}
@keyframes cc-working { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) {
  .cc-step.is-running .cc-step-mark { animation: none; }
}
.cc-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.cc-bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.6s ease; }
.cc-clock { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
/* The two facts worth having before the sheet exists: how big the job
   turned out to be, and the clashes — the one verdict that cannot be
   withdrawn later in the run. */
.cc-found { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.cc-live { margin: 16px 0 0; }
.cc-live-head { font-size: 13.5px; margin: 0 0 2px; }
.cc-live-note { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
.cc-live-list { list-style: none; margin: 0; padding: 0; }
.cc-live-item {
  border-left: 3px solid var(--red-ink); padding: 2px 0 2px 10px;
  margin: 0 0 10px; font-size: 13.5px;
}
.cc-live-topic {
  display: block; font-size: 12.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--red-ink);
}
.cc-live-req { display: block; }
.cc-summary { font-weight: 600; margin: 22px 0 4px; }
/* The first screen: the site question, the three baskets, the limits. */
.cc-first { margin: 0 0 8px; }
.cc-adapt {
  border: 1.5px solid var(--red-ink); border-radius: 14px; background: var(--panel);
  padding: 14px 16px; margin: 0 0 14px;
}
.cc-adapt h3 { margin: 0 0 8px; font-size: 15px; color: var(--red-ink); }
.cc-adapt p { margin: 0 0 8px; }
.cc-adapt-list { margin: 6px 0 4px; padding-left: 18px; font-size: 13.5px; }
.cc-adapt-list li { margin: 0 0 6px; }
.cc-adapt-list .cc-src { display: inline; margin-left: 8px; }
.cc-baskets { font-weight: 600; font-size: 16px; margin: 0 0 6px; }
.cc-limits { color: var(--amber-ink-check); font-size: 13.5px; margin: 0 0 8px; }
/* A button that reads as a link, because what it does is go somewhere —
   inside this result, never out of it. */
.cc-linkish { background: none; border: 0; padding: 0; font: inherit;
  color: inherit; text-decoration: underline; cursor: pointer; }
.cc-linkish:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* The wait before the work, kept plainly apart from the work itself. */
.cc-queued { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
/* THE PAPER IN THE REVIEW, when the RAMS is a Word file we can draw. The
   document's own page sits in the pane; the review's own marks — the
   paragraph being discussed, the ones it changed, the ones it added — are
   painted over it without touching the document's look. */
.cc-review-paper.cc-doc-rendered { padding: 14px 10px; background: var(--check-desk-bg); }
/* THE PAGE KEEPS ITS OWN WIDTH AND THE SHEET IS SCALED. It used to be
   told `width: 100%`, which is a different page rather than a smaller
   one - every line rewraps somewhere else - and it did not even fit:
   a table carries its width in POINTS from the file, so the tables
   stayed their own size and hung out of the pane (measured: a 602px
   table in a 590px page in a 610px pane, 14 September 2026).
   .cc-doc-zoom is the room the scaled sheet takes, because a transform
   paints an element smaller without telling anything around it. */
.cc-doc-zoom { margin: 0 auto; }
.cc-doc-zoom > .dv-paper, .cc-doc-zoom > .dv-sheets { margin: 0; max-width: none; transform-origin: top left; }
/* Every sheet keeps its own width inside the scaled stack; a portrait page
   beside a landscape one is centred rather than stretched. */
.cc-doc-zoom > .dv-sheets > .dv-paper { max-width: none; margin: 0; }
/* STUCK IN BOTH DIRECTIONS. Sticky with only a top offset holds the bar
   down the page but not across it, so a page zoomed past the width of the
   pane carried the bar off to the left with it - the buttons left the
   screen and the bar's own background ended half way across, with the
   document showing through beside it (the owner's screenshot, 14
   September 2026). The left offset matches the negative margin, so the
   bar covers the pane's whole width wherever the page is scrolled to. */
.cc-doc-zoombar { position: sticky; top: -14px; left: -10px; z-index: 2;
  display: flex; flex-wrap: wrap;
  gap: 6px; align-items: center; margin: -14px -10px 10px; padding: 8px 10px;
  background: var(--panel); border-bottom: 1px solid var(--line); }
.cc-doc-zoombar .cc-copy { padding: 4px 10px; font-size: 13.5px; }
.cc-zoom-btn { min-width: 34px; font-size: 15px; line-height: 1; }
.cc-doc-zoom-now { font-size: 13.5px; color: var(--muted); min-width: 5ch; text-align: center; }
.cc-doc-rendered [data-unit] { scroll-margin-top: 40px; }
.cc-doc-rendered [data-unit].cc-unit-current {
  background: var(--check-doc-current-bg); box-shadow: 0 0 0 6px var(--check-doc-current-halo); border-radius: 2px; }
.cc-doc-rendered [data-unit].cc-unit-edited {
  background: var(--check-doc-edited-bg); box-shadow: 0 0 0 6px var(--check-doc-edited-halo); border-radius: 2px; }
.cc-doc-rendered .cc-unit-added {
  background: var(--check-doc-edited-bg); box-shadow: 0 0 0 6px var(--check-doc-edited-halo); border-radius: 2px; }
/* THE PARAGRAPH THAT JUST CHANGED, said once and loudly. A green edge is
   how an edited paragraph looks for the rest of the review; this is the
   moment it happened, so the reader's eye is taken to it rather than
   asked to find it. */
.cc-unit-flash { animation: cc-unit-flash 1.8s ease-out 1; }
@keyframes cc-unit-flash {
  0% { box-shadow: 0 0 0 6px var(--check-pulse); }
  70% { box-shadow: 0 0 0 6px var(--check-pulse); }
  100% { box-shadow: 0 0 0 6px transparent; }
}
@media (prefers-reduced-motion: reduce) { .cc-unit-flash { animation: none; } }
.cc-doc-rendered .cc-unit-added::after {
  content: " · added"; color: var(--green-ink-check); font-size: 9pt; }

/* Every place a name swap would land, with a tick the office can take out.
   Held-back lines (a company name, another document's name) are dimmed
   rather than hidden: the reader has to be able to see what we left. */
/* What this account has answered about the notice, in the privacy section
   where the answering happens. */
.privacy-consent { margin: 8px 0 12px; }
.privacy-changes { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.privacy-changes li { margin: 0 0 4px; }

/* THE REVIEWS A LATER CHECK WOULD ONCE HAVE DESTROYED. A plain list under
   the offer to continue: what each one was against, how much work is in it,
   and the two things a reader can do with it. */
.cc-kept { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.cc-kept h4 { margin: 0 0 4px; font-size: 15px; }
.cc-kept-list { list-style: none; margin: 8px 0 0; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; }
.cc-kept-item { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  justify-content: space-between; padding: 8px 10px;
  border-bottom: 1px solid var(--line); }
.cc-kept-item:last-child { border-bottom: 0; }
.cc-kept-what { font-size: 13.5px; }
.cc-kept-item .cc-review-buttons { margin: 0; }

.cc-swap-preview { margin: 0 0 12px; }
.cc-swap-list { list-style: none; margin: 8px 0 0; padding: 0;
  max-height: 320px; overflow-y: auto; border: 1px solid var(--line);
  border-radius: 8px; }
.cc-swap-item { border-bottom: 1px solid var(--line); }
.cc-swap-item:last-child { border-bottom: 0; }
.cc-swap-item label { display: grid; grid-template-columns: auto 1fr;
  gap: 2px 10px; align-items: start; padding: 8px 10px; cursor: pointer; }
.cc-swap-item input { margin: 3px 0 0; }
.cc-swap-where { font-size: 12.5px; color: var(--muted); }
.cc-swap-line { grid-column: 2; font-size: 13.5px; }
.cc-swap-hold { grid-column: 2; font-size: 12.5px; color: var(--amber-ink-check); }
.cc-swap-item.is-held .cc-swap-line { color: var(--muted); }
/* The RAMS with the marks on it: paper left, the marks' rows right. */
.cc-doc { margin: 0 0 18px; }
.cc-doc-head h3 { margin: 0 0 6px; font-size: 15px; }
.cc-doc-legend { margin: 0 0 8px; font-size: 12.5px; }
.cc-doc-columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr); gap: 12px; }
@media (max-width: 900px) { .cc-doc-columns { grid-template-columns: 1fr; } }
.cc-doc-paper, .cc-doc-panel {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  max-height: 70vh; overflow: auto; padding: 10px 12px;
}
.cc-doc-page { margin: 0 0 14px; }
.cc-doc-page-no { color: var(--muted); font-size: 12.5px; letter-spacing: 0.05em;
  text-transform: uppercase; border-bottom: 1px dashed var(--line); margin: 0 0 6px; }
.cc-doc-text { white-space: pre-wrap; word-break: break-word; font: 12.5px/1.5 "SFMono-Regular", Menlo, Consolas, monospace; margin: 0; }
.cc-mark { border-radius: 4px; padding: 0 2px; cursor: pointer; }
mark.cc-mark { color: inherit; }
.cc-mark-act { background: var(--red-bg-check-mark); box-shadow: inset 0 -2px 0 var(--red-ink); }
.cc-mark-thin { background: var(--amber-bg-check-mark); box-shadow: inset 0 -2px 0 var(--amber-line-check-mark); }
.cc-mark-twoWays { background: var(--grey-bg-check-mark); box-shadow: inset 0 -2px 0 var(--grey-line-check-mark); }
.cc-mark-process { background: var(--info-bg-check-mark); box-shadow: inset 0 -2px 0 var(--info-line-check-mark); }
.cc-mark-oldSite { background: var(--violet-bg); box-shadow: inset 0 -2px 0 var(--violet-line); }
.cc-mark-covered { background: var(--green-bg-check-mark); box-shadow: inset 0 -2px 0 var(--accent); }
.cc-mark-partial { text-decoration: underline dotted; }
.cc-mark-hot { outline: 3px solid var(--ink); outline-offset: 1px; }
.cc-doc-legend .cc-mark { cursor: default; }
.cc-doc-para { margin: 0 0 4px; padding: 2px 4px; border-radius: 6px; }
.cc-doc-para:hover { background: var(--grey-bg); }
.cc-doc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 10px; }
.cc-doc-download { border-color: var(--accent); font-weight: 600; }
.cc-edit { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; }
.cc-edit-area { width: 100%; box-sizing: border-box; font: inherit; font-size: 13.5px; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; resize: vertical; margin: 0 0 6px; }
.cc-edit-checks { color: var(--amber-ink-check); font-size: 13.5px; margin: 0 0 6px; }
.cc-edit-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
/* The review: one card at a time, the document beside it. */
.tbt-canvas.cc-wide { max-width: 1280px; }
.cc-start { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 18px 20px; margin: 18px 0; min-width: 0; max-width: 100%; box-sizing: border-box; }
.cc-start h3, .cc-finish h3 { margin: 0 0 8px; font-size: 17px; }
/* A seventy-character filename is one word to the browser: without this
   it ran out of the card and pushed the whole screen wider than the phone
   (the owner's phone, 16 September 2026). */
.cc-start-line { font-size: 16px; font-weight: 600; margin: 0 0 8px; overflow-wrap: anywhere; }
.cc-primary {
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: inherit;
  font-size: 15px; font-weight: 600; padding: 10px 20px; cursor: pointer;
}
.cc-primary:disabled { opacity: 0.6; cursor: default; }
.cc-progress-bar { position: relative; height: 26px; border-radius: 999px; background: var(--grey-bg); margin: 12px 0; overflow: hidden; }
.cc-progress-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green-bg-check-mark); width: 0; transition: width 0.3s; }
.cc-progress-text { position: relative; z-index: 1; display: block; line-height: 26px; padding: 0 12px; font-size: 13.5px; font-weight: 600; }
/* ONE ROW OVER THE COLUMNS: Back, the bar, how many are left, Next - and
   the way out at the far right (the owner's mockup, 16 September 2026).
   The nav's children join the grid directly so the bar can sit between
   Back and the count without moving in the DOM; the finish screen hides
   the nav and keeps the bar. */
.cc-review-top {
  position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 4px 44px 6px 0;
  display: grid; grid-template-columns: auto minmax(0, 5fr) minmax(0, 6fr) auto;
  align-items: center; gap: 12px;
}
.cc-review-top .cc-progress-bar { order: 2; margin: 0; }
.cc-review-nav { display: contents; }
.cc-review-nav[hidden] { display: none; }
.cc-review-nav > :nth-child(1) { order: 1; }
.cc-review-nav > :nth-child(2) { order: 3; text-align: center; }
.cc-review-nav > :nth-child(3) { order: 4; }
/* The way back to the start, top right of the review. */
.cc-review-close {
  position: absolute; top: 2px; right: 0;
  border: 0; background: transparent; font: inherit; font-size: 20px;
  line-height: 1; color: var(--muted); cursor: pointer; padding: 6px 10px;
  border-radius: 999px;
}
.cc-review-close:hover { background: var(--panel); color: var(--ink); }
/* A dot on the rail: something was put on My RAMS for later. */
.side-item.has-dot .lbl::after {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-left: 8px; vertical-align: middle;
}
/* THE CARD'S BUTTONS READ AS BUTTONS. The quiet pill is panel-on-panel
   inside a panel card - a hairline the eye loses - so on a card it sits
   on the page's own grey. On a phone the row is a tidy two-column grid,
   the primary across both, in place of words scattered by wrapping (the
   owner's phone, 16 September 2026). */
.cc-resume .cc-review-buttons .cc-copy { background: var(--bg); font-size: 13.5px; padding: 8px 15px; }
@media (max-width: 560px) {
  .cc-resume h3 { font-size: 16px; }
  .cc-resume .cc-start-line { font-size: 15px; }
  .cc-resume .cc-docs { font-size: 12.5px; }
  .cc-resume .cc-review-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cc-resume .cc-review-buttons .cc-primary { grid-column: 1 / -1; font-size: 15px; padding: 10px 16px; }
  .cc-resume .cc-review-buttons .cc-copy { text-align: center; padding: 9px 8px; font-size: 12.5px; overflow-wrap: anywhere; }
  /* An odd one out takes the whole last row rather than half of it. */
  .cc-resume .cc-review-buttons > .cc-copy:last-child:nth-child(odd),
  .cc-resume .cc-review-buttons > .cc-primary ~ .cc-copy:last-child:nth-child(even) { grid-column: 1 / -1; }
}
/* My RAMS is cards: the unfinished reviews, then the documents filed
   under the site chosen - each in the check screen's own frame. */
#ramslib-unfinished .cc-start + .cc-start,
#ramslib-shelves .cc-start + .cc-start { margin-top: 12px; }
#ramslib-unfinished { margin-top: 18px; }
.ramslib-card { border-color: var(--line); }
/* HIS WORDS ON THE CARD, IN COLOUR: the label he wrote and the current-one
   mark, beside the heading - so a press on the buttons below is seen
   where the eye is, not in the grey line (the owner, 16 September 2026). */
.ramslib-tag {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 10px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; line-height: 1.4;
  background: var(--picked); color: var(--accent-text); border: 1px solid var(--accent);
}
.ramslib-tag.is-current { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }
/* The label and the current-one mark are switches: the one that stands
   is shown pressed, in the tag's own colours, and a press takes it off. */
.cc-resume .cc-review-buttons .cc-copy[aria-pressed="true"] {
  background: var(--picked); color: var(--accent-text); border-color: var(--accent);
}
.ramslib-approve-slot:not(:empty) { margin-top: 12px; }
.cc-review-nav .cc-copy { font-size: 13.5px; padding: 8px 16px; }
.cc-review-nav .cc-copy[disabled] { opacity: 0.45; cursor: default; }
.cc-review-nav-where { flex: 1; text-align: center; font-size: 13.5px; color: var(--muted); }
@media (max-width: 560px) { .cc-review-nav-where { display: none; } .cc-review-top { grid-template-columns: auto minmax(0, 1fr) auto; } }
.cc-review-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: 16px; }
@media (max-width: 900px) { .cc-review-columns { grid-template-columns: 1fr; } }
.cc-review-paper { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); max-height: 78vh; overflow: auto; padding: 10px 12px; }
.cc-review-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 16px 18px; align-self: start; position: sticky; top: 8px; max-height: 78vh; overflow: auto; }
.cc-review-title { margin: 6px 0 12px; font-size: 20px; }
.cc-chip { display: inline-block; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.cc-chip-conflict { background: var(--red-bg-check-mark); color: var(--red-ink); }
.cc-chip-missing { background: var(--amber-bg-check-mark); color: var(--amber-ink-check); }
.cc-chip-partial { background: var(--amber-bg-check-mark); color: var(--amber-ink-check); }
.cc-chip-oldsite { background: var(--violet-bg); color: var(--violet-ink); }
.cc-review-block { margin: 0 0 12px; }
.cc-review-label { font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.cc-review-quote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--grey-bg); border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.5; }
.cc-review-draft .cc-review-quote { border-left-color: var(--accent); background: var(--green-bg-check-added); }
.cc-review-note { font-size: 15px; margin: 0 0 12px; }
.cc-review-choose { font-weight: 600; margin: 10px 0; }
.cc-review-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
/* The answers lead the card: first child, with the chip and title under
   them. The finish screen and the "changed" screen keep theirs where they
   were - those rows follow the thing they are about. */
.cc-review-card > .cc-review-buttons:first-child { margin: 0 0 14px; }
/* THE REVIEW IS THE SCREEN. With cards on it, the heading, the
   introduction, the "what this does" fold and the upload steps are off
   it; the strip at the foot ("Tell us what's wrong") stays. */
#crosscheck-view.cc-reviewing .tbt-heading,
#crosscheck-view.cc-reviewing .tbt-sub,
#crosscheck-view.cc-reviewing .signs-about,
#crosscheck-view.cc-reviewing .cc-stage,
#crosscheck-view.cc-reviewing #crosscheck-brief,
#crosscheck-view.cc-reviewing #crosscheck-closed,
#crosscheck-view.cc-reviewing .cc-resume { display: none; }
/* THE REVIEW IS FIXED; ONLY THE DOCUMENT AND THE CARD SCROLL. The whole
   screen used to scroll, so the bar, the buttons and the paper all moved
   together and the eye had to find them again (the owner, 16 September
   2026). On a desk the view holds still: the row of controls, the link,
   then the two columns filling what is left down to the strip at the
   foot. The finish screen is taller than the columns, so the box it
   lives in scrolls instead. Phones keep the flowing layout - two stacked
   scroll areas in a fixed frame would be worse than a page. */
@media (min-width: 900px) {
  #crosscheck-view.cc-reviewing { overflow: hidden; }
  #crosscheck-view.cc-reviewing .tbt-canvas {
    display: flex; flex-direction: column; height: 100%; min-height: 0;
    box-sizing: border-box; padding: 6px 20px 0;
  }
  #crosscheck-view.cc-reviewing #crosscheck-report { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  #crosscheck-view.cc-reviewing .cc-review { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; margin: 0; }
  #crosscheck-view.cc-reviewing .cc-review-body { flex: 1; min-height: 0; }
  #crosscheck-view.cc-reviewing .cc-review-columns { height: 100%; grid-template-rows: minmax(0, 1fr); }
  #crosscheck-view.cc-reviewing .cc-review-paper { max-height: none; height: 100%; box-sizing: border-box; }
  #crosscheck-view.cc-reviewing .cc-review-card { position: static; max-height: 100%; box-sizing: border-box; }
  #crosscheck-view.cc-reviewing .tbt-canvas > .down-strip { margin-top: 40px; padding-top: 16px; }
  #crosscheck-view.cc-reviewing .tbt-canvas > .down-strip::after { height: 8px; }
  /* An empty status line still carried its paragraph margins - 32px of
     nothing between the bar over the rail and the row of controls. */
  #crosscheck-view.cc-reviewing #crosscheck-status:empty { display: none; }
  /* The way out sits in the bar over the rail, at the far right of the
     window - not at the edge of the canvas (the owner's mockup). */
  #crosscheck-view.cc-reviewing .cc-review-close { position: fixed; top: 8px; right: 18px; z-index: 6; }
  #crosscheck-view.cc-reviewing .cc-review-top { padding-right: 0; }
  /* WIDER: the whole window to 30px of its sides, the document three
     parts in five. */
  #crosscheck-view.cc-reviewing.cc-wider .tbt-canvas { max-width: none; padding: 6px 30px 0; }
  #crosscheck-view.cc-reviewing.cc-wider .cc-review-columns { grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr); }
}
/* The Wider press sits at the right end of the report line. */
.cc-report-line { display: flex; align-items: center; gap: 12px; }
.cc-report-line .cc-report-link { flex: 1; min-width: 0; }
.cc-wider-btn { flex: none; }
@media (max-width: 899px) { .cc-wider-btn { display: none; } }
/* The one line above the columns: the way to the full report. */
.cc-report-line { margin: 0 0 10px; font-size: 13.5px; }
.cc-report-link { color: var(--accent-text); }
.cc-review-buttons .cc-copy { font-size: 13.5px; padding: 8px 16px; }
.cc-review-edit { margin: 12px 0 0; }
/* A rule that may not be this crew's at all. Amber, like every other
   "read this before you act" line on the sheet - never red, because
   nothing is wrong, and never green, because nothing is settled. */
.cc-not-ours, .cc-conditional { color: var(--amber-ink-check); }
.cc-review-ask .cc-review-quote { border-left-color: var(--amber-line-check); background: var(--amber-bg-check-quote); }
.cc-unit-current { background: var(--amber-bg-notice); border-radius: 6px; }
.cc-unit-suggested { outline: 2px dashed var(--focus-ring); outline-offset: 3px; border-radius: 6px; }
.cc-review-place { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.cc-unit-edited { box-shadow: inset 3px 0 0 var(--accent); }
.cc-unit-added { box-shadow: inset 3px 0 0 var(--accent); background: var(--green-bg-check-added); }
.cc-choosing .cc-doc-para, .cc-choosing .cc-doc-page { cursor: pointer; }
.cc-choosing .cc-doc-para:hover, .cc-choosing .cc-doc-page:hover { background: var(--green-bg-check-mark); }
.cc-review-paper .cc-doc-text { font: 13.5px/1.55 inherit; font-family: inherit; white-space: pre-wrap; }
.cc-swap-table { margin: 8px 0 12px; }
.cc-swap-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin: 0 0 6px; }
.cc-swap-from { font-weight: 600; }
.cc-swap-arrow { color: var(--muted); }
.cc-swap-to { font: inherit; font-size: 13.5px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.cc-start-partial { color: var(--amber-ink-check); font-weight: 600; margin: 0 0 8px; }
.cc-edit-refused .cc-edit-area { border-color: var(--red-ink); }
.cc-edit-addition { border-left: 3px solid var(--accent); padding-left: 10px; margin: 8px 0; }
.cc-review-earlier { border: 1px dashed var(--accent); border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; }
.cc-resume { border-color: var(--accent); }
.cc-finish { border: 1px solid var(--accent); border-radius: 14px; background: var(--panel); padding: 18px 20px; margin: 18px 0; }
.cc-full { margin: 18px 0; }
.cc-full > summary { cursor: pointer; color: var(--accent-text); font-weight: 600; padding: 8px 0; }
.cc-doc-row { margin: 0 0 6px; }
.cc-doc-row > summary { cursor: pointer; font-size: 13.5px; padding: 4px 0; }
.cc-doc-row .cc-card { margin-top: 8px; }
.cc-draft-warn {
  margin: 0 0 8px; font-size: 13.5px; color: var(--amber-ink-check);
  border-left: 3px solid var(--amber-line-check); padding-left: 10px;
}
.cc-docs { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
/* THE TWO STEPS OF THE START SCREEN. The step number is the label's own
   eyebrow in the accent, so "Step 1 of 2" reads as the order and not as a
   second heading; the brief is the one line left when both steps fold
   away for the run. */
.cc-stage-no { color: var(--accent-text); margin-right: 8px; }
.cc-stage-done {
  color: var(--muted); font-size: 13.5px; margin: 0 0 14px;
  overflow-wrap: anywhere;
}
#crosscheck-pack-next { display: block; margin: 16px auto 0; max-width: 26rem; }
#crosscheck-pack-next[hidden] { display: none; }
.cc-brief { color: var(--muted); font-size: 13.5px; margin: 14px 0 10px; overflow-wrap: anywhere; }
.cc-card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  padding: 14px 16px; margin: 0 0 12px;
}
.cc-card.cc-conflict { border-left: 4px solid var(--red-ink); }
.cc-card.cc-missing { border-left: 4px solid var(--amber-line-check); }
.cc-card.cc-partial { border-left: 4px solid var(--amber-line-check); }
.cc-card.cc-covered { border-left: 4px solid var(--accent); }
.cc-card.cc-not_applicable { border-left: 4px solid var(--line); }
.cc-topic { font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px; }
.cc-conflict .cc-topic { color: var(--red-ink); }
.cc-missing .cc-topic { color: var(--amber-ink-check-topic); }
.cc-partial .cc-topic { color: var(--amber-ink-check-topic); }
.cc-req { margin: 0 0 10px; font-weight: 600; }
.cc-quote { display: block; margin: 0 0 8px; padding: 8px 12px;
  border-left: 3px solid var(--line); background: var(--grey-bg);
  border-radius: 0 10px 10px 0; font-size: 13.5px; }
.cc-quote-text { display: block; }
.cc-src { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.cc-none { color: var(--amber-ink-check-topic); font-size: 13.5px; margin: 0 0 8px; }
.cc-note { margin: 0 0 8px; font-size: 13.5px; }
/* WHY A PACK RULE WAS SET ASIDE. Quiet, because it is an explanation and
   not a finding, and muted further when there is none to give - a card that
   admits it has no reason must not look like one that has a good one. */
.cc-aside-why { color: var(--muted); margin-top: 6px; }
.cc-aside-why-missing { color: var(--muted); font-style: italic; margin-top: 6px; }
.cc-fix { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.cc-fix-text { margin: 0 0 8px; font-size: 13.5px; }
.cc-copy {
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--ink); font: inherit; font-size: 12.5px; padding: 6px 14px;
  cursor: pointer;
}
.cc-copy:hover { border-color: var(--accent); }
.cc-covered { margin: 4px 0 12px; }
.cc-covered > summary { cursor: pointer; color: var(--accent-text); padding: 4px 0; }
.ramslib-check-choice { margin-top: 8px; align-items: center; }
.ramslib-check-choice > .cc-docs { margin: 0; }
.ramslib-checked + .ramslib-checked { margin-top: -6px; }
.cc-scope-list { list-style: none; margin: 6px 0 0; padding: 0; }
.cc-scope-flag { padding: 4px 0; font-size: 13.5px; }
.cc-scope-name { font-weight: 600; }
.cc-scope-flag.is-unknown .cc-scope-name { color: var(--muted); font-weight: 500; }
/* The action row: what to change first, then where it is. The location is
   muted because it is a pointer, not the finding — and it only appears at
   all where it tells one row from another. */
.cc-row-clash {
  margin-right: 8px; font-size: 12.5px; letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 700; color: var(--red-ink);
}
.cc-row-src { color: var(--muted); font-weight: 400; }
.cc-refused { font-weight: 600; }
.cc-revisions { margin: 4px 0 14px; }
.cc-revisions h3 { margin: 0 0 8px; font-size: 15px; }
.cc-rev-note { color: var(--muted); font-size: 13.5px; margin: 0 0 6px; }
.cc-ledger {
  border: 1.5px solid var(--amber-line-check); border-radius: 14px; background: var(--amber-bg-check-ledger);
  padding: 14px 16px; margin: 18px 0 12px;
}
.cc-ledger h3 { margin: 0 0 8px; font-size: 15px; }
.cc-ledger ul { margin: 0 0 8px; padding-left: 20px; font-size: 13.5px; }
.cc-ledger-clean { margin: 0; font-size: 13.5px; color: var(--accent-text); }
.cc-ledger-scope { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }

/* ============ UI V2.4: the collapsed rail says its names ============ */
/* One tooltip for the whole rail (see app.mjs), fixed-position so the
   sidebar's own overflow cannot clip it. pointer-events: none - a tooltip
   the cursor can land on is a tooltip that flickers. */
#side-tip {
  position: fixed; z-index: 60;
  transform: translateY(-50%);
  background: var(--ink); color: var(--panel);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow);
  pointer-events: none;
}
#side-tip[hidden] { display: none; }

/* Browser print chrome, killed at the source. The date, the page title,
   the site address and the 1/2 counter that browsers stamp around a
   printed sheet are drawn ONLY inside the @page margin band — with that
   margin at zero there is nowhere to draw them. The sheet gets its paper
   margin back as internal padding instead. No page size is forced here,
   so A3 sign campaigns keep their paper choice. The grey "frame" some
   testers saw was the app background printing around the white sheet
   when the browser's print-backgrounds option is on — every ancestor of
   a printed sheet now goes flat white. */
@media print {
  @page { margin: 0; }
  body.printing, body.printing .app, body.printing .workspace,
  body.printing #tbt-view, body.printing #coshh-view, body.printing #havs-view,
  body.printing .tbt-canvas, body.printing .coshh-canvas, body.printing .havs-canvas,
  body.printing #tbt-result, body.printing #coshh-result, body.printing #havs-result {
    background: var(--panel) !important; border: none !important;
    box-shadow: none !important; border-radius: 0 !important;
  }
  body.printing .tbt-canvas, body.printing .coshh-canvas, body.printing .havs-canvas {
    max-width: none; margin: 0; padding: 0;
  }
  /* The paper margin is the PAGE's padding now, on screen and on paper alike,
     so it is no longer added here - adding it twice inset the printed sheet by
     28mm and the preview by 14mm, which is how the two drifted apart. */
  /* A SHEET THAT FLOWS OVER SEVERAL PAGES CARRIES THE PAPER MARGIN TOO
     (13 Nov 2026). With the @page margin at zero, a printed sheet has a
     margin only if it brings one. The toolbox talk does: each talk page is
     an A4 box with 12mm 14mm 10mm of padding. The COSHH assessment and the
     RAMS review's full report did not - their print rules set the padding
     to 0 - and both printed with the text 0.0mm from the left edge of the
     paper and 0.4 to 0.5mm from the top of page 2, measured on main e8ea7cd8 and
     on the published COSHH example PDF. A real printer cuts that off.
     They are one long sheet the printer breaks into pages, so the padding
     is cloned onto every page it lands on: without the clone, page 2 and
     after kept no margin at the top or bottom (measured: 0.4mm at the
     top). The same margin as the talk page, so every document KASQ
     prints sits the same on the paper. One rule for both sheets, because
     the cause is one. body.cc-report-page, not .cc-report-page: the
     report's own stylesheet loads after this one and sets a screen
     padding-top on the same canvas, which would otherwise win. */
  body.printing.printing-coshh .coshh-sheet,
  body.cc-report-page .tbt-canvas {
    padding: 12mm 14mm 10mm;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
  /* A sign-on row split across two pages prints as a broken box. */
  body.printing .tbt-sheet table.signon tr { break-inside: avoid; }
  /* The repeating head is one block: split across two sheets it would say half
     of what the page it heads is. */
  body.printing .tbt-sheet table.signon thead { break-inside: avoid; }
  /* NOT IN THE MIDDLE OF A THING. The deliverer's panel is 56mm tall and began
     12mm from the foot of the sheet, so the printer split it and put one
     bullet, with the bottom of its box, alone on a second page - the owner's
     own download, 5 September 2026. A break between two points is a page
     turn; a break through a point is a fault. Density is measured now so this
     should not arise, but when it does it will land between blocks. */
  body.printing .tbt-sheet .trainer,
  body.printing .tbt-sheet .tbt-stake,
  body.printing .tbt-sheet .kp-row,
  body.printing .tbt-sheet ol.points > li,
  body.printing .tbt-sheet ul.marked li,
  body.printing .tbt-sheet ol.ask > li {
    break-inside: avoid; page-break-inside: avoid;
  }
}

/* ---- FIND: workers ------------------------------------------------------
   The sidebar section and its one item are hidden until the status says
   this account may search. Both need their own [hidden] rule, because
   .side-label sets a padding-bearing box and .side-item sets display:flex,
   and a display in a class beats the browser's own [hidden] { display:none }.
   That exact mistake has now been made three times in this file - the CPP
   page hung under the chat once, and a footer link came back from the dead
   once - so the guard goes in with the rule, not after it. */
.side-label[hidden] { display: none; }
.side-item[hidden] { display: none; }

#find-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#find-view[hidden] { display: none; }
#find-view [hidden] { display: none !important; }

.find-input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font: inherit;
  padding: 12px 14px;
}
.find-input:focus { outline: none; border-color: var(--accent); }
#find-view input[type="range"] { width: 100%; height: 30px; accent-color: var(--accent); }
#find-view output { float: right; font-weight: 600; color: var(--accent-text); text-transform: none; letter-spacing: 0; }
.find-note { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }

.check-row {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 4px; font-size: 15px;
}
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); }

#find-run { width: 100%; margin-top: 22px; align-items: center; }
#find-status { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; }

/* One person, one card. Nothing on it is a score and nothing is a name. */
.find-card {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); padding: 14px 16px; margin: 12px 0;
}
.find-card-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.find-trade { font-weight: 600; font-size: 15px; }
.find-ref {
  margin-left: auto; color: var(--muted); font-size: 12.5px;
  letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
}
.find-line { margin: 6px 0 0; font-size: 13.5px; }
.find-line.muted { color: var(--muted); font-size: 13.5px; }

.find-cards-list { list-style: none; margin: 10px 0 0; padding: 0; }
.find-cards-list li {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px;
}
.find-chip {
  border-radius: 999px; padding: 1px 9px; font-size: 12.5px;
  border: 1px solid var(--line); color: var(--muted);
}
/* Confirmed by the scheme and read off a photograph are different words and
   they must not be able to look the same at a glance. */
.find-chip.confirmed { border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.find-chip.expired { border-color: var(--red-ink); color: var(--red-ink); font-weight: 600; }
.find-chip.expiring { border-color: var(--amber-line-strikes); color: var(--amber-ink-strikes); }

.find-gap {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin: 14px 0 0;
}
.find-gap h3 { margin: 0 0 8px; font-size: 13.5px; }
.find-gap ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }

/* The card chooser. Chips rather than a multi-select, because a job needing
   two cards is ordinary and a <select multiple> on a phone is not. */
.find-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.find-pick {
  font: inherit; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--ink);
  padding: 7px 14px; cursor: pointer;
}
.find-pick:hover { border-color: var(--accent); }
.find-pick.on { border-color: var(--accent); background: var(--picked);
  color: var(--ink); font-weight: 600; }
.find-pick.on::before { content: "\2713\00a0"; }
.find-add {
  display: block; font-size: 12.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted); margin: 16px 0 6px;
}
.find-add select { margin-top: 6px; text-transform: none; letter-spacing: 0; }
#find-card-match { margin-top: 10px; }
#find-card-match[hidden] { display: none; }
#find-card-match .check-row { margin: 8px 0; align-items: flex-start; }

/* The approach, on the company's side. */
.find-asks-head { font-size: 15px; margin: 28px 0 4px; }
#find-asks-block[hidden] { display: none; }
.find-ask-form {
  border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px;
}
.find-ask-form[hidden] { display: none; }
.find-ask-row { display: flex; gap: 10px; flex-wrap: wrap; }
.find-ask-row label { flex: 1 1 8rem; font-size: 12.5px; color: var(--muted); }
.find-ask-row input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: inherit; font: inherit; padding: 9px 11px;
  margin-top: 4px;
}
.find-ask-note { width: 100%; margin-top: 10px; }
.find-ask-send {
  font: inherit; font-weight: 600; margin-top: 12px;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); padding: 10px 18px; cursor: pointer;
}
.find-ask-open {
  font: inherit; font-size: 13.5px; margin-top: 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: var(--ink); padding: 9px 16px; cursor: pointer;
}
.find-ask-open:hover { border-color: var(--accent); }
.find-ask-state { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; }
.find-ask-state.yes { color: var(--accent-text); }
.find-ask-state.no { color: var(--muted); }
.find-contact {
  margin: 8px 0 0; padding: 10px 12px; font-size: 13.5px;
  border: 1px solid var(--accent); border-radius: 12px;
}
.find-contact strong { display: block; }

/* ---- Kit check (office side) --------------------------------------------
   The register a site can scan, made in an office. Built out of the classes
   the other tools already use; what is new here is the table of what we
   read, which has one job — letting somebody SEE a wrong reading before it
   is screwed to a gate for six months. */

.tbt-step {
  font-size: 15px; margin: 28px 0 10px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.tbt-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 18px; }

.kit-file {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  margin: 0 0 14px; background: var(--panel);
}
.kit-file h3 { font-size: 13.5px; margin: 0 0 4px; overflow-wrap: anywhere; }
/* NOT SCOPED TO .kit-file, and it should never have been.
   The same class is used in the register panel and inside an opened row,
   where it matched nothing at all: "14 more could not be included…" rendered
   as a 16px black paragraph — the largest text in a register of 159 rows,
   louder than the data it was qualifying, while the caveat that IS meant to
   be quiet sat correctly at 13px muted. The hierarchy was inverted by an
   accident of a selector, not by a decision. */
.kit-quality { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.kit-quality.warn { color: var(--amber-ink); font-weight: 600; }
.kit-quality.bad { color: var(--red-ink); font-weight: 600; }

.kit-rows {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.kit-rows th, .kit-rows td {
  text-align: left; padding: 13px 16px;
  border-bottom: 1px solid var(--line-subtle);
  vertical-align: top;
}
.kit-rows th:first-child, .kit-rows td:first-child { padding-left: 20px; }
.kit-rows th {
  color: var(--muted); font-weight: 600;
  font-size: 12.5px; letter-spacing: 0.02em;
  padding-top: 10px; padding-bottom: 10px;
}
/* The hand knows where it is: a whisper of ink under the cursor's row.
   Flagged rows keep their amber - a report outranks a hover. */
.kit-rows tr.kit-row:not(.kit-odd):hover td { background: var(--hover-veil-row); }
.kit-rows td.kit-numbers { font-family: var(--mono); overflow-wrap: anywhere; }
/* Dates are machine data too - the same voice as the asset numbers. */
.kit-rows td:nth-child(4) {
  font-family: var(--mono);
  font-size: 13.5px;
}
/* A row we are not sure of is marked on the row itself, not in a summary
   at the top: the office has to be able to see WHICH one. */
.kit-rows tr.kit-odd td { background: var(--amber-bg); }
.kit-rows tr.kit-odd td:first-child { box-shadow: inset 3px 0 0 var(--amber-ink); }
.kit-why { color: var(--amber-ink); font-size: 12.5px; display: block; margin-top: 2px; }

/* A question with two answers and no default, standing where the button
   the office just pressed was. Amber, because nothing is wrong — we are
   asking, not refusing. */
.kit-choice {
  border: 1px solid var(--amber-line); border-left-width: 4px; border-radius: 12px;
  padding: 12px 14px; margin: 12px 0; background: var(--amber-bg);
}
.kit-choice p { margin: 0 0 10px; font-size: 13.5px; }

/* THE SAME SCROLLER EVERY OTHER TOOL HAS, and Kit check was built without
   it. A view that does not scroll inside itself makes the whole document
   scroll: the sidebar rides up out of the window, the account block ends up
   halfway down the page with white underneath it, and the sticky bar at the
   top gets content sliding beneath it. Nobody noticed while the tool was
   one upload box tall. */
/* Site Audit's desk frame fills the panel and scrolls inside itself,
 * like every tool view; the frame is the page, so it gets every pixel. */
/* A COLUMN, not a row: the phone-hint line above the frame became a
   left-hand flex column and shoved the whole audit to the right half
   of the desk (the owner's catch, minutes after the line landed). */
#audit-view { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
#audit-view[hidden] { display: none; }
#audit-view iframe { flex: 1; width: 100%; border: 0; }
#kit-view { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; }
#kit-view[hidden] { display: none; }
#kit-view [hidden] { display: none !important; }

/* The board's preview, in the same card the site signs use so the two
   read as one product. Capped, because a full A4 at browser width pushes
   the button that prints it off the bottom of the screen. */
#kit-board-preview { max-width: 420px; margin: 12px 0; }
#kit-board-preview > svg { width: 100%; height: auto; display: block; }
.kit-mine-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  margin: 0 0 12px; background: var(--panel);
}
.kit-mine-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px; font-weight: 500; align-items: center; flex-wrap: wrap;
}
/* "open the worker's page" speaks with the same voice as Privacy and
   About KASQ in the footer: plain weight, plain accent. The row's 500
   made it heavier than every other link on the page (the owner's call,
   launch day). */
/* The one line over the audit frame: where a walk really happens. */
.audit-hint {
  color: var(--muted); font-size: 12.5px; text-align: center;
  margin: 8px 16px 0; 
}
/* The visitor's first door, in the corner where accounts live. */
.acct-item.acct-join { color: var(--accent-text); font-weight: 600; }
.kit-mine-row a { font-weight: 400; color: var(--accent-text); }
@media (max-width: 700px) {
  /* On a phone space-between has no ends worth being at: it threw Open
     to one edge, the board button to the other, and the link onto a
     line of its own. The register's name takes the first line and the
     three doors stand together under it. */
  .kit-mine-row { justify-content: flex-start; row-gap: 8px; }
  .kit-mine-row > span:first-child { flex-basis: 100%; }
}
/* A site that has said something. Amber on the row, so the office learns
   about a reported sling from the list rather than by opening each
   register in turn to see whether there is news. */
.kit-mine-flagged { border-color: var(--amber-line); background: var(--amber-bg); }
/* The same quiet amber the toolbar badge wears - a tint with dark ink,
   never a full-strength patch. On the flagged card's amber wash the pill
   stands on the panel white instead. */
.kit-mine-said {
  padding: 2px 9px; border-radius: 999px;
  background: var(--panel); color: var(--amber-ink);
  border: 1px solid var(--amber-line);
  font-size: 12.5px; font-weight: 600;
}

/* The heading of an opened register, with the way out beside it. */
.kit-one-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}
.kit-one-top .tbt-step { margin-bottom: 0; }

/* Every box in the reading can be corrected: the office has the paper and
   we have a machine's opinion about somebody else's form. */
.kit-edit {
  font: inherit; font-size: 13.5px; width: 100%; min-width: 90px;
  padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--panel); color: var(--ink);
}
.kit-edit-numbers { font-family: var(--mono); }
.kit-edit:focus { outline: none; border-color: var(--accent); }
.kit-drop {
  font: inherit; font-size: 12.5px; padding: 5px 8px; cursor: pointer;
  border: 1px solid transparent; border-radius: 7px; background: transparent;
  color: var(--muted); white-space: nowrap;
}
.kit-drop:hover { background: var(--grey-bg); color: var(--ink); }
.kit-rows tr.kit-dropped td { opacity: 0.45; text-decoration: line-through; }
.kit-rows tr.kit-dropped td:first-child { box-shadow: none; }

/* Out of service, said the same day it happened. */
/* A register somebody has kept by hand. The three blocks this screen adds
   are all about telling an office something it does not want to hear —
   what the gate will say, what we refused, and what cannot be checked at
   the kit — so none of them are grey. */
.kit-standing { font-weight: 600; }
.kit-standing.warn { color: var(--amber-ink); }
.kit-standing.bad { color: var(--red-ink); }
.kit-problems { margin: 0; padding-left: 18px; font-size: 13.5px;
  color: var(--muted); }
.kit-problems li { margin: 0 0 6px; overflow-wrap: anywhere; }
.kit-problems strong { color: inherit; }
.kit-rows td.kit-exams { min-width: 220px; }
.kit-exam { display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 0 0 4px; }
.kit-exam:last-child { margin-bottom: 0; }
/* WHAT KIND OF EXAMINATION IT IS, beside the date and never hidden behind
   it. "Valid until 29.12.2026" means one thing over a sling and another
   over a gas detector, and one label over both is wrong half the time. */
.kit-exam-name { font-size: 12.5px; color: var(--muted); flex: 0 0 auto;
  min-width: 96px; }
.kit-edit-date { width: 116px; font-family: var(--mono); }
.kit-exam .kit-why { display: inline; margin: 0; }

/* The site code panel. The office is deciding something about its own
   yard, so it reads as a piece of writing rather than a settings row. */
.kit-code {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.kit-code h3 { font-size: 13.5px; margin: 0 0 8px; }
.kit-code p { font-size: 13.5px; margin: 0 0 10px; line-height: 1.5; }
.kit-code p.havs-hint { margin-bottom: 0; }
.kit-code-how { margin: 0 0 12px; padding-left: 18px; font-size: 13.5px;
  color: var(--muted); }
.kit-code-how li { margin: 0 0 4px; line-height: 1.5; }
/* The code itself, big enough to read off a screen and type onto a card. */
.kit-code-is {
  font-family: var(--mono);
  font-size: 28px;
  letter-spacing: 3px;
  margin: 0 0 10px !important;
}

.kit-withdraw {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.kit-withdraw-head { font-size: 13.5px; color: var(--muted); width: 100%; }
.kit-withdraw .kit-edit { width: auto; flex: 1 1 180px; }
.kit-withdraw-said { font-size: 13.5px; color: var(--muted); }
.ghost-btn {
  font: inherit; font-size: 13.5px; font-weight: 500;
  padding: 8px 15px; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; background: transparent;
  color: var(--ink);
}
.ghost-btn:hover { background: var(--grey-bg); }
.ghost-btn:active, button.ghost:active:not(:disabled),
.drops-unit-btn:active, .settings-actions .btn:active {
  background: var(--pressed);
}

/* A register opened by its owner: what the site reported sits at the top,
   because it is the only part of the screen with somebody waiting on the
   other end of it. */
.kit-flag {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  border: 1px solid var(--amber-line); background: var(--amber-bg); border-radius: 10px;
  padding: 10px 12px; margin: 0 0 10px; font-size: 13.5px;
}
.kit-flag strong { font-family: var(--mono); }
.kit-flag button { margin-left: auto; }
.kit-flag button + button { margin-left: 0; }
/* The photograph the man sent, beside his words. A tap lifts it. */
.kit-flag .kit-flag-shot { width: 56px; height: 56px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--amber-line); display: block;
  cursor: zoom-in; }

/* THE DOCUMENTS BEHIND A REGISTER — neutral, unlike a reported fault, so it
   does not read as a warning. One card per file, collapsed until asked: the
   picture inside is not fetched before then, for the same reason a hundred
   and fifty-nine item photographs are not fetched to draw the table below. */
.kit-reports { display: grid; gap: 8px; margin: 0 0 14px; }
.kit-report { border: 1px solid var(--line); border-radius: 10px; }
.kit-report-open {
  width: 100%; text-align: left; padding: 10px 12px; background: none;
  border: none; font: inherit; color: inherit; cursor: pointer;
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
}
.kit-report-open strong { font-family: var(--mono); }
.kit-report-open span { color: var(--muted); font-size: 13.5px; }
.kit-report-more { padding: 0 12px 12px; }
.kit-report-more[hidden] { display: none; }


/* The signpost under a chat answer - our own words from our own closed
   list, the model never touches it (see chat-referral.mjs). */
.tool-referral {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px; padding: 10px 12px;
  background: var(--grey-bg); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 10px;
  font-size: 13.5px;
}
.tool-referral strong { font-size: 13.5px; }
.tool-referral-btn {
  align-self: flex-start; margin-top: 2px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--accent); background: none;
  color: var(--accent-text); font-size: 13.5px; font-weight: 600;
  cursor: pointer;
}
.tool-referral-btn:hover { background: var(--picked); }

/* ---- 3 Strikes: the office side of the conduct board ------------------ */
/* The view scrolls inside itself, like every tool - a view without this
   grows the document and takes the sidebar with it (the Kit check
   lesson, pinned by noise-core's whole-shell test). */
#strikes-view { flex: 1; overflow-y: auto; overflow-x: hidden; }
#strikes-view[hidden] { display: none; }

/* The colours ARE the content: yellow warns, orange is serious, red is
   off the site, and a clean name stays quiet green. Same values as the
   crew's public page, so the two screens never disagree. */

/* The boards this account keeps, as cards - the same quiet white card
   every other tool deals in. */
.strikes-boards { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.strikes-board-pick {
  font: inherit; font-size: 15px; font-weight: 500; padding: 10px 16px;
  border: 1px solid transparent; border-radius: 12px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.strikes-board-pick:hover { background: var(--grey-bg); }
/* WHICH BOARD IS ON SCREEN. Three sites can share a name. */
.strikes-board-pick[aria-pressed="true"] {
  border-color: var(--accent); color: var(--ink);
  background: var(--picked); font-weight: 600;
}
.strikes-board-new { color: var(--muted); }
.strikes-board-new[aria-expanded="true"] { border-color: var(--accent); }

/* One line where the paste box used to stand. */
.strikes-add-toggle {
  margin-left: auto; font: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  padding: 6px 14px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--ink);
}
.strikes-add-toggle:hover { background: var(--grey-bg); }
.strikes-add-toggle::after { content: " ▾"; color: var(--muted); }
.strikes-add-toggle[aria-expanded="true"]::after { content: " ▴"; }

/* The far end of the section, where deleting a board belongs. Close to
   what it follows: the air under the wall code read as an unfinished
   page rather than a quiet ending. */
.strikes-end { margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line); }

/* One row: what prints, the way to change it, and which project it
   belongs to. There is ALWAYS something to press here - a screen that
   only offers a way in when nothing is set sends an office hunting. */
.strikes-logo { display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; }
.strikes-logo-seen {
  height: 34px; max-width: 140px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 3px 6px; background: var(--panel);
}
.strikes-logo-file { display: flex; align-items: center; gap: 8px; }
.strikes-logo-file span { display: inline; margin: 0; }
.strikes-trouble { margin: 6px 0 0; color: var(--red-ink); font-size: 13.5px;
  max-width: 44em; }
.strikes-trouble[hidden] { display: none; }
.strikes-logo-pick { display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--muted); }
.strikes-logo-pick select { font: inherit; font-size: 13.5px;
  padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--ink); }

/* The create row: the field and one green pill, the same pair as the
   generate button every tool leads with. */
.strikes-create { max-width: 520px; margin: 0 auto; }
.strikes-create button {
  border: none; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink); font: inherit; font-size: 13.5px;
  font-weight: 600; padding: 11px 22px; cursor: pointer;
  margin: 14px auto 0; display: block;
}
.strikes-create button:disabled { opacity: 0.5; cursor: default; }

.strikes-panel { margin-top: 28px; }
.strikes-panel h2 { font-family: var(--serif); font-weight: 500;
  font-size: 24px; margin: 0 0 12px; }

.strikes-load { display: grid; gap: 8px; margin: 0 0 18px; }
/* A class that sets display beats the browser's own [hidden], the way
   every other put-away thing in this file has to say so. */
.strikes-load[hidden] { display: none; }
.strikes-load textarea { resize: vertical; }
.strikes-load button {
  border: none; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink); font: inherit; font-size: 13.5px;
  font-weight: 600; padding: 9px 17px; cursor: pointer;
  justify-self: start;
}
.strikes-load button:disabled { opacity: 0.5; cursor: default; }

.strikes-crew { display: grid; gap: 12px; }
.strikes-person {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; border-left: 6px solid var(--line);
}
.strikes-person.strikes-level-0 { border-left-color: var(--accent); }
.strikes-person.strikes-level-1 { border-left-color: var(--strikes-level-1-edge); }
.strikes-person.strikes-level-2 { border-left-color: var(--strikes-level-2-edge); }
.strikes-person.strikes-level-3 { border-left-color: var(--scale-red); }

/* A NAME, A TRADE, A BADGE AND TWO BUTTONS DO NOT FIT ONE PHONE LINE.
   As a wrapping flex row they laddered: some cards put the ✕ alone on a
   third line, some did not, and the list read as broken (seen on the
   owner's phone, 28 August 2026). A grid instead - the name takes the
   room that is left, the badge and the actions keep their own columns
   and never wrap between themselves. */
.strikes-person-head {
  display: grid; align-items: center; gap: 6px 10px;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}
.strikes-person-head h3 {
  margin: 0; font-size: 16px; min-width: 0;
  overflow-wrap: anywhere;
}
.strikes-position {
  color: var(--muted); font-size: 13.5px;
  grid-column: 1; grid-row: 2; min-width: 0;
}
/* With no trade the name row is the only row, and the badge sits on it. */
.strikes-person-head h3:only-child { grid-row: 1 / 3; }
.strikes-more-btn { display: none; }

.strikes-badge { font-size: 12.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  grid-column: 2; grid-row: 1 / 3; justify-self: end; }
.strikes-badge-0 { color: var(--accent-text); background: var(--picked); }
.strikes-badge-1 { color: var(--amber-ink); background: var(--amber-bg); }
.strikes-badge-2 { color: var(--orange); background: var(--orange-back); }
.strikes-badge-3 { color: var(--accent-ink); background: var(--scale-red); }

.strikes-mark-btn {
  font: inherit; font-size: 13.5px; font-weight: 500;
  padding: 6px 14px; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--ink);
  grid-column: 3; grid-row: 1 / 3;
}
.strikes-mark-btn:hover:not(:disabled) { background: var(--grey-bg); }
.strikes-mark-btn:disabled { opacity: 0.4; cursor: default; }

/* The top of the ladder, said on the card itself - a phone has no hover
   to read a title from. */
.strikes-at-top { margin: 8px 0 0; font-size: 13.5px; color: var(--red-ink); }
.strikes-sheet-said { margin: 0; padding: 12px 16px; font-size: 15px;
  color: var(--muted); }

.strikes-mark-form { display: grid; gap: 6px; margin-top: 10px;
  grid-template-columns: auto 1fr auto auto; align-items: center; }
.strikes-mark-form select, .strikes-mark-form button {
  font: inherit; font-size: 13.5px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--ink);
}
/* The one exception to the shared field look: this box lives on a
   three-column row and must not be 100%-wide-with-margins. */
#strikes-view .strikes-mark-form textarea {
  padding: 8px 10px; border-radius: 10px; min-width: 0;
  font: inherit; font-size: 13.5px; resize: vertical;
  border: 1px solid var(--line); background: var(--panel); color: inherit;
  outline: none;
}
#strikes-view .strikes-mark-form textarea:focus {
  border-color: var(--accent);
}
.strikes-mark-form button {
  cursor: pointer; border: none; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.strikes-mark-form button:disabled { opacity: 0.5; cursor: default; }
/* The door out. Quiet like "Add a photo": Save keeps the only green. */
.strikes-mark-form button.strikes-mark-cancel {
  background: var(--panel); color: var(--ink); font-weight: 400;
  border: 1px solid var(--line);
}
.strikes-mark-form button.strikes-mark-cancel:hover {
  background: var(--grey-bg);
}

.strikes-history { margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }

/* THE STRIKES AS PIPS, not a block each. Numbered so the card reads the
   same without colour, right-aligned so the eye finds them in the same
   place on every card, and a withdrawn one struck through rather than
   removed - the record does not renumber and does not forget. */
.strikes-pips { display: flex; gap: 6px; justify-content: flex-end;
  flex-wrap: wrap; }
.strikes-pip {
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  min-width: 30px; min-height: 30px; padding: 0 8px; line-height: 1;
  border-radius: 999px; border: 1px solid transparent;
}
.strikes-pip[aria-pressed="true"] { border-color: currentColor; }
.strikes-pip-1 { color: var(--amber-ink); background: var(--amber-bg); }
.strikes-pip-2 { color: var(--orange); background: var(--orange-back); }
.strikes-pip-3 { color: var(--accent-ink); background: var(--red-fill); }
.strikes-pip.withdrawn { text-decoration: line-through; opacity: 0.45; }
.strikes-mark { border-top: 1px solid var(--line); padding-top: 8px; }
.strikes-mark p { margin: 0; }
.strikes-chip { font-size: 12.5px; font-weight: 600; padding: 1px 8px;
  border-radius: 999px; margin-right: 8px; }
.strikes-chip-1 { color: var(--amber-ink); background: var(--amber-bg); }
.strikes-chip-2 { color: var(--orange); background: var(--orange-back); }
.strikes-chip-3 { color: var(--accent-ink); background: var(--red-fill); }
.strikes-when { color: var(--muted); font-size: 13.5px; }
.strikes-note { margin-top: 3px !important; font-size: 13.5px; }
.strikes-mark.withdrawn .strikes-note,
.strikes-mark.withdrawn .strikes-chip { opacity: 0.45; }
.strikes-gone { color: var(--muted); font-size: 13.5px;
  font-style: italic; }
.strikes-withdraw { font: inherit; font-size: 12.5px; margin-top: 4px;
  padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); cursor: pointer; }

/* THE EVIDENCE ROW ON THE FORM - thumbnails beside one pill button.
   Spans the form's three columns: a photograph is not a fourth column,
   it is a second thought under the words. */
.strikes-shots { grid-column: 1 / -1; display: flex; gap: 8px;
  flex-wrap: wrap; align-items: center; }
.strikes-shot { position: relative; display: inline-flex; }
.strikes-shot img { width: 56px; height: 56px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); display: block; }
/* Still climbing: the id is not back yet, and Save says so. */
.strikes-shot.waiting img { opacity: 0.45; }
/* Written against the form's own button rule, which would otherwise
   paint this little cross as a full green Save pill. */
.strikes-mark-form .strikes-shot-drop, .strikes-shot-drop {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; line-height: 1; padding: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 400; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); }
/* THE PEN'S STAGE (photo-ink.mjs). The page's CSP refuses styles that
 * arrive by script, so the stage is dressed here, in the family sheet;
 * audit.css carries the twin block for the site, and the tests hold
 * the two together. A dark curtain over a frozen page: the module pins
 * the body and swallows the touches, this makes the stage the only
 * thing on screen. */
#ink-stage {
  position: fixed; inset: 0; z-index: 9999;
  height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--pad-stage);
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
#ink-stage .ink-bar {
  display: flex; gap: 8px; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
}
#ink-stage .ink-bar.ink-foot {
  justify-content: center;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
}
#ink-stage .ink-bar.ink-foot button { min-width: 45%; }
#ink-stage button {
  font: inherit; font-size: 17px; font-weight: 700;
  min-height: 44px; padding: 8px 18px;
  border-radius: 10px; border: 1px solid var(--pad-line-button);
  background: transparent; color: var(--accent-ink); cursor: pointer;
}
#ink-stage button:focus-visible { outline: 2px solid var(--stage-focus); outline-offset: 2px; }
#ink-stage button:not([disabled]):active { transform: scale(.97); }
#ink-stage button.ink-keep {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
#ink-stage button[disabled] { opacity: .4; cursor: default; }
#ink-stage .ink-hint {
  margin: 0; padding: 0 12px 8px;
  text-align: center; color: var(--on-dark-ink-soft);
  font-size: 15px;
}
#ink-stage .ink-room {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 0; padding: 0 8px;
}
#ink-stage canvas {
  max-width: 100%; max-height: 100%;
  border-radius: 10px; border: 1px solid var(--pad-line-canvas);
  touch-action: none; cursor: crosshair;
}
/* The pen: the cross's twin on the other shoulder of the thumbnail. */
.strikes-mark-form .strikes-shot-draw, .strikes-shot-draw {
  position: absolute; top: -6px; left: -6px;
  width: 20px; height: 20px; line-height: 1; padding: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 400; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); }
.strikes-mark-form .strikes-shot-add { grid-column: auto; cursor: pointer;
  font: inherit; font-size: 13.5px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font-weight: 400; }
.strikes-mark-form .strikes-shot-add:hover:not(:disabled) {
  border-color: var(--accent); color: var(--accent-text); }
.strikes-mark-form .strikes-shot-add:disabled { opacity: 0.4;
  cursor: default; }
.strikes-shot-said { grid-column: 1 / -1; color: var(--muted);
  font-size: 12.5px; }

/* THE EVIDENCE UNDER A SAVED STRIKE - office view only; each thumbnail
   opens the full picture. Dimmed with the words when withdrawn. */
.strikes-proof { display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 6px; }
.strikes-proof img { width: 64px; height: 64px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); display: block; }
.strikes-mark.withdrawn .strikes-proof { opacity: 0.45; }

/* THE WORDS UNDER THE PICTURE, in the shared viewer: the strike's
   level, moment and note ride with its photograph, so the evidence is
   never separated from the accusation it illustrates. Laid out like a
   record, not a toast: left-aligned, chip and moment on one line, the
   words as the body under them - the centred stack of the first cut
   read as three unrelated lines (the owner's screenshot, 2 September
   2026). */
.strikes-look-caption {
  flex: 0 0 auto; color: var(--accent-ink); text-align: left;
  width: min(860px, 100%); margin: 0 auto; padding: 2px 10px 6px;
  display: grid; gap: 3px;
}
.strikes-look-caption p { margin: 0; display: flex; align-items: center;
  flex-wrap: wrap; gap: 8px; }
.strikes-look-when { color: var(--on-dark-ink-soft); font-size: 13.5px; }
.strikes-look-note { font-size: 15px; line-height: 1.4; }
.strikes-look-withdrawn { color: var(--on-dark-ink-soft);
  font-size: 13.5px; font-style: italic; }
/* On the curtain the caption gets its own dark plate: the page behind
   shows through the dim, and words standing on a half-lit blur read as
   spilled rather than placed (the owner's screenshot, 2 September
   2026). The card needs none - the card is the plate. */
.strikes-look-back:not(.strikes-look-carded) .strikes-look-caption {
  background: var(--scrim-caption); border-radius: 12px;
  padding: 10px 14px;
}
/* The card's way out: one button, centred at the bottom, where every
   card in this register keeps its buttons. */
.strikes-look-actions { display: flex; justify-content: center;
  padding-top: 10px; }
.strikes-look-carded .strikes-look-shut { font-size: 13.5px;
  padding: 10px 20px; }

/* The empty tool, explained before the one button on it. */
.strikes-bare { margin: 0 0 10px; color: var(--muted);
  font-size: 15px; max-width: 560px; }

.strikes-wall { margin-top: 26px; border-top: 1px solid var(--line);
  padding-top: 16px; }

/* THE CODE AND WHAT IT SAYS, SIDE BY SIDE. Stacked, this was a tall
   column with an empty half-screen beside it and the print button below
   the fold. The code keeps its own column and everything about it sits
   in the other; on a phone there is one column and it stacks. */
.strikes-wall-body {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 20px; align-items: start; max-width: 780px;
}
.strikes-wall-said { display: grid; gap: 10px; justify-items: start; }
.strikes-wall-said p { margin: 0; }
.strikes-wall-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.strikes-wall h3 { font-family: var(--serif); font-weight: 500;
  font-size: 20px; margin: 0 0 8px; }
.strikes-wall a { color: var(--accent-text); }
.strikes-qr { width: 180px; height: 180px; display: block; margin: 0;
  background: var(--panel); padding: 10px; border: 1px solid var(--line);
  border-radius: 10px; }
.strikes-hint { color: var(--muted); font-size: 13.5px; }
/* The line that says a board is longer than the page drawn from it. */
.strikes-rest { margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line); }
.strikes-rotate { font: inherit; font-size: 13.5px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); cursor: pointer; }
/* ---- The board's own bar, search and level chips --------------------- */

.strikes-bar {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 0 0 14px;
}
.strikes-bar h2 { margin: 0; }
.strikes-count { color: var(--muted); font-size: 13.5px; }
.strikes-drop {
  font: inherit; font-size: 13.5px; cursor: pointer;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--muted);
}
.strikes-drop:hover { border-color: var(--red-ink); color: var(--red-ink); }
.strikes-drop:disabled { opacity: 0.5; cursor: default; }

/* The search sticks to the top of the tool's own scroll, so a board of
   seventy people never leaves the box that finds one of them. */
.strikes-tools {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg); padding: 10px 0 8px; margin: 18px 0 4px;
  border-bottom: 1px solid var(--line);
  display: grid; gap: 8px;
}
.strikes-search {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font: inherit;
  padding: 10px 13px; outline: none;
}
.strikes-search:focus { border-color: var(--accent); }
.strikes-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.strikes-chip-btn {
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--muted);
}
.strikes-chip-btn:hover { border-color: var(--accent); }
.strikes-chip-btn[aria-pressed="true"] { border-color: currentColor; }
.strikes-chip-btn.strikes-chip-all[aria-pressed="true"] {
  background: var(--picked); color: var(--ink); border-color: var(--accent);
}
.strikes-chip-btn.strikes-chip-1[aria-pressed="true"] {
  background: var(--amber-bg); color: var(--amber-ink);
}
.strikes-chip-btn.strikes-chip-2[aria-pressed="true"] {
  background: var(--orange-back); color: var(--orange);
}
.strikes-chip-btn.strikes-chip-3[aria-pressed="true"] {
  background: var(--red-fill); color: var(--accent-ink); border-color: var(--red-fill);
}

/* ---- Tickets: who cannot work today -------------------------------- */
/* The same four colours the rest of the board already uses, so nobody
   has to learn a second key: red is stop, amber is soon, green is fine,
   grey is "we were not told". */
.strikes-ready { margin: 0 0 14px; }
.strikes-ready-said {
  margin: 0 0 8px; font-size: 12.5px; color: var(--muted);
}
.strikes-chip-btn.strikes-ticket-chip-clear { color: var(--accent-text); }
.strikes-course-pick { display: block; margin: 6px 0 10px; font-size: 13.5px; color: var(--muted); }
.strikes-course-select { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; max-width: 100%; }
.strikes-chip-btn.strikes-ticket-chip-missing[aria-pressed="true"] {
  background: var(--red-bg); color: var(--red-ink); border-color: var(--red-ink);
}
.strikes-chip-btn.strikes-ticket-chip-expired[aria-pressed="true"] {
  background: var(--red-fill); color: var(--accent-ink); border-color: var(--red-fill);
}
.strikes-chip-btn.strikes-ticket-chip-soon[aria-pressed="true"] {
  background: var(--amber-bg); color: var(--amber-ink);
}
.strikes-chip-btn.strikes-ticket-chip-valid[aria-pressed="true"] {
  background: var(--picked); color: var(--accent-text);
}
.strikes-chip-btn.strikes-ticket-chip-none[aria-pressed="true"] {
  background: var(--strikes-ticket-bg); color: var(--strikes-ink);
}

.strikes-tickets { margin: 8px 0 0; }
/* A SUMMARY, NOT A BUTTON. It used to fold the in-date tickets away
   behind itself; nothing is folded away any more, so it has nothing to
   be pressed for. */
.strikes-tickets-line {
  margin: 0; font-size: 12.5px; font-weight: 600;
  color: var(--muted);
}
.strikes-tickets-expired .strikes-tickets-line { color: var(--red-ink); }
.strikes-tickets-soon .strikes-tickets-line { color: var(--amber-ink); }
.strikes-tickets-all {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px;
}
/* A CLASS THAT SETS display BEATS [hidden] - the same trap the paste box
   fell into. Both of the rows below are put away with .hidden, so both
   have to say what hidden means here. */
.strikes-tickets-all[hidden] { display: none; }
.strikes-ticket {
  font-size: 12.5px; padding: 3px 9px; border-radius: 999px;
  background: var(--strikes-ticket-bg); color: var(--strikes-ink);
}
.strikes-ticket-expired { background: var(--scale-red); color: var(--accent-ink); }
/* ORANGE, AND SOLID. A pale amber chip beside a solid red one reads as
   "nothing much" - and a ticket with three weeks left is the one an
   office can still do something about, which makes it the most
   actionable thing on the card. */
.strikes-ticket-soon { background: var(--scale-orange); color: var(--accent-ink); }
.strikes-ticket-valid { background: var(--picked); color: var(--accent-text); }

/* The offer beside the file picker. Named, counted, and one press from
   off - a file never writes training dates on its own. */
.strikes-also {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.5px; color: var(--muted); cursor: pointer;
  line-height: 1.45;
}
.strikes-also input { margin-top: 2px; flex: none; }
.strikes-also[hidden] { display: none; }

/* The second way in, at the foot of the crew. */
.strikes-add-again {
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  align-self: start; margin: 4px 0 18px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px dashed var(--line); background: none; color: var(--muted);
}
.strikes-add-again:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---- Certificates: the paper behind a date ------------------------- */
.strikes-ticket-paper {
  font: inherit; font-size: 12.5px; cursor: pointer;
  border: 0; border-bottom: 1px dotted currentColor;
}
.strikes-ticket-paper:hover { filter: brightness(0.94); }

.strikes-paper {
  position: relative; margin: 10px 0 0; padding: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.strikes-paper img {
  display: block; max-width: 100%; height: auto; border-radius: 8px;
}
/* ---- THE SHAPE OF A PAGE, BEFORE THERE IS A PAGE --------------------
 *
 * An img with no picture in it yet is nought pixels tall, so the box was
 * a border, a link and nothing between them - and the card jumped the
 * moment the certificate landed. A4 is 1:1.414, so the space is kept at
 * that shape from the start and the card never moves. The ratio goes on
 * a box of its own rather than on the img: a photograph that is NOT A4 -
 * a phone picture of a card, most of them - must still be shown at its
 * own shape once it is here. */
.strikes-paper-waiting { min-height: 220px; }
.strikes-paper-waiting img { aspect-ratio: 1 / 1.414; width: 100%;
  background: var(--strikes-waiting-bg); border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .strikes-paper-waiting img { animation: strikes-paper-breathe 1.4s
    ease-in-out infinite; }
}
@keyframes strikes-paper-breathe {
  0%, 100% { opacity: 1; } 50% { opacity: 0.55; }
}
.strikes-paper-wait {
  margin: 0 0 8px; font-size: 13.5px; color: var(--muted);
}
.strikes-paper-wait[hidden] { display: none; }
.strikes-paper-open {
  display: inline-block; margin-top: 8px; font-size: 13.5px;
  color: var(--accent-text);
}
.strikes-paper-shut {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  width: 30px; height: 30px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: inherit; line-height: 1;
}
.strikes-paper-shut:hover { border-color: var(--red-ink); color: var(--red-ink); }

.strikes-papers { display: grid; gap: 12px; margin: 0 0 18px; }
.strikes-papers[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .strikes-queue-paper, .strikes-queue-page { transition: none; }
}
/* Finding one man on a board of a hundred and sixty. The search sits
   where the dropdown used to, and the matches are buttons under it -
   nothing opens, nothing overlays, and the page does not jump. */
.strikes-who-inner { display: grid; gap: 6px; }
.strikes-who-find {
  font: inherit; font-size: 13.5px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
}
.strikes-who-list { display: grid; gap: 4px; }
.strikes-who-one {
  display: flex; gap: 8px; align-items: baseline; text-align: left;
  font: inherit; font-size: 13.5px; padding: 7px 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
}
.strikes-who-one:hover { background: var(--picked); border-color: var(--accent); }
.strikes-who-trade { font-size: 12.5px; color: var(--muted); }
.strikes-who-none {
  margin: 0; font-size: 12.5px; line-height: 1.45;
  color: var(--muted);
}
.strikes-who-picked {
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 10px;
  background: var(--picked); border: 1px solid var(--accent); color: var(--green-ink-strikes);
}
.strikes-who-change {
  margin-left: auto; font: inherit; font-size: 12.5px; cursor: pointer;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--panel); color: var(--accent-text);
}
@media (min-width: 620px) {
  .strikes-queue-form { grid-template-columns: 1.4fr 1.4fr 1fr; }
}

/* ---- ONE MAN'S PAPERS. The sheet is taller than the conduct one and
   scrolls inside itself: a man with nine certificates should not push
   Save off the bottom of a laptop screen. */
.strikes-tickets-papers {
  justify-self: start; margin-top: 8px;
  font: inherit; font-size: 12.5px; padding: 9px 14px; min-height: 40px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--strikes-ink); cursor: pointer;
}
.strikes-tickets-papers:hover { background: var(--papers-hover-bg); }
/* Declared again after .strikes-sheet, further down this file - see the
   note there. Everything this rule used to say was being overruled. */
.strikes-papers-sheet { gap: 12px; }
.strikes-papers-count { font-size: 12.5px; color: var(--muted); }
.strikes-papers-body {
  overflow-y: auto; display: grid; gap: 12px; min-height: 0;
}
/* ---- ONE CERTIFICATE, BIG, WITH AN ARROW EITHER SIDE -----------------
   Drawn by the owner and right: reviewing certificates is one decision
   repeated, not a form to fill in. The picture is the screen; the name,
   the date and the three things that can happen to it sit around it. */
/* ---- THE FRAME IS THE FIXED SIZE, AND THE PICTURE LIVES INSIDE IT ----
   Two bugs, one after the other, both about who decides how tall this
   is. First the frame took its height from whatever picture was in it,
   so the next arrow collapsed the window to a strip until that picture
   loaded. So the PICTURE was given a fixed height instead - and that
   was worse in a quieter way: the frame is a grid item that shrinks
   when the window is short, the picture inside it did not shrink with
   it, and a certificate walked straight out of the bottom of the frame
   and over the boxes below. The owner's screenshots show it hanging out
   of its own window.
   The height belongs to the FRAME, once, and everything inside fills it
   and is clipped by it. Nothing else in here has a height of its own. */
.strikes-papers-frame {
  position: relative; display: grid; grid-template-rows: minmax(0, 1fr);
  padding: 14px; height: min(46vh, 420px); min-height: 200px;
  overflow: hidden; background: var(--papers-stage-bg); border-radius: 16px;
}
.strikes-papers-out { opacity: 0.5; }
.strikes-papers-stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 0; min-width: 0; overflow: hidden;
}
/* Out of the flow, in the middle of the frame: the stage centres one
 * child and the page IS that child, so a line that took part in the
 * layout would push the certificate off centre for the fifth of a
 * second it is up. */
.strikes-papers-wait {
  position: absolute; inset: 0; margin: 0; display: flex;
  align-items: center; justify-content: center; pointer-events: none;
  font-size: 13.5px; color: var(--muted);
}
.strikes-papers-wait[hidden] { display: none; }
/* A grabbing hand over a page that cannot move is a lie, so it only
   appears once the page is bigger than the frame. */
.strikes-papers-movable .strikes-papers-page { cursor: grab; }
.strikes-papers-moving .strikes-papers-page { cursor: grabbing; }
/* The join candidate, previewed in the spread: dashed and a shade
   lighter, so "about to be joined" cannot be mistaken for "already
   part of this certificate". */
/* THE CANDIDATE IN THE SPREAD. The first draft drew it with a dashed
 * outline - marching ants, "design z lat 80tych" (the owner, 2 Sep
 * 2026). Now it is marked the way the filmstrip below marks the same
 * choice: a solid accent ring, held off the paper by a white gap so it
 * never cuts into the scan, rounded like every card here, and lifted a
 * little - the one sheet on the table that is still being decided.
 * Two classes, because .strikes-papers-page sets its own box-shadow
 * later in this file and would win over a single class. */
.strikes-papers-page.strikes-papers-ghost {
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--papers-ghost-ring), 0 0 0 5px var(--accent),
    0 14px 30px var(--papers-ghost-glow);
}
.strikes-papers-page {
  display: block; max-width: 100%; max-height: 100%;
  object-fit: contain; transform-origin: center;
  background: var(--panel); box-shadow: 0 2px 14px var(--shadow-papers-page);
  /* No transition: the slider has to track a thumb, and a tenth of a
     second of catching up feels like a stutter. */
  transition: none; user-select: none;
}
/* What can happen to this one, top right of the picture. */
.strikes-papers-acts {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.strikes-papers-count {
  font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
/* Minus, a slider, plus, and the percentage - the controls anybody
   already has in Word. The number says what the PERSON asked for, so
   Fit is 100% whatever size the window happens to be. */
.strikes-papers-zoom {
  position: absolute; right: 14px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  /* A PILL, BECAUSE AT 244% THE PAGE IS UNDERNEATH IT. These controls
     sat straight on top of whatever the certificate happened to be
     showing there - a logo, a signature - and the slider disappeared
     into it. */
  padding: 4px 8px; border-radius: 999px;
  background: var(--papers-veil-zoom);
  box-shadow: 0 1px 6px var(--shadow-papers-zoom);
}
.strikes-papers-turn {
  font: inherit; font-size: 13.5px; line-height: 1; cursor: pointer;
  min-width: 26px; padding: 4px 6px; color: var(--strikes-ink);
  background: transparent; border: 0; border-radius: 8px;
}
.strikes-papers-turn:hover { background: var(--papers-veil-hover); }
.strikes-papers-slider { width: 128px; accent-color: var(--accent); }
.strikes-papers-level {
  font-size: 13.5px; color: var(--strikes-ink); min-width: 46px; text-align: right;
  font-variant-numeric: tabular-nums;
}
/* The one before and the one after, on the edges of the picture where
   the hand already is. */
.strikes-papers-step {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  font: inherit; font-size: 30px; line-height: 1; cursor: pointer;
  padding: 6px 12px; color: var(--strikes-ink-quiet);
  background: transparent; border: 0;
}
.strikes-papers-step:hover { color: var(--strikes-ink-strong); }
.strikes-papers-back { left: 2px; }
.strikes-papers-on { right: 2px; }
.strikes-papers-nopaper {
  margin: 0; font-size: 13.5px; color: var(--amber-ink); text-align: center;
}
/* Its name and its date, side by side under the picture. */
.strikes-papers-fields {
  display: grid; gap: 12px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.strikes-papers-field { display: grid; gap: 4px; align-content: start; }
.strikes-papers-field > span {
  font-size: 12.5px; color: var(--muted);
}
.strikes-papers-fields input {
  font: inherit; font-size: 13.5px; padding: 9px 12px; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
}
.strikes-papers-fields input:disabled { background: var(--papers-hover-bg); }
.strikes-papers-never {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--muted);
}
.strikes-papers-never input { padding: 0; }
/* What has been taken off, and one press to have it back. Remove is one
   press and nothing here is written until Save, so undoing it must be
   one press too. */
.strikes-papers-off {
  margin: 0; font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.strikes-papers-undo {
  font: inherit; font-size: 12.5px; padding: 5px 12px; cursor: pointer;
  color: var(--strikes-ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px;
}
.strikes-papers-undo:hover { background: var(--papers-hover-bg); }
@media (max-width: 700px) {
  .strikes-papers-fields { grid-template-columns: minmax(0, 1fr); }
  .strikes-papers-slider { width: 84px; }
}
.strikes-papers-move, .strikes-papers-remove, .strikes-papers-undo {
  font: inherit; font-size: 12.5px; padding: 5px 12px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--strikes-ink);
}
.strikes-papers-remove { color: var(--red-ink); border-color: var(--red-line-remove); }
/* Replace is the commonest thing that happens to a certificate - the man
   sits the course again - so it sits beside Remove and looks ordinary,
   not dangerous. */
.strikes-papers-swap {
  font: inherit; font-size: 12.5px; padding: 5px 12px; cursor: pointer;
  color: var(--strikes-ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px;
}
.strikes-papers-swap:hover { background: var(--papers-hover-bg); }
/* Join and Split are the same weight as Replace - ordinary things that
   happen to a certificate, not warnings. Split only exists on a
   certificate that HAS been joined, so the two are never both offered
   for the same reason. */
.strikes-papers-join, .strikes-papers-split {
  font: inherit; font-size: 12.5px; padding: 5px 12px; cursor: pointer;
  color: var(--strikes-ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px;
}
.strikes-papers-join:hover, .strikes-papers-split:hover {
  background: var(--papers-hover-bg);
}
/* ---- SEVERAL SCANS OF ONE CERTIFICATE, SIDE BY SIDE ------------------
   The front and back of a card, read together rather than one at a time.
   The row is the thing that zooms, turns and drags, so the transform
   lives here and each scan inside it simply takes its share of the
   width: a card gets half the frame and its own height, and the shadow
   under each one keeps the two readable as two sheets rather than one
   wide picture. */
.strikes-papers-spread {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; width: 100%; height: 100%;
  transform-origin: center; transition: none; user-select: none;
}
/* One scan behaves exactly as it did before this existed: no gap to
   collapse, nothing to share the frame with. */
.strikes-papers-spread[data-pages="1"] { gap: 0; }
.strikes-papers-spread .strikes-papers-page { min-width: 0; }
.strikes-papers-undo { margin-left: auto; }
/* ---- WHICH ONE IS IT BEING JOINED TO --------------------------------
   Under the picture, beside the name and date it is about to share -
   the place a person is already looking when they decide about this
   certificate. */
.strikes-papers-joining {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; margin: 10px 0 0;
  background: var(--papers-hover-bg); border: 1px solid var(--line); border-radius: 12px;
  font-size: 13.5px; color: var(--strikes-ink);
}
.strikes-papers-pick {
  font: inherit; font-size: 13.5px; padding: 5px 8px; min-width: 0;
  flex: 1 1 160px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--ink);
}
/* Every candidate, small and clickable, on its own row under the
   picker. The one in the dashed frame wears the green edge; clicking
   another moves the same choice the select and the arrows move. */
.strikes-papers-picks {
  flex: 1 1 100%; display: flex; gap: 8px; overflow-x: auto;
  padding: 2px; }
.strikes-papers-thumb {
  flex: 0 0 auto; padding: 0; cursor: pointer; background: var(--panel);
  border: 2px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.strikes-papers-thumb[aria-pressed="true"] {
  border-color: var(--accent); }
.strikes-papers-thumb img { display: block; height: 64px; width: auto;
  max-width: 96px; object-fit: cover; }
.strikes-papers-thumb-said {
  font: inherit; font-size: 12.5px; color: var(--muted);
  padding: 6px; max-width: 96px; min-height: 52px;
  display: flex; align-items: center; text-align: center; }
.strikes-papers-join-go, .strikes-papers-join-no {
  font: inherit; font-size: 12.5px; padding: 5px 12px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--strikes-ink);
}
.strikes-papers-join-go {
  background: var(--accent); border-color: transparent;
  color: var(--accent-ink);
}
/* ---- ADDING ONE TO THE MAN WHOSE PAGE THIS IS ------------------------
   The main way certificates get onto a board, so it is not tucked under
   a fold: it sits between his papers and the Save button, where somebody
   who has just looked at what he holds is already looking. It wears
   .kasq-drop - the same block as RAMS, COSHH, HAVS and kit check - so it
   is a thing the office has already learned once. Only what is different
   about it is here: it is shorter, because it is inside a dialog that
   also has to show his certificates. */
.strikes-papers-add { padding: 20px 18px; }
.strikes-papers-add .rams-drop-note { max-width: 52ch; }
/* Nothing inside the block may swallow the drop or the click: the label
   IS the target, and a child element taking the pointer is how a drop
   zone silently stops working in one corner of itself. */
.strikes-papers-add > *:not(.strikes-papers-adding) { pointer-events: none; }
/* What just happened, in one quiet line under the fields rather than in
   a dashed box over the certificate. */
.strikes-papers-adding {
  margin: 0; font-size: 12.5px; line-height: 1.5;
  color: var(--muted); text-align: center;
}
.strikes-papers-adding[hidden] { display: none; }
/* The way back to the block for adding more, beside Save and Close. */
/* THE SECONDARY PILL ON A CARD - one spec for every quiet action that
   sits beside a green save: "Add more", the certificate sheet's
   "Close", and the photo viewer's carded "Close" (below) match it.
   The owner caught the drift on his phone, 2 Sep 2026: two Closes,
   two shapes, one product. */
.strikes-papers-more, .strikes-sheet-close {
  font: inherit; font-size: 13.5px; padding: 10px 20px; cursor: pointer;
  color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
}
.strikes-papers-more:hover, .strikes-sheet-close:hover {
  border-color: var(--accent); color: var(--accent-text); background: var(--panel);
}
.strikes-papers-more[hidden] { display: none; }
.strikes-papers-add[hidden] { display: none; }
/* A man with nothing on him still gets the button - he is the one who
   needs it most, and on a new board he is everybody. */
.strikes-tickets-empty { margin-top: 4px; }
.strikes-papers-foot {
  display: flex; gap: 10px; align-items: center; justify-content: center;
}
.strikes-papers-save {
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 10px 20px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  cursor: pointer;
}
.strikes-papers-save:disabled { opacity: 0.5; cursor: default; }
.strikes-papers-trouble {
  margin: 0; color: var(--red-ink);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
/* The way out sits in the message that names the problem, not somewhere
   else on the screen. */
.strikes-papers-trouble .strikes-papers-join-go { flex: 0 0 auto; }
.strikes-papers-trouble[hidden] { display: none; }
@media (min-width: 620px) {
  .strikes-papers-fields { grid-template-columns: 1fr 160px; }
}

/* How much of this the board can show you the paper for. */
.strikes-ready-held {
  margin: 0; font-size: 12.5px; line-height: 1.5;
  color: var(--muted);
}

.strikes-also-said {
  margin: 0; font-size: 12.5px; line-height: 1.5;
  color: var(--muted);
}
.strikes-also-said[hidden] { display: none; }
@keyframes strikes-reading-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .strikes-reading-fill { transition: none; }
}
.strikes-papers > button[type="submit"] {
  justify-self: start; font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
}
.strikes-papers > button[type="submit"][hidden] { display: none; }
.strikes-papers > button[type="submit"]:disabled {
  opacity: 0.5; cursor: default;
}
@media (max-width: 700px) {
  .strikes-found-file { flex-basis: 100%; }
}

/* The product's own asking, in place of the browser's grey slab. */
.strikes-dialog-field {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font: inherit;
  padding: 10px 13px; outline: none; margin: 0 0 18px;
}
.strikes-dialog-field:focus { border-color: var(--accent); }
.strikes-dialog-field.wants { border-color: var(--red-ink); }
button.primary.strikes-danger { background: var(--red-fill); }

/* And its own saying: a line that fades, not a second box to dismiss. */
.strikes-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 60; max-width: min(520px, calc(100vw - 32px));
  background: var(--toast-bg); color: var(--accent-ink);
  font-size: 13.5px; padding: 11px 18px; border-radius: 999px;
  box-shadow: var(--shadow);
  animation: strikes-toast-in 160ms ease-out;
}
.strikes-toast.bad { background: var(--red-fill); }
@keyframes strikes-toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.strikes-print { font: inherit; font-size: 13.5px; margin: 0;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); cursor: pointer; }
.strikes-print:hover { border-color: var(--accent); color: var(--accent-text); }
.strikes-logo-said { margin: 6px 0 0; max-width: 44em; }
.strikes-logo-go {
  font: inherit; font-size: 13.5px; padding: 0; cursor: pointer;
  background: none; border: none; color: var(--accent-text);
  text-decoration: underline;
}
.strikes-pick { display: block; font-size: 13.5px; color: var(--muted); }
.strikes-pick span { display: block; margin-bottom: 4px; }
.strikes-pick input[type="file"] { font-size: 13.5px; color: var(--muted); }
.strikes-pick input[type="file"]::file-selector-button {
  font: inherit; font-size: 13.5px; margin-right: 8px; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--ink); cursor: pointer;
}
.strikes-pick input[type="file"]::file-selector-button:hover {
  border-color: var(--accent);
}
.strikes-off-btn {
  font: inherit; font-size: 13.5px; line-height: 1; cursor: pointer;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--muted);
  grid-column: 4; grid-row: 1 / 3;
}
.strikes-off-btn:hover { border-color: var(--red-ink); color: var(--red-ink); }
.strikes-off-btn:disabled { opacity: 0.5; cursor: default; }

/* ---- The phone's action sheet --------------------------------------- */

/* ---- A SHEET ON A PHONE, A DIALOG ON A DESK -------------------------
   This was written as a bottom sheet, and on a phone that is right: it
   comes up under the thumb and the buttons land where the thumb already
   is. On a laptop the same rule pinned it to the bottom EDGE of the
   window, so a tall one - a man's certificates, with the block for
   adding more under them - ran off the bottom of the screen with its
   last row cut in half. The owner saw exactly that and said the obvious
   thing: it should be in the middle. So it is, on anything that is not
   a phone, and it is never taller than the room it has. */
.strikes-sheet-back {
  position: fixed; inset: 0; z-index: 60;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.strikes-sheet {
  width: min(520px, 100%);
  /* NEVER TALLER THAN THE WINDOW, whatever is inside it. A dialog that
     is cut off by the bottom of the screen has no Save button. */
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
  padding: 16px;
  display: grid; gap: 8px;
  animation: strikes-sheet-in 180ms ease-out;
}
/* ---- AND IT SCROLLS INSIDE ITSELF ----------------------------------
   The list of certificates moves; the man's name, the block for adding
   more and Save stay where they were put.

   THIS WAS BROKEN AND THE COMMENT THAT USED TO SIT HERE WAS HALF-RIGHT
   ABOUT WHY. It said the sheet's max-height had to be repeated after
   .strikes-sheet or it would be overruled - true - and then repeated
   only the height, leaving `display: flex; flex-direction: column` up
   there to be beaten by .strikes-sheet's `display: grid`. A grid row
   sizes to its content, so the list never shrank, the sheet grew past
   its own ceiling, and overflow:hidden cut the bottom off: a man with
   seven certificates showed three and no way to reach the rest. The
   whole rule lives here now, where it wins. */
.strikes-papers-sheet {
  display: flex; flex-direction: column;
  overflow: hidden; max-height: min(86vh, 900px);
}
/* The list is the only part that gives: min-height:0 is what lets a flex
   child shrink below its content and scroll instead of pushing. */
/* THE ROWS SIZE THEMSELVES. A 1fr row here is what let the frame be
   squeezed under the picture inside it; the frame has its own height
   now, and if a short window cannot hold everything, this scrolls
   rather than crushing anything. */
.strikes-papers-body {
  flex: 1 1 auto; min-height: 0; display: grid; gap: 12px;
  align-content: start; overflow-y: auto;
}
.strikes-papers-sheet > .strikes-sheet-head,
.strikes-papers-sheet > .strikes-papers-add,
.strikes-papers-sheet > .strikes-papers-foot,
.strikes-papers-sheet > .strikes-papers-trouble { flex: 0 0 auto; }
@media (min-width: 701px) {
  /* A certificate is a page. 520 pixels is a column for a form and too
     narrow for looking at one. */
  .strikes-papers-sheet { width: min(720px, 100%); }
}
@media (max-width: 700px) {
  /* Back to a sheet under the thumb. */
  .strikes-sheet-back { align-items: flex-end; padding: 0; }
  .strikes-sheet {
    max-height: 88vh; border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  }
}
@keyframes strikes-sheet-in {
  from { transform: translateY(16px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.strikes-sheet-head {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 4px 6px 10px; border-bottom: 1px solid var(--line);
}
.strikes-sheet-head strong { font-size: 16px; }
/* Full-width rows: a thumb finds them without aiming. */
.strikes-sheet-row {
  font: inherit; font-size: 15px; text-align: left; cursor: pointer;
  padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); color: var(--ink);
}
.strikes-sheet-row.danger { color: var(--red-ink); border-color: var(--red-line-danger-row); }
.strikes-sheet-row.quiet { color: var(--muted); text-align: center; }

/* ---- On a phone ------------------------------------------------------ */

@media (max-width: 700px) {
  /* One target instead of two small ones beside a wrapping name. The
     long press on the card opens the same sheet. */
  .strikes-person-head { grid-template-columns: minmax(0, 1fr) auto auto; }
  .strikes-mark-btn, .strikes-off-btn { display: none; }
  .strikes-more-btn {
    display: block; grid-column: 3; grid-row: 1 / 3;
    font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
    min-width: 44px; min-height: 44px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 14px;
    background: var(--panel); color: var(--muted);
  }
  .strikes-person { padding: 12px 12px 14px; }
  .strikes-person-head h3 { font-size: 16px; }

  /* The strike form stacks: three columns on a 390px screen made the
     words box two centimetres wide. */
  .strikes-mark-form { grid-template-columns: 1fr; gap: 8px; }
  .strikes-mark-form select, .strikes-mark-form button,
  #strikes-view .strikes-mark-form textarea {
    width: 100%; padding: 12px 14px;
    /* 16px or iOS zooms the whole page in the moment it is tapped. */
    font-size: 16px;
  }
  #strikes-view .strikes-mark-form textarea { min-height: 92px; }
  .strikes-mark-form button { border-radius: 999px; }

  /* The chips scroll sideways rather than wrapping into two rows that
     push the first name off the screen. */
  .strikes-chips {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px;
    scrollbar-width: none;
    /* The last chip fades at the edge rather than being sliced, so the
       row reads as "there is more this way" instead of "this is cut". */
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
    mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .strikes-chips::-webkit-scrollbar { display: none; }
  .strikes-chip-btn { flex: 0 0 auto; padding: 9px 14px; font-size: 13.5px; }
  .strikes-search { padding: 12px 14px; font-size: 16px; }

  /* The board's own bar stacks, and Add people gets a thumb-sized row
     of its own rather than a pill squeezed beside a wrapping name. */
  .strikes-bar { gap: 4px 10px; }
  .strikes-bar h2 { font-size: 20px; }
  .strikes-add-toggle { margin-left: 0; width: 100%; text-align: center;
    padding: 11px 14px; margin-top: 6px; font-size: 15px; }
  .strikes-drop { width: 100%; text-align: center; padding: 11px 14px; }

  /* Four boards stacked one per row cost four rows of a phone screen
     before the work starts. They scroll sideways, like the level chips,
     with the last one fading at the edge so the row reads as "there is
     more this way" rather than "this is cut". */
  .strikes-boards {
    gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
    mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .strikes-boards::-webkit-scrollbar { display: none; }
  .strikes-board-pick { flex: 0 0 auto; }

  /* One column on a phone: the code, then what it says. */
  .strikes-wall-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .strikes-wall-buttons { width: 100%; }
  .strikes-print, .strikes-rotate { flex: 1 1 auto; text-align: center;
    padding: 11px 14px; }

  /* Above the phone browser's own bar, not under it. */
  .strikes-toast { bottom: calc(20px + env(safe-area-inset-bottom));
    left: 12px; right: 12px; transform: none; max-width: none;
    text-align: center; }
  @keyframes strikes-toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .strikes-history { gap: 10px; }
  .strikes-withdraw { padding: 8px 14px; font-size: 13.5px; }
  .strikes-wall { max-width: none; }
  .strikes-print, .strikes-rotate { width: 100%; margin-left: 0;
    padding: 10px 14px; }
}

/* ---- The curtain over a refresh ------------------------------------- */
/* <main> IS the advisor, so it is what a reload inside a tool painted
   for a moment before the address was read (the owner's phone, 29 August
   2026). open-first.js marks the document before the first paint when
   the address names a tool; app.mjs lifts the mark the moment it knows
   what to open, and a timer in that file lifts it whatever happens - a
   page held shut by a failed boot would be a far worse fault than the
   flash this removes. Held with visibility, not display: the layout is
   already correct underneath, so nothing jumps when it lifts. */
.opening-tool main,
.opening-tool #tool-title,
.opening-tool #tool-sub { visibility: hidden; }

/* ---- LOOKING AT ONE CERTIFICATE --------------------------------------
   Over the sheet rather than in another tab, with the controls anybody
   already has in Word or Acrobat: minus, a percentage, plus, Fit. The
   frame never moves - growing the box would push the toolbar off the
   screen at the moment somebody is reaching for it - so the PAGE is what
   scales, turns and drags. */
.strikes-look-back {
  position: fixed; inset: 0; z-index: 70;
  background: var(--scrim-viewer);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
}
.strikes-look-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; color: var(--accent-ink);
}
.strikes-look-name {
  font-size: 13.5px; font-weight: 600; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.strikes-look-tools {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
  flex-wrap: wrap;
}
.strikes-look-tool {
  font: inherit; font-size: 13.5px; line-height: 1; cursor: pointer;
  min-width: 38px; padding: 8px 12px; text-decoration: none;
  color: var(--strikes-ink-strong); background: var(--panel); border: 0; border-radius: 999px;
}
.strikes-look-tool:hover { background: var(--green-bg-viewer); }
.strikes-look-level {
  font-size: 13.5px; color: var(--accent-ink); min-width: 52px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.strikes-look-shut {
  font: inherit; font-size: 13.5px; line-height: 1; cursor: pointer;
  padding: 8px 14px; color: var(--accent-ink); background: transparent;
  border: 1px solid var(--viewer-line-shut); border-radius: 999px;
}
.strikes-look-shut:hover { background: var(--viewer-shut-hover); }
/* The frame. overflow:hidden is what makes a magnified page stay inside
   its own window instead of covering the toolbar. */
.strikes-look-stage {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  /* relative because the certificate's zoom pill now floats inside
     this stage too - same classes, same corner. */
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--papers-stage-bg); border-radius: 14px;
}
.strikes-look-page {
  display: block; max-width: 100%; max-height: 100%;
  object-fit: contain; transform-origin: center;
  /* No transition: it has to track a drag, and a tenth of a second of
     catching up feels like a stutter. */
  transition: none; user-select: none; -webkit-user-drag: none;
}
/* A grabbing hand over a page that cannot move is a lie, so the cursor
   only appears once there is something to drag. */
.strikes-look-movable { cursor: grab; }
.strikes-look-moving { cursor: grabbing; }
.strikes-look-gone {
  margin: 0; padding: 24px; font-size: 13.5px; color: var(--strikes-ink);
  text-align: center; max-width: 44ch;
}
/* One column for both skins; on the dark skin it is invisible - the
   same stretch the curtain always had. */
.strikes-look-frame {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1 1 auto; min-height: 0; min-width: 0;
}

/* THE CARD SKIN - the strike photograph opens the way a certificate's
   sheet does: a white centred card over the dimmed board, the same
   light stage, the controls as bordered pills. The state colours in
   the caption's chip are untouched. */
.strikes-look-carded { display: grid; place-items: center; }
.strikes-look-carded .strikes-look-frame {
  flex: 0 1 auto; width: min(1000px, 100%); height: min(840px, 100%);
  background: var(--panel); border-radius: 18px;
  box-shadow: 0 18px 60px var(--shadow-viewer-card);
  padding: 14px 18px 16px;
}
.strikes-look-carded .strikes-look-bar,
.strikes-look-carded .strikes-look-level { color: var(--ink); }
.strikes-look-carded .strikes-look-tool {
  border: 1px solid var(--line);
}
.strikes-look-carded .strikes-look-tool:hover {
  border-color: var(--accent); color: var(--accent-text);
  background: var(--panel);
}
.strikes-look-carded .strikes-look-shut {
  color: var(--ink); border-color: var(--line);
}
.strikes-look-carded .strikes-look-shut:hover {
  border-color: var(--accent); color: var(--accent-text);
  background: var(--panel);
}
.strikes-look-carded .strikes-look-caption {
  color: var(--ink); width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 2px; padding: 10px 2px 0;
}
.strikes-look-carded .strikes-look-when,
.strikes-look-carded .strikes-look-withdrawn {
  color: var(--muted);
}
@media (max-width: 700px) {
  .strikes-look-tools { margin-left: 0; }
  .strikes-look-name { flex: 1 1 100%; }
  /* On a phone the card would be a smaller copy of the screen it sits
     on; the curtain does the job better. */
  .strikes-look-carded { display: flex; }
  .strikes-look-carded .strikes-look-frame {
    flex: 1 1 auto; width: auto; height: auto; padding: 10px;
    border-radius: 14px;
  }
}

/* ---- TAKING THE FOLDER OUT ---------------------------------------------
   Quiet, and at the far end of the chips it obeys. It is pressed once a
   month; a board is opened every day to write a strike, and the thing
   the eye lands on first should be the crew, not the export. */
.strikes-take {
  margin-left: auto; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: inherit; font: inherit;
  font-size: 13.5px; padding: 6px 14px; cursor: pointer;
}
.strikes-take:hover { border-color: var(--accent); }
.strikes-take:focus { outline: none; }
.strikes-take:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 2px;
}
/* The two questions the download box asks. The sentence under each is
   not decoration: "Include the scans" without "214 files, 68 MB" is a
   question nobody on a site connection can answer. */
.strikes-take-choices { display: grid; gap: 12px; margin: 4px 0 18px; }
.strikes-take-choice {
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  align-items: start; cursor: pointer;
}
.strikes-take-choice input { margin: 3px 0 0; }
.strikes-take-choice:has(input:disabled) { cursor: default; opacity: .5; }
.strikes-take-words { display: grid; gap: 2px; }
.strikes-take-words strong { font-size: 15px; font-weight: 600; }
.strikes-take-words small { color: var(--muted); font-size: 13.5px; }
/* The rows in the account panel break anywhere, because an email address
   has no spaces to break at. A file name has plenty, and breaking inside
   its date instead of at one of them is how "2026-08-" ends up sitting
   on a line by itself. */
.settings-rows dd.strikes-take-name {
  overflow-wrap: break-word; word-break: normal;
}
/* THE DOWNLOAD BOX IS WIDER THAN A NOTICE, and only it. A notice is two
   sentences; this one carries a file name, three rows and two choices
   with a sentence under each. At 460 px the name broke through the
   middle of its own date - "2026-08-" on one line, "31.xlsx" on the
   next - which reads as two half-answers to one question. */
.modal-card:has(.strikes-take-choices) { max-width: 560px; }

/* ---- THE QUIET SWEEP (step 6 of the lightness walk, launch morning) ----
   The owner's question that forced the rule into one sentence: "why do
   some buttons have boxes and others not?" The rule, held by a test:
   (1) CHOOSING and TYPING wear a border - chips, tabs, categories,
   fields, file pickers, drop zones - because an unchosen option must
   look pressable and a boundary of typing must be visible without a
   hover. (2) An ACTION on calm ground is text on air. (3) An action
   FLOATING OVER a photograph or preview keeps its white pill - the
   ground under it is unpredictable. (4) The primary is the one filled
   green. (5) A chip alone on the open canvas (the advisor's example
   questions) keeps a hairline, or it reads as prose.
   This block converts every remaining plain-ground ACTION in the deep
   tools; it stands late in the file so it wins the cascade over each
   button's original dressing. */
.havs-remove, .havs-mode-add, #havs-add, .havs-doc-btn,
.signs-turn, .signs-board-remove,
#signs-board-add, #signs-poster-add, #signs-poster-add-blank,
.signs-cell-add, #noise-add, .answer-linked-btn, #take5-add-job,
.down-open, .cc-copy, .find-ask-open,
.strikes-withdraw, .strikes-rotate, .strikes-print, .strikes-off-btn,
.strikes-more-btn, .strikes-tickets-papers,
.strikes-papers-more, .strikes-sheet-close {
  border-color: transparent;
  background: transparent;
  font-weight: 500;
}
.havs-remove:hover:not(:disabled), .havs-mode-add:hover:not(:disabled),
#havs-add:hover:not(:disabled), .havs-doc-btn:hover:not(:disabled),
.signs-turn:hover:not(:disabled), .signs-board-remove:hover:not(:disabled),
#signs-board-add:hover:not(:disabled), #signs-poster-add:hover:not(:disabled),
#signs-poster-add-blank:hover:not(:disabled),
.signs-cell-add:hover:not(:disabled), #noise-add:hover:not(:disabled),
.answer-linked-btn:hover:not(:disabled), #take5-add-job:hover:not(:disabled),
.down-open:hover:not(:disabled), .cc-copy:hover:not(:disabled),
.find-ask-open:hover:not(:disabled),
.strikes-withdraw:hover:not(:disabled), .strikes-rotate:hover:not(:disabled),
.strikes-print:hover:not(:disabled), .strikes-off-btn:hover:not(:disabled),
.strikes-more-btn:hover:not(:disabled),
.strikes-tickets-papers:hover:not(:disabled),
.strikes-papers-more:hover:not(:disabled),
.strikes-sheet-close:hover:not(:disabled) {
  border-color: transparent;
  background: var(--grey-bg);
  color: var(--ink);
}

/* ---- THE SIDEBAR WEARS ITS FIRST WHITE ----------------------------
   Launch day tried two anchors here - ink (step 7), then the
   between-surface (step 8) - and the owner, seeing both live, chose
   the original: white panel, hairline edge, the chosen tool in the
   quiet picked tint. The record stays so the next hand knows both
   roads were walked; the base rules near the top of this file are
   the whole of the sidebar's dress. */

/* THE FIRST SIGN-IN'S HELLO - the manifesto over everything, once. Own
   sheet of the office's paper, not a dark modal: this is a letter, not
   an interruption. The pills wear the site pages' language-pill look,
   because this screen is the one place the office speaks all five.
   Set centred on the screen and entirely in the serif the office
   otherwise keeps for headings (owner's call, 3 September 2026): the
   one screen where the product speaks as people gets the one
   typographic voice no tool screen has. Flex + margin:auto centres
   the sheet vertically yet still lets it scroll from the top on a
   short phone, where place-items:center would clip the first lines.
   The shut button wears the site's own quiet close (settings-close),
   not a bordered pill - one product, one way to say close. */
.hello {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg); overflow-y: auto;
  display: flex;
}
.hello[hidden] { display: none; }
.hello-inner {
  max-width: 620px; margin: auto; padding: 72px 24px 80px;
  text-align: center;
}
.hello-shut {
  position: fixed; top: 14px; right: 16px; z-index: 101;
  width: 44px; height: 44px; font-size: 24px; line-height: 1;
  border: none; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.hello-shut:hover, .hello-shut:focus-visible { background: var(--panel); color: var(--ink); }
.hello-shut:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.hello-lang {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-bottom: 34px;
}
.hello-pill {
  font: inherit; font-size: 13.5px; min-height: 40px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--ink); cursor: pointer;
}
.hello-pill.on {
  border-color: var(--accent); background: var(--picked); color: var(--ink);
  font-weight: 600;
}
.hello h1 {
  font-family: var(--serif); font-weight: 500; font-size: 30px;
  margin: 0 0 22px;
}
.hello-body p {
  font-family: var(--serif); font-size: 17px; line-height: 1.7;
  margin: 0 0 17px;
  /* Centred rag both sides - pretty keeps the last line from standing
     with a single orphaned word; browsers without it change nothing. */
  text-wrap: pretty;
}
.hello-sign { font-family: var(--serif); font-size: 17px; color: var(--muted); margin: 26px 0 0; }
@media (max-width: 700px) {
  .hello-inner { padding: 64px 18px 60px; }
  .hello h1 { font-size: 25px; }
}

/* MY RAMS — the library screen.
   Borrows the cross-check card family rather than inventing a second one:
   same panel, same line, same radius, same two button tiers. The only new
   thing here is the shelf, which is a task on a site with every version he
   gave us under it, newest arrival first. */
.ramslib-select, .ramslib-field {
  display: block; width: 100%; max-width: 520px; box-sizing: border-box;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; margin: 0 0 14px;
}
.ramslib-select:focus-visible, .ramslib-field:focus-visible {
  outline: 3px solid var(--focus-ring); outline-offset: 2px;
}
.ramslib-shelf {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  padding: 16px 18px; margin: 0 0 14px;
}
.ramslib-task { margin: 0 0 6px; font-size: 17px; }
/* One version. The head carries HIS label and HIS answer about which is
   current — never a verdict of ours, and never a strike-through on a
   document because a higher number exists somewhere. */
.ramslib-doc {
  border-top: 1px solid var(--line-subtle); padding: 14px 0 2px;
}
.ramslib-doc:first-of-type { border-top: 0; }
/* THE HEADLINE WRAPS, AND IT MUST.
   When a document carries no code and no revision, its own filename is the
   only thing that names it — and a RAMS filename is
   "QB020-ELS-00034_1.0_EDRA_Cable_Pulling_Termination_and_Testing.docx",
   one unbreakable word at 390px. Without this it painted 186px past the
   card and #ramslib-view's overflow-x: hidden SWALLOWED it: the page did
   not scroll, no geometry check complained, and the name was simply cut.
   Hidden overflow does not fix an overflow; it hides the evidence. */
.ramslib-doc-head {
  margin: 0 0 4px; font-size: 16px; font-weight: 600;
  overflow-wrap: anywhere;
}
/* THE CARD'S HIERARCHY, IN THREE STEPS THE EYE CAN ACTUALLY SEE. It used
   to be 17px black, 16px black bold, 13.5px black — three weights inside
   three and a half pixels, which is one weight (the owner, 18 September
   2026). The job keeps the heading; the document drops to grey; the file
   name drops again and is cut off rather than allowed to wrap into a
   paragraph of its own. */
.ramslib-card h3 { margin-bottom: 4px; }
.ramslib-meta {
  margin: 0 0 4px; font-size: 15px; color: var(--muted);
  overflow-wrap: anywhere;
}
.ramslib-file {
  margin: 0 0 8px; font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ramslib-keep, .ramslib-own {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  padding: 18px 20px; margin: 18px 0;
}
.ramslib-keep h3 { margin: 0 0 8px; font-size: 17px; }
/* KEPT. The form is gone and this stands in its place, so the screen
   itself is the acknowledgement rather than a line of small print under a
   button that did not move. The accent edge is the only thing that marks
   it as an outcome; everything else is the panel it replaced. */
.cc-kept { border-left: 3px solid var(--accent); padding-left: 14px; }
.cc-kept h3 { margin: 0 0 6px; font-size: 17px; }
.cc-kept-line { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
/* A phone in a container office. Nothing here may run off the side: the
   buttons wrap, the filename breaks, the fields fill the width. */
@media (max-width: 560px) {
  .ramslib-shelf, .ramslib-keep, .ramslib-own { padding: 14px 15px; }
  .ramslib-select, .ramslib-field { max-width: 100%; }
}
/* The site's own footer: what taking it off the list would take with it,
   said before the press, and confirmed by a second press on the page
   rather than a browser dialog. */
.ramslib-foot { margin: 6px 0 0; }
/* What he said about currency: one quiet line under the document's own
   name, never the headline. */
.ramslib-aside { margin: 0 0 4px; font-size: 13.5px; color: var(--accent-text); }


/* ---- BUILD A RAMS ------------------------------------------------------
   Five screens, one at a time, in the same vocabulary as the check
   screens (tbt-label, cc-stage-no, cc-docs, primary, link-btn) and the
   same pill for a tap (aria-pressed, like .drops-unit-btn). Nothing new
   to learn on a screen that is meant to be the simplest on the site. */
#build-view textarea, #build-view input[type="text"], #build-view select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font: inherit;
  padding: 10px 13px; outline: none; box-sizing: border-box;
}
#build-view textarea:focus, #build-view input:focus, #build-view select:focus { border-color: var(--accent); }
#build-view textarea { resize: vertical; min-height: 96px; }
.bd-screen .primary { margin-top: 16px; }
.bd-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.bd-row .primary { margin-top: 0; }
/* The flags: name, the tap, the words that decided it. On a phone the
   quote wraps under the name; the tap stays on the name's line. */
/* MY TOOLBOX TALKS. The card is the RAMS library's card - same shape,
   same three lines - because they are the same thing to a reader: his own
   paper, on a shelf. Only the row of actions is its own. */
#tbtlib-list { display: grid; gap: 12px; }
.tbtlib-card .tbtlib-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.tbtlib-card .primary { margin-top: 0; }
/* Where a talk went, said on the sheet itself. */
/* The line wraps on a phone, and a button that has wrapped onto its own
   row needs the room above it or it reads as part of the sentence. */
.tbt-shelf { font-size: 13.5px; color: var(--muted); line-height: 2.1; }
/* The "Read it and decide" link on the shut line keeps the quiet tier: it
   goes somewhere, it does not save anything. */
.tbt-shelf .cc-linkish { font-size: 13.5px; }
.tbt-shelf.is-bad { color: var(--red-ink); font-weight: 600; }
/* A TALK NOBODY HAS SAVED SAYS SO IN INK, NOT IN FINE PRINT. The line was
   12.5px muted grey with an underlined grey link in it, sitting under a
   bordered "Close this talk" - so the press that LOSES the work looked
   more like a button than the press that keeps it (the owner, 19
   September 2026). Amber ink, because this is a state to notice and not a
   fault; red stays for a save that actually failed. */
.tbt-shelf.is-unsaved { color: var(--amber-ink); }
/* The save itself: a real button in the tier below Print. Not green -
   printing is what a toolbox talk is for, and two green buttons in one
   bar means neither of them is the one to press. */
.tbt-keep-btn {
  font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; margin: 0 2px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--panel); color: var(--ink);
  white-space: nowrap;
}
.tbt-keep-btn:hover { background: var(--grey-bg); border-color: var(--ink); }
.tbt-keep-btn:active { background: var(--pressed); }
.tbt-keep-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.bd-count { font-size: 12.5px; color: var(--muted); margin: -8px 0 14px; max-width: 440px; }
.bd-count.is-over { color: var(--red-ink); font-weight: 600; }
.bd-flags { list-style: none; margin: 8px 0 0; padding: 0; }
.bd-flag {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.bd-flag:first-child { border-top: 0; }
.bd-flag-name { font-weight: 600; font-size: 15px; }
.bd-flag.is-unknown .bd-flag-name { font-weight: 500; }
.bd-flag-quote { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.bd-flag-state {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 6px 14px; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.bd-flag.is-yes .bd-flag-state { border-color: var(--accent); background: var(--picked); }
.bd-flag.is-no .bd-flag-state { background: var(--grey-bg); }
.bd-flag.is-unknown .bd-flag-state { border-color: var(--amber-line); background: var(--amber-bg); color: var(--amber-ink); }
/* The questions, grouped under the flag they belong to. */
.bd-group { font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-text); margin: 22px 0 0; }
.bd-question .tbt-label { margin: 12px 0 6px; }
.bd-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bd-chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 500;
  padding: 8px 15px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bd-chip:hover { background: var(--grey-bg); }
.bd-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--picked); font-weight: 600; }
/* The crew: a checkbox, the name, the cards in one muted line. */
.bd-crew { list-style: none; margin: 10px 0 0; padding: 0; }
.bd-worker { border-top: 1px solid var(--line); padding: 8px 0; }
.bd-worker:first-child { border-top: 0; }
.bd-worker label { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; cursor: pointer; }
.bd-worker input { grid-row: 1 / span 2; }
.bd-worker-name { font-weight: 600; font-size: 15px; }
.bd-worker-cards { color: var(--muted); font-size: 12.5px; }
.bd-worker.is-expired .bd-worker-cards { color: var(--red-ink); }
.bd-worker.is-soon .bd-worker-cards { color: var(--amber-ink); }
/* The writing, watched: one line per stage, ticked when done. */
.bd-progress { margin: 12px 0 0; }
.bd-stage { margin: 4px 0; font-size: 13.5px; color: var(--muted); }
.bd-stage.is-done { color: var(--ink); }

/* Screen 3: the flags nobody could tell, asked once more. */
#build-unknowns { margin: 0 0 20px; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--grey-bg-build); }
#build-unknowns .bd-group { margin-top: 0; }
.bd-unknown .tbt-label { font-weight: 500; }
