/* Newtongrange Silver Band, BandOS components (D112), from the system's build/bundle.src.css.
   Loaded after tokens.css. Every value is a token. Ported with four changes and nothing else:
   the wheel is brand/cog.svg rather than an inline URI, which the policy refuses; the ScopeLine
   is gone (D113); the sidebar collapses from a checkbox before the grid rather than a React
   class, at a desk only; and the shell's phone and container forms give way to portal.css's
   media-query shell, because a container query makes the shell the containing block of the
   fixed drawer. */

/* ---------- base ---------- */
/* The cogged wheel from "Main cog.ai", converted losslessly to SVG, held once. */
:root { --nsb-cog: url("brand/cog.svg"); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.55; font-weight: 400;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.nsb, .nsb * { box-sizing: border-box; }
.nsb-root { font-family: var(--font-sans); font-size: 17px; line-height: 1.55; color: var(--text); }
:where(.nsb) a { color: var(--text-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(.nsb) a:hover { text-decoration-thickness: 2px; }
:where(.nsb) :focus-visible, .nsb .is-focus { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus-ring); }
.nsb-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nsb-icon { flex: none; display: inline-block; vertical-align: middle; }
.nsb-num { font-variant-numeric: tabular-nums lining-nums; }

/* type */
.nsb-display, .nsb-h1, .nsb-h2 { font-family: var(--font-serif); font-weight: 400; margin: 0; color: var(--text-heading); text-wrap: balance; }
.nsb-display { font-size: var(--fluid-display); line-height: 1; letter-spacing: 0.01em; }
.nsb-h1 { font-size: var(--fluid-h1); line-height: 1.05; letter-spacing: 0.015em; }
.nsb-h2 { font-size: var(--fluid-h2); line-height: 1.1; letter-spacing: 0.015em; }
.nsb-h3 { font-size: var(--fluid-h3); line-height: 1.25; font-weight: 620; letter-spacing: -0.005em; margin: 0; color: var(--text-heading); }
.nsb-h4 { font-size: var(--fluid-h4); line-height: 1.3; font-weight: 620; margin: 0; color: var(--text-heading); }
.nsb-lead { font-size: 19px; line-height: 1.5; }
.nsb-muted { color: var(--text-muted); }

/* the cogged wheel, tinted by mask and opacity only */
.nsb-wm-host { position: relative; isolation: isolate; overflow: hidden; }
.nsb-wm {
  position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1 / 1;
  background-color: var(--watermark-ink); opacity: var(--watermark-opacity);
  -webkit-mask: var(--nsb-cog) center / contain no-repeat; mask: var(--nsb-cog) center / contain no-repeat;
}
.nsb-wm--brand { background-color: var(--white); opacity: var(--watermark-opacity-brand); }
.nsb-cog { display: inline-block; aspect-ratio: 1 / 1; background-color: currentColor;
  -webkit-mask: var(--nsb-cog) center / contain no-repeat; mask: var(--nsb-cog) center / contain no-repeat; }
.nsb-crest { display: block; flex: none; width: var(--crest-size, var(--crest-header)); height: auto; aspect-ratio: 1 / 1; }

/* ---------- Button ---------- */
.nsb-btn {
  --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bd: transparent; --btn-hover: var(--accent-hover);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--target); min-width: var(--target); padding: 10px var(--space-5);
  border-radius: var(--radius-control); border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.nsb-btn:hover, .nsb-btn.is-hover { background: var(--btn-hover); }
.nsb-btn:active { transform: translateY(1px); }
.nsb-btn:focus-visible, .nsb-btn.is-focus { box-shadow: var(--focus-ring); }
.nsb-btn--lg { min-height: var(--target-lg); padding: 12px var(--space-6); font-size: 19px; }
.nsb-btn--full { width: 100%; }
.nsb-btn--secondary { --btn-bg: var(--surface); --btn-fg: var(--accent); --btn-bd: var(--border-strong); --btn-hover: var(--surface-tint); }
.nsb-btn--gold { --btn-bg: var(--highlight); --btn-fg: var(--on-highlight); --btn-hover: var(--highlight-hover); }
.nsb-btn--ghost { --btn-bg: transparent; --btn-fg: var(--accent); --btn-hover: var(--surface-tint); box-shadow: none; }
.nsb-btn--on-brand { --btn-bg: transparent; --btn-fg: var(--header-text); --btn-bd: var(--header-muted); --btn-hover: var(--sidebar-hover); box-shadow: none; }
.nsb-btn[disabled], .nsb-btn[aria-busy="true"] { cursor: default; }
.nsb-btn[aria-busy="true"] .nsb-icon--spin { animation: nsb-spin 900ms linear infinite; }
@keyframes nsb-spin { to { transform: rotate(360deg); } }
/* inert: solid and muted, the reason beneath in words, a lock for colour-blind and greyscale readers */
.nsb-inert { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.nsb-btn--inert, .nsb-btn[disabled]:not([aria-busy="true"]) {
  --btn-bg: var(--button-inert-bg); --btn-fg: var(--button-inert); --btn-bd: transparent; --btn-hover: var(--button-inert-bg);
  box-shadow: none; cursor: not-allowed;
}
.nsb-btn--inert:active { transform: none; }
.nsb-inert__reason { color: var(--text-muted); font-size: 17px; line-height: 1.4; }

/* ---------- IconButton ---------- */
.nsb-iconbtn {
  --ib-bg: transparent; --ib-fg: var(--accent); --ib-hover: var(--surface-tint);
  position: relative; display: inline-grid; place-items: center; width: var(--target); height: var(--target);
  border-radius: var(--radius-control); border: 1px solid transparent; background: var(--ib-bg); color: var(--ib-fg);
  cursor: pointer; padding: 0; text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.nsb-iconbtn:hover, .nsb-iconbtn.is-hover { background: var(--ib-hover); }
.nsb-iconbtn--lg { width: var(--target-lg); height: var(--target-lg); }
.nsb-iconbtn--solid { --ib-bg: var(--accent); --ib-fg: var(--on-accent); --ib-hover: var(--accent-hover); }
.nsb-iconbtn--soft { --ib-bg: var(--accent-soft); --ib-fg: var(--on-accent-soft); --ib-hover: var(--surface-tint); }
.nsb-iconbtn--outline { --ib-bg: var(--surface); border-color: var(--border-strong); }
.nsb-iconbtn--on-brand { --ib-fg: var(--sidebar-text); --ib-hover: var(--sidebar-hover); }
.nsb-iconbtn[disabled] { --ib-fg: var(--button-inert); --ib-bg: var(--button-inert-bg); --ib-hover: var(--button-inert-bg); cursor: not-allowed; }
.nsb-iconbtn[aria-busy="true"] .nsb-icon { animation: nsb-spin 900ms linear infinite; }
.nsb-iconbtn[aria-pressed="true"] { --ib-bg: var(--accent-soft); --ib-fg: var(--on-accent-soft); }
.nsb-count {
  position: absolute; top: 2px; right: 0; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--radius-pill);
  display: inline-grid; place-items: center; background: var(--highlight); color: var(--on-highlight);
  font-size: 17px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface);
}

/* ---------- Card ---------- */
.nsb-card {
  position: relative; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm); padding: var(--space-6);
  transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.nsb-card--pad-lg { padding: var(--space-8); }
.nsb-card--pad-none { padding: 0; overflow: hidden; }
.nsb-card--tint { background: var(--surface-tint); border-color: transparent; box-shadow: none; }
.nsb-card--gold { background: var(--highlight-soft); border-color: transparent; box-shadow: none; }
.nsb-card--gold .nsb-card__title { color: var(--on-highlight-soft); }
.nsb-card--brand { background: var(--header-bg); color: var(--header-text); border-color: transparent; }
.nsb-card--brand .nsb-card__title, .nsb-card--brand .nsb-card__eyebrow { color: var(--header-text); }
.nsb-card--brand .nsb-card__eyebrow { color: var(--header-eyebrow); }
.nsb-card--interactive { cursor: pointer; }
.nsb-card--interactive:hover, .nsb-card--interactive.is-hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--border-strong); }
.nsb-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.nsb-card__eyebrow { margin: 0 0 var(--space-1); color: var(--text-muted); font-weight: 560; }
.nsb-card__title { margin: 0; }
.nsb-card__link { color: inherit; text-decoration: none; }
.nsb-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.nsb-card__link:focus-visible { box-shadow: none; }
.nsb-card:has(.nsb-card__link:focus-visible) { box-shadow: var(--focus-ring); }
.nsb-card__foot { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--text-muted); }
.nsb-card--brand .nsb-card__foot { border-color: var(--sidebar-line); color: var(--header-muted); }
.nsb-card--wm { isolation: isolate; overflow: hidden; }
.nsb-card--wm .nsb-wm { width: 320px; right: -90px; bottom: -110px; }
.nsb-card--brand .nsb-wm { background-color: var(--white); opacity: var(--watermark-opacity-brand); }

/* ---------- StatusPill: a white chip, a strong dot, ink words ---------- */
.nsb-pill {
  --dot: var(--status-neutral); --dot-edge: var(--dot);
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; padding: 2px 12px 2px 10px;
  border-radius: var(--radius-pill); background: var(--status-chip); border: 1px solid var(--status-chip-border); color: var(--text);
  font-size: 17px; line-height: 1.35; font-weight: 560; white-space: nowrap; vertical-align: middle;
}
.nsb-pill__dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--dot); box-shadow: inset 0 0 0 1.5px var(--dot-edge); }
.nsb-pill--positive { --dot: var(--status-positive); }
.nsb-pill--negative { --dot: var(--status-negative); }
.nsb-pill--waiting { --dot: var(--status-waiting); --dot-edge: var(--status-waiting-edge); }
.nsb-pill--attention { --dot: var(--status-attention); }
.nsb-pill--info { --dot: var(--status-info); }
.nsb-pill--neutral { --dot: var(--status-neutral); }

/* ---------- BandBadge ---------- */
.nsb-band {
  display: flex; align-items: center; gap: var(--space-2); min-height: var(--target); padding: 5px var(--space-3) 5px 6px;
  border-radius: var(--radius-card-sm); background: var(--badge-bg); color: var(--badge-text); border: 1px solid var(--badge-border);
  text-decoration: none; box-shadow: var(--shadow-xs); font-weight: 560; line-height: 1.25;
  transition: box-shadow var(--duration-base) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.nsb-band:hover, .nsb-band.is-hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.nsb-band__disc {
  flex: none; width: 32px; height: 32px; border-radius: var(--radius-pill); display: grid; place-items: center;
  background: var(--badge-disc); color: var(--on-badge-disc); font-weight: 650; font-size: 17px; line-height: 1; letter-spacing: 0;
}
.nsb-band__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nsb-band__name { overflow-wrap: anywhere; font-weight: 560; }
.nsb-band__meta { display: block; font-weight: 400; color: inherit; opacity: 1; }
.nsb-band--current { background: var(--badge-current-bg); color: var(--badge-current-text); border: 2px solid var(--highlight); padding: 4px 11px 4px 5px; }
.nsb-band--current .nsb-band__disc { box-shadow: 0 0 0 2px var(--highlight); }
.nsb-band--compact .nsb-band__text { display: none; }
.nsb-bands { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }

/* ---------- Bell ---------- */
.nsb-bell { position: relative; display: flex; align-items: center; gap: var(--space-4); min-height: var(--target); padding: 6px var(--space-3); border-radius: var(--radius-control); color: inherit; text-decoration: none; font-weight: 560; }
.nsb-bell:hover, .nsb-bell.is-hover { background: var(--surface-tint); }
.nsb-bell__icon { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; }
.nsb-bell__icon .nsb-count { top: -8px; right: -12px; }
.nsb-bell--none .nsb-bell__words { font-weight: 450; }
.nsb-bell--error .nsb-bell__words { font-weight: 450; }
.nsb-bell--icon { padding: 0; width: var(--target); height: var(--target); justify-content: center; }
.nsb-bell--on-brand { color: var(--sidebar-text); }
.nsb-bell--on-brand:hover, .nsb-bell--on-brand.is-hover { background: var(--sidebar-hover); }
.nsb-bell--on-brand .nsb-count { box-shadow: 0 0 0 2px var(--sidebar-bg); }

/* ---------- AppShell ---------- */
.nsb-shell { container: nsb-shell / inline-size; height: 100%; min-height: 100%; background: var(--canvas); }
.nsb-shell__grid { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); height: 100%; transition: grid-template-columns var(--duration-slow) var(--ease-standard); }
.nsb-side {
  position: relative; isolation: isolate; overflow: hidden auto; display: flex; flex-direction: column; gap: var(--space-5);
  background: var(--sidebar-bg); color: var(--sidebar-text); padding: var(--space-5) var(--space-4); gap: var(--space-4);
}
.nsb-side .nsb-wm { width: 420px; left: -150px; bottom: -150px; }
.nsb-side__head { display: flex; align-items: center; gap: var(--space-3); color: var(--sidebar-text); text-decoration: none; min-height: var(--target); }
.nsb-side__head .nsb-crest { --crest-size: var(--crest-sidebar); }
.nsb-wordmark { display: flex; flex-direction: column; gap: 3px; font-family: var(--font-wordmark); font-size: 17px; line-height: 1.2; letter-spacing: -0.005em; }
.nsb-wordmark__top { font-weight: 700; }
.nsb-wordmark__bottom { font-weight: 300; font-size: 1.45em; line-height: 1.1; letter-spacing: -0.01em; }
.nsb-side__head .nsb-wordmark { min-width: 0; }
.nsb-side__groups { display: grid; gap: var(--space-4); }
.nsb-nav__group-label { margin: 0 0 var(--space-1); padding: 0 var(--space-3); color: var(--sidebar-muted); font-weight: 560; line-height: 1.3; }
.nsb-side__label { margin: 0 0 var(--space-2); color: var(--sidebar-muted); font-weight: 560; }
.nsb-side__section { display: grid; gap: var(--space-2); }
.nsb-side__rule { border: 0; border-top: 1px solid var(--sidebar-line); margin: 0; }
.nsb-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nsb-nav__link {
  position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: var(--target); padding: 10px var(--space-3);
  border-radius: var(--radius-control); color: var(--sidebar-text); text-decoration: none; font-weight: 500;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.nsb-nav__link:hover, .nsb-nav__link.is-hover { background: var(--sidebar-hover); }
.nsb-nav__link[aria-current="page"] { background: var(--sidebar-active); font-weight: 650; }
.nsb-nav__link[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: var(--radius-pill); background: var(--highlight); }
.nsb-nav__link[aria-current="page"] .nsb-icon { color: var(--highlight); }
.nsb-nav__count { margin-left: auto; min-width: 28px; height: 26px; padding: 0 8px; border-radius: var(--radius-pill); display: inline-grid; place-items: center; background: var(--highlight); color: var(--on-highlight); font-weight: 700; font-variant-numeric: tabular-nums; }
.nsb-side__foot { margin-top: auto; display: grid; gap: var(--space-2); }
.nsb-side__who { color: var(--sidebar-muted); padding: 0 var(--space-3); overflow-wrap: anywhere; }
.nsb-side__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.nsb-main { min-width: 0; overflow: auto; }
.nsb-main__inner { max-width: var(--content-max); margin: 0 auto; padding: var(--space-8); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); min-width: 0; }
.nsb-main { min-width: 0; }
.nsb-btn { max-width: 100%; }
.nsb-top, .nsb-tabs, .nsb-drawer { display: none; }

/* collapsed at a desk: the checkbox pattern, no script */
@media (min-width: 769px) {
  .nsb-band--compact, .nsb-collapse:checked ~ .nsb-shell__grid .nsb-band { padding: 0; min-height: var(--target); min-width: var(--target); justify-content: center; background: transparent; border-color: transparent; box-shadow: none; }
  .nsb-band--compact.nsb-band--current, .nsb-collapse:checked ~ .nsb-shell__grid .nsb-band--current { padding: 0; border: 0; }
  .nsb-band--compact:not(.nsb-band--current) .nsb-band__disc, .nsb-collapse:checked ~ .nsb-shell__grid .nsb-band:not(.nsb-band--current) .nsb-band__disc { box-shadow: 0 0 0 2px var(--sidebar-muted); }
  .nsb-collapse:checked ~ .nsb-shell__grid { grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr); }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-side__groups { gap: var(--space-2); justify-items: center; }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-nav__group-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-nav__group + .nsb-nav__group { border-top: 1px solid var(--sidebar-line); padding-top: var(--space-2); width: 100%; display: grid; justify-items: center; }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-side { padding-inline: var(--space-3); align-items: center; }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-hide-collapsed { display: none; }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-nav__link { justify-content: center; padding: 10px; width: var(--target-lg); }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-nav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-nav__count { position: absolute; top: -4px; right: -6px; min-width: 24px; height: 24px; padding: 0 5px; }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-side__row { flex-direction: column; }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-bell .nsb-bell__words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-bell { justify-content: center; }
  .nsb-collapse:checked ~ .nsb-shell__grid .nsb-band .nsb-band__text { display: none; }
}

/* ---------- PageHeader ---------- */
.nsb-ph { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-card); }
.nsb-ph__row { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.nsb-ph__text { flex: 1 1 320px; min-width: 0; display: grid; gap: var(--space-2); }
.nsb-ph__eyebrow { margin: 0; font-weight: 600; letter-spacing: 0.01em; }
.nsb-ph__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.nsb-ph--brand { background: var(--header-bg); color: var(--header-text); padding: var(--space-10) var(--space-10) calc(var(--space-10) + 6px); box-shadow: var(--shadow-md); }
.nsb-ph--brand .nsb-h1 { color: var(--header-text); }
.nsb-ph--brand .nsb-ph__eyebrow { color: var(--header-eyebrow); }
.nsb-ph--brand .nsb-crest { --crest-size: var(--crest-header); }
.nsb-ph--brand .nsb-wm { width: 560px; right: -140px; top: 50%; transform: translateY(-50%); }
.nsb-ph--brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--highlight) 0 72%, var(--header-stripe) 72% 100%); }
.nsb-ph--plain { padding: var(--space-2) 0 var(--space-4); }
.nsb-ph--plain .nsb-crest { --crest-size: 64px; }
.nsb-ph--plain .nsb-ph__eyebrow { color: var(--on-brand-red-soft); }
.nsb-ph--plain .nsb-wm { width: 360px; right: -60px; top: -120px; }
.nsb-ph--compact .nsb-crest { --crest-size: 64px; }
.nsb-ph--compact.nsb-ph--brand { padding: var(--space-6) var(--space-6) calc(var(--space-6) + 6px); }

/* ---------- EmptyState ---------- */
.nsb-empty { position: relative; isolation: isolate; overflow: hidden; background: var(--surface-tint); border-radius: var(--radius-card); padding: var(--space-12) var(--space-8); text-align: center; display: grid; justify-items: center; gap: var(--space-3); }
.nsb-empty .nsb-wm { width: var(--wheel-empty); right: -96px; bottom: -120px; }
.nsb-empty__emblem { width: 64px; color: var(--accent); margin-bottom: var(--space-2); }
.nsb-empty__title { margin: 0; }
.nsb-empty p { margin: 0; max-width: 52ch; }
.nsb-empty__who { color: var(--text-muted); }
.nsb-empty__action { margin-top: var(--space-3); }
.nsb-empty--compact { padding: var(--space-8) var(--space-6); }
.nsb-empty--compact .nsb-wm { width: 240px; right: -80px; bottom: -100px; }
.nsb-empty--compact .nsb-empty__emblem { width: 44px; }

/* ---------- RefusalState: a different shape from the empty state, on purpose ---------- */
.nsb-refusal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5); align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-6); box-shadow: var(--shadow-sm); text-align: left; }
.nsb-refusal__icon { width: 56px; height: 56px; border-radius: var(--radius-card-sm); display: grid; place-items: center; background: var(--brand-red-soft); color: var(--on-brand-red-soft); }
.nsb-refusal__title { margin: 0 0 var(--space-2); font-size: var(--fluid-h3); font-weight: 650; color: var(--text); line-height: 1.25; }
.nsb-refusal p { margin: 0 0 var(--space-3); }
.nsb-refusal dl { margin: 0 0 var(--space-4); display: flex; gap: var(--space-2); }
.nsb-refusal dt { font-weight: 600; }
.nsb-refusal dd { margin: 0; }

/* ---------- Notice ---------- */
.nsb-notice { --n-bg: var(--accent-soft); --n-fg: var(--on-accent-soft); display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); border-radius: var(--radius-card-sm); background: var(--n-bg); color: var(--text); }
.nsb-notice__icon { color: var(--n-fg); margin-top: 2px; }
.nsb-notice__body { min-width: 0; display: grid; gap: var(--space-1); }
.nsb-notice__title { margin: 0; font-weight: 650; color: var(--n-fg); }
.nsb-notice__body p { margin: 0; }
.nsb-notice__ref { font-family: var(--font-mono); font-weight: 600; color: var(--n-fg); }
.nsb-notice--info { --n-bg: var(--accent-soft); --n-fg: var(--on-accent-soft); }
.nsb-notice--confirmed { --n-bg: var(--positive-soft); --n-fg: var(--on-positive-soft); }
.nsb-notice--attention { --n-bg: var(--attention-soft); --n-fg: var(--on-attention-soft); }
.nsb-notice--failure { --n-bg: var(--error-soft); --n-fg: var(--on-error-soft); }
.nsb-notice--restyle { --n-bg: var(--surface-sunken); --n-fg: var(--text); }
.nsb-notice--rehearsal { --n-bg: var(--highlight); --n-fg: var(--on-highlight); color: var(--on-highlight); }
.nsb-notice--banner { border-radius: 0; justify-content: center; padding: var(--space-3) var(--space-4); position: sticky; top: 0; z-index: var(--z-sticky); }
.nsb-notice--banner .nsb-notice__body { display: block; }
.nsb-notice--banner .nsb-notice__title { display: inline; margin-right: 0.35em; }
.nsb-notice--banner .nsb-notice__body p { display: inline; }

/* ---------- DataTable ---------- */
.nsb-table { container: nsb-table / inline-size; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.nsb-table__scroll { overflow-x: auto; }
.nsb-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.nsb-table caption { text-align: left; padding: var(--space-5) var(--space-5) var(--space-3); }
.nsb-table th { text-align: left; font-weight: 600; color: var(--text-heading); background: var(--table-head); padding: 12px var(--space-4); border-bottom: 1px solid var(--border); white-space: nowrap; }
.nsb-table td { padding: 14px var(--space-4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.nsb-table tbody tr:last-child td { border-bottom: 0; }
.nsb-table tbody tr { transition: background-color var(--duration-fast) var(--ease-standard); }
.nsb-table tbody tr:hover, .nsb-table tbody tr.is-hover { background: var(--table-row-hover); }
.nsb-table .nsb-num, .nsb-table th.nsb-num { text-align: right; }
.nsb-table__lead { font-weight: 600; }
.nsb-table__lead a { color: var(--text-heading); text-decoration: none; }
.nsb-table__lead a:hover { text-decoration: underline; }
.nsb-table__tag { display: block; color: var(--text-muted); font-weight: 400; }
.nsb-table--compact td { padding: 7px var(--space-3); font-variation-settings: "wdth" 88; line-height: 1.3; height: var(--target); }
.nsb-table--compact th { padding: 8px var(--space-3); font-variation-settings: "wdth" 88; }
.nsb-table--compact .nsb-table__tag { display: inline; margin-left: var(--space-2); }
.nsb-skel { display: block; height: 14px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--surface-sunken) 0 40%, var(--surface-tint) 50%, var(--surface-sunken) 60% 100%); background-size: 300% 100%; animation: nsb-shimmer 1.4s var(--ease-standard) infinite; }
@keyframes nsb-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.nsb-table__state { padding: var(--space-5); }
/* cards on a phone, from the same markup */
.nsb-table--cards { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.nsb-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nsb-table--cards table, .nsb-table--cards tbody, .nsb-table--cards tr, .nsb-table--cards td { display: block; }
.nsb-table--cards tbody { display: grid; gap: var(--space-3); }
.nsb-table--cards tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card-sm); box-shadow: var(--shadow-xs); padding: var(--space-3) var(--space-4); }
.nsb-table--cards td { border: 0; padding: 6px 0; display: grid; grid-template-columns: minmax(7.5em, 40%) minmax(0, 1fr); gap: var(--space-3); height: auto; }
.nsb-table--cards td::before { content: attr(data-label); font-weight: 560; color: var(--text-muted); }
.nsb-table--cards td.nsb-num { text-align: left; }
.nsb-table--cards td.nsb-table__lead { display: block; font-size: var(--fluid-h3); line-height: 1.25; padding-bottom: var(--space-2); margin-bottom: var(--space-1); border-bottom: 1px solid var(--border); }
.nsb-table--cards td.nsb-table__lead::before { content: none; }
.nsb-table--cards td > .nsb-pill { justify-self: start; }
.nsb-table--cards .nsb-table__tag { display: block; margin: 0; font-size: 17px; }
.nsb-table--cards caption { display: block; padding: 0 0 var(--space-3); }
@container nsb-table (max-width: 640px) {
  .nsb-table--auto thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nsb-table--auto table, .nsb-table--auto tbody, .nsb-table--auto tr, .nsb-table--auto td { display: block; }
  .nsb-table--auto tr { border-bottom: 1px solid var(--border); padding: var(--space-3) var(--space-4); }
  .nsb-table--auto td { border: 0; padding: 6px 0; display: grid; grid-template-columns: minmax(7.5em, 40%) minmax(0, 1fr); gap: var(--space-3); }
  .nsb-table--auto td::before { content: attr(data-label); font-weight: 560; color: var(--text-muted); }
  .nsb-table--auto td.nsb-num { text-align: left; }
  .nsb-table--auto td.nsb-table__lead { display: block; font-size: var(--fluid-h3); }
  .nsb-table--auto td.nsb-table__lead::before { content: none; }
}
.nsb-summary { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-10); margin: 0; }
.nsb-summary dt { color: var(--text-muted); font-weight: 560; }
.nsb-summary dd { margin: 0; font-size: var(--fluid-figure); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--text-heading); font-variant-numeric: tabular-nums lining-nums; }
.nsb-summary dd small { display: block; font-size: 17px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }

/* ---------- FormField ---------- */
.nsb-field { display: grid; gap: 6px; max-width: 34rem; }
.nsb-field__label { font-weight: 560; color: var(--text); }
.nsb-field__opt { font-weight: 400; color: var(--text-muted); }
.nsb-field__hint { color: var(--text-muted); margin: 0; font-size: 17px; line-height: 1.45; }
.nsb-input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 17px; color: var(--text); background: var(--input-bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-control); box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.nsb-input::placeholder { color: var(--text-muted); opacity: 1; }
.nsb-input:hover, .nsb-input.is-hover { border-color: var(--accent); }
.nsb-input:focus-visible, .nsb-input.is-focus, .nsb-input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); outline: 2px solid transparent; }
.nsb-input[disabled] { background: var(--surface-sunken); color: var(--text-muted); border-color: var(--border); box-shadow: none; cursor: not-allowed; }
.nsb-input[aria-invalid="true"] { border-color: var(--error-border); box-shadow: inset 0 0 0 1px var(--error-border); }
.nsb-input[aria-invalid="true"]:focus-visible, .nsb-input[aria-invalid="true"].is-focus { box-shadow: inset 0 0 0 1px var(--error-border), var(--focus-ring); }
textarea.nsb-input { min-height: 112px; resize: vertical; line-height: 1.5; }
.nsb-select { position: relative; }
.nsb-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.nsb-select .nsb-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); }
.nsb-field__error { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; color: var(--error); font-size: 17px; font-weight: 400; line-height: 1.45; }
.nsb-field__error .nsb-icon { margin-top: 2px; }
.nsb-check { display: flex; align-items: center; gap: var(--space-3); min-height: var(--target); cursor: pointer; font-weight: 500; }
.nsb-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; border-radius: 6px; }
.nsb-check input:focus-visible { box-shadow: var(--focus-ring); }
.nsb-form { display: grid; gap: var(--space-5); max-width: 34rem; }

/* ---------- NextEventCard ---------- */
.nsb-event { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.nsb-event__head { position: relative; isolation: isolate; overflow: hidden; display: flex; gap: var(--space-5); align-items: center; padding: var(--space-6); background: var(--header-bg); color: var(--header-text); }
.nsb-event__head .nsb-wm { width: 360px; right: -110px; top: -120px; }
.nsb-event__date { flex: none; width: 88px; padding: 10px 0 12px; border-radius: var(--radius-card-sm); background: var(--highlight); color: var(--on-highlight); text-align: center; line-height: 1.1; font-weight: 600; }
.nsb-event__day { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: 0.01em; margin: 2px 0 4px; }
.nsb-event__eyebrow { margin: 0 0 var(--space-1); color: var(--header-eyebrow); font-weight: 600; }
.nsb-event__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: var(--fluid-h2); line-height: 1.1; letter-spacing: 0.015em; }
.nsb-event__title a { color: var(--header-text); text-decoration: none; }
.nsb-event__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.nsb-event__band { margin: var(--space-1) 0 0; color: var(--header-muted); }
.nsb-event__body { padding: var(--space-6); display: grid; gap: var(--space-5); }
.nsb-event__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-4) var(--space-6); margin: 0; }
.nsb-event__facts div { display: grid; gap: 2px; align-content: start; }
.nsb-event__facts dt { color: var(--text-muted); font-weight: 560; display: flex; align-items: center; gap: var(--space-2); }
.nsb-event__facts dd { margin: 0; font-weight: 560; font-variant-numeric: tabular-nums; }
.nsb-event__answer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3) var(--space-4); padding: var(--space-4); border-radius: var(--radius-card-sm); background: var(--surface-tint); }
.nsb-event__answer p { margin: 0; }
.nsb-event__quiet { margin: 0; color: var(--text-muted); }

/* ---------- AvailabilityBar ---------- */
.nsb-avail { display: grid; gap: var(--space-3); }
.nsb-avail__title { margin: 0; }
.nsb-avail__bar { display: flex; gap: 3px; height: 28px; border-radius: var(--radius-pill); overflow: hidden; }
.nsb-avail__seg { min-width: 10px; background: var(--seg); box-shadow: inset 0 0 0 1.5px var(--seg-edge, var(--seg)); }
.nsb-avail__seg:first-child { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
.nsb-avail__seg:last-child { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.nsb-avail__seg:only-child { border-radius: var(--radius-pill); }
.nsb-avail__seg--yes { --seg: var(--status-positive-fill); }
.nsb-avail__seg--no { --seg: var(--status-negative-fill); }
.nsb-avail__seg--unsure { --seg: var(--status-waiting); --seg-edge: var(--status-waiting-edge); }
.nsb-avail__seg--noreply { --seg: var(--status-neutral-fill); --seg-edge: var(--status-neutral); }
.nsb-avail__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.nsb-avail__legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.nsb-avail__key { width: 14px; height: 14px; border-radius: 4px; background: var(--seg); box-shadow: inset 0 0 0 1.5px var(--seg-edge, var(--seg)); flex: none; }
.nsb-avail__n { font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- WaitingList ---------- */
.nsb-wait { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.nsb-wait__head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border); }
.nsb-wait__head .nsb-nav__count { margin-left: 0; }
.nsb-wait__list { list-style: none; margin: 0; padding: var(--space-2); display: grid; }
.nsb-wait__row { display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: 10px var(--space-4); border-radius: var(--radius-card-sm); color: var(--text); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-standard); }
.nsb-wait__row:hover, .nsb-wait__row.is-hover { background: var(--table-row-hover); }
.nsb-wait__row + .nsb-wait__row { border-top: 0; }
.nsb-wait__text { flex: 1; min-width: 0; display: grid; }
.nsb-wait__label { font-weight: 560; color: var(--text-heading); }
.nsb-wait__meta { color: var(--text-muted); }
.nsb-wait__go { color: var(--accent); }
.nsb-wait__blocked { display: flex; gap: var(--space-3); margin: 0 var(--space-4) var(--space-4); padding: var(--space-4); border-radius: var(--radius-card-sm); background: var(--surface-sunken); }
.nsb-wait__blocked .nsb-icon { color: var(--text-muted); margin-top: 2px; }
.nsb-wait__blocked p { margin: 0; }
.nsb-wait__body { padding: var(--space-4); }

/* ---------- sign-in showcase ---------- */
.nsb-signin { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100%; background: var(--surface); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-lg); }
.nsb-signin__brand { position: relative; isolation: isolate; overflow: hidden; background: var(--header-bg); color: var(--header-text); padding: var(--space-16) var(--space-12); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); }
.nsb-signin__brand .nsb-wm { width: 760px; right: -300px; bottom: -300px; }
.nsb-signin__brand .nsb-crest { --crest-size: var(--crest-signin); }
/* The band's name as a mark, in the official lockup. The markup stays one line of text; the width breaks it after
   "Newtongrange", which ::first-line sets in Bold, and "Silver Band" falls beneath in Light at 1.45 times. --wm is the Bold size. */
.nsb-signin__brand .nsb-display {
  --wm: 34px; color: var(--header-text); font-family: var(--font-wordmark); font-weight: 300; font-size: calc(var(--wm) * 1.45);
  line-height: 1.22; letter-spacing: -0.01em; width: calc(var(--wm) * 8.4); max-width: none; text-wrap: wrap;
}
.nsb-signin__brand .nsb-display::first-line { font-weight: 700; font-size: var(--wm); letter-spacing: -0.005em; }
.nsb-signin__brand p { margin: 0; color: var(--header-muted); max-width: 30ch; }
.nsb-signin__brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--highlight) 0 72%, var(--header-stripe) 72% 100%); }
.nsb-signin__form { padding: var(--space-16) var(--space-12); display: flex; flex-direction: column; justify-content: center; gap: var(--space-6); }
.nsb-signin__form .nsb-h1 { margin-bottom: var(--space-1); }
.nsb-signin__route { display: grid; gap: var(--space-3); }
.nsb-signin__or { display: flex; align-items: center; gap: var(--space-3); color: var(--text-muted); }
.nsb-signin__or::before, .nsb-signin__or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.nsb-signin--phone { grid-template-columns: minmax(0, 1fr); }
.nsb-signin--phone .nsb-signin__brand { padding: var(--space-6); flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--space-4); }
.nsb-signin--phone .nsb-signin__brand .nsb-crest { --crest-size: 72px; }
.nsb-signin--phone .nsb-signin__brand .nsb-display { --wm: 20px; }
.nsb-signin--phone .nsb-signin__brand p:not(.nsb-display), .nsb-signin--phone .nsb-signin__brand .nsb-wm { display: none; }
.nsb-signin--phone .nsb-signin__brand .nsb-display { margin: 0; }
.nsb-signin--phone .nsb-signin__form { padding: var(--space-6) var(--space-4); }

@media (prefers-reduced-motion: reduce) {
  .nsb *, .nsb *::before, .nsb *::after, .nsb { animation-duration: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0ms !important; }
  .nsb-btn:active { transform: none; }
  .nsb-card--interactive:hover { transform: none; }
}
@media (forced-colors: active) {
  .nsb-pill__dot, .nsb-avail__seg, .nsb-avail__key { forced-color-adjust: none; }
  .nsb-btn, .nsb-input, .nsb-band { border: 1px solid CanvasText; }
}

/* batch A: crumb, facts, choice tiles, view switch, actions, log, and the flow screens' parts */
.nsb-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); margin-bottom: calc(-1 * var(--space-3)); color: var(--text-muted); }
.nsb-crumb a { display: inline-flex; align-items: center; min-height: var(--target); font-weight: 560; }
.nsb-facts { margin: 0; display: grid; }
.nsb-facts > div { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); gap: var(--space-1) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.nsb-facts > div:first-child { border-top: 0; padding-top: 0; }
.nsb-facts > div:last-child { padding-bottom: 0; }
.nsb-facts dt { color: var(--text-muted); font-weight: 560; }
.nsb-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.nsb-choices { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--space-2); }
.nsb-choices__legend { padding: 0; font-weight: 560; margin-bottom: var(--space-2); }
.nsb-choices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(7.5rem, 100%), 1fr)); gap: var(--space-2); }
.nsb-choices--2 .nsb-choices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nsb-choice { position: relative; display: block; cursor: pointer; }
.nsb-choice input[type=radio] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nsb-choice__face { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--target-lg); padding: 10px var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--accent); font-weight: 600; text-align: center; box-shadow: var(--shadow-xs); transition: background-color var(--duration-fast) var(--ease-standard); }
.nsb-choice:hover .nsb-choice__face { background: var(--surface-tint); }
.nsb-choice__tick { display: none; }
.nsb-choice input:checked + .nsb-choice__face { background: var(--accent-soft); color: var(--on-accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.nsb-choice input:checked + .nsb-choice__face .nsb-choice__tick { display: inline-block; }
.nsb-choice input:checked + .nsb-choice__face .nsb-choice__icon { display: none; }
.nsb-choice input:focus-visible + .nsb-choice__face { box-shadow: var(--focus-ring); }
.nsb-choice input:disabled, .nsb-choice input:disabled + .nsb-choice__face { cursor: not-allowed; }
.nsb-choice input:disabled + .nsb-choice__face { background: var(--button-inert-bg); color: var(--button-inert); border-color: transparent; box-shadow: none; }
.nsb-switch ul { list-style: none; margin: 0; padding: 4px; display: inline-flex; flex-wrap: wrap; gap: 4px; border-radius: var(--radius-control); background: var(--surface-sunken); }
.nsb-switch a { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 var(--space-4); border-radius: calc(var(--radius-control) - 2px); color: var(--text); text-decoration: none; font-weight: 560; }
.nsb-switch a:hover { background: var(--surface-tint); }
.nsb-switch a[aria-current="page"] { background: var(--surface); color: var(--text-heading); font-weight: 650; box-shadow: var(--shadow-xs); }
.nsb-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); }
.nsb-actions form { margin: 0; }
.nsb-log { list-style: none; margin: 0; padding: 0; display: grid; }
.nsb-log > li { display: grid; gap: 2px; padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.nsb-log > li:first-child { border-top: 0; padding-top: 0; }
.nsb-log__when { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-heading); }
.nsb-log__who { color: var(--text-muted); }
.nsb-log__ref { font-family: var(--font-mono); font-weight: 600; overflow-wrap: anywhere; }
.nsb-card > .nsb-form, .nsb-card > form > .nsb-form { max-width: 40rem; }
.nsb-form fieldset.nsb-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--space-4); }
.nsb-form fieldset.nsb-fields > legend { padding: 0; font-weight: 600; margin-bottom: var(--space-2); }
.nsb-form .nsb-actions { margin-top: var(--space-1); }
.nsb-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: var(--space-4); }
.nsb-quote { margin: 0; padding: var(--space-4) var(--space-5); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-card-sm) var(--radius-card-sm) 0; background: var(--surface-tint); }
.nsb-quote p { margin: 0; white-space: pre-wrap; }
.nsb-names { margin: 0; }
.nsb-prewrap { white-space: pre-wrap; }
.nsb-mono { font-family: var(--font-mono); font-weight: 600; overflow-wrap: anywhere; }
.nsb-cell-sub { display: block; color: var(--text-muted); font-weight: 400; }
.nsb-section-title { margin: 0 0 var(--space-3); }
.nsb-card .nsb-table { box-shadow: none; }
.nsb-card--pad-none > .nsb-card__head { padding: var(--space-5) var(--space-6) 0; }
.nsb-card--pad-none > .nsb-table { border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.nsb-card--pad-none > .nsb-card__body { padding: var(--space-4) var(--space-6) var(--space-5); }
/* The register taken on a phone: one row per player, the marks as two tiles beneath. */
.nsb-marks { list-style: none; margin: 0; padding: 0; display: grid; }
.nsb-marks > li { display: grid; gap: var(--space-2); padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.nsb-marks > li:first-child { border-top: 0; padding-top: 0; }
.nsb-marks__who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.nsb-marks__name { font-weight: 620; color: var(--text-heading); }
.nsb-marks__seat { display: block; color: var(--text-muted); }
.nsb-marks__note { margin: 0; color: var(--text-muted); }
@media (min-width: 769px) {
  .nsb-marks > li { grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); align-items: center; column-gap: var(--space-6); }
  .nsb-marks__note { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nsb-facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nsb-actions > .nsb-btn, .nsb-actions > form, .nsb-actions > form > .nsb-btn, .nsb-actions > .nsb-inert { width: 100%; }
  .nsb-crumb { margin-bottom: 0; }
}
.nsb-cardlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.nsb-cardlist > .nsb-card { display: grid; gap: var(--space-4); }
.nsb-cardlist > .nsb-card > .nsb-card__head { margin-bottom: 0; }
.nsb-card > p:empty { display: none; }
.nsb-stack { display: grid; gap: var(--space-4); min-width: 0; }
.nsb-stack > h3 { margin: var(--space-2) 0 0; }
.nsb-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.nsb-pieces { margin: 0; padding-left: 1.6em; display: grid; gap: var(--space-2); }
.nsb-pieces > li { padding-left: var(--space-1); }
.nsb-reveal { padding: 0; }
.nsb-reveal__summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--target-lg); padding: var(--space-4) var(--space-6); cursor: pointer; list-style: none; color: var(--accent); }
.nsb-reveal__summary::-webkit-details-marker { display: none; }
.nsb-reveal__summary .nsb-h3 { color: var(--text-heading); }
.nsb-reveal[open] .nsb-reveal__summary .nsb-icon { transform: rotate(180deg); }
.nsb-reveal > :not(summary) { margin: 0 var(--space-6) var(--space-6); }
@media (max-width: 768px) { .nsb-btn--phone-full { width: 100%; } }
.nsb-inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin: 0; }
.nsb-inline-form .nsb-field { min-width: 12rem; }
@media (max-width: 768px) { .nsb-inline-form, .nsb-inline-form .nsb-field, .nsb-inline-form .nsb-btn { width: 100%; } }
.nsb-setlist { list-style: none; margin: 0; padding: 0; display: grid; }
.nsb-setlist > li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.nsb-setlist > li:first-child { border-top: 0; padding-top: 0; }
.nsb-setlist__n { font-family: var(--font-serif); font-size: 28px; line-height: 1.1; color: var(--accent); text-align: right; }
.nsb-setlist__body { display: grid; gap: var(--space-2); justify-items: start; min-width: 0; }
.nsb-piece__title { font-weight: 620; color: var(--text-heading); display: block; }
.nsb-piece__credit { color: var(--text-muted); display: block; }
.nsb-setlist .nsb-actions { gap: var(--space-1); }
.nsb-main__inner > p, .nsb-main__inner > form > p { margin: 0; }
@media (max-width: 768px) {
  .nsb-card--pad-none > .nsb-table { border-top: 0; padding: 0 var(--space-3) var(--space-3); }
  .nsb-card--pad-none > .nsb-card__head { padding: var(--space-5) var(--space-4) 0; }
  .nsb-card--pad-none > .nsb-card__body { padding: var(--space-3) var(--space-4) var(--space-4); }
}
.nsb-card .nsb-avail + .nsb-summary { margin-top: var(--space-5); }
/* batch B: crumbs, facts, forms, consent wording, card sections and inline actions */
.nsb-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); }
.nsb-crumbs li { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.nsb-crumbs li + li::before { content: "/"; color: var(--text-muted); }
.nsb-crumbs a { display: inline-flex; align-items: center; min-height: var(--target); font-weight: 560; overflow-wrap: anywhere; }
.nsb-facts { margin: 0; display: grid; }
.nsb-facts > div { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: var(--space-1) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.nsb-facts > div:first-child { border-top: 0; padding-top: 0; }
.nsb-facts > div:last-child { padding-bottom: 0; }
.nsb-facts dt { font-weight: 560; color: var(--text-muted); }
.nsb-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.nsb-facts--grid { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: var(--space-4); }
.nsb-facts--grid > div { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; }
.nsb-form .nsb-field, .nsb-form .nsb-choices { max-width: 34rem; }
.nsb-form fieldset { min-width: 0; }
.nsb-choices { margin: 0; padding: 0; border: 0; display: grid; gap: var(--space-1); }
.nsb-choices legend { padding: 0; margin-bottom: var(--space-1); }
.nsb-field--check { gap: var(--space-1); }
.nsb-check span { overflow-wrap: anywhere; }
/* A checkbox or radio keeps the field fill behind its corners that the retired flow layer's input rule gave it,
   which shows where its focus ring and its own rounding meet. */
.nsb-check input { background-color: var(--input-bg); }
.nsb-group { margin: 0; padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-card-sm); display: grid; gap: var(--space-4); min-width: 0; }
.nsb-group > legend { font-weight: 620; padding: 0 var(--space-1); }
.nsb-form .nsb-btn, .nsb-actions .nsb-btn { white-space: normal; text-align: center; }
.nsb-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); }
.nsb-actions form { margin: 0; }
.nsb-wording { margin: 0; padding: var(--space-4) var(--space-5); background: var(--surface-tint); border-left: 4px solid var(--accent); border-radius: var(--radius-card-sm); display: grid; gap: var(--space-2); }
.nsb-wording blockquote { margin: 0; }
.nsb-wording p { margin: 0; max-width: 70ch; }
.nsb-wording figcaption { color: var(--text-muted); }
.nsb-card__section { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); display: grid; gap: var(--space-3); }
.nsb-card__section > h3, .nsb-card__section > h4 { margin: 0; }
.nsb-card > .nsb-stack, .nsb-stack { display: grid; gap: var(--space-4); min-width: 0; }
.nsb-section-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.nsb-details summary { display: flex; align-items: center; min-height: var(--target); font-weight: 600; color: var(--text-link); cursor: pointer; }
.nsb-details[open] summary { margin-bottom: var(--space-3); }
.nsb-details ul { margin: 0; padding-left: var(--space-6); display: grid; gap: var(--space-2); }
.nsb-pills { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.nsb-mono { font-family: var(--font-mono); font-weight: 600; overflow-wrap: anywhere; }
.nsb-ref { font-family: var(--font-mono); font-weight: 600; }
.nsb-linkbtn { display: inline; margin: 0; }
.nsb-linkbtn button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border: 0; border-radius: var(--radius-control); box-shadow: none; background: none; padding: 10px 2px; margin-block: -10px;
  min-width: 0; min-height: var(--target); max-width: 100%;
  color: var(--text-link); font: inherit; font-weight: 560; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.nsb-linkbtn button:hover { background: none; text-decoration-thickness: 2px; }
/* Inside a sentence, at the sentence's weight, as the portal-health line on home has it. */
.nsb-linkbtn--quiet button { font-weight: 400; }
.nsb-rows--plain > li { align-items: flex-start; }
.nsb-event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (max-width: 768px) {
  .nsb-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nsb-actions { flex-direction: column; align-items: stretch; }
  .nsb-actions .nsb-btn, .nsb-actions .nsb-inert, .nsb-form > .nsb-btn { width: 100%; }
  .nsb-group { padding: var(--space-3) var(--space-4); }
}
/* batch C: minutes steps, agenda, versions, audit entries, nested decisions and the governance screens' parts */
.nsb-c-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.nsb-c-steps > li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: start; gap: var(--space-1) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.nsb-c-steps > li:first-child { border-top: 0; padding-top: 0; }
.nsb-c-steps > li > .nsb-pill { justify-self: start; }
.nsb-c-steps__text { display: flex; flex-direction: column; min-width: 0; }
.nsb-c-steps__who { font-weight: 600; color: var(--text-heading); }
.nsb-c-steps__when { color: var(--text-muted); overflow-wrap: anywhere; }
.nsb-c-agenda { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: none; }
.nsb-c-agenda > li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.nsb-c-agenda > li:first-child { border-top: 0; padding-top: 0; }
.nsb-c-agenda__n { font-family: var(--font-serif); font-size: 24px; line-height: 1.2; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.nsb-c-agenda__body { display: grid; gap: var(--space-1); min-width: 0; }
.nsb-c-agenda__heading { font-weight: 620; color: var(--text-heading); overflow-wrap: anywhere; }
.nsb-c-agenda__secret { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 620; color: var(--text-heading); }
.nsb-c-agenda__detail { margin: 0; color: var(--text-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.nsb-c-agenda .nsb-actions { gap: var(--space-1) var(--space-4); }
.nsb-c-version { display: grid; gap: var(--space-4); min-width: 0; }
.nsb-c-version + .nsb-c-version { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.nsb-c-version__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.nsb-c-version__head > h3 { margin: 0; }
.nsb-c-pre { margin: 0; padding: var(--space-3) var(--space-4); background: var(--surface-sunken); border-radius: var(--radius-card-sm); font-family: var(--font-mono); font-size: 17px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.nsb-c-pre--prose { font-family: var(--font-sans); background: var(--surface-tint); max-height: 32rem; overflow-y: auto; }
.nsb-c-diff { display: grid; gap: var(--space-2); }
.nsb-c-diff__label { margin: 0; font-weight: 600; color: var(--text-muted); }
.nsb-c-audit > li { gap: var(--space-1); }
.nsb-c-audit .nsb-log__words { overflow-wrap: anywhere; }
.nsb-c-rows > li { flex-wrap: wrap; }
.nsb-c-rows__label { font-weight: 600; color: var(--text-heading); }
.nsb-c-decisions { list-style: none; margin: 0; padding: 0; display: grid; }
.nsb-c-decisions > li { display: grid; gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.nsb-c-decisions > li:first-child { border-top: 0; padding-top: 0; }
.nsb-c-decisions__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.nsb-c-decisions__head > a { font-weight: 620; overflow-wrap: anywhere; }
.nsb-c-decisions .nsb-rows { padding-left: var(--space-5); border-left: 2px solid var(--border); }
.nsb-c-decisions .nsb-rows > li { padding: var(--space-2) 0; border-top: 0; }
.nsb-c-forms { display: grid; gap: var(--space-5); }
.nsb-c-forms > form, .nsb-c-forms > .nsb-details > form { display: grid; gap: var(--space-4); max-width: 40rem; }
.nsb-c-forms > form + form { padding-top: var(--space-5); border-top: 1px solid var(--border); }
.nsb-c-hold { margin: 0; }
.nsb-c-hold + .nsb-c-hold { margin-top: var(--space-3); }
.nsb-c-quiet { font-weight: 650; color: var(--text-heading); }
.nsb-c-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4); margin: 0; }
.nsb-c-filter .nsb-field { width: 15rem; max-width: 100%; }
.nsb-c-filter > .nsb-filter__clear { align-self: center; }
.nsb-c-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-6); }
@media (max-width: 768px) {
  .nsb-c-steps > li { grid-template-columns: minmax(0, 1fr); }
  .nsb-c-filter, .nsb-c-filter .nsb-field, .nsb-c-filter .nsb-btn, .nsb-c-toolbar, .nsb-c-toolbar > .nsb-actions { width: 100%; }
  .nsb-c-decisions .nsb-rows { padding-left: var(--space-3); }
  .nsb-c-agenda > li { grid-template-columns: 1.75rem minmax(0, 1fr); gap: var(--space-2); }
}
.nsb-c-minutes-body textarea { min-height: 20rem; }
.nsb-c-pills { display: inline-flex; max-width: 100%; min-width: 0; }
.nsb-c-pills > .nsb-pill { white-space: normal; border-radius: var(--radius-card-sm); }
.nsb-c-roll td > .nsb-pill { justify-self: start; }
/* batch D: the score player and its recordings, item rows with their actions, crits and marks */
.nsb-d-score { display: grid; gap: var(--space-4); min-width: 0; }
.nsb-d-score .player-controls { display: grid; gap: var(--space-4); margin: 0; }
.nsb-d-score .player-controls[hidden] { display: none; }
.nsb-d-transport { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); max-width: 28rem; }
.nsb-d-transport .nsb-btn { width: 100%; }
.nsb-d-tempo { display: grid; gap: var(--space-1); max-width: 28rem; }
.nsb-d-tempo__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); font-weight: 560; }
.nsb-d-tempo output { font-variant-numeric: tabular-nums; font-weight: 400; }
/* The tempo slider sits in the field box it has worn since batch D, which the retired flow layer's
   input rule gave it; written out here so retiring that rule changes nothing. */
.nsb-d-range { width: 100%; max-width: 100%; min-height: var(--target); margin: 0; accent-color: var(--accent);
  padding: 10px 14px; font: inherit; font-size: 17px; color: var(--text); background: var(--input-bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-control); box-shadow: var(--shadow-xs); }
.nsb-d-range:hover, .nsb-d-range:focus-visible { border-color: var(--accent); }
.nsb-d-loop { margin: 0; padding: 0; border: 0; border-radius: 0; min-width: 0; display: grid; gap: var(--space-3); max-width: 28rem; }
.nsb-d-loop > legend { padding: var(--space-4) 0 0; font-weight: 560; width: 100%; border-top: 1px solid var(--border); margin-bottom: var(--space-3); }
.nsb-d-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.nsb-d-bars .nsb-field { min-width: 0; }
.nsb-d-bars .nsb-input { width: 100%; }
.nsb-d-status { margin: 0; color: var(--text-muted); }
.nsb-d-surface { border: 1px solid var(--border); border-radius: var(--radius-card-sm); min-height: 6rem; background: var(--white); overflow-x: auto; }
.nsb-d-strips { list-style: none; margin: 0; padding: 0; display: grid; }
.nsb-d-strips > li { padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.nsb-d-strips > li:first-child { border-top: 0; padding-top: 0; }
.nsb-d-strips > li:last-child { padding-bottom: 0; }
.nsb-d-strip { margin: 0; display: grid; gap: var(--space-2); min-width: 0; }
.nsb-d-strip figcaption { font-weight: 600; color: var(--text-heading); }
.nsb-d-strip audio { width: 100%; }
.nsb-d-strip p { margin: 0; }
.nsb-d-strip .strip-loop { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.nsb-d-strip .strip-loop[hidden] { display: none; }
.nsb-d-strip .strip-loop .nsb-field { width: 9rem; }
.nsb-d-file { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target); font-weight: 600; }
.nsb-d-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.nsb-d-rows > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.nsb-d-rows > li:first-child { border-top: 0; padding-top: 0; }
.nsb-d-rows > li:last-child { padding-bottom: 0; }
.nsb-d-rows__text { flex: 1 1 16rem; min-width: 0; display: grid; gap: 2px; }
.nsb-d-rows__text > a, .nsb-d-rows__lead { font-weight: 620; color: var(--text-heading); }
.nsb-d-rows__text > a { color: var(--text-link); }
.nsb-d-rows__meta { color: var(--text-muted); }
.nsb-d-rows .nsb-actions { gap: var(--space-1) var(--space-3); }
.nsb-d-rows .nsb-actions a { display: inline-flex; align-items: center; min-height: var(--target); font-weight: 560; }
.nsb-d-crit { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; }
.nsb-d-group + .nsb-d-group { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.nsb-d-group > h3 { margin: 0 0 var(--space-3); }
.nsb-d-marks { list-style: none; margin: 0; padding: 0; display: grid; }
.nsb-d-marks > li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--target); padding: var(--space-2) 0; border-top: 1px solid var(--border); }
.nsb-d-marks > li > span:first-child { min-width: 0; }
.nsb-d-count { color: var(--text-muted); margin: 0; }
@media (max-width: 768px) {
  .nsb-d-rows .nsb-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nsb-d-rows .nsb-actions .nsb-btn { width: auto; }
  .nsb-d-strip .strip-loop .nsb-field { width: calc(50% - var(--space-2)); }
}
.nsb-d-long textarea.nsb-input { min-height: 16rem; }
.nsb-d-rows .nsb-pills { min-width: 0; }
.nsb-d-rows .nsb-pill, .nsb-pills .nsb-pill { white-space: normal; max-width: 100%; height: auto; }
.nsb-d-rows__text > * { min-width: 0; }
