/* shared/ds/shell.css: the one app shell (spec section 2): top bar 48, left menu 256 or 56, page content.
   shell.js injects the bar and the menu; a page supplies only <main class="ds-main">. */
/* THE SHELL CARRIES THE INTER LATIN FACE (lane p0-1124-jam-shell-2 fix round, F5; card P4313 (3): "the left menu and the top bar stay still"). The face lived
   only in shared/theme.css, and two shell pages load no theme.css (All Projects and Send Feedback), so there the bar and the menu (and the page) were drawn in
   the system font, Chrome reported shell-head.js's preload "preloaded but not used" (nothing on the page asked for the file), and moving from Materials to All
   Projects every word of the bar and the menu changed font. This is theme.css's latin face, the same file and the same descriptors, so every shell page has
   it; where theme.css is loaded too the two rules name one file and it is fetched once. The family is Inter itself, the one family of the products
   (tests/site-lint/font-stack.cjs, R26), so the two pages' own text now reads Inter as every other page does. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/shared/vendor/fonts/inter/inter-latin-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* The body counts its top bar and rail padding inside its 100vh (Opus review round 2, R6): a content-box body was 1080 plus 48 tall in a 1080 window, so the
   window scrolled 48 px of nothing and a wheel slid the title row under the top bar. base.css sets border-box only on the body's children. */
body.ds-body { box-sizing: border-box; min-height: 100vh; padding-top: var(--ds-topbar-h); padding-left: var(--ds-rail-w); }
/* The menu is OPEN unless a person folded it (card P4292 replaced P3937's D1, his order of 11/24/2026: "A 2 year old should know how to navigate the entire
   website."). NO JUMP ON LOAD (Opus review round 2, R1): shared/ds/shell-head.js, in every shell page's head, puts the saved state on html before the first paint
   (data-ds-rail, and data-ds-shell="head"), so the first frame already has the person's gutter, 256 or 56. A page that has not run that head line yet paints
   at the open width from the dock line up (there is no collapsed default before the shell runs any more), the same width shell.js then keeps.
   A DRAWING PAGE (card P4374; docs/design-system/P4374-drawing-room.md) writes <html data-ds-rail="collapsed" data-ds-rail-default="collapsed"> in its own
   markup: the rule below draws its 56 column from the first byte, and shell-head.js and shell.js keep it unless the person opened the menu on a drawing page. */
/* THE MENU IS AS WIDE AS A PERSON MADE IT (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."). He drags the handle on the menu's right edge (shared/ds/shell.js, THE MENU'S
   WIDTH): his width, from --ds-rail-w-min to --ds-rail-w-max, is --ds-rail-w-user on html's own style, put there by shared/ds/shell-head.js from
   bws:ds-rail:width before the first paint, so every page opens at his width with no jump. Docked open, the page's gutter (and so the menu, the cookie
   card's seat and every offset that reads --ds-rail-w) is his width, never so wide that the page keeps less than --ds-rail-page-min, the room the dock line
   was set for: at 1480 that is the 256 default, and from 1644 every width up to the most. With nothing dragged it is the 256 it was. Collapsed and below the
   dock line, the rules after this one decide, as before. Over the page below the dock line the menu opens at his width (the rule under THE DOCK LINE). */
:root { --ds-rail-w: min(var(--ds-rail-w-user, var(--ds-rail-w-open)), max(var(--ds-rail-w-open), 100vw - var(--ds-rail-page-min))); }
html[data-ds-rail="collapsed"] { --ds-rail-w: var(--ds-rail-w-collapsed); }
/* THE SLIDE (card P3937; card P4313, his Jam of 11/24/2026 at 3:34: "And then if I do collapse, that's nice. That's very nice doing that." on Hardware and the
   Designer, then on Materials: "It's got this little hesitation, and then it made a bunch of icons, then it went away. It didn't move smoothly.").
   THE MENU SLIDES, THE PAGE WAITS, THEN SETTLES ONCE (lane p0-1125-slide-and-outputs-frame, card P4313 (1): "the page content re-flows once, at the end,
   with no in-between state"). html data-ds-rail-anim (the armed flag) turns on these three transitions: the menu's width and its edge slide over --ds-t-rail,
   ease-in-out (the names stay written and the moving edge cuts them), and the body's padding has a zero-length transition that waits the slide's own length.
   So the page keeps its old room for the whole slide (nothing in it is laid out, painted or measured; a strip of its own ground opens beside the collapsing
   menu, and the opaque menu widens over it on an expand) and takes the new room in one step, in the frame the menu reaches its end width (the same start and
   the same --ds-t-rail). The right-hand controls never move. A reversal makes the waiting target the value the body still shows, so nothing moves; a keyboard
   toggle or a disarm removes the rule, which cancels the wait, so the page takes its end state at once with the menu.
   Only shell.js sets the flag, only for a pointer toggle (never on load, never for a keyboard toggle, never with reduced motion), and it takes the flag off when
   the menu's width transition ends or is cancelled, so the flag is on for exactly the slide (shell.js, THE SLIDE), and the Materials table's width hold lets go
   in the frame the page settles. WHY NOT THE OTHERS (DESIGN.md section 5, The slide): the live slide (the padding on every frame, 11/24) laid the page out 10 to
   12 times per slide (the 6:37 AM live check of 11/25/2026); a page that rides the edge by transform carries its right-hand controls 200 px with it, which F1
   of tests/e2e/journeys/p0-1124-jam-shell.test.mjs forbids; the same-document view transition cost about 600 ms before anything moved on a heavy page
   (Lane p0-1124-jam-shell fix round, the QA decision of 11/24/2026). */
html[data-ds-rail-anim] body.ds-body { transition: padding-left 0s linear var(--ds-t-rail); }
html[data-ds-rail-anim] .ds-rail { transition: width var(--ds-t-rail) var(--ds-ease-in-out); }
html[data-ds-rail-anim] .ds-rail-edge { transition: left var(--ds-t-rail) var(--ds-ease-in-out); }
/* THE MENU IS THE LAYER ABOVE THE WAITING PAGE (lane p0-1125-slide-and-outputs-frame, its own first run): on an expand the menu widens over the page, and a
   page bar docked above --layer-docked-sub (the Designer's Drawing tools bar at --layer-docked, the Cut List toolbar at --layer-docked-sub-top) painted over
   the widening menu for the whole slide. While armed the menu takes the layer it already takes when it opens over the page below the dock line. */
html[data-ds-rail-anim] .ds-rail { z-index: var(--layer-panel-side); }
/* REDUCED MOTION: no slide, only the end state (shell.js does not arm then either). THE PAGE TAKES ITS ROOM IN THE MENU'S OWN FRAME (lane
   p0-1125-slide-and-outputs-frame, journey J1 (h), red on 8c6ca6e038 too): a page's own reduced-motion rule that sets every element's transition-duration
   (materials.html: *, *::before, *::after { transition-duration: 0.01ms !important }) gave the body's default transition-property, all, a 0.01 ms run, so on
   Materials the menu reached 256 in one frame and the page took its room one frame later. The body's gutter never transitions under reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html[data-ds-rail-anim] body.ds-body, html[data-ds-rail-anim] .ds-rail, html[data-ds-rail-anim] .ds-rail-edge { transition: none; }
  body.ds-body { transition-property: none; }
}
/* PAGE TO PAGE IS NOT HERE (card P4313 (3), the main session's decision of 11/24/2026): a cross-document view transition tore the menu and the bar in its own
   frame-by-frame check, so it is the next round of P4313. A click on a menu row loads the page as before; shared/ds/shell-head.js still holds the new
   page's first render until the shell has drawn, so no page paints without the menu and the top bar. */
/* THE DOCK LINE (card P3937, R3 of the 11/22/2026 8:11 PM round; DESIGN.md, THE DOCK LINE). The menu docks open only on a window from 1480 px wide, the narrowest
   where the docked menu and every bar of every shell page still hold one row (the Cut List's light row needs 1224 px of content, its 1280 floor with the menu
   folded, measured; 1224 plus the 256 menu of card P4292 is 1480, where it was 1224 plus the old 232 rail, 1456). Below it this one query makes the page's gutter
   the 56 column whatever is saved, from the first frame, and tells shell.js and shell-head.js so (--ds-rail-dock: 0): the menu draws as the thin column, and its
   toggle, the [ key and the palette row open the 256 menu OVER the page (html data-ds-rail-over) without moving it. Nothing here writes the person's choice. */
@media (max-width: 1479.98px) {
  :root { --ds-rail-dock: 0; --ds-rail-w: var(--ds-rail-w-collapsed); }
}
html[data-ds-rail-over] .ds-rail { --ds-rail-w: var(--ds-rail-w-user, var(--ds-rail-w-open)); z-index: var(--layer-panel-side); box-shadow: var(--ds-e-2); }
html[data-ds-rail-over] .ds-rail-edge { display: none; }

.ds-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: var(--layer-docked); height: var(--ds-topbar-h); display: flex; align-items: center; gap: var(--ds-s-2);
  padding: 0 var(--ds-s-4); background: var(--ds-surface-1); border-bottom: 1px solid var(--ds-hairline); }
/* THE PAGE TOOLS BAR JOINS THE TOP BAR AS ONE BLOCK (card P4331, his Jam of 11/24/2026 10:06 PM: "you have this bar at the top with the white background, but
   then you have this with the white background. Then you have this with the white background. It's very confusing to see where something starts and
   finishes."; docs/design-system/hierarchy-and-layers.md, THE LAYERS). A page's own tools bar directly under the top bar carries .ds-pagebar in its static
   HTML: it takes the top bar's ground and draws the block's ONE edge, and the top bar's own line turns transparent (its 1 px width kept, so no height moves),
   from the first painted frame. THE RULE BESIDE IT: what sits under the joined block is never surface-1 edge to edge; the work sits on its own ground. */
.ds-pagebar { background: var(--ds-surface-1); border-bottom: 1px solid var(--ds-hairline); }
body:has(.ds-pagebar) .ds-topbar { border-bottom-color: transparent; }
.ds-brand { display: inline-flex; align-items: center; flex: none; gap: var(--ds-s-2); color: var(--ds-text); font-size: var(--ds-fs-body); font-weight: 600; text-decoration: none; margin-right: var(--ds-s-1); }
.ds-brand:hover { text-decoration: none; }
.ds-brand img { width: 24px; height: 24px; border-radius: var(--ds-r-sm); display: block; }
/* The left side always has the bar's full height, so the brand stays centered whatever the project switcher does, and a switcher taller than the bar (a name that needs a
   third line, card P3937 E1) starts 4 px below the top and grows down instead of being cut by the window's top edge. The second align-items wins where the browser knows
   safe alignment; an older browser keeps plain center. */
.ds-topbar-left { display: flex; align-self: stretch; align-items: center; align-items: safe center; gap: var(--ds-s-2); flex: 1; min-width: 0; }
.ds-topbar-right { display: flex; align-items: center; gap: var(--ds-s-2); flex: 1; justify-content: flex-end; }
/* The search box's width is ONE value (card P4309), read by the search box and by the Unit Converter button that sits 8 px to its right, so the two never
   drift apart. */
.ds-topbar { --ds-cmdbar-w: 480px; }
.ds-cmdbar { display: flex; align-items: center; gap: var(--ds-s-2); box-sizing: border-box; width: var(--ds-cmdbar-w); height: 32px; padding: 0 var(--ds-s-3); border: 0; border-radius: var(--ds-r-md); background: var(--ds-surface-2);
  /* P4202 (folded into P3937, round 5): the box edge is the system's control edge, 3 to 1 on the band (Linen Ink 3.48, Midnight Oak 3.77; the
     fill alone read 1.17 and 1.05). Painted inset, so no box, padding or container query width moves and the shrink order stays as it is. */
  box-shadow: inset 0 0 0 1px var(--ds-border-control);
  color: var(--ds-text-2); font: inherit; font-size: var(--ds-fs-body); cursor: pointer; text-align: left; transition: background-color var(--ds-t-hover) var(--ds-ease-out); }
.ds-cmdbar:hover { background: var(--ds-surface-3); }
.ds-cmdbar > span:first-of-type { flex: 1; }

/* ---- THE UNIT CONVERTER (card P4309) IS A ROW OF THE MENU NOW (card P4420, his words of 11/25/2026: "Move it to the menu on the left side, underneath Tools")
   The top bar's ruler (.ds-ucbtn) is gone; the row's rules are with the menu's below (THE UNIT CONVERTER ROW). */

/* ---- THE BAR SEAT (card P3937, lane p3937-pages-complete, R1 of the 11/22/2026 8:11 PM round; docs/plans/2026-11-22-p3937-collapsible-rail/DESIGN.md, THE BAR SEAT) ----
   shell.js places what a page marks data-ds-bar-seat (the Cut List's steps and its Problems sign) or hands to BWS.dsShell.seat (the Designer's band) between the
   left group and the command bar, and marks the bar ds-topbar--seated. The two groups then take their own width, a seated element its own (never squeezed; an
   empty one takes no room and no gap, as the StackDesign door's empty steps slot), and the command bar its own fixed place at the right (below).
   THE END SEAT (card P3890, round p3890-w2f-r1, slice 2: the step track at the right end of the bar on every page): shell.js places what a page marks
   data-ds-bar-seat="end" (the Buy List's and the Cut List Optimizer's steps) after the command bar, directly before the right group, and the two seat rules
   below name the mark with no value, so they hold for the end seat too: its own width, never squeezed, no margin of its own, and nothing drawn when it is
   empty (the StackDesign door empties the Cut List's steps slot, so no steps stand there in any frame, P4313 F6). No rule here moves anything by order. */
.ds-topbar--seated > .ds-topbar-left, .ds-topbar--seated > .ds-topbar-right { flex: none; }
.ds-topbar > [data-ds-bar-seat] { display: flex; align-items: center; flex: none; min-width: 0; margin: 0; }
.ds-topbar > [data-ds-bar-seat]:empty { display: none; }
/* THE SEARCH KEEPS ITS PLACE (lane p0-1124-jam-shell-2, UPDATE 3; card P4313 (3); his words: "nothing that moves while it loads", "The idea is a SEAMLESS user
   experience."). The command bar in the flow was centred in the room the seat and the switcher left it, up to 480 px, so its place and its width followed
   whatever they held, and they fill after the first frame: on Outputs the steps arrived in the seat and the search went from x 980, 480 wide in frame 1 to x
   1395, 344 wide in frame 90; on the StackDesign planner the switcher went from "Loading..." to the plan's name and the search moved with it. Now it stands at
   the right end of the bar's middle, beside AI Designer, at the width of its words and its Cmd K key (248 px of content, the container rule below, plus its
   two side paddings), whatever the seat or the switcher holds or will hold: the free room is the seat's, to its left (at 1920 by 1080 the seat has to x
   1459, where Outputs' steps end at 1387). It never grows into that room. It gives width back only when the bar is truly full (a narrow window): the key
   first, then the words, as before. Since card P3890 slice 2 (round p3890-w2f-r1) a page's steps stand in the END SEAT, after the search and before AI
   Designer, so the same rule now stands the search just left of the track; the steps are drawn in the first frame, so it still never moves after it.
   THE RULER RIDES WITH IT (card P4309): the Unit Converter button is the search box's next sibling, so it stands one bar gap (8 px) to its right, between it
   and AI Designer (the search box has no right margin). The ruler takes no auto margin: a second auto margin would split the free room and pull the search
   box back to the middle of it. With the ruler the seat has to x 1419 at 1920 by 1080 (Outputs' steps end at 1387). */
.ds-topbar--seated > .ds-cmdbar--flow { margin-left: auto; }
/* THE COMMAND BAR IN THE FLOW is the first thing to give width back and never cuts a word. It is its own size container, so what it shows follows the width it was
   given: the words and the Cmd K key from 248 px of its content box (measured 11/22/2026 at 14 px Inter: the icon 16, the words 171.2, the key 36.5 and two 8 px
   gaps need 240), the words alone from 204 (they need 196), the search icon alone, centred, below that. Its aria-label names it in every state. */
.ds-cmdbar--flow { flex: 0 1 calc(248px + var(--ds-s-3) * 2); width: auto; min-width: calc(var(--ds-s-3) * 2 + 16px); max-width: 480px; overflow: hidden; container: ds-cmdbar / inline-size; }
.ds-cmdbar--flow > span:first-of-type { white-space: nowrap; }
/* THE KEY IS WHOLE OR NOT SHOWN (card P4309; the Designer's live check of 11/24/2026, 8:24 PM: on Windows and Linux, with a cabinet selected in Floor Plan
   and 3D, the 272 px command bar drew its key as "Ctrl" over "K" on two lines; the Mac's narrower Cmd K fitted). The rungs below were measured with the Mac's
   key, so they cannot know how wide another platform's key is, and no number here tries to. The key never wraps inside itself and never shrinks. In the
   flow the command bar may wrap its row: a key that does not fit whole beside the words moves to a second row, which starts below the bar's own height
   (the search icon takes the bar's full height, so the first row always does, and the icon still draws 16 px in its middle) and is clipped by the bar's
   overflow. So the key is shown whole on one line or not at all, on every platform and in every font, and the words "Search or run a command" keep their
   place on the first row, whole. The centred bar is 480 wide and always holds both. */
.ds-cmdbar > .ds-kbd { flex: none; white-space: nowrap; }
.ds-cmdbar--flow { flex-wrap: wrap; }
.ds-cmdbar--flow > .ds-i { height: 100%; }
/* UNDER THE 1280 APPLICATION FLOOR a seated bar gives back its own spacing before a page gives back a word: its side padding and its gaps step down one
   token each, and the command bar's icon-only floor takes the smaller padding (40 to 32 px). Measured 11/22/2026: at 1169 px with nothing selected the
   Designer's band was 23.7 px short of one row with the AI Designer word his FD234 and FD293 keep there; this gives 32. Spacing only: no control and no word. */
@media (max-width: 1279.98px) {
  .ds-topbar.ds-topbar--seated { gap: var(--ds-s-1); padding-left: var(--ds-s-2); padding-right: var(--ds-s-2); }
  .ds-topbar--seated .ds-cmdbar--flow { min-width: calc(var(--ds-s-2) * 2 + 16px); padding-left: var(--ds-s-2); padding-right: var(--ds-s-2); }
}
@container ds-cmdbar (max-width: 247.98px) { .ds-cmdbar > .ds-kbd { display: none; } }
@container ds-cmdbar (max-width: 203.98px) {
  .ds-cmdbar > span:first-of-type { display: none; }
  .ds-cmdbar > .ds-i { margin: 0 auto; }
}
/* THE STEPS IN THE BAR, painted from this ONE rule wherever a page seats them (the Designer's band, the Cut List's slot): shared/workflow-stepper.js paints its
   bar form ([data-wf-bar]) for the old dark bar, and the shell's bar is light, so every state is painted again here from --ds-* tokens, one class heavier than
   the stepper's own rules, with the values Outputs paints its steps with. PAINT AND THE BUTTON'S CORNER AND HEIGHT ONLY: a page's own layout rules for its steps
   (the Designer's width ladder, .cd-topband .wf-step, P280, P436) stay its own. Moved here from cabinet-designer.html's P3937 round 2 F1 block (FD1219 B, his
   FD1149 A), so no page keeps a copy.
   THE STEP YOU ARE ON IS THE ONE FILLED SHAPE IN THE BAR (card P4405; his words of 11/25/2026 about 9:00 PM, on Outputs, with a picture: "Why is Cutlist
   Optimizer highlighted when I am on "Outputs" ?"). The way forward used to wear the accent fill and the current step a thin underline, so the next step read
   as the selected one. Now the current step wears the fill, the look of the selected view beside it on the Designer (7.3 to 1 on the bar in Linen Ink, 5.9 in
   Midnight Oak), with no underline; the way forward is still the one button among the steps, the accent's soft fill with the accent as its words and as its
   edge all the way round (the edge 7.3 and 5.9 to 1 on the bar, the fill 1.2), so it invites a click and never looks like the step you are on. */
.ds-topbar [data-wf-bar] .wf-stepper { gap: var(--ds-s-2); }
.ds-topbar [data-wf-bar] .wf-step { color: var(--ds-text-2); border-radius: var(--ds-r-md); }
.ds-topbar [data-wf-bar] .wf-badge { background: var(--ds-surface-3); color: var(--ds-text); }
.ds-topbar [data-wf-bar] .wf-step.wf-done .wf-badge { background: var(--ds-accent-soft); color: var(--ds-accent); }
.ds-topbar [data-wf-bar] a.wf-step:hover,
.ds-topbar [data-wf-bar] button.wf-step:not(.wf-blocked):hover { color: var(--ds-text); background: var(--ds-surface-2); }
.ds-topbar [data-wf-bar] .wf-step.wf-current { color: var(--ds-accent-on); background: var(--ds-accent); box-shadow: none; }
.ds-topbar [data-wf-bar] .wf-step.wf-current .wf-badge { background: var(--ds-accent-on); color: var(--ds-accent); }
.ds-topbar [data-wf-bar] .wf-step.wf-current::after { content: none; }
/* the forward button: the accent's soft fill, the accent as its words (5.9 to 1 on the fill in Linen, 4.9 in Midnight Oak, from tokens.css) and as its edge, the
   --ds-ring-1 shape inside the box, no filter; under a pointer the edge doubles (--ds-ring-2) and it still never takes the fill */
.ds-topbar [data-wf-bar] a.wf-step.wf-fwd,
.ds-topbar [data-wf-bar] button.wf-step.wf-fwd { min-height: var(--ds-h-sm); border-radius: var(--ds-r-md); background: var(--ds-accent-soft); color: var(--ds-accent); box-shadow: var(--ds-ring-1) var(--ds-accent); filter: none; }
.ds-topbar [data-wf-bar] a.wf-step.wf-fwd:hover,
.ds-topbar [data-wf-bar] button.wf-step.wf-fwd:not(.wf-blocked):hover { background: var(--ds-accent-soft); color: var(--ds-accent); box-shadow: var(--ds-ring-2) var(--ds-accent); filter: none; }
/* the forward button's number (card P4405; his words of 11/25/2026: "The number 2 is missing next to outputs."): the accent as its circle and the accent's own
   ink as the number (7.3 to 1 in Linen, 6.4 to 1 in Midnight Oak), one class heavier than the stepper's own rule for it, which paints the old dark bar */
.ds-topbar [data-wf-bar] .wf-step.wf-fwd .wf-badge { background: var(--ds-accent); color: var(--ds-accent-on); box-shadow: none; }
.ds-topbar [data-wf-bar] .wf-step:focus-visible,
.ds-topbar [data-wf-bar] .wf-step.wf-fwd:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 2px; }
/* the blocked chip (the design cannot go on yet): the quiet ink, no fill, the system's control edge; it answers a click */
.ds-topbar [data-wf-bar] .wf-step.wf-next.wf-blocked { color: var(--ds-text-2); background: transparent; box-shadow: inset 0 0 0 1px var(--ds-border-control); }
.ds-topbar [data-wf-bar] .wf-step.wf-next.wf-blocked:hover { color: var(--ds-text); background: var(--ds-surface-2); }
.ds-topbar [data-wf-bar] .wf-arrow,
.ds-topbar [data-wf-bar] .wf-blocker-line,
.ds-topbar [data-wf-bar] .wf-note-line { color: var(--ds-text-2); }
.ds-topbar [data-wf-bar] .wf-blocker-dot { background: var(--ds-text-2); }
.ds-topbar [data-wf-bar] .wf-note-ico { border-color: var(--ds-text-2); }
/* The AI Designer words never wrap (Opus review round 2, R8: on the Outputs page the steps crowded the bar and "AI Designer" took two lines in a 28 px button).
   The button keeps its whole width (flex none, nowrap), so the right side's least width is its real width and the search, which can narrow, gives way first.
   AI DESIGNER READS AS A BUTTON (card P4405; his words of 11/25/2026, with a picture of the bar: "The AI designer doesn't look like it's a button"). It had no
   fill and no edge at rest, so it read as a label beside the steps. It is now the bar's own secondary button, the look of Share on a project page
   (.ds-btn--secondary): the first surface as its fill and the system's control edge all the way round (3.48 to 1 on the bar in Linen Ink, 3.77 to 1 in Midnight
   Oak, the P4203 edge). The edge is the --ds-ring-1 shape, drawn inside the box, so the button is exactly the size it was (28 px tall, the same width) and
   nothing beside it moves on any page. Hover is the second surface, a press the third, keyboard focus the system's ring (.ds-body :focus-visible, base.css),
   and while its panel is open the accent's soft fill with the accent as its edge and its icon.
   AI DESIGNER IS THE BAR'S PRIMARY BUTTON (card P4512; his words in chat, 11/28/2026 about 3:20 PM, with his Jam 953ddb03: "Also, I want the AI designer button
   to stand out more."). The secondary look above read as the quietest peer of the help icon and Cabinet editor, lighter than the filled steps and Add from
   catalog, and open it wore the very look of the "Next:" step beside it. It now wears the bar's own pair the other way round: the main text colour
   (--ds-text) as its solid fill and the bar's ground (--ds-surface-1) as its words and its sparkles, at 600. No other control of the bar wears that fill,
   and it carries no accent at rest, so it never reads as a step: the step you are on keeps the accent fill, the forward step its soft fill and accent edge
   (P4405). By the tokens the fill reads 15.6 to 1 on the bar in Linen Ink and 14.4 in Midnight Oak (the current step's accent 7.3 and 5.9 in CabDesign, 6.5
   and 9.0 in StackDesign), and the words read the same on the fill. The fill is its own edge, so no ring is drawn, and the box is the box it was (28 px,
   padding 0 10px, no border), so nothing beside it moves and the bar's fitter sheds the word exactly as before. Hover lifts the fill 15 percent toward the
   bar, a press 30 percent with the system's small press, keyboard focus is the system's ring (base.css), and while its panel is open it takes the accent
   fill with the accent's own ink (the system's primary button, .ds-btn--primary, hover included), the bar's "this is on" colour. The icon draws in the words'
   colour in every state. tests/p4512-ai-button-primary.test.cjs measures every pair in both themes on both products. */
.ds-aibtn { display: inline-flex; align-items: center; flex: none; gap: var(--ds-s-2); height: var(--ds-h-sm); padding: 0 var(--ds-s-2-5); border: 0; border-radius: var(--ds-r-md); background: var(--ds-text); color: var(--ds-surface-1); font: inherit; font-size: var(--ds-fs-body); font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color var(--ds-t-hover) var(--ds-ease-out), color var(--ds-t-hover) var(--ds-ease-out), transform var(--ds-t-press) var(--ds-ease-out); }
.ds-aibtn:hover { background: color-mix(in srgb, var(--ds-text) 85%, var(--ds-surface-1)); }
.ds-aibtn:active { background: color-mix(in srgb, var(--ds-text) 70%, var(--ds-surface-1)); transform: scale(.97); }
.ds-aibtn[aria-pressed="true"] { background: var(--ds-accent); color: var(--ds-accent-on); }
.ds-aibtn[aria-pressed="true"]:hover { background: var(--ds-accent-hover); }

/* THE ONE MENU (card P4292). The menu box never scrolls as a whole: the toggle sits on top, the sections in the middle (the one part that scrolls on a short
   window) and the pinned foot (Admin for a platform admin, All Projects, Shop Details, Account Settings, Help; card P4410 moved the quote row up into the
   Project section as Quotation System, his words of 11/25/2026) at the bottom with a hairline above it. */
.ds-rail { position: fixed; top: var(--ds-topbar-h); left: 0; bottom: 0; z-index: var(--layer-docked-sub); width: var(--ds-rail-w); display: flex; flex-direction: column; padding: var(--ds-s-2);
  background: var(--ds-surface-1); border-right: 1px solid var(--ds-hairline); overflow: hidden; }
.ds-rail-head { display: flex; flex: none; margin-bottom: var(--ds-s-2); }
.ds-rail-body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.ds-rail-foot { flex: none; margin-top: var(--ds-s-2); padding-top: var(--ds-s-2); border-top: 1px solid var(--ds-hairline); }
.ds-rail-section + .ds-rail-section { margin-top: var(--ds-s-2); }
/* A section's heading is a plain word, not a control and not a tab stop; it never folds its rows.
   A HEADING IS NEVER SMALLER, LIGHTER OR FAINTER THAN WHAT SITS UNDER IT (card P4331, his Jam of 11/24/2026 10:06 PM: "It's very small text. ... if it's
   smaller than what's underneath it, then I'm blocked. ... It's always bigger. This is always bigger than this. And it should be bolded and maybe different
   color. You know, black. Make it pop out."; docs/design-system/hierarchy-and-layers.md). The section grade, 16/24 at 600 in the main text colour, over the
   14 px rows. The row stays 24 px (--ds-s-6) with the same padding, so no row moves; collapsed it is the hairline below, as before. */
.ds-rail-heading { display: flex; align-items: center; min-height: var(--ds-s-6); padding: 0 var(--ds-rail-gap); font-size: var(--ds-fs-section); line-height: var(--ds-lh-section); font-weight: var(--ds-fw-section);
  letter-spacing: var(--ds-ls-section); color: var(--ds-text); }
/* A row and the toggle: 28 tall since card P4292 round 2 (36 before), a 20 px icon, the name in 14 px beside it, 10 px between them and inside each edge (tokens.css --ds-rail-row, --ds-rail-gap).
   A name is never cut: no ellipsis and no clip (the widest, "Materials Cost Calculator" semibold, fits the row's 189 px for words at 256; a longer one
   wraps inside its row, EVERY MENU WORD READS WHOLE below). */
.ds-rail-item, .ds-rail-toggle { display: flex; align-items: center; gap: var(--ds-rail-gap); width: 100%; min-height: var(--ds-rail-row); padding: 0 var(--ds-rail-gap); border: 0; border-radius: var(--ds-r-md);
  background: transparent; color: var(--ds-text); font: inherit; font-size: var(--ds-fs-body); line-height: var(--ds-lh-body); text-decoration: none; text-align: left; cursor: pointer;
  transition: background-color var(--ds-t-hover) var(--ds-ease-out); }
.ds-rail-toggle { flex: none; color: var(--ds-text-2); }
.ds-rail-toggle:hover { background: var(--ds-surface-2); color: var(--ds-text); text-decoration: none; }
/* THE POINTING TINT (card P4313 (3), lane p0-1124-jam-shell-2, C3): a row a person points at takes half the current row's fill, so pointing, clicking and
   arriving only ever move it one way, plain to half chosen to chosen (the click moves the marking at once, shell.js). The current row's rule below wins
   over it (the same specificity, written after it). The toggle keeps --ds-surface-2. */
.ds-rail-item:hover { background: color-mix(in srgb, var(--ds-rail-current-fill) 50%, var(--ds-surface-1)); color: var(--ds-text); text-decoration: none; }
.ds-rail-item:focus-visible, .ds-rail-toggle:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: -2px; }
.ds-rail-item > .ds-i, .ds-rail-toggle > .ds-i { flex: none; width: 20px; height: 20px; color: var(--ds-text-2); }
.ds-rail-name { flex: 0 1 auto; min-width: 0; }
/* WHERE YOU ARE: the one current row has the accent's soft fill, a 3 px accent bar on its left edge (an inset shadow, so nothing moves), its name semibold and its
   icon in the accent. The same marking collapsed. The fill and the mark are tokens of their own (card P4292 fix round 1, F5): on the dark themes the accent's
   soft fill barely showed on the menu, so tokens.css gives each dark theme a clearer fill and a lighter mark (the bar 3 to 1 or more on the menu, the name and
   the icon 4.5 to 1 or more on the fill). */
.ds-rail-item[aria-current="page"] { background: var(--ds-rail-current-fill); box-shadow: inset 3px 0 0 var(--ds-rail-current-mark); }
.ds-rail-item[aria-current="page"] > .ds-i { color: var(--ds-rail-current-mark); }
.ds-rail-item[aria-current="page"] > .ds-rail-name { font-weight: 600; }
/* THE MARKING MOVES IN ONE FRAME (lane p0-1124-jam-shell-2 fix round, F1 and F2): the press moves the marking while the old page is still on screen, and the
   frame painted then must already show the new row chosen and the old row plain. Only pointing fades in (the row's 120 ms hover tint); a row that becomes or
   stops being the current one, and a row the pointer leaves, change at once. */
.ds-rail-item:not(:hover), .ds-rail-item[aria-current="page"] { transition: none; }
/* THE UNIT CONVERTER ROW (card P4420): the converter's own button drawn as a row (shell.js railRow), with the AI Designer button's pressed look while its card is
   open: the accent's soft fill and the icon in the accent. */
.ds-rail-uc[aria-pressed="true"] { background: var(--ds-accent-soft); }
.ds-rail-uc[aria-pressed="true"] > .ds-i { color: var(--ds-accent); }
/* A ROW'S TOOLS, BEHIND A CARET (card P4420; his words, 11/25/2026: "move the menu ... to underneath Designer, and make it a caret that expands it out").
   The row is the caret (shell.js withTools): an angle at its right end, pointing down while the tools are shown and right while they are folded, in the
   row's second text colour. Collapsed, the angle is a small mark in the column's corner of the row, so the row still says it opens. The tools sit under the
   row, a column of rows of their own (the page draws each tool, cabinet-designer.html), and take no room at all while folded. */
/* CARD P4465: the caret is its own button beside the row's link (never inside it), on every page, for every row with sections (shell.js withSections):
   the row and its caret share one line, the row taking the room the caret leaves. The angle turns, the button never moves. */
.ds-rail-line { position: relative; display: flex; align-items: center; }
.ds-rail-line > .ds-rail-item { flex: 1 1 auto; min-width: 0; width: auto; }
.ds-rail-caret { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--ds-rail-row); height: var(--ds-rail-row); margin: 0; padding: 0; border: 0;
  border-radius: var(--ds-r-md); background: transparent; color: var(--ds-text-2); cursor: pointer; }
.ds-rail-caret:hover { background: var(--ds-surface-2); color: var(--ds-text); }
.ds-rail-caret:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: -2px; }
.ds-rail-caret > .ds-i { width: 16px; height: 16px; transition: transform var(--ds-t-hover) var(--ds-ease-out); }
.ds-rail-caret[data-open="false"] > .ds-i { transform: rotate(-90deg); }
/* Collapsed (FD1220: every row its icon, one click goes there), the 56 px column has no room for a second control beside the row, and a button laid over
   the row's corner would be two controls in one place: so the caret steps aside and the row's corner carries a small angle drawn on the line (no control, no
   pointer), pointing down while its sections are shown and right while they are folded. The row works as in the open menu: on its own page a click opens and
   closes its sections (P4420), elsewhere it goes to its page, where its sections open by default. An open row's sections stay in the column as icons. */
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) .ds-rail-line > .ds-rail-item { width: 100%; }
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) .ds-rail-caret { display: none; }
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) .ds-rail-line::after { content: ''; position: absolute; right: 3px; bottom: 5px; width: 4px; height: 4px; pointer-events: none;
  border-right: 1.5px solid var(--ds-text-2); border-bottom: 1.5px solid var(--ds-text-2); transform: rotate(-45deg); }
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) .ds-rail-line:has(> .ds-rail-caret[data-open="true"])::after { transform: rotate(45deg); }
/* EVERY ROW'S SECTIONS ARE WORDED ROWS, ONE TO A LINE (card P4481; his Jam fc9835f9 of 11/27/2026, his pointer on the Designer's tools: "You need to move or
   change this back the way it was. The way it was this morning, it needs to go back to being like that. I do not like this. I never asked for this to be
   changed."; and on Project Setup: "The same as designer, but I didn't want just icons."). P4292 round 2 drew the Designer's tools four to a line as bare
   icons, to fit 1080 with no scroll; he had accepted the worded rows (FD1266 A), so they are back: each section a 24 px sub-row a step in under its row, a
   Designer tool its 18 px icon and its word, every other section its word, under its group heads. WORDS WIN OVER FIT: when the open lists run past the
   window, only the middle of the menu scrolls (.ds-rail-body above), the head and the foot stay. Icons alone only when the whole menu is collapsed to its
   column (below, outside the slide), one under another. tests/p4292-r2-designer-menu-fit.test.cjs B1 sums the menu with one tool to a line. */
.ds-rail-sub { display: block; padding-left: var(--ds-s-4); margin: 0 0 var(--ds-s-1); }
.ds-rail-sub[hidden] { display: none; }
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) .ds-rail-sub:not([hidden]) { display: flex; flex-direction: column; padding-left: 0; }
/* CARD P4465: THE SECTIONS UNDER A ROW. The Designer's tools drawn from the registry (off the Designer) read as the page's own: the icon in the second text
   colour and the word in the main one. A worded list (Project Setup, Buy List, Reports, Cut List Optimizer) is worded rows a step in, each the sub-row tall
   in the body size. A group head (Shop, Client, Vendor, Office; Project Setup's groups) is the entry's size and weight or more, in the main text colour,
   never smaller or paler than what sits under it; the section heads (Project, Library, Tools) stay larger than every row. The current section
   (aria-current="true", one per row) takes the soft fill without the row's bar, quieter than the row's own mark. */
.ds-rail-entry { display: flex; align-items: center; justify-content: center; gap: var(--ds-rail-gap); min-width: 0; min-height: var(--ds-rail-sub-row); border-radius: var(--ds-r-md); color: var(--ds-text-2); text-decoration: none; }
.ds-rail-entry:hover { background: color-mix(in srgb, var(--ds-rail-current-fill) 50%, var(--ds-surface-1)); color: var(--ds-text); text-decoration: none; }
.ds-rail-entry:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: -2px; }
.ds-rail-entry > .ds-i, .ds-rail-entry > .ic { flex: none; width: var(--ds-rail-sub-icon); height: var(--ds-rail-sub-icon); }
.ds-rail-entry > .ic { display: inline-flex; align-items: center; justify-content: center; }
.ds-rail-entry > .ic svg { width: 100%; height: 100%; }
/* the current section takes the current row's own fill (P4465 round 2, the design review): in the dark themes --ds-accent-soft read about 1.2 to 1 on the menu and the
   hover, half of --ds-rail-current-fill, outshone it; in the light themes the two tokens are one colour, so nothing there changes */
.ds-rail-entry[aria-current="true"] { background: var(--ds-rail-current-fill); color: var(--ds-accent); }
.ds-rail-sub[data-kind="words"] { display: block; padding-left: var(--ds-s-6); }
.ds-rail-sub[data-kind="words"] .ds-rail-entry { justify-content: flex-start; padding: 0 var(--ds-s-2); font-size: var(--ds-fs-body); line-height: var(--ds-lh-body); font-weight: var(--ds-fw-body); color: var(--ds-text-2); }
.ds-rail-sub[data-kind="words"] .ds-rail-entry[aria-current="true"] { color: var(--ds-text); font-weight: var(--ds-fw-emphasis); }
/* a Designer tool off the Designer: the page's own colours (cabinet-designer.html #ds-rail .cd-rail-tools .cd-rail-btn), the word in the main text, the icon
   in the second; the open (current) tool its icon in the accent, as the page's own pressed tool */
.ds-rail-sub[data-kind="words"] .ds-rail-entry--tool { color: var(--ds-text); }
.ds-rail-entry--tool > .ds-i, .ds-rail-entry--tool > .ic { color: var(--ds-text-2); }
.ds-rail-entry--tool[aria-current="true"] > .ds-i, .ds-rail-entry--tool[aria-current="true"] > .ic { color: var(--ds-accent); }
.ds-rail-mono { display: none; }
.ds-rail-subhead { display: flex; align-items: center; min-height: var(--ds-rail-sub-row); padding: 0 var(--ds-s-2); font-size: var(--ds-fs-body); line-height: var(--ds-lh-body); font-weight: var(--ds-fw-section); color: var(--ds-text); }
/* CARD P4465 ROUND 2, A HIERARCHY YOU CAN SEE (his words of 11/27/2026 about 8:20 PM, on his screenshot of the Project Setup sections in this menu: "first
   there is no proper indentation and 2nd the subheadings are super generic and short ... you don't have icons like you did for under Designer"). The heads
   stood at the very indent of their sections, in the same size, so nothing read as nested. Three steps now, each its own column: the row (its 20 px icon),
   a group head a step in from the row, then its sections a clear step in from the head, in the Designer tools' own indent and icon column (every Project
   Setup section carries its picture, scripts/nav.cjs SETUP_ICONS, so it is drawn as a tool is: its 18 px icon in the second text colour, its word in the
   main one, the icon by its first line). A head reads as a head: semibold in the main text colour at the entry's size (never smaller, P4331), no picture,
   a step out from the icon column and a little air above it; the same air stands before a group of one section, whose head is not drawn (shell.js
   subBox). Collapsed, a head and that gap are the column's hairline (the rule below, which these rules never outrank). */
.ds-rail-sub > .ds-rail-subhead { padding: 0; margin-left: calc(var(--ds-s-1) * -1); }
.ds-rail-sub > .ds-rail-entry + .ds-rail-subhead { margin-top: var(--ds-s-2); }
.ds-rail-subhead--gap { min-height: 0; }
/* the parent is never lighter than its heads (the design review of round 2): an open row whose sections stand under named heads (Project Setup) shows its name
   at the heads' weight, so its group heads never read heavier than the row they belong to */
.ds-rail-line:has(> .ds-rail-caret[data-open="true"]):has(+ .ds-rail-sub > .ds-rail-subhead:not(.ds-rail-subhead--gap)) > .ds-rail-item > .ds-rail-name { font-weight: var(--ds-fw-section); }
/* EVERY MENU WORD READS WHOLE (card P4465 round 2, item 1; the round 1 live check, a fresh browser on the Designer with Project Setup open at 1920 by 1080:
   "Joinery Type And Cabinet Groups" read "Joinery Type And Cabinet Grou"). A row, a section heading, a group head and a section entry were one line at a
   fixed height inside the 256 menu, whose overflow cut the end of a word too long for it. Now each is its least height (min-height, never a fixed height)
   and its words wrap: a word too long for its row takes a second line INSIDE the row, which grows, never cut and never an ellipsis (a single word wider
   than the row breaks rather than run past the edge). Each line of words keeps the row's own spacing: the words take half of what the row leaves beyond
   one line above and below them, so a one-line row is exactly the height and the place it was, and a two-line row has the same air at its top and foot.
   A Designer tool's icon stands by its first line (the tool row starts at its top and the icon is centred on the first sub-row). THE SLIDE IS KEPT (P4313
   F1, below): while html data-ds-rail-anim is on every word stays on its one line at its full width and the moving edge cuts it, so nothing reflows
   mid-slide; the collapsed column is unchanged (its fixed rows are the collapsed rules). */
.ds-rail-name, .ds-rail-word, .ds-rail-subhead > span, .ds-rail-heading > span { min-width: 0; overflow-wrap: anywhere; }
.ds-rail-name { margin-block: calc((var(--ds-rail-row) - 1lh) / 2); }
.ds-rail-sub[data-kind="words"] .ds-rail-entry > .ds-rail-word, .ds-rail-subhead > span { margin-block: calc((var(--ds-rail-sub-row) - 1lh) / 2); }
.ds-rail-sub[data-kind="words"] .ds-rail-entry--tool { align-items: flex-start; }
.ds-rail-sub[data-kind="words"] .ds-rail-entry--tool > .ds-i, .ds-rail-sub[data-kind="words"] .ds-rail-entry--tool > .ic { margin-top: calc((var(--ds-rail-sub-row) - var(--ds-rail-sub-icon)) / 2); }
html[data-ds-rail-anim] .ds-rail-heading, html[data-ds-rail-anim] .ds-rail-item, html[data-ds-rail-anim] .ds-rail-toggle, html[data-ds-rail-anim] .ds-rail-entry,
html[data-ds-rail-anim] .ds-rail-subhead { white-space: nowrap; }
html[data-ds-rail-anim] .ds-rail-name, html[data-ds-rail-anim] .ds-rail-word, html[data-ds-rail-anim] .ds-rail-subhead > span, html[data-ds-rail-anim] .ds-rail-heading > span { flex: none; }
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) .ds-rail-sub[data-kind="words"] .ds-rail-entry { justify-content: center; padding: 0; }
html[data-ds-rail="collapsed"] .ds-rail-word, html[data-ds-rail="collapsed"] .ds-rail-subhead > span { display: none; }
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) .ds-rail-mono { display: inline-flex; align-items: center; justify-content: center; width: var(--ds-rail-sub-icon); height: var(--ds-rail-sub-icon);
  border-radius: var(--ds-r-sm); box-shadow: var(--ds-ring-1) var(--ds-hairline); font-size: var(--ds-fs-caption); line-height: var(--ds-lh-caption); font-weight: var(--ds-fw-section); }
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) .ds-rail-subhead { height: 1px; min-height: 0; margin: var(--ds-s-1) var(--ds-s-2); padding: 0; background: var(--ds-hairline); }
/* The rail's right edge: a strip over the rail's own right padding (8 px), so a click on the rail's edge toggles it as the control does. It never reaches
   past the rail, where a page's own controls start (the Designer's tool rail sits flush against it). */
.ds-rail-edge { position: fixed; top: var(--ds-topbar-h); bottom: 0; left: calc(var(--ds-rail-w) - var(--ds-s-2)); width: var(--ds-s-2); z-index: var(--layer-docked-sub); cursor: pointer; }
.ds-rail-edge::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: transparent; transition: background-color var(--ds-t-hover) var(--ds-ease-out); }
.ds-rail-edge:hover::after { background: var(--ds-accent); }
/* THE EDGE IS THE MENU'S DRAG HANDLE WHILE IT IS OPEN (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"). Docked open, the same strip is a separator (shell.js): the resize cursor, a drag widens or narrows the menu from --ds-rail-w-min to
   --ds-rail-w-max with the page following, a double-click puts the 256 default back, and focused, the arrow keys step it. Its line is 2 px in the accent on
   hover, on keyboard focus and for the whole drag, so the edge he holds is plain. Collapsed, the strip is the click that opens the menu, as before. While
   he drags (html data-ds-rail-sizing) no words on the page are selected and nothing transitions. */
html:not([data-ds-rail="collapsed"]):not([data-ds-rail-over]) .ds-rail-edge { cursor: col-resize; touch-action: none; }
html:not([data-ds-rail="collapsed"]):not([data-ds-rail-over]) .ds-rail-edge::after { width: 2px; }
.ds-rail-edge:focus-visible { outline: none; }
.ds-rail-edge:focus-visible::after, html[data-ds-rail-sizing] .ds-rail-edge::after { background: var(--ds-accent); }
html[data-ds-rail-sizing], html[data-ds-rail-sizing] body { cursor: col-resize; user-select: none; -webkit-user-select: none; }
/* REPORT A BUG, THE LAST ROW OF THE FOOT ON EVERY PAGE (card P4481; his Jam fc9835f9: on the Cut List Optimizer it was missing; P4420: "the bug can go in the
   bottom-left corner so that it's down there, away from everything else"). shell.js seats its own #bws-bug-report-slot (.ds-rail-bugslot) last in the
   foot of every page that has none, and shared/bug-report.js draws its button into it once the session says signed in: a row of the foot like Help, its
   icon in the icon column and its name beside it open, the icon alone (its own title as the tip) collapsed. While a device holds a session the shell marks
   the empty slot held, so the row is there from the first paint and the button fills it in place; signed out, no mark and no row. The Designer keeps its
   own slot (.cd-rail-bugslot) and the same rules in its page (cabinet-designer.html, P4420). */
#ds-rail .ds-rail-bugslot { display: flex; width: 100%; margin-top: calc(var(--ds-s-1) / 2); }
#ds-rail .ds-rail-bugslot:empty:not([data-ds-foot-held]) { display: none; }
#ds-rail .ds-rail-bugslot[data-ds-foot-held]:empty { height: var(--ds-rail-row); }
#ds-rail #bws-bug-report-btn { display: flex; align-items: center; justify-content: flex-start; gap: var(--ds-rail-gap); box-sizing: border-box; width: 100%; height: var(--ds-rail-row);
  padding: 0 var(--ds-rail-gap); border: 0; border-radius: var(--ds-r-md); background: transparent; color: var(--ds-text); box-shadow: none;
  font-family: var(--ds-font); font-size: var(--ds-fs-body); line-height: var(--ds-lh-body); white-space: nowrap; cursor: pointer; }
#ds-rail #bws-bug-report-btn::after { content: attr(aria-label); }
#ds-rail #bws-bug-report-btn svg { flex: none; width: 20px; height: 20px; color: var(--ds-text-2); }
#ds-rail #bws-bug-report-btn:hover { background: color-mix(in srgb, var(--ds-rail-current-fill) 50%, var(--ds-surface-1)); }
#ds-rail #bws-bug-report-btn:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: -2px; }
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) #ds-rail #bws-bug-report-btn { justify-content: center; padding: 0; }
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) #ds-rail #bws-bug-report-btn::after { content: none; }
/* (its name hides in a nearly folded menu with the rows' names: the one container query on the menu, below) */
/* a gated row (P4304, the Admin row) that the person may not see: hidden, whatever display a row takes */
.ds-rail-item[hidden] { display: none; }
/* the status dot of a recent in the project switcher's menu */
.ds-rail-dot { flex: none; width: 8px; height: 8px; margin: 0 var(--ds-s-1); border-radius: var(--ds-r-pill); background: var(--ds-text-disabled); }
.ds-rail-dot[data-status="active"] { background: var(--ds-success); }
.ds-rail-dot[data-status="quoted"] { background: var(--ds-warning); }
/* the switcher with no project: "Open a project", a link to All Projects, drawn as the switcher */
a.ds-switcher, a.ds-switcher:hover { text-decoration: none; }
/* COLLAPSED: one icon per row, centered in the 40 px column, its name a tip to the right (shell.js); a heading is a 24 px wide hairline centered on the icon
   column (Opus review round 1, F2), in an 8 px row since card P4292 round 2 (below; it kept the heading's 24 px row before, F5, which the 1016 px column at
   1920 by 1080 cannot hold with the Designer's tools). The current row keeps its fill and its accent bar. */
html[data-ds-rail="collapsed"] .ds-rail-name, html[data-ds-rail="collapsed"] .ds-rail-heading > span { display: none; }
html[data-ds-rail="collapsed"] .ds-rail-item, html[data-ds-rail="collapsed"] .ds-rail-toggle { padding: 0; justify-content: center; }
html[data-ds-rail="collapsed"] .ds-rail-heading { justify-content: center; padding: 0; }
html[data-ds-rail="collapsed"] .ds-rail-heading::after { content: ""; width: var(--ds-s-6); height: 1px; background: var(--ds-hairline); }
/* card P4292 round 2: outside the slide, the collapsed heading's hairline stands in an 8 px row (--ds-rail-fold) and the gap between sections folds into it,
   so the 56 px column fits the window at 1920 by 1080 with the Designer's tools one under another (tokens.css --ds-rail-fold). Every icon keeps its x. */
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) .ds-rail-heading { height: var(--ds-rail-fold); min-height: 0; }
html[data-ds-rail="collapsed"]:not([data-ds-rail-anim]) .ds-rail-section + .ds-rail-section { margin-top: 0; }
/* NO "BUNCH OF ICONS" (card P4313, lane p0-1124-jam-shell fix round, F1): the collapsed look above waits for the END of the slide. The state flips at the
   click, so before this the first frames of a collapse were a 256 menu of icons alone. While html data-ds-rail-anim is on, every row keeps its open padding and
   every word and heading stays laid out on its one line, whatever the state: each icon stays at the same x (18 px open, 17.5 centred in the 56 column), and
   the menu's own overflow cuts the words as the edge moves (the head and the foot are cut at the same line as the middle). When the flag goes, the collapsed
   look applies and nothing moves. Expand is the mirror: the words are uncovered by the edge. */
html[data-ds-rail-anim][data-ds-rail="collapsed"] .ds-rail-name, html[data-ds-rail-anim][data-ds-rail="collapsed"] .ds-rail-heading > span { display: inline; }
html[data-ds-rail-anim][data-ds-rail="collapsed"] .ds-rail-item, html[data-ds-rail-anim][data-ds-rail="collapsed"] .ds-rail-toggle { padding: 0 var(--ds-rail-gap); justify-content: flex-start; }
html[data-ds-rail-anim][data-ds-rail="collapsed"] .ds-rail-heading { justify-content: flex-start; padding: 0 var(--ds-rail-gap); }
html[data-ds-rail-anim][data-ds-rail="collapsed"] .ds-rail-heading::after { content: none; }
html[data-ds-rail-anim] .ds-rail-head, html[data-ds-rail-anim] .ds-rail-foot { overflow-x: clip; }
/* NO WORDS IN A NARROW MENU (F1): while the edge slides, a menu narrower than 110 px shows its icons alone (and each heading its hairline, on the icon column),
   so a word is never seen in a menu that is nearly folded, and from 110 px up it always is (a menu wider than 120 px is never icons alone). The menu is its own
   size container, so this follows the moving edge on every frame. A container query reads the content box: 92.98 px is a 110 px menu less its two 8 px
   paddings and its 1 px edge. */
.ds-rail { container: ds-rail / inline-size; }
@container ds-rail (max-width: 92.98px) {
  html[data-ds-rail-anim] .ds-rail .ds-rail-name { visibility: hidden; }
  html[data-ds-rail-anim] #ds-rail #bws-bug-report-btn::after { visibility: hidden; }   /* card P4481: Report a Bug, the foot's row on every page */
  html[data-ds-rail-anim] .ds-rail .ds-rail-heading > span { display: none; }
  html[data-ds-rail-anim] .ds-rail .ds-rail-heading { justify-content: flex-start; padding: 0 var(--ds-s-2); }
  html[data-ds-rail-anim] .ds-rail .ds-rail-heading::after { content: ""; width: var(--ds-s-6); height: 1px; background: var(--ds-hairline); }
}

.ds-main { display: block; min-width: 0; }
/* 16 px above the title row, so it never sits flush under the top bar (judge round 3). THE PAGE TAKES THE WINDOW (card P3937, his FD1220: "With that menu bar on the
   left side always showing, you're limiting how much data you can see on the screen at once"): no cap on the page, so the 200 px a folded menu frees goes to the
   page's tables, reports, grids and drawings, never to empty margin. A reading width belongs to a column of running text or a form's field column inside the page
   (--ds-prose-max, a field's own max-width), never to the page. --ds-content-max is kept as a token for such a column. */
.ds-page { padding: var(--ds-s-4) var(--ds-s-8) var(--ds-s-12); }
.ds-page--wide { max-width: none; }
.ds-page[data-bleed] { max-width: none; }
.ds-page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-s-4); min-height: 56px; border-bottom: 1px solid var(--ds-hairline); margin-bottom: var(--ds-s-4); }
.ds-page-title { display: flex; align-items: center; gap: var(--ds-s-1); min-width: 0; }
/* THE TITLE ROW IS THE PAGE TITLE (card P4338, his Jam of 11/24/2026: "if it's smaller than what's underneath it, then I'm blocked"). The row that holds the h1
   took the body's 14/400 while the h1 inside it is 24/600, so the row read smaller than the buttons beside it. The row takes the title grade itself; anything
   else that sits in the row (Hardware's About The Library popover) keeps body type. Scoped to the title column, so the design-system page and the Floating Shelf
   Designer head, whose .ds-page-title wraps other things, do not change. No :not(h1) reset: it would beat .ds-body .help-q { font-size: 0 }. */
.ds-page-titlecol > .ds-page-title { font-size: var(--ds-fs-title); line-height: var(--ds-lh-title); font-weight: var(--ds-fw-title); color: var(--ds-text); }
.ds-page-titlecol > .ds-page-title .ds-popover { font-size: var(--ds-fs-body); line-height: var(--ds-lh-body); font-weight: var(--ds-fw-body); }
.ds-page-actions { display: flex; align-items: center; gap: var(--ds-s-2); }
.ds-page-titlecol { display: flex; flex-direction: column; min-width: 0; padding: var(--ds-s-2) 0; }
.ds-page-titlecol > p { margin: 0; font-size: var(--ds-fs-body); line-height: var(--ds-lh-body); color: var(--ds-text-2); }
.ds-page-intro { margin: 0 0 var(--ds-s-4); color: var(--ds-text-2); font-size: var(--ds-fs-body); }
/* THE READING MEASURE (Opus review round 2, R4): with the page cap gone a paragraph ran 1200 to 1712 px a line. Words keep --ds-prose-max (tokens.css, 720px);
   data (a table, a report, a grid, a drawing) keeps the full width. The page's own intro lines and every plain paragraph of a page read it here; running text
   in any other element takes the .ds-prose class (components.css 3.25) or reads the token in the page's own rule. A paragraph narrower than the measure is
   untouched. */
.ds-page-titlecol > p, .ds-page-intro, .ds-main p:not([class]) { max-width: var(--ds-prose-max); }
.ds-skip { position: absolute; left: var(--ds-s-2); top: -48px; z-index: var(--layer-docked-skip); padding: var(--ds-s-2) var(--ds-s-3); background: var(--ds-surface-1); border-radius: var(--ds-r-md); }
.ds-skip:focus { top: var(--ds-s-2); }

/* THE COOKIE CARD YIELDS TO AN OPEN MENU (card P4474, Erik Zamora's ask A4 of 11/13/2026, "not sure how to submit additional general feedback"; the Opus live
   check of 11/27/2026). On a first visit the cookie card (#bws-cookie-consent, shared/analytics.js, --layer-gate-consent) stood over the open account menu
   (--layer-menu) and covered its Feedback row: on the Designer from 1200 px wide card P4374 seats the card at the head of the side strip, the top right, the
   same column the account menu drops into from the avatar. While any design-system menu is open (.ds-menu[data-open="true"], set by shared/ds/ds.js
   showMenu and taken off by closeMenu: the account menu, the project switcher, the select menus, the context menus and the info popover) the card yields to
   --layer-docked-yield, above the bars and the rail and under every panel and menu. The card never moves; only its order changes while a person's own menu
   is open, and it is back on top in its own seat the moment the menu closes (the same idea as the Designer's rail-flyout rule of 9/15). The menu is the
   person's own, reversible choice; the card still stands above the sign-in gate, which a signed-out visitor cannot close (P1634). The selector's weight
   (1,2,1) beats the card's own #bws-cookie-consent and the Designer's P4374 seat, so no !important. tests/p4474-cookie-card-yields-to-open-menu.test.cjs
   and tests/e2e/journeys/p4474-cookie-card-clear-of-account-menu.test.mjs hold it. */
body:has(.ds-menu[data-open="true"]) #bws-cookie-consent { z-index: var(--layer-docked-yield); }
/* THE COOKIE CARD STANDS CLEAR OF THE MENU ON EVERY SHELL PAGE (card P4465 round 2, item 3; the round 1 live check: in a fresh browser the card, fixed 24 px
   from the window's bottom left by shared/analytics.js, stood over Report a Bug in the menu's foot on every shell page but the Designer: the Buy List,
   Reports, Parts, the optimizer, the Quotation System). The Designer cleared it with its own rule, the free tools with the shell head's
   <style id="ds-public-cookie-clear"> and Project Intake with its own page rule; this is the one rule for every page on the shell: the card's left edge
   16 px right of the menu's gutter, open (256) or folded (56), and its width held so its right edge stays clear of the AI dock's reserved zone, the way
   shared/analytics.js holds it from its own 24 px corner (its narrow rule, B7 of tests/cookie-consent-corner-card.test.cjs): 446 = this seat's 16 + the
   dock's reserve 418 (analytics.js DOCK_RESERVE: shared/bws-ai-dock.js .sd-ai right 18 + width 400) + analytics.js DOCK_GAP 12, so the right edge stays 430
   px inside the window. It narrows the card only with the folded 56 column under 882 px wide (72 + 380 + 430); wider, the card keeps its 380. The 446 is
   read from analytics.js by tests/p4465-r2-menu-words-whole-and-marked.test.cjs C1, so the two never part. The selector's weight
   (1,1,1) beats the card's own #bws-cookie-consent, so no !important; the Designer's own seats (P4374 at the head of the side strip from 1200 px, and its
   rule under 1200 px) are !important and keep their place, and the Decline, Accept and Manage preferences buttons keep their order and their size. */
body.ds-body #bws-cookie-consent { left: calc(var(--ds-rail-w) + 16px); max-width: calc(100vw - var(--ds-rail-w) - 446px); }
/* P4474's yield, for the menu opened OVER the page from the folded rail (html data-ds-rail-over, below the dock line): the 256 menu stands over the page
   while the page keeps its 56 gutter, so the card, seated by the gutter, is under the open menu's right part. While the menu is open over the page the
   card yields to --layer-docked-yield, under the menu (--layer-panel-side), exactly as it yields to an open .ds-menu above; it never moves, and it is back
   on top the moment the menu folds. */
html[data-ds-rail-over] body.ds-body #bws-cookie-consent { z-index: var(--layer-docked-yield); }

/* The AI dock's own floating launcher is replaced by the top bar's AI Designer toggle, which clicks it. It stays in the page for the dock's own logic, out of sight. */
.ds-body .sd-ai-launch { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* PRINT IS THE PAGE ALONE (Opus review round 2, R9): five shell pages printed the top bar and the rail around their content, and kept the body's 56 and 48 px
   padding. Every shell page now prints without the bar, the menu, the menu's edge, the skip link, the palette, a tip and the toasts, and the body gives back
   the room they took. A page's own print rules (the Outputs page, the Inventory Report) still apply on top. */
@media print {
  .ds-topbar, .ds-rail, .ds-rail-edge, .ds-skip, .ds-cmd-wrap, .ds-tip, .ds-toast-host { display: none !important; }
  body.ds-body { min-height: 0; padding-top: 0; padding-left: 0; }
}
