.skip { position: absolute; left: -999px; top: 0; background: var(--signal); color: var(--ink); padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wordmark a { text-decoration: none; }
.session { display: flex; align-items: baseline; gap: 1.25rem; font-size: var(--step--1); }
.session .who { color: var(--ink-soft); text-transform: capitalize; }
.session form { margin: 0; }

.tabs { border-bottom: 1px solid var(--rule); margin-bottom: 0.5rem; overflow-x: auto; }
.tabs ul { display: flex; gap: 0.25rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.tabs a {
  display: block; padding: 0.85rem 0 0.7rem; text-decoration: none; white-space: nowrap;
  font: 500 var(--step-0)/1 var(--display); color: var(--ink-soft);
  border-bottom: 4px solid transparent;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--signal); font-weight: 700; }

.hero.compact { padding: 2.25rem 0 0.75rem; }
.hero.compact h1 { font: 700 clamp(2rem, 1.5rem + 2vw, 3rem)/1.04 var(--display); max-width: 26ch; letter-spacing: -0.035em; }
.hero.compact p { font-size: var(--step-0); max-width: 64ch; }

.flash { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0 0; padding: 0.85rem 1.1rem;
  background: var(--night); color: #fff; border-radius: var(--radius); max-width: 62ch; box-shadow: var(--shadow);
  animation: flash-in .35s cubic-bezier(.2, .8, .2, 1) both; }
.flash::before { content: ""; flex: none; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--signal); }
.flash-ok::before { background: #6fd39a; }
.flash-error { background: #fde2df; color: #7a160c; }
.flash-error::before { background: #b42318; }
@keyframes flash-in { from { transform: translateY(-6px); opacity: 0; } }

.sheet { background: var(--sheet); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.75rem clamp(1.1rem, 3vw, 2.25rem); margin-top: 1.5rem; }
.sheet h2 { font: 700 var(--step-1)/1.2 var(--display); margin: 0 0 1rem; letter-spacing: -0.01em; }
.sheet .section-head { margin: 0 0 1rem; }
.sheet .section-head h2 { font-size: var(--step-1); margin: 0; }
.sheet h3 { font: 700 var(--step-0)/1.3 var(--display); margin: 0 0 0.5rem; }
.sheet.reveal { background: var(--signal-soft); box-shadow: var(--shadow), inset 0 0 0 2px var(--signal); }

.empty { color: var(--ink-soft); margin: 0.5rem 0; }
.hint { color: var(--ink-soft); font-size: var(--step--1); margin: 0.35rem 0 0; display: block; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
.badge { display: inline-block; font-size: 0.8125rem; font-weight: 700; background: var(--paper);
  padding: 0.15rem 0.6rem; border-radius: 999px; color: var(--ink-soft); white-space: nowrap; }
.status-open { color: var(--tier-high_risk); }
.status-reported { color: var(--tier-transparency_risk); }
.status-closed { color: var(--tier-minimal_risk); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; overflow-wrap: anywhere;
  background: var(--paper); padding: 0.05rem 0.35rem; border-radius: 6px; }

label { font-weight: 700; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--sheet);
  border: 2px solid var(--rule); border-radius: 10px; padding: 0.65rem 0.85rem; width: 100%;
  transition: border-color .15s;
}
input:hover, select:hover, textarea:hover { border-color: #a9b2c4; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 1px; border-color: var(--ink); }
input[type="file"] { padding: 0.55rem; background: #f7f8fb; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; flex: none; margin: 0; padding: 0; accent-color: var(--ink); }
.code-input { font: 700 var(--step-1)/1 var(--display); letter-spacing: 0.15em; max-width: 14rem; }

button {
  font: 700 var(--step-0)/1 var(--display); color: #fff; background: var(--brand);
  border: 2px solid var(--brand); border-radius: var(--radius); padding: 0.85rem 1.25rem; cursor: pointer; width: auto;
  transition: background .15s, border-color .15s, transform .1s;
}
button:hover { background: #16318a; border-color: #16318a; }
button:active { transform: translateY(1px); }
button.secondary { background: transparent; color: var(--ink); border-color: var(--rule); }
button.secondary:hover { background: #f7f8fb; border-color: var(--ink); }
button.danger { background: transparent; color: #b42318; border-color: #f0b8b1; }
button.danger:hover { background: #fde2df; border-color: #b42318; }
button[disabled] { opacity: 0.6; cursor: progress; }
.link-button { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline;
  font: inherit; font-weight: 400; cursor: pointer; }
.link-button:hover { background: none; color: var(--ink-soft); }
.danger-text { color: var(--tier-prohibited_practice); }

.stack { display: grid; gap: 0.5rem; align-content: start; }
.stack button { justify-self: start; margin-top: 0.5rem; }
.grid-form { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.grid-form > * { flex: 1 1 14rem; min-width: 0; }
.grid-form .field { display: grid; gap: 0.4rem; align-content: start; }
.grid-form > input[type="hidden"] { display: none; }
.grid-form .wide, .grid-form .actions { flex-basis: 100%; }
.grid-form .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.check { display: flex; gap: 0.5rem; align-items: center; font-weight: 400; }
fieldset.scopes { border: 2px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
fieldset.scopes legend { font-weight: 700; padding: 0 0.3rem; }
details { margin-top: 1.25rem; }
details > summary { cursor: pointer; font-weight: 700; width: fit-content; }
details[open] > summary { margin-bottom: 1rem; }
.split { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }

.filter { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.filter select, .filter input { width: auto; min-width: 12rem; }
form.filter + .register-scroll, form.filter + .empty, form.filter + div { margin-top: 1rem; }

.gate .page { max-width: 30rem; }
.gate-head { padding: 3rem 0 1.5rem; }
.gate-card { padding: 2rem clamp(1.25rem, 4vw, 2.25rem); background: var(--sheet); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.gate-card form button { width: 100%; margin-top: 0.75rem; }
.gate-card h1 { font: 700 var(--step-2)/1.15 var(--display); margin: 0 0 1rem; letter-spacing: -0.015em; }
.gate-card .aside { margin-top: 1.25rem; font-size: var(--step--1); }
.field-error { color: var(--tier-prohibited_practice); font-weight: 700; margin: 0 0 0.75rem; }
.sso { border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 1.5rem; }

.system-head { padding: 2rem 0 0.5rem; }
.crumb { margin: 0 0 0.5rem; font-size: var(--step--1); }
.system-head h1 { font: 700 var(--step-4)/1.02 var(--display); letter-spacing: -0.035em; margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }
.facts > div { background: var(--sheet); border-radius: var(--radius); padding: 0.7rem 1rem; box-shadow: 0 1px 0 #c9cfdc; }
.facts dt { color: var(--ink-soft); font-size: 0.8125rem; }
.facts dd { margin: 0.15rem 0 0; font-weight: 700; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.description { max-width: 68ch; margin: 1.25rem 0 0; font-size: var(--step-1); color: var(--ink-soft); }

.state { display: inline-block; font: 700 0.8125rem/1.2 var(--text); white-space: nowrap;
  padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--paper); color: var(--ink-soft); }
.state[data-state="approved"] { color: #1f6a3d; background: #dff2e6; }
.state[data-state="in_review"] { color: #174d8a; background: #e2ecf8; }
.state[data-state="stale"] { color: #a8380a; background: #fbe8dc; }

.proposal { background: var(--signal-soft); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.proposal-tier { display: flex; gap: 0.6rem; align-items: center; font: 700 var(--step-1)/1.3 var(--display); margin: 0 0 0.5rem; }
.decision { margin-top: 1.5rem; }

.plain { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin-top: 1.25rem; }
.plain caption { text-align: left; font: 700 var(--step-0)/1.3 var(--display); padding-bottom: 0.6rem; }
.plain th { text-align: left; color: var(--ink-soft); font-size: 0.8125rem; padding: 0.55rem 0.9rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
.plain td { padding: 0.75rem 0.9rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.plain tbody tr:last-child td { border-bottom: 0; }
.plain .row-action { text-align: right; }
.plain .row-action form { margin: 0; }
.plain tr.inactive td { color: var(--ink-soft); }
.audit .kv { display: block; }
.table-scroll { overflow-x: auto; }
.nowrap-table td { white-space: nowrap; }

.sheet .obligations { list-style: none; padding: 0; margin: 0; }
.sheet .obligations li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.sheet .obligations li:last-child { border-bottom: 0; }
.sheet .obligations .when { font-weight: 700; }
.sheet .obligations .in-force .when { color: var(--tier-high_risk); }
.downloads-table { margin-top: 1.5rem; }
.downloads-table th { font-weight: 400; color: var(--ink); border-bottom: 1px solid var(--line); padding-right: 1.5rem; }
.downloads-table td { width: 6rem; }

.ledger-verdict { font: 700 var(--step-0)/1.4 var(--display); padding-left: 1.75rem; position: relative; margin: 0; }
.ledger-verdict::before { position: absolute; left: 0; top: 0; font-size: 1.1em; }
.ledger-verdict.ok::before { content: "\2713"; color: #2f7a4b; }
.ledger-verdict.broken { color: var(--tier-prohibited_practice); }
.ledger-verdict.broken::before { content: "\2717"; }
.hash { font-size: var(--step--1); color: var(--ink-soft); margin: 0.5rem 0 0; }

.incidents { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.incident { background: var(--sheet); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.25rem 1.5rem; }
.sheet .incident { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.incident.overdue { box-shadow: var(--shadow), inset 0 0 0 2px #f0b8b1; }
.sheet .incident.overdue { box-shadow: none; }
.incident.overdue .incident-head h3::after { content: "Overdue"; margin-left: 0.6rem; font: 700 0.75rem/1 var(--text); color: #a01d12; background: #fde2df; padding: 0.2rem 0.55rem; border-radius: 999px; vertical-align: middle; }
.incident-head { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; }
.incident-head h3 { margin: 0; font: 700 var(--step-0)/1.3 var(--display); }
.incident-actions { margin-top: 0.75rem; }
.incident-actions[open] { display: grid; gap: 0.75rem; }
.incident-actions > summary { font-size: var(--step--1); }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; margin: 0; }
.inline-form input { width: auto; flex: 1 1 10rem; }
.inline-form label { font-size: var(--step--1); }

.queue { list-style: none; padding: 0; margin: 1.5rem 0 0; background: var(--sheet); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.queue li + li { border-top: 1px solid var(--line); }
.queue-link { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: 1.15rem 1.5rem; text-decoration: none; }
.queue-link:hover { background: #f7f8fb; }
.queue-link .name { font: 700 var(--step-0)/1.3 var(--display); text-decoration: underline; }

.ask { display: grid; gap: 0.5rem; margin-top: 1.5rem; max-width: 52rem; }
.ask .actions button { margin-top: 0.25rem; }
.answer { margin-top: 2rem; max-width: 52rem; }
.answer h2 { font: 700 var(--step-1)/1.2 var(--display); }
.answer-text { white-space: pre-wrap; font-size: var(--step-1); line-height: 1.6; min-height: 2em; }
.sources { padding-left: 1.25rem; font-size: var(--step--1); }
.sources li { margin-bottom: 0.75rem; }
.sources p { margin: 0.2rem 0 0; color: var(--ink-soft); }

.qr { display: block; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); image-rendering: pixelated; }
.codes { columns: 2; list-style: none; padding: 0; font-size: var(--step-0); }
.codes li { padding: 0.2rem 0; }
.secret { display: inline-block; background: var(--signal-soft); padding: 0.6rem 0.85rem; border-radius: 10px; }
.retire { margin: 2rem 0 0; }
.pager { margin-top: 1rem; }

@media (max-width: 47.99rem) {
  .queue-link { grid-template-columns: 1fr; gap: 0.3rem; }
  .sheet .obligations li { grid-template-columns: 1fr; gap: 0.2rem; }
  .session .who { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.findings { list-style: none; padding: 0; margin: 0; }
.finding { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.finding:last-child { border-bottom: 0; }
.finding .state { justify-self: start; }
.finding h3 { margin: 0; font: 700 var(--step-0)/1.35 var(--display); }
.finding-not_applicable h3 { color: var(--ink-soft); font-weight: 500; }
.actions-list { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.answers fieldset { border: 0; border-top: 1px solid var(--line); padding: 1rem 0 0.5rem; margin: 0; display: grid; gap: 0.5rem; max-width: 46rem; }
.answers legend { font: 700 var(--step-0)/1.3 var(--display); padding: 0; margin-bottom: 0.25rem; }
.answers fieldset:first-of-type { border-top: 0; padding-top: 0; }
.answers label:not(.check) { margin-top: 0.4rem; }
.check-hint { margin: -0.3rem 0 0 1.6rem; }
.inline-checks { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-left: 1.6rem; }
.answers .actions { margin-top: 1rem; }
.notices { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.notices blockquote { margin: 0.4rem 0; padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--signal-soft); font-size: var(--step-0); }
@media (max-width: 47.99rem) { .finding { grid-template-columns: 1fr; gap: 0.4rem; } }

a.button { display: inline-block; font: 700 var(--step-0)/1 var(--display); color: #fff; background: var(--brand);
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.85rem 1.25rem; text-decoration: none; }
a.button:hover { background: #16318a; border-color: #16318a; }
a.button:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.onboarding { margin: 0.5rem 0 2rem; padding: 1.75rem 2rem 1.5rem; background: var(--sheet);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.onboarding-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; }
.onboarding-head h2 { margin: 0; }
.onboarding-progress { margin: 0; display: flex; align-items: center; gap: 0.75rem; color: var(--ink-soft); }
.meter { display: inline-block; width: 8rem; height: 0.55rem; background: var(--line); border-radius: 4px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--signal); border-radius: 4px; }
.steps { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.step { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.9rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step h3 { margin: 0.15rem 0 0; font: 700 var(--step-0)/1.35 var(--display); }
.step p { margin: 0.3rem 0 0; max-width: 62ch; }
.step .button, .step > div > a { margin-top: 0.6rem; }
.step-marker { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 2px solid var(--ink-soft); font: 700 0.95rem/1 var(--display); color: var(--ink-soft); }
.step-current .step-marker { border-color: var(--ink); background: var(--signal); color: var(--ink); }
.step-done .step-marker { border-color: var(--brand); background: var(--brand); color: #fff; }
.step-done h3 { font-weight: 500; color: var(--ink-soft); }
.onboarding-hide { margin-top: 0.75rem; text-align: right; }
@media (prefers-reduced-motion: no-preference) { .meter > span { transition: width 300ms ease-out; } }

.demo-entry { padding: 1.5rem 1.75rem; margin-bottom: 1.5rem; background: var(--night); color: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.demo-entry button { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.demo-entry p { margin: 0 0 1rem; }
.demo-entry h1 { margin-bottom: 0.6rem; }
.gate-card .demo-or { font: 700 var(--step-1)/1.2 var(--display); margin: 0 0 0.75rem; }

.gate.gate-wide .page { max-width: 46rem; }
.supplier-form { padding: 2rem 0 3rem; }
.supplier-form h1 { font: 700 var(--step-2)/1.15 var(--display); margin: 0 0 1rem; letter-spacing: -0.015em; }
.supplier-form .lede { font-size: var(--step-0); max-width: 62ch; }
.supplier-form .question { display: grid; gap: 0.3rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.supplier-form .question .hint { margin: 0; }
.supplier-form button { justify-self: start; margin-top: 1rem; }
.answer-list { margin: 1rem 0 0; display: grid; gap: 0.25rem 0; }
.answer-list dt { font-weight: 700; margin-top: 0.9rem; }
.answer-list dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.answer-missing { color: var(--tier-high_risk); font-style: italic; }
.supplier-link { display: flex; gap: 0.5rem; align-items: stretch; }
.supplier-link input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; }
.catalog-picker { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.catalog-picker .field { flex: 1 1 18rem; display: grid; gap: 0.4rem; }
.sheet .reveal { padding: 1.1rem 1.25rem; margin: 0 0 1.25rem; border-radius: var(--radius); background: var(--signal-soft); box-shadow: inset 0 0 0 2px var(--signal); }
.sheet .reveal p { margin: 0 0 0.75rem; }
.supplier-edit, .answers-detail { margin-top: 1.25rem; }
.supplier-edit summary, .answers-detail summary { cursor: pointer; font-weight: 700; }
.supplier-edit form { margin-top: 1rem; }
.supplier-actions { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

.trust-head .wordmark { font-size: var(--step-1); }
.trust-body { padding: 2.25rem 0 3.5rem; }
.trust-body h1 { font: 700 clamp(2rem, 1.5rem + 2vw, 2.75rem)/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 1rem; max-width: 22ch; }
.trust-body h2 { font: 700 var(--step-1)/1.2 var(--display); margin: 2.5rem 0 0.75rem; }
.trust-body .lede { font-size: var(--step-1); line-height: 1.5; max-width: 60ch; color: var(--ink-soft); }
.practices { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; max-width: 62ch; }
.practices li::marker { color: var(--ink); }
.trust-systems { list-style: none; margin: 0; padding: 0.25rem 1.5rem; background: var(--sheet); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.trust-systems li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.trust-systems li:last-child { border-bottom: 0; }
.trust-systems h3 { margin: 0; font: 700 var(--step-0)/1.3 var(--display); }
.trust-systems p { margin: 0.4rem 0 0; max-width: 62ch; }
.trust-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; color: var(--ink-soft); font-size: var(--step--1); }
.trust-check { font-size: var(--step--1); }
.trust-check::before { content: "✓ "; font-weight: 700; color: var(--ink); }
.trust-foot { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--ink-soft); }
.prefixed { display: flex; align-items: stretch; border: 2px solid var(--rule); border-radius: 10px; background: var(--sheet); overflow: hidden; }
.prefixed span { padding: 0.6rem 0 0.6rem 0.75rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.prefixed input { border: 0; padding-left: 0.1rem; }
.prefixed:focus-within { outline: 3px solid var(--signal); border-color: var(--ink); }
.prefixed input:focus-visible { outline: 0; }
.publish-row { display: grid; gap: 0.35rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.publish-row:first-of-type { border-top: 0; }
.drafts { margin-top: 2rem; }
.drafts h3 { font: 700 var(--step-1)/1.2 var(--display); margin: 0 0 0.4rem; }
.draft-list { margin: 1rem 0; padding-left: 1.4rem; display: grid; gap: 0; }
.draft-list li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.draft-q { margin: 0; font-weight: 700; }
.draft-a { margin: 0.35rem 0; max-width: 70ch; white-space: pre-line; }
.needs-input .draft-a { background: var(--signal-soft); border-radius: 10px; padding: 0.6rem 0.85rem; }
.download-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.sheet .answers { margin-top: 1.25rem; }

.learn-list { list-style: none; margin: 1.5rem 0 0; padding: 0.25rem 1.5rem; background: var(--sheet); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.learn-list li { display: flex; justify-content: space-between; gap: 1rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.learn-list li:last-child { border-bottom: 0; }
.learn-list h2 { margin: 0; font: 700 var(--step-0)/1.3 var(--display); }
.learn-list p { margin: 0.3rem 0 0; }
.learn-state { font-weight: 700; white-space: nowrap; }
.learn-due, .learn-expired { color: var(--tier-high_risk); }
.learn-module h2 { font: 700 var(--step-1)/1.25 var(--display); margin: 1.75rem 0 0.4rem; }
.learn-module p { max-width: 64ch; }
.learn-module .attest { margin-top: 2rem; padding: 1.5rem; background: var(--signal-soft); border-radius: var(--radius-lg); }
.literacy-bar { display: grid; grid-template-columns: minmax(0, 1fr) 8rem 4rem; gap: 1rem; align-items: center; padding: 0.7rem 0; border-top: 1px solid var(--line); }

.big-number { font: 700 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--display); letter-spacing: -0.02em; margin: 0; }
.module-edit summary { cursor: pointer; font-weight: 700; }
.module-edit form { margin-top: 1rem; }
.inline-actions { display: flex; gap: 1rem; flex-wrap: wrap; } .inline-actions form { margin: 0; } .people-import { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.cov-bar { display: block; height: 0.55rem; background: var(--line); border-radius: 4px; overflow: hidden; } .cov-bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }

.mon-alerts { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.5rem; }
.mon-alerts li { padding: 0.8rem 1rem; border-radius: var(--radius); background: #fbe8dc; color: #6e2508; }
.mon-alerts .hint { display: block; margin-top: 0.2rem; }
.mon-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1rem 0; }
.mon-stats dt { font-size: var(--step--1); color: var(--ink-soft); }
.mon-stats dd { margin: 0.2rem 0 0; font: 700 var(--step-1)/1.2 var(--display); }
.mon-weeks { margin: 1.25rem 0 0; }
.mon-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.35rem; height: 8rem; align-items: end; margin-top: 0.5rem; }
.mon-week { display: grid; grid-template-rows: 1fr auto; height: 100%; }
.mon-bar { align-self: end; display: flex; flex-direction: column; justify-content: flex-end; background: #b9c4da; min-height: 2px; }
.mon-bar i { display: block; background: var(--brand); }
.mon-label { font-size: 0.7rem; color: var(--ink-soft); min-height: 1rem; padding-top: 0.25rem; white-space: nowrap; }
.mon-groups-title { margin: 1.25rem 0 0.25rem; }
.mon-groups { margin-top: 0; border-collapse: collapse; min-width: 20rem; }
.mon-groups th, .mon-groups td { text-align: left; padding: 0.5rem 1.5rem 0.5rem 0; border-bottom: 1px solid var(--line); }
.hint-list { margin: 0.5rem 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.35rem; max-width: 70ch; } .radios { border: 0; padding: 0; margin: 0.5rem 0; display: grid; gap: 0.35rem; } .radios legend { font-weight: 700; padding: 0; margin-bottom: 0.25rem; }
.watch-changes .when { font-weight: 700; white-space: nowrap; }
.actions-list.removed li { color: var(--ink-soft); text-decoration: line-through; }

.subtabs { margin: -0.25rem 0 0.25rem; overflow-x: auto; }
.subtabs ul { display: flex; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0.5rem 0; }
.subtabs a { display: block; padding: 0.35rem 0.75rem; border-radius: 999px; text-decoration: none; white-space: nowrap; font-size: var(--step--1); color: var(--ink-soft); }
.subtabs a:hover { color: var(--ink); background: var(--sheet); }
.subtabs a[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 700; }


.home { display: flex; flex-wrap: wrap; gap: 2.5rem 3.5rem; align-items: flex-start; padding-top: 1.75rem; }
.deck-area { flex: 999 1 36rem; min-width: 0; }
.progress-rail { flex: 1 1 22rem; min-width: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.deck-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.5rem 1rem; }
.deck-head h1 { margin: 0; font: 700 clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem)/1 var(--display); letter-spacing: -0.035em; }
.deck-head p { margin: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.deck { position: relative; margin-top: 1.75rem; padding-bottom: 1.75rem; }
.deck.has-one::before, .deck.has-two::after { content: ""; position: absolute; border-radius: 20px; }
.deck.has-one::before { left: 1rem; right: 1rem; top: 0.9rem; bottom: 0.9rem; background: #d8dde7; }
.deck.has-two::after { left: 2rem; right: 2rem; top: 1.75rem; bottom: 0; background: #c9cfdc; z-index: -1; }
.deck.has-two { z-index: 0; }
.card { position: relative; z-index: 1; background: #fff; border-radius: 20px; padding: 2.25rem 2.5rem 2rem;
  box-shadow: 0 1px 0 #c9cfdc, 0 18px 40px -24px rgba(20, 33, 61, .45); animation: deal .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes deal { from { transform: translateY(14px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.tag { font-weight: 700; font-size: var(--step--1); padding: 0.2rem 0.65rem; border-radius: 999px; background: #e6e9f0; }
.tag-late { background: #fde2df; color: #a01d12; }
.tag-text-late { color: #a01d12; }
.card-system { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); color: var(--ink-soft); }
.card h2 { margin: 1.1rem 0 0; font: 700 clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem)/1.12 var(--display); letter-spacing: -0.02em; max-width: 24ch; }
.card-why { margin: 0.9rem 0 0; font-size: 1.0625rem; color: #2c3857; max-width: 58ch; }
.payoff { display: flex; align-items: center; gap: 0.8rem; margin: 1.4rem 0 0; padding: 0.85rem 1rem; background: #fff6d6; border-radius: 12px; font-size: var(--step--1); }
.payoff strong { font: 700 1.375rem/1 var(--display); min-width: 3rem; font-variant-numeric: tabular-nums; }
.card-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.65rem 0.75rem; margin-top: 1.6rem; }
.card-actions form { margin: 0; }
.card-actions .button, .card-actions .ghost, .card-actions button {
  display: inline-flex; align-items: center; gap: 0.7rem; min-height: 3.25rem; padding: 0 1.25rem; border-radius: 12px; font-weight: 700; font-size: var(--step-0); cursor: pointer; }
.card-actions .primary { background: var(--brand); color: #fff; text-decoration: none; border: 0; }
.card-actions .primary kbd { background: #3a5bc4; color: #fff; }
.card-actions .ghost { background: transparent; color: var(--ink); border: 2px solid #c9cfdc; list-style: none; }
.card-actions .ghost::-webkit-details-marker { display: none; }
.card-actions kbd { font: inherit; font-size: 0.75rem; padding: 0 0.4rem; border-radius: 4px; color: var(--ink-soft); }
.hand-over[open] summary { border-color: var(--ink); }
.hand-over form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.hand-over select { min-height: 2.75rem; }
.hand-over button { background: var(--brand); color: #fff; border: 0; min-height: 2.75rem; }

.minor { font: 700 var(--step-0)/1.2 var(--display); margin: 1.25rem 0 0.5rem; }
.up-next { list-style: none; margin: 0; padding: 0; }
.up-next li { display: flex; align-items: baseline; gap: 1rem; padding: 0.75rem 0.25rem; border-bottom: 1px solid #cfd5e1; }
.up-next .when { flex: none; width: 8.5rem; font-size: var(--step--1); font-weight: 700; }
.up-next a { flex: 1; min-width: 0; text-decoration: none; }
.up-next a:hover { text-decoration: underline; }
.up-next .gain { flex: none; font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.cleared { margin-top: 1.75rem; background: var(--night); color: #fff; border-radius: 20px; padding: 3rem 2.5rem; animation: deal .45s cubic-bezier(.2, .8, .2, 1) both; }
.cleared .kicker { margin: 0; color: var(--signal); font-weight: 700; }
.cleared h2 { margin: 0.5rem 0 0; font: 700 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1.08 var(--display); letter-spacing: -0.02em; max-width: 22ch; }
.cleared p { color: #c9d1e6; max-width: 52ch; }
.button.signal { background: var(--signal); color: var(--ink); border: 0; }

.panel { background: #fff; border-radius: 20px; padding: 1.6rem 1.75rem; }
.panel h2 { margin: 0; font: 700 var(--step-1)/1.2 var(--display); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.panel-head span { font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.goal { display: flex; align-items: center; gap: 1.5rem; }
.goal p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: var(--step--1); }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 1.75rem/1 var(--display); font-variant-numeric: tabular-nums; }
.ring-fill { animation: ring 0.9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ring { from { stroke-dasharray: 0 289; } }
.road { background: var(--night); color: #fff; }
.road .panel-head span, .road .road-what, .road .road-note { color: #c9d1e6; }
.road-what { margin: 0.35rem 0 0; font-size: var(--step--1); }
.road ol { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.road li > div:first-child { display: flex; justify-content: space-between; gap: 0.75rem; font-size: var(--step--1); font-weight: 700; font-variant-numeric: tabular-nums; }
.road li.locked > div:first-child { color: #8fa0c9; font-weight: 400; }
.road .bar { margin-top: 0.4rem; height: 10px; background: #2b3a63; border-radius: 5px; overflow: hidden; }
.road .bar div { height: 100%; background: #8fa0c9; border-radius: 5px; animation: grow 0.9s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.road li.done .bar div { background: var(--signal); }
@keyframes grow { from { transform: scaleX(0); } }
.road-note { margin: 1.1rem 0 0; font-size: var(--step--1); }
.bars { display: flex; align-items: flex-end; gap: 0.6rem; height: 8.5rem; margin-top: 1.1rem; }
.bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.3rem; height: 100%; }
.bars span { font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bars i { display: block; width: 100%; min-height: 2px; background: #c9cfdc; border-radius: 6px 6px 2px 2px; }
.bars .now i { background: var(--signal); }
.bars .now span { color: var(--ink); }
.bars small { font-size: 0.75rem; color: var(--ink-soft); }
.team { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; font-size: var(--step--1); }
.team li { display: inline-flex; align-items: center; gap: 0.5rem; }
.avatar { width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--night); color: var(--signal); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .card, .cleared, .ring-fill, .road .bar div { animation: none; } }
@media (max-width: 40rem) { .card { padding: 1.5rem 1.25rem; } .up-next .when { width: 6rem; } }
.card-actions > form, .card-actions > details, .card-actions button, .card-actions summary { margin: 0; }
.card-actions > details { position: relative; }
.card-actions summary { box-sizing: border-box; }
.card-actions .button, .card-actions .ghost, .card-actions button { margin: 0; height: 3.25rem; min-height: 0; line-height: 1; box-sizing: border-box; }
.hand-over form { position: absolute; z-index: 5; top: calc(100% + 0.5rem); left: 0; width: max-content; margin: 0;
  background: #fff; padding: 0.9rem; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(20, 33, 61, .5); }

.jump { position: sticky; top: 0; z-index: 20; margin: 1.5rem calc(var(--gutter) * -1) 0; padding: 0.6rem var(--gutter);
  background: rgba(238, 241, 247, .94); backdrop-filter: blur(8px); overflow-x: auto; }
.jump ul { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.jump a { display: block; white-space: nowrap; padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--sheet);
  font-size: var(--step--1); font-weight: 700; text-decoration: none; box-shadow: 0 1px 0 #c9cfdc; }
.jump a:hover { background: var(--brand); color: #fff; }
html { scroll-padding-top: 4.5rem; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.gate.gate-login .page { max-width: 64rem; }
.login-split { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: stretch; }
.login-split > .gate-card { flex: 1 1 22rem; }
.countdown { flex: 1 1 22rem; background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: 2.25rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.countdown p { margin: 0; }
.countdown-kicker { color: var(--signal); font-weight: 700; }
.countdown-days { margin-top: 1rem !important; font: 700 1.5rem/1 var(--display); }
.countdown-days span { display: block; font-size: clamp(5rem, 4rem + 5vw, 8rem); letter-spacing: -0.05em; line-height: 0.9; }
.countdown-date { margin-top: 0.4rem !important; color: #c9d1e6; font-size: var(--step-1); }
.countdown-what { margin-top: 1.75rem !important; font-size: var(--step-0); max-width: 36ch; }
.countdown-foot { margin-top: auto !important; padding-top: 2rem; color: #c9d1e6; font-size: var(--step--1); }
[hidden] { display: none !important; }
.register-scroll > table.plain th:first-child, .register-scroll > table.plain td:first-child { padding-left: 1.5rem; }
.register-scroll > table.plain th:last-child, .register-scroll > table.plain td:last-child { padding-right: 1.5rem; }
table.audit code { white-space: nowrap; }
table.audit .hint { display: block; margin-top: 0.25rem; }
.flash { align-items: flex-start; }
.flash::before { margin-top: 0.45rem; }
@media (max-width: 30rem) {
  .tabs ul { gap: 0.25rem 1.1rem; }
  .tabs a { font-size: var(--step--1); }
  .countdown, .gate-card { padding: 1.5rem; }
}
.sheet .facts > div { background: var(--paper); box-shadow: none; min-width: 7.5rem; }
.framework-counts dd { font: 700 1.75rem/1.1 var(--display); }
.framework-counts + .hint { margin-top: 1rem; }
h2 .version { color: var(--ink-soft); font-weight: 400; }

.shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.shell > .page { max-width: 74rem; width: 100%; margin: 0; padding-top: 1.5rem; }
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--night); color: #c5cff0; padding: 1.75rem 1rem 1.25rem; }
.rail-mark { margin: 0 0 2rem 0.75rem; font: 700 1.375rem/1 var(--display); letter-spacing: -0.01em; }
.rail-mark a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; }
.rail-mark a::before { content: ""; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 204, 0, .18); }
.rail-nav ul { list-style: none; margin: 0; padding: 0; }
.rail-nav > ul > li + li { margin-top: 0.2rem; }
.rail-nav a { display: block; padding: 0.55rem 0.75rem; border-radius: 10px; color: #c5cff0; text-decoration: none; font: 500 var(--step-0)/1.2 var(--display); }
.rail-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.rail-nav > ul > li > a[aria-current] { color: #fff; font-weight: 700; }
.rail-nav > ul > li > a[aria-current="page"] { background: rgba(255, 255, 255, .1); box-shadow: inset 3px 0 0 var(--signal); }
.rail-nav li ul { margin: 0.15rem 0 0.6rem 0.75rem; padding-left: 0.6rem; border-left: 1px solid rgba(255, 255, 255, .14); display: none; }
.rail-nav li.open ul { display: block; }
.rail-nav li ul a { font: 400 var(--step--1)/1.2 var(--text); padding: 0.45rem 0.65rem; }
.rail-nav li ul a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--signal); }
.rail-session { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 0.75rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--step--1); }
.rail-session .who { color: #fff; font-weight: 700; }
.rail-session .link-button { color: #c5cff0; }
.shell .subtabs { display: none; }
.board { --ink: #ffffff; --ink-soft: #aebadf; --paper: var(--night); background: var(--night); color: #fff; border-radius: var(--radius-lg);
  padding: 2.25rem 2.25rem 0.75rem; margin-top: 1rem; box-shadow: var(--shadow); }
.board .hero { padding: 0 0 0.5rem; }
.board .hero p { color: #aebadf; }
.board .ruler-scroll { margin: 0; padding: 0; }
.board .today span { color: var(--night); }
.board .milestone.past, .board .milestone.past time { color: #7f8cb6; }
@media (max-width: 62rem) {
  .shell { display: block; }
  .rail { z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 0.75rem; padding: 0.7rem var(--gutter); }
  .rail-top { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1; }
  .rail-mark { margin: 0; font-size: 1.15rem; }
  .rail-nav { overflow-x: auto; min-width: 0; }
  .rail-nav > ul { display: flex; gap: 0.15rem; }
  .rail-nav > ul > li + li { margin: 0; }
  .rail-nav a { white-space: nowrap; padding: 0.45rem 0.6rem; font-size: var(--step--1); }
  .rail-nav li.open ul, .rail-nav li ul { display: none; }
  .rail-nav > ul > li > a[aria-current] { background: rgba(255, 255, 255, .12); box-shadow: none; }
  .rail-session { border: 0; padding: 0; }
  .rail-session .who { display: none; }
  .shell .subtabs { display: block; margin-top: 0.25rem; }
  .board { padding: 1.5rem 1.25rem 0.5rem; }
}
.shell { background: linear-gradient(90deg, var(--night) 15rem, var(--paper) 15rem); }
@media (max-width: 62rem) { .shell { background: var(--paper); } .rail { position: sticky; top: 0; } }

select { -webkit-appearance: none; appearance: none; min-height: 3rem; padding-right: 2.75rem; cursor: pointer;
  background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%231d3fa6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { min-height: 3rem; }
.catalog-picker { align-items: end; }
.catalog-picker button { min-height: 3rem; }
.register .name { min-width: 11rem; }
.register .name a, .queue-link .name { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.register .name a:hover { text-decoration-thickness: 2px; }
.tool-groups { display: grid; gap: 1.75rem; margin-top: 1.25rem; }
.tool-groups h3 { margin: 0 0 0.75rem; font: 700 var(--step-0)/1.2 var(--display); color: var(--ink-soft); }
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.tool-grid a { display: flex; align-items: center; gap: 0.85rem; height: 100%; padding: 0.9rem 1rem; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); text-decoration: none; transition: background .15s, box-shadow .15s; }
.tool-grid a:hover { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.tool-mark { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--night); color: var(--signal);
  display: inline-flex; align-items: center; justify-content: center; font: 700 1.05rem/1 var(--display); }
.tool-grid strong { display: block; font: 700 var(--step-0)/1.25 var(--display); }
.tool-grid span.vendor { display: block; font-size: var(--step--1); color: var(--ink-soft); }
.tool-grid .add { margin-left: auto; color: var(--brand); font-weight: 700; font-size: var(--step--1); white-space: nowrap; }
.ask-sheet { max-width: 52rem; }
.ask-sheet textarea { min-height: 7rem; }
.examples { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.examples button { background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; padding: 0.55rem 0.95rem; font: 500 var(--step--1)/1.3 var(--text); text-align: left; }
.examples button:hover { background: var(--brand-soft); color: var(--brand); border: 0; }
.examples-label { margin: 1.5rem 0 0; font-weight: 700; font-size: var(--step--1); color: var(--ink-soft); }
.answer { max-width: 52rem; }
.catalog-picker { margin-bottom: 1.5rem; }
.rail-session .link-button { white-space: nowrap; }
