/* signal-base: the A2 base layer ("A2 Chart Flare, Bold", Cody 2026-10-17).
   Load after tokens.css and before the product's own stylesheet:
     tokens/tokens.css -> css/signal-base.css -> motion/signal-motion.css -> product.css
   Every color, size, radius and duration is a token from tokens.css. The
   class API is in AGENTS.md; renaming or removing a class is a major bump. */

/* ── Type ──────────────────────────────────────────────────────────────
   Instrument Sans for UI, Geist Mono for times, numbers and codes (TYPE-01).
   The faces are declared in css/signal-fonts.css (0.3.0), linked by
   templates/_sb_fonts.html, which _sb_head.html includes. */
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Times, counts, unit IDs, codes. */
.sb-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
}

/* ── Surfaces ──────────────────────────────────────────────────────────
   Content sits on hairlines (ELEV-01): sections, rows and tables, no tiles.
   .sb-surface is the one raised work surface on a page. */
.sb-section {
  border-top: 1px solid var(--border);
  padding-block: var(--space-4);
}
.sb-section__title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body);
  font-weight: 600;
}
.sb-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

/* Label left, value right, on one grid (SPACE-03):
   <dl class="sb-rows"><div><dt>Unit</dt><dd>Engine 31</dd><dd class="sb-rows__aside">CAD</dd></div></dl> */
.sb-rows {
  display: grid;
  grid-template-columns: minmax(8rem, 13.75rem) minmax(0, 1fr) auto;
  margin: 0;
  border-top: 1px solid var(--border);
}
.sb-rows > div { display: contents; }
.sb-rows dt,
.sb-rows dd {
  display: flex;
  align-items: center;
  min-height: 3rem;
  margin: 0;
  padding: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.sb-rows dt { color: var(--text-muted); font-weight: 500; }
.sb-rows dd { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.sb-rows dd:last-child:not(.sb-rows__aside) { grid-column: 2 / -1; }
.sb-rows .sb-rows__aside { justify-content: flex-end; font-weight: 500; color: var(--text-muted); }
@media (max-width: 640px) {
  .sb-rows { grid-template-columns: minmax(0, 1fr) auto; }
  .sb-rows dt { grid-column: 1 / -1; min-height: 0; padding: var(--space-2) 0 0; border-bottom: 0; font-size: var(--text-secondary); }
  .sb-rows dd { min-height: 0; padding: var(--space-1) 0 var(--space-2); }
  .sb-rows dd:last-child:not(.sb-rows__aside) { grid-column: 1 / -1; }
}

.sb-table { width: 100%; border-collapse: collapse; }
.sb-table th,
.sb-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.sb-table th { font-size: var(--text-secondary); font-weight: 600; color: var(--text-muted); }
.sb-table .sb-num { text-align: right; }
.sb-table-wrap { overflow-x: auto; }

/* ── Buttons ───────────────────────────────────────────────────────────
   One red primary per viewport (IA-06); secondary is a bordered surface. */
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}
.sb-btn:hover { border-color: var(--text); }
.sb-btn--primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--white); }
.sb-btn--primary:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); }
.sb-btn:disabled,
.sb-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.sb-btn:focus-visible { outline: 3px solid var(--signal-red); outline-offset: 2px; }
/* Destructive (BTN-01, G1): the strong red as outline and label, never a red
   fill, so it never reads as the one primary. Always behind a confirmation
   that names the object (CONFIRM-01). */
.sb-btn--danger { border-width: 2px; border-color: var(--danger-ink); color: var(--danger-ink); }
.sb-btn--danger:hover { border-color: var(--danger-ink); background: var(--danger-tint); }

/* ── Icons (templates/_sb_icons.html) ─────────────────────────────────── */
.sb-icon { flex: none; width: 1.25em; height: 1.25em; }

/* ── Form fields (templates/_sb_field.html) ────────────────────────────
   A persistent label that states Required or Optional, an optional hint, the
   control, an inline error (FORM-01, FORM-02). Controls are target-tall
   (44 / 56 truck / 64 station) and never under 16 px text, so iOS never
   zooms (TYPE-03). The boundary is --border-control, 3:1 (FORM-05). An error
   is a 2 px danger border plus an icon and words, never colour alone; a
   disabled control is dashed, so it reads without colour too. */
.sb-field { display: grid; gap: var(--space-2); min-width: 0; }
.sb-field__label { font-weight: 500; color: var(--text); }
.sb-field__need { font-size: var(--text-secondary); font-weight: 400; color: var(--text-muted); }
.sb-field__hint { margin: 0; font-size: var(--text-secondary); color: var(--text-muted); }
.sb-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: var(--size-target-min);
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--raise);
  color: var(--text);
  font: inherit;
  font-size: max(16px, var(--text-body));
  line-height: var(--leading-tight);
  transition: border-color var(--motion-fast) var(--ease-out);
}
.sb-input::placeholder { color: var(--text-muted); opacity: 1; }
.sb-input:hover { border-color: var(--text); }
.sb-input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sb-input:disabled { border-style: dashed; background: var(--bg); color: var(--text-muted); cursor: not-allowed; }
.sb-input--area { min-height: calc(2 * var(--size-target-min)); line-height: var(--leading-body); resize: vertical; }
.sb-field--error .sb-input { border: 2px solid var(--danger-ink); padding: calc(var(--space-2) - 1px) calc(var(--space-3) - 1px); }
.sb-field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0;
  color: var(--danger-ink);
  font-weight: 600;
}
.sb-field__error .sb-icon { width: 1.25em; height: 1.25em; margin-top: 0.05em; }
/* The unit sits after the control, inside the field's grid line (FORM-01). */
.sb-affix { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.sb-affix .sb-input { flex: 1; }
.sb-affix__unit { flex: none; color: var(--text-muted); font-weight: 500; }
/* A select is drawn by us so it keeps the target height on iOS; the chevron
   is an icon, not a background image, so it follows the ink and forced colours. */
.sb-select { position: relative; display: block; min-width: 0; }
.sb-select .sb-input { appearance: none; -webkit-appearance: none; padding-right: calc(var(--space-3) * 2 + 1.25em); }
.sb-select__icon { position: absolute; top: 50%; right: var(--space-3); transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* ── Check rows (templates/_sb_check.html) ────────────────────────────
   A checkbox row on a hairline, not a card: the whole row is one <label>, so
   the target is the full width and at least --size-target-min tall (A11Y-02).
   Label, optional secondary text, an optional trailing slot (a count or a
   status) and, when disabled, the reason in words. The box is drawn here so its
   boundary is --border-control, 3:1 in both themes (FORM-05); the mark is a
   clip-path, so it follows the ink. Disabled is a dashed box and row plus the
   reason, so it reads without colour (A11Y-01). Nothing animates. */
.sb-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-3);
  box-sizing: border-box;
  min-height: var(--size-target-min);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.sb-check__box {
  grid-column: 1;
  grid-row: 1 / span 3;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  border: 2px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--raise);
  color: var(--text);
  cursor: inherit;
}
.sb-check:hover .sb-check__box { border-color: var(--text); }
.sb-check__box:checked { border-color: var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); }
.sb-check__box:checked::before { content: ""; width: 75%; height: 75%; background: currentColor; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.sb-check__box:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sb-check__text { grid-column: 2; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.sb-check__hint,
.sb-check__reason { grid-column: 2; min-width: 0; font-size: var(--text-secondary); color: var(--text-muted); overflow-wrap: anywhere; }
.sb-check__trail { grid-column: 3; grid-row: 1 / span 3; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.sb-check--disabled { border-bottom-style: dashed; color: var(--text-muted); cursor: not-allowed; }
.sb-check--disabled:hover .sb-check__box { border-color: var(--border-control); }
.sb-check--disabled .sb-check__box { border-style: dashed; background: var(--bg); }
.sb-check--disabled .sb-check__box:checked { border-color: var(--border-control); background: var(--bg); color: var(--text-muted); }

/* ── Tabs and nav ──────────────────────────────────────────────────────
   Current is ink, bold, and a 3px flare bar; never a filled pill (a red fill
   reads as a primary action). .sb-tabs is a strip under a header; .sb-nav is
   the app's destinations, docked to the bottom on a phone (.sb-nav--dock). */
.sb-tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.sb-tab,
.sb-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.sb-tab:hover,
.sb-nav__item:hover { color: var(--text); }
.sb-tab[aria-current="page"],
.sb-tab[aria-selected="true"],
.sb-nav__item[aria-current="page"] { color: var(--text); font-weight: 700; }
.sb-tab[aria-current="page"]::after,
.sb-tab[aria-selected="true"]::after,
.sb-nav__item[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 0;
  height: 3px;
  background: var(--signal-red);
}
.sb-tab:focus-visible,
.sb-nav__item:focus-visible { outline: 3px solid var(--signal-red); outline-offset: -3px; }
.sb-nav { display: flex; align-items: center; gap: var(--space-1); }
.sb-nav__item svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 1104px) {
  /* The rail is structure: --rail is navy in every theme but Learn, where it is black. */
  .sb-nav--dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    border-top: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
    background: var(--rail);
  }
  .sb-nav--dock .sb-nav__item {
    flex: 1;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    gap: var(--space-1);
    color: var(--on-rail-muted);
    font-size: var(--text-meta);
  }
  .sb-nav--dock .sb-nav__item[aria-current="page"] { color: var(--on-rail); }
  .sb-nav--dock .sb-nav__item[aria-current="page"]::after { top: 0; bottom: auto; left: 25%; right: 25%; }
  .sb-nav--dock .sb-nav__item:focus-visible { outline-color: var(--focus-ring-on-rail); }
}
/* On the navy band (NAV-01): links in --on-rail-muted, current in --on-rail
   with the keyline flare, focus in white (A11Y-04: the red ring is weak on
   navy). The band is navy in every theme, so these hold at desk widths and,
   with --dock, under 1105 px too. */
.sb-nav--band .sb-nav__item { color: var(--on-rail-muted); }
.sb-nav--band .sb-nav__item:hover,
.sb-nav--band .sb-nav__item[aria-current="page"] { color: var(--on-rail); }
.sb-nav--band .sb-nav__item[aria-current="page"]::after { background: var(--rail-keyline); }
.sb-nav--band .sb-nav__item:focus-visible { outline-color: var(--focus-ring-on-rail); }
/* Forced colours drop backgrounds, and with them the flare bar: draw it in
   the system highlight so the current tab or destination still shows. */
@media (forced-colors: active) {
  .sb-tab[aria-current="page"]::after,
  .sb-tab[aria-selected="true"]::after,
  .sb-nav__item[aria-current="page"]::after { forced-color-adjust: none; background: Highlight; }
}

/* Learn (D7): the bare mark is white shield, red pillars, no tile. White is
   the default already; this pins it so a Learn subtree inside a light page,
   which inherits that page's --sb-mark-shield ink, still draws a white shield. */
:root[data-theme="learn"],
.theme-learn { --sb-mark-shield: #fff; }

/* ── Navy band ─────────────────────────────────────────────────────────
   Navy in every theme with the red keyline (NAV-01): the product mark, name
   and department, and on desk the app's destinations (.sb-nav--band). The
   door shell (_sb_shell.html) opens with it. */
.sb-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  box-sizing: border-box;
  min-height: var(--size-rail-height);
  padding: max(var(--space-2), env(safe-area-inset-top)) max(var(--space-4), env(safe-area-inset-right))
    var(--space-2) max(var(--space-4), env(safe-area-inset-left));
  background: var(--rail);
  color: var(--on-rail);
  border-bottom: 3px solid var(--rail-keyline);
}
.sb-band__mark { display: block; flex: none; width: 36px; height: 36px; }
.sb-band__text { display: flex; flex-direction: column; min-width: 0; line-height: var(--leading-tight); }
.sb-band__name { font-weight: 700; }
.sb-band__org { font-size: var(--text-secondary); font-weight: 600; color: var(--on-rail-muted); overflow-wrap: anywhere; }
.sb-band .sb-nav { max-width: 100%; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
/* ── Door shell (templates/_sb_shell.html) ─────────────────────────────
   The one page shell for sign-in, error and offline pages (M2): the navy
   band over one column of content on the page ground, no card (E1); with an
   aside, a second column at 1024 px. The page's one primary sits at the end
   of the task, full width on a phone (A11Y-03). */
.sb-door { display: flex; flex-direction: column; min-height: 100dvh; background: var(--bg); color: var(--text); }
.sb-door__main {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: var(--space-12);
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--space-8) max(var(--space-4), env(safe-area-inset-right))
    max(var(--space-12), env(safe-area-inset-bottom)) max(var(--space-4), env(safe-area-inset-left));
}
.sb-door__task,
.sb-door__aside { width: 100%; max-width: 28rem; min-width: 0; }
.sb-door__title { margin: 0 0 var(--space-3); font-size: var(--text-h1); font-weight: 700; line-height: var(--leading-tight); }
.sb-door__lede { margin: 0 0 var(--space-6); line-height: var(--leading-body); }
.sb-door__form { display: grid; gap: var(--space-4); }
.sb-door__notices { display: grid; gap: var(--space-2); margin: 0 0 var(--space-6); }
.sb-door__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sb-door__actions .sb-btn { flex: 1 1 12rem; }
.sb-door__ref { margin-top: var(--space-8); }
@media (min-width: 641px) { .sb-door__aside .sb-rows { grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr); } }
.sb-door__aside .sb-rows dd { font-weight: 500; }
@media (min-width: 1024px) {
  .sb-door__main { padding-top: var(--space-16); }
  .sb-door--aside .sb-door__main { grid-template-columns: minmax(0, 28rem) minmax(0, 26rem); justify-content: space-between; }
}
@media (max-width: 480px) {
  .sb-door__title { font-size: var(--text-h2); }
}

/* ── Launchpad topbar (cross-suite chrome, templates/_sb_topbar.html) ── */
.signal-topbar { position: relative; display: inline-block; }
.signal-topbar__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  font-size: var(--text-secondary);
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.signal-topbar__trigger::-webkit-details-marker { display: none; }
.signal-topbar__trigger::marker { content: ""; }
.signal-topbar__trigger:hover { border-color: var(--border-control); }
.signal-topbar__trigger:focus-visible { outline: 3px solid var(--signal-red); outline-offset: 2px; }
.signal-topbar__trigger svg { width: 14px; height: 14px; flex: none; }
.signal-topbar__caret { color: var(--text-muted); }
/* On the navy band (--band, like .sb-nav--band): the trigger is a translucent
   chip with --on-rail text and a white focus ring (A11Y-04); the panel stays on
   its own light surface. Under 480 px the trigger keeps the word and drops the
   grid and caret (NAV-02, A11Y-02): the word is the label a responder reads and
   the 44 px target stays; the icons only crowd the account button beside it. */
.signal-topbar--band .signal-topbar__trigger {
  color: var(--on-rail);
  background: color-mix(in srgb, var(--on-rail) 10%, transparent);
  border-color: color-mix(in srgb, var(--on-rail) 25%, transparent);
}
.signal-topbar--band .signal-topbar__trigger:hover { background: color-mix(in srgb, var(--on-rail) 16%, transparent); border-color: color-mix(in srgb, var(--on-rail) 25%, transparent); }
.signal-topbar--band .signal-topbar__trigger:focus-visible { outline-color: var(--focus-ring-on-rail); }
.signal-topbar--band .signal-topbar__caret { color: var(--on-rail-muted); }
@media (max-width: 480px) {
  .signal-topbar__trigger svg { display: none; }
}
.signal-topbar__panel {
  /* Anchored to its trigger; the partial's script shifts it (style.left) so it
     stays 8 px inside the viewport at every width, wherever the header wraps. */
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  z-index: 60;
  box-sizing: border-box;
  width: max-content;
  min-width: min(260px, calc(100vw - 16px));
  max-width: min(320px, calc(100vw - 16px));
  max-height: min(70vh, 480px);
  overflow-y: auto;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-overlay);
}
.signal-topbar__primary,
.signal-topbar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-control);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.signal-topbar__item { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
.signal-topbar__primary svg { width: 16px; height: 16px; flex: none; }
.signal-topbar__primary:hover,
.signal-topbar__item:hover { background: var(--row-hover); }
.signal-topbar__section { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.signal-topbar__section-title { padding: var(--space-1) var(--space-3); font-size: var(--text-meta); font-weight: 600; color: var(--text-muted); }
.signal-topbar__item-label { font-size: var(--text-secondary); }
.signal-topbar__item-org { font-size: var(--text-meta); font-weight: 400; color: var(--text-muted); }
.signal-topbar__signout {
  /* Plain text like an item, set off by the section rule: leaving is not data loss, so no red. A11Y-02: 44 px. */
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--space-2);
  padding: 0 var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}
.signal-topbar__signout:hover { background: var(--row-hover); }
.signal-topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3) 0;
  border-top: 1px solid var(--border);
}
.signal-topbar__links a { font-size: var(--text-meta); color: var(--text-muted); text-decoration: none; }
.signal-topbar__links a:hover { color: var(--text); }

/* ── Status: a word with a square key (templates/_sb_status.html) ──────
   One status reads as its word beside a square in the same ink, never a pill
   and never colour alone. Tones are meanings, not status names: a product maps
   its source system's own codes onto them (C2, COPY-04). The square is drawn
   with borders so it survives forced colours; hollow is the unknown or
   no-answer key, never a filled healthy one. */
.sb-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.sb-status::before {
  content: "";
  flex: none;
  box-sizing: content-box;
  width: 0;
  height: 0;
  border: max(4px, 0.275em) solid currentColor;  /* the square is its border: no subpixel gap */
}
.sb-status--ok { color: var(--success-ink); }
.sb-status--warn { color: var(--warning-ink); }
.sb-status--alarm { color: var(--danger-ink); }
.sb-status--navy { color: var(--navy-ink); }
.sb-status--hollow::before { width: calc(2 * max(4px, 0.275em) - 4px); height: calc(2 * max(4px, 0.275em) - 4px); border-width: 2px; }
/* Opt-in wrap for narrow cells (a roster column, a phone row): the word wraps
   under itself and the square stays on the first line. */
.sb-status--wrap { white-space: normal; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.sb-status--wrap::before { margin-top: 0.33em; margin-top: calc((1lh - 2 * max(4px, 0.275em)) / 2); }

/* ── Notices (templates/_sb_notice.html) ───────────────────────────────
   One row at the top of the content, on a tinted ground inside a full
   hairline: never a card (no radius, no shadow) and never a one-sided stripe
   (BANNER-01, ELEV-01). The icon and the words carry the tone; stale is also
   dashed, so it reads as not current without colour. Priority order, top
   down: alarm, support access, offline, stale, warn (hold or setup). */
.sb-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-2) var(--space-3);
  box-sizing: border-box;
  min-height: var(--size-target-min);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--navy-ink);
  border-radius: 0;
  background: var(--info-tint);
  color: var(--text);
}
.sb-notice__icon { color: var(--navy-ink); margin-top: 0.05em; }
.sb-notice__text { flex: 1 1 16rem; min-width: 0; margin: 0; line-height: var(--leading-body); overflow-wrap: anywhere; }
.sb-notice__title { font-weight: 700; }
.sb-notice__action { flex: none; margin-left: auto; margin-block: calc(-1 * var(--space-1)); }
.sb-notice__extra { flex: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: auto; margin-block: calc(-1 * var(--space-1)); }
.sb-notice__action ~ .sb-notice__extra { margin-left: 0; }
.sb-notice__extra > .sb-btn { min-height: var(--size-target-min); }
.sb-notice--warn { border-color: var(--warning-ink); background: var(--warning-tint); }
.sb-notice--warn .sb-notice__icon { color: var(--warning-ink); }
.sb-notice--alarm { border-color: var(--danger-ink); background: var(--danger-tint); }
.sb-notice--alarm .sb-notice__icon { color: var(--danger-ink); }
.sb-notice--stale { border-style: dashed; border-color: var(--border-control); background: var(--raise); }
.sb-notice--stale .sb-notice__icon { color: var(--text-muted); }
@media (max-width: 640px) {
  .sb-notice__action { box-sizing: border-box; width: 100%; margin: 0; }
  .sb-notice__extra { box-sizing: border-box; width: 100%; margin: 0; }
  .sb-notice__extra > .sb-btn { flex: 1 1 auto; }
}

/* ── Folds (templates/_sb_fold.html) ───────────────────────────────────
   A disclosure row on hairlines, not a card: native <details>, a target-tall
   summary that says what it holds while closed (a count, a hint; IA-09,
   NAV-02). The chevron turns without animating (I1: only the nine pillar
   motions move), so reduced motion has nothing to stop. */
.sb-fold { border-block: 1px solid var(--border); }
.sb-fold + .sb-fold { border-top: 0; }
.sb-fold__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  box-sizing: border-box;
  min-height: var(--size-target-min);
  padding: var(--space-2) calc(1.25em + var(--space-3)) var(--space-2) 0;
  position: relative;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.sb-fold__summary::-webkit-details-marker { display: none; }
.sb-fold__summary::marker { content: ""; }
.sb-fold__summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sb-fold__title { min-width: 0; overflow-wrap: anywhere; }
.sb-fold__count { color: var(--text-muted); font-weight: 500; }
.sb-fold__hint { color: var(--text-muted); font-size: var(--text-secondary); font-weight: 400; }
.sb-fold__chev { position: absolute; top: 50%; right: 0; transform: translateY(-50%); color: var(--text-muted); }
.sb-fold[open] > .sb-fold__summary .sb-fold__chev { transform: translateY(-50%) rotate(180deg); }
.sb-fold__summary:hover .sb-fold__chev { color: var(--text); }
.sb-fold__body { padding: 0 0 var(--space-4); }

/* ── Pillars ───────────────────────────────────────────────────────────
   The mark's three columns as the completeness system; each holds a third.
   Markup only from templates/_sb_pillars.html or js/signal-pillars.js. A
   fill is --sb-fill (0..1, scaleY from the bottom),
   set inline by the helpers so a motion class can still override it. Unknown shows dashed tracks and no
   fill, never an empty meter that reads as zero. */
.signal-pillars {
  --pillar-track: color-mix(in srgb, var(--text) 14%, transparent);
  --pillar-fill: var(--signal-red);
  display: inline-block;
  flex: none;
  width: 0.75em;
  height: 1.025em;
  vertical-align: middle;
}
.signal-pillars svg { display: block; width: 100%; height: 100%; overflow: visible; }
.signal-pillars__track { fill: var(--pillar-track); }
.signal-pillars__fill {
  fill: var(--pillar-fill);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(var(--sb-fill, 1));
  transition: transform var(--motion-slow) var(--ease-out), opacity var(--motion-base) var(--ease-out);
}
.signal-pillars__fill:nth-of-type(2) { transition-delay: 40ms; }
.signal-pillars__fill:nth-of-type(3) { transition-delay: 80ms; }
.signal-pillars--warn { --pillar-fill: var(--warning); }
.signal-pillars--done { --pillar-fill: var(--success-ink); }
.signal-pillars--unknown .signal-pillars__track {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 24;
  stroke-dasharray: 48 32;
}

/* Readiness meter: pillars + a mono value + a label ("3 Open" / "To Sign"). */
.signal-meter { display: inline-flex; align-items: center; gap: var(--space-3); min-width: 0; }
.signal-meter .signal-pillars { width: 1.75rem; height: 2.4rem; }
.signal-meter__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.signal-meter__value {
  font-family: var(--font-mono);
  font-size: var(--text-h3);
  font-weight: 600;
  font-variant-numeric: tabular-nums slashed-zero;
}
.signal-meter__label { font-size: var(--text-secondary); font-weight: 500; color: var(--text-muted); }
.signal-meter--compact { gap: var(--space-2); }
.signal-meter--compact .signal-pillars { width: 1.1rem; height: 1.5rem; }
.signal-meter--compact .signal-meter__value { font-size: var(--text-body); }

/* Done mark: full pillars in the success ink beside the word. */
.signal-done { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--success-ink); font-weight: 600; }
.signal-done .signal-pillars { --pillar-fill: currentColor; width: 0.9em; height: 1.23em; }
