/* Syndicate Pad. World: an architect's white-card maquette of the crew's studio. Cool concrete paper, graphite
   linework, one blue ink for signatures, approvals and the primary action. Buttons are keycaps (2px graphite frame,
   a bottom face, a top highlight, a two-step press). Panels are drawing sheets: a graphite frame with a hard drop and
   a title block. Type: Archivo Expanded for names, Archivo for text, Martian Mono for every number. */

:root {
  --concrete: #dfe1dc;
  --card: #f3f3ef;
  --card-2: #e9eae5;
  --card-3: #eceee8;
  --graphite: #1f2225;
  --graphite-2: #3b3f43;
  --muted: #5d625c;
  --faint: #878c85;
  --rule: #b9bdb6;
  --rule-2: #cfd2cb;
  --ink: #2340d6;
  --ink-hi: #5a70ec;
  --ink-lo: #172a9e;
  --ink-wash: #e4e8fa;
  --key-lo: #c2c5be;
  --f-disp: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Archivo", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --side: 248px;
  --gut: clamp(16px, 2.8vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .14s;
  --t-mid: .32s;
  --frame: 0 0 0 1.5px var(--graphite);
  --sheet: 0 0 0 1.5px var(--graphite), 0 4px 0 0 var(--graphite);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; } }
body {
  margin: 0; min-height: 100vh; color: var(--graphite); font: 400 15px/1.55 var(--f-body); letter-spacing: .01em;
  background-color: var(--concrete);
  background-image:
    radial-gradient(120% 80% at 8% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 55%),
    linear-gradient(rgba(31,34,37,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(31,34,37,.05) 1px, transparent 1px),
    linear-gradient(rgba(31,34,37,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(31,34,37,.028) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-attachment: fixed;
  font-variant-numeric: tabular-nums;
}
body::after { /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a, label[for], .pic, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mono { font-family: var(--f-mono); font-size: .86em; letter-spacing: 0; }
.skip { position: absolute; left: 0; top: 0; z-index: 200; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: var(--graphite); color: var(--card); padding: 0; }
.skip:focus { width: auto; height: auto; clip-path: none; left: 8px; top: 8px; padding: 8px 12px; }
[hidden] { display: none !important; }
.ic, .key svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; flex: none; }

/* ------------------------------------------------------------------ keycaps */
.key {
  --bd: var(--graphite); --face: var(--card); --hi: #ffffff; --lo: var(--key-lo); --fg: var(--graphite);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px 4px;
  border: 0; border-radius: 0; background: var(--face); color: var(--fg); text-decoration: none; white-space: nowrap;
  font: 600 14px/1 var(--f-body); letter-spacing: .01em;
  box-shadow: 0 0 0 2px var(--bd), inset 0 -4px 0 0 var(--lo), inset 0 2px 0 0 var(--hi);
  transition: transform .06s steps(2), box-shadow .06s steps(2), background-color var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.key:hover { --face: #fbfbf8; }
.key:active:not(:disabled) { transform: translateY(2px); padding-bottom: 0; box-shadow: 0 0 0 2px var(--bd), inset 0 2px 0 0 var(--lo); }
.key:disabled, .key[aria-disabled="true"] { --face: var(--card-2); --fg: var(--faint); --bd: var(--rule); --lo: var(--rule-2); cursor: not-allowed; }
.key-ink { --face: var(--ink); --hi: var(--ink-hi); --lo: var(--ink-lo); --fg: #fff; font: 700 13px/1 var(--f-disp); font-stretch: 125%; letter-spacing: .05em; text-transform: uppercase; }
.key-ink:hover { --face: #2b4ae6; }
.key-dark { --face: var(--graphite); --hi: #4a4f55; --lo: #000; --fg: var(--card); }
.key-dark:hover { --face: #2a2e32; }
.key-lg { min-height: 48px; padding: 0 22px 4px; font-size: 14px; }
.key-sm { min-height: 32px; padding: 0 11px 3px; font-size: 12.5px; box-shadow: 0 0 0 1.5px var(--bd), inset 0 -3px 0 0 var(--lo), inset 0 1.5px 0 0 var(--hi); }
.key-sm:active:not(:disabled) { box-shadow: 0 0 0 1.5px var(--bd), inset 0 1.5px 0 0 var(--lo); }
.key-icon { padding: 0 0 4px; width: 40px; }
.key-sm.key-icon { width: 32px; padding-bottom: 3px; }
.key-wide { width: 100%; }
.key.is-busy { pointer-events: none; }
.key.is-busy::after { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin .7s steps(8) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.key kbd { font: 500 10px var(--f-mono); padding: 2px 4px; box-shadow: 0 0 0 1px currentColor; opacity: .6; }

/* ------------------------------------------------------------------ sidebar */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 20; display: flex; flex-direction: column; gap: 18px;
  padding: 20px 16px 18px; background: var(--card); box-shadow: 1.5px 0 0 var(--graphite); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 2px 4px 16px; border-bottom: 1px solid var(--rule); }
.brand img { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; font: 800 17px/1.02 var(--f-disp); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.005em; }
.brand-name b:last-child { color: var(--ink); font-weight: 800; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav button {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border: 0; background: none;
  text-decoration: none; font: 500 15px/1 var(--f-body); color: var(--graphite-2); text-align: left; transition: background-color var(--t-fast) var(--ease);
}
.nav a:hover, .nav button:hover { background: var(--card-3); color: var(--graphite); }
.nav a[aria-current="true"] { background: var(--graphite); color: var(--card); }
.nav a[aria-current="true"] .ic { color: var(--card); }
.nav .ic { color: var(--muted); }
.nav-count { margin-left: auto; font: 500 10.5px/1 var(--f-mono); font-style: normal; padding: 4px 6px; box-shadow: 0 0 0 1px var(--rule); color: var(--muted); }
.nav a[aria-current="true"] .nav-count { box-shadow: 0 0 0 1px #6b7075; color: var(--card); }
.nav-count.is-ink { background: var(--ink); color: #fff; box-shadow: none; }
.side-low { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.token { padding: 14px 14px 12px; background: var(--concrete); box-shadow: var(--frame); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: end; }
.token-k { grid-column: 1 / -1; margin: 0; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.token-v { margin: 0; font: 500 13px/1.3 var(--f-mono); word-break: break-all; }
.side-row { display: flex; align-items: center; gap: 10px; }
.net { font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 9px; box-shadow: 0 0 0 1.5px var(--graphite); margin-right: auto; }
.net::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--ink); margin-right: 7px; vertical-align: 0; }
[data-sound] .snd-on { opacity: .25; }
[data-sound][aria-pressed="true"] .snd-on { opacity: 1; }
[data-sound][aria-pressed="true"] { --face: var(--ink-wash); }

/* ------------------------------------------------------------------ page + tape */
.page { margin-left: var(--side); min-width: 0; }
.tape { position: sticky; top: 0; z-index: 15; height: 38px; overflow: hidden; background: var(--graphite); color: var(--card); box-shadow: 0 1.5px 0 var(--graphite); }
.tape-track { display: inline-flex; align-items: center; height: 38px; white-space: nowrap; animation: tape 70s linear infinite; will-change: transform; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tape-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; font: 500 12px/1 var(--f-mono); color: inherit; }
.tape-item + .tape-item { box-shadow: -1px 0 0 #3d4146; }
.tape-item b { font: 700 12px/1 var(--f-disp); font-stretch: 125%; letter-spacing: .04em; }
.tape-item i { font-style: normal; color: #a9aea7; }
.tape-item .t-seats { display: inline-flex; gap: 3px; }
.tape-item .t-seats span { width: 7px; height: 7px; box-shadow: inset 0 0 0 1px #7b8079; }
.tape-item .t-seats span.on { background: #8a9cf5; box-shadow: none; }
.tape-fact { color: #c9cdc6; }
.tape-fact::before { content: "\2014"; margin-right: 10px; color: #6f746f; }

/* ------------------------------------------------------------------ hero */
.hero { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding: clamp(20px, 3.2vw, 40px) var(--gut) 28px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; padding-top: clamp(8px, 3vh, 36px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dot-ink { width: 9px; height: 9px; background: var(--ink); box-shadow: 0 2px 0 var(--graphite); }
.name { margin: 0; font: 800 clamp(34px, 3.7vw, 58px)/.94 var(--f-disp); font-stretch: 125%; letter-spacing: -.015em; text-transform: uppercase; }
.name::after { content: ""; display: block; width: 64px; height: 6px; margin-top: 22px; background: var(--ink); }
.lede { margin: 20px 0 0; max-width: 22ch; font: 500 clamp(19px, 1.55vw, 23px)/1.3 var(--f-body); letter-spacing: -.005em; color: var(--graphite-2); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.facts { margin: 48px 0 0; padding-top: 0; display: grid; gap: 0; }
.facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font: 500 22px/1 var(--f-mono); letter-spacing: -.02em; }
.facts dd small { font-size: 11px; color: var(--muted); margin-left: 4px; letter-spacing: 0; }

.stage { display: flex; flex-direction: column; min-width: 0; }
.stage-frame { position: relative; flex: 1; min-height: clamp(440px, 62vh, 700px); background: #e8e9e4; box-shadow: var(--sheet); overflow: hidden;
  background-image: radial-gradient(90% 70% at 30% 20%, #f4f5f1 0%, #e6e7e2 60%, #dcded8 100%); }
.stage-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s var(--ease); }
body.gl .stage-gl { opacity: 1; }
.stage-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute; left: 0; top: 0; pointer-events: auto; transform: translate(-50%, calc(-100% - 6px)); display: grid; gap: 2px; min-width: 96px; max-width: 164px; padding: 6px 9px 7px;
  background: var(--card); border: 0; text-align: left; box-shadow: 0 0 0 1.5px var(--graphite), 0 3px 0 0 var(--graphite);
  transition: box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), opacity .4s var(--ease);
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 10px; height: 10px; margin-left: -5px; background: var(--card); transform: rotate(45deg); box-shadow: 1.5px 1.5px 0 var(--graphite); }
.bubble:hover { background: #fff; }
.bubble .b-role { display: flex; align-items: center; gap: 7px; justify-content: flex-start; font: 700 11px/1 var(--f-disp); font-stretch: 125%; letter-spacing: .06em; text-transform: uppercase; }
.bubble .b-role::before { content: ""; width: 8px; height: 8px; box-shadow: inset 0 0 0 1.5px var(--graphite); flex: none; }
.bubble.is-signed .b-role::before { background: var(--ink); box-shadow: none; }
.bubble .b-who { font: 500 12px/1.2 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bubble .b-st { font: 500 10px/1.2 var(--f-mono); color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.bubble .b-sol { margin-left: auto; padding-left: 10px; font: 500 10.5px/1 var(--f-mono); letter-spacing: 0; text-transform: none; color: var(--graphite); }
.bubble.is-signed .b-st { color: var(--ink); }
.bubble.is-open { background: var(--concrete); box-shadow: 0 0 0 1.5px var(--graphite), 0 3px 0 0 var(--graphite); }
.bubble.is-open::after { background: var(--concrete); }
.bubble.is-open .b-who { color: var(--ink); font-weight: 600; }
.bubble.is-you { box-shadow: 0 0 0 1.5px var(--graphite), 0 3px 0 0 var(--graphite), 0 0 0 5px var(--ink-wash), 0 0 0 6.5px var(--ink); }
.bubble.is-kicked { opacity: .7; }
.bubble.is-kicked .b-who { text-decoration: line-through; }
.bubble.is-safe { left: auto; right: 16px; top: 16px; min-width: 150px; padding: 8px 11px 9px; background: var(--graphite); color: var(--card); box-shadow: 0 3px 0 0 #000; transform: none; pointer-events: none; }
.bubble.is-safe .b-role::before { background: var(--ink); box-shadow: none; }
.bubble.is-safe::after { display: none; }
.bubble.is-safe .b-sol { color: #c9cdc6; }
.bubble.is-safe .b-st { color: #b8bcb5; }
.demo-tag { position: absolute; top: 16px; left: 16px; margin: 0; padding: 7px 10px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--card); box-shadow: var(--frame); }
.demo-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--ink); }
.stage-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; }
.stage-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; background: var(--card); box-shadow: 0 0 0 1.5px var(--graphite); overflow: hidden; }
.stage-title .st-id { font: 500 11px/1 var(--f-mono); color: var(--muted); }
.stage-title b { font: 800 13px/1 var(--f-disp); font-stretch: 125%; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-title i { margin-left: auto; font: 500 10.5px/1 var(--f-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.stage-note { margin: 14px 0 0; font: 400 12.5px/1.4 var(--f-mono); color: var(--muted); letter-spacing: 0; }
.stage-note b { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------------ sheets (sections) */
.sheet, .memo { margin: 28px var(--gut) 0; }
.tblock { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: stretch; background: var(--card); box-shadow: var(--frame); }
.tblock > * { display: flex; align-items: center; min-height: 52px; padding: 0 18px; }
.tb-no { justify-content: center; padding: 0; font: 500 12px/1 var(--f-mono); letter-spacing: .04em; box-shadow: 1.5px 0 0 var(--graphite); }
.tb-title { margin: 0; font: 800 clamp(16px, 1.45vw, 21px)/1 var(--f-disp); font-stretch: 125%; letter-spacing: .01em; text-transform: uppercase; min-width: 0; }
.tb-title small { margin-left: 12px; font: 500 12px/1 var(--f-mono); color: var(--muted); letter-spacing: 0; text-transform: none; }
.tb-meta { box-shadow: -1.5px 0 0 var(--graphite); font: 500 11px/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tb-meta:empty { display: none; }
.tabs { box-shadow: -1.5px 0 0 var(--graphite); display: flex; gap: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; min-height: 52px; padding: 0 16px; border: 0; background: none; font: 500 13px/1 var(--f-body); color: var(--muted); white-space: nowrap; }
.tabs button + button { box-shadow: -1px 0 0 var(--rule); }
.tabs button i { font: 500 10.5px var(--f-mono); font-style: normal; margin-left: 6px; color: var(--faint); }
.tabs button[aria-selected="true"] { color: var(--graphite); font-weight: 600; }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); }
.tabs button:hover { color: var(--graphite); background: var(--card-3); }

.file-body, .mine-body, .roster { margin-top: 14px; }
.file-body:empty { min-height: 940px; background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(185,189,182,.35) 9px 10px); box-shadow: var(--frame); }
@media (max-width: 1024px) { .file-body:empty { min-height: 1540px; } }
@media (max-width: 480px) { .file-body:empty { min-height: 1710px; } }
.roster.is-loading { min-height: 440px; }
.panel { position: relative; background: var(--card); box-shadow: var(--sheet); }
.panel-h { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--rule); }
.panel-h h3 { margin: 0; display: flex; align-items: center; gap: 9px; font: 700 12.5px/1 var(--f-disp); font-stretch: 125%; letter-spacing: .06em; text-transform: uppercase; }
.panel-h h3::before { content: ""; width: 9px; height: 9px; background: var(--graphite); }
.panel-h .ph-meta { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--muted); letter-spacing: .02em; text-align: right; }
.panel-b { padding: 16px; }
.panel-note { margin: 0; padding: 12px 16px; border-top: 1px solid var(--rule); font: 400 12.5px/1.45 var(--f-body); color: var(--muted); }

.file-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px; align-items: start; }
.file-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.crew-head { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; }
.crew-pic, .crow img, .nf-pic img { image-rendering: pixelated; }
.crew-pic { width: 96px; height: 96px; object-fit: cover; box-shadow: var(--frame); background: var(--card-2); }
.crew-name { margin: 0; font: 800 clamp(22px, 2.2vw, 30px)/1 var(--f-disp); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.005em; overflow-wrap: anywhere; }
.crew-sub { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 12px/1.3 var(--f-mono); color: var(--muted); }
.crew-sub a { color: var(--graphite); }
.crew-charter { min-height: 3em; margin: 10px 0 0; max-width: 62ch; font: 400 14px/1.5 var(--f-body); color: var(--graphite-2); }
.crew-acts { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; box-shadow: 0 0 0 1.2px var(--graphite); background: var(--card); white-space: nowrap; }
.chip.is-ink { background: var(--ink); color: #fff; box-shadow: none; }
.chip.is-dark { background: var(--graphite); color: var(--card); box-shadow: none; }
.chip.is-quiet { box-shadow: 0 0 0 1px var(--rule); color: var(--muted); }

/* cap table: one segmented bar, one segment per seat */
.capbar { display: flex; height: 30px; box-shadow: var(--frame); background: var(--card-2); overflow: hidden; }
.capbar-lg { height: 40px; }
.capbar span { position: relative; display: flex; align-items: center; justify-content: flex-start; padding-left: 7px; min-width: 0; font: 500 10.5px/1 var(--f-mono); color: var(--graphite); background: var(--card); transition: flex-grow var(--t-mid) var(--ease); white-space: nowrap; overflow: hidden; }
.capbar span + span { box-shadow: -1.5px 0 0 var(--graphite); }
.capbar span.is-signed { background: repeating-linear-gradient(135deg, var(--ink-wash) 0 5px, #d2d9f6 5px 6px); }
.capbar span.is-open { background: repeating-linear-gradient(135deg, var(--card) 0 6px, var(--rule-2) 6px 7px); color: var(--muted); }
.capbar span.is-kicked { background: var(--graphite); color: var(--card); }
.cap-rows { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cap-rows th { text-align: left; font: 500 10px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.cap-rows td { padding: 11px 10px; border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
.cap-rows tr:last-child td { border-bottom: 0; }
.cap-rows .num { text-align: right; font-family: var(--f-mono); font-size: 12.5px; white-space: nowrap; }
.cap-rows th.num { text-align: right; }
.seat-role { display: flex; align-items: center; gap: 9px; font: 700 11px/1 var(--f-disp); font-stretch: 125%; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.seat-role .sq { width: 10px; height: 10px; box-shadow: inset 0 0 0 1.5px var(--graphite); flex: none; }
.seat-role .sq.on { background: var(--ink); box-shadow: none; }
.seat-role .sq.x { background: var(--graphite); }
.who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.who .mono { color: var(--muted); font-size: 11px; }
.who .you { color: var(--ink); font: 600 10.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.row-act { text-align: right; white-space: nowrap; }
.row-act .ra { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.sig { display: inline-block; font: italic 500 13px/1 var(--f-body); color: var(--ink); }
.sig-line { display: inline-block; min-width: 76px; border-bottom: 1px solid var(--rule); color: var(--faint); font: 500 10.5px/1.6 var(--f-mono); }

/* vesting strip per seat */
.vest { position: relative; height: 10px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--rule); min-width: 90px; }
.vest i { position: absolute; top: 0; bottom: 0; left: 0; }
.vest .v-out { background: var(--graphite); }
.vest .v-free { background: var(--ink); }
.vest .v-burn { background: repeating-linear-gradient(135deg, var(--graphite) 0 2px, transparent 2px 5px); }

/* signing sheet (ballots) */
.ballot { padding: 14px 16px 16px; border-bottom: 1px solid var(--rule); }
.ballot:last-child { border-bottom: 0; }
.ballot-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ballot-top b { font: 700 12.5px/1.2 var(--f-disp); font-stretch: 125%; letter-spacing: .04em; text-transform: uppercase; }
.ballot-top span { font: 500 11px/1 var(--f-mono); color: var(--muted); white-space: nowrap; }
.ballot p { margin: 6px 0 0; font-size: 13.5px; color: var(--graphite-2); }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px 14px; margin: 14px 0 0; }
.sig-cell { display: grid; gap: 4px; }
.sig-cell .sc-line { position: relative; height: 30px; border-bottom: 1.5px solid var(--graphite); }
.sig-cell .sc-line svg { position: absolute; left: 2px; bottom: 2px; width: 92px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.sig-cell .sc-line svg path { stroke-dasharray: 320; stroke-dashoffset: 0; }
.sig-cell.is-new .sc-line svg path { animation: pen 1.1s var(--ease) both; }
@keyframes pen { from { stroke-dashoffset: 320; } }
.sig-cell .sc-who { font: 500 10.5px/1.2 var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-cell .sc-who b { color: var(--graphite); font-weight: 500; }
.ballot-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* payroll: amount -> member */
.pay { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--rule-2); }
.pay:last-child { border-bottom: 0; }
.pay-amt { font: 500 15px/1 var(--f-mono); letter-spacing: -.02em; }
.pay-amt small { font-size: 10.5px; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.pay-to { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; }
.pay-to .arrow { width: 38px; height: 1.5px; background: var(--graphite); position: relative; flex: none; }
.pay-to .arrow::after { content: ""; position: absolute; right: 0; top: -3.5px; border: 4px solid transparent; border-left: 6px solid var(--graphite); border-right: 0; }
.pay-to span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-st { font: 500 10.5px var(--f-mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0; }
.kv div { padding: 12px 16px; border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.kv dt { font: 500 10px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 6px 0 0; font: 500 17px/1.1 var(--f-mono); letter-spacing: -.02em; }
.kv dd small { font-size: 10.5px; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--rule); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--rule-2); font-size: 13.5px; }
.feed li:last-child { border-bottom: 0; }
.feed time { font: 500 10.5px/1.5 var(--f-mono); color: var(--muted); }
.feed b { font: 700 10.5px var(--f-disp); font-stretch: 125%; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.feed .f-sys { color: var(--muted); }
.post-row { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--rule); }
.post-row input { flex: 1; }

/* invitations (empty states) */
.invite { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 22px 24px; background: var(--card); box-shadow: var(--sheet); }
.invite .inv-draw { height: 96px; background: repeating-linear-gradient(135deg, transparent 0 7px, var(--rule-2) 7px 8px); box-shadow: var(--frame); position: relative; }
.invite .inv-draw::before, .invite .inv-draw::after { content: ""; position: absolute; background: var(--card); box-shadow: var(--frame); }
.invite .inv-draw::before { left: 26%; top: 30%; width: 48%; height: 40%; }
.invite .inv-draw::after { left: 44%; top: 42%; width: 12%; height: 16%; background: var(--ink); box-shadow: none; }
.invite b { display: block; font: 800 18px/1.2 var(--f-disp); font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em; }
.invite p { margin: 6px 0 0; color: var(--muted); max-width: 56ch; }

/* roster */
.roster { background: var(--card); box-shadow: var(--sheet); }
.roster.is-empty { background: none; box-shadow: none; }
.crow { display: grid; grid-template-columns: 52px minmax(0, 2.2fr) 110px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 26px; gap: 16px; align-items: center; min-height: 72px; padding: 10px 16px; border-bottom: 1px solid var(--rule-2); text-decoration: none; position: relative; transition: background-color var(--t-fast) var(--ease); }
.crow:last-child { border-bottom: 0; }
.crow:hover { background: #f8f8f5; }
.crow.is-cur::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink); }
.crow img { width: 52px; height: 52px; object-fit: cover; box-shadow: var(--frame); background: var(--card-2); }
.crow .c-name b { display: block; font: 800 14px/1.15 var(--f-disp); font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .c-name span { font: 500 11px var(--f-mono); color: var(--muted); }
.seats-mini { display: flex; gap: 5px; }
.seats-mini i { width: 16px; height: 16px; box-shadow: inset 0 0 0 1.5px var(--graphite); }
.seats-mini i.f { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--rule) 3px 4px); }
.seats-mini i.s { background: var(--ink); box-shadow: none; }
.seats-mini i.k { background: var(--graphite); }
.crow .c-k { font: 500 10px/1.2 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.crow .c-v { font: 500 13.5px/1 var(--f-mono); letter-spacing: -.01em; white-space: nowrap; }
.crow .c-go { width: 26px; height: 26px; display: grid; place-items: center; }
.crow .c-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.skel { height: 72px; border-bottom: 1px solid var(--rule-2); background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(185,189,182,.45) 9px 10px); animation: hatch 1.2s linear infinite; }
@keyframes hatch { to { background-position: 28px 0; } }
.more-row { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--rule); }

/* mine */
.mine-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.owed-total { padding: 18px; display: grid; gap: 14px; }
.owed-total .ot-v { font: 500 30px/1 var(--f-mono); letter-spacing: -.03em; }
.owed-total .ot-v small { font-size: 12px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.owed-total p { margin: 0; font-size: 13px; color: var(--muted); }

/* memo */
.memo { margin-bottom: 64px; }
.memo-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); box-shadow: var(--sheet); }
.memo-steps li { display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; }
.memo-steps li + li { box-shadow: -1.5px 0 0 var(--graphite); }
.ms-k { justify-self: start; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; box-shadow: 0 0 0 1.2px var(--graphite); }
.memo-steps li:nth-child(2) .ms-k { background: var(--ink); color: #fff; box-shadow: none; }
.memo-steps b { font: 800 19px/1.15 var(--f-disp); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.005em; margin-top: 8px; }
.memo-steps span:last-child { color: var(--muted); font-size: 14px; max-width: 34ch; }
.memo-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.memo-foot { margin-left: auto; font: 500 11px/1.4 var(--f-mono); color: var(--muted); }

/* ------------------------------------------------------------------ dialogs + forms */
.dlg { padding: 0; border: 0; background: var(--card); color: var(--graphite); box-shadow: 0 0 0 2px var(--graphite), 0 6px 0 0 var(--graphite); max-width: min(1080px, calc(100vw - 24px)); width: 100%; max-height: calc(100vh - 32px); overflow: auto; }
.dlg::backdrop { background: rgba(31, 34, 37, .42); }
.small-dlg { max-width: min(520px, calc(100vw - 24px)); }
.dlg[open] { animation: dlg-in .22s var(--ease); }
@keyframes dlg-in { from { transform: translateY(8px); opacity: 0; } }
.dlg-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 16px 0 22px; background: var(--card); box-shadow: 0 1.5px 0 var(--graphite); }
.dlg-head h2 { margin: 0; font: 800 19px/1 var(--f-disp); font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em; }
.dlg-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; padding: 14px 22px 18px; background: var(--card); box-shadow: 0 -1px 0 var(--rule); }
.form-err { margin: 0 auto 0 0; max-width: 60ch; padding: 9px 12px; font-size: 13.5px; background: var(--graphite); color: var(--card); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.form-main { padding: 8px 22px 22px; min-width: 0; }
.form-side { padding: 22px; background: var(--concrete); box-shadow: -1.5px 0 0 var(--graphite); display: flex; flex-direction: column; gap: 12px; }
.fs { border: 0; margin: 0; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); min-width: 0; }
.fs:last-child { border-bottom: 0; }
.fs legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font: 700 12.5px/1 var(--f-disp); font-stretch: 125%; letter-spacing: .06em; text-transform: uppercase; float: left; width: 100%; }
.fs legend + * { clear: both; }
.fs-no { display: inline-grid; place-items: center; width: 22px; height: 22px; font: 500 11px var(--f-mono); box-shadow: 0 0 0 1.2px var(--graphite); }
.fld { display: grid; gap: 6px; margin-top: 12px; }
.fld > span { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fld small { text-transform: none; letter-spacing: 0; color: var(--faint); margin-left: 6px; }
input, textarea, select {
  width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-bottom: 1.5px solid var(--graphite); border-radius: 0; background: var(--card-2);
  font: 400 15px/1.35 var(--f-body); color: var(--graphite); letter-spacing: .01em;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: 0; border-bottom: 2px solid var(--ink); background: #f7f7f4; }
input[aria-invalid="true"] { border-bottom-color: var(--graphite); background: repeating-linear-gradient(135deg, var(--card-2) 0 6px, #dcded7 6px 7px); }
textarea { resize: vertical; min-height: 64px; }
.coin-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
.coin-fields .fld:first-child { margin-top: 0; }
.pic { position: relative; display: grid; place-items: center; width: 112px; height: 112px; background: repeating-linear-gradient(135deg, var(--card-2) 0 7px, var(--rule-2) 7px 8px); box-shadow: var(--frame); text-align: center; font: 600 13px/1.3 var(--f-body); overflow: hidden; }
.pic small { font: 400 10px/1.3 var(--f-mono); color: var(--muted); }
.pic input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 12px; }
.pick-k { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.picks { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px; }
.picks .key[aria-checked="true"] { --face: var(--ink); --hi: var(--ink-hi); --lo: var(--ink-lo); --fg: #fff; }
.seat-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.seat-item { display: grid; grid-template-columns: 30px minmax(0, 1.25fr) minmax(0, 1.4fr) 84px; gap: 10px; align-items: center; padding: 10px; background: var(--card-3); box-shadow: inset 0 0 0 1px var(--rule); }
.seat-item .si-no { font: 500 11px var(--f-mono); color: var(--muted); text-align: center; }
.seat-item select, .seat-item input { min-height: 38px; padding: 7px 9px; font-size: 13.5px; }
.seat-item .si-w { display: flex; align-items: center; gap: 4px; font: 500 12.5px var(--f-mono); justify-content: flex-end; }
.seat-item .si-w button { width: 26px; height: 26px; padding: 0 0 2px; min-height: 0; font-size: 14px; }
.seat-item .si-label { grid-column: 2 / 3; }
.seat-item.is-lead { box-shadow: inset 3px 0 0 var(--ink), inset 0 0 0 1px var(--rule); }
.hint { margin: 10px 0 0; font: 400 12.5px/1.45 var(--f-mono); color: var(--muted); }
.fp-k { margin: 6px 0 0; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fp-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font: 500 11.5px/1.3 var(--f-mono); }
.fp-legend li { display: flex; justify-content: space-between; gap: 8px; }
.terms { margin: 0; display: grid; gap: 0; font-size: 12.5px; }
.terms div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.terms dt { color: var(--muted); }
.terms dd { margin: 0; font: 500 12px var(--f-mono); text-align: right; }
.fp-note { margin: auto 0 0; font-size: 12.5px; color: var(--muted); }
.ask-body { padding: 18px 22px 8px; }
.ask-body p { margin: 0 0 12px; color: var(--graphite-2); }
.ask-body .picks { margin: 6px 0 14px; }

/* toasts (kit) */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast { padding: 12px 14px 12px 16px; background: var(--card); box-shadow: 0 0 0 1.5px var(--graphite), 0 4px 0 0 var(--graphite); font-size: 14px; line-height: 1.4; animation: toast-in .24s var(--ease); border-left: 5px solid var(--ink); }
.toast.err { background: var(--graphite); color: var(--card); border-left-color: var(--card); }
.toast.ok { border-left-color: var(--ink); }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
body.busy { cursor: progress; }

/* wallet picker (kit) */
.wpick { max-width: 420px; padding: 22px; }
.wpick h2 { margin: 0 0 14px; font: 800 18px var(--f-disp); font-stretch: 125%; text-transform: uppercase; }
.dlg-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; background: var(--card-2); font-size: 20px; line-height: 1; box-shadow: var(--frame); }
.wp-list { display: grid; gap: 10px; }
.wp-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 0; background: var(--card-3); box-shadow: var(--frame); text-align: left; font-weight: 600; }
.wp-item:hover { background: #fff; }
.wp-item img { width: 26px; height: 26px; }
.wp-dot { width: 12px; height: 12px; background: var(--ink); }
.wp-get { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: 13px; }
.wp-cur { font-size: 13.5px; }
.wp-off { margin-top: 14px; }
.wp-err { color: var(--graphite); font-size: 13px; background: var(--card-2); padding: 8px; }
.wp-none { color: var(--muted); }

/* entrances */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .stage-frame { animation: rise .8s .1s var(--ease) both; }
  .bubble.is-new { animation: pop .42s var(--ease) both; }
}
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
@keyframes pop { from { transform: translate(-50%, calc(-100% + 8px)); opacity: 0; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .hero { grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); }
  .crow { grid-template-columns: 52px minmax(0, 2fr) 104px minmax(0, 1.2fr) minmax(0, 1fr) 26px; }
  .crow .c-col-5 { display: none; }
}
@media (max-width: 1080px) {
  .file-grid, .mine-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-side { box-shadow: 0 -1.5px 0 var(--graphite); }
}
@media (max-width: 900px) {
  :root { --side: 0px; }
  .side { position: sticky; top: 0; inset: auto; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 14px; box-shadow: 0 1.5px 0 var(--graphite); overflow: visible; }
  .brand { border: 0; padding: 0; margin-right: auto; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 14px; }
  .nav { order: 3; flex-direction: row; width: calc(100% + 28px); margin: 0 -14px; padding: 6px 14px 2px; overflow-x: auto; gap: 4px; scrollbar-width: none; border-top: 1px solid var(--rule); }
  .nav a, .nav button { min-height: 40px; white-space: nowrap; font-size: 14px; padding: 0 10px; }
  .nav .ic { display: none; }
  .side-low { order: 2; margin: 0; flex-direction: row; align-items: center; gap: 10px; }
  .side-low .token, .side-low .side-row .net { display: none; }
  .side-low .key-wide { width: auto; min-height: 40px; padding: 0 12px 4px; font-size: 13px; }
  .tape { position: relative; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 22px; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; margin-bottom: -6px; }
  .hero .name { order: 2; }
  .hero .lede { order: 3; margin-top: -4px; }
  .stage { order: 4; }
  .cta { order: 5; margin-top: 4px; }
  .facts { order: 6; padding-top: 0; }
  .stage-frame { min-height: 0; aspect-ratio: 1 / 1.02; }
  .name::after { margin-top: 16px; height: 5px; }
  .tblock { grid-template-columns: 52px minmax(0, 1fr); }
  .tblock > .tb-meta, .tblock > .tabs { grid-column: 1 / -1; box-shadow: 0 -1.5px 0 var(--graphite); min-height: 44px; }
  .tabs button { min-height: 44px; flex: 1; }
  .crow { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "p n g" "p s g" "p m g"; gap: 4px 12px; padding: 12px 14px; }
  .crow img { grid-area: p; width: 48px; height: 48px; align-self: start; }
  .crow .c-name { grid-area: n; }
  .crow .c-state { grid-area: s; }
  .crow .c-seats { grid-area: m; }
  .crow .c-col-4, .crow .c-col-5 { display: none; }
  .crow .c-go { grid-area: g; }
  .memo-steps { grid-template-columns: minmax(0, 1fr); }
  .memo-steps li + li { box-shadow: 0 -1.5px 0 var(--graphite); }
  .memo-foot { margin-left: 0; width: 100%; }
  .invite { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .invite .inv-draw { height: 72px; }
  .crew-head { grid-template-columns: 72px minmax(0, 1fr); }
  .crew-pic { width: 72px; height: 72px; }
  .crew-acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .cap-rows .hide-sm { display: none; }
  .bubble { min-width: 0; max-width: 124px; padding: 6px 7px 7px; }
  .capbar span { font-size: 0; padding: 0; }
  .bubble .b-who { font-size: 11px; }
  .bubble .b-st { display: none; }
  .seat-item { grid-template-columns: 24px minmax(0, 1fr) 84px; }
  .seat-item .si-wallet { grid-column: 2 / -1; }
  .seat-item .si-label { grid-column: 2 / -1; }
  .pick-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dlg-foot .key { flex: 1; }
}
@media (max-width: 420px) {
  .cta .key { flex: 1; padding: 0 12px 4px; }
  .facts dd { font-size: 18px; }
  .stage-title i { display: none; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ docs, stats, log */
.doc { padding: clamp(20px, 3.2vw, 40px) var(--gut) 64px; }
.doc-head { max-width: 900px; margin-bottom: 28px; }
.doc-head .lede { max-width: 58ch; }
.doc-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.doc-toc { position: sticky; top: 56px; padding: 16px; background: var(--card); box-shadow: var(--sheet); }
.doc-toc ol { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: toc; }
.doc-toc li { counter-increment: toc; }
.doc-toc a { display: flex; gap: 10px; padding: 6px 0; font-size: 13.5px; text-decoration: none; color: var(--graphite-2); }
.doc-toc a::before { content: "D-" counter(toc, decimal-leading-zero); flex: none; min-width: 34px; white-space: nowrap; font: 500 10.5px/1.9 var(--f-mono); color: var(--faint); }
.doc-toc a:hover { color: var(--ink); }
.doc-body { display: grid; gap: 26px; min-width: 0; max-width: 980px; }
.doc-sec { scroll-margin-top: 56px; }
.doc-card { margin-top: 12px; padding: 20px 22px; background: var(--card); box-shadow: var(--sheet); }
.doc-card > p { margin: 0 0 12px; max-width: 72ch; }
.doc-card > p:last-child { margin-bottom: 0; }
.doc-flush { padding: 0; overflow-x: auto; }
.doc-pad { padding: 16px 20px 0; margin: 0; }
.doc-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; max-width: 72ch; }
.doc-list li::marker { color: var(--ink); }
.doc-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 0; counter-reset: st; }
.doc-steps li { counter-increment: st; display: grid; grid-template-columns: 34px 128px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
.doc-steps li::before { content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; font: 500 11px var(--f-mono); box-shadow: 0 0 0 1.2px var(--graphite); }
.doc-steps b { font: 500 13px/1.8 var(--f-mono); }
.doc-steps span { color: var(--graphite-2); }
.doc-example { margin-top: 16px; padding: 16px 18px; background: var(--concrete); box-shadow: var(--frame); }
.doc-example p { margin: 8px 0; max-width: 72ch; }
.doc-formula { padding: 12px 14px; background: var(--card-2); box-shadow: inset 3px 0 0 var(--ink); overflow-x: auto; white-space: nowrap; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc-table th { text-align: left; font: 500 10px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.doc-table td { padding: 10px 16px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table .num { text-align: right; font-family: var(--f-mono); font-size: 12.5px; }
.doc-table td.mono { font-size: 12px; white-space: nowrap; }
.doc-example .doc-table { background: var(--card); box-shadow: var(--frame); margin: 10px 0; }
.doc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.doc-faq details { border-bottom: 1px solid var(--rule-2); padding: 12px 0; }
.doc-faq details:last-child { border-bottom: 0; }
.doc-faq summary { font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.doc-faq summary::after { content: "+"; font: 500 16px var(--f-mono); color: var(--ink); }
.doc-faq details[open] summary::after { content: "\2212"; }
.doc-faq p { margin: 8px 0 0; color: var(--graphite-2); max-width: 70ch; }
.doc-end { margin-top: 8px; }
.killer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 28px; align-items: end; padding: 26px 28px; background: var(--card); box-shadow: var(--sheet); margin-bottom: 26px; }
.killer .k-v { grid-row: span 2; margin: 0; font: 500 clamp(72px, 9vw, 132px)/.8 var(--f-mono); letter-spacing: -.06em; color: var(--ink); }
.killer .k-k { margin: 0; font: 800 clamp(18px, 2vw, 28px)/1.1 var(--f-disp); font-stretch: 125%; text-transform: uppercase; max-width: 26ch; }
.killer .k-n { margin: 0; color: var(--muted); max-width: 64ch; font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.stat-note { margin: 16px 0 0; color: var(--muted); font-size: 11.5px; }
.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 900px; }
.log-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 18px 20px; background: var(--card); box-shadow: var(--sheet); }
.log-item time { font: 500 11.5px/1.6 var(--f-mono); color: var(--muted); }
.log-item b { font: 800 16px/1.25 var(--f-disp); font-stretch: 125%; text-transform: uppercase; }
.log-item ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--graphite-2); }
.log-list .skel { height: 96px; box-shadow: var(--frame); }
@media (max-width: 900px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; }
  .doc-toc ol { columns: 2; }
  .doc-steps li { grid-template-columns: 30px minmax(0, 1fr); }
  .doc-steps li span { grid-column: 2; }
  .doc-two, .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .killer { grid-template-columns: minmax(0, 1fr); }
  .killer .k-v { grid-row: auto; }
  .log-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ------------------------------------------------------------------ details adapted from 21st.dev (rebuilt by hand in this skin) */
/* keycap shortcut hints in the nav ("Kbd Key") */
.nav kbd { margin-left: auto; min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 5px 2px; font: 500 10.5px/1 var(--f-mono); color: var(--muted); background: var(--card); box-shadow: 0 0 0 1px var(--rule), inset 0 -2px 0 var(--rule-2); transition: transform .06s steps(2); }
.nav kbd.is-down { transform: translateY(1px); box-shadow: 0 0 0 1px var(--graphite), inset 0 1px 0 var(--rule-2); color: var(--ink); }
/* sliding underline for the roster tabs ("Underline Tabs") */
.tabs { position: relative; }
.tabs button[aria-selected="true"]::after { display: none; }
.tabs::after { content: ""; position: absolute; bottom: 0; left: 0; height: 3px; width: var(--tw, 0); transform: translateX(var(--tx, 0)); background: var(--ink); transition: transform var(--t-mid) var(--ease), width var(--t-mid) var(--ease); }
/* odometer digits ("Number Flow") */
.odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: -.12em; line-height: 1; }
.odo > span { display: flex; flex-direction: column; }
.odo i { font-style: normal; height: 1em; line-height: 1; }
/* open seats strip ("Empty Team") */
.open-strip { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 10px 12px; background: var(--concrete); box-shadow: inset 0 0 0 1px var(--rule); font-size: 13.5px; }
.open-strip b { font-weight: 600; }
.open-strip .key { margin-left: auto; }
/* work log as a revision block with a rail ("Activity Timeline") */
.feed li { position: relative; }
.feed li:not(.feed-day)::before { content: ""; position: absolute; left: 70px; top: 0; bottom: 0; width: 1px; background: var(--rule-2); }
.feed li:not(.feed-day)::after { content: ""; position: absolute; left: 67px; top: 16px; width: 7px; height: 7px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--graphite); }
.feed li.is-post::after { background: var(--ink); box-shadow: none; }
.feed li:not(.feed-day) > span { padding-left: 10px; }
.feed .feed-day { display: flex; align-items: center; gap: 10px; padding: 10px 16px 6px; border-bottom: 0; font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.feed .feed-day::after { content: ""; flex: 1; height: 1px; background: var(--rule-2); }
/* registration ticks on the maquette frame ("Blueprint Ink Reveal" drafting plate) */
.reg { position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--graphite); }
.reg::before { width: 14px; height: 1px; top: 7px; }
.reg::after { width: 1px; height: 14px; left: 7px; }
.reg-tl { top: 8px; left: 8px; } .reg-tr { top: 8px; right: 8px; display: none; } .reg-bl { bottom: 62px; left: 8px; } .reg-br { bottom: 62px; right: 8px; }
/* toast with a time rule ("Toast", stacked) */
.toast { position: relative; overflow: hidden; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .35; transform-origin: left; animation: toast-time 4.2s linear forwards; }
.toast.err::after { animation-duration: 7s; }
@keyframes toast-time { to { transform: scaleX(0); } }
/* tooltips carry the detail ("Tooltip") */
[data-tip] { position: relative; cursor: help; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; z-index: 30; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: 260px; padding: 8px 10px; font: 400 12px/1.4 var(--f-body); letter-spacing: 0; text-transform: none; white-space: normal; color: var(--card); background: var(--graphite); box-shadow: 0 3px 0 #000; }
@media (max-width: 900px) { .nav kbd, .reg { display: none; } }
/* until the first chain read lands, the sections under the crew file stay invisible so nothing visible jumps */
main.pre #crews, main.pre .memo, main.pre #mine { visibility: hidden; }

.crew-charter.is-loading { color: var(--faint); }

.kv-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kv-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1240px) { .kv-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kv-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* small links get a full tap target without moving the text */
.feed a.mono, .crew-sub a, .memo-foot a { display: inline-block; padding: 10px 4px; margin: -10px -4px; }
@media (max-width: 900px) { .bubble.is-safe { top: auto; bottom: 62px; right: 12px; min-width: 0; } .bubble.is-safe .b-st { display: block; } }

/* ------------------------------------------------------------------ how it works (voiced explainer) */
.video-dlg { max-width: min(1180px, calc(100vw - 24px)); }
.video-dlg .dlg-head h2 small { margin-left: 12px; font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--muted); text-transform: none; }
.video-frame { padding: 18px 22px 0; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--concrete); box-shadow: var(--frame); }
.video-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px 18px; font: 500 11px/1.4 var(--f-mono); color: var(--muted); letter-spacing: .02em; }
@media (max-width: 640px) { .video-frame { padding: 12px 12px 0; } .video-foot { padding: 12px; } .video-dlg .dlg-head h2 small { display: none; } }
