/* Shuttle's shell (SHU-040), against the Loom tokens only: no literal colour, size or radius beyond
   the page's own measure. Components come from theme/components/bundle.css; this file lays them out.
   Wide (1024 px and up): the rail beside the screen. Narrower: the rail opens over it from Menu.
   Phone (700 px and under): a tab bar at the foot, its More opening the rail. */

/* The hidden attribute wins over a component's display (lm-btn, lm-row and the rest set one). */
[hidden] { display: none !important; }

.sh-skip { position: absolute; left: var(--space-3); top: -100px; z-index: 200; padding: var(--space-2) var(--space-3); background: var(--surface-panel); color: var(--text-strong); border-radius: var(--radius-control); }
.sh-skip:focus { top: var(--space-3); }

.sh-app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.sh-env + .sh-app { min-height: calc(100vh - var(--strip-h)); }
.sh-rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--rail-line); }
.sh-brand { text-decoration: none; min-height: var(--hit); }
.sh-rail-bank { padding: 0 var(--space-3) var(--space-2); color: var(--rail-heading); font: 500 12px/16px var(--font-sans); }
.sh-rail-group { display: flex; flex-direction: column; gap: 2px; }
.sh-scrim { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--surface-inverse) 50%, transparent); }

.sh-col { display: flex; flex-direction: column; min-width: 0; }
.sh-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: 0 var(--space-6); border-bottom: 1px solid var(--line-hairline); background: var(--surface-panel); color: var(--text-strong); }
.sh-menu { display: none; }
.sh-menu svg { flex: none; }
.sh-top-end { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.sh-who { display: flex; align-items: center; gap: var(--space-3); }
.sh-who .lm-panel-meta { white-space: nowrap; }
.sh-as { display: flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.sh-as .lm-select-wrap { width: auto; }
.sh-as .lm-select { width: auto; max-width: 240px; }
.sh-top .lm-btn, .sh-top .lm-select { min-height: var(--hit); }
.sh-theme { min-width: var(--hit); }
.lm-popover.sh-pop-up { top: auto; bottom: calc(50% + 14px); }
.sh-theme[aria-pressed="true"] { color: var(--text-strong); background: var(--surface-pressed); }

.sh-crumbs { flex: 1 1 auto; min-width: 0; }
.sh-crumbs li { white-space: nowrap; }
.sh-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0; padding: 0; list-style: none; font: 500 13.5px/18px var(--font-sans); color: var(--text-secondary); }
.sh-crumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--text-muted); }
.sh-crumbs a { display: inline-flex; align-items: center; min-height: var(--hit); color: var(--text-secondary); }
.sh-crumbs [aria-current="page"] { color: var(--text-strong); }

.sh-main { width: 100%; max-width: 1120px; box-sizing: border-box; margin: 0 auto; padding: var(--space-8) var(--space-6); }
.sh-main:focus { outline: none; }
.sh-head { display: flex; flex-direction: column; gap: var(--space-2); }
.sh-titlerow { gap: var(--space-2); }
.sh-panel-title { display: inline-flex; align-items: center; gap: var(--space-1); }
.sh-h1 { margin: 0; color: var(--text-strong); }
/* The heading takes focus on a new screen for a screen reader; it is not a control, so no ring. */
.sh-h1:focus, .sh-h1:focus-visible { outline: none; }
.sh-lede { margin: 0; max-width: 64ch; color: var(--text-secondary); }
.sh-copy { margin: 0; }
.sh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.sh-scroll { overflow-x: auto; }
.sh-main .lm-table { width: 100%; }
.sh-foot { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); width: 100%; max-width: 1120px; box-sizing: border-box; margin: auto auto 0; padding: var(--space-4) var(--space-6) var(--space-8); color: var(--text-muted); }

/* A word with a glossary entry, in running text. */
.sh-term { text-decoration-style: dotted; }

/* The glossary. */
.sh-gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; margin: 0; background: var(--line-hairline); border: 1px solid var(--line-hairline); border-radius: var(--radius-panel); overflow: hidden; }
.sh-gloss-item { padding: var(--space-3) var(--space-4); background: var(--surface-panel); scroll-margin-top: 80px; }
.sh-gloss-item[aria-current="true"] { background: var(--surface-hover); box-shadow: inset 3px 0 0 var(--ember); }
.sh-gloss dt { color: var(--text-strong); font: 600 13.5px/18px var(--font-sans); }
.sh-gloss dd { margin: var(--space-1) 0 0; color: var(--text-body); font: 400 13.5px/20px var(--font-sans); }

/* Lists and tables (SHU-041). */
.sh-muted { color: var(--text-muted); }
.sh-h2 { margin: var(--space-6) 0 0; font: 600 18px/24px var(--font-sans); color: var(--text-strong); }
.sh-cell-main { display: block; color: var(--text-strong); font-weight: 500; }
.sh-launches small, .sh-mines small, .sh-feed small, .sh-coming small, .sh-bizs small, .sh-svo small { display: block; color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
/* The launch's name reads at the body size, as its cells do (a th takes the column header's 12 px). */
.sh-launches th[scope="row"] { color: var(--text-body); font: 400 13.5px/20px var(--font-sans); text-align: left; }
.sh-launches td, .sh-launches th[scope="row"] { height: auto; padding-top: var(--space-2); padding-bottom: var(--space-2); vertical-align: top; }
.sh-launches .sh-why { max-width: 24ch; margin-top: var(--space-1); }
.sh-launches .lm-num { white-space: nowrap; }
.sh-launches .lm-phases, .sh-mines .lm-phases { gap: 2px; margin-top: var(--space-1); }
.sh-launches .lm-phase-name, .sh-mines .lm-phase-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sh-filter { margin-bottom: var(--space-3); flex-wrap: wrap; }
.sh-more { margin: var(--space-3) 0 0; }
.sh-answer-p { margin: 0 0 var(--space-4); max-width: 80ch; color: var(--text-body); }
.sh-answer-p strong { color: var(--text-strong); }
.sh-needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.sh-need { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--line-hairline); border-radius: var(--radius-panel); background: var(--surface-ground); }
.sh-need-k { color: var(--text-secondary); font: 500 12px/16px var(--font-sans); }
.sh-need-t { margin: 0; color: var(--text-strong); font: 600 14px/20px var(--font-sans); }
.sh-need p { margin: 0; color: var(--text-body); font: 400 13px/20px var(--font-sans); }
.sh-need-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-2); }
.sh-need .sh-need-b { margin-top: auto; padding-top: var(--space-2); color: var(--text-secondary); font: 400 12px/16px var(--font-sans); }
.sh-need-b span { color: var(--text-strong); font-weight: 600; }
.sh-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: var(--space-4); align-items: start; }
.sh-col-m, .sh-col-s { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.sh-mines, .sh-feed, .sh-coming, .sh-bizs { margin: 0; padding: 0; list-style: none; }
.sh-mine { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto auto; gap: var(--space-2) var(--space-4); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); }
.sh-mine:first-child { border-top: 0; }
.sh-mine-c span { color: var(--text-strong); white-space: nowrap; }
.sh-feed li, .sh-coming li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--line-hairline); font: 400 13.5px/20px var(--font-sans); }
.sh-coming li { grid-template-columns: minmax(0, 1fr); }
.sh-coming--when li { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.sh-mine-p { display: flex; flex-direction: column; gap: 2px; }
.sh-feed li:first-child, .sh-coming li:first-child { border-top: 0; }
.sh-feed time { color: var(--text-muted); font: 400 12px/20px var(--font-mono); }
.sh-svo { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-2) 0; }
.sh-svo-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); }
.sh-biz { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: var(--space-3) var(--space-5); padding: var(--space-4) 0; border-top: 1px solid var(--line-hairline); }
.sh-biz:first-child { border-top: 0; }
.sh-biz-n { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.sh-biz-c p { margin: var(--space-1) 0 0; color: var(--text-body); font: 400 13.5px/20px var(--font-sans); }
@media (max-width: 980px) { .sh-cols { grid-template-columns: minmax(0, 1fr); } .sh-biz { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .sh-mine { grid-template-columns: minmax(0, 1fr) auto; } .sh-mine-p { grid-column: 1 / -1; } .sh-coming--when li { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); } }

/* SHU-04F: "How it's built", the top-bar link and its screen. */
.sh-how { min-width: var(--hit); text-decoration: none; }
.sh-how svg { flex: none; }
.sh-how[aria-current="page"] { color: var(--text-strong); background: var(--surface-pressed); }
.sh-how-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0; color: var(--text-secondary); font: 400 13px/20px var(--font-sans); }
.sh-how-backrow { margin: 0; }
.sh-how-back { padding-left: var(--space-2); text-decoration: none; }
.sh-how-chips .lm-chip { text-decoration: none; }
.sh-how-chips .lm-chip[aria-current="page"] { background: var(--action-ink); border-color: var(--action-ink); color: var(--on-action-ink); }
.sh-how-h { margin: var(--space-5) 0 var(--space-2); color: var(--text-strong); font: 600 13.5px/18px var(--font-sans); }
.sh-how-h:first-child { margin-top: 0; }
.sh-how-steps, .sh-how-not, .sh-how-boxes, .sh-how-rings, .sh-how-adrs { margin: 0; padding: 0; list-style: none; }
.sh-how-steps { display: flex; flex-direction: column; gap: var(--space-2); }
.sh-how-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.sh-how-steps p, .sh-how-not p, .sh-how-never p, .sh-how-adrs p { margin: 0; max-width: 80ch; color: var(--text-body); font: 400 13.5px/20px var(--font-sans); }
.sh-how-steps b, .sh-how-not b { color: var(--text-strong); font-weight: 600; }
.sh-how-n, .sh-how-nums { color: var(--text-strong); font: 600 12px/20px var(--font-mono); }
.sh-how-n { display: inline-flex; justify-content: center; border-radius: var(--radius-tag); background: var(--surface-sunken); }
.sh-how-not { display: flex; flex-direction: column; gap: var(--space-3); }
.sh-how-not .sh-how-why { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-1); }
.sh-how-not .sh-how-why > span:last-child { color: var(--text-secondary); font: 400 12.5px/18px var(--font-sans); }
.sh-how-reads { margin: 0; padding-left: var(--space-5); color: var(--text-body); font: 400 13.5px/20px var(--font-sans); }
.sh-how-never { margin-top: var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--surface-sunken); }
.sh-how-never .sh-how-h { margin: 0 0 var(--space-1); }
.sh-how-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); }
.sh-how-row:first-child { border-top: 0; padding-top: 0; }
.sh-how-rowlab { margin: 0; color: var(--text-secondary); font: 500 12px/18px var(--font-sans); }
.sh-how-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-2); }
.sh-how-box { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3); border: 1px solid var(--line-hairline); border-radius: var(--radius-control); background: var(--surface-ground); }
.sh-how-box--on { box-shadow: inset 3px 0 0 var(--ember); }
.sh-how-bt { color: var(--text-strong); font: 600 13px/18px var(--font-sans); }
.sh-how-box small { color: var(--text-secondary); font: 400 12px/16px var(--font-sans); }
.sh-how-box .sh-how-note { color: var(--text-muted); }
.sh-how-pill { display: flex; margin-top: var(--space-1); }
.sh-how-kv { display: grid; gap: var(--space-2); margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--line-hairline); }
.sh-how-kv div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--space-3); }
.sh-how-kv dt { color: var(--text-secondary); font: 500 12px/20px var(--font-sans); }
.sh-how-kv dd { margin: 0; color: var(--text-body); font: 400 13px/20px var(--font-sans); }
.sh-how-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.sh-how-ring { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--line-hairline); border-radius: var(--radius-panel); background: var(--surface-ground); }
.sh-how-ring--here { box-shadow: inset 3px 0 0 var(--ember); }
.sh-how-ring-h { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); color: var(--text-strong); font: 600 13.5px/20px var(--font-sans); }
.sh-how-ring ul { margin: 0; padding-left: var(--space-5); color: var(--text-body); font: 400 13px/20px var(--font-sans); }
.sh-how-ring > a { display: inline-flex; align-items: center; min-height: var(--hit); }
.sh-how-adrs li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--space-2) var(--space-3); align-items: center; padding: var(--space-2) 0; border-top: 1px solid var(--line-hairline); }
.sh-how-adrs li:first-child { border-top: 0; }
@media (max-width: 700px) {
  .sh-how { padding: 0 var(--space-2); }
  .sh-how-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sh-how-row, .sh-how-kv div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .sh-how-adrs li { grid-template-columns: 48px minmax(0, 1fr); }
  .sh-how-adrs li .lm-pill { grid-column: 2; justify-self: start; }
  /* The section chips are the screen's own navigation: a 44 px target each on a phone. */
  .sh-how-chips .lm-chip { min-height: var(--hit); }
}

/* SHU-04Da: the record. Each entry is time | who | what, stacked under 600 px; a trace is its steps.
   Tokens only, and no status colour on a kind: a kind, a who and an origin are neutral tags. */
.sh-rec, .sh-trace, .sh-pin-list, .sh-facts-now { margin: 0; padding: 0; list-style: none; }
.sh-rec-row { display: grid; grid-template-columns: 104px minmax(140px, 0.9fr) minmax(0, 2.4fr); gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); }
.sh-rec-row:first-child { border-top: 0; }
/* The first entry Show more brought takes focus once the button is gone: it shows the ring. */
.sh-rec-row:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.sh-rec-t { display: flex; flex-direction: column; gap: 2px; }
.sh-rec-t time { color: var(--text-secondary); font: 400 12.5px/18px var(--font-mono); white-space: nowrap; }
.sh-rec-who { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); min-width: 0; overflow-wrap: anywhere; }
.sh-rec-who small, .sh-rec-ev, .sh-trace-k small, .sh-pin dd small { display: block; color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
.sh-rec-what { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); min-width: 0; }
.sh-rec-sum { margin: 0; color: var(--text-body); font: 400 13.5px/20px var(--font-sans); overflow-wrap: anywhere; }
.sh-rec-l { color: var(--text-strong); font-weight: 600; }
.sh-rec-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.sh-rec-ev, .sh-rec-hash { margin: 0; overflow-wrap: anywhere; }
.sh-rec-trace { display: inline-flex; align-items: center; min-height: var(--hit); font: 500 13px/18px var(--font-sans); }
.sh-rec-nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); margin: 0; padding: 0; list-style: none; }
.sh-rec-nav a { display: inline-flex; align-items: center; min-height: var(--hit); font: 500 13.5px/18px var(--font-sans); }
.sh-checks { margin: 0 0 var(--space-3); padding-left: var(--space-5); color: var(--text-body); font: 400 13.5px/20px var(--font-sans); }
.sh-checks li + li { margin-top: var(--space-1); }
.sh-pin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4) var(--space-5); margin: 0; }
.sh-pin dt { color: var(--text-secondary); font: 500 12px/16px var(--font-sans); }
.sh-pin dd { margin: var(--space-1) 0 0; color: var(--text-body); font: 400 13.5px/20px var(--font-sans); overflow-wrap: anywhere; }
.sh-pin-list li { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); }
.sh-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.sh-pick .lm-field { flex: 1 1 220px; }
.sh-pick .lm-select { width: 100%; }
.sh-pick .lm-btn { min-height: var(--hit); }
.sh-trace-step { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-3); border-top: 1px solid var(--line-hairline); }
.sh-trace-step:first-child { border-top: 0; }
.sh-trace-step--current { box-shadow: inset 3px 0 0 var(--ember); }
.sh-trace-k { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.sh-quote { margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4); border-left: 3px solid var(--line-strong); background: var(--surface-ground); color: var(--text-body); font: 400 14px/22px var(--font-sans); }
.sh-quote p { margin: 0; overflow-wrap: anywhere; }
.sh-facts-now { margin-top: var(--space-3); color: var(--text-body); font: 400 13.5px/20px var(--font-sans); }
.sh-facts-now li + li { margin-top: var(--space-1); }
.sh-facts-now b { color: var(--text-strong); }
@media (max-width: 600px) {
  .sh-rec-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .sh-rec-t { flex-direction: row; gap: var(--space-2); align-items: baseline; }
  .sh-rec-who { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sh-trace-step { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .sh-trace-k { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
  .sh-pick .lm-field { flex-basis: 100%; max-width: none; }
}
/* End SHU-04Da. */

/* Time to market (SHU-04C): the stages as bars, what waits in one, and where the time goes. Bars use
   the data colours only (the limiting stage the focus colour), never a status colour. */
.sh-stages, .sh-titems, .sh-tt { margin: 0; padding: 0; list-style: none; }
.sh-stage-row, .sh-tt-row { display: grid; grid-template-columns: minmax(160px, 15rem) minmax(0, 1fr) 12rem; gap: var(--space-2) var(--space-4); align-items: center; padding: var(--space-1) 0; }
.sh-tt-row { padding: var(--space-2) 0; border-top: 1px solid var(--line-hairline); }
.sh-tt-row:first-child { border-top: 0; }
.sh-stage { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: var(--hit); padding: var(--space-1) var(--space-2); border: 1px solid transparent; border-radius: var(--radius-control); background: none; color: var(--text-body); font: 400 13.5px/18px var(--font-sans); text-align: left; cursor: pointer; }
.sh-stage:hover { color: var(--text-strong); background: var(--surface-hover); }
.sh-stage[aria-pressed="true"] { border-color: var(--line-control); background: var(--surface-panel); color: var(--text-strong); font-weight: 600; box-shadow: var(--shadow-thumb); }
.sh-stage small, .sh-stage-v small, .sh-titem small, .sh-tt small { display: block; color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
.sh-stage-v { color: var(--text-strong); font: 500 13.5px/18px var(--font-sans); font-variant-numeric: tabular-nums; text-align: right; }
.sh-tt-n { display: flex; flex-direction: column; min-width: 0; }
.sh-split { display: flex; }
.sh-split > i { border-radius: 0; }
.sh-split .to { background: var(--data-context-1); }
.sh-split .after { background: var(--data-context-3); }
.sh-key-to { background: var(--data-context-1); }
.sh-key-after { background: var(--data-context-3); }
.sh-titem { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(6rem, auto); gap: var(--space-1) var(--space-4); align-items: start; padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); }
.sh-titem:first-child { border-top: 0; }
.sh-titem-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-titem-d { color: var(--text-strong); font: 600 14px/20px var(--font-sans); font-variant-numeric: tabular-nums; text-align: right; }
.sh-stage-items > .sh-copy { margin-bottom: var(--space-2); color: var(--text-secondary); }
.sh-rejected { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line-hairline); }
.sh-callout { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--line-control); background: var(--surface-ground); color: var(--text-body); }
.sh-claim { margin-top: var(--space-2); color: var(--text-secondary); }
.sh-legend { margin: var(--space-3) 0; }
@media (max-width: 700px) {
  .sh-stage-row, .sh-tt-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sh-stage-row .lm-bar, .sh-tt-row .lm-bar { grid-column: 1 / -1; grid-row: 2; }
  .sh-titem { grid-template-columns: minmax(0, 1fr) auto; }
  .sh-titem-s { grid-column: 1 / -1; grid-row: 2; }
}

/* The phone's tab bar: hidden until 700 px. */
.sh-tabbar { display: none; }

@media (max-width: 1023px) {
  .sh-app { grid-template-columns: minmax(0, 1fr); }
  .sh-rail { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%); transition: transform var(--motion-base, .2s) ease; box-shadow: var(--shadow-pop); }
  .sh-app.sh-rail-open .sh-rail { transform: none; }
  .sh-menu { display: inline-flex; }
}
@media (max-width: 700px) {
  .sh-top { padding: 0 var(--space-4); gap: var(--space-2); }
  .sh-menu { display: none; }
  .sh-who .lm-panel-meta { display: none; }
  /* The top bar on a phone: the breadcrumb's last two steps on one line; the presenter's select
     without its label on screen (still read out); Night stays in view. */
  .sh-crumbs { overflow: hidden; }
  .sh-crumbs ol { flex-wrap: nowrap; }
  .sh-crumbs li:not(:nth-last-child(-n+2)) { display: none; }
  .sh-crumbs li:nth-last-child(2):not(:first-child)::before, .sh-crumbs li:first-child::before { content: none; }
  .sh-crumbs li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .sh-top-end { flex: none; gap: var(--space-1); }
  .sh-as .lm-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sh-as .lm-select { max-width: 132px; }
  .sh-theme { padding: 0 var(--space-2); }
  .sh-main { padding: var(--space-6) var(--space-4) calc(var(--space-8) + 64px); }
  .sh-foot { padding: var(--space-4) var(--space-4) calc(var(--space-8) + 64px); }
  .sh-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); background: var(--surface-panel); border-top: 1px solid var(--line-hairline); }
  .sh-tabbar a, .sh-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 6px 0; border: 0; background: none; color: var(--text-secondary); font: 500 12px/16px var(--font-sans); text-decoration: none; cursor: pointer; }
  .sh-tabbar [aria-current="page"] { color: var(--text-strong); font-weight: 600; }
  .sh-tabbar [aria-current="page"]::after { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--ember); }
  /* The phase names truncate side by side at phone width: stack them, glyph beside name. */
  .sh-phases:not(.lm-phases--compact) { flex-direction: column; gap: var(--space-2); }
  .sh-phases:not(.lm-phases--compact) .lm-phase { flex-direction: row; align-items: center; }
  .sh-phases:not(.lm-phases--compact) .lm-phase-glyph::after { display: none; }
  /* The launches table becomes one card per launch, each cell named by its column. */
  .sh-launches, .sh-launches tbody, .sh-launches tr, .sh-launches th[scope="row"], .sh-launches td { display: block; }
  .sh-launches thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sh-launches tr { padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); }
  .sh-launches tr[hidden] { display: none; }
  .sh-launches th[scope="row"], .sh-launches td { padding: var(--space-1) 0; border: 0; height: auto; }
  .sh-launches td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-2); text-align: left; }
  /* The column's name beside each value, for the eye only: the cell's role and its column header say it
     to a screen reader, so the label carries empty alternative text (the second content wins where it is
     understood). */
  .sh-launches td::before { content: attr(data-label); content: attr(data-label) / ""; color: var(--text-muted); font: 500 12px/20px var(--font-sans); }
  .sh-launches td > * { grid-column: 2; justify-self: start; }
  .sh-launches .lm-num { white-space: normal; text-align: left; }
  .sh-launches .sh-why { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .sh-rail { transition: none; } }

/* ---- SHU-042a: one launch (web/views/launch.js and launch/): its head, its sections as link tabs,
   the launch path's gates, the stop form, the record, and the status line. Tokens only. ---------- */
a.sh-cell-main { text-decoration: none; }
a.sh-cell-main:hover { text-decoration: underline; }
.sh-need-t a { color: inherit; text-decoration: none; }
.sh-need-t a:hover { text-decoration: underline; }
.sh-lhead { gap: var(--space-2); }
.sh-lmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0; color: var(--text-secondary); font: 400 13.5px/20px var(--font-sans); }
.sh-lmeta b { color: var(--text-strong); font-weight: 600; }
.sh-lstate { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.sh-lacts { margin-left: auto; }
/* The sections: link tabs that scroll sideways when they do not fit (a phone). */
.sh-ltabs { overflow-x: auto; overflow-y: hidden; }
.sh-ltabs .lm-tabs { min-width: max-content; gap: var(--space-5); }
.sh-ltabs .lm-tab { white-space: nowrap; }
.sh-ltab { min-width: 0; }
.sh-q { color: var(--text-secondary); }
.sh-h3 { margin: 0; font: 600 14px/20px var(--font-sans); color: var(--text-strong); }
.sh-sub { margin-top: var(--space-4); }
.sh-sub .sh-panel-title { margin-bottom: var(--space-2); }
.sh-subhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.sh-subhead .sh-panel-title { margin-bottom: 0; }
.sh-gates { margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.sh-gate { display: grid; grid-template-columns: minmax(120px, 0.7fr) minmax(0, 2fr) minmax(140px, auto); gap: var(--space-2) var(--space-4); align-items: start; padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); }
.sh-gate:first-child { border-top: 0; }
.sh-gate-who { color: var(--text-secondary); font: 500 12px/20px var(--font-sans); }
.sh-gate small, .sh-lrec small { display: block; color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
.sh-gate-t small { margin-top: 2px; }
.sh-gate-s { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); text-align: right; }
.sh-gate-go { display: inline-flex; align-items: center; min-height: var(--hit); font: 500 13px/18px var(--font-sans); }
.sh-form { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-3); }
.sh-form .lm-field { max-width: 560px; }
.sh-textarea { min-height: 88px; padding: var(--space-2) var(--space-3); resize: vertical; }
.sh-msg:empty { display: none; }
.sh-stop { border-left: 3px solid var(--line-control); }
/* The launch's record (sh-lrec: the record screen, SHU-04Da, has sh-rec). */
.sh-lrec { margin: 0; padding: 0; list-style: none; }
.sh-lrec-e { display: grid; grid-template-columns: 96px minmax(140px, 0.8fr) minmax(0, 2fr); gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); font: 400 13.5px/20px var(--font-sans); }
.sh-lrec-e:first-child { border-top: 0; }
.sh-lrec-e time { color: var(--text-muted); font: 400 12px/20px var(--font-mono); }
.sh-lrec-who { color: var(--text-strong); font-weight: 500; }
.sh-who-v { display: block; color: var(--text-muted); font: 400 12px/16px var(--font-mono); }
.sh-lrec-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); color: var(--text-body); }
.sh-lrec-what small { margin-top: 2px; }
/* The status line: above the phone's tab bar, and wrapping rather than running off a narrow screen. */
.sh-toasts { max-width: calc(100vw - 2 * var(--space-4)); }
.sh-toast { white-space: normal; }
@media (max-width: 700px) {
  .sh-toasts { bottom: calc(64px + var(--space-3)); }
  .sh-lacts { margin-left: 0; }
  .sh-gate { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .sh-gate-s { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; gap: var(--space-2); }
  .sh-lrec-e { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
}
/* ---- SHU-050: sign-in ------------------------------------------------------------------------ */
/* The sign-in page: the ways in, one under another, each a full-width control. */
.sh-signin-panel { max-width: 560px; }
.sh-signin { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.sh-signin .lm-btn { width: 100%; box-sizing: border-box; min-height: var(--hit); justify-content: flex-start; text-decoration: none; }
/* Sign in and Sign out in the top bar: the word beside the mark; on a phone, the mark alone (the word
   still read out), at the full touch size. */
.sh-signout { display: flex; margin: 0; }
.sh-auth { min-width: var(--hit); text-decoration: none; }
.sh-auth svg { flex: none; }
@media (max-width: 700px) {
  .sh-auth { padding: 0 var(--space-2); }
  .sh-auth span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* ---- SHU-058: a button busy with a request keeps its focus (aria-disabled, never disabled) ---- */
.lm-btn[aria-disabled="true"] { background: var(--surface-sunken); color: var(--text-disabled); border-color: transparent; cursor: progress; }
/* ---- end SHU-058 ---- */
/* SHU-0A4: the access log panel on /admin: the filters side by side where they fit, the table's
   caption over it, each line on one row (the table scrolls inside its region, never the page). */
.sh-log-filters { align-items: flex-end; }
.sh-log-filters .lm-field { flex: 1 1 180px; }
.sh-caption { text-align: left; padding-bottom: var(--space-2); }
.sh-log th, .sh-log td { white-space: nowrap; }
/* A date field's own picker follows the theme (the browser draws it; Night needs its dark form). */
[data-theme="dark"] .sh-log-filters input[type="date"] { color-scheme: dark; }
/* A scroll region is the containing block of what it holds: a visually hidden header (.lm-sr is
   position: absolute) otherwise escapes the region's clip and widens the page at 390 px. */
.sh-scroll { position: relative; }
/* A new invite's link, shown once, is one long word: it breaks where it must, never widens the page. */
.sh-wrap { overflow-wrap: anywhere; }
/* SHU-030: where it stands. A launch's sign-offs and owed facts as tables (cards on a phone, each cell
   named by its column, as the launches list), the chasers drafted, the pack fields owed with no fact
   owed for them, and the home's "Waiting on functions". Tokens only. */
.sh-launches a.sh-cell-main { text-decoration-color: var(--line-control); }
.sh-wt small, .sh-waits small { display: block; color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
.sh-wt small .lm-pill { margin-top: var(--space-1); }
.sh-wt th[scope="row"] { color: var(--text-body); font: 400 13.5px/20px var(--font-sans); text-align: left; }
.sh-wt td, .sh-wt th[scope="row"] { height: auto; padding-top: var(--space-2); padding-bottom: var(--space-2); vertical-align: top; }
.sh-wt .lm-num { white-space: nowrap; }
.sh-cell-line { display: block; }
.sh-cell-line + .sh-cell-line { margin-top: var(--space-1); }
#chasers { scroll-margin-top: 80px; }
.sh-target:focus, .sh-target:focus-visible { outline: none; }
.sh-chasers, .sh-waits, .sh-wait-rows { margin: 0; padding: 0; list-style: none; }
.sh-chasers { display: flex; flex-direction: column; gap: var(--space-3); }
.sh-chaser { padding: var(--space-3) var(--space-4); border: 1px solid var(--line-hairline); border-radius: var(--radius-panel); background: var(--surface-ground); }
.sh-chaser-to { margin: 0 0 var(--space-1); color: var(--text-secondary); font: 500 12px/16px var(--font-sans); }
.sh-chaser-to span { color: var(--text-strong); font-weight: 600; }
.sh-chaser-text { margin: 0; color: var(--text-body); font: 400 13.5px/20px var(--font-sans); }
.sh-wait { padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); }
.sh-wait:first-child { border-top: 0; padding-top: 0; }
.sh-wait-t { margin: 0; font: 600 14px/20px var(--font-sans); color: var(--text-strong); }
.sh-wait-l { margin: 0 0 var(--space-2); color: var(--text-secondary); font: 400 12px/16px var(--font-sans); }
.sh-wait-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-3); align-items: start; padding: var(--space-2) 0; border-top: 1px solid var(--line-hairline); font: 400 13.5px/20px var(--font-sans); }
.sh-wait-rows li:first-child { border-top: 0; }
.sh-wait-rows li > small { grid-column: 1; }
.sh-wait-rows .sh-wait-d { grid-column: 2; grid-row: 1; color: var(--text-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sh-wait-rows .lm-pill { grid-column: 2; grid-row: 2; justify-self: end; }
.sh-loose { margin: var(--space-3) 0 0; }
/* A chase card's act (Review the draft), under what it blocks; a target the size of a finger. */
.sh-need .sh-need-a { margin: 0; }
.sh-need-a a { display: inline-flex; align-items: center; min-height: var(--hit); font: 500 13px/18px var(--font-sans); }
@media (max-width: 700px) {
  .sh-wt, .sh-wt tbody, .sh-wt tr, .sh-wt th[scope="row"], .sh-wt td { display: block; }
  .sh-wt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sh-wt tr { padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); }
  .sh-wt th[scope="row"], .sh-wt td { padding: var(--space-1) 0; border: 0; height: auto; }
  .sh-wt td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-2); text-align: left; }
  /* The column's name beside each value, for the eye only (its column header says it to a screen reader). */
  .sh-wt td::before { content: attr(data-label); content: attr(data-label) / ""; color: var(--text-muted); font: 500 12px/20px var(--font-sans); }
  .sh-wt td > * { grid-column: 2; justify-self: start; }
  .sh-wt .lm-num { white-space: normal; text-align: left; }
}
/* The launch's Sign-offs tab (cross-PR review, 15 Nov 2026): its table sits in the narrower column
   beside the chosen function, where at 1280 px its six columns did not fit and the last, the note or
   condition, was cut at the panel's edge. Where its own column is narrow the table reads as cards, as
   it does on a phone, so every condition wraps inside the panel. */
.sh-fs .sh-scroll { container-type: inline-size; }
@container (max-width: 760px) {
  .sh-wt, .sh-wt tbody, .sh-wt tr, .sh-wt th[scope="row"], .sh-wt td { display: block; }
  .sh-wt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sh-wt tr { padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); }
  .sh-wt th[scope="row"], .sh-wt td { padding: var(--space-1) 0; border: 0; height: auto; }
  .sh-wt td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-2); text-align: left; overflow-wrap: anywhere; }
  .sh-wt td::before { content: attr(data-label); content: attr(data-label) / ""; color: var(--text-muted); font: 500 12px/20px var(--font-sans); }
  .sh-wt td > * { grid-column: 2; justify-self: start; }
  .sh-wt .lm-num { white-space: normal; text-align: left; }
  /* The chosen function as a card: its bar down the card's edge, with room between bar and text. */
  .sh-fs .sh-wt tr[data-current="true"] { background: var(--surface-sunken); box-shadow: inset 3px 0 0 var(--action-ink); padding-left: var(--space-3); padding-right: var(--space-2); }
  .sh-fs .sh-wt tr[data-current="true"] > th, .sh-fs .sh-wt tr[data-current="true"] > td { box-shadow: none; }
}
/* Platforms (SHU-043): the grid of platforms, the chosen one's roles and lines, and the two panels
   under it. One column of cards at phone width; each line's four parts stacked under 640 px. */
.sh-plat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.sh-plat-grid li { display: flex; min-width: 0; }
.sh-plat-card { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; padding: var(--space-4); color: var(--text-body); text-decoration: none; }
.sh-plat-card small { display: block; color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
.sh-plat-op { color: var(--text-secondary); font: 500 12px/16px var(--font-sans); }
.sh-plat-name { color: var(--text-strong); font: 600 15px/20px var(--font-sans); }
.sh-plat-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3) var(--space-5); margin: 0; }
.sh-plat-facts dt { color: var(--text-secondary); font: 500 12px/16px var(--font-sans); }
.sh-plat-facts dd { margin: var(--space-1) 0 0; color: var(--text-strong); font: 400 13.5px/20px var(--font-sans); }
.sh-plat-facts small, .sh-line small, .sh-plat-list small, .sh-watch small { display: block; color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
.sh-plat-src { margin-top: var(--space-2); color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
.sh-plat-note { margin-top: var(--space-3); color: var(--text-secondary); font: 400 13px/20px var(--font-sans); }
.sh-plat-role { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line-hairline); }
.sh-plat-rh { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); }
.sh-plat-rt { margin: 0; color: var(--text-strong); font: 600 14px/20px var(--font-sans); }
.sh-plat-sub { margin-top: var(--space-1); color: var(--text-secondary); font: 400 12px/16px var(--font-sans); }
.sh-plat-flag { margin-top: var(--space-2); color: var(--text-body); }
.sh-lines, .sh-inplace, .sh-plat-list { margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.sh-line { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(0, 0.8fr) 104px; gap: var(--space-2) var(--space-4); align-items: start; padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); font: 400 13.5px/20px var(--font-sans); }
.sh-line:first-child { border-top: 0; }
.sh-line-e, .sh-line-o { display: flex; flex-direction: column; min-width: 0; }
.sh-line-s { justify-self: end; }
.sh-line-k { color: var(--text-secondary); font: 500 12px/16px var(--font-sans); }
.sh-inplace li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--line-hairline); font: 400 13.5px/20px var(--font-sans); }
.sh-inplace li:first-child { border-top: 0; }
.sh-plat-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.sh-plat-list li { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); font: 400 13.5px/20px var(--font-sans); }
.sh-plat-list li:first-child { border-top: 0; padding-top: 0; }
.sh-watch-h { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
#platform { scroll-margin-top: calc(var(--hit) + var(--space-6)); }
@media (max-width: 860px) { .sh-plat-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .sh-line { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); } .sh-line-s { justify-self: start; } }
/* end Platforms (SHU-043) */

/* Ask Shuttle (SHU-029-screen): the question box, the suggestions, and each turn of the log, newest
   first: the question, the answer with its [n] links, and its sources, each opening in place. */
.sh-ask-field { max-width: none; }
.sh-ask-input { min-height: calc(var(--hit) * 2); padding: var(--space-2) var(--space-3); resize: vertical; }
.sh-ask-go { margin-top: var(--space-3); }
.sh-ask-said { margin: 0; }
.sh-ask-said:not(:empty) { margin-top: var(--space-2); }
.sh-ask-why { margin-top: var(--space-2); color: var(--text-secondary); }
.sh-ask-sugg { margin: var(--space-3) 0; }
.sh-ask-sugg .lm-chip { max-width: 100%; padding-top: var(--space-1); padding-bottom: var(--space-1); text-align: left; }
.sh-ask-log { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-4); }
/* Empty, the log is still there (no spacing), so the live region exists before the first answer. */
.sh-ask-log:empty { margin-top: 0; gap: 0; }
.sh-ask-turn { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line-hairline); }
.sh-ask-q { align-self: flex-end; max-width: 85%; margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-panel); background: var(--surface-sunken); color: var(--text-strong); overflow-wrap: anywhere; }
.sh-ask-a { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.sh-ask-p { margin: 0; max-width: 72ch; color: var(--text-body); overflow-wrap: anywhere; }
.sh-ask-note { color: var(--text-secondary); }
.sh-cite { margin-left: 2px; font: 500 12px/16px var(--font-mono); }
.sh-ask-h { margin: var(--space-2) 0 0; color: var(--text-strong); font: 600 13px/18px var(--font-sans); }
.sh-ask-src { align-self: stretch; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line-hairline); border-radius: var(--radius-panel); }
.sh-ask-src li + li { border-top: 1px solid var(--line-hairline); }
.sh-ask-src summary { padding: var(--space-3); color: var(--text-strong); cursor: pointer; overflow-wrap: anywhere; }
.sh-ask-src summary:hover { background: var(--surface-hover); }
.sh-ask-text { margin: 0; padding: 0 var(--space-3) var(--space-3); color: var(--text-body); font: 400 13px/20px var(--font-sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.sh-ask-ro { margin: 0; color: var(--text-secondary); font: 400 12px/16px var(--font-sans); }
.sh-ask-acts { margin-top: 0; }
.sh-ask-kv { margin: 0; }
.sh-ask-kv div { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--line-hairline); }
.sh-ask-kv div:first-child { border-top: 0; }
.sh-ask-kv dt { color: var(--text-body); }
.sh-ask-kv dd { margin: 0; color: var(--text-secondary); text-align: right; }
.sh-ask-wont { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding-left: var(--space-5); color: var(--text-body); }
/* SHU-053: the visitors' funnel on /admin. Row headers read at the body size; a step's note under it. */
.sh-funnel th[scope="row"] { min-width: 18ch; color: var(--text-body); font: 400 13.5px/20px var(--font-sans); text-align: left; }
.sh-funnel thead th, .sh-funnel td.lm-num { white-space: nowrap; }
.sh-funnel td, .sh-funnel th[scope="row"] { height: auto; padding-top: var(--space-2); padding-bottom: var(--space-2); }
.sh-funnel small { display: block; color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
/* SHU-053: the line on what is counted, under the copy's text (Home) or the sign-in's. */
.sh-copy.sh-counting { margin-top: var(--space-3); }

/* SHU-052a: the demo home's two products, side by side where they fit, stacked on a phone. Tokens only. */
.sh-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.sh-products > li { display: flex; min-width: 0; }
.sh-product { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--space-2); min-width: 0; }
.sh-product .sh-product-head { margin-bottom: 0; flex-wrap: wrap; }
.sh-product p { margin: 0; }
.sh-product-line { color: var(--text-strong); }
.sh-product-meta { color: var(--text-secondary); }
.sh-product-host { overflow-wrap: anywhere; }
.sh-product .sh-actions { margin-top: auto; padding-top: var(--space-2); }
/* A link drawn as a button reads as a button, with no link underline. The design system's lm-btn does not
   reset the underline its bundle gives every a (bundle.css: a, then .lm-btn with no text-decoration), so
   every <a class="lm-btn"> is underlined: owed to ai-dlc's loom-design-system (a.lm-btn { text-decoration:
   none }), and this scoped stopgap goes when the vendored theme carries it. */
.sh-product a.lm-btn { text-decoration: none; }
/* end SHU-052a */

/* ---- SHU-042b: the fact sheet (web/views/launch/facts.js) and Owed. Tokens only. ---------------- */
.sh-fgroup + .sh-fgroup { margin-top: var(--space-5); }
.sh-facts, .sh-fuses, .sh-fsrc { margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.sh-fact { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-top: 1px solid var(--line-hairline); }
.sh-fact:first-child { border-top: 0; }
.sh-fact[data-current="true"] { background: var(--surface-sunken); box-shadow: inset 3px 0 0 var(--action-ink); }
.sh-fact-a { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: var(--hit); justify-content: center; color: inherit; text-decoration: none; }
.sh-fact-a:hover .sh-cell-main { text-decoration: underline; }
.sh-fact-v { color: var(--text-body); font: 400 12px/16px var(--font-sans); overflow-wrap: anywhere; }
.sh-fact .lm-pill { flex: none; margin-top: var(--space-1); }
.sh-fdl { margin: var(--space-3) 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.sh-fdl dt { color: var(--text-secondary); font: 400 12px/16px var(--font-sans); }
.sh-fdl dd { margin: 2px 0 0; color: var(--text-strong); overflow-wrap: anywhere; }
.sh-fdl small, .sh-fuses small { display: block; color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
.sh-fact-answer { white-space: pre-wrap; }
.sh-fuses li, .sh-fsrc li { padding: var(--space-2) 0; border-top: 1px solid var(--line-hairline); }
.sh-fuses li:first-child, .sh-fsrc li:first-child { border-top: 0; }
.sh-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.sh-fchoices { max-height: 260px; overflow-y: auto; margin-top: var(--space-2); padding-inline: var(--space-1); border: 1px solid var(--line-hairline); border-radius: var(--radius-control); }
.sh-fprop { padding: var(--space-3); border: 1px solid var(--line-hairline); border-radius: var(--radius-control); }

/* ---- SHU-042c: the packs (web/views/launch/packs.js). Tokens only. ------------------------------- */
.sh-lacts { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); }
.sh-pks, .sh-pfields { margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.sh-pk { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(140px, 1fr) auto; gap: var(--space-2) var(--space-4); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); }
.sh-pk:first-child { border-top: 0; }
.sh-pk-main, .sh-pk-ready { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-pk small { color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
.sh-pk-main a { display: inline-flex; align-items: center; min-height: var(--hit); }
.sh-ppart .sh-pcopy-acts { margin-top: var(--space-2); }
.sh-pcopy { width: 100%; box-sizing: border-box; min-height: 160px; margin-top: var(--space-2); font: 400 12.5px/18px var(--font-mono); }
.sh-pcopy-l { display: block; margin-top: var(--space-2); }
.sh-pcopy-l[hidden], .sh-pcopy[hidden] { display: none; }
.sh-pf { padding: var(--space-3) 0; border-top: 1px solid var(--line-hairline); }
.sh-pf:first-child { border-top: 0; }
.sh-pf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.sh-pf-head .lm-pill { flex: none; }
.sh-pf-t { margin: 0; color: var(--text-strong); font: 600 13.5px/20px var(--font-sans); overflow-wrap: anywhere; }
.sh-pf-key { color: var(--text-secondary); font: 500 12px/20px var(--font-mono); }
.sh-pf-text { margin: var(--space-2) 0 0; color: var(--text-body); font: 400 13.5px/20px var(--font-sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.sh-pf .sh-copy { margin: var(--space-2) 0 0; }
.sh-pf-meta { margin: var(--space-1) 0 0; color: var(--text-muted); font: 400 12px/16px var(--font-sans); overflow-wrap: anywhere; }
.sh-pf-cites { margin-top: var(--space-2); }
.sh-pf-k { color: var(--text-secondary); font: 400 12px/16px var(--font-sans); }
.sh-pf-cites .sh-fsrc { margin-top: 2px; }
.sh-pf-cites li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); padding: var(--space-1) 0; font: 400 13px/18px var(--font-sans); }
.sh-pf-cites li small { flex-basis: 100%; color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
.sh-pf-cites a { display: inline-flex; align-items: center; min-height: 24px; }
.sh-pf .sh-actions { margin-top: var(--space-2); }
@media (max-width: 700px) {
  .sh-pk { grid-template-columns: minmax(0, 1fr) auto; }
  .sh-pk-ready { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- SHU-042e: the sign-offs (web/views/launch/signoffs.js). Tokens only. ------------------------ */
.sh-wt tr[data-current="true"] > th, .sh-wt tr[data-current="true"] > td { background: var(--surface-sunken); }
.sh-wt tr[data-current="true"] > th { box-shadow: inset 3px 0 0 var(--action-ink); }
.sh-wt th[scope="row"] a.sh-cell-main { display: inline-flex; align-items: center; min-height: var(--hit); }
.sh-so-note { margin: var(--space-1) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sh-so-conds { margin: var(--space-1) 0 0; padding-left: var(--space-4); color: var(--text-body); overflow-wrap: anywhere; }
.sh-so-conds li { padding: 0; border-top: 0; }
[data-theme="dark"] .sh-so-due { color-scheme: dark; }

/* ---- SHU-042f: the obligations and the PRD (web/views/launch/obligations.js, prd.js). Tokens only. -- */
.sh-ob { display: flex; flex-direction: column; gap: var(--space-4); }
.sh-ob-group { margin-top: var(--space-4); }
.sh-ob-group:first-of-type { margin-top: var(--space-2); }
.sh-ob-gh { display: flex; flex-direction: column; gap: var(--space-1); }
.sh-ob-gh small { color: var(--text-muted); font: 400 12px/16px var(--font-sans); }
.sh-ob-owed { color: var(--text-secondary); font-weight: 500; }
.sh-ob-flag { overflow-wrap: anywhere; }
.sh-ob-none, .sh-ob-owedlist { margin: var(--space-2) 0 0; padding-left: var(--space-4); color: var(--text-body); }
.sh-ob-owedlist li { padding: var(--space-1) 0; border-top: 0; }
.sh-ob-owedlist a { display: inline-flex; align-items: center; min-height: var(--hit); overflow-wrap: anywhere; }
.sh-line a { overflow-wrap: anywhere; }
/* The sample-data strip in Night (cross-PR review, 15 Nov 2026): the system's strip is the inverse
   surface, which in Night is the lightest thing on the screen. Here it takes Night's own surface and
   ink, with a hairline under it, so it still reads as a strip without glaring. Tokens only. */
[data-theme="dark"] .sh-env { background: var(--surface-sunken); color: var(--text-strong); box-shadow: inset 0 -1px 0 var(--line-hairline); }
[data-theme="dark"] .sh-env a { color: var(--text-strong); }
[data-theme="dark"] .sh-env :focus-visible { outline-color: var(--action-ink); }

/* ---- SHU-042g: the overview and the six numbers (web/views/launch/overview.js). Tokens only. ------- */
.sh-ov { display: flex; flex-direction: column; gap: var(--space-4); }
.sh-ov-phases { margin-top: var(--space-3); }
.sh-ov .lm-panel .sh-h3 { margin: var(--space-3) 0 var(--space-1); }
.sh-ov-crit { color: var(--text-strong); font-weight: 500; }
.sh-ov-owners p.sh-copy { margin: var(--space-1) 0 0; }
.sh-ov-you { display: inline; color: var(--text-secondary); font: 500 11px/16px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.sh-ov-pack { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-3); align-items: center; }
.sh-ov-pack > small { grid-column: 1; }
.sh-ov-pack .lm-pill { grid-column: 2; grid-row: 1 / span 2; }
.sh-ov-pack a, .sh-wait-rows a.sh-cell-main { display: inline-flex; align-items: center; min-height: var(--hit); overflow-wrap: anywhere; }
.sh-six { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-3); }
.sh-six-n { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--line-hairline); border-radius: var(--radius-panel); background: var(--surface-ground); min-width: 0; }
.sh-six-n .sh-h3 { margin: 0; }
.sh-six-a { display: flex; flex-direction: column; gap: var(--space-1); }
.sh-six-v { color: var(--text-strong); font: 500 14px/20px var(--font-sans); overflow-wrap: anywhere; }
.sh-six-none { color: var(--text-secondary); }
.sh-six-said { color: var(--text-body); font: 400 13px/18px var(--font-sans); overflow-wrap: anywhere; }
.sh-six-a small, .sh-six-lines small { display: block; color: var(--text-muted); font: 400 12px/16px var(--font-sans); overflow-wrap: anywhere; }
.sh-six-a small.sh-six-mark, .sh-six-lines small.sh-six-mark { color: var(--text-secondary); font-weight: 500; }
.sh-six-src { margin: 0; color: var(--text-muted); font: 400 12px/16px var(--font-sans); overflow-wrap: anywhere; }
.sh-six-src > span { color: var(--text-secondary); }
.sh-six-src a { display: inline-flex; align-items: center; min-height: 24px; }
.sh-six-lines { margin: 0; padding-top: var(--space-2); border-top: 1px solid var(--line-hairline); display: flex; flex-direction: column; gap: var(--space-2); }
.sh-six-lines dt { color: var(--text-secondary); font: 400 12px/16px var(--font-sans); }
.sh-six-lines dd { margin: 2px 0 0; display: flex; flex-direction: column; gap: 2px; }
.sh-six-lines .sh-six-v { font: 400 13px/18px var(--font-sans); }
