

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --night: #0b1220;
  --night-2: #121b2e;
  --night-3: #1b2640;
  --night-line: #283652;
  --night-line-2: #3a4a6d;
  --night-ink: #f8fafc;
  --night-ink-2: #aab9d6;
  --lamp-night: #7fb2ff;
  --lamp-night-soft: rgb(127 178 255 / 0.14);
  --passed-night: #86efac;
  --passed-night-soft: rgb(34 197 94 / 0.16);
  --danger-night: #fca5a5;
  --danger-night-soft: rgb(220 38 38 / 0.18);
  --sev-critical-night: #f87171;
  --sev-high-night: #fb923c;
  --sev-medium-night: #facc15;
  --sev-low-night: #4ade80;

  --sheet: #ffffff;
  --fog: #f8fafc;
  --rule: #cbd5e1;
  --rule-2: #e2e8f0;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #475569;
  --lamp: #2563eb;
  --lamp-hover: #1d4ed8;
  --lamp-soft: #eff6ff;
  --on-lamp: #ffffff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --danger-ink: #b91c1c;
  --caution: #c2410c;
  --caution-soft: #fdf2ec;
  --safe: #15803d;
  --safe-soft: #dcfce7;
  --on-signal: #ffffff;
  --hazard: #f59e0b;
  --ink-mark: #0f172a;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bar-h: 64px;
  --chapters-h: 52px;
}



*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + var(--chapters-h) + 16px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--rule) var(--sheet);
}
body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--lamp);
  accent-color: var(--lamp);
}
::selection { background: var(--lamp-soft); color: var(--ink); }
.night ::selection, .bar ::selection { background: var(--lamp-night-soft); color: var(--night-ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sheet); }
::-webkit-scrollbar-thumb { background: var(--rule); border: 3px solid var(--sheet); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; border-radius: var(--r-sm); }
.night :focus-visible, .bar :focus-visible { outline-color: var(--lamp-night); }
main:focus, main:focus-visible, .chapter h2:focus, .chapter h2:focus-visible { outline: none; }

a {
  color: var(--lamp);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgb(37 99 235 / 0.4);
  text-underline-offset: 3px;
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
a:hover { color: var(--lamp-hover); text-decoration-color: currentColor; }
.night a:not(.btn) { color: var(--lamp-night); text-decoration-color: rgb(127 178 255 / 0.45); }
.night a:not(.btn):hover { color: var(--night-ink); }

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; color: var(--ink); }
h1 { font-size: 52px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.022em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.011em; }
p { margin: 0 0 14px; max-width: 68ch; text-wrap: pretty; }
code {
  font-family: var(--mono);
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
p code { padding: 1px 6px; background: var(--fog); border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); }
data, time { font-variant-numeric: tabular-nums; }
svg.i { width: 16px; height: 16px; flex-shrink: 0; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 12px; background: var(--sheet); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--r-sm); font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }



.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; color: var(--ink);
  font: 500 15px/1 var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0.5px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--lamp); border-color: var(--lamp); color: var(--on-lamp); font-weight: 600; }
.btn-primary:hover { background: var(--lamp-hover); border-color: var(--lamp-hover); color: var(--on-lamp); }
.btn-secondary { background: var(--sheet); border-color: var(--rule); color: var(--ink); }
.btn-secondary:hover { background: var(--fog); border-color: var(--ink-3); color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--night-line-2); color: var(--night-ink); }
.btn-ghost:hover { background: var(--night-3); border-color: var(--night-ink-2); color: var(--night-ink); }
.btn-ghost:disabled:hover { background: transparent; border-color: var(--night-line-2); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 16px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }



.bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--night); border-bottom: 1px solid var(--night-line);
}
.bar-row { display: flex; align-items: center; gap: 24px; height: var(--bar-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: var(--night-ink); font-weight: 700; font-size: 18px; letter-spacing: -0.011em;
  text-decoration: none;
}
.brand:hover { color: var(--night-ink); }
.mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.brand-sm { font-size: 14px; }
.brand-sm .mark { width: 22px; height: 22px; }
.lg-brand { fill: #2563eb; }
.lg-beacon { fill: #ffffff; }
.lg-ink { fill: #ffffff; }
.lg-stroke-brand { stroke: #2563eb; }
.lg-stroke-ink { stroke: #ffffff; }
.bar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.lang {
  display: inline-flex; padding: 2px; margin-right: 6px;
  border: 1px solid var(--night-line-2); border-radius: var(--r-sm);
}
.lang a {
  display: inline-flex; align-items: center; height: 28px; padding: 0 9px;
  border-radius: 4px; color: var(--night-ink-2); font: 600 13px/1 var(--sans);
  text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.lang a:hover { background: var(--night-3); color: var(--night-ink); }
.lang a[aria-current] { background: var(--lamp); color: var(--on-lamp); }



.night { background: var(--night); color: var(--night-ink); }
.night h1, .night h2, .night h3 { color: var(--night-ink); }
.hero { padding: 28px 0 32px; border-bottom: 1px solid var(--night-line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 520fr) minmax(0, 640fr);
  grid-template-rows: auto auto;
  gap: 0 64px;
  align-items: start;
}
.hero-copy { grid-column: 1; grid-row: 1; padding-top: 8px; }
.hero .stage { grid-column: 2; grid-row: 1 / span 2; }
.hero .answers { grid-column: 1; grid-row: 2; }
.hero h1 { max-width: 16ch; font-size: 46px; line-height: 1.08; }
html[lang="fr"] .hero h1 { max-width: 20ch; font-size: 38px; line-height: 1.12; }
.lede { font-size: 19px; line-height: 1.55; margin: 24px 0 32px; max-width: 50ch; color: var(--night-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.answers {
  margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--night-line);
  color: var(--night-ink-2); font-size: 15px; max-width: 54ch;
}
.answers-lead { color: var(--night-ink); font-weight: 600; }


.stage {
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg);
  overflow: clip; min-width: 0;
}
.stage-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--night-line);
}
.stage-tabs {
  display: inline-flex; gap: 2px; padding: 2px;
  border: 1px solid var(--night-line-2); border-radius: var(--r-sm);
}
.stage-tabs [role="tab"] {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  border: 0; border-radius: 4px; background: transparent; color: var(--night-ink-2);
  font: 500 13px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.stage-tabs [role="tab"]:hover { background: var(--night-3); color: var(--night-ink); }
.stage-tabs [role="tab"][aria-selected="true"] { background: var(--lamp); color: var(--on-lamp); font-weight: 600; }
.stage-tabs [role="tab"]:focus-visible { outline-offset: -2px; }
.stage-controls { display: flex; gap: 8px; margin-left: auto; }
.stage-panel { display: flex; flex-direction: column; min-height: 420px; }
.stage-panel[hidden] { display: none; }
.stage-panel .turns { flex: 1 1 auto; }
.stage-foot {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 12px 20px; border-top: 1px solid var(--night-line);
}
.stage-note { margin: 0; max-width: none; font-size: 13px; line-height: 1.5; color: var(--night-ink-2); }

.turns { list-style: none; margin: 0; padding: 4px 0; }
.turn { padding: 10px 20px; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.turn p { margin: 0; max-width: none; }
.turn.is-pending { opacity: 0; transform: translateY(6px); }
.who { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--night-ink-2); margin-bottom: 6px; }
.turn-user { display: flex; flex-direction: column; align-items: flex-end; }
.turn-user .who { justify-content: flex-end; }
.turn-user .said {
  max-width: 86%; padding: 11px 14px;
  background: var(--night-3); border: 1px solid var(--night-line-2); border-radius: 10px 10px 4px 10px;
  color: var(--night-ink); font-size: 15px; line-height: 1.55;
}
.turn-tool, .turn-step {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start;
  margin: 0 12px; padding: 10px 8px; border-top: 1px solid var(--night-line);
}
.turn-tool + .turn-assistant, .turn-step + .turn-assistant { border-top: 1px solid var(--night-line); margin-top: 0; }
.call { font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.call code { font-size: 1em; padding: 0; background: none; border: 0; border-radius: 0; }
.call .tool, .call .cmd { font-weight: 600; color: var(--night-ink); }
.call .args { color: var(--night-ink-2); }
.turn-step .call .cmd::before { content: "$ "; color: var(--lamp-night); font-weight: 400; }
.answer { grid-column: 1; font-size: 14px; color: var(--night-ink); transition: opacity .2s var(--ease); }
.ms {
  grid-column: 2; grid-row: 1; align-self: start;
  font-family: var(--mono); font-size: 12px; color: var(--night-ink-2); white-space: nowrap;
}
.is-running .answer, .is-running .rows, .is-running .elapsed { opacity: 0; }

.turn-assistant .rows { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--night-line); }
.turn-assistant.is-working .said, .turn-assistant.is-working .rows,
.turn-assistant.is-typing .rows { opacity: 0; }
.turn-assistant.is-working .who::before { animation: pulse 1s ease-in-out infinite; }
.rows .prod-name { font-weight: 600; color: var(--night-ink); }
.turn-calls { padding-top: 0; }
.calls { border-top: 1px solid var(--night-line); }
.calls summary {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px 0; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--night-ink-2); list-style: none;
}
.calls summary::-webkit-details-marker { display: none; }
.calls summary::before {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s var(--ease);
}
.calls[open] summary::before { transform: rotate(45deg); }
.calls summary:hover { color: var(--night-ink); }
.calls summary:focus-visible { outline-offset: 2px; border-radius: var(--r-sm); }
.calls-sum { margin-left: auto; font: 400 12px/1.4 var(--mono); }
.calls-list { list-style: none; margin: 0; padding: 0 0 6px; }
.calls-list .turn-tool, .calls-list .turn-step { margin: 0; padding: 8px 0; }

.rows { grid-column: 1; list-style: none; margin: 6px 0 2px; padding: 0; display: grid; gap: 5px; transition: opacity .2s var(--ease); }
.rows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 13px; line-height: 1.4; color: var(--night-ink); }
.rows .id { font: 500 12px/1.4 var(--mono); color: var(--night-ink); }
.rows .sev { font-weight: 600; }
.rows .sev-critical { color: var(--sev-critical-night); }
.rows .sev-high { color: var(--sev-high-night); }
.rows .sev-medium { color: var(--sev-medium-night); }
.rows .sev-low { color: var(--sev-low-night); }
.rows .score { font-variant-numeric: tabular-nums; color: var(--night-ink); }
.rows .prod, .rows .fix { color: var(--night-ink-2); }
.rows .stamp { align-self: center; }
.is-running .ms::before { content: attr(data-wait); color: var(--lamp-night); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.turn-assistant .who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lamp-night); }
.turn-assistant .said { font-size: 15px; line-height: 1.6; color: var(--night-ink); }
.rest { color: transparent; }
.caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -0.15em;
  background: var(--lamp-night); animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }


.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px;
  border-radius: var(--r-pill); font: 600 12px/1 var(--sans); white-space: nowrap;
  transition: opacity .2s var(--ease);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill.is-pending { opacity: 0; }
.pill-safe { background: var(--safe-soft); color: var(--safe); }
.pill-caution { background: var(--caution-soft); color: var(--caution); }
.pill-danger { background: var(--danger-soft); color: var(--danger-ink); }
.pill-lamp { background: var(--lamp-soft); color: var(--lamp); }
.pill-neutral { background: var(--fog); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.pill-passed { background: var(--passed-night-soft); color: var(--passed-night); }
.pill-blocked { background: var(--danger-night-soft); color: var(--danger-night); }
.stamp {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px; flex-shrink: 0;
  border-radius: 4px; font: 700 11px/1 var(--sans); letter-spacing: .04em;
}
.stamp-kev { background: var(--danger); color: var(--on-signal); }
.stamp-mal { background: var(--ink-mark); color: var(--hazard); box-shadow: inset 0 0 0 1px rgb(245 158 11 / .35); }



.uses { background: var(--sheet); padding: 32px 0 28px; border-bottom: 1px solid var(--rule); }
.uses h2 { font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin: 0 0 14px; }
.use-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--rule);
}
.use-list li { min-width: 0; }
.use-list li + li { border-left: 1px solid var(--rule-2); }
.use {
  display: block; height: 100%; padding: 14px 18px 16px; text-decoration: none; color: var(--ink);
  transition: background-color .15s var(--ease);
}
.use-list li:first-child .use { padding-left: 0; }
.use-name { display: block; font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--lamp); text-wrap: balance; }
.use-said { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.use:hover .use-name { text-decoration: underline; text-underline-offset: 3px; }
.use:focus-visible { outline-offset: -2px; }

.path {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rule);
}
.path-title { margin: 0; max-width: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.path-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; font-size: 14px; }
.path-list li { display: inline-flex; align-items: baseline; }
.path-list li + li::before { content: "\2192"; padding: 0 8px; color: var(--ink-2); }
.path-list a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.path-list a:hover { color: var(--ink); text-decoration-color: currentColor; }



.chapters {
  position: sticky; top: var(--bar-h); z-index: 40;
  background: var(--sheet); border-bottom: 1px solid var(--rule);
}
.chapter-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px; height: var(--chapters-h);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.chapter-list::-webkit-scrollbar { display: none; }
.chapter-list li { flex-shrink: 0; scroll-snap-align: start; }
.chapter-list a {
  display: inline-flex; align-items: center; height: var(--chapters-h); padding: 0 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease);
}
.chapter-list a:hover { color: var(--ink); background: var(--fog); }
.chapter-list a:active { background: var(--rule-2); }
.chapter-list a[aria-current] { color: var(--ink); border-bottom-color: var(--lamp); font-weight: 600; }
.chapter-list a:focus-visible { outline-offset: -2px; border-radius: var(--r-sm) var(--r-sm) 0 0; }



.chapter { padding: 40px 0 48px; }
.js .chapter:not(.is-open) { display: none; }
.js .chapter.is-open { animation: chapter-in .2s var(--ease) both; }
@keyframes chapter-in { from { opacity: 0; } to { opacity: 1; } }
.chapter-head { max-width: 72ch; margin-bottom: 36px; }
.chapter-head h2, .prose h2 { margin-bottom: 14px; }
.intro { font-size: 17px; line-height: 1.6; color: var(--ink); margin-bottom: 20px; }
.prose h3 { margin: 32px 0 8px; }
.prose > h2 + .intro + h3 { margin-top: 28px; }
.prose p, .panel-text p, .rules dd, .verdicts dd { color: var(--ink); }
.muted, .dated, .note, figcaption, .ci-line { color: var(--ink-3); }
.dated, .note { font-size: 13px; }
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.stack { display: grid; gap: 28px; min-width: 0; }

.chapter-foot {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule);
}
.step {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 -10px;
  border-radius: var(--r); color: var(--ink); text-decoration: none; min-width: 0;
  transition: background-color .15s var(--ease);
}
.step:hover { background: var(--fog); color: var(--ink); }
.step-next { margin-left: auto; text-align: right; }
.step-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.step-k { font-size: 13px; color: var(--ink-3); }
.step-n { font-size: 16px; font-weight: 600; line-height: 1.3; }
.step svg.i { width: 20px; height: 20px; color: var(--ink-3); transition: transform .15s var(--ease), color .15s var(--ease); }
.step:hover svg.i { color: var(--lamp); }
.step-prev:hover svg.i { transform: translateX(-2px); }
.step-next:hover svg.i { transform: translateX(2px); }


.fig {
  font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.fig-sm { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); overflow: clip; }
.sheet-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 16px; padding: 16px 20px 14px; background: var(--fog); border-bottom: 1px solid var(--rule);
}
.sheet-title { font-size: 16px; line-height: 1.3; letter-spacing: -0.011em; }
.sheet-meta { margin: 0; font-size: 13px; color: var(--ink-3); }
.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { padding: 12px 20px; text-align: left; font-weight: 400; vertical-align: middle; border-top: 1px solid var(--rule-2); }
.ledger tbody tr:first-child > * { border-top: 0; }
.ledger .num { text-align: right; white-space: nowrap; }
.ledger tbody th { width: 100%; }
.ledger-label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.ledger-win { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.ledger-quiet { margin: 20px 0 0; max-width: 460px; border: 1px solid var(--rule); border-radius: var(--r); border-collapse: separate; border-spacing: 0; overflow: clip; }
.ledger-quiet caption { caption-side: top; text-align: left; padding: 0 0 8px; color: var(--ink-3); font-size: 13px; }
.ledger-quiet th, .ledger-quiet td { padding: 10px 16px; }
.ledger-quiet th { font-weight: 500; }


.risk-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px;
  margin: 0 0 48px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.risk { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; min-width: 0; }
.risk + .risk { padding-left: 40px; border-left: 1px solid var(--rule-2); margin-left: -20px; }
.risk-fig { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 40px; }
.risk-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.risk-sub strong { font-weight: 600; color: var(--ink); }
.risk h3 { margin: 14px 0 6px; font-size: 17px; }
.risk > p:last-child { margin: 0; font-size: 14px; color: var(--ink-2); }
.risk-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.risk-names li { font-size: 13px; font-weight: 500; padding: 3px 9px; border: 1px solid var(--rule); border-radius: var(--r-pill); color: var(--ink); }


.shot { margin: 0; min-width: 0; }
.frame {
  position: relative; background: var(--fog);
  border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden;
}
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ar-record { aspect-ratio: 960 / 900; }
.ar-tab { aspect-ratio: 1280 / 860; }
.ar-4x3 { aspect-ratio: 1280 / 960; }
.ar-wide { aspect-ratio: 1280 / 720; }
.ar-mcp { aspect-ratio: 768 / 940; }
.ar-gate { aspect-ratio: 992 / 620; }
.shot-narrow { max-width: 340px; }
.frame-auto { aspect-ratio: auto; }
.frame-auto img { height: auto; }
.shot-gate { margin: 0; }
.frame-bare { border: 0; background: transparent; }
.shot figcaption { margin-top: 10px; font-size: 13px; max-width: 68ch; }


.tablist {
  display: flex; gap: 4px; border-bottom: 1px solid var(--rule);
  overflow-x: auto; scrollbar-width: none;
}
.tablist::-webkit-scrollbar { display: none; }
.tablist [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 46px; padding: 0 14px; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: transparent; color: var(--ink-2);
  font: 500 15px/1 var(--sans); cursor: pointer;
  transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease);
}
.tablist [role="tab"]:hover { color: var(--ink); background: var(--fog); }
.tablist [role="tab"]:active { background: var(--rule-2); }
.tablist [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--lamp); font-weight: 600; }
.tablist [role="tab"]:focus-visible { outline-offset: -2px; }
.tab-n {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--fog); box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink-2); font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
[aria-selected="true"] > .tab-n { background: var(--lamp); box-shadow: none; color: var(--on-lamp); }
.panel {
  display: grid; grid-template-columns: minmax(0, 340fr) minmax(0, 820fr);
  gap: 40px; align-items: start; padding-top: 32px; border-radius: var(--r);
}
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 8px; }
.panel-text { padding-top: 4px; }
.panel-text h3 { margin-bottom: 10px; }
.panel-text p { margin: 0; }


.list-title { font-size: 17px; margin-bottom: 8px; }
.rules { margin: 0 0 16px; border-top: 1px solid var(--ink); }
.rules > div { padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
.rules dt { font-weight: 600; margin-bottom: 2px; }
.rules dd { margin: 0; font-size: 14px; color: var(--ink-2); }
.split-firewall { grid-template-columns: minmax(0, 520fr) minmax(0, 624fr); }
.ci-line { margin-top: 20px; max-width: 60ch; font-size: 14px; }



.stage-chapter .stage-panel { min-height: 0; }
.stage-chapter .turns { padding-bottom: 8px; }

.stage-chapter .stage-tabs { border: 0; padding: 0; }
.stage-chapter .stage-tabs [role="tab"] { height: 30px; padding: 0 12px; }


.asks { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--ink); }
.asks li { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 4px 20px; padding: 11px 0; border-bottom: 1px solid var(--rule-2); }
.asks .ask-k { font-weight: 600; }
.asks .ask-v { font-size: 14px; color: var(--ink-2); }
.asks code { font-size: 12px; color: var(--ink-3); }
.split-assistant { grid-template-columns: minmax(0, 700fr) minmax(0, 444fr); }
.shot-tall { position: sticky; top: calc(var(--bar-h) + var(--chapters-h) + 24px); }


.int-grid {
  list-style: none; margin: 4px 0 24px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px;
  border-top: 1px solid var(--ink);
}
.int { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-2); min-width: 0; }
.int-tile { width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; flex-shrink: 0; }
.int-tile svg { width: 18px; height: 18px; display: block; }
.int-tile svg.svg-lg { width: 24px; height: 24px; }
.int-text { display: flex; flex-direction: column; min-width: 0; }
.int-name { font-weight: 600; line-height: 1.3; }
.int-cat { color: var(--ink-3); font-size: 13px; line-height: 1.3; }
.int-tile.t-slack { background: #4A154B; }
.int-tile.t-teams { background: #5059C9; }
.int-tile.t-pagerduty { background: #06AC38; }
.int-tile.t-jira { background: #0052CC; }
.int-tile.t-servicenow { background: #62D84E; }
.int-tile.t-splunk { background: #000000; }
.int-tile.t-elastic { background: #005571; }
.int-tile.t-sentinel { background: #0078D4; }
.int-tile.t-github { background: #181717; }
.int-tile.t-gitlab { background: #E24329; }
.int-tile.t-email { background: var(--lamp); }


.frameworks {
  list-style: none; margin: 4px 0 8px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px;
  border-top: 1px solid var(--ink);
}
.frameworks li { padding: 10px 0; border-bottom: 1px solid var(--rule-2); font-weight: 600; }
.verdicts { margin: 0 0 20px; }
.verdicts > div {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 4px 16px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--rule-2);
}
.verdicts > div:first-child { border-top: 1px solid var(--ink); }
.verdicts dt { display: flex; }
.verdicts dd { margin: 0; font-size: 14px; color: var(--ink-2); }



.close { padding: 80px 0; border-top: 1px solid var(--night-line); }
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: center; }
.close h2 { margin-bottom: 12px; }
.close p { color: var(--night-ink-2); margin-bottom: 0; max-width: 60ch; }
.close .actions { justify-content: flex-end; }

.foot { background: var(--night-2); border-top: 1px solid var(--night-line); padding: 28px 0; color: var(--night-ink); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-line { margin: 0; color: var(--night-ink-2); }
.foot-links { display: flex; gap: 20px; margin-left: auto; font-weight: 500; }

.foot-legal {
  margin-top: 16px;

  background: linear-gradient(var(--night-line), var(--night-line)) content-box no-repeat top / 100% 1px;
}
.foot-legal .foot-links { flex-wrap: wrap; gap: 6px 20px; padding-top: 16px; font-size: 14px; font-weight: 400; }




.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sizer {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
  padding: 8px 0 28px;
}
.js .sizer { display: grid; }
.sizer-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; }
.sizer-field label { font-weight: 500; color: var(--ink); }
.sizer-out { font-size: 28px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--ink); }
.sizer-field input[type="range"] { grid-column: 1 / -1; width: 100%; height: 24px; margin: 0; cursor: pointer; }
.sizer-result { grid-column: 1 / -1; margin: 0; max-width: 76ch; min-height: 1.6em; font-size: 17px; line-height: 1.6; color: var(--ink); font-variant-numeric: tabular-nums; }
.sizer-result strong { font-weight: 600; color: var(--lamp); }

.offers-frame { position: relative; border-top: 1px solid var(--rule); }
.offers-beam {

  position: absolute; top: 0; bottom: 0; left: 31%; width: 23%;
  background: var(--lamp-soft);
  border-inline: 1px solid rgb(37 99 235 / 0.28);
  box-shadow: inset 0 2px 0 var(--lamp);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .2s var(--ease);
}
.offers-beam[data-at] { opacity: 1; }
.offers-beam[data-at="business"] { transform: translateX(100%); }
.offers-beam[data-at="enterprise"] { transform: translateX(200%); }
.offers {
  position: relative;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.offers thead th { vertical-align: top; padding: 24px 20px; text-align: left; font-weight: 400; }
.offers thead td { width: 31%; }
.offer-name { display: inline-block; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.011em; color: var(--ink); }
.fits {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  border-radius: var(--r-pill); background: var(--lamp); color: var(--on-lamp);
  font-size: 13px; line-height: 20px; font-weight: 600; vertical-align: 2px;
}
.fits[hidden] { display: none; }
.offer-from { display: block; margin-top: 10px; min-height: 18px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.offer-price { display: block; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.offer-billed { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.offer-figure { display: block; margin-top: 12px; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.011em; color: var(--ink); }
.offer-unit { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.offer-said { display: block; margin: 8px 0 16px; min-height: 4.5em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.offers tbody th, .offers tbody td { padding: 12px 20px; border-top: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
.offers tbody th { padding-left: 0; font-weight: 400; color: var(--ink-2); }
.offers tbody td { font-weight: 500; color: var(--ink); }
.offers tbody td.offer-where { font-weight: 400; font-size: 15px; line-height: 1.45; }
.offers-all { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 16px 32px; }
.offers-all ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.offers-all li { break-inside: avoid; padding: 0 0 12px; line-height: 1.5; color: var(--ink); }


.access-head { padding: 56px 0 48px; }
.access-head h1 { color: var(--night-ink); font-size: 44px; margin-bottom: 14px; }
.access-head .lede { color: var(--night-ink-2); margin: 0; max-width: 60ch; }
.access-head .lede + .lede { margin-top: 10px; }
.access-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; margin-top: 48px; margin-bottom: 80px; align-items: start; }
.access-main { min-width: 0; }
.access-noscript { color: var(--ink); }
.access-form { display: none; gap: 20px; max-width: 720px; }
.js .access-form { display: grid; }
.js .access-form[hidden] { display: none; }
.access-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.access-field { display: grid; gap: 6px; min-width: 0; }
.access-narrow { max-width: 400px; }
.access-field label, .access-offer legend { font-weight: 500; color: var(--ink); }
.access-opt { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.access-field input, .access-field textarea {
  width: 100%; min-height: 44px; padding: 9px 12px;
  font: inherit; color: var(--ink); background: var(--sheet);
  border: 1px solid var(--ink-3); border-radius: var(--r-sm);
  transition: border-color .15s var(--ease);
}
.access-field textarea { resize: vertical; line-height: 1.5; }
.access-field input:hover, .access-field textarea:hover { border-color: var(--ink-2); }
.access-field [aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.access-err { margin: 0; color: var(--danger-ink); font-size: 14px; line-height: 1.4; }
.access-err[hidden] { display: none; }
.access-help { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.access-alert { margin: 0; padding: 10px 14px; border: 1px solid var(--danger); border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger-ink); }
.access-alert[hidden] { display: none; }
.access-offer { margin: 0; padding: 0; border: 0; min-width: 0; }
.access-offer legend { padding: 0; margin-bottom: 8px; }
.offer-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ink-3); border-radius: var(--r); overflow: clip; }
.offer-pick { position: relative; display: grid; align-content: start; gap: 2px; padding: 12px 14px; cursor: pointer; border-left: 1px solid var(--rule); transition: background .15s var(--ease); }
.offer-pick:first-child { border-left: 0; }
.offer-pick:hover { background: var(--fog); }
.offer-pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.offer-pick-name { font-weight: 600; color: var(--ink); }
.offer-pick-size { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.offer-pick:has(input:checked) { background: var(--lamp-soft); box-shadow: inset 0 2px 0 var(--lamp); }
.offer-pick:has(input:checked) .offer-pick-name { color: var(--lamp-hover); }
.offer-pick:has(input:focus-visible) { outline: 2px solid var(--lamp); outline-offset: -2px; }
.access-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.access-bot[hidden] { display: none; }
.access-send { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; align-items: center; }
.access-done[hidden] { display: none; }
.access-done { max-width: 60ch; }
.access-done h2 { margin-bottom: 14px; }
.access-done h2:focus { outline: none; }
.access-done p { overflow-wrap: anywhere; margin-bottom: 24px; }
.access-next { padding-top: 24px; border-top: 2px solid var(--ink); }
.access-next h2 { font-size: 19px; line-height: 1.3; letter-spacing: -0.011em; margin-bottom: 16px; }
.access-next ol { margin: 0; padding-left: 20px; }
.access-next li { padding-left: 4px; margin-bottom: 14px; line-height: 1.5; color: var(--ink); }
.access-next li::marker { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 600; }

@media (max-width: 1100px) {
  .use-list { grid-template-columns: minmax(0, 1fr); }
  .use-list li + li { border-left: 0; border-top: 1px solid var(--rule-2); }
  .use, .use-list li:first-child .use { padding: 12px 0; }
}
@media (max-width: 900px) {
  .access-body { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 32px; margin-bottom: 56px; }
  .offers-all { grid-template-columns: minmax(0, 1fr); }
  .offers thead th, .offers tbody td { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 720px) {
  .sizer { grid-template-columns: minmax(0, 1fr); }
  .offers-beam { left: 0; width: 33.3334%; }
  .offers-all ul { columns: 1; }
  .offers, .offers thead, .offers tbody, .offers tr, .offers caption { display: block; }
  .offers tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers thead td { display: none; }
  .offers thead th { padding: 16px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .offers thead th .btn { height: auto; min-height: 36px; padding: 6px 8px; font-size: 13px; white-space: normal; text-align: center; }
  .offer-name { font-size: 16px; }
  .offer-price { font-size: 21px; }
  .offer-from { margin-top: 0; font-size: 12px; }
  .offer-billed { margin-top: 0; font-size: 12px; }
  .offer-figure { margin-top: 0; font-size: 16px; }
  .offer-unit { display: block; font-size: 13px; }
  .offer-said { display: none; }
  .fits { margin-left: 0; font-size: 12px; }
  .fits[hidden] { display: inline-block; visibility: hidden; }
  .offers thead th .btn { margin-top: auto; }
  .offers tbody th { grid-column: 1 / -1; padding: 12px 8px 2px; border-top: 1px solid var(--rule); font-size: 14px; }
  .offers tbody td { padding: 2px 8px 12px; border-top: 0; font-size: 15px; }
  .offers tbody td.offer-where { font-size: 13px; }
  .access-pair { grid-template-columns: minmax(0, 1fr); }
  .offer-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-pick:nth-child(odd) { border-left: 0; }
  .offer-pick:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .access-send { grid-template-columns: minmax(0, 1fr); }
  .access-head { padding: 40px 0 32px; }
  .access-head h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .offers-beam { transition: none; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .split, .split-firewall, .split-assistant { gap: 40px; }
  .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
  h1 { font-size: 44px; }
}
@media (max-width: 900px) {
  .hero { padding: 32px 0 40px; }
  .hero-grid, .split, .split-firewall, .split-assistant, .close-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-rows: none; row-gap: 28px; }
  .hero-copy, .hero .stage, .hero .answers { grid-column: 1; grid-row: auto; }
  .hero .answers { margin-top: 0; }
  .hero-copy { padding-top: 0; }
  .hero h1 { max-width: 15ch; }
  .chapter { padding: 40px 0 36px; }
  .panel { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .shot-tall { position: static; max-width: 520px; }
  .ledger-quiet { max-width: none; }
  .risk-row { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; border-top: 1px solid var(--ink); }
  .risk { display: block; padding: 20px 0; border-bottom: 1px solid var(--rule-2); }
  .risk + .risk { padding-left: 0; margin-left: 0; border-left: 0; }
  .close .actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .bar-row { gap: 12px; }
  .bar-signin { display: none; }
  .bar-end { gap: 6px; }
  .bar .btn-primary { padding: 0 12px; font-size: 14px; }
  h1 { font-size: 36px; }
  h2 { font-size: 27px; }
  .lede { font-size: 16px; }
  .intro { font-size: 16px; }
  .chapter-list { margin: 0 -16px; padding: 0 16px; }
  .chapter-list a { padding: 0 12px; font-size: 14px; }
  .fig { font-size: 28px; line-height: 36px; }
  .ledger th, .ledger td { padding-left: 16px; padding-right: 16px; }
  .sheet-head { padding: 14px 16px 12px; }
  .rules > div, .verdicts > div, .asks li { grid-template-columns: minmax(0, 1fr); }
  .int-grid, .frameworks { grid-template-columns: minmax(0, 1fr); }
  .turn { padding: 12px 16px; }
  .turn-tool, .turn-step { margin: 0 8px; }
  .turn-user .said { max-width: 100%; }
  .stage-head { padding: 12px 12px 12px 16px; }
  .stage-panel { min-height: 0; }
  .stage-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .stage-chapter .stage-tabs { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
  .stage-tabs [role="tab"] { height: auto; min-height: 30px; padding: 5px 6px; font-size: 12px; line-height: 1.2; white-space: normal; text-align: center; justify-content: center; }
  .stage-foot { padding: 12px 16px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stage-foot .pill { justify-self: start; }
  .tablist { gap: 0; }
  .tablist [role="tab"] { padding: 0 10px; }
  .tab-n { display: none; }
  .chapter-foot { flex-direction: column; }
  .step-next { margin-left: 0; text-align: left; flex-direction: row-reverse; justify-content: flex-end; }
  .close { padding: 56px 0; }
  .foot-links { margin-left: 0; }
}
@media (max-width: 420px) {
  .bar-row { gap: 8px; }
  .brand { gap: 8px; }
  .brand span { font-size: 16px; }
  .lang { margin-right: 0; }
  .lang a { padding: 0 7px; }
  .bar .btn-primary { padding: 0 10px; font-size: 13px; }
}


@media (min-width: 1100px) {
  .split-firewall .rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
  .split-firewall .rules > div { padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .caret { display: none; }
}


@media print {
  @page { size: A4; margin: 16mm 14mm 16mm; }
  :root {
    --night: #ffffff;
    --night-2: #ffffff;
    --night-3: #f8fafc;
    --night-line: #cbd5e1;
    --night-line-2: #cbd5e1;
    --night-ink: #0f172a;
    --night-ink-2: #475569;
    --lamp-night: #2563eb;
    --lamp-night-soft: #eff6ff;
    --passed-night: #15803d;
    --passed-night-soft: #dcfce7;
    --danger-night: #b91c1c;
    --danger-night-soft: #fef2f2;
    --sev-critical-night: #dc2626;
    --sev-high-night: #c2410c;
    --sev-medium-night: #a16207;
    --sev-low-night: #15803d;
  }
  html { scroll-behavior: auto; scroll-padding-top: 0; }

  *, *::before, *::after { transition: none !important; animation: none !important; }
  body { background: #fff; color: #0f172a; font-size: 13px; }
  .hero, .close, .foot, .night, .stage {
    background: none !important; color: var(--ink); border-color: var(--rule);
  }
  .skip, .bar, .chapters, .stage-head, .stage-tabs, .stage-controls, .tablist,
  .chapter-foot, .actions, .caret {
    display: none !important;
  }
  .wrap { max-width: none; padding: 0; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h2, h3, .chapter-head, .sheet-head { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }


  .hero { padding: 0 0 12px; border-bottom: 0; }
  .hero-grid { display: block; }
  .lede { margin: 12px 0 16px; }
  .answers { margin-top: 16px; }
  .stage { margin-top: 16px; border: 1px solid var(--rule); overflow: visible; }
  [role="tabpanel"], [role="tabpanel"][hidden], .stage-panel[hidden], .panel[hidden] {
    display: block !important;
  }
  .stage-panel { min-height: 0; }
  .stage-panel + .stage-panel { border-top: 2px solid var(--ink); }
  .turn { break-inside: avoid; }
  .turn.is-pending, .pill.is-pending {
    opacity: 1 !important; transform: none !important;
  }
  .rest { color: inherit !important; }
  .is-running .answer, .is-running .rows, .is-running .elapsed { opacity: 1 !important; }
  .is-running .ms::before { content: none !important; }


  .js .chapter:not(.is-open), .chapter {
    display: block !important; animation: none !important;
    break-before: page; padding: 0;
  }
  .panel { padding-top: 16px; break-inside: avoid; }
  .shot, .frame, .sheet, .risk, .rules > div, .asks li, .verdicts > div, .int {
    break-inside: avoid;
  }
  .shot-tall { position: static; }
  .close { break-before: page; padding: 0 0 16px; border-top: 0; }
  .foot { padding: 12px 0 0; border-top: 1px solid var(--rule); }


  a, .night a:not(.btn) {
    color: var(--ink) !important; text-decoration: underline !important;
    text-decoration-color: currentColor !important;
  }
  .chapter a[href^="http"]::after, .close a[href^="http"]::after,
  .foot a[href^="http"]::after, .chapter a[href^="mailto:"]::after {
    content: " (" attr(href) ")"; font-size: 0.85em; color: var(--ink-3);
    overflow-wrap: anywhere;
  }
  .brand { text-decoration: none !important; }


  .mark, .lg-brand, .int-tile, .stamp, .pill, .sev, .tab-n, .frame img {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}


.offers-where { margin: 0 0 20px; max-width: 70ch; font-size: 17px; font-weight: 500; color: var(--ink); }

@media (max-width: 900px) {
  .hero h1 { max-width: none; font-size: 38px; }
  html[lang="fr"] .hero h1 { max-width: none; font-size: 32px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  html[lang="fr"] .hero h1 { font-size: 27px; }
  .stage-panel { min-height: 0; }
  .path { display: block; }
  .path-title { margin-bottom: 6px; }
}


.split + .split, .risk-row + .split, .split + .risk-row { margin-top: 64px; }
@media (max-width: 900px) { .split + .split, .risk-row + .split, .split + .risk-row { margin-top: 40px; } }


.rows .do { font-weight: 600; color: var(--night-ink); }
.rows .do-remove { color: var(--sev-critical-night); }


.stage-more { display: block; margin: 0 20px 16px; }
.stage-more[hidden] { display: none; }
.stage.is-compact .rows, .stage.is-compact .turn-calls, .stage.is-compact .stage-note,
.stage.is-compact .stage-controls, .stage.is-compact .turn-user .who { display: none; }
.stage.is-compact .stage-foot { border-top: 0; padding-top: 4px; }
.uses { scroll-margin-top: var(--bar-h); }
.hero-signin { display: none; color: var(--night-ink-2); font-size: 15px; }
@media (max-width: 640px) {
  .hero-signin { display: inline; }
  .path { display: none; }
  .use, .use-list li:first-child .use { padding: 10px 0; }
  .uses { padding: 20px 0 12px; }
}


@media (max-width: 640px) {
  .lede { margin: 16px 0 20px; }
  .hero .actions { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 10px; }
  .hero .actions .btn-lg { padding: 0 10px; font-size: 14px; }
  .hero-signin { grid-column: 1 / -1; }
  .stage.is-compact .turn { padding-top: 6px; padding-bottom: 6px; }
  .stage.is-compact .turn-user .said { font-size: 14px; padding: 8px 12px; }
}


.ways { margin: 16px 0 0; max-width: 54ch; font-size: 15px; color: var(--night-ink-2); }
.ways a { color: var(--night-ink); }
.fit { margin: 0 0 18px; max-width: 94ch; font-size: 16px; line-height: 1.55; color: var(--ink); }
.use-who { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.sample-link { margin: 12px 0 0; max-width: none; font-size: 15px; }
.sample-link a { font-weight: 600; }
.path { margin-top: 12px; }


.stage-picture { padding: 16px 20px 8px; flex: 1 1 auto; }
.stage-picture img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.stage-panel[id="spanel-workspace"] .stage-foot { grid-template-columns: minmax(0, 1fr); }
.stage[data-active="spanel-workspace"] .stage-controls,
.stage[data-active="spanel-workspace"] .stage-more { display: none; }


.facts { margin: 12px 0 16px; border-top: 1px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.offers-limits { margin: 32px 0 0; max-width: 900px; }
.sizer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; }
.chapter-list { gap: 0; }
.chapter-list a { padding: 0 10px; }
@media (max-width: 900px) {
  .sizer { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero .stage-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-picture { padding: 12px; }
}


.sample { padding-top: 16px; padding-bottom: 64px; }
.sample-step { max-width: 880px; padding: 28px 0; border-bottom: 1px solid var(--rule-2); }
.sample-step h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sample-step h3 { font-size: 17px; margin: 20px 0 8px; }
.sample-step p { margin: 0 0 12px; max-width: 72ch; }
.sample-tag { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--sev-critical, #b91c1c); background: #fee2e2; }
.sample-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.sample-chips code { display: inline-block; padding: 3px 8px; font: 500 13px/1.4 var(--mono); border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--fog); }
.sample-scroll { overflow-x: auto; }
.sample-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sample-table th { text-align: left; font-weight: 600; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.sample-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.sample-table code, .sample-actions code { font: 500 13px/1.4 var(--mono); background: none; border: 0; padding: 0; overflow-wrap: anywhere; }
.sample-actions { margin: 8px 0 14px; padding-left: 22px; }
.sample-actions li { padding: 4px 0; }
.sample-do { font-weight: 600; color: var(--ink); }
.sample-remove { color: #b91c1c; }
.sample-note { color: var(--ink-2); font-size: 14px; }
.sample-files { list-style: none; margin: 0; padding: 0; }
.sample-files li { padding: 8px 0; border-bottom: 1px solid var(--rule-2); }
.sample-files a { font-weight: 600; }
.sample-next { border-bottom: 0; }
.sample-back { margin-left: 8px; }
@media (max-width: 640px) {
  .lede-more, .use-who { display: none; }
  .stage.is-compact .turn-user { display: none; }
  .fit { font-size: 15px; }
}
