/* Identity Sandbox: the one stylesheet. Colours are tokens only; the frame follows the theme, the ink plate does not. */

@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-wght.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --plate: #070B18;
  --plate-ink: #ffffff;
  --plate-muted: #B4C0DA;
  --plate-accent: #5ECDFF;
  --plate-line: rgba(255, 255, 255, 0.14);
  --plate-glass: rgba(255, 255, 255, 0.08);
  --plate-ok: #4ADE80;
  --plate-held: #F0ABFC;
  --plate-bad: #FDA4AF;

  --seal-ink: #0B1124;
  --p-teal: #14B8A6;
  --p-gold: #EAB308;
  --p-violet: #A78BFA;
  --p-slate: #94A3B8;
  --p-sky: #38BDF8;
  --p-rose: #FB7185;
  --p-lime: #A3E635;
  --p-cyan: #22D3EE;
  --p-pink: #F9A8D4;
  --p-none: #CBD2E1;
  --p-blue: var(--p-sky);
  --p-coral: var(--p-rose);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --gutter: 24px;
  --header-h: 64px;
  --page-w: 1120px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s6: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  --t-fast: 140ms;
  --t-med: 260ms;

  --z-header: 100;
  --z-dropdown: 110;
  --z-tip: 200;
  --z-modal: 300;
  --z-palette: 350;
  --z-tour: 380;
  --z-overlay: 400;
  --z-toast: 500;
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-2: #EEF0F8;
  --surface-3: #E3E6F2;
  --border: #DCE0EE;
  --border-strong: #7C879F;
  --text: #0B1124;
  --text-muted: #475569;
  --heading: #0B1124;
  --accent: #4F46E5;
  --accent-ink: #FFFFFF;
  --accent-hover: #4338CA;
  --link: #4338CA;
  --focus: #4F46E5;
  --signal: #4F46E5;
  --ok: #15803D;
  --held: #A21CAF;
  --warn: var(--held);
  --bad: #B91C1C;
  --info: #4338CA;
  --danger-bg: #B91C1C;
  --danger-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(11, 17, 36, 0.05);
  --shadow-hover: 0 1px 2px rgba(11, 17, 36, 0.05), 0 10px 28px -14px rgba(30, 41, 99, 0.28);
  --shadow-lg: 0 24px 60px rgba(11, 17, 36, 0.18);
  --scrim: rgba(11, 17, 36, 0.45);
  --wash: 11%;

  --house: #EEF1FE;
  --house-top: #FBFCFF;
  --house-deep: #E4E8FB;
  --house-ink: #0B1124;
  --house-muted: #475569;
  --house-accent: #4338CA;
  --house-line: rgba(11, 17, 36, 0.12);
  --house-glass: rgba(255, 255, 255, 0.7);
  --house-glass-strong: #FFFFFF;
  --hero-edge: rgba(11, 17, 36, 0.16);
  --header: rgba(255, 255, 255, 0.82);
  --brand-navy: var(--house);
  --brand-blue: var(--signal);
  --ink-on-navy: var(--accent-ink);
  --ink-on-blue: var(--accent-ink);
  --aura-1: rgba(79, 70, 229, 0.16);
  --aura-2: rgba(94, 205, 255, 0.3);
  --aura-3: rgba(168, 85, 247, 0.12);
  --slip-shadow: 0 1px 2px rgba(11, 17, 36, 0.05), 0 10px 28px -14px rgba(30, 41, 99, 0.28);
  --seal-rim: rgba(11, 17, 36, 0.26);
  --machine: #0B1124;
  --machine-ink: #5ECDFF;
  --machine-rim: #0B1124;

  --g-workforce: #4338CA;
  --g-partners: #0E7490;
  --g-governance: #6D28D9;
  --g-security: #334155;
  --g-architecture: #0369A1;
  --g-developer: #475569;
  --g-tabs: #475569;
  --tile-wash: 11%;

  --lane-app: #0B1124;
  --lane-okta: #4338CA;
  --lane-entra: #0F766E;
  --lane-partner: #A21CAF;
  --lane-hr: #15803D;
  --lane-siem: #B91C1C;
  --lane-apps: #6D28D9;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070B18;
  --surface: #0F1629;
  --surface-raised: #151E36;
  --surface-2: #151E36;
  --surface-3: #1D2745;
  --border: #222C49;
  --border-strong: #63708F;
  --text: #E8ECF8;
  --text-muted: #A3AEC8;
  --heading: #FFFFFF;
  --accent: #5ECDFF;
  --accent-ink: #04121C;
  --accent-hover: #8FDDFF;
  --link: #A5B4FC;
  --focus: #5ECDFF;
  --signal: #5ECDFF;
  --ok: #4ADE80;
  --held: #F0ABFC;
  --warn: var(--held);
  --bad: #FDA4AF;
  --info: #A5B4FC;
  --danger-bg: #DC2626;
  --danger-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 16px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --scrim: rgba(0, 0, 0, 0.62);
  --wash: 18%;

  --house: #0B1124;
  --house-top: #0B1124;
  --house-deep: #070B18;
  --house-ink: #FFFFFF;
  --house-muted: #B4C0DA;
  --house-accent: #5ECDFF;
  --house-line: rgba(255, 255, 255, 0.14);
  --house-glass: rgba(255, 255, 255, 0.06);
  --house-glass-strong: rgba(255, 255, 255, 0.12);
  --hero-edge: rgba(255, 255, 255, 0.22);
  --header: rgba(11, 17, 36, 0.9);
  --aura-1: rgba(79, 70, 229, 0.42);
  --aura-2: rgba(94, 205, 255, 0.13);
  --aura-3: rgba(168, 85, 247, 0.2);
  --slip-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  --seal-rim: rgba(255, 255, 255, 0);
  --machine: #1D2745;
  --machine-rim: #5ECDFF;

  --g-workforce: #A5B4FC;
  --g-partners: #5ECDFF;
  --g-governance: #C4B5FD;
  --g-security: #CBD5E1;
  --g-architecture: #7DD3FC;
  --g-developer: #A3AEC8;
  --g-tabs: #A3AEC8;
  --tile-wash: 20%;

  --lane-app: #E8ECF8;
  --lane-okta: #A5B4FC;
  --lane-entra: #5EEAD4;
  --lane-partner: #F0ABFC;
  --lane-hr: #4ADE80;
  --lane-siem: #FDA4AF;
  --lane-apps: #C4B5FD;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body { margin: 0; font: 500 15px/1.6 var(--font); color: var(--text); background: var(--bg); overflow-x: clip; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
body > main { flex: 1 0 auto; width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
h1, h2, h3, h4 { font-weight: 750; letter-spacing: -0.012em; }
strong, b { font-weight: 700; }
ul, ol { padding-left: 1.25rem; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.875em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--signal) 28%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: 8px; transform: translateY(-400%); z-index: calc(var(--z-toast) + 1); background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-weight: 700; }
.skip-link:focus { transform: none; }
.skip-link:not(:focus) { box-shadow: none; }
.glyph { width: 20px; height: 20px; flex: none; }

/* Utilities */
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack--lg { gap: var(--s3); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row--between { justify-content: space-between; }
.mono { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.system-voice { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
html:not(.dev) .dev-only { display: none !important; }
html.dev .plain-only { display: none !important; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--border); border-bottom-width: 2px; background: var(--surface-2); color: var(--text-muted); font: 600 11px/1 var(--mono); white-space: nowrap; }
.eyebrow, .kicker { font: 600 11.5px/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }

/* The frame (header, page head, story bar, menu sheet) follows the theme: daylight in light, ink in dark. */
.on-house { color: var(--house-ink); }
.on-house :focus-visible, .site-header :focus-visible, .page-head :focus-visible, .site-footer :focus-visible, .journey-bar :focus-visible { outline-color: var(--house-accent); }

/* Page skeleton */
.page { max-width: calc(var(--page-w) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--s6); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; position: relative; }
.page > :first-child:not(.page-head):not(.hero):not(.welcome):not(.landing) { margin-top: var(--s4); }
.page--narrow { max-width: 720px; }
.page--foot { padding-top: 0; flex: none; width: 100%; }
.page > div:empty { display: none; }
.page:empty::before, .page:has(> .skeleton:only-child)::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 168px; background: var(--house); box-shadow: 0 0 0 100vmax var(--house); clip-path: inset(0 -100vmax); }
.page > .skeleton:only-child { margin-top: 200px; }

.page-head { position: relative; background: var(--house); box-shadow: 0 0 0 100vmax var(--house); clip-path: inset(0 -100vmax); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s3); row-gap: 10px; align-items: end; padding: 34px 0 38px; margin-bottom: 4px; color: var(--house-ink); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--house-line); box-shadow: -50vw 0 0 var(--house-line), 50vw 0 0 var(--house-line); }
.page-head > * { grid-column: 1 / -1; min-width: 0; }
.page-head > .eyebrow { grid-row: 1; }
.page-head > .page-title { grid-column: 1; }
.page-head > .lead { grid-column: 1; }
.page-head > .actions { grid-column: 2; grid-row: 2 / span 2; justify-content: flex-end; align-self: end; }
.page-head .eyebrow, .page-head .kicker { color: var(--house-accent); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-head .eyebrow .glyph { width: 15px; height: 15px; }
.page-head .eyebrow__mech { color: var(--house-muted); }
.page-head .eyebrow__mech::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.page-head > .kicker { order: 9; color: var(--house-muted); }
.page-title { font-size: clamp(30px, 2vw + 16px, 44px); line-height: 1.06; font-weight: 800; color: var(--heading); letter-spacing: -0.032em; overflow-wrap: anywhere; text-wrap: balance; }
.page-head .page-title { color: var(--house-ink); }
.lead { font-size: 17px; line-height: 1.5; color: var(--text-muted); max-width: 60ch; text-wrap: pretty; }
.page-head .lead { color: var(--house-muted); }
.page-head a:not(.btn) { color: var(--house-accent); }
.page-head .muted { color: var(--house-muted); }
.page-head__rail { position: absolute; left: calc(50% - 50vw); width: 100vw; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--signal) 0, var(--signal) 23%, transparent 23%); pointer-events: none; z-index: 1; }
.page-head__rail::after { content: ""; position: absolute; left: 23%; top: -3.5px; width: 22px; height: 9px; border-radius: 9px; background: var(--signal); box-shadow: 0 0 0 5px color-mix(in srgb, var(--signal) 22%, transparent); animation: token-run 1100ms var(--ease) 120ms backwards; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.section-title { font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--heading); letter-spacing: -0.024em; }
.section-lead { color: var(--text-muted); margin-top: 4px; }
.section-head { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-end; justify-content: space-between; }
.grid { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Slips (cards). No shadow at rest; the stage is the one lifted slip on a page. */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h2, .card h3 { color: var(--heading); font-size: 18px; line-height: 1.3; }
.card h3 { font-size: 16px; }
.card--notice { border-left: 3px solid var(--warn); }
.card--accent, .stage { border-color: transparent; box-shadow: 0 0 0 1px color-mix(in srgb, var(--heading) 14%, transparent), var(--shadow-hover); }
.card--accent > h2:first-child::before, .stage > h2:first-child::before, .card--accent > .row:first-child > h2::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 10px; vertical-align: 2px; }
.card--muted { background: var(--surface-2); border-color: transparent; }
.stage > div:empty { display: none; }
.card--flat { background: transparent; border: 0; padding: 0; }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card-link { text-decoration: none; color: inherit; }
.card-link, .lab-card, .journey-card, .tile { transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-fast); }
.card-link:hover, .lab-card:hover, .journey-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--heading) 30%, var(--border)); }

/* Icon tiles, tinted per group */
.icon-tile { --g: var(--g-tabs); width: 40px; height: 40px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--g); background: color-mix(in srgb, var(--g) var(--tile-wash), var(--surface)); }
.icon-tile .glyph { width: 22px; height: 22px; }
.icon-tile--sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-tile--sm .glyph { width: 18px; height: 18px; }
.icon-tile--xs { width: 22px; height: 22px; border-radius: 7px; background: transparent; }
.icon-tile--xs .glyph { width: 15px; height: 15px; }
[data-group="workforce"] { --g: var(--g-workforce); }
[data-group="partners"] { --g: var(--g-partners); }
[data-group="governance"] { --g: var(--g-governance); }
[data-group="security"] { --g: var(--g-security); }
[data-group="architecture"] { --g: var(--g-architecture); }
[data-group="developer"] { --g: var(--g-developer); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; line-height: 1.2; letter-spacing: -0.005em; text-decoration: none; text-align: center; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.btn:hover:not([disabled]):not([aria-disabled="true"]) { transform: translateY(-1px); }
.btn:active:not([disabled]) { transform: translateY(1px) scale(0.985); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--link); padding-inline: 10px; }
.btn--ghost:hover { background: color-mix(in srgb, var(--link) 9%, transparent); }
.btn--outline-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn--danger { background: var(--danger-bg); color: var(--danger-ink); }
.btn--on-dark, .page-head .btn--secondary, .on-house .btn--secondary { background: var(--house-glass); color: var(--house-ink); border-color: var(--hero-edge); }
.btn--on-dark:hover, .page-head .btn--secondary:hover, .on-house .btn--secondary:hover { background: var(--house-glass-strong); }
.page-head .btn--primary, .on-house .btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.page-head .btn--primary:hover, .on-house .btn--primary:hover { background: var(--accent-hover); }
.page-head .btn--ghost, .on-house .btn--ghost { color: var(--house-accent); }
.page-head .btn--ghost:hover, .on-house .btn--ghost:hover { background: var(--house-glass); }
.btn--signal { background: var(--accent); color: var(--accent-ink); font-size: 19px; font-weight: 700; min-height: 56px; padding: 12px 26px; border-radius: 14px; box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn--signal:hover { background: var(--accent-hover); }
.btn--lg { min-height: 56px; padding: 12px 24px; font-size: 19px; border-radius: 14px; }
.btn--sm { min-height: 32px; padding: 4px 12px; font-size: 13px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.btn .spinner { width: 16px; height: 16px; }
.btn > svg { width: 18px; height: 18px; flex: none; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field legend { font-weight: 700; font-size: 13.5px; }
.field .hint { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.input, .select { width: 100%; min-height: 42px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.input--search { width: min(280px, 100%); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; }
.check input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--accent); }
.form-grid { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Pills, chips and fidelity marks */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.7; background: color-mix(in srgb, var(--tone) var(--wash), var(--surface)); color: var(--tone); white-space: nowrap; }
.pill--ok { --tone: var(--ok); }
.pill--warn { --tone: var(--warn); }
.pill--bad { --tone: var(--bad); }
.pill--info { --tone: var(--info); }
.pill--neutral { --tone: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; max-width: 100%; }
.chip strong { color: var(--heading); font-family: var(--mono); font-size: 12.5px; }
.fdot { --tone: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.fdot__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); flex: none; }
.fdot--self-contained { --tone: var(--ok); }
.fdot--self-contained .fdot__dot { background: transparent; border: 2.5px solid var(--tone); }
.fdot--simulated { --tone: var(--text-muted); }
.fdot--simulated .fdot__dot { border-radius: 2px; transform: rotate(45deg) scale(0.85); }
.fdot--unavailable .fdot__dot { background: transparent; border: 1.5px dashed var(--text-muted); }
.fdot--guide .fdot__dot { width: 8px; height: 10px; border-radius: 2px; background: transparent; border: 1.5px solid var(--tone); }
.fidelity, .stamp-tag { font: 600 11px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 8px; border-radius: 6px; background: transparent; border: 1.5px solid currentColor; }

/* Facts and rows: the quiet alternatives to a box of pills and a grid of cards */
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.facts__item { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.facts dt { font: 600 11px/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }
.facts dd { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--heading); font-size: 14.5px; overflow-wrap: anywhere; }
.facts__glyph { font-weight: 800; }
.facts__item--ok .facts__glyph { color: var(--ok); }
.facts__item--bad .facts__glyph { color: var(--bad); }
.facts__item--warn .facts__glyph { color: var(--warn); }
.facts__item--info .facts__glyph { color: var(--info); }
.rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.rows__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 20px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
.rows__row:first-child { border-top: 0; padding-top: 4px; }
.rows__row:last-child { padding-bottom: 4px; }
.rows__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rows__title { font-weight: 750; color: var(--heading); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rows__body { color: var(--text-muted); font-size: 14px; text-wrap: pretty; }
.rows__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.rows__action { display: flex; gap: 8px; justify-content: flex-end; }
.rows__wide { grid-column: 1 / -1; min-width: 0; }
.rows__wide:empty { display: none; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: var(--s3); align-items: start; }
.split > * { min-width: 0; }
.amount { font: 600 15px/1.3 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--heading); white-space: nowrap; }
.amount--lg { font-size: 22px; }

/* Callouts */
.callout { --tone: var(--info); background: color-mix(in srgb, var(--tone) 8%, var(--surface)); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; box-shadow: inset 3px 0 0 var(--tone); }
.callout--ok { --tone: var(--ok); }
.callout--warn { --tone: var(--warn); }
.callout--bad { --tone: var(--bad); }
.callout__glyph { color: var(--tone); font-weight: 800; flex: none; line-height: 1.6; }
.callout__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }

/* Seals: shape is the organisation, colour is the person; a machine or an agent is a dark plate. */
.seal { --fill: var(--p-slate); position: relative; display: inline-flex; width: 34px; height: 34px; flex: none; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal__shape { fill: var(--fill); stroke: var(--seal-rim); stroke-width: 2; }
.seal__engrave path { fill: none; stroke: rgba(11, 17, 36, 0.2); stroke-width: 1.3; }
.seal__edge { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.4; }
.seal__text { fill: var(--seal-ink); font: 800 35px var(--font); letter-spacing: -1.5px; }
.seal--teal { --fill: var(--p-teal); }
.seal--gold { --fill: var(--p-gold); }
.seal--violet { --fill: var(--p-violet); }
.seal--slate { --fill: var(--p-slate); }
.seal--sky { --fill: var(--p-sky); }
.seal--rose { --fill: var(--p-rose); }
.seal--lime { --fill: var(--p-lime); }
.seal--cyan { --fill: var(--p-cyan); }
.seal--pink { --fill: var(--p-pink); }
.seal--stranger { --fill: var(--p-none); }
.seal__dashed { fill: none; stroke: var(--text-muted); stroke-width: 3; stroke-dasharray: 9 7; }
.seal__text--unlisted { fill: var(--text-muted); font-family: var(--mono); letter-spacing: 0; }
.plate__shape { fill: var(--machine); }
.plate__hatch path { stroke: rgba(94, 205, 255, 0.2); stroke-width: 1.2; fill: none; }
.plate__edge { fill: none; stroke: var(--machine-rim); stroke-width: 3; }
.plate__text { font: 600 31px var(--mono); fill: var(--machine-ink); }
.seal--sm { width: 26px; height: 26px; }
.seal--lg { width: 48px; height: 48px; }
.seal--xl { width: 84px; height: 84px; }
.seal.is-stamped { animation: stamp 620ms var(--spring) backwards; }
.org-mark { display: inline-flex; width: 14px; height: 14px; flex: none; vertical-align: -2px; margin-right: 6px; color: var(--text-muted); }
.org-mark svg { width: 100%; height: 100%; }
.org-mark path { fill: none; stroke: currentColor; stroke-width: 11; stroke-linejoin: round; }
.org-mark circle { fill: currentColor; }
.org { display: inline-flex; align-items: center; white-space: nowrap; }
.avatar { --av: var(--accent); width: 32px; height: 32px; border-radius: 30%; background: var(--av); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
.avatar--lg { width: 44px; height: 44px; font-size: 15px; }
.avatar--xl { width: 64px; height: 64px; font-size: 20px; }

/* Header: daylight glass in light, ink in dark */
#app-header, #course-header { min-height: var(--header-h); }
#app-header:has(.site-header), #course-header { position: sticky; top: 0; z-index: var(--z-header); }
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--header); color: var(--house-ink); border-bottom: 1px solid var(--house-line); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.site-header__row { max-width: 1320px; margin: 0 auto; min-height: var(--header-h); padding: 0 20px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--house-ink); flex: none; }
.brand__logo { width: 28px; height: 28px; display: block; }
.brand__maker { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand__rule { width: 1px; height: 22px; background: var(--house-line); margin: 0 4px; }
.brand__product { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; }
.brand__tag { white-space: nowrap; font: 600 10px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--house-accent); }
.nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav__item { position: relative; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 10px; color: var(--house-muted); text-decoration: none; font-weight: 650; font-size: 14.5px; white-space: nowrap; position: relative; transition: background-color var(--t-fast), color var(--t-fast); }
.tab .glyph { width: 17px; height: 17px; opacity: 0.75; }
.site-header:not(.is-collapsed) .tab > .glyph { display: none; }
.tab:hover { background: var(--house-glass); color: var(--house-ink); }
.tab[aria-current="page"], .tab.is-current { color: var(--house-ink); }
.tab[aria-current="page"]::after, .tab.is-current::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 18px; height: 5px; margin-left: -9px; border-radius: 5px; background: var(--signal); }
.tab[aria-expanded="true"] { background: var(--house-glass-strong); color: var(--house-ink); }
.tab__caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.6; transition: transform var(--t-fast); }
[aria-expanded="true"] > .tab__caret { transform: rotate(225deg) translate(-1px, -1px); }
.menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: var(--z-dropdown); min-width: 280px; max-width: min(360px, calc(100vw - 32px)); background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; animation: drop-in var(--t-med) var(--ease); }
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu__link { display: block; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.menu__link:hover, .menu__link:focus-visible { background: var(--surface-2); }
.menu__link[aria-current="page"] { background: var(--surface-2); }
.menu__link--icon { display: flex; gap: 10px; align-items: center; }
.menu__link--icon > .glyph { color: var(--text-muted); }
.menu__link-title { display: block; font-weight: 700; }
.menu__link-sub { display: block; font: 400 12px var(--mono); color: var(--text-muted); }
.menu__note { padding: 2px 10px 8px; font-size: 13px; color: var(--text-muted); }
.menu__label { padding: 10px 10px 0; font: 600 11px var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }
.menu__sep { height: 1px; background: var(--border); margin: 6px 4px; }
.header-tools { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text); border: 1px solid transparent; transition: background-color var(--t-fast); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.site-header .icon-btn { color: var(--house-muted); }
.site-header .icon-btn:hover { background: var(--house-glass); color: var(--house-ink); }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px; border-radius: 10px; border: 1px solid var(--house-line); background: var(--house-glass); color: var(--house-muted); font-size: 14px; min-width: 176px; transition: border-color var(--t-fast), background-color var(--t-fast); }
.search-btn:hover { background: var(--house-glass-strong); color: var(--house-ink); }
.search-btn .glyph { width: 17px; height: 17px; }
.search-btn__label { flex: 1; text-align: left; }
.search-btn .kbd { background: transparent; border-color: var(--house-line); color: var(--house-muted); }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--house-muted); padding: 4px 6px; border-radius: 8px; height: 40px; }
.switch:hover { background: var(--house-glass); }
.switch__track { width: 32px; height: 18px; border-radius: 999px; background: var(--house-glass-strong); border: 1px solid var(--hero-edge); position: relative; transition: background-color var(--t-fast); }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--house-muted); transition: transform var(--t-med) var(--spring); }
.switch[aria-checked="true"] .switch__track { background: var(--signal); border-color: var(--signal); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(14px); background: var(--accent-ink); }
.switch[aria-checked="true"] { color: var(--house-ink); }
.account { position: relative; }
.account-btn { display: inline-flex; align-items: center; gap: 9px; padding: 3px 14px 3px 4px; border-radius: 14px; border: 1px solid var(--house-line); background: var(--house-glass); max-width: 228px; text-align: left; transition: background-color var(--t-fast), border-color var(--t-fast); }
.account-btn:hover, .account-btn[aria-expanded="true"] { background: var(--house-glass-strong); border-color: var(--hero-edge); }
.account-btn--out { padding: 0 14px 0 10px; min-height: 42px; }
.account-btn__icon { display: inline-flex; color: var(--house-ink); }
.account-btn__icon svg { width: 20px; height: 20px; }
.account-btn--out .account-btn__name { font-size: 14px; }
.account-btn__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.account-btn__name { font-size: 13px; font-weight: 750; color: var(--house-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-btn__role { font-size: 11.5px; color: var(--house-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account .menu { left: auto; right: 0; }
.account-panel { width: min(560px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - var(--header-h) - 16px); overflow-y: auto; padding: 0; gap: 0; }
.account-panel > * { margin-inline: 10px; }
.account-panel__who { display: flex; gap: 14px; align-items: center; margin: 0; padding: 18px 18px 14px; background: var(--house); color: var(--house-ink); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.account-panel__id { display: flex; flex-direction: column; min-width: 0; }
.account-panel__id strong { color: var(--house-ink); overflow-wrap: anywhere; font-size: 17px; font-weight: 800; letter-spacing: -0.015em; }
.account-panel__id .small { color: var(--house-muted); }
.account-panel__id .muted { color: var(--house-muted); font-family: var(--mono); font-size: 11.5px; }
.account-panel__who .org-mark { color: var(--house-muted); }
.account-panel__how { padding: 12px 8px 4px; }
.account-panel__sim { display: flex; gap: 8px; align-items: baseline; margin-top: 10px; margin-bottom: 4px; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); background: var(--surface-2); }
.account-panel__sim .sim-stamp__diamond { flex: none; transform: translateY(-1px) rotate(45deg); }
.account-menu__reset { color: var(--text-muted); }
.account-menu__actions { position: sticky; bottom: 0; z-index: 1; display: flex; gap: 8px; margin: 6px 0 0; padding: 10px; background: var(--surface-raised); border-top: 1px solid var(--border); }
.account-menu__actions > .btn { flex: 1 1 0; }
.account-panel__links { display: flex; gap: 4px; margin: 0; padding: 0 10px 10px; background: var(--house); }
.account-panel__links .menu__link { flex: 1 1 0; color: var(--house-ink); background: color-mix(in srgb, var(--house-ink) 6%, transparent); justify-content: center; }
.account-panel__links .menu__link:hover { background: color-mix(in srgb, var(--house-ink) 12%, transparent); }
.persona-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 4px 0; }
.persona-grid__label { margin: 6px 4px 0; font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.persona-card { display: flex; gap: 12px; align-items: center; text-align: left; padding: 8px 12px 8px 10px; min-height: 52px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-width: 0; transition: border-color var(--t-fast), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), background-color var(--t-fast); }
.persona-card:hover { border-color: color-mix(in srgb, var(--heading) 35%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.persona-card:hover .seal { animation: seal-nod 420ms var(--ease); }
.persona-card[aria-current="true"] { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); cursor: default; transform: none; }
.persona-card__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.persona-card__name { font-weight: 750; font-size: 13.5px; color: var(--heading); }
.persona-card__role { font-size: 12.5px; color: var(--text); }
.persona-card__how { font-size: 12px; color: var(--text-muted); }
.account-panel .persona-card { border-color: transparent; background: transparent; }
.account-panel .persona-card:hover { background: var(--surface-2); box-shadow: none; transform: none; }
.account-panel .persona-card[aria-current="true"] { background: color-mix(in srgb, var(--signal) 9%, var(--surface-raised)); }
.account-panel .persona-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 4px; padding: 2px 0; }
.account-panel .persona-grid__label { grid-column: 1 / -1; margin: 8px 8px 2px; }
.account-panel .persona-card { gap: 10px; min-height: 48px; padding: 6px 8px; border-radius: 12px; }
.account-panel .persona-card .seal { width: 32px; height: 32px; }
.account-panel .persona-card__role { font-size: 12px; }
.account-panel .persona-card__how { font-size: 11.5px; }
.account-panel > .menu__label { padding: 12px 8px 0; }
.menu-toggle { display: none; }
.nav__tools { display: none; }

/* Explore: one topic at a time. Topics on the left in two groups, the open topic's pane on the right; an accordion in the menu sheet. */
.nav__item--explore:has(> .explore:not([hidden]))::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.explore { position: absolute; top: calc(100% + 10px); left: calc(-6px + var(--shift, 0px)); z-index: var(--z-dropdown); width: min(820px, calc(100vw - 32px)); background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: drop-in var(--t-med) var(--ease); }
.explore__label { display: none; }
.explore__body { --topics-w: 304px; display: grid; grid-template-columns: var(--topics-w) minmax(0, 1fr); grid-template-rows: repeat(var(--rows, 10), auto) 1fr; align-content: start; min-height: 498px; padding: 10px 0; background: linear-gradient(to right, var(--surface-2) var(--topics-w), var(--border) var(--topics-w), var(--border) calc(var(--topics-w) + 1px), transparent calc(var(--topics-w) + 1px)); }
.explore__section { grid-column: 1; margin: 12px 20px 3px; font: 600 10px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.explore__topic { grid-column: 1; display: flex; align-items: center; gap: 11px; min-height: 50px; margin: 1px 10px; padding: 7px 12px 7px 10px; border-radius: 13px; text-align: left; color: var(--text); border: 1px solid transparent; transition: background-color var(--t-fast); }
.explore__topic:hover { background: color-mix(in srgb, var(--surface-raised) 60%, transparent); }
.explore__topic[aria-expanded="true"] { background: var(--surface-raised); border-color: var(--border); box-shadow: var(--slip-shadow); }
.explore__topic .tab__caret { display: none; }
.explore__topic::after { content: ""; flex: none; width: 18px; height: 7px; margin-left: auto; border-radius: 7px; }
.explore__topic[aria-expanded="true"]::after { background: var(--signal); }
.explore__topic .icon-tile { --g: var(--link); background: color-mix(in srgb, var(--signal) 12%, var(--surface-raised)); }
.explore__topic-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.explore__topic-name { font-weight: 800; font-size: 14.5px; letter-spacing: -0.01em; color: var(--heading); line-height: 1.2; }
.explore__topic-line { font-size: 12.5px; color: var(--text-muted); line-height: 1.3; }
.explore__pane { grid-column: 2; grid-row: 1 / -1; min-width: 0; padding: 10px 22px 4px; display: flex; flex-direction: column; }
.explore__pane[hidden] { display: none; }
.explore__lead { font-size: 14.5px; color: var(--text-muted); max-width: 440px; text-wrap: pretty; }
.explore__platform { margin-top: 6px; font: 400 11.5px/1.5 var(--mono); color: var(--text-muted); }
.explore__list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; }
.explore__list > li + li { border-top: 1px solid var(--border); }
.explore__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 8px 0; color: var(--text); text-decoration: none; }
.explore__link:hover .explore__name, .explore__link:focus-visible .explore__name { text-decoration: underline; }
.explore__link[aria-current="page"] .explore__name::before { content: ""; display: inline-block; width: 14px; height: 5px; border-radius: 5px; background: var(--signal); margin-right: 7px; vertical-align: 3px; }
.explore__text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.explore__name { display: block; font-weight: 750; font-size: 15px; letter-spacing: -0.01em; color: var(--heading); line-height: 1.25; }
.explore__summary { font-size: 13px; color: var(--text-muted); line-height: 1.35; }
.explore__mech { font: 400 11.5px var(--mono); color: var(--text-muted); }
.explore__link--journey { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 0; }
.explore__link--journey .seal--sm { width: 32px; height: 32px; }
.explore__steps { font: 600 10.5px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.explore__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.explore__chip { font-size: 13px; font-weight: 700; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted); transition: background-color var(--t-fast), color var(--t-fast); }
.explore__chip:hover { color: var(--heading); border-color: var(--heading); }
.explore__chip[aria-pressed="true"] { background: var(--heading); border-color: var(--heading); color: var(--surface); }
.explore__stories { display: grid; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 2px solid var(--heading); }
.explore__stories-title { font: 600 10px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.explore__story { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 750; font-size: 14px; color: var(--link); text-decoration: none; }
.explore__story:hover > span:first-child { text-decoration: underline; }
.explore__mores { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.explore__mores--quiet { margin-top: 0; padding-top: 2px; border-top: 0; }
.explore__mores--quiet .explore__more { font-weight: 650; color: var(--text-muted); }
.explore__more { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13.5px; font-weight: 700; color: var(--link); text-decoration: none; }
.explore__more:hover { text-decoration: underline; }
.explore__more .glyph { width: 15px; height: 15px; }
.explore__foot { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 13px; }
.explore__legend, .legend-row { display: inline-flex; flex-wrap: wrap; gap: 16px; }
.explore__foot-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--link); text-decoration: none; }
.explore__foot-link .glyph { width: 15px; height: 15px; }

/* Collapsed header: a sheet under the header */
.site-header.is-collapsed .menu-toggle { display: inline-flex; }
.site-header.is-collapsed .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; background: var(--house-deep); border-bottom: 1px solid var(--house-line); padding: 8px 16px 16px; box-shadow: var(--shadow-lg); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.site-header.is-collapsed .nav:not(.is-open) { display: none; }
.site-header.is-collapsed .nav__item--explore > .tab { display: none; }
.site-header.is-collapsed .nav__item--explore::after { content: none; }
.site-header.is-collapsed .explore[hidden] { display: block !important; }
.site-header.is-collapsed .explore { position: static; width: auto; margin: 4px 0; padding: 4px 0; border: 0; border-top: 1px solid var(--house-line); border-bottom: 1px solid var(--house-line); border-radius: 0; box-shadow: none; overflow: visible; animation: none; background: transparent; color: var(--house-ink); }
.site-header.is-collapsed .explore__label { display: block; padding: 10px 8px 4px; font: 600 11px var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--house-muted); }
.site-header.is-collapsed .explore__body { display: block; min-height: 0; padding: 0; background: none; }
.site-header.is-collapsed .explore__section { margin: 12px 8px 2px; color: var(--house-muted); }
.site-header.is-collapsed .explore__topic { width: 100%; min-height: 52px; margin: 0; padding: 6px 8px; border: 0; color: var(--house-ink); background: transparent; box-shadow: none; }
.site-header.is-collapsed .explore__topic:hover, .site-header.is-collapsed .explore__topic[aria-expanded="true"] { background: var(--house-glass); }
.site-header.is-collapsed .explore__topic::after { content: none; }
.site-header.is-collapsed .explore__topic .tab__caret { display: block; margin: 0 6px 0 auto; }
.site-header.is-collapsed .explore__topic .icon-tile { background: var(--house-glass); color: var(--house-accent); }
.site-header.is-collapsed .explore__topic-name { color: var(--house-ink); font-size: 15px; }
.site-header.is-collapsed .explore__topic-line { color: var(--house-muted); }
.site-header.is-collapsed .explore__pane { padding: 2px 0 8px 44px; }
.site-header.is-collapsed .explore__lead, .site-header.is-collapsed .explore__platform { display: none; }
.site-header.is-collapsed .explore__list { margin-top: 0; }
.site-header.is-collapsed .explore__list > li + li { border-color: var(--house-line); }
.site-header.is-collapsed .explore__link { min-height: 44px; padding: 6px 8px; border-radius: 10px; color: var(--house-ink); }
.site-header.is-collapsed .explore__link:hover, .site-header.is-collapsed .explore__link:focus-visible, .site-header.is-collapsed .explore__link[aria-current="page"] { background: var(--house-glass); }
.site-header.is-collapsed .explore__name { color: var(--house-ink); font-weight: 600; font-size: 15px; }
.site-header.is-collapsed .explore__summary { display: none; }
.site-header.is-collapsed .explore__link--journey .explore__summary { display: block; color: var(--house-muted); }
.site-header.is-collapsed .explore__link--journey .explore__steps { display: none; }
.site-header.is-collapsed .explore__link--journey { grid-template-columns: auto minmax(0, 1fr); }
.site-header.is-collapsed .explore__mech, .site-header.is-collapsed .explore__steps, .site-header.is-collapsed .explore__stories-title { color: var(--house-muted); }
.site-header.is-collapsed .explore__chips { margin: 4px 0 6px; }
.site-header.is-collapsed .explore__chip { min-height: 44px; padding: 4px 14px; font-size: 14px; border-color: var(--house-line); color: var(--house-muted); }
.site-header.is-collapsed .explore__chip[aria-pressed="true"] { background: var(--house-ink); border-color: var(--house-ink); color: var(--house-deep); }
.site-header.is-collapsed .explore__stories { border-color: var(--house-line); margin-top: 6px; padding: 10px 8px 0; }
.site-header.is-collapsed .explore__story { min-height: 44px; align-items: center; color: var(--house-accent); }
.site-header.is-collapsed .explore__link > .fdot { margin-top: 0; }
.site-header.is-collapsed .explore .fdot { --tone: var(--house-muted); color: var(--house-muted); }
.site-header.is-collapsed .explore__mores { border-color: var(--house-line); padding: 4px 8px 0; }
.site-header.is-collapsed .explore__mores--quiet { border: 0; }
.site-header.is-collapsed .explore__more { min-height: 44px; color: var(--house-accent); }
.site-header.is-collapsed .explore__foot { padding: 6px 8px 8px; border: 0; }
.site-header.is-collapsed .explore__body:not(:has(.explore__topic[aria-expanded="true"])) + .explore__foot { display: none; }
.site-header.is-collapsed .explore__foot-link { min-height: 44px; color: var(--house-accent); }
.site-header.is-collapsed .tab { width: 100%; height: 48px; justify-content: flex-start; }
.site-header.is-collapsed .tab .tab__caret { margin-left: auto; }
.site-header.is-collapsed .tab[aria-current="page"]::after, .site-header.is-collapsed .tab.is-current::after { left: 2px; bottom: 21px; margin: 0; }
.site-header.is-collapsed .menu { position: static; box-shadow: none; border: 0; min-width: 0; max-width: none; padding: 0 0 4px 12px; animation: none; background: transparent; color: var(--house-ink); }
.site-header.is-collapsed .nav .menu__link { color: var(--house-ink); }
.site-header.is-collapsed .nav .menu__link:hover, .site-header.is-collapsed .nav .menu__link:focus-visible, .site-header.is-collapsed .nav .menu__link[aria-current="page"] { background: var(--house-glass); }
.site-header.is-collapsed .nav .menu__link-sub, .site-header.is-collapsed .nav .menu__link--icon > .glyph { color: var(--house-muted); }
.site-header.is-collapsed .nav__tools { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--house-line); }
.site-header.is-collapsed .sheet-tool .switch__track { margin-left: auto; }
.site-header.is-collapsed .sheet-tool svg { width: 17px; height: 17px; opacity: 0.75; }
.sheet-tool[aria-checked="true"] .switch__track { background: var(--signal); border-color: var(--signal); }
.sheet-tool[aria-checked="true"] .switch__track::after { transform: translateX(14px); background: var(--accent-ink); }
.site-header.is-collapsed .header-tools > .switch, .site-header.is-collapsed .header-tools > .tour-btn, .site-header.is-collapsed .header-tools > .icon-btn:not(.menu-toggle) { display: none; }
.site-header.is-collapsed .account .menu { position: absolute; top: calc(100% + 8px); left: auto; right: 0; padding: 0; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface-raised); color: var(--text); }

/* Command palette */
.palette { position: fixed; inset: 0; z-index: var(--z-palette); background: var(--scrim); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fade-in var(--t-fast) ease-out; }
.palette__dialog { width: min(640px, 100%); max-height: 72dvh; display: flex; flex-direction: column; background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop-in var(--t-med) var(--ease); }
.palette__search { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.palette__search > .glyph { color: var(--signal); }
.palette__input { flex: 1; min-width: 0; height: 60px; border: 0; background: transparent; font-size: 18px; font-weight: 600; outline: none; }
.palette__input::placeholder { color: var(--text-muted); opacity: 1; font-weight: 500; }
.palette__list { overflow-y: auto; padding: 6px 8px 8px; flex: 1; overscroll-behavior: contain; }
.palette__group-title { padding: 12px 10px 4px; font: 600 11px var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }
.palette__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.palette__item[aria-selected="true"] { background: var(--surface-2); }
.palette__item[aria-selected="true"] .palette__label::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); margin-left: 8px; vertical-align: 2px; }
.palette__icon { --g: var(--text-muted); width: 32px; height: 32px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--g); background: color-mix(in srgb, var(--g) var(--tile-wash), var(--surface-raised)); }
.palette__icon .glyph { width: 17px; height: 17px; }
.palette__icon:has(.seal) { background: transparent; }
.palette__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.palette__label { font-weight: 700; color: var(--heading); }
.palette__hint { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__empty { padding: 24px 14px; color: var(--text-muted); text-align: center; }
.palette__foot { display: flex; flex-wrap: wrap; gap: 16px; padding: 9px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.palette__foot .kbd { margin-right: 2px; }
.palette__close { display: none; }

/* The rail: a line with stations and the dot. The app's diagram language (kit/rail.js). */
.rail-mini { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.rail-mini__stop { position: relative; display: flex; flex-direction: column; gap: 7px; padding-right: 10px; min-width: 0; font-size: 12.5px; line-height: 1.3; color: var(--text-muted); }
.rail-mini__stop::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); position: relative; z-index: 1; }
.rail-mini__stop:not(:last-child)::after { content: ""; position: absolute; left: 9px; right: 0; top: 3.5px; height: 2px; background: var(--border); }
.rail-mini__stop[data-state="done"]::before { background: var(--border-strong); }
.rail-mini__stop[data-state="done"]::after { background: var(--border-strong); }
.rail-mini__stop[data-state="current"]::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent); }
.rail-mini__stop[data-state="current"] { color: var(--heading); font-weight: 700; }
.rail-mini a { color: inherit; text-decoration: none; }
.rail-mini a:hover { text-decoration: underline; }

/* Journey bar, hand-off and Related */
.journey-bar { background: var(--house-deep); color: var(--house-ink); border-bottom: 1px solid var(--house-line); }
.journey-bar__inner { max-width: calc(var(--page-w) + 2 * var(--gutter)); margin: 0 auto; padding: 12px var(--gutter); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 28px; font-size: 14px; }
.journey-bar__lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.journey-bar__lead .seal--sm { width: 30px; height: 30px; }
.journey-bar__text { display: flex; flex-direction: column; min-width: 0; }
.journey-bar__label { font: 600 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--house-accent); }
.journey-bar__text strong { color: var(--house-ink); font-weight: 750; }
.story-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 260px); }
.story-rail__stop { position: relative; padding-top: 16px; font-size: 13px; font-weight: 650; color: var(--house-muted); min-width: 0; }
.story-rail__stop::before { content: ""; position: absolute; left: 8px; right: 0; top: 4px; height: 2px; background: var(--house-line); }
.story-rail__stop:last-child::before { display: none; }
.story-rail__stop::after { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--house-muted); background: var(--house-deep); }
.story-rail__stop[data-state="done"]::after { background: var(--house-muted); }
.story-rail__stop[data-state="done"]::before { background: var(--house-muted); }
.story-rail__stop[data-state="current"] { color: var(--house-ink); }
.story-rail__stop[data-state="current"]::after { width: 20px; height: 8px; border-radius: 8px; border: 0; top: 1px; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent); }
.story-rail a { color: inherit; text-decoration: none; display: block; padding-right: 10px; overflow-wrap: anywhere; }
.story-rail a:hover { text-decoration: underline; }
.story-bar__actions { display: flex; align-items: center; gap: 6px 18px; }
.story-bar__leave { font-size: 13.5px; font-weight: 700; color: var(--house-muted); min-height: 32px; white-space: nowrap; }
.story-bar__next { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--house-accent) 55%, transparent); color: var(--house-accent); font-size: 13.5px; font-weight: 750; text-decoration: none; white-space: nowrap; max-width: 300px; }
.story-bar__next:hover { background: color-mix(in srgb, var(--house-accent) 10%, transparent); }
.story-bar__next-name { overflow: hidden; text-overflow: ellipsis; margin-left: -6px; }
.story-bar__next svg { width: 15px; height: 15px; flex: none; }
.story-bar__leave:hover { text-decoration: underline; }
.journey-next { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: space-between; padding: 22px var(--s3); border-radius: var(--radius); background: var(--house); color: var(--house-ink); }
.journey-next__text { min-width: 0; flex: 1 1 320px; }
.journey-next__kicker { font: 600 11px var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--house-accent); }
.journey-next__line { font-size: 18px; color: var(--house-ink); font-weight: 750; letter-spacing: -0.015em; margin-top: 4px; }
.journey-next .btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.journey-next__pitch { margin-top: 10px; font-size: 14.5px; color: var(--house-muted); }
.journey-next__pitch a { color: var(--house-accent); font-weight: 700; }
.related { display: flex; flex-direction: column; gap: 12px; }
.related__title { font: 600 11.5px var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }
.related__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Lab cards */
.lab-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; min-width: 0; position: relative; }
.lab-card > .icon-tile { width: 36px; height: 36px; border-radius: 11px; }
.lab-card > .icon-tile .glyph { width: 20px; height: 20px; }
.lab-card__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lab-card__title { font-weight: 750; font-size: 15.5px; color: var(--heading); line-height: 1.3; letter-spacing: -0.01em; }
.lab-card__summary { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.lab-card__mech { font: 400 11.5px var(--mono); color: var(--text-muted); }
.lab-card__meta { display: flex; gap: 10px; align-items: center; padding-top: 5px; }
.lab-card__group { display: none; }
.lab-card--compact { padding: 14px; background: transparent; }
.lab-card--compact:hover { background: var(--surface); }
.lab-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lab-grid.is-clipped > .lab-card:nth-child(n+7) { display: none; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; font-weight: 700; color: var(--text); transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.filter-chip:hover { border-color: var(--border-strong); }
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter-chip__icon { --g: var(--text-muted); display: inline-flex; color: var(--g); }
.filter-chip__icon .glyph { width: 16px; height: 16px; }
.filter-chip[aria-pressed="true"] .filter-chip__icon { color: inherit; }

/* Landing page, below the hero */
.home-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.fact { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 2px solid var(--heading); }
.fact__n { font: 600 13px/1 var(--mono); color: var(--signal); letter-spacing: 0.06em; }
.fact__title { font-size: 21px; font-weight: 800; letter-spacing: -0.022em; color: var(--heading); line-height: 1.2; }
.fact__body { color: var(--text-muted); font-size: 14.5px; text-wrap: pretty; }
.fact__link { font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.fact__link .glyph { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.fact__link:hover .glyph { transform: translateX(3px); }
.home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s2); }
.tile { padding: var(--s3); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.tile__title { font-size: 17px; color: var(--heading); }
.tile__body { color: var(--text-muted); font-size: 14.5px; }
.home-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* Home, signed in: the pass and the route */
.welcome { position: relative; background: var(--house); box-shadow: 0 0 0 100vmax var(--house); clip-path: inset(0 -100vmax); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 468px); gap: var(--s4); align-items: center; padding: 40px 0 44px; color: var(--house-ink); }
.welcome__text { display: flex; flex-direction: column; gap: 12px; }
.welcome .kicker { color: var(--house-accent); }
.welcome .page-title { color: var(--house-ink); font-size: clamp(34px, 3vw + 16px, 60px); letter-spacing: -0.04em; }
.welcome .lead { color: var(--house-muted); }
.welcome .btn--ghost { color: var(--house-accent); padding-inline: 0; }
.welcome .btn--ghost:hover { background: transparent; text-decoration: underline; }
.who-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.who-card .btn--primary { background: var(--accent); color: var(--accent-ink); }
.who-card .btn--primary:hover { background: var(--accent-hover); }
.who-card .btn--ghost { color: var(--link); padding-inline: 10px; }
.who-card .btn--ghost:hover { background: color-mix(in srgb, var(--link) 9%, transparent); text-decoration: none; }
.who-card .tip-btn { border-color: var(--border-strong); color: var(--text-muted); }
.who-card__top { display: flex; gap: 16px; align-items: center; }
.who-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who-card__name { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; color: var(--heading); line-height: 1.15; }
.who-card__role { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 650; font-size: 14px; }
.who-card__how { font-size: 13px; color: var(--text-muted); }
.who-card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.who-card__fact { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); margin-left: auto; }
.who-card__fact .glyph { width: 15px; height: 15px; }
.route { list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--border); }
.route__stop { position: relative; padding: 16px 10px 0 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.route__stop::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); z-index: 1; }
.route__stop:not(:last-child)::after { content: ""; position: absolute; left: 10px; right: 0; top: 4px; height: 2px; background: var(--signal); opacity: 0.35; }
.route__stop[data-kind="simulated"]::before { background: var(--surface); border: 2px solid var(--text-muted); border-radius: 2px; transform: rotate(45deg) scale(0.9); }
.route__where { font: 600 10.5px/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }
.route__what { font-size: 13px; font-weight: 700; color: var(--heading); line-height: 1.3; }
.route__fact { font: 400 11.5px/1.4 var(--mono); color: var(--text-muted); overflow-wrap: anywhere; }
.journey-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.journey-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; min-width: 0; }
.journey-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; min-height: 20px; }
.journey-card__top .icon-tile { display: none; }
.journey-card__count { font: 600 11px var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }
.journey-card__title { font-size: 19px; font-weight: 800; color: var(--heading); line-height: 1.2; letter-spacing: -0.022em; }
.journey-card__summary { color: var(--text-muted); font-size: 14px; }
.journey-card .rail-mini { margin-top: 14px; }
.journey-card:hover .rail-mini__stop::before { border-color: var(--signal); }
.journey-card:hover .rail-mini__stop:not(:last-child)::after { background: color-mix(in srgb, var(--signal) 45%, var(--border)); }
.journey-card__steps { display: none; }
.journey-card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: var(--link); }
.journey-card__go { display: inline-flex; align-items: center; gap: 6px; }
.journey-card__go .glyph { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.journey-card:hover .journey-card__go .glyph { transform: translateX(3px); }
.show-all { align-self: center; }

/* Status page */
.status-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3) var(--s4); }
.status-count { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 16px; border-top: 2px solid var(--heading); }
.status-count__meaning { color: var(--text-muted); font-size: 14px; text-wrap: pretty; }
.status-count__n { font: 600 44px/1 var(--mono); letter-spacing: -0.04em; color: var(--heading); }
.status-key { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.status-key dd { color: var(--text-muted); }
.status-group { display: flex; flex-direction: column; }
.status-group__summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 10px 0; border-radius: 8px; min-height: 52px; }
.status-group__summary::-webkit-details-marker { display: none; }
.status-group__summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t-fast) var(--ease); flex: none; margin-right: 6px; }
.status-group[open] > .status-group__summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.status-group__title { display: flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--heading); }
.status-group__tally { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; color: var(--text-muted); }
.status-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 14px; table-layout: fixed; }
.status-table th, .status-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.status-table tr:last-child > * { border-bottom: 0; }
.status-table thead th { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); background: transparent; }
.status-table td:nth-child(3), .status-table td:nth-child(4) { color: var(--text-muted); }
.status-table thead th:nth-child(1) { width: 27%; }
.status-table thead th:nth-child(2) { width: 16%; }
.status-table thead th:nth-child(3) { width: 33%; }
.status-row__lab { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--text); }
.status-row__name { display: block; font-weight: 750; color: var(--heading); }
.status-row__lab:hover .status-row__name { text-decoration: underline; }
.status-row__mech { display: block; font: 400 12px var(--mono); color: var(--text-muted); }

/* Footer: the ink plate in both themes */
.site-footer { margin-top: auto; background: var(--plate); color: var(--plate-muted); font-size: 14px; }
.site-footer__inner { max-width: calc(var(--page-w) + 2 * var(--gutter)); margin: 0 auto; padding: 26px var(--gutter) 22px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; }
.site-footer__about { max-width: 640px; display: flex; flex-direction: column; gap: 4px; text-wrap: pretty; }
.site-footer__about strong { color: var(--plate-ink); font-weight: 750; }
.site-footer__cookie { font-size: 13px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__links a, .site-footer__links button { color: var(--plate-ink); font-weight: 650; text-decoration: none; }
.site-footer__links a:hover, .site-footer__links button:hover { color: var(--plate-accent); text-decoration: underline; }
.site-footer__row--meta { font: 400 12px var(--mono); padding-top: 14px; border-top: 1px solid var(--plate-line); }
.site-footer__row--meta a { color: var(--plate-accent); text-decoration: none; }
.site-footer__row--meta a:hover { text-decoration: underline; }
.site-footer .site-footer__inner :focus-visible { outline-color: var(--plate-accent); }
/* Explainers: quiet rows. A run of them at the foot of a page reads as one "Go deeper" list. */
details.explainer { border-top: 1px solid var(--border); }
details.explainer > summary { list-style: none; cursor: pointer; padding: 14px 4px; font-weight: 700; display: flex; align-items: center; gap: 12px; color: var(--heading); border-radius: 8px; }
details.explainer > summary:hover { color: var(--link); }
details.explainer > summary::-webkit-details-marker { display: none; }
details.explainer > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t-fast) var(--ease); flex: none; opacity: 0.7; }
details.explainer[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
details.explainer > .explainer__body { padding: 0 4px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 78ch; }
details.explainer > .explainer__body:has(.seq-wrap, table, .code-block, .grid, .two-pane) { max-width: none; }
details.explainer[open] > .explainer__body { animation: rise var(--t-med) var(--ease) backwards; }
details.explainer--accent > summary::before { content: ""; width: 22px; height: 10px; flex: none; background: radial-gradient(circle at 5px 5px, var(--signal) 0 4px, transparent 4.5px), linear-gradient(var(--border-strong), var(--border-strong)) 9px 4px / 13px 2px no-repeat; }
.page > details.explainer { margin-top: calc(-1 * var(--s3)); }
.page > :not(details.explainer) + details.explainer { margin-top: var(--s2); }
.page > details.explainer:not(:has(+ details.explainer)) { border-bottom: 1px solid var(--border); }
.deeper { display: flex; flex-direction: column; gap: 0; margin-top: var(--s2); }
.deeper__title { padding: 0 4px 10px; }
.deeper__list { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.deeper__list > details.explainer { margin: 0; }
.deeper__list > :not(details) { padding: 14px 4px; border-top: 1px solid var(--border); }
.deeper__title, .page > :not(details.explainer):not(.deeper__title) + details.explainer::before { font: 600 11.5px/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }
.page > :not(details.explainer):not(.deeper__title) + details.explainer { border-top: 0; }
.page > :not(details.explainer):not(.deeper__title) + details.explainer::before { content: "Go deeper"; display: block; padding: 0 4px 10px; border-bottom: 1px solid var(--border); }
html:not(.dev) .page > :not(details.explainer):not(.deeper__title) + details.explainer.dev-only + details.explainer:not(.dev-only) { border-top: 0; margin-top: var(--s2); }
html:not(.dev) .page > :not(details.explainer):not(.deeper__title) + details.explainer.dev-only + details.explainer:not(.dev-only)::before { content: "Go deeper"; display: block; padding: 0 4px 10px; border-bottom: 1px solid var(--border); font: 600 11.5px/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }
.page > details.explainer ~ :not(details.explainer) + details.explainer { border-top: 1px solid var(--border); margin-top: 0; }
.page > details.explainer ~ :not(details.explainer) + details.explainer::before { content: none; }
.card details.explainer:first-of-type, .modal details.explainer:first-of-type { border-top: 0; }
.bp { --tone: var(--info); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--tone) 6%, var(--surface)); box-shadow: inset 3px 0 0 var(--tone); }
.bp--must { --tone: var(--bad); }
.bp--should { --tone: var(--warn); }
.bp--tip { --tone: var(--info); }
.bp > summary { list-style: none; cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.bp > summary::-webkit-details-marker { display: none; }
.bp__level { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tone); }
.bp__tag { font: 400 11px var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-muted); }
.bp__body { padding: 0 14px 12px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

/* Info tip */
.tip-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-muted); font-size: 11px; font-weight: 800; line-height: 1; vertical-align: middle; flex: none; }
.tip-btn:hover, .tip-btn[aria-expanded="true"] { color: var(--link); border-color: var(--link); }
.page-head .tip-btn, .welcome > .welcome__text .tip-btn { border-color: var(--house-muted); color: var(--house-muted); }
.tip-bubble { position: fixed; z-index: var(--z-tip); max-width: min(320px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 12px; background: var(--plate); color: var(--plate-ink); box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 500; line-height: 1.5; animation: fade-in var(--t-fast) ease-out; }

/* Sign-in gate */
.gate-card { align-items: flex-start; max-width: 620px; border-color: transparent; box-shadow: 0 0 0 1px color-mix(in srgb, var(--heading) 14%, transparent), var(--shadow-hover); padding: 28px; }
.gate-card__icon { width: 44px; height: 44px; border-radius: 30%; background: var(--house); color: var(--house-ink); display: flex; align-items: center; justify-content: center; }
.gate-card__icon svg { width: 20px; height: 20px; }
.gate-card h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

/* Toasts sit under the header and clear quickly; errors stay */
.toast-host { position: fixed; z-index: var(--z-toast); right: 16px; top: calc(var(--header-h) + 12px); display: flex; flex-direction: column; gap: 8px; width: min(400px, calc(100vw - 32px)); pointer-events: none; }
body:has(.journey-bar) .toast-host { top: calc(var(--header-h) + 78px); }
.toast { --tone: var(--plate-accent); pointer-events: auto; background: var(--plate); color: var(--plate-ink); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px 8px 10px 14px; display: flex; gap: 10px; align-items: center; animation: toast-in var(--t-med) var(--spring); }
.toast.is-leaving { animation: toast-out 220ms ease-in forwards; }
.toast--ok { --tone: var(--plate-ok); }
.toast--warn { --tone: var(--plate-held); }
.toast--bad { --tone: var(--plate-bad); align-items: flex-start; }
.toast--info { --tone: var(--plate-accent); }
.toast__action { align-self: flex-start; margin-top: 4px; min-height: 32px; padding: 4px 12px; border-radius: 9px; background: var(--plate-accent); color: var(--plate); font-weight: 750; font-size: 13.5px; }
.toast__glyph { color: var(--plate); background: var(--tone); width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
.toast--bad .toast__glyph, .toast--warn .toast__glyph { border-radius: 6px; }
.toast__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.toast__detail { font: 400 12px var(--mono); color: var(--plate-muted); white-space: pre-wrap; max-height: 120px; overflow: auto; }
.toast__tools { display: flex; gap: 0; flex: none; }
.toast .icon-btn { width: 32px; height: 32px; color: var(--plate-muted); }
.toast .icon-btn:hover { background: var(--plate-glass); color: var(--plate-ink); }
.toast .icon-btn svg { width: 16px; height: 16px; }
.overlay { position: fixed; inset: 0; z-index: var(--z-overlay); background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade-in var(--t-fast) ease-out; }
.overlay__box { background: var(--plate); color: var(--plate-ink); border-radius: var(--radius); padding: 20px 26px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-lg); max-width: 420px; font-weight: 650; }
.overlay__box .spinner { color: var(--signal); }
.modal { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--scrim); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade-in var(--t-fast) ease-out; }
.modal__dialog { width: min(760px, 100%); background: var(--surface-raised); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: 88dvh; min-width: 0; animation: pop-in var(--t-med) var(--ease); }
.modal__dialog--sm { width: min(460px, 100%); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 8px; }
.modal__head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; color: var(--heading); line-height: 1.15; }
.modal__body { padding: 8px 24px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.modal__close-bar { display: none; }
.modal__foot { padding: 14px 24px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); }
.lesson-bucket h3 { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); margin-bottom: 8px; }
.lesson-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lesson-card { text-align: left; border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; transition: border-color var(--t-fast), transform var(--t-med) var(--ease); }
.lesson-card:hover { border-color: var(--signal); transform: translateY(-2px); }
.lesson-card__num { font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.lesson-card__title { font-weight: 750; color: var(--heading); }
.lesson-card__hook { font-size: 13.5px; color: var(--text-muted); }
.lesson-card .fidelity { align-self: flex-start; margin-top: 4px; }
.lesson-section h3 { font-size: 15px; color: var(--heading); margin-bottom: 4px; }
.pulse { animation: pulse 1.2s ease-out 2; border-radius: var(--radius-sm); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* Skeleton */
.skeleton { display: flex; flex-direction: column; gap: 10px; }
.skeleton__line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton__line:nth-child(3n) { width: 60%; }
.skeleton__line:nth-child(3n+2) { width: 85%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Stepper: a vertical rail */
.stepper { list-style: none; padding: 0; display: flex; flex-direction: column; }
.step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.step:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--signal); transform: scaleY(0); transform-origin: center top; transition: transform 420ms var(--ease); }
.step[data-state="ok"]:not(:last-child)::after { transform: scaleY(1); }
.step__badge { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font: 600 12px var(--mono); color: var(--text-muted); background: var(--surface); position: relative; z-index: 1; transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast); }
.step[data-state="running"] .step__badge { border-color: var(--signal); color: var(--heading); animation: breathe 1.1s ease-in-out infinite; }
.step[data-state="current"] .step__badge { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent); }
.step[data-state="ok"] .step__badge { border-color: var(--ok); background: var(--ok); color: var(--surface); animation: pop var(--t-med) var(--spring); }
.step[data-state="bad"] .step__badge { border-color: var(--bad); background: var(--bad); color: var(--surface); border-radius: 8px; animation: pop var(--t-med) var(--spring); }
.step__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
.step__title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; }
.step__detail:not(:empty) { animation: rise var(--t-med) var(--ease) backwards; }

/* JSON and code blocks: the system voice */
.code-block { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.code-block__box { position: relative; min-width: 0; }
.code-block pre { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 44px 12px 14px; overflow: auto; max-height: 420px; font-size: 12.5px; line-height: 1.55; white-space: pre; }
.code-block pre.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-btn { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); opacity: 0.55; transition: opacity var(--t-fast); }
.code-block:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn[data-copied="true"] { color: var(--ok); opacity: 1; }

/* Token view */
.token-view { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.expiry { display: flex; flex-direction: column; gap: 6px; }
.expiry__line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; }
.expiry__bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.expiry__fill { height: 100%; width: 100%; background: var(--ok); border-radius: inherit; transition: width 0.9s linear; }
.expiry[data-tone="warn"] .expiry__fill { background: var(--warn); }
.expiry[data-tone="bad"] .expiry__fill { background: var(--bad); }
.claims { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 0 18px; font-size: 14px; }
.claims dt, .claims dd { padding: 8px 0; border-top: 1px solid var(--border); }
.claims dt:first-of-type, .claims dt:first-of-type + dd { border-top: 0; }
.claims dt { font: 600 12.5px/1.7 var(--mono); color: var(--heading); overflow-wrap: anywhere; }
.claims dd { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.claims dd .value { font: 400 12.5px/1.7 var(--mono); overflow-wrap: anywhere; }
.claims dd .note { font-size: 12.5px; color: var(--text-muted); }

/* Claims diff */
.diff { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.diff__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.diff__name { font: 600 12.5px var(--mono); }
.diff__old { text-decoration: line-through; color: var(--text-muted); font: 400 12.5px var(--mono); overflow-wrap: anywhere; }
.diff__new { font: 400 12.5px var(--mono); overflow-wrap: anywhere; }

/* Sequence diagram: the same stations and numerals as the rail */
.seq-wrap { overflow-x: auto; border-radius: var(--radius-sm); background: var(--surface-2); padding: 6px; max-width: 100%; }
.seq-wrap svg { max-width: none; }
.seq-actor-box { fill: var(--surface); stroke: var(--border-strong); }
.seq-actor-label { fill: var(--heading); font: 700 12.5px var(--font); }
.seq-life { stroke: var(--border-strong); stroke-dasharray: 2 5; stroke-linecap: round; }
.seq-arrow { stroke: var(--text); stroke-width: 1.5; fill: none; }
.seq-arrow--return { stroke-dasharray: 5 4; stroke: var(--text-muted); }
.seq-head { fill: var(--text); }
.seq-head--return { fill: var(--text-muted); }
.seq-label { fill: var(--text); font: 600 12.5px var(--font); }
.seq-note { fill: var(--text-muted); font: 400 11px var(--mono); }
.seq-num-circle { fill: var(--accent); }
.seq-num { fill: var(--accent-ink); font: 600 11px var(--mono); }

/* Lab kit: the status line under the page head */
.mode-strip { --tone: var(--info); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 0 0 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.mode-strip--simulated { --tone: var(--text-muted); }
.mode-strip--self-contained { --tone: var(--text-muted); }
.sim-stamp { flex: none; display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 9px; border-radius: 6px; border: 1.5px solid var(--border-strong); color: var(--text-muted); white-space: nowrap; }
.sim-stamp__diamond { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); flex: none; display: inline-block; }
.sim-stamp--self-contained .sim-stamp__diamond { background: transparent; border: 1.5px solid currentColor; border-radius: 50%; transform: none; }
.sim-stamp--guide .sim-stamp__diamond { width: 7px; height: 9px; border-radius: 1px; background: transparent; border: 1.5px solid currentColor; transform: none; }
.mode-strip.status-line { padding: 16px 0; }
.page-head + .mode-strip.status-line { margin-top: -16px; }
.status-line__signin { color: var(--text-muted); }
.mode-strip--degraded { --tone: var(--bad); }
.mode-strip--off, .mode-strip--guide { --tone: var(--text-muted); }
.mode-strip > .pill { flex: none; }
.mode-strip__text { flex: 1 1 320px; min-width: 0; color: var(--text); text-wrap: pretty; }
.mode-strip__more { flex: none; }
.mode-strip__more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--link); border-radius: 6px; }
.mode-strip__more > summary:hover { text-decoration: underline; }
.mode-strip__more > summary::-webkit-details-marker { display: none; }
.mode-strip__more > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--t-fast); }
.mode-strip__more[open] > summary::after { transform: rotate(225deg); }
.mode-strip__more[open] { flex-basis: 100%; }
.mode-strip__more[open] > summary { margin-left: auto; display: flex; width: fit-content; }
.mode-strip__body { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 0; font-size: 13.5px; color: var(--text-muted); max-width: 86ch; animation: rise var(--t-med) var(--ease) backwards; }
.mode-strip__body strong { color: var(--text); }
.mode-strip__body .prod-note { border: 0; padding: 0; }
.prod-note { font-size: 13.5px; border-left: 2px solid var(--border-strong); padding: 2px 0 2px 12px; color: var(--text-muted); }
.prod-note strong { color: var(--text); }

/* The verdict: an outcome, stamped */
.verdict { --tone: var(--info); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start; border-radius: var(--radius); padding: 18px 20px; background: color-mix(in srgb, var(--tone) 8%, var(--surface)); animation: rise var(--t-med) var(--ease) backwards; overflow: hidden; }
.verdict::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--tone); opacity: 0; pointer-events: none; animation: land 0.9s ease-out; }
.verdict--ok { --tone: var(--ok); }
.verdict--warn { --tone: var(--warn); }
.verdict--bad { --tone: var(--bad); }
.verdict__stamp { grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--tone); color: var(--tone); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; transform: rotate(-8deg); animation: stamp 560ms var(--spring) 120ms backwards; }
.verdict--bad .verdict__stamp { border-radius: 12px; }
.verdict--warn .verdict__stamp { border-radius: 12px; }
.verdict > :not(.verdict__stamp) { grid-column: 2; }
.verdict__title { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--heading); line-height: 1.25; padding-top: 2px; }
.verdict__foot { font: 400 11.5px var(--mono); color: var(--text-muted); }
.verdict--lettered { align-items: center; border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); }
.verdict--lettered .verdict__stamp { grid-row: 1 / span 4; width: auto; height: auto; padding: 8px 12px; border-width: 2px; border-radius: 6px; font: 700 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; transform: rotate(-6deg); align-self: center; }
.verdict--lettered.verdict--ok .verdict__stamp { width: 76px; height: 76px; padding: 0; border-radius: 50%; font-size: 10.5px; letter-spacing: 0.06em; }
.verdict__extra { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.two-pane { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.two-pane > * { min-width: 0; }
.pane--good { box-shadow: inset 0 3px 0 var(--ok); }
.pane--bad { box-shadow: inset 0 3px 0 var(--bad); }
.scene { display: flex; flex-direction: column; gap: 14px; }
.scene__toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.scene__progress { flex: 1 1 200px; height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.scene__progress-fill { height: 100%; width: 0; background: var(--signal); border-radius: inherit; transition: width 0.5s var(--ease); }
.scene__cols { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.scene__cols > * { min-width: 0; }
.scene__tabs { display: none; }
.scene__tab { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; font-weight: 700; color: var(--text); }
.scene__tab:hover { border-color: var(--border-strong); }
.scene__tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (min-width: 641px) {
  .scene--focus .scene__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
  .scene--focus .scene__cols { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .scene--focus .scene__cols::-webkit-scrollbar { display: none; }
  .scene--focus .scene__cols > .scene__pane { flex: 0 0 100%; scroll-snap-align: start; }
}
.scene__unseen { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: var(--signal); color: var(--ink-on-blue); font: 600 11px/1 var(--mono); }
.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; }
.timeline__row { --lane: var(--border-strong); position: relative; display: grid; grid-template-columns: 10px 1fr; gap: 12px; font-size: 13.5px; padding-bottom: 12px; animation: slide-in 360ms var(--ease) backwards; }
.timeline__row:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: -4px; width: 2px; background: var(--border); }
.timeline__lane { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--lane); position: relative; z-index: 1; }
.timeline__row > div { min-width: 0; overflow-wrap: anywhere; }
.timeline__meta { font: 400 11.5px var(--mono); color: var(--text-muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--text-muted); }
.legend__item { --lane: var(--border-strong); }
.legend__swatch { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lane); margin-right: 5px; vertical-align: 0; }
.lane-app { --lane: var(--lane-app); }
.lane-okta { --lane: var(--lane-okta); }
.lane-entra { --lane: var(--lane-entra); }
.lane-partner { --lane: var(--lane-partner); }
.lane-hr { --lane: var(--lane-hr); }
.lane-siem { --lane: var(--lane-siem); }
.lane-apps { --lane: var(--lane-apps); }

/* Exchange record */
.exchange > summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px 0; color: var(--text-muted); font-family: var(--mono); }
.exchange__body { display: flex; flex-direction: column; gap: 8px; }

/* The tour (kit/tour.js): a slip joined to its subject by a short rail. The dot runs from the slip to the subject. */
.tour-btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px; border-radius: 10px; color: var(--house-muted); font-size: 13.5px; font-weight: 700; transition: background-color var(--t-fast), color var(--t-fast); }
.tour-btn:hover { background: var(--house-glass); color: var(--house-ink); }
.tour-btn .glyph { width: 18px; height: 18px; }
.menu-toggle { position: relative; }
.is-pinged::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--signal); pointer-events: none; animation: ping 900ms var(--ease) 2 both; }
@keyframes ping { from { opacity: 0.95; transform: scale(1); } to { opacity: 0; transform: scale(1.55); } }
.tour { position: fixed; inset: 0; z-index: var(--z-tour); }
.tour__scrim { position: absolute; inset: 0; }
.tour[data-anchor="none"] .tour__scrim { background: var(--scrim); }
.tour__ring { position: fixed; border-radius: 14px; box-shadow: 0 0 0 100vmax var(--scrim); outline: 2px solid var(--signal); pointer-events: none; }
.tour__rail { position: fixed; width: 2px; margin-left: -1px; pointer-events: none; }
.tour__rail::before { content: ""; position: absolute; inset: 0; background: var(--signal); }
.tour[data-anchor="none"] .tour__ring, .tour[data-anchor="none"] .tour__rail, .tour[data-anchor="docked"] .tour__rail { display: none; }
.tour__dot { position: absolute; left: 50%; top: -11px; width: 9px; height: 22px; margin-left: -4.5px; border-radius: 9px; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 32%, transparent); }
.tour[data-anchor="above"] .tour__dot { top: auto; bottom: -11px; }
.tour__card { position: fixed; left: 0; top: 0; width: min(380px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px; background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.tour.is-pending .tour__card { visibility: hidden; }
.tour__card--welcome { width: min(470px, calc(100vw - 24px)); padding: 26px 28px 22px; gap: 12px; }
.tour__count { display: flex; align-items: center; justify-content: space-between; font: 600 11px/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }
.tour__title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--heading); }
.tour__card--welcome .tour__title { font-size: 27px; letter-spacing: -0.03em; line-height: 1.12; }
.tour__body { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.tour__card--welcome .tour__body { font-size: 16px; }
.tour__legend { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; vertical-align: -1px; }
.tour__stops { list-style: none; margin: 6px 0 2px; padding: 0; display: flex; align-items: center; }
.tour__stops li { position: relative; flex: 1 1 0; height: 10px; }
.tour__stops li:last-child { flex: none; width: 10px; }
.tour__stops li::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface-raised); z-index: 1; }
.tour__stops li:not(:last-child)::after { content: ""; position: absolute; left: 10px; right: 0; top: 4px; height: 2px; background: var(--border); }
.tour__stops li[data-state="done"]::before { background: var(--signal); border-color: var(--signal); }
.tour__stops li[data-state="done"]::after { background: var(--signal); }
.tour__stops li[data-state="current"]::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 24%, transparent); }
.tour__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.tour__skip { min-height: 32px; padding: 4px 2px; font-size: 13.5px; font-weight: 700; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.tour__skip:hover { color: var(--text); }
.tour__nav { display: inline-flex; gap: 8px; margin-left: auto; }
.tour.is-moving .tour__card { animation: rise var(--t-med) var(--ease) backwards; }
.tour.is-moving[data-anchor="below"] .tour__rail::before { transform-origin: center bottom; animation: tour-draw 360ms var(--ease) backwards; }
.tour.is-moving[data-anchor="above"] .tour__rail::before { transform-origin: center top; animation: tour-draw 360ms var(--ease) backwards; }
.tour.is-moving[data-anchor="below"] .tour__dot { animation: tour-run-up 480ms var(--ease) backwards; }
.tour.is-moving[data-anchor="above"] .tour__dot { animation: tour-run-down 480ms var(--ease) backwards; }
@keyframes tour-draw { from { transform: scaleY(0); } to { transform: none; } }
@keyframes tour-run-up { from { transform: translateY(24px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tour-run-down { from { transform: translateY(-24px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Motion: transform and opacity only. Motion means something happened. */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes pop { 0% { transform: scale(0.7); } 100% { transform: scale(1); } }
@keyframes breathe { 50% { transform: scale(1.1); } }
@keyframes land { 0% { opacity: 0.2; } 100% { opacity: 0; } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-22deg) scale(1.9); } 60% { opacity: 1; } 100% { opacity: 1; } }
@keyframes seal-nod { 40% { transform: rotate(-9deg) scale(1.06); } 70% { transform: rotate(5deg); } }
@keyframes token-run { from { transform: translateX(-40vw); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
.page > *:not(.page-head):not(.hero):not(.welcome):not(.landing) { animation: rise 360ms var(--ease) backwards; }
.page > *:nth-child(2) { animation-delay: 40ms; }
.page > *:nth-child(3) { animation-delay: 80ms; }
.page > *:nth-child(4) { animation-delay: 120ms; }
.page > *:nth-child(n+5) { animation-delay: 160ms; }
.rise > * { animation: rise 380ms var(--ease) backwards; }
.rise > *:nth-child(2) { animation-delay: 50ms; }
.rise > *:nth-child(3) { animation-delay: 100ms; }
.rise > *:nth-child(4) { animation-delay: 150ms; }
.rise > *:nth-child(5) { animation-delay: 200ms; }
.rise > *:nth-child(6) { animation-delay: 250ms; }
.rise > *:nth-child(n+7) { animation-delay: 300ms; }
.is-landed { animation: land-row 900ms var(--ease); }
@keyframes land-row { 0% { opacity: 0; transform: translateY(-8px); } 40% { opacity: 1; transform: none; } }

/* Page foot, one-shot arrivals, parts that exist only on a phone */
main.page:has(+ .page--foot) { padding-bottom: var(--s4); }
.page.page--foot > :first-child:not(.page-head):not(.hero):not(.welcome) { margin-top: 0; }
html.is-arrived .rise > * { animation: none; }
.swipe-dots { display: none; }
.exchange > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.exchange > summary::after { content: ""; flex: none; width: 6px; height: 6px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--t-fast); }
.exchange[open] > summary::after { transform: rotate(225deg); }

@media (max-width: 1500px) {
  html.dev .site-header:not(.is-collapsed) .tab .glyph { display: none; }
  html.dev .site-header:not(.is-collapsed) .tab { padding: 0 10px; }
}

@media (max-width: 1320px) {
  .search-btn { min-width: 0; padding: 0 10px; }
  .search-btn__label, .search-btn__kbd, .tour-btn__label { display: none; }
  .tour-btn { width: 40px; padding: 0; justify-content: center; }
}

@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .switch__label { display: none; }
  .welcome { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .account-btn { padding: 3px; border-radius: 12px; }
  .account-btn__text { display: none; }
  .home-facts { grid-template-columns: 1fr; gap: var(--s3); }
  .journey-bar__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .journey-bar .rail-mini { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 640px) {
  .tour__card { padding: 16px 16px 12px; }
  .tour__card--welcome { padding: 22px 20px 16px; }
  .tour__card--welcome .tour__title { font-size: 24px; }
  .tour__card .btn--sm, .tour__skip { min-height: 44px; }
  .tour__card .btn--sm { padding-inline: 16px; font-size: 14.5px; }
  :root { --gutter: 16px; --header-h: 60px; --s6: 40px; }
  body { font-size: 16px; }
  .small, .muted.small, .lab-card__summary, .journey-card__summary, .persona-card__role, .persona-card__how, .explore__summary, .explore__topic-line, .explore__lead, .menu__note, .who-card__how, .who-card__fact, .route__what, .mode-strip, .mode-strip__body, .prod-note, .timeline__row, .field .hint, .palette__hint, .clearing__what, .site-footer, .callout, .chip, .bp > summary, .bp__body, .fact__body, .status-table, .claims, .diff, .toast__body, .tip-bubble, .card__foot { font-size: 14px; }
  .eyebrow, .kicker, .menu__label, .explore__label, .explore__steps, .tour__count, .palette__group-title, .related__title, .journey-card__count, .journey-next__kicker, .journey-bar__label, .hero__eyebrow, .hero__try-title, .clearing__where, .route__where, .lesson-bucket h3, .lesson-card__num, .fidelity, .stamp-tag, .bp__level, .status-table td[data-label]::before, .deeper__title, .page > details.explainer::before, .fact__n { font-size: 12.5px; letter-spacing: 0.07em; }
  .mono, .timeline__meta, .route__fact, .clearing__slip-line, .clearing__note, .verdict__foot, .site-footer__row--meta, .site-footer .mono, .seq-note, .menu__link-sub, .explore__mech, .lab-card__mech, .status-row__mech, .toast__detail, .exchange > summary, .claims dt, .claims dd .value, .diff__name, .diff__old, .diff__new, .env-tag, .sim-chip, .account-panel__id .muted, .code-block pre { font-size: 13px; }
  .pill, .fdot { font-size: 13px; }
  .site-header__row { gap: 6px; padding: 0 8px 0 4px; }
  .header-tools { gap: 0; }
  .brand__maker, .brand__rule { display: none; }
  .brand__name { font-size: 15px; }
  .icon-btn, .search-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .account-btn { padding: 5px; border-color: transparent; background: transparent; }
  .site-header.is-collapsed .nav { max-height: calc(100dvh - var(--header-h)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .account-panel { position: fixed !important; top: var(--header-h) !important; left: 0 !important; right: 0 !important; width: auto; max-height: calc(100dvh - var(--header-h)); border-radius: 0 0 var(--radius-lg) var(--radius-lg); border-width: 0 0 1px; padding-bottom: env(safe-area-inset-bottom); }
  .account-panel__who { border-radius: 0; }
  .account-panel .persona-grid { grid-template-columns: minmax(0, 1fr); }
  .account-panel .persona-card__how { display: none; }
  .menu__link { min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 46px; }
  .btn--sm { min-height: 44px; padding: 6px 14px; font-size: 14px; }
  .input, .select { min-height: 46px; font-size: 16px; }
  .filter-chip, .check { min-height: 44px; height: auto; font-size: 14px; }
  .tip-btn { position: relative; width: 22px; height: 22px; font-size: 13px; }
  code { font-size: 0.92em; }
  .step__badge { font-size: 13px; }
  .legend-row > a { min-height: 44px; display: inline-flex; align-items: center; }
  .tip-btn::after { content: ""; position: absolute; inset: -13px; }
  .fact__link { min-height: 44px; }
  .copy-btn { width: 44px; height: 44px; opacity: 1; top: 4px; right: 4px; }
  .code-block pre { padding-right: 54px; }
  .exchange > summary { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .legend { font-size: 13px; }
  .scene__unseen, .bp__tag { font-size: 12.5px; }
  .scene__unseen { min-width: 22px; height: 22px; }
  .mode-strip__more { flex-basis: 100%; margin-top: -6px; }
  .mode-strip__more > summary, .mode-strip__more[open] > summary { min-height: 44px; margin-left: 0; display: inline-flex; }
  details.explainer > summary { min-height: 52px; }
  .page { gap: 20px; }
  .page-head { padding: 22px 0 28px; row-gap: 8px; }
  .page-head > .actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; margin-top: 8px; }
  .page-head > .actions > .btn { flex: 1 1 auto; padding-inline: 12px; }
  .lead { font-size: 16.5px; }
  .card { padding: 18px 16px; }
  .actions > .btn, .card__foot > .btn { flex: 1 1 100%; }
  .claims { grid-template-columns: 1fr; }
  .claims dd { border-top: 0; padding-top: 0; }
  .modal { padding: 0; align-items: flex-end; overflow: hidden; }
  .modal__dialog, .modal__dialog--sm { width: 100%; max-height: 94dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; animation: sheet-up var(--t-med) var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  .modal__head { padding: 18px 16px 6px; }
  .modal__head h2 { font-size: 21px; }
  .modal__head .icon-btn { background: var(--surface-2); border-radius: 50%; flex: none; }
  .modal__body { padding: 8px 16px 16px; }
  .modal__foot { padding: 12px 16px; }
  .modal__foot > .actions, .modal__foot > .btn { flex: 1 1 100%; }
  .modal__foot > .actions:empty { display: none; }
  .modal__foot:not([hidden]) ~ .modal__close-bar { display: none; }
  .modal__foot > .actions > .btn { flex: 1 1 0; }
  .modal__close-bar { display: flex; margin: 0 16px 14px; }
  .modal__dialog--sm .modal__close-bar { display: none; }
  .palette { padding: 0; }
  .palette__dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .palette__search { padding: 0 6px 0 16px; }
  .palette__search .kbd { display: none; }
  .palette__close { display: inline-flex; }
  .palette__item { min-height: 52px; }
  .palette__foot { display: none; }
  .who-card { padding: 18px 16px; }
  .who-card__top .seal--xl { width: 64px; height: 64px; }
  .who-card__fact { margin-left: 0; }
  .who-card__actions > .btn { flex: 1 1 auto; }
  .route { grid-auto-flow: row; gap: 0; }
  .route__stop { padding: 0 0 12px 24px; }
  .route__stop:last-child { padding-bottom: 0; }
  .route__stop::before { top: 5px; }
  .route__stop:not(:last-child)::after { left: 4px; right: auto; top: 15px; bottom: -5px; width: 2px; height: auto; }
  .lab-grid { grid-template-columns: 1fr; }
  .rows__row { grid-template-columns: minmax(0, 1fr); }
  .rows__meta, .rows__action { justify-content: flex-start; }
  .rows__action > .btn { flex: 1 1 auto; }
  .facts { gap: 10px 22px; }
  .facts dt { font-size: 12.5px; }
  .persona-card__name { font-size: 15px; }
  .welcome .actions > .btn { flex: none; }
  .journey-grid, .scene__cols { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .journey-grid::-webkit-scrollbar, .scene__cols::-webkit-scrollbar, .clearing__tabs::-webkit-scrollbar, .scene__tabs::-webkit-scrollbar { display: none; }
  .journey-grid > .journey-card { flex: 0 0 86%; scroll-snap-align: start; animation: none; }
  .scene__cols { align-items: flex-start; overflow-y: hidden; }
  .scene__cols > .scene__pane { flex: 0 0 88%; scroll-snap-align: start; }
  .scene__tabs { display: flex; gap: 6px; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .scene__tab { min-height: 44px; font-size: 14px; }
  .input--search { width: 100%; }
  .status-table thead { display: none; }
  .status-table, .status-table tbody, .status-table tr, .status-table th, .status-table td { display: block; width: 100%; }
  .status-table tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .status-table tr:last-child { border-bottom: 0; }
  .status-table th, .status-table td { border: 0; padding: 6px 16px; }
  .status-table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
  .site-footer__inner { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .site-footer__row { flex-direction: column; align-items: flex-start; }
  .site-footer__links { gap: 0 22px; }
  .site-footer__links a, .site-footer__links button { min-height: 44px; display: inline-flex; align-items: center; }
  .verdict { grid-template-columns: 1fr; padding: 16px; }
  .verdict > :not(.verdict__stamp) { grid-column: 1; }
  .verdict__stamp { grid-row: auto; }
  .verdict--lettered .verdict__stamp { justify-self: start; }
  .story-bar__leave, .story-bar__next { min-height: 44px; }
  .story-bar__next { min-height: 36px; }
  .story-bar__next-name, .story-bar__leave-more { display: none; }
  .story-bar__actions { gap: 4px 12px; }
  .journey-bar__lead .story-seals { display: none; }
  .journey-bar__label { white-space: nowrap; }
  body:has(.journey-bar) .toast-host { top: calc(var(--header-h) + 92px); }
  .toast-host { right: 12px; left: 12px; width: auto; }
  .seq-wrap { margin-inline: -4px; }
  .journey-bar__inner { padding-block: 8px 10px; }
  .journey-bar .btn { min-height: 44px; }
  .journey-next .btn { flex: 1 1 100%; }
  .related__grid { grid-template-columns: 1fr; gap: 4px; }
  .related { gap: 10px; }
  .site-header.is-collapsed .nav.is-open { box-shadow: 0 0 0 100vmax var(--scrim); clip-path: inset(0 -100vmax -100vmax -100vmax); }
  .swipe-dots { display: flex; justify-content: center; gap: 7px; margin-top: -12px; }
  .swipe-dots__mark { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--border-strong); transition: transform var(--t-med) var(--spring); }
  .swipe-dots__mark.is-here { background: var(--signal); border-color: var(--signal); transform: scale(1.25); }
  .page-head { padding: 16px 0 20px; row-gap: 6px; }
  .page-head > .lead { font-size: 16px; line-height: 1.45; }
  .page-head:not(.page-head--full) > .lead:not(.is-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .page-head > .actions { margin-top: 6px; }
  .mode-strip { position: relative; min-height: 44px; align-items: center; padding-bottom: 8px; margin-block: -10px -6px; }
  .mode-strip:has(.mode-strip__more:not([open])) .mode-strip__text { display: none; }
  .mode-strip:has(.mode-strip__more) .mode-strip__text { flex-basis: 100%; }
  .mode-strip__more { margin-top: 0; }
  .mode-strip__more > summary, .mode-strip__more[open] > summary { position: absolute; top: 0; right: 0; }
  .status-summary { grid-template-columns: 1fr; gap: 0; }
  .status-count { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
  .status-count:first-child { border-top: 2px solid var(--heading); }
  .status-count__n { grid-row: 1 / span 2; font-size: 36px; }
  .status-count__meaning { grid-column: 2; }
  .status-group__summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 4px 10px; }
  .status-group__summary::after { margin: 0; justify-self: center; }
  .status-group__title { font-size: 19px; align-items: flex-start; }
  .status-group__title > .icon-tile { flex: none; margin-top: -3px; }
  .status-group__tally > .mono { display: none; }
}

@media (max-width: 374px) {
  .page-head .page-title { font-size: 27px; }
}

@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .btn:hover:not([disabled]):not([aria-disabled="true"]), .card-link:hover, .lab-card:hover, .journey-card:hover, .persona-card:hover, .landing-story:hover, .lesson-card:hover { transform: none; }
  .page-head__rail::after { animation: none; }
}

/* Landing page: daylight or ink with the aurora, the stories on the left and the signing rail on the right */
.page--landing { --page-w: 1176px; gap: 0; padding-bottom: 0; }
.landing { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 64px; align-items: start; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 24px) 0 32px; color: var(--house-ink); }
.landing::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; background: radial-gradient(620px 420px at 8% 0%, var(--aura-1), transparent 70%), radial-gradient(560px 460px at 78% 6%, var(--aura-2), transparent 70%), radial-gradient(700px 420px at 58% 100%, var(--aura-3), transparent 72%), linear-gradient(180deg, var(--house-top), var(--house)); border-bottom: 1px solid var(--house-line); }
.landing :focus-visible { outline-color: var(--house-accent); }
.landing__main { min-width: 0; }
.landing__eyebrow { font: 600 11.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--house-accent); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.landing__eyebrow-token { width: 14px; height: 5px; border-radius: 5px; background: var(--signal); display: block; }
.landing__title { margin-top: 12px; font-size: clamp(39px, 2.6vw + 27px, 64px); line-height: 1.03; letter-spacing: -0.045em; font-weight: 800; color: var(--house-ink); }
.landing__title em { font-style: normal; color: var(--house-accent); position: relative; white-space: nowrap; }
.landing__title em::before { content: ""; position: absolute; left: 2px; right: 12px; bottom: -3px; height: 3px; border-radius: 3px; background: var(--signal); opacity: 0.32; }
.landing__title em::after { content: ""; position: absolute; right: -2px; bottom: -6px; width: 24px; height: 9px; border-radius: 9px; background: var(--signal); box-shadow: 0 0 0 5px color-mix(in srgb, var(--signal) 22%, transparent); animation: token-run 1100ms var(--ease) 200ms backwards; }
.landing__lead { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--house-muted); max-width: 580px; text-wrap: pretty; }
.landing__label { font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--house-accent); }
.landing-start { margin-top: 20px; }
.landing-stories { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; max-width: 580px; }
.landing-form { margin: 0; }
.landing-story { position: relative; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 68px; padding: 9px 16px 9px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--slip-shadow); text-align: left; transition: transform var(--t-med) var(--ease), border-color var(--t-fast); }
.landing-story:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.landing-story .seal--lg { width: 44px; height: 44px; }
.landing-story > .glyph { width: 20px; height: 20px; }
.landing-story__text { display: flex; flex-direction: column; min-width: 0; }
.landing-story__title { font-weight: 800; font-size: 16.5px; letter-spacing: -0.015em; line-height: 1.25; color: var(--heading); }
.landing-story__as { font-size: 13.5px; line-height: 1.35; color: var(--text-muted); }
.landing-story--first { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.landing-story--first:hover { border-color: var(--accent); background: var(--accent-hover); }
.landing-story--first .landing-story__title { color: var(--accent-ink); }
.landing-story--first .landing-story__as { color: var(--accent-ink); opacity: 0.86; }
.landing-story--first .seal__shape { stroke: rgba(255, 255, 255, 0.7); }
.landing-story[data-token]::before { content: ""; position: absolute; left: -11px; top: calc(50% - 4.5px); width: 22px; height: 9px; border-radius: 9px; background: var(--signal); box-shadow: 0 0 0 5px color-mix(in srgb, var(--signal) 22%, transparent); animation: token-run 900ms var(--ease) backwards; }
.landing-story--first[data-token]::before { background: var(--house-ink); }
.story-seals { display: inline-flex; flex: none; }
.story-seals > .seal + .seal { margin-left: -12px; }
.story-seals > .seal--sm + .seal--sm { margin-left: -9px; }
.landing-story__area { font: 600 10px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); }
.landing-story--first .landing-story__area { color: var(--accent-ink); opacity: 0.82; }
.landing-story__as-short { display: none; }
.doors { margin-top: 18px; max-width: 580px; }
.doors__row { margin-top: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.door { display: grid; gap: 7px; align-content: start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--house-line); background: var(--house-glass); color: var(--house-ink); text-align: left; transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-med) var(--ease); }
.door:hover { background: var(--house-glass-strong); border-color: var(--hero-edge); transform: translateY(-2px); }
.door__who { display: flex; align-items: center; min-height: 28px; }
.door__who .seal--sm { width: 26px; height: 26px; }
.door__who .seal + .seal { margin-left: -8px; }
.door__text { display: flex; flex-direction: column; min-width: 0; }
.door__name { font-weight: 800; font-size: 14.5px; letter-spacing: -0.01em; line-height: 1.2; }
.door__count { font-size: 12.5px; color: var(--house-muted); line-height: 1.3; }
.page:not(.page--landing) .doors { max-width: none; margin-top: 4px; }
.page:not(.page--landing) .doors .landing__label { color: var(--link); }
.page:not(.page--landing) .door { background: var(--surface); border-color: var(--border); color: var(--text); }
.page:not(.page--landing) .door:hover { border-color: var(--border-strong); }
.page:not(.page--landing) .door__name { color: var(--heading); }
.page:not(.page--landing) .door__count { color: var(--text-muted); }
.landing__quiet { margin-top: 14px; font-size: 13.5px; color: var(--house-muted); display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.landing__tour { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--house-accent); font-weight: 700; }
.landing__tour .glyph { width: 16px; height: 16px; }
.landing__tour:hover { text-decoration: underline; }
@media (max-width: 640px) { .landing__tour { min-height: 44px; } }
.landing__rail { min-width: 0; padding-top: 2px; }

.sign-rail__tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.sign-rail__tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 11px 5px 5px; white-space: nowrap; border-radius: 999px; border: 1px solid var(--house-line); color: var(--house-muted); font-size: 13px; font-weight: 650; transition: background-color var(--t-fast), color var(--t-fast); }
.sign-rail__tab:hover { background: var(--house-glass); color: var(--house-ink); }
.sign-rail__tab[aria-pressed="true"] { background: var(--house-ink); border-color: var(--house-ink); color: var(--house); }
.sign-rail__tab .seal--sm { width: 22px; height: 22px; }
.sign-rail__tab-short { display: none; }
.sign-rail__note { margin-top: 10px; font: 400 11.5px/1.5 var(--mono); color: var(--house-muted); }
.sign-rail__track { list-style: none; margin: 18px 0 0; padding: 0; }
.sign-rail__stop { position: relative; padding: 0 0 16px 34px; }
.sign-rail__stop::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: -6px; width: 2px; background: var(--signal); }
.sign-rail__stop[data-ok="no"]::before { background: repeating-linear-gradient(180deg, var(--house-muted) 0 4px, transparent 4px 8px); }
.sign-rail__stop--end::before { display: none; }
.sign-rail__node { position: absolute; left: 1px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--signal); }
.sign-rail__stop--end .sign-rail__node { left: 2px; top: -1px; width: 12px; height: 24px; border-radius: 12px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--signal) 22%, transparent); }
.sign-rail__where { font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--house-accent); }
.sign-rail__what { font-size: 14px; line-height: 1.4; color: var(--house-muted); }
.sign-rail__slip { position: relative; margin-top: 8px; padding: 10px 14px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--slip-shadow); color: var(--text); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
.sign-rail__slip > .seal { grid-row: 1; }
.sign-rail__title { font-weight: 800; font-size: 15px; letter-spacing: -0.012em; color: var(--heading); line-height: 1.25; grid-column: 1 / 3; }
.sign-rail__slip > .seal + .sign-rail__title { grid-column: 2; }
.sign-rail__line { grid-column: 1 / -1; font: 400 12px/1.45 var(--mono); color: var(--text-muted); }
.sign-rail__mark { grid-column: 3; grid-row: 1; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 800 12px var(--font); color: var(--surface); background: var(--ok); }
.sign-rail__mark[data-tone="bad"] { background: var(--bad); border-radius: 5px; }
.sign-rail__slip--end { padding-bottom: 12px; padding-right: 128px; }
.sign-rail__slip--end .sign-rail__title { font: 600 17px var(--mono); letter-spacing: -0.02em; }
.sign-rail__stamp { position: absolute; right: 14px; top: 50%; margin-top: -15px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 10px; border: 2px solid currentColor; border-radius: 7px; color: var(--ok); transform: rotate(-6deg); animation: stamp 620ms var(--spring) 300ms backwards; }
.sign-rail__stamp[data-tone="held"] { color: var(--held); border-radius: 3px; }
.sign-rail__stamp[data-tone="bad"] { color: var(--bad); border-radius: 3px; }
.sign-rail__foot { margin: 2px 0 0 34px; font-size: 14.5px; color: var(--house-muted); text-wrap: pretty; }
.sign-rail__foot strong { color: var(--house-ink); font-weight: 750; }

.landing-below { display: flex; flex-direction: column; gap: 40px; padding: 44px 0 52px; }
.built { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; padding: 20px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.built__logo { width: 40px; height: 40px; }
.built__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.built__k { font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); }
.built h2 { font-size: 20px; letter-spacing: -0.02em; font-weight: 800; color: var(--heading); }
.built p:not(.built__k) { font-size: 14.5px; color: var(--text-muted); max-width: 640px; text-wrap: pretty; }
.built__go .glyph { width: 17px; height: 17px; }

/* Signed-in home and status page */
.welcome { padding-bottom: 40px; }
.journey-card__meta:has(.journey-card__as) { flex-direction: column; align-items: flex-start; gap: 8px; }
.journey-card__as { font-weight: 600; color: var(--text-muted); }
.continue-story { margin-top: 4px; }
.status-count__what { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; color: var(--heading); }
.status-row__lab .fdot { margin-top: 4px; }
.status-close { color: var(--text-muted); font-size: 14.5px; max-width: 70ch; }

@media (max-width: 1100px) {
  .landing { gap: 40px; }
}

@media (max-width: 860px) {
  .story-rail { display: none; }
  .journey-bar__inner { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 760px) {
  .landing { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: calc(var(--header-h) + 18px) 0 30px; }
  .landing__title { margin-top: 12px; letter-spacing: -0.04em; }
  .landing__title em::after { width: 18px; height: 7px; bottom: -4px; }
  .landing__lead { font-size: 15.5px; margin-top: 14px; }
  .landing__eyebrow-token, .landing__eyebrow-more { display: none; }
  .landing-start { margin-top: 16px; }
  .landing-story { gap: 12px; padding: 8px 12px 8px 10px; }
  .landing-story__title { font-size: 15px; }
  .landing-story__as { font-size: 12.5px; }
  .landing-story { min-height: 64px; padding: 7px 12px 7px 10px; }
  .landing__lead-more, .landing-story__as-long { display: none; }
  .landing-story__as-short { display: inline; }
  .doors { margin-top: 16px; }
  .doors__row { gap: 6px; }
  .door { padding: 8px 6px 9px; justify-items: center; text-align: center; min-height: 44px; }
  .door__name { font-size: 12.5px; }
  .door__count { display: none; }
  .landing__quiet { gap: 0 14px; }
  .landing__rail { border-top: 1px solid var(--house-line); padding-top: 24px; }
  .sign-rail__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sign-rail__tab { justify-content: center; min-height: 44px; padding: 5px 8px 5px 6px; }
  .sign-rail__tab-full { display: none; }
  .sign-rail__tab-short { display: inline; }
  .sign-rail__slip--end { padding-right: 14px; padding-bottom: 46px; }
  .sign-rail__slip--end .sign-rail__stamp { top: auto; bottom: 10px; margin-top: 0; }
  .landing-below { padding: 32px 0 40px; gap: 32px; }
  .built { grid-template-columns: auto minmax(0, 1fr); padding: 18px 16px; }
  .built__go { grid-column: 1 / -1; }
}

/* Full screen (kit/fullscreen.js): the view's own surface, never the browser's black. */
.fs-btn { gap: 8px; }
.fs-btn__icon { display: inline-flex; }
.fs-btn__icon .glyph { width: 18px; height: 18px; }
.is-full { background: var(--surface); overflow: auto; }
.is-full.fs-overlay { position: fixed; inset: 0; z-index: var(--z-modal); margin: 0; border-radius: 0; box-shadow: none; }
html.fs-locked, html.fs-locked body { overflow: hidden; }
