/* EZIAR design tokens, System A (docs/ui/redesign-20261016/SYSTEM_A_SPEC.md section 1; Ryan approved the concept on
   16 Oct 2026). The only file under src/bs/ that holds colour values (scripts/lint-colours.mjs). Cool white canvas, ink
   text, the bright green for the one primary action, the deep green for Ready, orange only where something needs the
   accountant, violet for what the AI produced. Defined on :root for the shell and on the page roots. */
:root, .bs-app, .bs-dialog {
  /* Surfaces and text (1.1) */
  --bs-paper: #F3F4F6;
  --bs-sheet: #FFFFFF;
  --bs-subtle: #F7F8FA;
  --bs-tint: #EEF0F3;
  --bs-rule-soft: #EEF0F3;
  --bs-rule: #E6E8EC;
  --bs-rule-strong: #D5D9DF;
  /* The tray card (#142, Ryan 1 Nov 2026): the tray and its line around the white sheet. */
  --bs-tray: #F9FAFB;
  --bs-tray-line: #E3E6EA;
  --bs-ink: #0D1210;
  --bs-ink-2: #1F2523;
  --bs-muted: #6A7370;
  --bs-faint: #9AA29F;

  /* Brand and action (1.2) */
  --bs-primary: #22C55E;
  /* The chosen option (Ryan 31 Oct 2026): a light green tint and line, the control filled --bs-primary. */
  --bs-sel-tint: #EDFBF1;
  --bs-sel-line: #A9DDB8;
  --bs-primary-hover: #19B050;
  --bs-primary-ink: #06230F;
  --bs-link: #15803D;
  --bs-focus: #0D1210;

  /* States (1.3): strong for blocks and glyph tiles, text for words on white; a glyph on a block is white. */
  --bs-state-ready: #15803D;
  --bs-state-ready-text: #15803D;
  --bs-state-review: #F4611E;
  --bs-state-review-text: #C2410C;
  --bs-state-posted: #4B5450;
  --bs-state-posted-text: #3C4440;
  --bs-state-bad: #B42318;
  --bs-state-bad-text: #B42318;
  --bs-state-wait: #8A938F;
  --bs-state-wait-text: #6A7370;
  --bs-on-state: #FFFFFF;

  /* AI (1.4) */
  --bs-ai-1: #7C3AED;
  --bs-ai-2: #D946EF;
  --bs-ai-text: #6D28D9;
  --bs-ai-glow: rgba(139, 92, 246, .4);
  --bs-ai-on-1: #A78BFA;
  --bs-ai-on-2: #F0ABFC;
  /* The AI's band (round 2, Query centre S4 and S5): the wash and the line of a banner or block where the AI works. */
  --bs-ai-wash: #F6F1FF;
  --bs-ai-line: #E4D7FB;
  /* The AI button (Ryan 1 Nov 2026): every button that starts or asks the AI is filled with it. */
  --bs-ai-grad: linear-gradient(135deg, var(--bs-ai-1), var(--bs-ai-2));

  /* Hero, the dark block (1.5) */
  --bs-hero: #0E1512;
  --bs-hero-ink: #F5F7F6;
  --bs-hero-muted: #9AA7A1;
  --bs-hero-line: rgba(255, 255, 255, .1);
  --bs-hero-chip: rgba(255, 255, 255, .07);
  --bs-hero-attention: #FF7A45;
  --bs-hero-track: rgba(255, 255, 255, .16);

  /* Organisation tiles (1.6): oklch(var(--bs-tile-l) var(--bs-tile-c) var(--h)), white initials */
  --bs-tile-l: .38;
  --bs-tile-c: .07;
  --bs-tile-ink: #FFFFFF;

  /* Overlays and shadows (1.8, 2.14) */
  --bs-overlay: rgba(13, 18, 16, .5);
  /* --bs-overlay laid over --bs-paper, as one solid colour: the scrollbar's gutter while a dialog is open (dialog.css) lies
     outside the scrim, and Chromium paints only a background colour there. */
  --bs-overlay-on-paper: #808383;
  --bs-shadow-menu: 0 24px 48px -16px rgba(13, 18, 16, .35);
  --bs-shadow-pop: 0 32px 64px -20px rgba(13, 18, 16, .4);
  --bs-shadow-lift: 0 1px 2px rgba(13, 18, 16, .08);
  /* A document's page on its viewer (the entry review's original, the client page preview). */
  --bs-shadow-page: 0 1px 2px rgba(13, 18, 16, .1), 0 6px 20px rgba(13, 18, 16, .08);
  /* The capsule island (DESIGN_SYSTEM.md "Top bar: the capsule island", Ryan 21 Oct 2026): its line and lift, the wells inside it
     (the organisation, the nav track, Help, the bell, the person), their hover one step darker, a nav item's wash, the brand
     mark's and the current module's shadows. The accountant's work area has no ledge under the bar (Fable, #138); the faint
     ledge is the client portal's own, --bs-portal-ledge. */
  --bs-shadow-bar: inset 0 1px 0 #FFFFFF, 0 14px 34px -10px rgba(13, 18, 16, .32);
  --bs-bar-line: #DDE2EA;
  --bs-bar-well: #F3F5F8;
  --bs-bar-wellb: #DCE1E9;
  --bs-bar-wells: inset 0 1px 2px rgba(13, 18, 16, .04);
  --bs-bar-muted: #5C6562;
  --bs-bar-hover: #E9EDF3;
  --bs-bar-hoverb: #D0D6DF;
  --bs-bar-wash: rgba(13, 18, 16, .05);
  --bs-shadow-bar-mark: 0 2px 8px rgba(0, 0, 0, .18);
  --bs-shadow-bar-pill: 0 2px 7px rgba(0, 0, 0, .22);
  --bs-portal-ledge: inset 0 4px 10px -6px rgba(13, 18, 16, .06);
  --bs-shadow-bar-phone: 0 10px 24px -18px rgba(13, 18, 16, .3);

  /* The client pages keep their Broadsheet bar until their own spec (SYSTEM_A_SPEC.md 5, out of scope); the request
     draft's preview of them reads it here. The values of --cl-bar, --cl-bar-muted in src/client/frame/frame.css. */
  --bs-portal-bar: #203B37;
  --bs-portal-bar-ink: #FFFFFF;
  --bs-portal-bar-muted: #C9DAD4;

  /* Type (1.7) */
  --bs-sans: Inter, "Inter Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bs-display: "Inter Tight", "Inter Tight Fallback", Inter, system-ui, sans-serif;

  /* Radii (1.8) */
  --bs-r: 10px;
  /* Corner set C (Ryan 31 Oct 2026): the card frame 14 px; the rest of the scale unchanged. */
  --bs-r-card: 14px;
  --bs-r-inner: 12px;
  --bs-r-menu: 14px;
  --bs-r-modal: 24px;
  --bs-r-pill: 999px;

  /* Sizes and spacing (1.8). Step 2 keeps each page's table density (--bs-row). */
  --bs-row: 36px;
  --bs-gutter: 32px;
  --bs-masthead: 70px;

  /* Tokenised page CSS (#115, 30 Oct 2026): every literal of the page CSS is one of these. */
  --bs-white: #FFFFFF; /* white for text and lines on dark and coloured blocks */
  --bs-white-a21: rgba(255,255,255,0.21); /* alpha of a palette colour */
  --bs-white-a72: rgba(255,255,255,0.72); /* alpha of a palette colour */
  --bs-white-a80: rgba(255,255,255,0.8); /* alpha of a palette colour */
  --bs-white-a42: rgba(255,255,255,0.42); /* alpha of a palette colour */
  --bs-portal-bar-a33: rgba(32,59,55,0.33); /* alpha of a palette colour */
  --bs-file-pdf: #C4574F; /* the file-type mark */
  --bs-file-doc: #3F6FB5; /* the file-type mark */
  --bs-file-xls: #2F8A63; /* the file-type mark */
  --bs-file-img: #B37C1E; /* the file-type mark */
  --bs-ink-a50: rgba(13,18,16,0.5); /* alpha of a palette colour */
  --bs-white-a40: rgba(255,255,255,0.4); /* alpha of a palette colour */
  --bs-white-a12: rgba(255,255,255,0.12); /* alpha of a palette colour */
  --bs-white-a75: rgba(255,255,255,0.75); /* alpha of a palette colour */
  --bs-white-a96: rgba(255,255,255,0.96); /* alpha of a palette colour */
  --bs-white-a25: rgba(255,255,255,0.25); /* alpha of a palette colour */
  --bs-white-a35: rgba(255,255,255,0.35); /* alpha of a palette colour */
  --bs-white-a18: rgba(255,255,255,0.18); /* alpha of a palette colour */
  --bs-white-a85: rgba(255,255,255,0.85); /* alpha of a palette colour */
  --bs-white-a14: rgba(255,255,255,0.14); /* alpha of a palette colour */
  --bs-ink-2-a45: rgba(31,37,35,0.45); /* alpha of a palette colour */
  --bs-white-a15: rgba(255,255,255,0.15); /* alpha of a palette colour */
  --bs-muted-a15: rgba(106,115,112,0.15); /* alpha of a palette colour */
  --bs-ink-2-a25: rgba(31,37,35,0.25); /* alpha of a palette colour */
  --bs-hero-muted-a60: rgba(154,167,161,0.6); /* alpha of a palette colour */
  --bs-white-a09: rgba(255,255,255,0.09); /* alpha of a palette colour */
  --bs-ink-2-a43: rgba(31,37,35,0.43); /* alpha of a palette colour */
  --bs-ink-2-a38: rgba(31,37,35,0.38); /* alpha of a palette colour */
  --bs-xero: #13B5EA; /* the Xero mark */
  --bs-portal-bar-muted-a31: rgba(201,218,212,0.31); /* alpha of a palette colour */
  --bs-portal-bar-muted-a33: rgba(201,218,212,0.33); /* alpha of a palette colour */
  --bs-rule-a69: rgba(230,232,236,0.69); /* alpha of a palette colour */
  --bs-hero-muted-a47: rgba(154,167,161,0.47); /* alpha of a palette colour */
  --bs-portal-bar-muted-a60: rgba(201,218,212,0.6); /* alpha of a palette colour */
  --bs-s-12: 12px; /* spacing */
  --bs-s-18: 18px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-22: 22px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-9: 9px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-4: 4px; /* spacing */
  --bs-s-32: 32px; /* spacing */
  --bs-s-64: 64px; /* spacing */
  --bs-s-28: 28px; /* spacing */
  --bs-s-26: 26px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-14: 14px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-6: 6px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-10: 10px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-16: 16px; /* spacing */
  --bs-s-3: 3px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-icon-blank: 3px; /* what a glyph of the set leaves blank inside its box at 16 px (2.67 to 3.33 px), so a leading
                           icon is pulled towards the button's edge by it and the ink stands where the eye reads it (C1) */
  --bs-s-8: 8px; /* spacing */
  --bs-s-1: 1px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-2: 2px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-7: 7px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-20: 20px; /* spacing */
  --bs-s-48: 48px; /* spacing */
  --bs-s-80: 80px; /* spacing */
  --bs-s-24: 24px; /* spacing */
  --bs-s-56: 56px; /* spacing */
  --bs-s-46: 46px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-38: 38px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-11: 11px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-13: 13px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-5: 5px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-40: 40px; /* spacing */
  --bs-s-30: 30px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-44: 44px; /* spacing */
  --bs-s-72: 72px; /* spacing */
  --bs-s-36: 36px; /* spacing */
  --bs-s-19: 19px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-52: 52px; /* spacing */
  --bs-s-25: 25px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-15: 15px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-75: 75px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-17: 17px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-35: 35px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-6-5: 6.5px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-54: 54px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-39: 39px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-42: 42px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-60: 60px; /* spacing */
  --bs-s-34: 34px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-23: 23px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-58: 58px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-21: 21px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-70: 70px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-s-27: 27px; /* spacing, off the 4px scale (tightened in the page review) */
  --bs-fs-14: 14px; /* font size */
  --bs-fs-16-5: 16.5px; /* font size */
  --bs-fs-13-5: 13.5px; /* font size */
  --bs-fs-22: 22px; /* font size */
  --bs-fs-24: 24px; /* font size */
  --bs-fs-14-5: 14.5px; /* font size */
  --bs-fs-13: 13px; /* font size */
  --bs-fs-12-5: 12.5px; /* font size */
  --bs-fs-15: 15px; /* font size */
  --bs-fs-30: 30px; /* font size */
  --bs-fs-11: 11px; /* font size */
  --bs-fs-34: 34px; /* font size */
  --bs-fs-23: 23px; /* font size */
  --bs-fs-12: 12px; /* font size */
  --bs-fs-26: 26px; /* font size */
  --bs-fs-27: 27px; /* font size */
  --bs-fs-28: 28px; /* font size */
  --bs-fs-21: 21px; /* font size */
  --bs-fs-42: 42px; /* font size */
  --bs-fs-64: 64px; /* font size */
  --bs-fs-32: 32px; /* font size */
  --bs-fs-68: 68px; /* font size */
  --bs-fs-50: 50px; /* font size */
  --bs-fs-25: 25px; /* font size */
  --bs-fs-29: 29px; /* font size */
  --bs-fs-19: 19px; /* font size */
  --bs-fs-40: 40px; /* font size */
  --bs-fs-16: 16px; /* font size */
  --bs-fs-20: 20px; /* font size */
  --bs-fs-17: 17px; /* font size */
  --bs-fs-11-5: 11.5px; /* font size */
  --bs-fs-18: 18px; /* font size */
  --bs-fs-10-5: 10.5px; /* font size */
  --bs-fs-9-5: 9.5px; /* font size */
  --bs-fs-9: 9px; /* font size */
  --bs-fs-52: 52px; /* font size */
  --bs-fs-44: 44px; /* font size */
  --bs-fs-15-5: 15.5px; /* font size */
  --bs-fs-10: 10px; /* font size */
  --bs-lh-1-45: 1.45; /* line height */
  --bs-lh-1-2: 1.2; /* line height */
  --bs-lh-1-5: 1.5; /* line height */
  --bs-lh-1-35: 1.35; /* line height */
  --bs-lh-1-4: 1.4; /* line height */
  --bs-lh-22px: 22px; /* line height */
  --bs-lh-31px: 31px; /* line height */
  --bs-lh-23px: 23px; /* line height */
  --bs-lh-1-6: 1.6; /* line height */
  --bs-lh-1: 1; /* line height */
  --bs-lh-1-22: 1.22; /* line height */
  --bs-lh-1-8: 1.8; /* line height */
  --bs-lh-1-65: 1.65; /* line height */
  --bs-lh-1-3: 1.3; /* line height */
  --bs-lh-1-75: 1.75; /* line height */
  --bs-lh-1-14: 1.14; /* line height */
  --bs-lh-1-16: 1.16; /* line height */
  --bs-lh-1-7: 1.7; /* line height */
  --bs-lh-1-15: 1.15; /* line height */
  --bs-lh-1-1: 1.1; /* line height */
  --bs-lh-1-55: 1.55; /* line height */
  --bs-lh-1-25: 1.25; /* line height */
  --bs-lh-20px: 20px; /* line height */
  --bs-lh-18px: 18px; /* line height */
  --bs-lh-13px: 13px; /* line height */
  --bs-lh-24px: 24px; /* line height */
  --bs-lh-17px: 17px; /* line height */
  --bs-lh-16px: 16px; /* line height */
  --bs-lh-36px: 36px; /* line height */
  --bs-lh-30px: 30px; /* line height */
  --bs-lh-11px: 11px; /* line height */
  --bs-lh-28px: 28px; /* line height */
  --bs-lh-15px: 15px; /* line height */
  --bs-lh-14px: 14px; /* line height */
  --bs-lh-19px: 19px; /* line height */
  --bs-lh-1-05: 1.05; /* line height */
  --bs-lh-1-12: 1.12; /* line height */
  --bs-lh-21px: 21px; /* line height */
  --bs-lh-35px: 35px; /* line height */
  --bs-w-semibold: 600; /* font weight */
  --bs-w-bold: 700; /* font weight */
  --bs-w-medium: 500; /* font weight */
  --bs-w-regular: 400; /* font weight */
  --bs-r-md: 8px; /* radius */
  --bs-r-round: 50%; /* radius */
  --bs-r-xs: 4px; /* radius */
  --bs-r-lg: 16px; /* radius */
  --bs-r-sm: 6px; /* radius */
  --bs-r-2xs: 2px; /* radius */
  --bs-r-xl: 20px; /* radius */
  --bs-mono: ui-monospace, "Cascadia Mono", Consolas, SFMono-Regular, Menlo, monospace; /* font: every monospace stack */
  --bs-serif: "Source Serif 4", Georgia, "Times New Roman", serif; /* font: the serif; Source Serif 4 where the page loads it (the client shell), else Georgia */
  --bs-shadow-1: 0 1px 2px rgba(13,18,16,0.08); /* elevation 1 of 5 */
  --bs-shadow-2: 0 2px 8px rgba(13,18,16,0.12); /* elevation 2 of 5 */
  --bs-shadow-3: 0 8px 24px rgba(13,18,16,0.14); /* elevation 3 of 5 */
  --bs-shadow-4: 0 12px 32px rgba(13,18,16,0.16); /* elevation 4 of 5 */
  --bs-shadow-5: 0 24px 48px -16px rgba(13,18,16,0.35); /* elevation 5 of 5 */
  --bs-glow-sm: drop-shadow(0 0 2px var(--bs-ai-glow)); /* the AI glow, small */
  --bs-glow-lg: drop-shadow(0 0 10px var(--bs-ai-glow)); /* the AI glow, large */
  --bs-glow-halo: 0 0 16px 2px var(--bs-ai-glow); /* the AI glow round a block */
  --bs-ink-a35: rgba(13,18,16,0.35); /* alpha of a palette colour */
  --bs-ink-a08: rgba(13,18,16,0.08); /* alpha of a palette colour */
  --bs-ai-1-a00: rgba(124,58,237,0); /* alpha of a palette colour */
  --bs-ink-a55: rgba(13,18,16,0.55); /* alpha of a palette colour */
  --bs-black-a12: rgba(0,0,0,0.12); /* alpha of a palette colour */
  --bs-black-a20: rgba(0,0,0,0.2); /* alpha of a palette colour */
  --bs-ring-1: 0 0 0 1px; /* ring: a border drawn as a shadow */
  --bs-rail-3: 3px 0 0; /* rail: an edge line drawn as a shadow */
  --bs-ring-1-5: 0 0 0 1.5px; /* ring: a border drawn as a shadow */
  --bs-side-l: -1px 0 0; /* rail: an edge line drawn as a shadow */
  --bs-ring-3: 0 0 0 3px; /* ring: a border drawn as a shadow */
  --bs-ring-6: 0 0 0 6px; /* ring: a border drawn as a shadow */
  --bs-ring-4: 0 0 0 4px; /* ring: a border drawn as a shadow */
  --bs-edge-1: 0 -1px 0; /* rail: an edge line drawn as a shadow */
  --bs-rail-2: 2px 0 0; /* rail: an edge line drawn as a shadow */
  --bs-ring-2: 0 0 0 2px; /* ring: a border drawn as a shadow */
  --bs-edge-t-1: 0 1px 0; /* rail: an edge line drawn as a shadow */
  --bs-edge-2: 0 -2px 0; /* rail: an edge line drawn as a shadow */
  --bs-ring-9: 0 0 0 9px; /* ring: a border drawn as a shadow */
  --bs-ai-glow-base-a40: rgba(139,92,246,0.4); /* alpha of a palette colour */
  --bs-muted-a07: rgba(106,115,112,0.07); /* alpha of a palette colour */
  --bs-side-r: 1px 0 0; /* rail: an edge line drawn as a shadow */
  --bs-muted-a17: rgba(106,115,112,0.17); /* alpha of a palette colour */
  /* Motion (the loading rule, round 2 mock page Loading, rules 5 and 6): expand and collapse take 160 ms on the standard
     easing; a skeleton fades in over 150 ms, so a quick read shows no bars and a slow one arrives smoothly. */
  --bs-dur-expand: 160ms;
  --bs-ease-standard: cubic-bezier(.2, 0, 0, 1);
  --bs-skel-fade: 150ms;

  /* The AI window (contract 1.29 section 10, the approved mock eziar-design-ai-window-4; Fable's decisions on
     D:/Codex/Opus-work/ai-window/TOKENS_PROPOSED.md, 13 Nov 2026). Colour by meaning: violet only for the AI itself. */
  --bs-aw-faint: #8A918F; /* times, inert icons and the placeholder in the window: --bs-faint's meaning, read at 3.2:1 */
  --bs-find: #FDE68A; /* a found word in a search result */
  --bs-find-cur: #F59E0B; /* the match a search stands on, among the found words (the approved look, mock.css line 221) */
  --bs-ai-glow-base-a00: rgba(139,92,246,0); /* the AI glow at 0: where a glow fades out */
  --bs-ai-glow-base-a12: rgba(139,92,246,0.12); /* the AI glow at 12 percent: the window's edge light, the text box in focus */
  --bs-ai-glow-base-a20: rgba(139,92,246,0.2); /* the AI glow at 20 percent: a run's mark */
  --bs-ai-glow-base-a55: rgba(139,92,246,0.55); /* the AI glow at 55 percent: the halo of the AI button and the working mark, a hovered prompt */
  --bs-ai-glow-base-a80: rgba(139,92,246,0.8); /* the AI glow at 80 percent: the AI button's ring, the working mark's core */
  --bs-state-ready-a16: rgba(21,128,61,0.16); /* the ring round a Connected dot */
  --bs-aw-shadow: 0 44px 84px -30px rgba(13,18,16,0.42), 0 14px 30px -18px rgba(13,18,16,0.28); /* the window */
  --bs-aw-lift: 0 10px 26px -18px rgba(13,18,16,0.36); /* the text box, the banner over it, a card in a turn */
  --bs-aw-lift-float: 0 16px 32px -24px rgba(13,18,16,0.4); /* what floats over the chat: the jump button, the day pill */
  --bs-aw-glow: 0 10px 24px -14px rgba(139,92,246,0.8); /* a hot or hovered card */
  --bs-aw-glow-sm: 0 8px 18px -12px rgba(139,92,246,0.8); /* a small hovered control */
  --bs-aw-glow-send: 0 8px 18px -8px rgba(139,92,246,0.8); /* Send */
  --bs-aw-glow-mark: 0 6px 16px -6px rgba(139,92,246,0.7), inset 0 1px 0 rgba(255,255,255,0.35); /* the AI button in the bar */
  --bs-aw-glow-orb: 0 12px 26px -10px rgba(139,92,246,0.8), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -8px 14px rgba(0,0,0,0.12); /* the welcome's mark */
  --bs-aw-glow-big: 0 14px 30px -12px rgba(139,92,246,0.8), inset 0 1px 0 rgba(255,255,255,0.45); /* the big mark on a start screen */
  --bs-aw-r-window: 26px; /* the window's corners */
  --bs-aw-r-composer: 22px; /* the text box's corners */
  --bs-aw-r-card: 18px; /* a card in the window: a start step, a way to connect */
  --bs-lh-26px: 26px; /* the line of the big headings on a start screen */
  --bs-aw-ease: cubic-bezier(.22, 1, .36, 1); /* every arrival and travel in the window */
  --bs-aw-ease-io: cubic-bezier(.5, 0, .2, 1); /* the window and its menus leaving */
  --bs-aw-ease-ring: cubic-bezier(.2, .6, .3, 1); /* the mark's ripple */
  --bs-aw-open: 780ms; /* the window opening */
  --bs-aw-close: 360ms; /* the window closing */
  --bs-aw-resize: 560ms; /* the window widening or narrowing */
  --bs-aw-w: 440px; /* the window's width; the notice stack and a bar at the window's foot glide left by it */
  --bs-aw-w-wide: 720px; /* the window's width when wide */
  /* The window floats (FLOATING_WINDOW.md, Ryan 15 Nov 2026): its own place, its sizes, the bounds it is held in, the
     pointer's own numbers and the entrance at the page's foot. Page CSS and float.mjs read these and no number of their own. */
  --bs-aw-inset: 18px; /* its own place: this far from the room's right edge and its foot */
  --bs-aw-edge: 8px; /* the bounds: the least it keeps from the room's left, right and foot */
  --bs-aw-h: 78vh; /* the default height, held between the two below */
  --bs-aw-h-min: 720px; /* and never shorter than this */
  --bs-aw-h-max: 900px; /* and never taller */
  --bs-aw-min-w: 360px; /* the least width a person can give it by an edge or a corner */
  --bs-aw-min-h: 360px; /* and the least height */
  --bs-aw-grab: 4px; /* a press that travels less than this is a click and moves nothing */
  --bs-aw-snap: 12px; /* let go this near its own place, the window is there */
  --bs-aw-rest: 1.5px; /* nearer than this to its own place counts as standing in it */
  --bs-aw-rz: 6px; /* the edges it is resized by */
  --bs-aw-rz-corner: 18px; /* and its corners */
  --bs-aw-glide: 380ms; /* a button moves it */
  --bs-aw-grow: 460ms; /* it grows from the entrance */
  --bs-aw-tool: 32px; /* a tool in the title area */
  --bs-aw-head: calc(var(--bs-s-16) + var(--bs-aw-tool) + var(--bs-s-12) + var(--bs-s-1)); /* the title area: 16 px above, a tool, 12 px below, and its line */
  --bs-aw-grabber-w: 36px; /* the grabber at the title area's top centre */
  --bs-aw-grabber-h: 4px; /* and its thickness */
  --bs-aw-fab: 52px; /* the entrance, at the bottom right corner of the room */
  --bs-aw-fab-ic: 24px; /* its drawing */
  --bs-aw-fab-inset: 24px; /* from the room's right edge and its foot */
  --bs-aw-fab-dot: 13px; /* the ready and needs-you dots on it */
  /* The notices (NOTICES.md, Ryan 15 Nov 2026): their corner, their card, their times and their motion. Page CSS and
     notices.jsx read these and no number of their own. */
  --bs-notice-inset: 24px; /* the corner: this far from the view's left edge and its foot */
  --bs-notice-w: 360px; /* the stack's width */
  --bs-notice-gap: 8px; /* between two cards */
  --bs-notice-mark: 20px; /* the mark at the card's left, on the first line */
  --bs-notice-x: 24px; /* the dismiss button */
  --bs-notice-lines: 3; /* the words at most, before Show all */
  --bs-notice-open: 40vh; /* opened by Show all: this much of the view at most, then it scrolls inside */
  --bs-notice-in: 200ms; /* a card comes in */
  --bs-notice-rise: 8px; /* and rises this far as it comes */
  --bs-notice-out: 150ms; /* a card fades */
  --bs-notice-room: 200ms; /* and its room closes, the others gliding into it */
  --bs-notice-ease-room: cubic-bezier(.2, 0, 0, 1); /* the room closing */
  --bs-notice-time: 6000ms; /* a result's own time */
  --bs-notice-time-from: 80; /* counted on its words: one step for each run of characters past this */
  --bs-notice-time-chars: 40; /* the run */
  --bs-notice-time-step: 1000ms; /* the step */
  --bs-notice-time-action: 10000ms; /* at least this much when it carries a way on */
  --bs-notice-time-max: 15000ms; /* and never more than this */
  --bs-notice-shadow-x: 8px; /* the room a card's shadow needs beside it, so the stack's own scrolling never cuts it */
  --bs-notice-shadow-y: 32px; /* and under it */
}
@media (max-width: 700px) {
  :root, .bs-app, .bs-dialog { --bs-gutter: 16px; }
}

/* welcome: the Welcome wizard's own (mock v3, Ryan approved 30 Oct 2026; src/bs/welcome/welcome.css): the brand panel's
   colours on ink, the AI tint and line, the Connected pill's line, the toast's button and shadow. */
.app.wz {
  --bs-wz-on-dark: #C9D1CD;
  --bs-wz-rail-ink: #E8ECEA;
  --bs-wz-rail-muted: #8E9894;
  --bs-wz-rail-line: #3B4542;
  --bs-wz-rail-now: rgba(255, 255, 255, .08);
  --bs-wz-ai-tint: #F5F3FF;
  --bs-wz-ai-line: #DDD6FE;
  --bs-wz-ok-line: #BFE8CC;
  --bs-wz-toast-button: #1C2420;
  --bs-wz-toast-shadow: rgba(0, 0, 0, .5);
}

/* Legacy colours (#115, Fable 30 Oct 2026): the pre-System A pages keep their look this round; their colours are named by
   role and lightness (OKLab L) here, so the repaint in the page review after Ryan's final test is a change of this block only. */
:root, .bs-app, .bs-dialog {
  --bs-legacy-bg-47: #07695F; /* brand.css */
  --bs-legacy-bg-48: #076C64; /* public/assets/customer-entry.css */
  --bs-legacy-bg-48-2: #066D65; /* app.css, live/account-home.css, live/workspace.css */
  --bs-legacy-bg-48-3: #006C68; /* live/date-input.css */
  --bs-legacy-bg-53: #087E75; /* public/assets/customer-entry.css, live/list-controls.css */
  --bs-legacy-bg-53-2: #0B7C6A; /* preview/reader.css */
  --bs-legacy-bg-54: #087F79; /* live/bulk-actions.css, live/document-workspace.css */
  --bs-legacy-bg-54-2: #007F7A; /* live/date-input.css */
  --bs-legacy-bg-54-3: #1A8065; /* preview/reader.css */
  --bs-legacy-bg-55: #00847C; /* public/auth.css */
  --bs-legacy-bg-56: #00877D; /* live/home-refinement.css */
  --bs-legacy-bg-56-2: #00857F; /* live/request-review.css */
  --bs-legacy-bg-62: #3B82F6; /* bs/bas/bas-app.css */
  --bs-legacy-bg-80: #B5BFC9; /* live/request-review.css */
  --bs-legacy-bg-95: #FFF0B7; /* live/document-workspace.css */
  --bs-legacy-bg-96: #FFF2B4; /* preview/reader.css */
  --bs-legacy-colour-0: #000000; /* client/frame/portal-mock.css, client/uploads/uploads.css */
  --bs-legacy-colour-53: #087E75; /* app.css, brand.css, live/list-controls.css, live/refined-lists.css */
  --bs-legacy-colour-54: #087F75; /* live/signature-editor.css */
  --bs-legacy-colour-55: #00847C; /* public/auth.css */
  --bs-legacy-colour-56: #00857C; /* live/platform-operations.css */
  --bs-legacy-line-47: #07695F; /* brand.css */
  --bs-legacy-line-48: #076C64; /* public/assets/customer-entry.css */
  --bs-legacy-line-52: #217964; /* live/spreadsheet-evidence.css */
  --bs-legacy-line-53: #087E75; /* public/assets/customer-entry.css, live/workpapers/reader.css, search-interaction.css */
  --bs-legacy-line-53-2: #007D77; /* live/work-queue.css */
  --bs-legacy-line-54: #007F7A; /* live/date-input.css */
  --bs-legacy-line-54-2: #087F79; /* live/document-workspace.css */
  --bs-legacy-line-54-3: #208169; /* live/proposal-review.css */
  --bs-legacy-line-54-4: #007E84; /* live/workpaper-refinement.css */
  --bs-legacy-line-55: #00847C; /* public/auth.css */
  --bs-legacy-line-55-2: #00837E; /* live/entry-history.css */
  --bs-legacy-line-55-3: #0B8278; /* live/signature-editor.css */
  --bs-legacy-line-56: #00867D; /* live/list-controls.css */
  --bs-legacy-line-56-2: #00857C; /* live/platform-operations.css, live/review-evidence.css */
  --bs-legacy-line-56-3: #00877E; /* live/refined-lists.css */
  --bs-legacy-line-56-4: #00857F; /* live/request-review.css */
  --bs-legacy-line-56-5: #088674; /* preview/reader.css */
  --bs-legacy-line-56-6: #118879; /* preview/reader.css */
  --bs-legacy-line-56-7: #148773; /* preview/reader.css */
  --bs-legacy-line-56-8: #158772; /* preview/reader.css */
  --bs-legacy-line-56-9: #148771; /* preview/reader.css */
  --bs-legacy-line-57: #008A82; /* live/document-workspace.css */
  --bs-legacy-line-57-2: #008B78; /* preview/reader.css */
  --bs-legacy-line-58: #B75B42; /* live/account-home.css */
  --bs-legacy-line-58-2: #168B86; /* live/inline-review.css */
  --bs-legacy-line-62: #B07816; /* live/proposal-review.css */
  --bs-legacy-line-67: #BB8C3E; /* preview/reader.css */
  --bs-legacy-line-69: #C68880; /* layout-stability.css */
  --bs-legacy-line-71: #6FADAE; /* live/refined-lists.css */
  --bs-legacy-line-78: #9CBFBD; /* live/document-workspace.css */
  --bs-legacy-line-79: #A8C1B6; /* public/assets/customer-entry.css */
  --bs-legacy-line-79-2: #88C8C2; /* app.css */
  --bs-legacy-line-79-3: #D3B875; /* layout-stability.css */
  --bs-legacy-line-80: #A8C4B8; /* preview/reader.css */
  --bs-legacy-line-81: #E9B849; /* public/auth.css */
  --bs-legacy-line-81-2: #DDB7B0; /* layout-stability.css */
  --bs-legacy-line-82: #BCC8C6; /* public/assets/customer-entry.css */
  --bs-legacy-line-82-2: #B4C9C5; /* app.css */
  --bs-legacy-line-82-3: #E9B7A2; /* client/frame/portal-mock.css */
  --bs-legacy-line-82-4: #A8CBC6; /* live/document-workspace.css */
  --bs-legacy-line-82-5: #B6C9C7; /* live/inline-review.css */
  --bs-legacy-line-83: #E4C56A; /* client/frame/portal-mock.css */
  --bs-legacy-line-84: #F0BCBC; /* live/workspace.css */
  --bs-legacy-line-85: #E9C3BB; /* live/document-workspace.css */
  --bs-legacy-line-86: #EBC6CC; /* live/work-queue.css */
  --bs-legacy-line-86-2: #F0C9AE; /* bs/bas/bas.css */
  --bs-legacy-line-87: #EBD497; /* live/document-workspace.css */
  --bs-legacy-line-88: #F3CDBB; /* client/frame/portal-mock.css */
  --bs-legacy-line-88-2: #E8D6B1; /* live/bulk-actions.css */
  --bs-legacy-line-88-3: #EBD7A6; /* live/workspace.css */
  --bs-legacy-line-89: #E9D9B0; /* live/work-queue.css */
  --bs-legacy-text-38: #144E3D; /* live/proposal-review.css */
  --bs-legacy-text-40: #14533E; /* live/proposal-review.css */
  --bs-legacy-text-40-2: #354B60; /* live/recorded.css */
  --bs-legacy-text-41: #374D62; /* live/recorded.css */
  --bs-legacy-text-41-2: #165644; /* live/spreadsheet-evidence.css */
  --bs-legacy-text-42: #77372F; /* layout-stability.css */
  --bs-legacy-text-44: #684C18; /* live/proposal-review.css */
  --bs-legacy-text-44-2: #005F60; /* live/workpapers/workpapers.css */
  --bs-legacy-text-45: #68501A; /* layout-stability.css */
  --bs-legacy-text-46: #754F1D; /* live/bulk-actions.css */
  --bs-legacy-text-46-2: #206454; /* live/spreadsheet-evidence.css */
  --bs-legacy-text-46-3: #28635F; /* live/work-queue.css */
  --bs-legacy-text-47: #35636C; /* live/document-workspace.css */
  --bs-legacy-text-47-2: #23695F; /* live/document-workspace.css */
  --bs-legacy-text-47-3: #07685F; /* live/workspace.css */
  --bs-legacy-text-48: #116D69; /* live/work-queue.css */
  --bs-legacy-text-48-2: #126C59; /* live/workpapers/workpapers.css */
  --bs-legacy-text-48-3: #136D65; /* live/workpapers/workpapers.css */
  --bs-legacy-text-49: #176F6B; /* live/document-workspace.css */
  --bs-legacy-text-49-2: #366684; /* live/document-workspace.css */
  --bs-legacy-text-49-3: #086F65; /* live/work-queue.css */
  --bs-legacy-text-49-4: #885217; /* live/workpapers/reader.css, live/workpapers/workpapers.css */
  --bs-legacy-text-49-5: #86531B; /* live/workpapers/workpapers.css */
  --bs-legacy-text-49-6: #1D4ED8; /* bs/bas/bas.css */
  --bs-legacy-text-50: #994735; /* public/assets/customer-entry.css */
  --bs-legacy-text-50-2: #A14038; /* live/bulk-actions.css */
  --bs-legacy-text-50-3: #796019; /* live/document-workspace.css */
  --bs-legacy-text-50-4: #3B62A2; /* live/workspace.css */
  --bs-legacy-text-51: #14766A; /* app.css */
  --bs-legacy-text-51-2: #8A5A00; /* client/frame/portal-mock.css */
  --bs-legacy-text-51-3: #00776E; /* live/platform-operations.css */
  --bs-legacy-text-51-4: #2469A2; /* live/work-queue.css */
  --bs-legacy-text-51-5: #895913; /* live/work-queue.css */
  --bs-legacy-text-51-6: #82601D; /* live/workpapers/workpapers.css */
  --bs-legacy-text-52: #AA443B; /* live/bulk-actions.css */
  --bs-legacy-text-52-2: #A6453C; /* live/document-workspace.css */
  --bs-legacy-text-52-3: #886219; /* live/document-workspace.css */
  --bs-legacy-text-52-4: #007970; /* live/platform-operations.css */
  --bs-legacy-text-52-5: #007B70; /* live/signature-editor.css */
  --bs-legacy-text-52-6: #08786D; /* live/work-queue.css */
  --bs-legacy-text-52-7: #007A74; /* live/workpapers/workpapers.css */
  --bs-legacy-text-52-8: #8C5C10; /* live/workspace.css */
  --bs-legacy-text-52-9: #087B6E; /* preview/reader.css */
  --bs-legacy-text-53: #087E75; /* public/assets/customer-entry.css, live/account-home.css, live/list-controls.css, live/workspace.css */
  --bs-legacy-text-53-2: #007E76; /* public/auth.css */
  --bs-legacy-text-53-3: #936018; /* app.css */
  --bs-legacy-text-53-4: #167D62; /* live/bulk-actions.css */
  --bs-legacy-text-53-5: #087E6C; /* live/document-workspace.css */
  --bs-legacy-text-53-6: #AD4541; /* live/home-refinement.css */
  --bs-legacy-text-53-7: #007C73; /* live/platform-operations.css */
  --bs-legacy-text-53-8: #007B7D; /* live/workpapers/workpapers.css */
  --bs-legacy-text-53-9: #087F6E; /* preview/reader.css */
  --bs-legacy-text-54: #007F78; /* public/auth.css */
  --bs-legacy-text-54-2: #7E608B; /* app.css */
  --bs-legacy-text-54-3: #148268; /* live/bulk-actions.css */
  --bs-legacy-text-54-4: #946125; /* live/document-workspace.css */
  --bs-legacy-text-54-5: #087F79; /* live/document-workspace.css */
  --bs-legacy-text-54-6: #966209; /* live/platform-operations.css */
  --bs-legacy-text-54-7: #007F77; /* live/refined-lists.css */
  --bs-legacy-text-54-8: #007E84; /* live/workpaper-refinement.css */
  --bs-legacy-text-54-9: #007E7B; /* live/workpapers/workpapers.css */
  --bs-legacy-text-56: #008589; /* live/workpaper-refinement.css */
  --bs-legacy-text-57: #9D6A22; /* live/workpaper-refinement.css */
  --bs-legacy-text-68: #0DAFAA; /* public/assets/customer-entry.css */
  --bs-legacy-text-81: #B2C997; /* live/document-workspace.css */
  --bs-legacy-text-82: #BDC7CC; /* live/document-workspace.css */
  --bs-legacy-text-88: #F5D58A; /* client/frame/portal-mock.css */
}
