/* ScrubStack brand skin: one sheet for the pages a card opens.
   Stage, type and accent are the approved v5 front door
   (prefcard/api/static/landing/v5, #3555) and assets/brand/brand-tokens.css:
   warm ink stage, cream type, ScrubStack tan. No sage, cyan or purple.
   Inert unless the page sets html[data-skin="brand"] (ink pages),
   html[data-skin="brand-paper"] (the signed-in shell) or
   html[data-skin="brand-paper-v2"] (the design-port chassis, section 5), via
   SURGX_BRAND_SKIN or the ?brand=1 preview. Product colour codes (suture packet foil, screw
   diameter dots, card family dots) are identity and are not remapped. */

/* ---------- 1. Tokens ---------------------------------------------------- */
html[data-skin="brand"],
html[data-skin="brand"] [data-theme="dark"],
html[data-skin="brand"] [data-theme="light"] {
  --ss-stage: #1B1A18;
  --ss-raised: #25231F;
  --ss-well: #2E2B26;
  --ss-edge: rgba(245, 239, 229, 0.14);
  --ss-edge-strong: rgba(245, 239, 229, 0.26);
  --ss-cream: #F5EFE5;
  --ss-cream-2: #B8B1A6;
  --ss-cream-3: #999185;
  --ss-tan: #B09070;
  --ss-tan-bright: #D0C0B0;
  --ss-tan-deep: #8E6F52;
  --ss-tan-wash: rgba(176, 144, 112, 0.16);
  --ss-amber: #D9A14A;
  --ss-brick: #E0705F;
  --ss-gold: #E8B547;
  --ss-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ss-sans: "IBM Plex Sans", -apple-system, system-ui, "Helvetica Neue", sans-serif;
  --ss-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ss-radius: 8px;
  --ss-radius-chip: 6px;
  --ss-ease: cubic-bezier(.22, .8, .2, 1);

  /* SurgX PDP names (suture tree, part page, screw picker) */
  --page-bg: var(--ss-stage);
  --card-bg: var(--ss-raised);
  --card-bg-soft: var(--ss-well);
  --hairline: var(--ss-edge);
  --hairline-strong: var(--ss-edge-strong);
  --text-primary: var(--ss-cream);
  --text-secondary: var(--ss-cream-2);
  --text-tertiary: var(--ss-cream-3);
  --text-mono: var(--ss-cream);
  --accent: var(--ss-tan);
  --accent-soft: var(--ss-tan-wash);
  --accent-border: rgba(176, 144, 112, 0.5);
  --on-accent: var(--ss-stage);
  --success: var(--ss-gold);
  --success-bg: rgba(232, 181, 71, 0.14);
  --warn: var(--ss-amber);
  --warn-bg: rgba(217, 161, 74, 0.16);
  --warn-border: rgba(217, 161, 74, 0.5);
  --danger: var(--ss-brick);
  --danger-bg: rgba(224, 112, 95, 0.14);
  --info: var(--ss-cream-2);
  --shell-shadow: none;
  --inset-shadow: inset 0 0 0 1px var(--ss-edge);
  --font-display: var(--ss-serif);
  --font-ui: var(--ss-sans);
  --font-mono: var(--ss-mono);
  --bg: var(--ss-stage);
  --surface: var(--ss-raised);
  --line: var(--ss-edge);
  --accent-600: var(--ss-tan);
  --accent-700: var(--ss-tan-deep);

  /* Suture tree chrome tokens */
  --sut-on-glow: transparent;
  --sut-skin-wash: transparent;
  --sut-card-axis: var(--ss-tan-bright);
  --sut-card-line: rgba(176, 144, 112, 0.4);

  color-scheme: dark;
}

html[data-skin="brand"] body {
  background: var(--ss-stage);
  color: var(--ss-cream);
  font-family: var(--ss-sans);
  -webkit-font-smoothing: antialiased;
}
html[data-skin="brand"] :focus-visible {
  outline: 2px solid var(--ss-tan-bright);
  outline-offset: 2px;
}
html[data-skin="brand"] ::selection { background: var(--ss-tan); color: var(--ss-stage); }

/* ---------- 2. Suture tree ---------------------------------------------- */
html[data-skin="brand"] .sut { background: var(--ss-stage); font-family: var(--ss-sans); }
html[data-skin="brand"] .sut-head { background: var(--ss-stage); border-bottom-color: var(--ss-edge); }
html[data-skin="brand"] .sut-title {
  font-family: var(--ss-serif); font-weight: 500; letter-spacing: -0.01em;
}
/* The tree mark draws with literal SurgX-green strokes; recolour them tan. */
html[data-skin="brand"] .sut-tree-mark [stroke]:not([stroke="none"]) { stroke: var(--ss-tan); }
html[data-skin="brand"] .sut-tree-mark [stroke^="rgba"] { stroke: rgba(176, 144, 112, 0.3); }
html[data-skin="brand"] .sut-tree-mark [fill]:not([fill="none"]) { fill: var(--ss-tan); }

html[data-skin="brand"] .sut .sxvp {
  background: var(--ss-raised); border: 1px solid var(--ss-edge); border-radius: 12px; box-shadow: none;
}
html[data-skin="brand"] .sut .sxvp-axis-label,
html[data-skin="brand"] .sut-axis-label {
  font-family: var(--ss-sans); text-transform: none; letter-spacing: 0;
  font-weight: 500; color: var(--ss-cream-2);
}
html[data-skin="brand"] .sut .sxvp-axis-label::first-letter,
html[data-skin="brand"] .sut-axis-label::first-letter { text-transform: uppercase; }
html[data-skin="brand"] .sut-count { font-family: var(--ss-mono); color: var(--ss-cream-3); }

html[data-skin="brand"] .sut-filter,
html[data-skin="brand"] .sut-heard {
  background: var(--ss-raised); border: 1px solid var(--ss-edge-strong);
  border-radius: var(--ss-radius); font-family: var(--ss-sans);
  transition: border-color .18s var(--ss-ease);
}
html[data-skin="brand"] .sut-filter:focus { border-color: var(--ss-tan); outline: none; }

/* Chips: flat, hairline, tan when chosen. No bevel, no glow. */
html[data-skin="brand"] .sut .sut-chip {
  background: var(--ss-raised); color: var(--ss-cream);
  border: 1px solid var(--ss-edge-strong); border-radius: var(--ss-radius-chip);
  box-shadow: none; text-shadow: none; font-weight: 500;
  transition: background-color .18s var(--ss-ease), border-color .18s var(--ss-ease), color .18s var(--ss-ease);
}
html[data-skin="brand"] .sut .sut-chip:hover { border-color: var(--ss-tan); }
html[data-skin="brand"] .sut .sut-chip-lit { border-color: var(--ss-edge-strong); }
html[data-skin="brand"] .sut .sut-chip-on,
html[data-skin="brand"] .sut .sut-chip-on:hover {
  background: var(--ss-tan); border-color: var(--ss-tan); color: var(--ss-stage);
  font-weight: 600; box-shadow: none;
}
html[data-skin="brand"] .sut .sut-chip-dim,
html[data-skin="brand"] .sut .sut-chip-dim:hover {
  background: transparent; border-color: var(--ss-edge); color: var(--ss-cream-3);
  opacity: 0.55; filter: none;
}
html[data-skin="brand"] .sut .sut-chip-dim .sut-chip-swatch { filter: grayscale(1); opacity: .6; }
html[data-skin="brand"] .sut-axis-tiles .sut-chip,
html[data-skin="brand"] .sut-needle-chip,
html[data-skin="brand"] .sut-point-chip { border-radius: var(--ss-radius); }
html[data-skin="brand"] .sut-chip-swatch { box-shadow: inset 0 0 0 1px rgba(245, 239, 229, 0.22); }
html[data-skin="brand"] .sut-active-pill {
  background: var(--ss-tan); color: var(--ss-stage); border-radius: var(--ss-radius-chip); font-weight: 600;
}
html[data-skin="brand"] .sut-more {
  background: transparent; border-color: var(--ss-edge-strong);
  border-radius: var(--ss-radius); font-family: var(--ss-sans); font-weight: 500;
}
html[data-skin="brand"] .sut-more:hover { border-color: var(--ss-tan); }

/* Scrims take the stage colour, not the old cool black. */
html[data-skin="brand"] .sut-sheet-scrim,
html[data-skin="brand"] [data-testid="sut-sheet-scrim"],
html[data-skin="brand"] .sut-menu-scrim { background: rgba(27, 26, 24, 0.78); }
html[data-skin="brand"] .sut-menu { background: var(--ss-raised); border-color: var(--ss-edge); }

/* Result cards and the product sheet */
html[data-skin="brand"] .sut-card,
html[data-skin="brand"] .sut-decoder,
html[data-skin="brand"] .sut-use-vendor,
html[data-skin="brand"] .sut-use-card {
  background: var(--ss-raised); border-color: var(--ss-edge); border-radius: var(--ss-radius);
  box-shadow: none;
}
html[data-skin="brand"] .sut-sku-sheet {
  background: var(--ss-stage); border-color: var(--ss-edge); box-shadow: none;
}
html[data-skin="brand"] .sut-sheet-brand {
  font-family: var(--ss-serif); font-weight: 500; letter-spacing: -0.01em;
}
html[data-skin="brand"] .sut-sheet-pick { color: var(--ss-cream-2); }
html[data-skin="brand"] .sut-sheet-cat { font-family: var(--ss-mono); color: var(--ss-tan-bright); }
html[data-skin="brand"] .sut-sheet-usp,
html[data-skin="brand"] .sut-usp-mark { color: var(--ss-tan); font-family: var(--ss-mono); }
html[data-skin="brand"] .sut-sheet-x {
  background: transparent; color: var(--ss-cream); border: 1px solid var(--ss-edge-strong);
  border-radius: var(--ss-radius); font-family: var(--ss-sans); font-weight: 500; box-shadow: none;
}
html[data-skin="brand"] .sut-sheet-x:hover { border-color: var(--ss-tan); }
html[data-skin="brand"] .sut-fact {
  background: transparent; color: var(--ss-cream-2); border: 1px solid var(--ss-edge-strong);
  border-radius: var(--ss-radius-chip); font-family: var(--ss-sans); text-transform: none;
  letter-spacing: 0; font-weight: 500; box-shadow: none;
}
html[data-skin="brand"] .sut-absorb { color: var(--ss-cream); font-family: var(--ss-mono); }
html[data-skin="brand"] .sut-detail-evidence { color: var(--ss-cream-3); font-family: var(--ss-mono); }

html[data-skin="brand"] .sut-sheet-specs .sut-detail-row {
  border-bottom: 1px solid var(--ss-edge); align-items: baseline;
}
html[data-skin="brand"] .sut-detail-k {
  font-family: var(--ss-sans); text-transform: none; letter-spacing: 0;
  color: var(--ss-cream-2);
}
html[data-skin="brand"] .sut-detail-k::first-letter { text-transform: uppercase; }
html[data-skin="brand"] .sut-detail-v { font-family: var(--ss-mono); color: var(--ss-cream); }
/* An empty field says so instead of drawing an empty box. */
html[data-skin="brand"] .sut-cell-empty {
  border: 0; background: none; width: auto; height: auto; display: inline;
}
html[data-skin="brand"] .sut-cell-empty::before {
  content: "Not listed"; font-family: var(--ss-sans); color: var(--ss-cream-3);
}
html[data-skin="brand"] .sut-src-chip {
  border-color: var(--ss-edge-strong); color: var(--ss-cream-2); border-radius: var(--ss-radius-chip);
}
html[data-skin="brand"] .sut-use-quote { border-left-color: var(--ss-tan); }

/* ---------- 3. Screw picker + part page (scripts/*_l1/demo) ------------- */
/* Shared: picker.css is served to both pages. */
html[data-skin="brand"] { --r-pill: var(--ss-radius-chip); }

/* Smear bands behind chip rows (picker.css:341-355, 365-379): gone. */
html[data-skin="brand"][data-face="mobile"] .sxvp-cascade-row::after,
html[data-skin="brand"][data-face="mobile"] .sxvp-axis .sxvp-chips:not(.sxvp-chips-strip)::before {
  background: none;
}
html[data-skin="brand"] .sxvp-or-wash { background: none; }

/* Chips + cards: flat, hairline, tan when chosen. Matches the suture tree. */
html[data-skin="brand"] .sxvp-card,
html[data-skin="brand"] .sxvp-chip {
  background: var(--ss-raised); color: var(--ss-cream);
  border: 1px solid var(--ss-edge-strong); border-radius: var(--ss-radius-chip);
  font-family: var(--ss-sans); font-weight: 500; box-shadow: none; text-shadow: none;
  transition: background-color .18s var(--ss-ease), border-color .18s var(--ss-ease), color .18s var(--ss-ease);
}
html[data-skin="brand"] .sxvp-card { font-family: var(--ss-mono); border-radius: var(--ss-radius); }
html[data-skin="brand"][data-face="mobile"] .sxvp-card,
html[data-skin="brand"][data-face="mobile"] .sxvp-chip { min-height: 44px; }
html[data-skin="brand"] .sxvp-card:hover,
html[data-skin="brand"] .sxvp-chip:hover { border-color: var(--ss-tan); }

/* Selected wins, including a chip that is also unsupported. Solid border,
   so the later dashed unavailable rule does not restyle the selection. */
html[data-skin="brand"] .sxvp-card.is-active, html[data-skin="brand"] .sxvp-chip.is-active,
html[data-skin="brand"] .sxvp-card.is-active:hover, html[data-skin="brand"] .sxvp-chip.is-active:hover,
html[data-skin="brand"] .sxvp-card.is-active.is-unsupported, html[data-skin="brand"] .sxvp-chip.is-active.is-unsupported,
html[data-skin="brand"] .sxvp-card.is-active.is-unsupported:hover, html[data-skin="brand"] .sxvp-chip.is-active.is-unsupported:hover {
  background: var(--ss-tan); border-color: var(--ss-tan); border-style: solid; color: var(--ss-stage);
  font-weight: 600; opacity: 1; text-decoration: none; box-shadow: none; animation: none;
}
html[data-skin="brand"] .sxvp-chip.is-active::after,
html[data-skin="brand"] .sxvp-card.is-active::after { content: none; }
/* Count badges set their own color in picker.css, so they do not inherit the
   selected ink. Same stage ink as the chip label, on the tan fill. */
html[data-skin="brand"][data-face="mobile"] .sxvp-chip.is-active .sxvp-chip-n,
html[data-skin="brand"][data-face="mobile"] .sxvp-chip.is-active:hover .sxvp-chip-n,
html[data-skin="brand"][data-face="mobile"] .sxvp-chip.is-active.is-open .sxvp-chip-n,
html[data-skin="brand"][data-face="mobile"] .sxvp-chip.is-active.is-unsupported .sxvp-chip-n {
  color: var(--ss-stage);
}

/* Unavailable: quiet and dashed, never struck through. */
html[data-skin="brand"] .sxvp-card.is-unsupported, html[data-skin="brand"] .sxvp-chip.is-unsupported,
html[data-skin="brand"] .sxvp-card.is-unsupported:hover, html[data-skin="brand"] .sxvp-chip.is-unsupported:hover,
html[data-skin="brand"] .sxvp-variant.is-unsupported {
  background: transparent; color: var(--ss-cream-3); border-color: var(--ss-edge-strong);
  border-style: dashed; opacity: 0.6; text-decoration: none; box-shadow: none;
}
html[data-skin="brand"][data-face="mobile"] .sxvp-facet .sxvp-chip.is-empty { opacity: 0.6; }

/* Tree branches opened on the way to the pick. */
html[data-skin="brand"][data-face="mobile"] .sxvp-chip.is-branch.is-open,
html[data-skin="brand"][data-face="mobile"] .sxvp-chip.is-branch.is-path {
  background: var(--ss-tan-wash); border-color: var(--ss-tan); color: var(--ss-cream);
}
html[data-skin="brand"] .sxvp-pull-chip { border-radius: var(--ss-radius-chip); }

/* Result list: the top answer gets a tan frame, no glow. */
html[data-skin="brand"] .sxvp-variant {
  background: var(--ss-raised); border: 1px solid var(--ss-edge); border-radius: var(--ss-radius); box-shadow: none;
}
html[data-skin="brand"] .sxvp-variant.is-top { border-color: var(--ss-tan); box-shadow: none; }
html[data-skin="brand"] .sxvp-variant.is-ok,
html[data-skin="brand"] .sxvp-chip.is-ok { border-color: var(--ss-tan); box-shadow: none; }

/* Type: Newsreader title, mono numbers. Newsreader ships 400/500 only. */
html[data-skin="brand"] .sxvp-title,
html[data-skin="brand"][data-face="mobile"] .sxvp-title {
  font-family: var(--ss-serif); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; line-height: 1.15;
}
html[data-skin="brand"] .sxvp-kicker,
html[data-skin="brand"] .sxvp-axis-label { font-family: var(--ss-sans); color: var(--ss-cream-2); font-weight: 500; }
html[data-skin="brand"] .sxvp-count-n { font-family: var(--ss-mono); font-weight: 500; color: var(--ss-cream); }
html[data-skin="brand"] .sxvp-count-of { color: var(--ss-cream-3); }
html[data-skin="brand"] .mono,
html[data-skin="brand"] .sxvp-variant-meta,
html[data-skin="brand"] .cx-distill-ref,
html[data-skin="brand"] .cx-need-cat,
html[data-skin="brand"] .cx-role-cat,
html[data-skin="brand"][data-face="mobile"] .sxvp-variant-label { font-family: var(--ss-mono); }
html[data-skin="brand"] .cx-need-h,
html[data-skin="brand"] .cx-role-name { font-family: var(--ss-serif); font-weight: 500; }

/* Diameter dots stay: they are the implant's real colour code. */
html[data-skin="brand"] .sxvp-swatch { border-color: rgba(245, 239, 229, 0.35); }

/* Lineage diagram: tan-bright lines, flat nodes, no stage glow. */
html[data-skin="brand"] .sxhud-topo-edge { stroke: var(--ss-tan-bright); }
html[data-skin="brand"][data-face="mobile"] .sxvp-lineage-stage,
html[data-skin="brand"][data-face="mobile"] .sxvp-sheet .sxvp-lineage-stage {
  background: var(--ss-raised); border: 1px solid var(--ss-edge); border-radius: var(--ss-radius); box-shadow: none;
}
html[data-skin="brand"] .sxhud-topo-node,
html[data-skin="brand"][data-face="mobile"] .sxvp-lineage-stage .sxhud-topo-node,
html[data-skin="brand"][data-face="mobile"] .sxvp-sheet .sxhud-topo-node {
  background: var(--ss-well); border: 1px solid var(--ss-edge-strong); border-radius: var(--ss-radius);
  box-shadow: none; font-family: var(--ss-sans);
}
html[data-skin="brand"] .sxhud-topo-node.is-subject, html[data-skin="brand"] .sxhud-topo-node.is-companion,
html[data-skin="brand"] .sxhud-topo-node.is-grown, html[data-skin="brand"] .sxhud-topo-node.is-focus,
html[data-skin="brand"][data-face="mobile"] .sxvp-sheet .sxhud-topo-node.is-subject,
html[data-skin="brand"][data-face="mobile"] .sxvp-sheet .sxhud-topo-node.is-companion,
html[data-skin="brand"][data-face="mobile"] .sxvp-sheet .sxhud-topo-node.is-grown,
html[data-skin="brand"][data-face="mobile"] .sxvp-sheet .sxhud-topo-node.is-focus {
  border-color: var(--ss-tan); box-shadow: inset 0 0 0 1px var(--ss-tan);
}
html[data-skin="brand"] .sxvp-lineage-back { border-radius: var(--ss-radius); border-color: var(--ss-edge-strong); }

/* Part page: badges, role match, confirm, appearance bar, menu. */
html[data-skin="brand"] .cx-badge { border-radius: var(--ss-radius-chip); background: var(--ss-tan-wash); border-color: rgba(176, 144, 112, 0.5); }
html[data-skin="brand"] .cx-badge.is-unset { color: var(--ss-amber); border-color: rgba(217, 161, 74, 0.5); background: rgba(217, 161, 74, 0.12); }
html[data-skin="brand"] .cx-role-match { box-shadow: none; border-color: var(--ss-tan); border-radius: var(--ss-radius-chip); }
html[data-skin="brand"] .cx-confirm-b.is-suggested { border-color: rgba(176, 144, 112, 0.6); }
html[data-skin="brand"] .sxvp-appear-chip { border-radius: var(--ss-radius-chip); }
html[data-skin="brand"] .ss-menu { background: rgba(27, 26, 24, 0.78); }
html[data-skin="brand"] .ss-menu-drawer { background: var(--ss-raised); border-right-color: var(--ss-edge); }
html[data-skin="brand"] .ss-menu-head { border-bottom-color: var(--ss-edge); }
html[data-skin="brand"] .ss-menu-x { color: var(--ss-cream); border-color: var(--ss-edge-strong); border-radius: var(--ss-radius); }
html[data-skin="brand"] .ss-menu-row { color: var(--ss-cream); border-bottom-color: var(--ss-edge); font-family: var(--ss-sans); }
html[data-skin="brand"] .ss-menu-chev,
html[data-skin="brand"] .ss-menu-hint { color: var(--ss-cream-3); }
html[data-skin="brand"] .ss-handmotion { background: var(--ss-raised); border-color: var(--ss-edge); border-radius: var(--ss-radius); color: var(--ss-cream-2); }
html[data-skin="brand"] .ss-handmotion-k { color: var(--ss-tan-bright); font-family: var(--ss-mono); }

/* "More filters": the ten secondary axes behind one row (ADHD pass). */
html[data-skin="brand"]:not([data-face="hud"]) .sut-more-filters { border-top: 1px solid var(--ss-edge); margin-top: 6px; }
html[data-skin="brand"]:not([data-face="hud"]) .sut-more-filters > summary {
  min-height: 44px; display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--ss-sans); font-weight: 600; font-size: 15px; color: var(--ss-cream);
}
html[data-skin="brand"]:not([data-face="hud"]) .sut-more-filters > summary::marker { content: ""; }
html[data-skin="brand"]:not([data-face="hud"]) .sut-more-filters > summary::-webkit-details-marker { display: none; }
html[data-skin="brand"]:not([data-face="hud"]) .sut-more-filters > summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px;
  border-right: 1.5px solid var(--ss-tan); border-bottom: 1.5px solid var(--ss-tan);
  transform: rotate(45deg); transition: transform .18s var(--ss-ease);
}
html[data-skin="brand"]:not([data-face="hud"]) .sut-more-filters[open] > summary::after { transform: rotate(-135deg); }

/* Sizes and spacing for the phone and desktop faces only. The HUD (M400) face
   is fixed-height with overflow hidden and keeps its own type scale; the skin
   only recolours it. */
html[data-skin="brand"]:not([data-face="hud"]) .sut-title { font-size: 22px; }
html[data-skin="brand"]:not([data-face="hud"]) .sut .sxvp-axis-label,
html[data-skin="brand"]:not([data-face="hud"]) .sut-axis-label { font-size: 13px; margin-bottom: 8px; }
html[data-skin="brand"]:not([data-face="hud"]) .sut-filter,
html[data-skin="brand"]:not([data-face="hud"]) .sut-heard { font-size: 15px; }
html[data-skin="brand"]:not([data-face="hud"]) .sut .sut-chip { min-height: 36px; }
html[data-skin="brand"][data-face="mobile"] .sut .sut-chip { min-height: 44px; }
html[data-skin="brand"]:not([data-face="hud"]) .sut-sheet-brand { font-size: 30px; line-height: 1.1; }
html[data-skin="brand"]:not([data-face="hud"]) .sut-sheet-pick { font-size: 15px; }
html[data-skin="brand"]:not([data-face="hud"]) .sut-sheet-cat { font-size: 13px; }
html[data-skin="brand"]:not([data-face="hud"]) .sut-sheet-specs .sut-detail-row { padding: 9px 0; }
html[data-skin="brand"]:not([data-face="hud"]) :is(.sut-detail-k, .sut-detail-v) { font-size: 14px; }

/* ---------- 3. Preference card (/generator-ra) ----------------------------
   The card's own names (--void, --ink, --mute ...) point at the stage.
   The six family rings lose their six hues: position, label and glyph already
   say which family it is. Colour is kept for status only:
   open = gold, hold = tan-bright, extra = brick, not marked = cream-3. */
html[data-skin="brand"][data-face] {
  --void: var(--ss-stage);
  --bg: var(--ss-stage);
  --panel: var(--ss-raised);
  --ink: var(--ss-cream);
  --mute: var(--ss-cream-2);
  --line: var(--ss-edge);
  --check: var(--ss-gold);
  --type: var(--ss-sans);
  --rs: var(--ss-cream-2);
  --su: var(--ss-cream-2);
  --eq: var(--ss-cream-2);
  --in: var(--ss-cream-2);
  --md: var(--ss-cream-2);
  --im: var(--ss-cream-2);
  --use: var(--ss-gold);
  --hold: var(--ss-tan-bright);
  --extra: var(--ss-brick);
  --splat: var(--ss-amber);
}
html[data-skin="brand"][data-face] .phone { background: var(--ss-stage); }

/* Mast: the procedure is the headline. */
html[data-skin="brand"] .mast { padding-top: 8px; }
html[data-skin="brand"] .mast h1 {
  font-family: var(--ss-serif); font-weight: 500; font-size: clamp(22px, 5.6vw, 34px);
  line-height: 1.12; letter-spacing: -0.015em; max-width: 26ch; margin: 0 auto;
  text-wrap: balance;
}
html[data-skin="brand"] .place { font-size: 14px; color: var(--ss-cream-2); margin-top: 6px; }
html[data-skin="brand"] .feed-note,
html[data-skin="brand"] .feed-pill {
  display: inline-block; margin-top: 8px; padding: 2px 8px;
  border: 1px solid rgba(217, 161, 74, 0.5); border-radius: var(--ss-radius-chip);
  font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--ss-amber); background: rgba(217, 161, 74, 0.08);
}
html[data-skin="brand"] .feed-note::first-letter,
html[data-skin="brand"] .feed-pill::first-letter { text-transform: uppercase; }

/* Room actions: one tan primary, the rest hairline. */
html[data-skin="brand"] .room-actions { gap: 8px; margin-top: 14px; }
html[data-skin="brand"] .room-launch {
  min-height: 44px; padding: 8px 14px; border-radius: var(--ss-radius);
  border: 1px solid var(--ss-edge-strong); background: transparent;
  color: var(--ss-cream); font-size: 14px; font-weight: 500;
  transition: background-color .18s var(--ss-ease), border-color .18s var(--ss-ease);
}
html[data-skin="brand"] .room-launch:hover { border-color: var(--ss-tan); }
html[data-skin="brand"] .room-launch--use,
html[data-skin="brand"] .room-launch--primary {
  background: var(--ss-tan); border-color: var(--ss-tan); color: var(--ss-stage);
}
html[data-skin="brand"] .room-launch--use:hover,
html[data-skin="brand"] .room-launch--primary:hover { background: var(--ss-tan-bright); }
html[data-skin="brand"] .room-launch--use:active,
html[data-skin="brand"] .room-launch--primary:active { background: var(--ss-tan-deep); }
html[data-skin="brand"] .room-launch--quiet { color: var(--ss-cream-2); border-color: var(--ss-edge); }
html[data-skin="brand"] .room-state { color: var(--ss-gold); font-size: 13px; }
html[data-skin="brand"] .tone-key { margin-top: 12px; }
html[data-skin="brand"] .tone-key li { font-size: 12px; }
html[data-skin="brand"] .tone-key i { width: 7px; height: 7px; }

/* The rim: flat discs on a tan orbit. No glow, no drop shadow. */
html[data-skin="brand"] .orbit circle { stroke: rgba(176, 144, 112, 0.34); stroke-width: 1; }
/* Three discs a side must fit the rim's height: at 375px the stock
   34cqmin size stacks them into each other. */
html[data-skin="brand"] .node,
html[data-skin="brand"] .node[data-family] {
  width: clamp(76px, 30cqmin, 128px); height: clamp(76px, 30cqmin, 128px);
  background: var(--ss-raised); color: var(--ss-cream-2);
  box-shadow: inset 0 0 0 1px var(--ss-edge-strong);
  transition: box-shadow .18s var(--ss-ease), background-color .18s var(--ss-ease);
}
html[data-skin="brand"] .node:not(.inert):hover,
html[data-skin="brand"] .node:not(.inert):focus-visible {
  box-shadow: inset 0 0 0 1.5px var(--ss-tan); background: var(--ss-well);
}
/* ADHD pass: the family glyph carries the meaning, so it must read at a
   glance (it drew 3-8px inside a 31x14 box at 375). */
html[data-skin="brand"] .node svg.glyph {
  width: clamp(22px, 9cqmin, 34px); height: clamp(22px, 9cqmin, 34px);
  color: var(--ss-tan-bright); margin-bottom: 6px;
}
html[data-skin="brand"] .node strong {
  color: var(--ss-cream); font-weight: 500; font-size: clamp(12px, 4.2cqmin, 15px);
}
html[data-skin="brand"] .node .stat {
  border: 0; padding: 0; margin-top: 4px; min-height: 0; opacity: 1;
  font-family: var(--ss-mono); font-size: 13px; color: var(--ss-tan-bright);
}
html[data-skin="brand"] .node .stat i { display: none; }
html[data-skin="brand"] .node.inert { opacity: 1; background: transparent; box-shadow: inset 0 0 0 1px var(--ss-edge); }
html[data-skin="brand"] .node.inert strong,
html[data-skin="brand"] .node.inert .stat { color: var(--ss-cream-3); }

/* Notes drawer */
html[data-skin="brand"] .notes-tab {
  background: var(--ss-raised); box-shadow: inset 0 0 0 1px var(--ss-edge);
  border-radius: var(--ss-radius) var(--ss-radius) 0 0; color: var(--ss-cream-2); font-size: 15px;
}
html[data-skin="brand"] .notes-chevron { border-color: var(--ss-tan); }
html[data-skin="brand"] .notes-sheet {
  background: var(--ss-raised); box-shadow: inset 0 0 0 1px var(--ss-edge-strong);
  border-radius: 12px;
}
html[data-skin="brand"] .notes-sheet h2 { font-family: var(--ss-serif); font-weight: 500; font-size: 20px; }

/* Family list */
html[data-skin="brand"] .family-bar { background: var(--ss-stage); }
html[data-skin="brand"] .family-bar h2 {
  font-family: var(--ss-serif); font-weight: 500; font-size: 24px; letter-spacing: -0.01em;
}
html[data-skin="brand"] .tone-filter { background: var(--ss-stage); }
html[data-skin="brand"] .side-label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ss-cream-2); }
html[data-skin="brand"] .side-label::first-letter { text-transform: uppercase; }
html[data-skin="brand"] .tone-chip,
html[data-skin="brand"] .side-chip,
html[data-skin="brand"] .view-toggle button {
  min-height: 36px; padding: 4px 12px; border-radius: var(--ss-radius-chip);
  border-width: 1px; font-size: 13px; letter-spacing: 0;
  transition: background-color .18s var(--ss-ease), border-color .18s var(--ss-ease);
}
html[data-skin="brand"] .side-chip,
html[data-skin="brand"] .view-toggle button { border-color: var(--ss-edge-strong); color: var(--ss-cream-2); }
html[data-skin="brand"] .side-chip.is-on,
html[data-skin="brand"] .view-toggle button.is-on {
  background: var(--ss-tan); border-color: var(--ss-tan); color: var(--ss-stage);
}
html[data-skin="brand"] .tone-chip.is-on { color: var(--ss-stage); }
html[data-skin="brand"] .tone-chip.is-empty,
html[data-skin="brand"] .tone-chip:disabled,
html[data-skin="brand"] .side-chip[disabled] {
  background: transparent; border: 1px solid var(--ss-edge); color: var(--ss-cream-3);
}
/* 36px chips keep a 44px touch target. */
@media (pointer: coarse) {
  html[data-skin="brand"] .tone-chip,
  html[data-skin="brand"] .side-chip,
  html[data-skin="brand"] .view-toggle button { min-height: 44px; }
}

html[data-skin="brand"] .row {
  background: var(--ss-raised); border: 1px solid var(--ss-edge); border-radius: 10px;
}
html[data-skin="brand"] .row.is-picked { border-color: var(--ss-tan); }
html[data-skin="brand"] .row.empty { background: transparent; border: 1px dashed var(--ss-edge-strong); }
html[data-skin="brand"] .row.is-return { outline-color: var(--ss-tan-bright); }
html[data-skin="brand"] .row strong { font-weight: 500; }
html[data-skin="brand"] .row strong a,
html[data-skin="brand"] .topo-dock strong a { text-decoration-color: rgba(176, 144, 112, 0.6); }
html[data-skin="brand"] .row a { color: inherit; }
html[data-skin="brand"] .thumb,
html[data-skin="brand"] .pick { background: var(--ss-well); border-radius: 8px; }
html[data-skin="brand"] .pick { border: 1px solid var(--ss-edge-strong); }
html[data-skin="brand"] .pick.is-on {
  background: var(--ss-tan); border-color: var(--ss-tan); box-shadow: inset 0 0 0 5px var(--ss-well);
}
html[data-skin="brand"] .row-note textarea,
html[data-skin="brand"] .row.live textarea,
html[data-skin="brand"] .name-edit input,
html[data-skin="brand"] .pull-ask input {
  background: var(--ss-well); border: 1px solid var(--ss-edge); border-radius: 8px; color: var(--ss-cream);
}
html[data-skin="brand"] .row-note textarea:focus,
html[data-skin="brand"] .name-edit input:focus { border-color: var(--ss-tan); outline: none; }

/* Row buttons: sentence case, flat. */
/* Look only: sizes stay the stock sheet's, so rows lay out exactly as before. */
html[data-skin="brand"] .mark {
  border-radius: var(--ss-radius);
  background: transparent; border: 1px solid var(--ss-edge-strong); color: var(--ss-cream);
  font-weight: 500; letter-spacing: 0; text-transform: none;
  transition: background-color .18s var(--ss-ease), border-color .18s var(--ss-ease);
}
html[data-skin="brand"] .mark:hover { border-color: var(--ss-tan); }
html[data-skin="brand"] .mark.is-on,
html[data-skin="brand"] .mark.mark--primary {
  background: var(--ss-tan); border-color: var(--ss-tan); color: var(--ss-stage);
}
html[data-skin="brand"] .mark.mark--quiet { color: var(--ss-cream-2); border-color: var(--ss-edge); }
html[data-skin="brand"] .mark[data-closeout].is-on { color: var(--ss-stage); }

/* Sheets and scrims opened from the card */
html[data-skin="brand"] .slide-sheet,
html[data-skin="brand"] .room-sheet,
html[data-skin="brand"] .extra-sheet,
html[data-skin="brand"] .analytics-sheet {
  background: var(--ss-raised); box-shadow: inset 0 0 0 1px var(--ss-edge-strong);
}
html[data-skin="brand"] .slide-scrim { background: rgba(27, 26, 24, 0.78); }
html[data-skin="brand"] .tone-legend { border-color: var(--ss-edge); border-radius: var(--ss-radius); }

/* Wall (/generator-ra/wall) and the component topology it opens */
html[data-skin="brand"][data-face="wall"] body,
html[data-skin="brand"] .wall-stage { background: var(--ss-stage); }
html[data-skin="brand"] .or-wash { display: none; }
html[data-skin="brand"] .wall-mast h1 {
  font-family: var(--ss-serif); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.015em;
}
html[data-skin="brand"] .wall-place { font-size: 14px; color: var(--ss-cream-2); }
html[data-skin="brand"] .wall-feed {
  display: inline-block; margin-top: 6px; padding: 2px 8px;
  border: 1px solid rgba(217, 161, 74, 0.5); border-radius: var(--ss-radius-chip);
  font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--ss-amber); background: rgba(217, 161, 74, 0.08);
}
html[data-skin="brand"] .wall-feed::first-letter { text-transform: uppercase; }
html[data-skin="brand"] .need-chip { border-radius: var(--ss-radius-chip); letter-spacing: 0; }
html[data-skin="brand"] .card {
  background: var(--ss-raised); border: 1px solid var(--ss-edge); border-radius: 12px; color: var(--ss-cream-2);
}
html[data-skin="brand"] .card:not(.inert):hover { border-color: var(--ss-tan); }
html[data-skin="brand"] .card strong { font-family: var(--ss-serif); font-weight: 500; color: var(--ss-cream); }
html[data-skin="brand"] .card .stat { font-family: var(--ss-mono); color: var(--ss-tan-bright); opacity: 1; }
html[data-skin="brand"] .card .stat i { display: none; }
html[data-skin="brand"] .card-preview { color: var(--ss-cream); }
html[data-skin="brand"] .card.inert { opacity: 1; }
html[data-skin="brand"] .card.inert strong,
html[data-skin="brand"] .card.inert .stat { color: var(--ss-cream-3); }
html[data-skin="brand"] .topo-hub .topo,
html[data-skin="brand"] .topo-hub strong {
  background: var(--ss-raised); border: 1px solid var(--ss-edge-strong); border-radius: 10px;
}
html[data-skin="brand"] .topo-hub .topo:hover { border-color: var(--ss-tan); }
html[data-skin="brand"] .topo-hub .topo-title { font-family: var(--ss-serif); font-weight: 500; }
html[data-skin="brand"] .topo-kicker {
  text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ss-cream-2);
}
html[data-skin="brand"] .topo-edges line { stroke: rgba(176, 144, 112, 0.22); }
html[data-skin="brand"] .topo-edges line.is-on,
html[data-skin="brand"] .topo-edges line.is-rel { stroke: var(--ss-tan); }
html[data-skin="brand"] .topo-node {
  background: var(--ss-raised); border: 1px solid var(--ss-edge-strong); border-radius: 10px;
}
html[data-skin="brand"] .topo-node.is-active { box-shadow: inset 0 0 0 1.5px var(--ss-tan); }
html[data-skin="brand"] .topo-node.is-near { box-shadow: inset 0 0 0 1px rgba(176, 144, 112, 0.4); }
html[data-skin="brand"] .topo-dock { background: var(--ss-raised); border-color: var(--ss-edge-strong); border-radius: 12px; }
html[data-skin="brand"] .topo-extra {
  background: transparent; border-color: rgba(224, 112, 95, 0.5); border-radius: var(--ss-radius);
}
html[data-skin="brand"] .topo-extra-label { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; }
html[data-skin="brand"] .notes-rail { border-top-color: var(--ss-edge); }
html[data-skin="brand"] .wall-notes-tab { border-radius: var(--ss-radius); }

/* ADHD pass on the live card (09-23). "Scan to link" and "In Supplies · ..."
   are row links 17 px tall: give them a thumb-sized target without moving
   the row's text. The wall's approval strip and scan caption were 12 px:
   readable from across the room. */
html[data-skin="brand"] .link-scan:not([hidden]) {
  min-height: 44px; display: inline-flex; align-items: center; padding-block: 0;
}
html[data-skin="brand"] .topo-extra-label { font-size: 14px; }
html[data-skin="brand"] .topo-extra { font-size: 14px; }
/* The stock sheet sizes the strip's children itself (items + "+N more" at 12 px),
   so the parent's size never reaches them: set each one. */
html[data-skin="brand"] .topo-extra-items { font-size: 14px; }
html[data-skin="brand"] .topo-extra-more { font-size: 14px; }
html[data-skin="brand"] .topo-caption { font-size: 14px; color: var(--ss-cream-2); }

/* Sentence case everywhere on the card: the stock sheet uppercases 25 small
   labels. Strings are written in sentence case already; the first letter is
   lifted for the few that are stored lower-case. */
html[data-skin="brand"] :is(.slide-hint, .analytics-sheet h3, .intent, .pull-who, .pull-state,
  .facility-ids li span, .name-edit span, .qty span, .map-label, .pack-kid em, .row.group-head,
  .group-toggle, .slots li strong, .construct-node small, .topo-lane small, .topo-node small,
  .bubble-link, .canonical-review-identity dt) {
  text-transform: none; letter-spacing: 0;
}
html[data-skin="brand"] :is(.intent, .pull-state, .map-label, .group-toggle, .topo-node small,
  .canonical-review-identity dt)::first-letter { text-transform: uppercase; }
html[data-skin="brand"] .intent { font-weight: 500; color: var(--ss-cream-2); }

/* ---------- 4. Signed-in shell (paper) -----------------------------------
   The shell keeps its paper and ink, and terracotta for "outstanding" states
   (per the brand sheet). Its labels and page wash move to tan ink and tan.
   Sage, which Drew rejected on 09-16, becomes ScrubStack tan:
   --sage for fills and bars, --sage-deep for text and white-on fills (tan ink
   #6B5238: 6.8:1 on paper, 7.6:1 under white), --sage-tint for washes.
   Paper pages carry data-skin="brand-paper", so no ink-stage rule above can
   match them (those select the exact value "brand"). */
html[data-skin="brand-paper"] {
  --sage: #B09070;
  --sage-deep: #6B5238;
  --sage-tint: #EFE6DA;
}
html[data-skin="brand-paper"] :focus-visible {
  outline: 2px solid #6B5238;
  outline-offset: 2px;
}
/* The terracotta wash behind the page becomes a tan one. */
html[data-skin="brand-paper"] body {
  background: radial-gradient(circle at 8% -10%, rgba(176, 144, 112, 0.16), transparent 24rem), var(--cream);
}
/* Labels were terracotta mono in capitals. They become tan ink in Plex Sans,
   sentence case, as on the four ink pages. Terracotta stays for the states
   that need attention (errors, pending, open). */
html[data-skin="brand-paper"] :is(.ss-eyebrow, .ss-sidebar-title, .ss-stat-label,
  .ss-table thead th, .picker-kicker, .ssb-state-kicker, .ss-login-label,
  .profile-field-row label) {
  color: #6B5238; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
}
html[data-skin="brand-paper"] .ss-eyebrow { font-size: 13px; }
html[data-skin="brand-paper"] :is(.ss-eyebrow, .ss-sidebar-title, .ss-stat-label,
  .ss-table thead th, .picker-kicker, .ssb-state-kicker, .ss-login-label,
  .profile-field-row label)::first-letter { text-transform: uppercase; }
html[data-skin="brand-paper"] .dashboard-panel-title {
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
html[data-skin="brand-paper"] .dashboard-panel-title::first-letter { text-transform: uppercase; }
html[data-skin="brand-paper"] .picker-tile:hover { border-left-color: #B09070; }
html[data-skin="brand-paper"] .ss-brand-glyph:after { background: #B09070; }

/* ADHD pass on the shell (Drew 09-23: one action, low clutter, skimmable).
   The status strip printed build notes to users ("No horizontal scroll",
   "No PHI cache", "Dwell targets visible"); none are controls. The legal
   footer keeps its two links and drops the internal tokens (surgx-db, live,
   app-shell). */
html[data-skin="brand-paper"] .ss-status-strip { display: none; }
html[data-skin="brand-paper"] .ss-provenance > :not(a):not(:nth-child(2)) { display: none; }
/* Every control a thumb can reach is at least 44px tall. */
/* :not([hidden]) so display here never un-hides a control the page hid. */
html[data-skin="brand-paper"] :is(.ss-signin-btn, .ss-install-btn, a.ss-token, button.ss-token, .ss-segmented button, .ss-wordmark,
  .ssb-flow-step strong a):not([hidden]) {
  min-height: 44px; display: inline-flex; align-items: center;
}
html[data-skin="brand-paper"] .ss-provenance a.ss-token { padding-inline: 10px; }
/* Every button is a thumb target too (the sweep found "+ New cart" at 36 px and
   the profile "Sign in" at 39 px). min-height only, no display, so it cannot
   un-hide anything. */
html[data-skin="brand-paper"] :is(button, select, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])) { min-height: 44px; min-width: 44px; }
/* Icon-only controls: 44 in both directions (the avatar was 32x44). */
html[data-skin="brand-paper"] .ss-avatar { width: 44px; height: 44px; }
/* Hidden means hidden. A stock phone rule (.inventory-scan-card .lane-form
   {display:grid}) beats .inventory-manual[hidden], so the manual-entry form
   showed on /inventory at 375 while marked hidden. This also backs up every
   display rule in this sheet. */
html[data-skin="brand-paper"] [hidden] { display: none !important; }
/* The last mono capitals become sentence case, like every other label. */
html[data-skin="brand-paper"] :is(.ss-signin-btn, .ss-install-btn, .ss-context-slot span, .picker-stat span,
  .inventory-metric span, .inventory-item-qty span, .ssb-review-score span, .hub-role, .profile-meta-key,
  .ss-user-menu-role, .profile-field-edit-btn) {
  font-family: var(--sans); text-transform: none; letter-spacing: 0;
}
html[data-skin="brand-paper"] :is(.ss-signin-btn, .ss-install-btn) { font-size: 14px; font-weight: 600; }

/* Nav: six primary rows plus one "More" (the server renders the group only
   with the skin on). Native <details>, so it works without script and opens
   by itself when the current page is inside it. */
html[data-skin="brand-paper"] .ss-nav-more > summary { list-style: none; cursor: pointer; }
html[data-skin="brand-paper"] .ss-nav-more > summary::-webkit-details-marker { display: none; }
/* The chevron is a child element: hands-free arms the summary and owns both
   of its pseudo-elements (::after = dwell ring, ::before = label tip). */
html[data-skin="brand-paper"] .ss-nav-more-chev {
  margin-left: auto; width: 7px; height: 7px; flex: none;
  border-right: 1.5px solid #6B5238; border-bottom: 1.5px solid #6B5238;
  transform: rotate(45deg); transition: transform .18s ease;
}
html[data-skin="brand-paper"] .ss-nav-more[open] .ss-nav-more-chev { transform: rotate(-135deg); }
html[data-skin="brand-paper"] .ss-nav-more > .ss-shell-nav-item { padding-left: 22px; }

/* ---------- 5. Design-port (v2) shell ------------------------------------
   /dashboard, /cards, /alerts, /cases, /inventory and /profile render the v2
   chassis (.ssv2-*) when SCRUBSTACK_APP_DESIGN_PORT_ENABLED is on, so section 4
   never reached them. They carry data-skin="brand-paper-v2" (same SURGX_BRAND_SKIN
   flag and ?brand= hatch as section 4; its own value keeps section 4 off OR-dark). The chassis already sits on
   the brand sheet's paper and terracotta; this is section 4's pass for it:
   sage becomes tan, mono capitals become sentence-case labels, small grey text
   reaches AA, and thumb targets reach 44px. Both themes: the chassis has
   OR-dark (data-theme="or-dark" on <html>). */
html[data-skin="brand-paper-v2"] {
  --sage: #4E361F;       /* deep tan ink: 6.7:1 on --sage-tint */
  --sage-tint: #DDC4A5;  /* a real tan wash: dE >= 13 from the neutral, amber and terracotta pills */
  --muted-2: #67625B;    /* was #ABA59C (2.3:1); now >= 4.87:1 on every paper surface */
  --ssv2-label-ink: #6B5238;
}
html[data-skin="brand-paper-v2"][data-theme="or-dark"] {
  --sage: #EEDCC6;       /* tan cream: 7.2:1 on --sage-tint */
  --sage-tint: #54412C;  /* dE >= 9.7 from the neutral, amber and terracotta pills */
  --muted-2: #A39B90;    /* was #6E6962 (2.7:1); now >= 5.41:1 on every dark surface */
  --ssv2-label-ink: #D0C0B0;
}
html[data-skin="brand-paper-v2"] :focus-visible {
  outline: 2px solid var(--ssv2-label-ink);
  outline-offset: 2px;
}
/* Labels were 9px mono capitals. They become tan ink in Plex Sans, sentence
   case, as on the v1 shell. Status pills keep their capitals (as in section 4).
   The "ready / in par / current" pills and the status dot read --sage, so they turn tan with
   it, as they do on the v1 shell (section 4, Drew 09-16: no sage). The tint is a strong tan, so
   "ready" never reads as the neutral pill (a pale tan was dE 1.3 from it: Codex 4111675974);
   test_v2_status_hues_stay_distinct holds it apart from neutral, amber and terracotta. */
html[data-skin="brand-paper-v2"] :is(.ssv2-label, .ssv2-panel-title, .ssv2-sheet-title,
  .ssv2-stat span, .ssv2-ctx-diff-label) {
  color: var(--ssv2-label-ink); font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
}
html[data-skin="brand-paper-v2"] :is(.ssv2-label, .ssv2-panel-title, .ssv2-sheet-title,
  .ssv2-stat span, .ssv2-ctx-diff-label)::first-letter { text-transform: uppercase; }
/* 9-10px mono sub-lines and notes: 12px sans, readable at a glance. */
html[data-skin="brand-paper-v2"] :is(.ssv2-row-sub, .ssv2-panel-meta, .ssv2-note, .ssv2-crumb,
  .ssv2-context, .ssv2-status-text, .ssv2-rail-note) {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none;
}
/* Thumb targets: the header context button (it opens the facility sheet) was
   13px tall, the logo links 24px, the theme buttons 38px. A button centres its
   content, so min-height alone keeps the context line as it was. */
html[data-skin="brand-paper-v2"] :is(.ssv2-context, .ssv2-seg button, .ssv2-history) { min-height: 44px; }
html[data-skin="brand-paper-v2"] :is(.ssv2-seg button, .ssv2-history) { min-width: 44px; }
html[data-skin="brand-paper-v2"] :is(.ssv2-wordmark, .ssv2-rail-logo):not([hidden]) {
  min-height: 44px; display: flex; align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  /* Both skin values: the paper shell's More chevron rotates (Codex 4081992038). */
  html[data-skin="brand"] *, html[data-skin="brand-paper"] * { transition: none !important; }
}
