/* The sub rows no longer need the wrap that fixed the 2026-11-05 cropping: they carry one
   control each now, so the label has room and the base .field rules apply unchanged — which
   is the point, since Steps 1 and 2 look right precisely because they use them. */
/* THE BASS PATH IS THE FIRST THING THIS STEP HAS TO SAY — Gerard 2026-11-06: "bass bath
   information is vital here I have to search for it". It was a readout line among readout
   lines, with nothing marking it as the fact every other control in the box depends on.
   It keeps the panel's own .k / .v roles and borrows the group heading's size and tracking
   for its label; the rule beneath it is what separates it from the controls it governs.
   Every value here is a token — no literal sizes, no literal colours. */
.pathline{
  display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-1);
  padding:0 0 9px;margin:0 0 10px;border-bottom:1px solid var(--rule);
}
.pathline .k{
  font-family:var(--font-body);font-size:var(--fs-head);font-weight:700;
  letter-spacing:.18em;text-transform:uppercase;color:var(--mid);
}
.pathline .v{font-family:var(--font-body);font-size:var(--fs-control);color:var(--blue);text-align:right}

/* A CAPTION UNDER ITS ROW, not a third column beside it — Gerard 2026-11-05, "text right
   from boxes looks cluttered". It is a consequence of the controls above it rather than a
   choice of its own, so it reads at the quiet size and sits full width. */
/* The map's caption follows two readout lines rather than a control, so it needs the air
   the shared rule removes. */
/* The schedule index is a list to scan, so its rows sit close; an OPEN unit gets its air
   back because it is being read rather than scanned. 2026-11-06. */
#layoutSchedule .chblk{margin:0 0 2px}
#layoutSchedule .chblk.is-open{margin:6px 0 10px}
#bassMap .rowcap{margin-top:8px}
.rowcap{
  font-family:var(--font-body);font-size:var(--fs-quiet);color:var(--mid);
  line-height:1.5;margin:-2px 0 10px;opacity:.78;
}

/* Font faces are declared in ui/procella-fonts.css, loaded in the head so the
   browser discovers them before it needs them. Bebas Neue — which this file has
   always asked for and which nothing ever loaded — is among them. */

/* ============================================================
 * Procella Room Designer — SKIN LAYER (v0.9.6)
 *
 * This file changes how the tool LOOKS. It changes nothing about what it
 * does. No selector here exists to fix a bug, and no rule reaches inside
 * #canvas3d: the room view is a three.js scene and CSS cannot address a
 * pixel of it. Remove this file and the app is v0.9.5.38 exactly.
 *
 * It is loaded AFTER the document's own <style>, so equal-specificity
 * rules win on source order. Where a rule needed !important that is
 * marked; there are four of them and each one names the rule it beats.
 *
 * READ THE TOKENS FIRST. Most of the visual change is the :root block —
 * the app already routes every colour, space and corner through a
 * variable, so re-declaring them restyles the panels wholesale. The
 * component rules below exist only for the shapes tokens cannot carry:
 * the numbered step rail, the card treatment on groups, control height.
 * ============================================================ */

:root{
  /* ---- THE RADIUS FAMILY ----------------------------------------
     The Procella mark is a thick-stroked rounded square. Its corner is
     the brand's one shape signature, so every object in the tool wears
     the same corner — scaled to its own size, not copied at a fixed px.
     One number drives all of them. 0.6 is the mark's own ratio, agreed
     2026-09-01; 1.0 was the first pass and read too soft at tile size.
     The old single --radius:3px is redefined as --r-ctl, so the ~90
     existing `border-radius:var(--radius)` declarations inherit the
     family without one of them being edited. */
  --rscale:0.6;
  --r-glyph:calc(13px * var(--rscale));   /* step number badge, status dots */
  --r-ctl:calc(14px * var(--rscale));     /* inputs, selects, steppers, buttons */
  --r-step:calc(16px * var(--rscale));    /* the numbered step tiles */
  --r-card:calc(22px * var(--rscale));    /* a group card */
  --r-shell:calc(26px * var(--rscale));   /* panel corners against the canvas */
  --r-pill:999px;                         /* chips and segmented tracks only */
  --radius:var(--r-ctl);

  /* ---- GROUND ---------------------------------------------------
     Three steps, not two: the shell sits behind the panels, the panels
     behind the cards. v0.9.5.38 had --panel #161718 under --panel2
     #161616, which put the cards and the surface they sit on within one
     step of each other and left nothing darker for the shell. */
  --shell:var(--procella-ui-base);
  --panel:var(--procella-ui-surface);
  --panel2:var(--procella-ui-surface);
  --card:var(--procella-ui-surface);
  --rule:var(--procella-ui-line);
  --edge:var(--procella-ui-line);       /* a card's own border */
  --stroke:var(--procella-ui-stroke);   /* a control's 2px border — 3.06:1, WCAG 1.4.11 */

  /* ONE INK. --mid and --quiet are aliases of white, not greys: the Kit's dark-UI
     rule allows no second ink and the quietest of the three retired greys measured
     3.42:1 on the surface, below AA. Hierarchy is weight and size. */
  --ink:var(--procella-white);
  --mid:var(--procella-white);
  --quiet:var(--procella-white);

  --blue:var(--procella-blue);
  --blue-tint:var(--procella-sky-60);
  /* rgb(29,154,235) IS #1D9AEB. These two read rgb(29,154,235) — #1D9AEC, the blue
     the Kit retired on 2026-09-11, sampled from a rendered PDF. They survived the
     v0.9.5.95 purge and check 2.5 because both look for HEX, and these are decimal. */
  --blue-wash:rgba(29,154,235,.10);
  --blue-line:rgba(29,154,235,.45);

  /* Status colours are kept but pulled off full saturation: at 12px on a
     near-black ground the originals fluoresced. Hue is unchanged, so a
     green still reads as the same green in the export document. */
  --green:var(--procella-status-success);
  --amber:var(--procella-status-warning);
  --red:var(--procella-status-danger);

  /* ---- STRUCTURE ---- */
  --rail-w:120px;      /* desktop step rail. Measured, not chosen: the longest
                          word in the set is "Performance", which sets 88px at
                          the tile's own type (700 10px Montserrat, .05em,
                          uppercase). 120 − 12 padding − 4 border = 104px of
                          content — 16px of slack, so no word has to break. */
  --tabbar-h:64px;     /* tablet step bar, bottom edge */
  --ctl-h:34px;        /* a control's height — 44px on tablet, see below */
  --step-w:30px;       /* the ± boxes: narrower than tall, so the number keeps its room */
  /* THE CARD TREATMENT COSTS THE LABELS 26px.
     404px was derived in the base sheet as label 192 + hang 22 + gap 8 +
     control 160 + padding 40. A group is now a card, which adds 12px of
     padding either side and its 1px border — 26px that came out of the
     label column and put labels behind an ellipsis. Given back here, so
     the derivation holds and no label truncates. */
  --sidebar-w:430px;
}

body{background:var(--shell)}

/* ---------- header ----------
   The header is the only full-width band left. It loses its fill and
   keeps one hairline, so the eye starts at the panels rather than at a
   grey bar across the top. */
header{background:var(--shell);border-bottom:1px solid var(--rule)}
header .wordmark{letter-spacing:.16em}
header .filebar button{
  border:1px solid var(--stroke);border-radius:var(--r-ctl);
  background:transparent;height:30px;padding:0 12px;
}
header .filebar button:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-wash)}

/* ============================================================
 * THE STEP RAIL
 *
 * Same <nav id="tabs">, same buttons, same renderNav() output. The
 * shell script moves the element from between the header and <main> to
 * being <main>'s first child; everything below is presentation, so a
 * re-render cannot undo it.
 *
 * Why a rail: eight steps read as a sequence when they are stacked and
 * numbered, and as a menu when they are laid in a row. The tool is a
 * sequence — step 4 is not available until step 2 is answered, which is
 * what the disabled state already says.
 * ============================================================ */
main > nav#tabs{
  flex:0 0 var(--rail-w);width:var(--rail-w);
  display:flex;flex-direction:column;align-items:stretch;gap:10px;
  padding:14px 10px;overflow-y:auto;overflow-x:hidden;
  background:var(--panel);border-bottom:none;border-right:1px solid var(--rule);
}
main > nav#tabs button{
  position:relative;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  min-height:0;aspect-ratio:1;flex:0 0 auto;
  padding:8px 6px;
  border:2px solid var(--stroke);border-radius:var(--r-step);border-bottom-width:2px;
  background:transparent;color:var(--mid);
  font-size:var(--fs-micro);font-weight:700;letter-spacing:.04em;line-height:1.2;
  /* 9px is BELOW the scale's --fs-quiet, and deliberately: the tile is
     square and 84px wide, and "Performance" sets 88px at 10px. The square
     is the brand shape and does not bend, so the type does. This is the
     only place in the tool below the scale. */
  text-align:center;text-transform:uppercase;
  /* SQUARE, ALWAYS. The tile is the Procella mark at interface size — a
     rounded square with a thick stroke — and a mark that stretches is
     not the mark. aspect-ratio holds it against its label instead of
     letting the label set the height, so the type is what gives: 9px,
     which sets "Performance" at ~79px inside 84px of content. */
  overflow:hidden;white-space:normal;
  /* NEVER BREAK INSIDE A WORD. The label is a bare text node inside a
     flex column, so it forms an anonymous flex item; overflow-wrap:
     anywhere drops that item's min-content width to one character and
     flexbox then shrinks it, which split "Perfor-mance" and "Electronic-s"
     even though both fit. The rail is sized so they fit; a word that
     somehow does not is clipped by the tile, not hyphenated by it. */
  overflow-wrap:normal;word-break:normal;hyphens:none;
}
/* The number. Taken from data-tab, which renderNav() already writes, so
   the rail is numbered without the generator knowing about the rail.
   Bebas Neue is the brand display face; if it fails to load the fallback
   is the same Montserrat the rest of the tool uses, at the same size. */
main > nav#tabs button::before{
  font-family:var(--font-display);
  font-size:var(--fs-lead);font-weight:400;letter-spacing:.04em;line-height:1;
}
main > nav#tabs button[data-tab=start]::before   {content:'1'}
main > nav#tabs button[data-tab=room]::before    {content:'2'}
main > nav#tabs button[data-tab=speakers]::before{content:'3'}
main > nav#tabs button[data-tab=bass]::before    {content:'4'}
main > nav#tabs button[data-tab=layout]::before  {content:'5'}
main > nav#tabs button[data-tab=electronics]::before{content:'6'}
main > nav#tabs button[data-tab=acoustics]::before{content:'7'}
main > nav#tabs button[data-tab=export]::before  {content:'8'}

main > nav#tabs button:hover:not(:disabled){border-color:var(--blue-line);color:var(--ink)}
/* .active carries a border-bottom-color in the base sheet, which is the
   underline this rail replaces. Restated as a full outline + wash. */
main > nav#tabs button.active{
  border-color:var(--blue);background:var(--blue-wash);color:var(--ink);
}
main > nav#tabs button.active::before{color:var(--blue)}
main > nav#tabs button:disabled{border-color:var(--rule);color:var(--quiet);opacity:.6}

/* ---------- sidebar: the inspector ----------
   Kept on the left and kept as the only scrolling surface, both of which
   are working as they are. What changes is that it reads as a panel
   against the shell rather than as a lighter wall. */
#sidebar{
  background:var(--panel);border-right:1px solid var(--rule);
  padding:var(--sp-3) var(--sp-3) var(--sp-5);
}

/* THE INPUT PANEL IS INACTIVE UNTIL THE DESIGN IS STARTED.
   The same treatment the app already uses for an unavailable field
   (.field.disabled — opacity .45, pointer-events none), applied a level
   up. The cards go inert, not the panel: the sidebar keeps its scroll so
   you can still read what is coming.
   `main.design-locked` is set by procella-shell.js from the same refresh
   that drives the Begin button and the rail. */
main.design-locked #sidebar .group,
main.design-locked #sidebar .primaryBtn,
main.design-locked #sidebar .explainBtn{
  opacity:.45;pointer-events:none;
}

/* ============================================================
 * AN OPEN GROUP SHOWS EVERY FIELD IT HAS
 *
 * Essential view folded the advanced fields away with body.dense. That
 * made sense when every group was open at once and the panel was forty
 * rows long. With one group open at a time the fold costs more than it
 * saves: the open group is already short, and a folded field is one the
 * dealer never learns exists. The app made exactly this argument in
 * v0.9.5.25 for two groups — this applies it to all of them.
 *
 * display is restated explicitly (flex / flex / block / inline) and never
 * reverted, because revert resolves to the UA value and would flatten
 * .field and .ln out of their flex layout. This mirrors the base sheet's
 * own `body.dense .group[data-open] .field[data-adv]{display:flex}`.
 *
 * Fields carrying an inline style="display:none" are hidden by the app's
 * own logic because they are not relevant yet (side pairs, rear pairs).
 * Inline style outranks this, so they stay hidden — which is correct.
 * ============================================================ */
body.dense #sidebar .group:not(.collapsed) .field[data-adv]{display:flex}
body.dense #sidebar .group:not(.collapsed) .ln[data-adv]{display:flex}
body.dense #sidebar .group:not(.collapsed) .note[data-adv]{display:block}
body.dense #sidebar .group:not(.collapsed) .advonly{display:inline}
/* the "+n more" reveal has nothing left to reveal */
#sidebar .gmore{display:none}
/* Essential / Full no longer changes what an open group shows, and a
   control that does nothing is worse than no control. Reversible: delete
   this rule and the toggle returns, with the four rules above keeping the
   open group complete in either mode. */
#densityToggle{display:none}

/* A STATIC GROUP IS INFORMATION, NOT A CONTROL.
   Step 4's Bass path is read-only and set on step 1, so it carries no
   marker, never folds, and its heading is not a button. Same treatment
   the data-nocollapse readout groups already get. */
/* A TEXT INPUT TAKES BOTH TRACKS OF THE CONTROL COLUMN.
   The column is a grid of [1fr | 24px unit]. The base sheet spans a select
   across both, and a number input correctly sits in track 1 beside its
   unit — but a text input has no unit and was left in track 1 alone, so
   Brand and Model stopped 25px short of the right edge that Processor
   class reaches. Same column, three different box widths. */
#sidebar .field > span > input[type=text]{grid-column:1 / -1;width:auto;min-width:0}

/* A ROW-WIDTH FIELD.
   The control column is sized for a six-digit number, so a value shaped
   like a sentence does not fit it. These fields put the label above and
   the control across the row. procella-shell.js marks them: every
   read-only text input, plus three selects whose option text CSS cannot
   measure. The static Bass path group uses the same treatment, which is
   where it started. */
#sidebar .field.is-row,
#sidebar .group[data-static] .field{display:block;margin-bottom:var(--sp-2)}
#sidebar .field.is-row > label,
#sidebar .group[data-static] .field label{display:block;margin-bottom:5px;white-space:normal}
#sidebar .field.is-row > span,
#sidebar .group[data-static] .field > span{display:block;width:auto;flex:1 1 auto}
#sidebar .field.is-row > span > select,
#sidebar .field.is-row > span > input{width:100%;min-width:0}
/* a read-only value is a derived figure, and blue is what that means here */
#sidebar .field.is-row input[readonly],
#sidebar .group[data-static] input[readonly]{
  width:100%;height:auto;min-height:var(--ctl-h);padding:8px 10px;
  background:var(--blue-wash);border:2px solid var(--blue-line);
  color:var(--blue-tint);font-weight:600;
  text-overflow:ellipsis;
}
#sidebar .group[data-static] .field{margin-bottom:0}
#sidebar .group[data-static] > h3{cursor:default;padding-left:0}
#sidebar .group[data-static] > .gbody{padding-left:0}
#sidebar .group[data-static]{background:transparent;border-color:var(--rule)}

/* ============================================================
 * THE VIEW EXPLAINER
 *
 * Built by procella-guide.js and mounted inside #viewport, above the
 * canvas and below the overlay furniture. Two treatments: dimmed (the
 * scene is blurred behind the text) and hidden (covered outright).
 * ============================================================ */
#viewGuide{
  position:absolute;inset:0;z-index:55;display:none;
  align-items:center;justify-content:center;padding:24px;
  background:rgba(10,10,10,.66);
  backdrop-filter:blur(7px) saturate(.7);
  -webkit-backdrop-filter:blur(7px) saturate(.7);
}
#viewGuide.on{display:flex}
#viewGuide .vg-card{
  /* WIDTH — Gerard 2026-11-26: "for all TAB's the explainer text box is very narrow - so
     enhance the width as much as possible."
     560px inside a 1050px stage left nearly half the space unused and made every entry a
     narrow ribbon. The card now takes the stage, and the entry list below becomes COLUMNS
     rather than longer lines: past roughly 70 characters a line gets harder to read, not
     easier, so extra width has to buy columns. */
  width:min(1280px,100%);max-height:100%;overflow-y:auto;
  padding:22px 24px;
  background:var(--panel);border:1px solid var(--edge);
  border-radius:var(--r-shell);box-shadow:0 30px 80px rgba(0,0,0,.6);
}
#viewGuide .vg-top{display:flex;align-items:flex-start;gap:16px;margin-bottom:14px}
#viewGuide .vg-kicker{
  font-family:var(--font-display);
  font-size:var(--fs-wordmark);letter-spacing:.06em;color:var(--blue);line-height:1;
}
#viewGuide .vg-title{
  /* on the tool's type scale: --fs-title is what a named thing takes
     everywhere else (step title, card kicker). 19px was off-scale. */
  font-size:var(--fs-title);font-weight:700;letter-spacing:.04em;color:var(--ink);margin-top:5px;
}
#viewGuide .vg-x{
  flex:none;margin-left:auto;height:30px;padding:0 12px;cursor:pointer;
  background:transparent;border:2px solid var(--stroke);border-radius:var(--r-ctl);
  color:var(--mid);font-family:var(--font-body);
  font-size:var(--fs-head);font-weight:700;letter-spacing:.06em;text-transform:uppercase;
}
#viewGuide .vg-x:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-wash)}
#viewGuide p{font-size:var(--fs-body);line-height:1.7;color:var(--mid);margin:0 0 10px;max-width:72ch}
#viewGuide .vg-lede{color:var(--ink)}
#viewGuide .vg-how{
  margin:14px 0 0;padding:14px 0 0;list-style:none;
  border-top:1px solid var(--rule);
  display:flex;flex-direction:column;gap:8px;
}
#viewGuide .vg-how li{
  font-size:var(--fs-quiet);line-height:1.55;color:var(--quiet);
  padding-left:14px;position:relative;
}
#viewGuide .vg-how li::before{
  content:'';position:absolute;left:0;top:7px;
  width:5px;height:5px;border-radius:var(--r-glyph);background:var(--stroke);
}
#viewGuide .vg-foot{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  margin-top:18px;padding-top:14px;border-top:1px solid var(--rule);
}
#viewGuide .vg-lbl{
  font-size:var(--fs-head);font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--quiet);margin-right:2px;
}
#viewGuide .vg-mode{
  height:30px;padding:0 12px;cursor:pointer;
  background:transparent;border:2px solid var(--stroke);border-radius:var(--r-ctl);
  color:var(--mid);font-family:var(--font-body);
  font-size:var(--fs-head);font-weight:700;letter-spacing:.06em;text-transform:uppercase;
}
#viewGuide .vg-mode:hover{border-color:var(--blue-line);color:var(--ink)}

/* the explainer sections use the app's own .group / h3 / .gbody markup, so
   the sidebar's heading, drawn hamburger and collapse rules style them and
   the behaviour matches without being reimplemented. Only the separators
   and the .he type are set here. */
#viewGuide .vg-help{margin-top:16px}
#viewGuide .vg-help .group{
  margin:0;padding:0;background:transparent;
  border:0;border-top:1px solid var(--rule);border-radius:0;
}
/* The base sheet gives .group h3 position:relative + padding-left:--ghang
   and pins the caret at left:0, so the padding IS the marker's column.
   Overriding padding with `11px 0` put the heading text under the
   hamburger. The vertical rhythm changes; the marker column does not. */
#viewGuide .vg-help .group > h3{cursor:pointer;padding:11px 0 11px var(--ghang);margin:0}
#viewGuide .vg-help .group.collapsed > h3{color:var(--mid)}
#viewGuide .vg-help .group:not(.collapsed) > h3{color:var(--blue)}
#viewGuide .vg-help .gbody{padding-bottom:14px}
/* The entries flow in columns sized by the card. column-width is a MINIMUM, so the same
   rule gives one column on a phone and three on a wide stage with no breakpoints, and an
   entry is never split down the middle of a sentence. */
#viewGuide .vg-help .gbody{column-width:360px;column-gap:32px;column-rule:1px solid var(--rule)}
#viewGuide .he{margin-bottom:16px;break-inside:avoid}
#viewGuide .he:last-child{margin-bottom:0}
#viewGuide .he b{
  display:block;font-size:var(--fs-body);font-weight:600;color:var(--ink);margin-bottom:4px;
}
/* READABILITY — a touch looser and lighter than the panel text these settings came from.
   The explainer is read in paragraphs; the side panel is scanned in lines. */
#viewGuide .he span{font-size:var(--fs-body);line-height:1.72;color:var(--ink);opacity:.84}
#viewGuide .vg-escHint{
  font-family:var(--font-body);font-size:var(--fs-head);letter-spacing:.1em;
  text-transform:uppercase;color:var(--mid);opacity:.7;margin-left:auto;align-self:center;
}
#viewGuide .vg-escHint + .vg-x{margin-left:10px}
#viewGuide .vg-deeper{border-top:1px solid var(--rule)}
/* .vg-more is a .vg-mode in the accent — only the colour differs */
#viewGuide .vg-more{
  border-color:var(--blue-line);color:var(--blue);
  font-size:var(--fs-quiet);letter-spacing:.02em;text-transform:none;
}
#viewGuide .vg-more:hover{background:var(--blue-wash)}

/* THE IN-PANEL EXPLAINER BUTTONS ARE NOW IN THE EXPLAINER.
   Every panel carried its own full-width "Explainer — what each field
   means" button opening a modal with the same HELP content the explainer
   now renders. Two doors to one room, and the modal covered the drawing
   the explanation is about. Scoped by id so #btnAcAdd ("+ Add material"),
   which shares the .explainBtn class but is an ACTION, is untouched. */
/* v0.9.5.41 — was `#explainBtn, #explainBtnSpk`. Three of these buttons shared one id
   until the app gave them unique ones, at which point this rule stopped matching and the
   sidebar showed a second EXPLAINER beside the panel's. Targeting the ATTRIBUTE the app
   marks them with cannot break that way again, and a new panel's button is covered
   without this rule being edited.
   VERIFIED before removing them: the EXPLAINER panel renders every item from the same
   HELP map — 6 of 6 on Start, 17 of 17 on Room, 8 of 8 on Speakers — so nothing these
   buttons opened is lost. #btnAcAdd shares the .explainBtn class but is an ACTION
   ("+ Add material"), which is why this targets the attribute and not the class. */
/* 2026-11-26 — REVIVED, and demoted. They are no longer full-width pills competing with
   the controls above them: a quiet right-aligned link, the same weight as a caption, which
   is what a reference door should be in a panel whose job is input. */
/* 2026-11-27 — DEMOTED A STEP. At --fs-quiet it was 11px, underlined and in the accent,
   sitting above group headings set at --fs-head 10px: the loudest thing on a panel whose
   job is input, announcing something a reader needs only occasionally. It now matches the
   headings it sits above. The oversized glyph came from `.explainBtn span{font-size:14px}`
   leaking in through the shared class; the span rule below pins it. */
[data-help-btn]{
  display:block;width:100%;text-align:right;margin:2px 0 10px;
  padding:0;border:0;background:none;cursor:pointer;
  font-family:var(--font-body);font-size:var(--fs-small);font-weight:600;
  letter-spacing:.02em;text-transform:none;color:var(--blue);
}
[data-help-btn] span{font-size:var(--fs-small)}
[data-help-btn] span:last-child{text-decoration:underline;text-underline-offset:2px}
[data-help-btn]:hover{color:var(--ink);background:none}

/* the reopen tab, in the same slot and the same shape as STEPS */
#vgOpen{
  display:none;align-items:center;justify-content:center;
  height:30px;padding:0 14px;cursor:pointer;
  background:var(--blue);border:1px solid var(--blue);border-radius:var(--r-ctl);
  color:#fff;font-family:var(--font-body);
  font-size:var(--fs-quiet);font-weight:700;letter-spacing:.08em;text-transform:uppercase;
}
#vgOpen:hover{background:var(--blue-tint);border-color:var(--blue-tint)}
/* In the landing masthead it is page-level help: inline, auto width, and
   clear of the Project card. It was in the card under Begin design, where
   it read as a third project control and crowded the field it sat beside. */
#startLanding .lnd-head #vgOpen{
  margin-top:var(--sp-3);height:40px;padding:0 18px;
  background:transparent;border:2px solid var(--blue);color:var(--blue);
}
#startLanding .lnd-head #vgOpen:hover{background:var(--blue-wash);border-color:var(--blue)}

@media (max-width:1500px){
  #viewGuide{padding:16px}
  #viewGuide .vg-card{padding:18px}
  #viewGuide .vg-x, #viewGuide .vg-mode, #vgOpen{height:40px}
}

/* ============================================================
 * ACOUSTICS — ONE SEAT AT A TIME
 *
 * #acSeats prints every seat in the room with a line per mode and an
 * explanation under each: 25 rows, ~770px of text in a 430px scroller,
 * and it is the first thing the tab shows. Folded to one line per seat
 * it becomes a table you can read — status per seat, detail on demand.
 *
 * Folding is the default state of the markup, so a re-render (recompute
 * rewrites #acSeats wholesale) comes back folded rather than expanded on
 * a seat that may no longer exist. procella-shell.js adds .open on click.
 * ============================================================ */
#acSeats .spkrow{
  margin-top:4px;padding:5px 8px;cursor:pointer;
  border:1px solid transparent;border-radius:var(--r-ctl);
  transition:border-color .12s,background .12s;
}
/* Scoped to the CLOSED state, so the reveal path never declares display
   at all and .ln{display:flex} is simply left alone. Reopening with a
   display keyword cannot work: revert/unset/initial all resolve to the
   UA or initial value, so an open row came back as block and lost the
   right-hand column the fold exists to line up. */
#acSeats .spkrow:not(.open) > *:not(:first-child){display:none}
#acSeats .spkrow:hover{border-color:var(--stroke)}
#acSeats .spkrow.open{border-color:var(--edge);background:var(--panel);padding-bottom:8px}
/* the chevron is drawn, not typed — the file's own rule about glyphs the
   brand faces do not carry */
/* The chevron sits in a reserved gutter, not in the flex row. As a flex
   item it became a third child of a space-between row, so the space was
   distributed k | v | chevron and the status stopped sitting at the right
   edge — which is the column the fold exists to line up. Every .ln in the
   row reserves the same gutter, so header and detail values share an edge. */
#acSeats .spkrow .ln{padding-right:14px}
#acSeats .spkrow > .ln:first-child{position:relative}
#acSeats .spkrow > .ln:first-child::after{
  content:'';position:absolute;right:0;top:calc(50% - 4px);
  width:5px;height:5px;
  border-right:1.5px solid var(--quiet);border-bottom:1.5px solid var(--quiet);
  transform:rotate(-45deg);transition:transform .12s;
}
#acSeats .spkrow.open > .ln:first-child::after{transform:rotate(45deg)}
#acSeats .spkrow:hover > .ln:first-child::after{border-color:var(--blue)}

/* TAB 6'S RACK SITS IN THE MIDDLE.
   #rackStage aligned its SVG to flex-start, so a short rack hung from the
   top of a tall canvas with all the space below it. The rack is the subject
   of the step; centre it. */
#rackHero #rackStage{align-items:center}

/* An empty status line is not a status. The panels build flags from note
   fields, and a note that has nothing to say leaves a bordered row with no
   content in it. */
.flag:empty,#sidebar .note:empty,#sidebar .spkrow:empty{display:none}

/* THE RESULTING CONFIGURATION READOUT.
   Four key/value rows and a headline figure with no rhythm of their own —
   .ln carries no vertical padding, so the group read as a block of text
   while Processor / channels above it breathed on --sp-1 field margins.
   Same rhythm, same measure. */
#configPanel .big{margin-bottom:var(--sp-2);line-height:1}
#configPanel .ln{padding:5px 0;line-height:1.5}
#configPanel .ln + .ln{border-top:1px solid var(--rule)}
#configPanel .okRoll{margin-top:var(--sp-2)}
#configPanel .flag{margin-top:5px;line-height:1.5}

/* ============================================================
 * THE BLUE LINE MARKS WHAT IS OPEN
 *
 * The landing's Project card carried a 3px blue left border and it was the
 * most elegant thing on the page. It is now the mark for "this is the part
 * you are in": every landing card wears it, and so does every open group
 * wherever a hamburger folds one.
 *
 * On the groups it is an INSET SHADOW, not a border — the only version that
 * costs no layout: a 3px border would shift every label 3px on open.
 *
 * UPDATED v0.10.1: the ":not(.err)" carve-out on the INFO heading is gone.
 * It existed because .ihead.err carried its own red inset line and the two
 * would have fought — "a fault outranks a fold". Status has since moved to
 * the hamburger, so there is nothing left to fight: the blue line now means
 * OPEN and only open, the marker means STATUS and only status, and an open
 * faulted section correctly shows both.
 * ============================================================ */
#startLanding .lnd-card{border-left:3px solid var(--blue)}
#sidebar .group:not(.collapsed){box-shadow:inset 3px 0 0 var(--blue)}
#viewGuide .vg-help .group:not(.collapsed){box-shadow:inset 3px 0 0 var(--blue)}
/* The heading's own left edge is where the hamburger starts, so an inset line
   drawn there lands ON the marker and tints its first 3px — visible, and it
   reads as a defect rather than as two signals. The line gets its own 7px
   gutter, cancelled by an equal negative margin so nothing inside the heading
   moves: the marker stays on the column its section's status lines share. */
#infoPanel .isec:not(.collapsed) > .ihead{
  box-shadow:inset 3px 0 0 var(--blue);
  padding-left:7px;margin-left:-7px;
}
/* a static group is not a fold, so it takes no line \u2014 and neither is a
   data-nocollapse readout (Resulting configuration, Export). The line means
   "this is the part you are in"; on a permanent readout it would show a
   second blue line at all times and dilute the first. unifyMarkers() stamps
   data-noline on them, so this needs no :has(). */
#sidebar .group[data-static],
#sidebar .group[data-noline]{box-shadow:none}

/* THE OPEN GROUP IS THE ONLY ONE THAT LOOKS LIKE A CARD.
   With one body open at a time (procella-shell.js), the closed groups
   are a table of contents and should read as one: no fill, hairline
   border, heading off the accent. Then the single blue heading on the
   panel is always the thing you are working on. */
#sidebar .group.collapsed{
  background:transparent;border-color:var(--rule);
  padding-top:11px;padding-bottom:11px;
}
#sidebar .group.collapsed > h3{color:var(--mid)}
#sidebar .group.collapsed:hover{border-color:var(--stroke)}
#sidebar .group.collapsed:hover > h3{color:var(--ink)}
#sidebar .group > h3{cursor:pointer;transition:color .12s}
#sidebar .group.collapsed > h3 .caret{opacity:.45}
/* ...but not when it is carrying a status. A shut group dimming its own fault
   to 45% is the one case where the table-of-contents treatment costs more than
   it buys. This rule lives HERE rather than in index.html because the selector
   above is #id-weighted and would otherwise win. */
#sidebar .group.collapsed[data-status] > h3 .caret{opacity:1}

/* Prose in the panel was the clutter. It keeps its size and colour and
   gains the line-height and measure of something meant to be read. */
#sidebar .note{line-height:1.55;max-width:52ch}

/* A GROUP IS A CARD.
   The panel holds up to twenty rows across six or seven groups. Grouped
   by a heading alone they run together as one column of text; carded,
   each decision is an object you can point at. */
#sidebar .group{
  background:var(--card);
  border:1px solid var(--edge);border-radius:var(--r-card);
  padding:var(--sp-3) 12px;margin-bottom:var(--sp-2);
}
/* ONE HEADING, EVERYWHERE.
   The skin tracks group headings at .18em rather than the base sheet's
   .12em. Declared on .group h3 itself — not scoped to #sidebar — so the
   sidebar, the explainer's folded sections and any future group share one
   heading, and the landing's card headings are included because the base
   sheet's stated rule is that they match .group h3 exactly. */
.group h3,
#startLanding .lnd-card h4,
#infoPanel .ihead .ititle{
  font-size:var(--fs-head);font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;
}
#sidebar .group h3{color:var(--blue)}
/* SUBHEAD INSIDE A GROUP — added 2026-11-05 when Step 1 merged Processor & channels with
   Bass method, and Step 4 merged Subwoofers with Coupling. It has to read as a division
   WITHIN the box, not as another box: same family and tracking as the group heading, a
   step smaller, no colour of its own, and space above it so the eye sees a break. A second
   h3 would have claimed equal weight and undone the merge visually. */
/* THE SAME SIZE AS THE GROUP HEADING — Gerard 2026-11-05: "FRONT SUBWOOFERS ONLY also
   same size as SUBWOOFERS". It was a step smaller, on the reasoning that a subhead should
   rank below the heading above it. In a box this tall that read as two different kinds of
   label rather than one scale, so size and tracking now match .group h3 exactly and the
   RANK is carried by the space above it and the absence of the group's own colour. */
.group h4{
  font-size:var(--fs-head);font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;margin:20px 0 8px;
}

/* The 2026-11-05 cropping fix lived here: it wrapped these rows and gave the label the full
   width, because two controls in one row had squeezed it to zero. The rows carry ONE control
   each since 2026-11-06, so the label has its room back and the base .field rules apply
   unchanged — which was the point, since Steps 1 and 2 read well precisely because they use
   them. Removing the override is what returns this step to the shared pattern; keeping it
   would have left the labels stacked above their controls here and beside them everywhere
   else. */
/* #sidebar wins on ID specificity over .note.active and .note.quiet, so an unqualified
   colour here silently defeats every state variant the app sets — the Wides explainer
   applied its classes correctly and still rendered mid-grey in all three states.
   Set the DEFAULT only, and let a state class override it. */
#sidebar .note:not(.active):not(.quiet):not(.warn){color:var(--mid)}

/* ---------- controls ----------
   Height and border weight, not shape: 1px on near-black at 12px reads
   as a smudge, so every control edge goes to 2px and gains ~4px of
   height. The 160px control column (--ctl-w) is untouched, so no label
   loses a character. */
.field input[type=text],
.field input[type=number],
.field select,
#sidebar select{
  height:var(--ctl-h);
  border:2px solid var(--stroke);border-radius:var(--r-ctl);
  /* background-COLOR, never the shorthand. The base sheet paints the
     dropdown arrow with background-image on these same selects, and
     `background:` reset it to none — which left the one control that is a
     menu looking exactly like the fields that are not. */
  background-color:var(--panel);color:var(--ink);
}
/* and a hover state, so a select says it can be opened before it is */
.field select:hover,#sidebar select:hover{border-color:var(--blue-line);cursor:pointer}
.field input:focus,.field select:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-wash)}
.stepper .updown button{
  width:var(--step-w);height:var(--ctl-h);
  border:2px solid var(--stroke);border-radius:var(--r-ctl);
  background:transparent;font-size:var(--fs-lead);font-weight:600;
}
.stepper .updown button:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-wash)}
.field .unit{color:var(--quiet)}
.field input[type=number]{font-family:var(--font-mono);letter-spacing:-.01em}

/* ============================================================
 * SEGMENTED CONTROLS — the YES/NO and the Wiring choice on Step 5
 *
 * Gerard 2026-11-30: "fix the UI for the new button nice rounded,
 * follow instructions not do it yourself — perform a check if it
 * follows the brand and UI guidelines."
 *
 * He is right about the method as well as the result. The Wiring
 * control was built by copying `.segYN`, and `.segYN` had never been
 * brought into this skin: it still carried `border-radius:3px` from the
 * pre-skin sheet — a LITERAL, and not on the radius scale declared at
 * the top of this file. Copying a control that is already wrong
 * reproduces the wrong thing and calls it consistency.
 * tools/audit_ui.py now reads the conventions out of the files that
 * declare them and reports every deviation; it found this one, and it
 * is what should be run before a control is styled rather than after.
 *
 * THE CORNER IS NOT A TASTE CHOICE. --r-pill's own comment, line 74 of
 * this file, reserves it for "chips and segmented tracks only" — and a
 * two-state segmented control is exactly a segmented track. So the
 * track and its two halves are pills, which is also what "nice rounded"
 * asks for.
 *
 * THE REST FOLLOWS #viewbar, which is this app's canonical segmented
 * control and has been since the skin landed: a frame around the
 * cluster, no border on the halves, and the chosen half filled solid
 * blue with white type rather than merely outlined. An outline-only
 * active state was the old treatment and it reads as "focused" rather
 * than "chosen" — on a two-state control that is the one thing the
 * user has to be able to see at a glance.
 * ============================================================ */
.field > span.segYN{
  gap:0;padding:3px;
  border:1px solid var(--edge);border-radius:var(--r-pill);
  background:var(--panel2);
}
.segYN button{
  border:none;border-radius:var(--r-pill);
  background:transparent;color:var(--quiet);
  padding:6px 0;
  transition:background .12s,color .12s;
}
.segYN button:hover{color:var(--ink);background:var(--blue-wash)}
/* The chosen half. White on --blue measures 3.9:1, which is the same
   pairing #viewbar's active view already uses across the app. */
.segYN button.active{background:var(--blue);color:#FFFFFF;border-color:transparent}
.segYN button.active:hover{background:var(--blue);color:#FFFFFF}

/* the two reveal links and the explainer keep their place in the
   hierarchy; they only take the new corner and the blue. */
.explainBtn{border-radius:var(--r-ctl);border-color:var(--blue-line)}

/* ---------- chips, pills, flags ----------
   A pill is the one shape that stays fully round: it is a label, never a
   control, and the distinction is worth a shape of its own. */
.spkrow .pill{border-radius:var(--r-pill);padding:2px 9px}

/* TAB 5'S ELEVATION GROUP IS A SECOND COPY OF THE VIEW BAR.
   #inElev offers 3d / plan / front / side / rear — the same five values the
   view bar already carries, and on Layout the elevation buttons are
   visible, so the group asked a question already answered on screen.
   Hidden, not removed: the select keeps its handler, and one deleted rule
   brings it back. */
#panel-layout .group[data-gid=elevation]{display:none}

/* THE OVERLAY ACTION ROW — EXPLAINER and the view note, side by side under
   the view bar. The note wears the bar's frame because it is the same kind
   of object, but in the accent: a pointer to another step, not a control.
   nowrap, so the pair holds one line; the slot is an auto grid column and
   grows to fit. */
/* ============================================================
 * THE VIEW CLUSTER
 *
 * Three stacked bordered blocks — the bar, the note, the layer chips —
 * each with its own border weight and its own width, read as clutter.
 * The views and the layers are both about the drawing, so they share ONE
 * container with a divider between them, sized to its content. The note
 * gives up its box and becomes a line of text beside EXPLAINER.
 *
 * So the top-left is now: one control cluster, then one action line. Two
 * objects instead of five.
 * ============================================================ */
#viewCluster{
  display:flex;align-items:center;gap:4px;flex-wrap:wrap;
  padding:4px;width:max-content;max-width:100%;
  border:1px solid var(--edge);border-radius:calc(var(--r-ctl) + 4px);
  background:rgba(22,23,24,.92);
}
/* the slot must be allowed to shrink, or a wide cluster pushes the INFO
   toggle in the opposite grid column off the canvas */
#overlay .slot-tl{min-width:0;max-width:100%}
#viewCluster .vc-div{
  flex:none;width:1px;height:20px;margin:0 4px;background:var(--rule);
}

/* the bar itself loses its frame — the cluster is the frame now */
#viewbar{
  display:flex;align-items:center;gap:4px;
  padding:0;border:none;background:none;border-radius:0;
}
#viewbar .vbspacer,#viewbar .vbgroup{display:none}
#viewbar button[data-view]{
  height:28px;padding:0 12px;flex:none;border:none;border-radius:var(--r-ctl);
  background:transparent;color:var(--mid);cursor:pointer;
  font-family:var(--font-body);font-size:var(--fs-head);font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;
}
#viewbar button[data-view]:hover{color:var(--ink);background:var(--blue-wash)}
#viewbar button[data-view].active{background:var(--blue);color:#FFFFFF}

/* the layer toggles: same shape, but a toggle rather than a choice, so the
   on state is a wash and a blue label rather than a solid fill */
#layerChips{display:flex;gap:4px;align-items:center}
#layerChips button{
  height:28px;padding:0 12px;flex:none;border:none;border-radius:var(--r-ctl);
  background:transparent;color:var(--quiet);cursor:pointer;
  font-family:var(--font-body);font-size:var(--fs-head);font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;
}
#layerChips button:hover{color:var(--ink);background:var(--blue-wash)}
#layerChips button.on{background:var(--blue-wash);color:var(--blue)}

/* THE ACTION LINE — EXPLAINER, then the note as text. A sentence does not
   need a border to be read, and giving it one made it compete with the
   cluster above it. The 5px indent is the cluster's border plus its
   padding, so EXPLAINER's left edge lines up with the active view pill
   rather than sitting 5px to its left. */
#tlActions{
  display:flex;gap:12px;align-items:center;flex-wrap:nowrap;
  min-height:30px;padding-left:5px;
}
#viewNote{
  /* Text over a drawing needs a ground, or it lands on top of speaker
     labels. A soft dark chip \u2014 no border, no accent \u2014 so it reads as a
     note on the view rather than another framed control. */
  display:flex;align-items:center;
  padding:4px 10px;border:none;border-radius:var(--r-ctl);
  background:rgba(10,10,10,.72);
  font-size:var(--fs-quiet);font-weight:500;color:var(--quiet);white-space:nowrap;
}
#viewNote [data-stepref]{color:var(--blue);font-weight:700}

/* THE LANDING'S ACTION ROW.
   EXPLAINER and the layout plate as equal columns, so the two boxes are
   the same width by definition. Each needs about 240px for "EXACT SPEAKER
   LAYOUT" plus its value at --fs-head; where the landing column cannot
   give 490px the pair stacks rather than ellipsising the label, and they
   stay equal because both are then full width. */
#lndActions{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:10px;align-items:stretch;
  margin-top:var(--sp-3);max-width:520px;
}
#lndActions > *{min-width:0}
#startLanding .lnd-head #vgOpen{margin-top:0;height:40px}

#layoutPlate{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  height:40px;padding:0 14px;
  border:2px solid var(--stroke);border-radius:var(--r-ctl);
  background:var(--card);
}
#layoutPlate .k{
  font-size:var(--fs-head);font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--quiet);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#layoutPlate .v{
  flex:none;font-family:var(--font-mono);
  font-size:var(--fs-body);font-weight:600;color:var(--blue);letter-spacing:.02em;
}

/* A control that leaves the view bar inherits none of the bar's rules: the
   toggles took #viewbar's display:none wherever the scene is not the user's
   to drive, so the cluster needs it itself. */
main.startmode #viewCluster,
main.rackmode #viewCluster,
/* #tlActions needs the same rule for the same reason: the note was
   authored inside #viewbar and took the bar's display:none. Out of it, its
   only rule is the app's own step test, which shows it on Start \u2014 and the
   row itself is a 404\u00d740 pointer-events box that would sit over the
   landing's Project card even when the note inside it is hidden. On Start
   the EXPLAINER lives in the landing's own action row, so nothing is lost. */
main.startmode #tlActions,
main.rackmode #tlActions{display:none}

/* THE INFORMATION PANEL'S HANDLE — the mirror of the input panel's, on the
   canvas's right edge. The panel is an overlay slot rather than a flex
   child, so it is hidden rather than slid: there is no width to animate and
   nothing reflows when it goes. Desktop only — below 1500px the panel is
   already a sheet behind the INFO toggle. */
#infoHandle{
  /* immediately left of the panel it controls, level with its top — at the
     canvas edge, halfway down, it read as unrelated furniture. --info-w is
     measured by procella-shell.js because the panel's width is a base-sheet
     value that changes with the breakpoint. */
  position:absolute;right:calc(var(--info-w, 320px) + 20px);
  top:calc(var(--info-mid, 50%) - 32px);z-index:52;
  width:18px;height:64px;padding:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:var(--panel);color:var(--mid);
  border:1px solid var(--rule);
  border-radius:var(--r-ctl);
}
main.info-hidden #infoHandle{right:12px}
main.info-empty #infoHandle{display:none}
#infoHandle:hover{background:var(--card);border-color:var(--stroke);color:var(--blue)}
#infoHandle i{
  display:block;width:5px;height:5px;
  border-right:1.5px solid currentColor;border-top:1.5px solid currentColor;
  transform:rotate(45deg);margin-right:-1px;
}
main.info-hidden #infoHandle i{transform:rotate(-135deg);margin-right:2px}
main.info-hidden #infoPanel{display:none}
@media (max-width:1500px){
  #infoHandle{display:none}
}

/* ZOOMED IN, CHROME OUT.
   Past the threshold the drawing is the only thing worth looking at. The
   panel handle stays — it is the way back — and everything else fades,
   including the mark: a screenshot taken while inspecting a cabinet at
   300mm is not a brand shot. */
main #brandFooter,
main #viewbar,
main #viewCluster,
main #tlActions,
main #infoPanel,
main #infoHandle,
main #badgeStack,
main #layerChips{transition:opacity .22s ease}
main.zoomed-in #brandFooter,
main.zoomed-in #viewbar,
main.zoomed-in #viewCluster,
main.zoomed-in #tlActions,
main.zoomed-in #infoPanel,
/* the handle belongs to the panel, so it goes with it — left behind, it sat
   pointing at nothing, in the position the panel used to occupy */
main.zoomed-in #infoHandle,
main.zoomed-in #badgeStack,
main.zoomed-in #layerChips{opacity:0;pointer-events:none}

/* THE BRAND FOOTER — same place on every step, so any screenshot carries
   the mark and the slogan. Above the landing (z 9) and below the overlay
   furniture (z 50); pointer-events:none, so it can never take a click
   meant for the scene. */
#brandFooter{
  position:absolute;left:0;right:0;bottom:0;z-index:40;
  display:flex;align-items:flex-end;justify-content:space-between;gap:var(--sp-4);
  padding:0 16px 12px;pointer-events:none;
  /* over the 3D scene the footer has no ground of its own, and 9px of
     --quiet does not survive a bright part of the drawing. A scrim, not a
     panel: it fades out upward so the scene is not boxed in. */
  background:linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.72) 55%, rgba(10,10,10,0) 100%);
}
#brandFooter .bf-legal{display:flex;flex-direction:column;gap:2px;min-width:0}
#brandFooter .bf-legal span{
  /* one sentence per line, and no cap that would wrap a sentence mid-way
     and clip the remainder. Lines drop from the bottom up as the canvas
     narrows: the trademark line first, then the tool line, then the block. */
  font-size:var(--fs-micro);line-height:1.5;letter-spacing:.02em;color:var(--quiet);white-space:nowrap;
}
#procellaMark{flex:none;height:54px;width:auto;display:block;opacity:.92}
@media (max-width:1400px){
  #brandFooter .bf-legal span:nth-child(3){display:none}
}
@media (max-width:1100px){
  #brandFooter .bf-legal span:nth-child(2){display:none}
  #procellaMark{height:44px}
}
@media (max-width:760px){
  #brandFooter .bf-legal{display:none}
}
/* THE SCROLLER STOPS WHERE THE FOOTER STARTS.
   #startLanding is an independently scrolling surface filling the same box
   as the footer, so padding inside it only reserves space at the END of
   its 2000px flow — at every other scroll position content passed under
   the footer and the legal line landed on the Project card. Shortening the
   scroller is the fix; nothing can then scroll beneath the footer. */
#startLanding{bottom:66px}

/* THE PANEL HANDLE — a tab on the canvas's left edge, which is exactly
   where the input panel ends, so it follows that edge without a calc(). */
#panelHandle{
  position:absolute;left:0;top:50%;transform:translateY(-50%);z-index:52;
  width:18px;height:64px;padding:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:var(--panel);color:var(--mid);
  border:1px solid var(--rule);border-left:none;
  border-radius:0 var(--r-ctl) var(--r-ctl) 0;
}
#panelHandle:hover{background:var(--card);border-color:var(--stroke);color:var(--blue)}
#panelHandle i{
  display:block;width:5px;height:5px;
  border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);margin-left:-1px;
}
main.sidebar-hidden #panelHandle i{transform:rotate(-135deg);margin-left:2px}

/* the slide itself */
#sidebar{transition:width .28s ease, min-width .28s ease, opacity .18s ease}
main.sidebar-hidden #sidebar{
  width:0;min-width:0;padding-left:0;padding-right:0;
  opacity:0;overflow:hidden;border-right:none;
}

/* THE COVER FIELDS IN THE PROJECT CARD.
   Moved out of step 8 by procella-shell.js. They arrive carrying the
   sidebar's field geometry — a 160px control column in a <span> — which
   the landing card does not use, so the span is unwrapped to a block and
   the landing's own full-width 44px input rule takes over. */
#coverFields{margin-bottom:var(--sp-2)}
#coverFields .cf-head{
  font-size:var(--fs-head);font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--quiet);margin:var(--sp-3) 0 var(--sp-2);
  padding-top:var(--sp-2);border-top:1px solid var(--rule);
}
#startLanding .lnd-project .field > span{display:block;width:auto;flex:1 1 auto}

/* THE NOTES FIELD IN STEP 8.
   The only multi-line input in the tool. It takes the control's border,
   corner and focus ring so it is recognisably the same family, and it is
   the one control allowed to set its own height. */
#panel-export #inDocNotes{
  display:block;width:100%;margin-top:var(--sp-2);
  min-height:120px;padding:10px;resize:vertical;
  font-family:var(--font-body);font-size:var(--fs-control);line-height:1.6;
  color:var(--ink);background:var(--panel);
  border:2px solid var(--stroke);border-radius:var(--r-ctl);
}
#panel-export #inDocNotes:focus{
  outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-wash);
}

/* THE PROJECT NAME IN THE HEADER.
   Built by procella-shell.js and appended to .hb-brand, so it inherits
   the header grid's `brand` area on both the desktop and tablet
   templates. Reads as a plate, not a control: it is never editable here.
   The name itself is the only thing at --ink, because it is the one piece
   of the header a dealer actually needs to read. */
#projChip{
  /* flex:none so the plate keeps its content width; the wordmark carries the ellipsis by
     design and is the thing that should give. */
  /* the header's CENTRE slot (app v0.9.5.40 renamed it from `view`: the area belongs to
     whatever the header centres, and with Essential / Full retired that is this plate) */
  grid-area:centre;justify-self:center;flex:none;
  display:flex;align-items:baseline;gap:9px;min-width:0;
  padding:5px 14px;
  border:1px solid var(--blue-line);border-radius:var(--r-ctl);
  background:var(--card);
}
#projChip .k{
  flex:none;font-size:var(--fs-head);font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--blue);
}
#projChip .v{
  flex:1 1 auto;min-width:6ch;
  font-size:var(--fs-body);font-weight:600;color:#FFFFFF;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:22ch;
}
/* Not named yet is a prompt, not a value — it drops to the quiet tier and
   italicises, and the plate goes dashed, so it can never be mistaken for a
   project called "Not named yet". */
#projChip.empty{border-style:dashed;border-color:var(--stroke)}
#projChip.empty .k{color:var(--quiet)}
#projChip.empty .v{color:var(--quiet);font-weight:500;font-style:italic}
/* Once the design is started the plate fills: white name on Procella blue,
   which is the strongest statement the palette makes and the right one for
   the one fact a dealer needs at all times. */
#projChip.started{border-color:var(--blue);background:var(--blue)}
#projChip.started .k{color:rgba(255,255,255,.72)}
#projChip.started .v{color:#FFFFFF}

/* THE LABEL GOES ONLY WHEN IT DOES NOT FIT.
   Measured, not guessed: the header's fixed chrome is brand 366 + actions
   243 + language 168 + 24 padding + four 10px gaps = 841px, and the
   labelled plate needs 139px — so it fits from about 1000px up. Tying the
   hide to the 1500px tablet breakpoint instead cost every laptop the words
   "Your project" for no reason. */
@media (max-width:1000px){
  #projChip .k{display:none}
}
@media (max-width:900px){
  #projChip{max-width:min(30vw,180px)}
}

/* THE PROJECT NAME FIELD IS THE ONE THING THE PAGE WANTS.
   While the design is unstarted the field carries the focus ring it
   would have if it were focused, so the eye goes there first. It is the
   same blue and the same 3px wash every focused control uses, so nothing
   new is being taught. :not(.missing) hands the field back to the app's
   own red failed-submit pulse, which this rule would otherwise outrank. */
main.design-locked #startLanding .lnd-project input#inName:not(.missing){
  border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-wash);
}

/* An example placeholder is a suggestion, one step below a label, and the
   same colour wherever it appears — the landing's Project card, the
   Processor identity fields, the notes box. It was --quiet in one place,
   the browser default in another, and declared three times. One rule: it
   stays below the label so it cannot read as a value that was entered,
   without being too quiet to pull the eye to an empty field. */
#sidebar input::placeholder,
#startLanding input::placeholder,
#panel-export #inDocNotes::placeholder{color:var(--mid);opacity:1}
#sidebar input::-webkit-input-placeholder,
#startLanding input::-webkit-input-placeholder,
#panel-export #inDocNotes::-webkit-input-placeholder{color:var(--mid)}

/* ---------- the canvas side ----------
   Overlay furniture sits ON the room view, so it gets the panel corner
   and a real border rather than a hairline — it has to hold its own
   against whatever is rendered behind it. */
#viewbar{border-radius:var(--r-card);border:1px solid var(--edge);background:rgba(22,23,24,.92)}
#viewbar button{border-radius:var(--r-ctl)}
#startCaption{border-radius:var(--r-card);border-color:var(--edge);color:var(--mid)}
#infoPanel{border-radius:var(--r-card);border-color:var(--edge);background:rgba(22,23,24,.94)}
#rackHero{border-radius:var(--r-shell)}

/* ============================================================
 * TABLET — the rail becomes a bottom bar
 *
 * The rail is a pointer object: 92px of vertical edge is cheap with a
 * mouse and awkward with a thumb. Below 1500px the same nav docks to the
 * bottom edge as a scrolling bar of 56px tiles, where the thumbs are,
 * and every control grows to 44px.
 *
 * The document's own tablet layer pins several things to the bottom edge
 * in startmode (#startCaption, .slot-tl, #badgeStack, the info sheet) at
 * bottom:12px / 56px. Those four are re-declared here with --tabbar-h
 * added, so they stack above the bar instead of under it. That is the
 * only place this file changes a position the original set.
 * ============================================================ */
@media (max-width:1500px){
  :root{--ctl-h:44px;--step-w:36px;--ctl-w:190px;--sidebar-w:460px}

  main > nav#tabs{
    position:fixed;left:0;right:0;bottom:0;z-index:70;
    flex-direction:row;align-items:center;
    width:auto;height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding:6px 10px calc(6px + env(safe-area-inset-bottom));
    gap:8px;overflow-x:auto;overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    border-right:none;border-top:1px solid var(--rule);
    background:var(--panel);
  }
  main > nav#tabs button{
    flex:0 0 auto;flex-direction:row;gap:8px;
    aspect-ratio:auto;                 /* the bar tile is a pill, not the square */
    min-height:52px;padding:0 16px;
    font-size:var(--fs-quiet);letter-spacing:.08em;white-space:nowrap;
  }
  /* #badgeStack is given an inline width:300px by the app, clamped only
     by max-width:46vw — and 46vw measures the VIEWPORT, not the box the
     stack lives in, so it cannot shrink when the sidebar takes the width.
     At a 460px sidebar the INFO toggle (the only way to open the info
     panel on tablet) ran 21px off the right edge. Clamped to its own
     container instead. The base sheet already does exactly this override
     for startmode; it is simply needed outside startmode too. */
  #badgeStack{width:auto !important;max-width:100%}

  /* Grid placement, not absolute centring: the tablet header template has
     no symmetric spacer tracks, and a plate centred against the BAR
     overlapped the brand on one side and the file commands on the other.
     In the spacer column it is centred in the room that actually exists
     and cannot collide with anything. The label goes too — the plate's
     shape and position say what it is. */
  #projChip{
    grid-area:auto;grid-column:3;justify-self:center;
    max-width:min(34vw,240px);padding:5px 10px;
  }

  /* #stepsToggle is visibility:hidden everywhere (the steps sheet moved into
     the landing in v0.9.5.21) but the tablet rule restores display, so its
     30px box still sat in .slot-tl — and with the slot lifted above the tab
     bar that invisible box covered the left edge of the project-name field
     and swallowed clicks into it. An invisible control should not hold
     layout. */
  #stepsToggle{display:none}

  main > nav#tabs button::before{font-size:var(--fs-glyph)}

  /* 54px of a 95px plate spent on a static label, at the width where
     space is scarcest. */
  #projChip{margin-left:var(--sp-2)}

  /* THE BAR TAKES ITS SPACE FROM THE LAYOUT, NOT FROM THE VIEW.
     The bar is position:fixed, so padding the overlay only pushes the
     overlay furniture clear — the canvas still runs underneath it, and
     because the renderer sizes itself to #viewport it goes on rendering
     the room's lower framing into a strip nobody can see. Padding <main>
     shortens #viewport itself, so the canvas ends above the bar. */
  #mainEl{padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom))}
  #sidebar{padding-bottom:var(--sp-5)}

  /* the four bottom-pinned startmode elements, lifted by the bar */
  main.startmode.tablet-start #startCaption{
    bottom:calc(12px + var(--tabbar-h) + env(safe-area-inset-bottom));
  }
  main.startmode.tablet-start .slot-tl,
  main.startmode.tablet-start #badgeStack{
    bottom:calc(56px + var(--tabbar-h) + env(safe-area-inset-bottom));
  }
}

/* ---------- inspector as a floating panel on tablet ----------
   Docked, the input panel takes 380px of a 1024pt screen and leaves the
   room view a letterbox. Floated with a corner and a shadow it reads as
   over the scene, which is what it is, and it can be pushed away.
   The document already has the drawer mechanics (#drawerToggle, #scrim,
   main.drawer-open); this is the same behaviour wearing the new shape. */
@media (max-width:1100px){
  #sidebar{
    border-radius:0 var(--r-shell) var(--r-shell) 0;
    box-shadow:0 24px 60px rgba(0,0,0,.55);
    border-right:1px solid var(--edge);
  }
}

/* PLACEMENT ADVICE ROWS — 2026-11-06. Label, verdict, action, then the geometry on its
   own line beneath, so the three options line up on their numbers and the reader compares
   down one column instead of reading three sentences. */
#subAdvice .advrow{
  display:grid;grid-template-columns:1fr auto auto;align-items:center;
  gap:4px 10px;margin:6px 0;
}
#subAdvice .advrow .k{color:var(--quiet)}
/* WEIGHT, NOT COLOUR, exactly as .ln .v.err does it (C8): a failing value has to read
   without colour. A passing one stays at normal weight so the two are told apart. */
#subAdvice .advrow .v{text-align:right;font-weight:400}
#subAdvice .advrow .v.err{font-weight:700}
#subAdvice .advrow .advpos{grid-column:1 / -1;color:var(--quiet);font-size:var(--fs-small)}
#subAdvice .miniBtn{
  font-family:var(--font-body);font-size:var(--fs-quiet);font-weight:600;letter-spacing:.04em;
  padding:3px 10px;border-radius:var(--radius);cursor:pointer;
  background:rgba(29,154,235,.18);border:1px solid rgba(29,154,235,.45);color:var(--ink);
}
#subAdvice .miniBtn:hover{background:rgba(29,154,235,.30)}
#subAdvice .miniBtn:active{transform:translateY(1px)}

/* The shortfall count on Step 5 reads amber, matching the drawing and the hamburger. */
#parCaps .v.amberv{color:var(--amber);font-weight:700}

/* Step 5 state numbers: amber is the shortfall, green is what pairing covered. Both bold,
   so the two read apart in greyscale as well as in colour (C8). */
#parCaps .v.okv{color:var(--green);font-weight:700}

/* ============ THE SINGLE-SOURCE VERDICT ON STEP 4 ============ 2026-11-06.
   Gerard: "the text starting at EVERY POSITION still cluttered — use spacing, font and
   colour to spice it up for a clean UI."

   Ninety words in one sentence became a verdict, a short table and a remedy. The rows
   need the same treatment #parCaps got: breathing room above and below, a rule under each
   so the eye tracks across, and the two figures that matter in amber. The amber rule is
   written for both blocks rather than copied, because one of them drifting to a different
   amber is exactly the kind of inconsistency this project keeps paying for. */
#convFlags .ssrows{margin:8px 0 2px}
#convFlags .ssrows .ln{padding:4px 0;border-top:1px solid var(--rule);gap:var(--sp-2)}
#convFlags .ssrows .ln:first-child{border-top:0}
#convFlags .ssrows .k{color:var(--mid)}
#convFlags .ssfix{margin-top:8px;font-weight:600}
#parCaps .v.amberv,
#convFlags .ssrows .v.amberv{color:var(--amber);font-weight:700}
