/* shared/ds/tokens.css: the design tokens of the CabDesign and StackDesign design system (spec 2026-11-18, section 1).
   The ONLY file in shared/ds that may hold a raw color. Light is linen-ink, dark is midnight-oak (the FD166 pair), and the
   product accent follows <html data-product="cab|stack">. Every token is declared in BOTH themes so a page never falls back. */

:root,
:root[data-theme="linen-ink"] {
  color-scheme: light;
  --ds-bg: #f5f3ee;
  --ds-surface-1: #ffffff;
  --ds-surface-2: #f0ede4;
  --ds-surface-3: #e7e4da;
  --ds-text: #20242b;
  --ds-text-2: #565d66;
  --ds-text-disabled: #8b9199;
  --ds-hairline: #e2dfd5;
  /* P4203 (card P3937): the control edge, one step darker than the spec's #8b9199 (2.87 to 1 on --ds-bg). #848a92 reads 3.14 to 1 on --ds-bg and
     3.48 to 1 on --ds-surface-1, so the system's own 3 to 1 rule holds on both grounds. --ds-text-disabled keeps #8b9199: a different job. */
  --ds-border-control: #848a92;
  --ds-focus: #3f5a6b;
  --ds-success: #3f7a57;
  --ds-warning: #b2650c;
  --ds-danger: #b1503f;
  --ds-success-soft: #e4efe8;
  --ds-warning-soft: #f7f0da;
  --ds-danger-soft: #f3e1dc;
  /* P3937 (this lane): the ink of status TEXT. The spec's light status colors measure 4.31, 3.87 and 4.06 to 1 on their soft fills, under the
     AA 4.5 to 1 the Price Age chip has always cleared (matf-fields 6e), so chip and hover text read these three, one step darker on light;
     the status colors above stay for dots, icons and edges. On dark the status color already clears AA, so the ink is the same value. */
  --ds-success-ink: #2f6a49;
  --ds-warning-ink: #8a4f06;
  --ds-danger-ink: #9a4030;
  --ds-accent: #3f5a6b;
  --ds-accent-hover: #334a58;
  --ds-accent-on: #ffffff;
  --ds-accent-soft: #e3ebf0;
  --ds-scrim: rgba(15, 20, 25, .40);
  --ds-tip-bg: #20242b;
  --ds-tip-text: #f5f3ee;
  /* WHERE YOU ARE IN THE MENU (card P4292 fix round 1, F5): the current row's fill, and its 3 px bar and icon. Light reads the accent pair (the bar 7.3 to 1
     on the menu's white, 6.51 in StackDesign's green since card P4319; the icon 6.0 to 1 on the fill, 5.44 in the green); the dark themes set their own below
     (tests/design-system-1118.test.cjs). */
  --ds-rail-current-fill: var(--ds-accent-soft);
  --ds-rail-current-mark: var(--ds-accent);
  --ds-e-0: none;
  --ds-e-1: 0 8px 30px rgba(32, 36, 43, .12), 0 1px 2px rgba(32, 36, 43, .06);
  --ds-e-2: 0 18px 60px rgba(32, 36, 43, .20), 0 2px 6px rgba(32, 36, 43, .10);
}

:root[data-theme="midnight-oak"] {
  color-scheme: dark;
  --ds-bg: #11161c;
  --ds-surface-1: #161d25;
  --ds-surface-2: #1a212a;
  --ds-surface-3: #232c37;
  --ds-text: #e6edf3;
  --ds-text-2: #a3b0bd;
  --ds-text-disabled: #5d6874;
  --ds-hairline: #263140;
  --ds-border-control: #6b7886;
  --ds-focus: #74c4dd;
  --ds-success: #5fb08a;
  --ds-warning: #e8a03c;
  --ds-danger: #dd7a6a;
  --ds-success-soft: #1d2e26;
  --ds-warning-soft: #33290f;
  --ds-danger-soft: #3a2420;
  --ds-success-ink: #5fb08a;
  --ds-warning-ink: #e8a03c;
  --ds-danger-ink: #dd7a6a;
  --ds-accent: #4aa3c0;
  --ds-accent-hover: #74c4dd;
  --ds-accent-on: #0f1419;
  --ds-accent-soft: #1d2d36;
  --ds-scrim: rgba(0, 0, 0, .55);
  --ds-tip-bg: #20242b;
  --ds-tip-text: #f5f3ee;
  /* F5 (card P4292 fix round 1): on Midnight Oak the accent-soft fill read 1.2 to 1 on the menu (#161d25), so the current row barely showed. Its own fill is
     a clearer step (1.7 to 1 on the menu) and its bar and icon take the lighter accent: the bar 8.6 to 1 on the menu, the icon 5.2 to 1 and the name
     (--ds-text) 8.6 to 1 on the fill. The spec's accent tokens are unchanged. */
  --ds-rail-current-fill: #234556;
  --ds-rail-current-mark: var(--ds-accent-hover);
  --ds-e-0: none;
  --ds-e-1: 0 8px 30px rgba(0, 0, 0, .50), 0 1px 2px rgba(0, 0, 0, .40);
  --ds-e-2: 0 18px 60px rgba(0, 0, 0, .65), 0 2px 6px rgba(0, 0, 0, .5);
}

/* StackDesign: the green accent, in both themes (card P4319, his words of 11/24/2026: "I do not like the pink colors or rose color, whatever you want to call
   it. Change that to green."). A deep evergreen on Linen Ink and a bright jade on Midnight Oak, a bluer hue (166 and 159) than Festool's leaf green (111) on the
   FESTOOL badges and pictures, so the two greens never read as one (tests/p4319-stackdesign-green.test.cjs). Cab values above are the default. */
:root[data-product="stack"],
:root[data-product="stack"][data-theme="linen-ink"] {
  --ds-focus: #006b52;          /* 5.87 to 1 on --ds-bg, 6.51 on --ds-surface-1 */
  --ds-accent: #006b52;         /* 6.51 to 1 on #ffffff, 5.87 on --ds-bg, 5.56 on --ds-surface-2, 5.12 on --ds-surface-3; the menu's bar 6.51 */
  --ds-accent-hover: #00563f;   /* white on it 8.74 to 1 */
  --ds-accent-on: #ffffff;      /* 6.51 to 1 on the accent */
  --ds-accent-soft: #d8f0e7;    /* the accent on it 5.44 to 1, --ds-text 13.00 */
}
:root[data-product="stack"][data-theme="midnight-oak"] {
  --ds-focus: #3dd4a0;          /* 9.63 to 1 on --ds-bg, 9.00 on --ds-surface-1 */
  --ds-accent: #3dd4a0;         /* 9.63 to 1 on --ds-bg, 9.00 on --ds-surface-1, 7.48 on --ds-surface-3 */
  --ds-accent-hover: #7ae6c0;   /* the on-ink on it 12.51 to 1 */
  --ds-accent-on: #04140f;      /* 10.00 to 1 on the accent */
  --ds-accent-soft: #14382d;    /* the accent on it 6.81 to 1, --ds-text 10.88 */
  /* F5 (card P4292 fix round 1), green since card P4319: the current row on Midnight Oak, 1.70 to 1 on the menu, the same step the old fill had; its bar and icon
     read the lighter jade (--ds-accent-hover): the bar 11.25 to 1 on the menu, the icon 6.63 to 1 and the name 8.48 to 1 on the fill */
  --ds-rail-current-fill: #1d4a3c;
}

/* NO ATTRIBUTE, OS DARK (card P4455). shared/theme.css carries a no-attribute fallback in two halves: its bare :root:not([data-theme]) block
   mirrors Linen Ink, and its copy inside @media (prefers-color-scheme: dark) mirrors Midnight Oak, so a page whose boot snippet never stamped
   a theme still follows the OS. This file had only the light half (the bare :root above), so in that one state the legacy tokens went dark
   and every design token stayed light, and a rule that mixes the two (var(--text) on var(--ds-surface-1)) read light text on a white card:
   1.18 to 1 on the Designer's draw panel and plan key. The two blocks below are the dark half, the Midnight Oak values exactly, for CabDesign
   and for StackDesign, so a page with no attribute under an OS set to dark reads both families from one theme. Specificity: (0,2,0) and
   (0,3,0) outweigh the bare :root and equal the stamped blocks, and a stamped theme never matches :not([data-theme]), so no stamped page
   moves. tests/p4455-gate-contrast-sd-look.test.cjs holds each block equal to its Midnight Oak twin; a change to one is made in both. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ds-bg: #11161c;
    --ds-surface-1: #161d25;
    --ds-surface-2: #1a212a;
    --ds-surface-3: #232c37;
    --ds-text: #e6edf3;
    --ds-text-2: #a3b0bd;
    --ds-text-disabled: #5d6874;
    --ds-hairline: #263140;
    --ds-border-control: #6b7886;
    --ds-focus: #74c4dd;
    --ds-success: #5fb08a;
    --ds-warning: #e8a03c;
    --ds-danger: #dd7a6a;
    --ds-success-soft: #1d2e26;
    --ds-warning-soft: #33290f;
    --ds-danger-soft: #3a2420;
    --ds-success-ink: #5fb08a;
    --ds-warning-ink: #e8a03c;
    --ds-danger-ink: #dd7a6a;
    --ds-accent: #4aa3c0;
    --ds-accent-hover: #74c4dd;
    --ds-accent-on: #0f1419;
    --ds-accent-soft: #1d2d36;
    --ds-scrim: rgba(0, 0, 0, .55);
    --ds-tip-bg: #20242b;
    --ds-tip-text: #f5f3ee;
    --ds-rail-current-fill: #234556;
    --ds-rail-current-mark: var(--ds-accent-hover);
    --ds-e-0: none;
    --ds-e-1: 0 8px 30px rgba(0, 0, 0, .50), 0 1px 2px rgba(0, 0, 0, .40);
    --ds-e-2: 0 18px 60px rgba(0, 0, 0, .65), 0 2px 6px rgba(0, 0, 0, .5);
  }
  :root[data-product="stack"]:not([data-theme]) {
    --ds-focus: #3dd4a0;
    --ds-accent: #3dd4a0;
    --ds-accent-hover: #7ae6c0;
    --ds-accent-on: #04140f;
    --ds-accent-soft: #14382d;
    --ds-rail-current-fill: #1d4a3c;
  }
}

/* Theme-independent tokens: type, spacing, radius, motion, layers. */
:root {
  --ds-font: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;

  --ds-fs-title: 24px;   --ds-lh-title: 32px;   --ds-fw-title: 600;   --ds-ls-title: -0.015em;
  --ds-fs-section: 16px; --ds-lh-section: 24px; --ds-fw-section: 600; --ds-ls-section: -0.005em;
  --ds-fs-body: 14px;    --ds-lh-body: 20px;
  --ds-fs-dense: 13px;   --ds-lh-dense: 20px;
  --ds-fs-caption: 12px; --ds-lh-caption: 16px; --ds-ls-caption: 0.005em;
  --ds-fs-kpi: 20px;     --ds-lh-kpi: 28px;     --ds-fw-kpi: 600;     --ds-ls-kpi: -0.01em;
  --ds-fw-body: 400;     --ds-fw-emphasis: 500; --ds-fw-dense: 400;   --ds-fw-caption: 400;

  /* The spec's role tokens (section 1.2), one per type role, each a font shorthand: weight, size over line height, family. Use as font: var(--ds-t-title).
     Tracking cannot ride in a shorthand, so it stays in the --ds-ls-* names above. */
  --ds-t-title: var(--ds-fw-title) var(--ds-fs-title)/var(--ds-lh-title) var(--ds-font);
  --ds-t-section: var(--ds-fw-section) var(--ds-fs-section)/var(--ds-lh-section) var(--ds-font);
  --ds-t-body: var(--ds-fw-body) var(--ds-fs-body)/var(--ds-lh-body) var(--ds-font);
  --ds-t-dense: var(--ds-fw-dense) var(--ds-fs-dense)/var(--ds-lh-dense) var(--ds-font);
  --ds-t-caption: var(--ds-fw-caption) var(--ds-fs-caption)/var(--ds-lh-caption) var(--ds-font);
  --ds-t-kpi: var(--ds-fw-kpi) var(--ds-fs-kpi)/var(--ds-lh-kpi) var(--ds-font);

  --ds-s-1: 4px;  --ds-s-2: 8px;  --ds-s-3: 12px; --ds-s-4: 16px; --ds-s-5: 20px;
  --ds-s-6: 24px; --ds-s-8: 32px; --ds-s-10: 40px; --ds-s-12: 48px;

  /* THE DENSE TIER (card P3937 round 5, the CTO call of 11/28/2026): half steps for the dense tools (the Designer, its panels and the shared tool sheets),
     where a raw size of the same value already sits. A new size takes a scale step above; a dense tool may take one of these; a tuned measurement with no
     step takes a role token in the Designer tier below, one per role. Each moves a raw size to a token of the SAME value, so nothing a person sees moves. */
  --ds-s-0-5: 2px;  --ds-s-1-5: 6px;  --ds-s-2-5: 10px; --ds-s-3-5: 14px;
  --ds-fs-micro: 11px;                 /* the micro type step: a dense tool's count, key or tag text, one step under the 12 px caption */
  --ds-r-3xs: 2px;  --ds-r-2xs: 3px;   /* the small corners of the dense tools: a 2 px tick or bar end, a 3 px chip in a band */

  /* THE DESIGNER TIER (card P3937 round 5): role tokens at today's value for a tuned measurement with no step, ONE per role (what the size does), each with
     its role. A role token is never a second name for a step: a value that equals a step reads the step. */
  --ds-fs-dense-tuned: 12.5px;         /* the Designer's tuned dense text: inspector group names, editor rows, the explode and fronts buttons */
  --ds-fs-dense-small: 11.5px;         /* the Designer's tuned small text: sub-labels and hints under a dense row */
  --ds-r-panel-tuned: 10px;            /* the Designer's tuned card and tile corner, between the 8 px control and the 12 px panel */
  --ds-fs-help-glyph: 10px;            /* the "?" glyph inside the shared 16 px help button (shared/bws-help.css) */

  /* THE TUNED TIER (card P3937 round 5, lane p3937-wf-r3, the CTO call of 11/28/2026): every raw size left on a signed-in page or a shared sheet it loads
     after the steps and the dense tier, moved to a token of the SAME value so nothing a person sees moves. One token per role; a role that several
     rules share reads one token. Never for a new size: a new size takes a step, a dense tool a half step. */
  --ds-s-0: 0px;                       /* zero as a length: inside calc(), max() or min(), or a custom property a calc() reads, where a bare 0 is invalid */
  --ds-s-hairline: 1px;                /* a one pixel nudge: a pill's block pad, a stacked line's gap, and (negated) the overlap of joined controls */
  /* One pixel in from a step: most are a bordered control's pad (the step less its 1 px border, so the content sits on the step); the Designer's
     tuned gaps between a chip's parts take them too. */
  --ds-s-1-in: 3px;  --ds-s-1-5-in: 5px;  --ds-s-2-in: 7px;  --ds-s-2-5-in: 9px;  --ds-s-3-in: 11px;  --ds-s-3-5-in: 13px;  --ds-s-4-in: 15px;
  /* The tuned panel, card and studio pads between the steps (the setup studio, the wizard panel, the cabinet card, the quote sheet). */
  --ds-s-4-5: 18px;  --ds-s-5-5: 22px;  --ds-s-6-5: 26px;  --ds-s-7: 28px;  --ds-s-7-5: 30px;
  --ds-s-search-seat: 36px;            /* the search field's inline pad that seats its magnifier and its clear button */
  --ds-s-row-indent: 52px;             /* the project list's moved-row indent, under the row's icon and name */
  --ds-s-page-foot: 80px;              /* the room under a long page's last section, so it clears the floating chips */
  --ds-inspector-w: 340px;             /* the side inspector's width: the Designer's cabinet side panel, the systainer inspector */
  --ds-drawer-w-wide: 580px;           /* the wide drawer: the joinery page's detail drawer, wider than the 480 px drawer */
  --ds-r-xs-out: 5px;                  /* a key cap's corner (a kbd, a tab chip, a material tag): one pixel out from the 4 px corner */
  --ds-r-md-in: 7px;                   /* a control seated one pixel inside an 8 px box, so the two corners run parallel */
  --ds-r-md-out: 9px;                  /* the tuned button and field corner of the setup studio and the panels, one pixel out from the 8 px control */
  --ds-r-lg-in: 11px;                  /* a menu seated one pixel inside a 12 px panel */
  --ds-r-lg-out: 13px;                 /* the systainer cabinet's tuned card corner, one pixel out from the 12 px panel */
  --ds-r-card-tuned: 14px;             /* the Designer's tuned dialog, preset and cabinet card corner, between the 12 px panel and the 16 px sheet */
  --ds-r-bar-pill: 22px;               /* the marketing bar's folded pill corner (shared/site-header.css under 900 px) */
  --ds-fs-tick: 9px;                   /* the smallest tick text: a drawer heights column head */
  --ds-fs-tier: 9.5px;                 /* the studio nav's tier tag */
  --ds-fs-count: 10.5px;               /* a count, a tag or a status beside a name (folder counts, project status, rail group heads) */
  --ds-fs-read-tuned: 13.5px;          /* the tuned reading text of a card and the AI chat's steps, confirm rows and recap */
  --ds-fs-lead: 15px;                  /* a lead line, a call to action and a small card title */
  --ds-fs-head-tuned: 17px;            /* a tuned sub-section head, the zoom glyph and a quote's grand total */
  --ds-fs-head: 18px;                  /* a dialog or studio head, a close glyph and an inspector stat */
  --ds-fs-stat: 19px;                  /* a peek stat number and the quote's company name */
  --ds-fs-display-sm: 22px;            /* the first-open welcome title */
  --ds-fs-total: 26px;                 /* the job estimate's total */
  --ds-fs-display: 28px;               /* a hero title and the boot screen's mark */
  /* Relative type of the shared sheets and tools (a rem reads the page's root size, so a px token would not be the same value). */
  --ds-fs-credit-sm: .58rem;           /* the top bar's brand credit line */
  --ds-fs-credit: .62rem;              /* the suite brand's credit line */
  --ds-fs-tag-xs: .625rem;             /* a tool's smallest tag (the systainer bank's 2xs step) */
  --ds-fs-table-head: .68rem;          /* a dense table's column head (the slide datums table) */
  --ds-fs-tag: .6875rem;               /* a tool's small tag (the systainer bank's xs step) */
  --ds-fs-meta: .72rem;                /* a meta line under a name: a cabinet's meta, a spacer tile's size and use, the breadcrumb credit */
  --ds-fs-note-sm: .74rem;             /* a scale note under a drawing */
  --ds-fs-action: .75rem;              /* a dialog's action button and intro line */
  --ds-fs-help-sub: .76rem;            /* the quick help's sub-line */
  --ds-fs-label-sm: .78rem;            /* a small block label: the job notes title, a spacer tile's piece count */
  --ds-fs-note: .8rem;                 /* a category lead and a datum note */
  --ds-fs-dialog-title: .8125rem;      /* a dense dialog's title and its empty line */
  --ds-fs-sub: .82rem;                 /* a sub-line: the brand's sub, the return chip, a quiet row, a remark head, the local sign-in */
  --ds-fs-row: .86rem;                 /* a dense row's text: the quick help row, the gap handle, the breadcrumb, a dialog body */
  --ds-fs-bar-btn-sm: .87rem;          /* the marketing bar's button when the bar folds (under 1200 px) */
  --ds-fs-bar-link: .89rem;            /* the marketing bar's links and its More summary */
  --ds-fs-menu-link: .9rem;            /* the marketing bar's More menu link */
  --ds-fs-bar-btn: .92rem;             /* the marketing bar's button and the breadcrumb trail */
  --ds-fs-field: .95rem;               /* a field's text (the input field specimen) and the return chip's glyph */
  --ds-fs-brand: .96rem;               /* the suite brand's name */
  --ds-fs-close-glyph: 1rem;           /* a dense dialog's close glyph */
  --ds-fs-dialog-cat: 1.05rem;         /* a dense dialog's category title */
  --ds-fs-tile-num: 1.35rem;           /* a tile's big number (a spacer tile's height) */
  --ds-fs-display-2: 1.625rem;         /* a tool's second display size (the systainer bank) */
  /* Colors that read the same in both themes (a photo plate, a wizard or dialog scrim and lift): one value, so they sit here, not in a theme block. */
  --ds-photo-plate: #fff;              /* the plate a product photo sits on in the catalog picker, white in both themes */
  --ds-scrim-wizard: rgba(0, 0, 0, 0.62);                 /* the wizard panel's scrim (shared/bws-panel.css) */
  --ds-shadow-wizard: 0 24px 64px rgba(0, 0, 0, 0.28);    /* the wizard panel's lift */
  --ds-scrim-datums: rgba(20, 16, 12, 0.45);              /* the slide datums dialog's backdrop (shared/slide-datums-view.css) */
  --ds-shadow-datums: 0 18px 48px rgba(0,0,0,0.30);       /* the slide datums dialog's lift */

  --ds-h-sm: 28px; --ds-h-md: 36px; --ds-h-lg: 44px;
  --ds-row: 40px;  --ds-row-compact: 32px; --ds-row-menu: 36px;
  --ds-topbar-h: 48px; --ds-rail-w: 256px; --ds-rail-w-collapsed: 56px; --ds-dock-w: 380px; --ds-drawer-w: 480px;
  --ds-tools-h: 52px;                  /* the Designer's canvas tools strip (P3937 round 5, today's value) */
  /* The system's own state properties (card P3706, cut1129c item F), declared here the way --ds-rail-w is, so every --ds- name the system reads is a token:
     a menu, a toast and a drawer move through their pose and rest at none (P4227: an open state sets the pose, never a layout property; shared/ds/components.css
     sets each state's own), and the top bar's search box is 480 wide (P4309; shell.css's .ds-topbar sets the bar's own). */
  --ds-cmdbar-w: 480px; --ds-menu-pose: none; --ds-toast-pose: none; --ds-drawer-pose: none;
  /* The open menu's own width (card P3937, R3 of the 8:11 PM round; 256 since card P4292, so every name is written whole: "Gola Profile Configurator" and
     "Materials Cost Calculator" need about 237 px of row). --ds-rail-w is the gutter the page reads: 256 docked, 56 folded or below the dock line
     (shared/ds/shell.css). Below the dock line the menu opens over the page at this width while the page keeps its 56 gutter. */
  --ds-rail-w-open: 256px;
  /* THE MENU A PERSON WIDENS (card P4465 round 2, his words of 11/27/2026 about 9:07 PM: "make it so I can resize the left menu to make it wider. Right now,
     things are getting cut off, and I don't like that."). The drag handle on the menu's right edge (shared/ds/shell.js) takes it from --ds-rail-w-min to
     --ds-rail-w-max; 256 above stays the default a double-click puts back. --ds-rail-page-min is the room the dock line was set for (the Cut List's light
     row, 1224 of content at 1480 with the 256 menu): docked, a wider menu never leaves the page less (shared/ds/shell.css). */
  --ds-rail-w-min: 220px; --ds-rail-w-max: 420px; --ds-rail-page-min: 1224px;
  /* The menu's rows (card P4292): 28 tall, a 20 px icon, 14 px names, 10 px between the icon and the name and inside each row's left and right edges, so the
     icon's centre is 28 px from the window's edge both open (8 + 10 + 10) and collapsed (the 40 px column's centre), and no icon moves sideways.
     28, not 36 (card P4292 round 2, his bar of 11/24/2026: "A 2 year old should know how to navigate the entire website", nothing hidden behind a scroll):
     at 36 the cab menu with the Admin row was 1049 px in the 1016 px column at 1920 by 1080 (33 over, so it scrolled for him on every page) and 1283 on the
     Designer with its tools open (267 over: six rows under the foot). 28 keeps the 20 px icon and the 14/20 name and stays above the 24 px target; ONE menu
     density on every page of both doors. tests/p4292-r2-designer-menu-fit.test.cjs B1 sums the column from these tokens and fails a row that breaks the fit. */
  --ds-rail-row: 28px; --ds-rail-gap: 10px;
  /* A row's own rows (card P4420 round 2; the Designer's eight tools under its row, shell.css .ds-rail-sub): a step down in the menu's hierarchy, 24 tall
     (the 24 px hit target) with an 18 px icon. Collapsed they are the column's icons, one under another; open they stand four to a line (card P4292 round 2,
     shell.css .ds-rail-sub), each named by its tip on hover and on keyboard focus. */
  --ds-rail-sub-row: var(--ds-s-6); --ds-rail-sub-icon: 18px;
  /* THE COLLAPSED HEADING (card P4292 round 2): collapsed, a section heading is its hairline in an 8 px row and the 8 px gap between sections folds into it,
     so the 56 px column holds the Designer's eight tools, one under another, with every row in sight at 1920 by 1080 (1003 of 1016 px with Admin). Open,
     the heading keeps its 24 px row at 16/24 600 (a heading is never smaller than what sits under it). */
  --ds-rail-fold: var(--ds-s-2);
  --ds-content-max: 1440px;
  /* The reading measure (card P3937, the Opus review round 2, R4): the widest a line of running words may run, about 100 characters of body type. With the
     page cap gone the page takes the window, so words read this and data (a table, a report, a grid, a drawing) keeps the full width. A width, never a spacing. */
  --ds-prose-max: 720px;

  /* The extra small corner, 4: tick boxes (card P3937, FD1193 B). A corner of a quarter of the 16 px box or less reads as a box, not a round option button. */
  --ds-r-xs: 4px; --ds-r-sm: 6px; --ds-r-md: 8px; --ds-r-lg: 12px; --ds-r-xl: 16px; --ds-r-pill: 999px;

  /* Shadow shapes that are not elevation: a ring, a halo, a glow, a bar. A shape with no color is written var(--ds-ring-1) <color token>. */
  --ds-ring-1: inset 0 0 0 1px;
  --ds-ring-2: inset 0 0 0 2px;
  --ds-ring-out-1: 0 0 0 1px;
  --ds-ring-out-2: 0 0 0 2px;
  --ds-ring-out-3: 0 0 0 3px;
  --ds-ring-out-4: 0 0 0 4px;
  --ds-bar-start: inset 3px 0 0;
  --ds-rule-below: 0 1px 0;
  --ds-glow: 0 0 6px;
  --ds-halo-focus: 0 0 0 3px var(--ds-accent-soft);
  --ds-halo-guide: 0 0 0 6px color-mix(in srgb, var(--ds-accent) 22%, transparent);
  --ds-halo-guide-wide: 0 0 0 12px color-mix(in srgb, var(--ds-accent) 6%, transparent);

  --ds-ease-out: cubic-bezier(.23, 1, .32, 1);
  --ds-ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ds-ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ds-t-press: 100ms; --ds-t-hover: 120ms; --ds-t-menu-in: 120ms; --ds-t-menu-out: 80ms;
  --ds-t-rail: 180ms; --ds-t-dock: 200ms; --ds-t-modal: 160ms; --ds-t-toast: 200ms;

  /* P3937 (math cut 1120): the --ds-z-* scale (rail 20, topbar 30, drawer 40, menu 60, modal 70, palette 80, toast 90, tip 100) left this file. Rule R-29 keeps ONE stacking order, in shared/layers.css,
     and the shell and the components now read it: rail --layer-docked-sub, top bar --layer-docked, skip link --layer-docked-skip, drawer --layer-panel-drawer, menu --layer-menu, modal and scrim --layer-dialog,
     command palette --layer-dialog-system, tip --layer-teaching-tip, toast --layer-toast. The order among them is the same, except that a toast now sits over a tip, as layers.css says everywhere. */
}
