@font-face { font-family: Archivo; src: url('/public/fonts/Archivo-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cal Sans'; src: url('/public/fonts/CalSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root {
  --void: #0b0e11; --carbon: #12181c; --surface: #182126; --seam: #364147;
  --fog: #f4f6f7; --silver: #afbcc4; --action: #ff643d; --action-hover: #ff805f; --current: #48e0db;
  --incoming-surface: #232e35; --outgoing-surface: #154d53; --internal-surface: #162b31;
  --signal: #ff643d; --threat-label: #ffb09b; --review: #edc17d; --disabled: #2a2a33;
  --font: Archivo, Arial, sans-serif; --display: 'Cal Sans', Archivo, Arial, sans-serif;
  --body: 1rem; --small: .875rem; --meta: .75rem; --radius: 8px;
  color-scheme: dark; color: var(--fog); background: var(--void); font-family: var(--font); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: var(--body); min-height: 100dvh; isolation: isolate; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--void); }
body.scene-art::before { background: var(--void) url('/public/art/pressure-ready-storm.jpg') center / cover no-repeat; }
.landing, .game-main, .debrief { animation: screen-in 180ms ease-out; }
@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }
button, input, a, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
p { line-height: 1.56; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; flex-shrink: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--current); outline-offset: 3px; }
.choice:has(input:focus-visible) { outline: 3px solid var(--current); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -90px; left: 20px; z-index: 99; padding: 16px; background: var(--action); color: var(--carbon); }
.skip-link:focus { top: 15px; }
.muted, .eyebrow { color: var(--silver); }
.eyebrow { font-size: var(--small); line-height: 1.45; font-weight: 500; }
.site-header { height: 80px; padding: 0 40px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--seam); background: var(--void); }
.wordmark { display: inline-flex; flex-shrink: 0; align-items: center; min-height: 44px; }
.wordmark img { width: 148px; height: auto; display: block; }
.product-name { font-size: var(--small); color: var(--silver); border-left: 1px solid var(--seam); padding-left: 28px; }
.header-actions { margin-left: auto; display: flex; align-items: center; }
.quiet, .text-button, .text-link { border: 0; background: none; color: var(--silver); font-size: var(--small); min-height: 44px; padding: 10px 0; display: inline-flex; align-items: center; gap: 10px; line-height: 1.45; }
.quiet:hover, .text-button:hover { color: var(--fog); }
.text-link { color: var(--action); font-weight: 500; }
.text-link:hover { color: var(--action-hover); text-decoration: underline; text-underline-offset: 4px; }
.text-link svg { width: 18px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 14px 20px; border: 1px solid transparent; border-radius: var(--radius); font-size: 1rem; font-weight: 600; line-height: 1.25; transition: background 120ms, border-color 120ms; }
.primary { color: var(--carbon); background: var(--action); }
.primary:hover { background: var(--action-hover); }
.primary:disabled { color: var(--silver); background: var(--disabled); border-color: var(--seam); }
.secondary { color: var(--fog); border-color: #60616e; background: transparent; }
.secondary:hover { border-color: var(--action); background: var(--internal-surface); }
.site-footer { width: min(880px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: var(--meta); color: var(--silver); }
.site-footer>div { display: flex; gap: 24px; }
.landing { width: min(880px, calc(100% - 48px)); margin: auto; padding: 32px 0 0; }
.sector-picker { display: flex; align-items: center; padding-bottom: 24px; font-size: var(--small); color: var(--silver); }
.sector-nav { display: flex; gap: 6px; }
.sector-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 6px; }
.sector-nav a:hover { color: var(--fog); }
.sector-nav [aria-current] { background: var(--internal-surface); color: var(--action); }
.mobile-sector { display: none; }
.entry-panel { border: 1px solid var(--seam); border-radius: var(--radius); background: var(--carbon); overflow: hidden; }
.entry-copy { padding: 44px 48px 32px; }
.scenario-label { display: flex; align-items: center; gap: 10px; color: var(--threat-label); }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex-shrink: 0; }
.entry-copy h1 { font-size: 3.5rem; line-height: 1.07; margin: 24px 0; }
.entry-setup { font-size: 1.125rem; line-height: 1.55; color: var(--silver); max-width: 560px; }
.entry-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.entry-actions .primary { min-height: 52px; padding: 16px 24px; }
.entry-meta { color: var(--silver); font-size: var(--meta); line-height: 1.5; margin-top: 16px; }
.episode-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.select-control { position: relative; flex: 0 1 420px; min-width: 0; }
.variant-control { flex-basis: 240px; }
.episode-nav select { appearance: none; -webkit-appearance: none; display: block; width: 100%; min-height: 3.25rem; background: var(--carbon); border: 1px solid var(--seam); color: var(--fog); padding: .875rem 2.75rem .875rem 1rem; border-radius: var(--radius); font: 500 var(--body)/1.25 var(--font); transition: border-color 120ms, background 120ms; }
.episode-nav select:hover { border-color: var(--silver); background: var(--surface); }
.episode-nav select:focus-visible { border-color: var(--current); }
.select-chevron { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); display: flex; color: var(--action); pointer-events: none; }
.select-chevron svg { width: 16px; height: 16px; transform: rotate(90deg); }
.facilitation-setup { margin-top: 24px; color: var(--silver); font-size: var(--small); }
.facilitation-setup summary { min-height: 44px; padding: 12px 0; }
.facilitation-setup label { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--fog); }
.facilitation-setup input { width: 20px; height: 20px; accent-color: var(--action); }
.facilitation-setup p { margin-top: 8px; }
.revision-panel h2 { font-size: 1.25rem; margin-bottom: 12px; }
.revision-panel blockquote { padding: 16px; border: 1px solid var(--seam); border-radius: 6px; margin: 16px 0; line-height: 1.55; }
.evidence-assessment { margin-top: 24px; display: grid; gap: 10px; }
.evidence-assessment button { justify-content: flex-start; text-align: left; white-space: normal; }
.artifact-paper { background: var(--carbon); padding: 16px; border: 1px solid var(--seam); border-radius: 6px; }
.artifact-paper p { margin: 16px 0; }
.artifact-paper .table-scroll { overflow: auto; min-width: 0; max-width: 100%; }
.full-feedback, .replay-comparison, .role-perspectives { border: 1px solid var(--seam); padding: 20px; border-radius: 6px; margin: 24px 0; background: var(--carbon); }
.full-feedback > summary, .replay-comparison > summary, .role-perspectives > summary { min-height: 44px; padding: 12px 0; }
.full-feedback .observation { border: 0; margin-top: 16px; }
.comparison-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.comparison-columns h3 { font-size: 1.125rem; margin-bottom: 12px; }
.comparison-columns p + p { margin-top: 14px; color: var(--silver); }
.role-perspectives h3 { font-size: 1.125rem; margin-top: 24px; }
.role-perspectives li, .discussion-prompts li { line-height: 1.6; margin: 12px 0; }
.discussion-role { border-top: 1px solid var(--seam); margin-top: 24px; padding-top: 20px; }
.discussion-role label, .plan-row label { display: block; font-size: var(--small); color: var(--silver); line-height: 1.5; }
.discussion-role select, .plan-row select, .plan-row input { display: block; min-height: 44px; width: 100%; min-width: 0; margin-top: 8px; padding: 10px 12px; border: 1px solid #60616e; border-radius: 6px; background: var(--surface); color: var(--fog); font: 400 var(--small)/1.5 var(--font); }
.discussion-role-prompts { padding-left: 24px; }
.discussion-role-prompts li { margin-top: 12px; line-height: 1.6; }
.exercise-plan { border: 1px solid var(--seam); border-radius: var(--radius); background: var(--carbon); padding: 20px; margin: 24px 0; }
.exercise-plan > summary { min-height: 44px; padding: 12px 0; font-weight: 600; }
.plan-boundary { color: var(--silver); font-size: var(--small); max-width: 65ch; margin: 8px 0 20px; }
.plan-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 16px; min-width: 0; border: 0; border-top: 1px solid var(--seam); margin: 0; padding: 20px 0 12px; }
.plan-row legend { font-weight: 600; font-size: var(--small); padding: 0 8px 0 0; }
.plan-action-picker { grid-column: 1 / -1; }
.plan-action-picker summary { min-height: 44px; padding: 12px 0; color: var(--action); font-size: var(--small); cursor: pointer; }
.plan-action-text { grid-column: 1 / -1; color: var(--fog); font-size: var(--body); line-height: 1.6; }
.plan-row .text-button { align-self: end; }
@media(max-width:600px) { .exercise-plan { padding: 14px; } .plan-row { grid-template-columns: 1fr 1fr; } .plan-role { grid-column: 1 / -1; } .plan-row .text-button { justify-self: start; } }
@media(max-width:360px) { .plan-row { grid-template-columns: 1fr; } }
.observation-body { padding: 24px; }
.choice:hover:not(.selected) { border-color: var(--silver); background: var(--carbon); }
@media(max-width:600px) { .select-control { flex-basis: 100%; width: 100%; } .episode-nav select { padding-inline: 12px 34px; font-weight: 400; } .select-chevron { inset-inline-end: 12px; } .select-chevron svg { width: 14px; height: 14px; } .comparison-columns { grid-template-columns: 1fr; } .full-feedback, .replay-comparison, .role-perspectives { padding: 14px; } }
.entry-context { border-top: 1px solid var(--seam); padding: 20px 48px; }
.entry-boundary { color: var(--fog); font-size: var(--small); line-height: 1.65; letter-spacing: .025em; max-width: 72ch; }
.entry-copy h1 span { color: var(--action); }
.entry-copy .entry-boundary { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--seam); }
.scenario-next { display: flex; align-items: center; gap: 24px; padding: 24px 0; }
.scenario-next h2 { font: 500 var(--small)/1.45 var(--font); }
.development-label { margin-left: auto; font-size: var(--meta); color: var(--silver); }
.notice, .storage-notice { color: var(--review); font-size: var(--small); padding-bottom: 20px; }
.sector-unavailable .primary { margin-top: 32px; }
.sector-unavailable .entry-copy { padding-bottom: 44px; }
.game-header { height: auto; min-height: 76px; flex-wrap: wrap; row-gap: 0; padding: 8px max(24px, calc((100vw - 1200px)/2)); }
.game-header .wordmark img { width: 120px; }
.game-identity { padding-left: 28px; border-left: 1px solid var(--seam); }
.game-identity h1 { font: 600 1rem/1.3 var(--font); letter-spacing: 0; }
.game-identity>span { display: block; color: var(--silver); font-size: var(--meta); margin-top: 4px; }
.game-main { width: min(1200px, calc(100% - 48px)); margin: auto; padding: 24px 0; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 224px; gap: 24px; }
/* Only the transcript scrolls. Hidden overflow would also let focus and
   scrollIntoView move the entire shell, including its header and composer. */
.chat { height: min(760px, calc(100dvh - 124px)); min-width: 0; display: flex; flex-direction: column; border: 1px solid #455860; border-radius: var(--radius); background: var(--carbon); overflow: clip; }
.conversation-header { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-bottom: 1px solid var(--seam); flex-shrink: 0; }
.conversation-header p { font-size: var(--small); color: var(--silver); }
.team-action { color: var(--action); text-align: right; }
.team-action:disabled { color: var(--silver); }
.thread-wrap { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.thread { list-style: none; margin: 0; padding: 24px; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: #555560 transparent; overscroll-behavior: contain; }
.thread::before { content: ''; flex: 1 0 0; }
.time-divider { font-size: var(--meta); color: var(--silver); text-align: center; padding: 4px 0 20px; flex-shrink: 0; }
.message { width: fit-content; max-width: min(84%, 36rem); margin-bottom: 20px; flex-shrink: 0; overflow-wrap: anywhere; }
.message-outbound, .message-proposal { margin-left: auto; max-width: min(80%, 34rem); }
.message-system { max-width: 100%; width: 100%; }
.message-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: var(--small); line-height: 1.4; margin-bottom: 8px; color: var(--silver); }
.message-meta strong { font-weight: 600; color: var(--fog); }
.message-attacker .message-meta strong { color: var(--threat-label); }
.message-specialist .message-meta strong, .message-it .message-meta strong { color: var(--current); }
.message-outbound .message-meta, .message-proposal .message-meta { justify-content: flex-end; }
.bubble { padding: 14px 16px; border-radius: 4px 16px 16px 16px; background: var(--incoming-surface); }
.bubble p { color: var(--fog); font-size: var(--body); line-height: 1.56; white-space: pre-line; }
.message-outbound .bubble { background: var(--outgoing-surface); border-radius: 16px 4px 16px 16px; }
.message-private .bubble { background: var(--internal-surface); }
.message-proposal .bubble { border-radius: 16px 4px 16px 16px; }
.message-grouped { margin-top: -12px; }
.transmission-status { font-size: var(--small); color: var(--review); margin-top: 8px; text-align: right; }
.system-event { color: var(--silver); font-size: var(--small); line-height: 1.5; max-width: 64ch; margin: 0 auto; text-align: center; padding: 2px 0; }
.attachment { margin-top: 12px; background: var(--carbon); color: var(--fog); border: 1px solid #616172; border-radius: 8px; padding: 12px; display: flex; align-items: center; gap: 16px; text-align: left; max-width: 100%; min-height: 56px; }
.attachment:hover { border-color: var(--action); }
.attachment strong { display: block; font-size: var(--small); font-weight: 500; }
.attachment small { display: block; margin-top: 3px; color: var(--silver); font-size: var(--meta); line-height: 1.5; }
.attachment svg { width: 18px; margin-left: auto; }
.typing-row { flex-shrink: 0; display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--silver); font-size: var(--small); margin: 0 0 16px; }
.typing-dots { display: flex; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--incoming-surface); }
.typing-dots i { width: 5px; height: 5px; background: var(--silver); border-radius: 50%; animation: typing 900ms ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: 120ms; }
.typing-dots i:nth-child(3) { animation-delay: 240ms; }
@keyframes typing { 0%,70%,100% { opacity: .35; } 35% { opacity: 1; } }
.delivery-suspended .typing-dots i, body:has(dialog[open]) .typing-dots i { animation-play-state: paused; }
.message-enter { animation: message-in 180ms ease-out; }
.message-outbound.message-enter { animation-duration: 160ms; }
@keyframes message-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.new-message { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: var(--action); color: var(--carbon); border: 0; border-radius: 22px; min-height: 44px; padding: 10px 18px; font-size: var(--small); white-space: nowrap; z-index: 1; }
.response-dock { padding: 20px 24px; flex-shrink: 0; border-top: 1px solid #455860; background: var(--surface); animation: dock-in 150ms ease-out; }
@keyframes dock-in { from { opacity: 0; } to { opacity: 1; } }
.is-delivering:not([data-delivery=scene]) .response-dock { display: none; }
.decision-heading { margin-bottom: 16px; }
.decision-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.decision-heading .eyebrow { font-size: var(--meta); }
.decision-heading h2 { font: 500 var(--small)/1.45 var(--font); color: var(--silver); margin: 0; letter-spacing: 0; }
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border: 1px solid #5b5b67; border-radius: 10px; background: var(--carbon); cursor: pointer; transition: border-color 120ms, background 120ms; }
.choice:hover { border-color: var(--action); background: #1c2230; }
.choice.selected { border-color: var(--action); background: var(--internal-surface); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--action); flex-shrink: 0; cursor: pointer; }
.choice-text { font-size: var(--body); font-weight: 500; line-height: 1.56; }
.selected-draft { padding: 16px 0 0; }
.selected-draft>span { font-size: var(--small); color: var(--action); }
.selected-draft p { font-size: var(--body); margin-top: 5px; max-width: 65ch; }
.commit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.commit-row p { font-size: var(--small); line-height: 1.45; color: var(--silver); max-width: 50%; }
.commit-row .primary { margin-left: auto; gap: 16px; }
.situation-rail { display: flex; flex-direction: column; padding: 20px; background: var(--carbon); border: 1px solid var(--seam); border-radius: var(--radius); }
.situation-heading h2 { font-size: 1.25rem; line-height: 1.3; }
.demand-block { padding: 28px 0 24px; border-bottom: 1px solid var(--seam); }
.demand-block strong { display: block; color: var(--signal); font: 600 2rem/1.3 var(--display); letter-spacing: -.02em; margin-top: 8px; }
.demand-block strong:only-child { font-size: 1rem; }
.situation-facts { margin: 0; }
.situation-facts>div { padding: 20px 0; border-bottom: 1px solid var(--seam); }
.situation-facts dt { font-size: var(--small); line-height: 1.45; color: var(--silver); margin-bottom: 8px; }
.situation-facts dd { font-size: var(--small); line-height: 1.5; margin: 0; }
.additional-claim { margin-top: 12px; }
.mobile-situation { display: none; }
.slice-end { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 4px 0; }
.slice-end h2 { font-size: 1.5rem; line-height: 1.25; }
.slice-end p { font-size: var(--small); color: var(--silver); margin-top: 8px; }
.slice-end .primary { flex-shrink: 0; }
.comparison-banner { background: var(--internal-surface); color: var(--action); padding: 12px 16px; font-size: var(--small); display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 16px; border-radius: 6px; }
.game-main:has(.comparison-banner) .chat { height: min(760px, calc(100dvh - 208px)); }
.flow-layout .chat, .flow-layout .game-main:has(.comparison-banner) .chat { height: auto; }
.flow-layout .thread { overflow: visible; min-height: 240px; flex: none; }
.flow-layout .thread-wrap { flex: none; }
.flow-layout .new-message { position: fixed; bottom: 20px; }
.chat>.storage-notice { flex-shrink: 0; padding: 12px 24px; border-bottom: 1px solid var(--seam); background: var(--surface); }
.dialog-body>.storage-notice { color: var(--review); font-size: var(--small); }
.debrief { width: min(880px, calc(100% - 48px)); margin: auto; padding: 24px 0 32px; }
.back-link { color: var(--silver); font-size: var(--small); min-height: 44px; display: inline-flex; align-items: center; }
.back-link:hover { color: var(--fog); }
.debrief-intro { padding: 24px 0 28px; }
.debrief h1 { font-size: 2.25rem; line-height: 1.17; margin: 16px 0; max-width: 760px; }
.debrief-boundary { color: var(--silver); font-size: var(--small); max-width: 65ch; }
.debrief-summary { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: var(--small); color: var(--action); margin-top: 20px; }
.observation { border: 1px solid var(--seam); background: var(--carbon); padding: 28px 32px; margin-bottom: 16px; border-radius: var(--radius); }
.observation-status { color: var(--silver); font-size: var(--small); }
.observation-sent .observation-status { color: var(--threat-label); }
.observation-blocked .observation-status, .observation-corrected .observation-status { color: var(--review); }
.observation-coordinated .observation-status { color: var(--action); }
.observation h3 { font-size: 1.5rem; line-height: 1.25; margin: 12px 0 20px; }
.observation blockquote { font-size: var(--body); line-height: 1.56; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--seam); }
.observation blockquote>span { display: block; color: var(--silver); font-size: var(--small); margin-bottom: 8px; }
.observation-body>p:not(.observation-status) { font-size: var(--body); }
.better { padding-top: 20px; }
.better>span { color: var(--action); font-weight: 500; font-size: var(--small); }
.better p { font-size: var(--body); margin-top: 8px; }
.observation-actions { display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline; margin-top: 16px; }
.why-detail { flex: 1; min-width: 160px; }
.why-detail summary { color: var(--silver); font-size: var(--small); min-height: 44px; padding: 12px 0; }
.why-copy { color: var(--silver); font-size: var(--body); padding-top: 8px; }
.workplace-checks { padding: 28px 0; margin-top: 16px; border-top: 1px solid var(--seam); }
.workplace-checks h2 { font-size: 1.5rem; }
.workplace-checks ol { padding-left: 24px; margin: 20px 0 0; }
.workplace-checks li { font-size: var(--body); line-height: 1.56; margin: 0 0 12px; padding-left: 8px; }
.workplace-checks li::marker { color: var(--action); }
.debrief-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.debrief-actions .text-button { margin-left: auto; }
.resource-note { border-top: 1px solid var(--seam); padding-top: 8px; margin-top: 32px; }
.resource-note summary { color: var(--silver); font-size: var(--small); min-height: 44px; padding: 12px 0; }
.resource-content p { color: var(--silver); font-size: var(--small); margin: 12px 0; }
.resource-content a { color: var(--action); display: block; font-size: var(--small); padding: 12px 0; line-height: 1.45; }
.resource-content a:hover { text-decoration: underline; }
.resource-content h3 { font-size: 1.125rem; margin-top: 20px; }
.dialogue-references { margin-bottom: 24px; }
.entry-sources { margin-top: 8px; }
.entry-sources summary { min-height: 44px; padding: 12px 0; color: var(--silver); font-size: var(--small); }
.content-version { font-size: var(--meta) !important; }
dialog { color: var(--fog); background: var(--carbon); border: 1px solid #656573; border-radius: 12px; padding: 32px; width: min(620px, calc(100% - 32px)); max-height: 88dvh; overflow: auto; }
dialog::backdrop { background: rgba(0,0,0,.8); }
.dialog-heading { position: absolute; top: 12px; right: 16px; }
.dialog-close { font-size: 1.75rem; width: 44px; justify-content: center; line-height: 1; padding: 0; }
#dialog-title { font-size: 1.5rem; line-height: 1.25; margin: 0 40px 24px 0; }
.dialog-body p { font-size: var(--body); color: var(--silver); margin-bottom: 16px; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.playback-control { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: 100%; font-size: var(--body); text-align: left; min-height: 64px; padding: 16px; color: var(--fog); border: 1px solid #656573; border-radius: 8px; background: var(--surface); }
.toggle-state { font-size: var(--small); background: var(--disabled); color: var(--silver); padding: 4px 10px; border-radius: 5px; }
.playback-control[aria-pressed=true] .toggle-state { background: var(--action); color: var(--carbon); }
.evidence-file { display: flex; gap: 16px; align-items: center; padding: 20px 0; border-top: 1px solid var(--seam); border-bottom: 1px solid var(--seam); margin-bottom: 20px; }
.file-symbol { color: var(--silver); font-size: var(--meta); }
.evidence-file strong { font-size: var(--small); overflow-wrap: anywhere; line-height: 1.5; }
.evidence-file p { font-size: var(--small); color: var(--action); margin: 6px 0 0; }
.evidence-table { overflow-x: auto; margin-bottom: 24px; }
table { border-collapse: collapse; width: 100%; font-size: var(--small); min-width: 340px; }
caption { color: var(--silver); text-align: left; font-size: var(--meta); line-height: 1.5; margin-bottom: 12px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--seam); line-height: 1.5; }
th { color: var(--silver); font-weight: 500; }
.review-transcript { list-style: none; padding: 0; margin: 0; }
.review-transcript li { padding: 16px 0; border-bottom: 1px solid var(--seam); }
.review-transcript strong { color: var(--action); font-size: var(--small); }
.review-transcript p { margin: 8px 0 0; }
@media (max-width: 999px) {
  .workspace { display: block; }
  .situation-rail { display: none; }
  .mobile-situation { display: block; flex-shrink: 0; border-bottom: 1px solid var(--seam); padding: 0 24px; }
  .mobile-situation summary { font-size: var(--small); line-height: 1.45; min-height: 44px; padding: 12px 0; }
  .mobile-demand { float: right; color: var(--silver); margin-left: 12px; }
  .mobile-situation .situation-heading { display: none; }
  .mobile-situation .demand-block { padding-top: 16px; }
  .mobile-situation .situation-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .product-name { display: none; }
  .sector-nav { width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
  .site-header { height: 64px; padding: 0 20px; gap: 16px; }
  .wordmark img { width: 120px; }
  .landing { width: calc(100% - 32px); padding-top: 16px; }
  .sector-picker { padding-bottom: 16px; }
  .sector-nav { display: none; }
  .mobile-sector { display: flex; align-items: center; gap: 20px; width: 100%; }
  .mobile-sector select { min-height: 44px; flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid #555560; border-radius: 6px; color: var(--fog); background: var(--carbon); font-size: var(--small); }
  .entry-copy { padding: 28px 24px; }
  .entry-copy h1 { font-size: 2.25rem; line-height: 1.11; margin: 20px 0; }
  .entry-setup { font-size: 1rem; }
  .entry-actions { margin-top: 24px; gap: 12px; flex-wrap: wrap; }
  .entry-actions .primary { padding: 16px 20px; gap: 20px; }
  .entry-context { padding: 20px 24px; }
  .scenario-next { padding: 20px 4px; flex-wrap: wrap; gap: 8px; }
  .development-label { margin-left: 0; width: 100%; }
  .site-footer { width: calc(100% - 40px); flex-wrap: wrap; padding: 16px 0; gap: 8px; }
  .site-footer>div { gap: 16px; flex-wrap: wrap; }
  .game-header { height: auto; min-height: 64px; padding: 8px 16px; gap: 0 16px; }
  .game-header .wordmark img { width: 96px; }
  .game-identity { border-left: 0; padding: 0; }
  .game-identity h1 { font-size: var(--small); }
  .pause-button { gap: 6px; }
  .pause-button svg { width: 16px; }
  .game-main { width: calc(100% - 24px); padding: 12px 0; }
  .chat { height: min(760px, calc(100dvh - 88px)); }
  .conversation-header { padding: 4px 16px; min-height: 52px; gap: 16px; }
  .team-action { max-width: 128px; }
  .mobile-situation { padding: 0 16px; }
  .mobile-demand { font-size: var(--small); line-height: 1.45; }
  .mobile-situation .situation-facts { display: block; }
  .thread { padding: 20px 16px; }
  .message, .message-outbound, .message-proposal { max-width: 90%; }
  .message-system { max-width: 100%; }
  .bubble { padding: 12px 14px; }
  .response-dock { padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .decision-heading h2 { font-size: var(--small); }
  .choice { padding: 12px; gap: 12px; }
  .commit-row { gap: 12px; flex-wrap: wrap; }
  .commit-row p { max-width: 100%; }
  .commit-row .primary { gap: 12px; }
  .slice-end { flex-direction: column; align-items: flex-start; gap: 16px; }
  .slice-end h2 { font-size: 1.375rem; }
  .comparison-banner { flex-wrap: wrap; gap: 4px; }
  .game-main:has(.comparison-banner) .chat { height: calc(100dvh - 180px); }
  .debrief { width: calc(100% - 32px); padding-top: 16px; }
  .debrief-intro { padding: 16px 8px 24px; }
  .debrief h1 { font-size: 1.875rem; line-height: 1.2; }
  .observation { padding: 24px 20px; }
  .observation h3 { font-size: 1.375rem; line-height: 1.27; }
  .observation-actions { gap: 0 20px; }
  .workplace-checks { padding: 24px 8px; }
  .workplace-checks h2 { font-size: 1.375rem; }
  .debrief-actions .text-button { margin-left: 0; }
  dialog { padding: 28px 20px; }
  #dialog-title { font-size: 1.375rem; }
  .dialog-actions { gap: 12px; }
  .dialog-actions .primary, .dialog-actions .secondary { width: 100%; }
}
.instant-text *, .instant-text *::before, .instant-text *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  body::before { display: none; }
  :root { color-scheme: light; color: #111; background: white; }
  body { background: white; }
  .site-header, .site-footer, .back-link, .debrief-actions, .observation-actions .text-link, .comparison-banner, .skip-link, dialog, .plan-action-picker, .plan-row .text-button, [data-action=add-plan-action] { display: none !important; }
  .exercise-plan, .plan-row select, .plan-row input { background: white; color: #111; border-color: #aaa; }
  .plan-row label, .plan-row legend { color: #111; }
  .debrief { width: 100%; padding: 0; margin: 0; }
  .debrief-intro { padding-top: 0; }
  .debrief h1 { font-size: 26pt; }
  .observation { background: white; border-color: #aaa; padding: 16px; break-inside: avoid; }
  .observation h3 { font-size: 16pt; }
  .debrief p, .debrief li, .debrief blockquote, .resource-content a { font-size: 11pt; }
  .debrief p, .debrief span, .debrief a, .debrief summary { color: #111 !important; }
  .workplace-checks li::marker { color: #111; }
  .why-detail, .resource-note { display: block; }
  .resource-note { break-inside: avoid; }
  .why-copy { display: block; }
  .resource-content a::after { content: ' (' attr(href) ')'; font-size: 9pt; }
  @page { margin: 16mm; }
}

/* Full-episode document and review interactions share the app's type and controls. */
.situation-rail { max-height: min(760px, calc(100dvh - 124px)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #536773 transparent; }
.situation-facts>div { padding: 16px 0; }
.situation-facts dd { line-height: 1.5; }
.choice-option { min-width: 0; }
.draft-review { padding: 6px 12px; min-height: 44px; font-size: var(--small); }
.choice-option:has(.draft-review) { border: 1px solid var(--seam); border-radius: var(--radius); background: var(--carbon); }
.choice-option:has(.draft-review) .choice { border: 0; margin: 0; }
.choice-option:has(.draft-review) .draft-review { margin-left: 32px; }
.fact-changed .situation-facts { animation: fact-change 900ms ease-out; }
@keyframes fact-change { from { background-color: #284348; } to { background-color: transparent; } }
dialog[data-kind=evidence] { width: min(1040px, calc(100% - 32px)); max-width: none; }
.file-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.file-tabs button { display: flex; gap: 12px; align-items: center; border: 1px solid var(--seam); color: var(--fog); background: var(--carbon); padding: 12px; font-size: var(--small); text-align: left; min-height: 56px; min-width: 0; overflow-wrap: anywhere; }
.file-tabs button[aria-pressed=true] { border-color: var(--current); background: var(--internal-surface); }
.file-tabs small { display: block; font-size: var(--meta); color: var(--silver); margin-top: 5px; }
.file-preview { background: #f4f6f7; color: #1b2b30; border: 1px solid #809797; border-radius: 6px; overflow: hidden; }
.file-toolbar { display: flex; gap: 14px; align-items: center; background: #155b47; color: white; padding: 14px 16px; font-size: var(--small); overflow-wrap: anywhere; }
.file-app { font-size: var(--meta); border: 1px solid #93b7aa; padding: 4px; }
.file-path { padding: 12px 16px; font-size: var(--meta); border-bottom: 1px solid #b6c6c4; color: #425756; }
.file-preview .evidence-table { margin: 0; border: 0; border-radius: 0; }
.file-preview caption { color: #273f3b; padding: 14px 16px; font-size: var(--small); text-align: left; }
.file-preview th, .file-preview td { padding: 12px; font-size: var(--small); color: #1b2b30; border: 1px solid #c8d3d1; white-space: nowrap; text-align: left; }
.file-preview thead th { background: #e0e9e6; font-weight: 600; }
.file-preview tbody tr:nth-child(even) { background: #edf2f0; }
.file-preview .row-number { color: #526965; background: #e0e9e6; text-align: right; min-width: 36px; }
.sheet-footer { display: flex; gap: 20px; justify-content: space-between; padding: 12px 16px; font-size: var(--meta); border-top: 1px solid #b6c6c4; background: #e0e9e6; }
.sheet-footer>span:first-child { color: #155b47; font-weight: 600; }
.file-metadata { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 16px; margin: 20px 0 0; }
.file-metadata dt { font-size: var(--meta); color: var(--silver); margin-bottom: 6px; }
.file-metadata dd { margin: 0; font-size: var(--small); line-height: 1.5; }
.file-metadata > div { min-width: 0; }
.file-metadata dd { overflow-wrap: anywhere; }
.offer-details { display: flex; align-items: center; gap: 16px; }
.statement-paper { background: #f4f6f7; color: #192b31; padding: 32px; border-top: 5px solid #155b47; }
.statement-paper h3 { font-size: 24px; margin: 16px 0 24px; }
.statement-paper p { color: #192b31; }
.statement-paper .statement-heading { font-size: var(--small); font-weight: 600; }
.statement-paper>span { display: block; color: #4d626b; border-top: 1px solid #b6c6c4; margin-top: 32px; padding-top: 16px; font-size: var(--small); }
.decision-log { border-block: 1px solid var(--seam); margin: 32px 0; background: var(--carbon); }
.decision-log summary { padding: 20px; font-size: 1rem; font-weight: 600; }
.decision-log summary>span { color: var(--silver); font-size: var(--small); margin-left: 16px; font-weight: 400; }
.decision-log ol { list-style: none; margin: 0; padding: 0 20px; }
.decision-log li { display: flex; align-items: center; gap: 20px; justify-content: space-between; border-top: 1px solid var(--seam); padding: 20px 0; }
.decision-log li>div>span { color: var(--current); font-size: var(--small); }
.decision-log li p { margin-top: 8px; font-size: 1rem; }
.decision-log li .text-link { flex-shrink: 0; }
.payment-guidance { padding: 24px; background: var(--carbon); border: 1px solid var(--seam); font-size: var(--small); color: var(--silver); }
.payment-guidance a { color: var(--current); text-decoration: underline; }
@media(max-width:600px) {
  .entry-context { padding: 20px 24px; }
  .file-tabs { flex-direction: column; }
  .file-metadata { grid-template-columns: 1fr; gap: 14px; }
  .file-toolbar { align-items: flex-start; }
  .sheet-footer { flex-wrap: wrap; gap: 8px; }
  .statement-paper { padding: 24px 20px; }
  .decision-log li { align-items: flex-start; }
}
@media(prefers-reduced-motion:reduce) { .fact-changed .situation-facts { animation: none; } }
.instant-text .fact-changed .situation-facts { animation: none; }
@media print {
  .decision-log { display: none; }
  .payment-guidance { background: white; color: #111; border-color: #aaa; }
}

.scenario-next { background: var(--void); padding: 20px; }
.site-footer { background: var(--void); padding: 20px; }
.debrief { background: var(--void); padding-inline: 24px; }
@media(max-width:600px) { .debrief { padding-inline: 8px; } }
@media print { .debrief { background: white; padding: 0; } }
.choice-option:has(.draft-review) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.choice-option:has(.draft-review) .draft-review { margin: 0; padding: 12px; }
@media(max-width:600px) { .choice-option:has(.draft-review) { grid-template-columns: 1fr; } .choice-option:has(.draft-review) .draft-review { margin-left: 32px; padding-top: 0; } }

/* The two complete episodes share one conversation and document system. */
.episode-nav { display: flex; gap: 8px; margin-bottom: 20px; }
.episode-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--seam); border-radius: var(--radius); background: var(--carbon); color: var(--silver); font-size: var(--small); line-height: 1.45; }
.episode-nav a:hover { color: var(--fog); border-color: var(--action); }
.episode-nav [aria-current] { color: var(--fog); border-color: var(--action); background: var(--surface); }
.email-paper { background: #f4f6f7; color: #192b31; border: 1px solid #809797; border-radius: 6px; }
.email-paper dl { margin: 0; padding: 20px; border-bottom: 1px solid #b6c6c4; }
.email-paper dl>div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; margin: 8px 0; font-size: var(--small); line-height: 1.5; }
.email-paper dt { color: #4d626b; }
.email-paper dd { margin: 0; overflow-wrap: anywhere; }
.email-body { padding: 24px; }
.email-body p { color: #192b31; }
.inert-link { display: inline-block; font-size: var(--body); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.destination-inspector { margin-top: 20px; }
.destination-inspector summary { min-height: 44px; padding: 12px 0; color: var(--current); font-size: var(--small); }
.destination, .destination-inspector p { overflow-wrap: anywhere; font-size: var(--small); }
.directory-contact { padding: 20px; background: var(--surface); border: 1px solid var(--seam); border-radius: var(--radius); }
.directory-contact h3 { font-size: 1.25rem; }
.directory-contact dl { font-size: var(--small); line-height: 1.5; }
.directory-contact dl>div { padding-block: 8px; }
.directory-contact dt { color: var(--silver); }
.directory-contact dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.directory-contact p { font-size: var(--small); }
.mfa-card { text-align: center; padding: 12px; }
.notification-symbol { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 20px; border: 2px solid var(--review); color: var(--review); border-radius: 50%; font-size: 28px; font-weight: 600; }
.mfa-card h3 { font-size: 24px; }
.mfa-card dl { display: flex; justify-content: center; gap: 24px; font-size: var(--small); line-height: 1.5; margin-block: 24px; }
.mfa-card dt { color: var(--silver); }
.mfa-card dd { margin: 6px 0 0; }
.mfa-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding-top: 12px; }
.notification-state { font-size: var(--small) !important; }
.system-event .attachment { text-align: left; margin-inline: auto; }
.activity-checklist { list-style: none; padding: 0; margin: 20px 0; }
.activity-checklist li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--seam); font-size: var(--small); line-height: 1.5; }
.activity-checklist strong { font-weight: 500; white-space: nowrap; color: var(--silver); }
.activity-checklist .activity-confirmed { color: var(--current); }
.activity-checklist .activity-inProgress { color: var(--review); }
.report-correction, .activity-link { margin: 0 20px 12px 0; }
@media(max-width:600px) {
  .episode-nav { display: flex; flex-direction: column; gap: 8px; }
  .episode-nav a { padding: 12px; }
  .game-identity { min-width: 0; }
  .mfa-card { padding: 0; }
  .mfa-card dl { flex-direction: column; gap: 12px; }
  .mfa-actions>* { width: 100%; }
  .email-paper dl { padding: 12px; }
  .email-paper dl>div { grid-template-columns: 64px minmax(0,1fr); }
  .email-body { padding: 20px 12px; }
  .directory-contact { padding: 16px; }
  .activity-checklist li { align-items: flex-start; gap: 12px; }
}
.ransom-note-paper { border: 1px solid var(--seam); background: var(--carbon); padding: 24px; }
.note-filename { color: var(--silver); font-size: var(--small); margin-bottom: 20px; }
.ransom-note-paper pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: 400 var(--small)/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
dialog[data-kind="ransom-note"] { width: min(720px, calc(100% - 24px)); }
.is-note-scene .thread::before { flex: 0; }
.note-preview { margin-top: 16px; padding: 20px; border: 1px solid var(--seam); border-radius: var(--radius); background: var(--surface); color: var(--fog); text-align: left; }
.note-preview-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: var(--small); }
.note-preview-heading strong { font-weight: 600; }
.note-case { margin-left: auto; color: var(--silver); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.note-excerpt { margin-block: 16px 8px; font-size: var(--body); }
.note-preview .text-link { min-height: 44px; }
.remaining-work { border-block: 1px solid var(--seam); padding: 24px; margin: 24px 0; }
.remaining-work h2 { font-size: 1.5rem; margin-bottom: 16px; }
.remaining-work li { font-size: var(--body); line-height: 1.65; margin: 10px 0; }
.artifact-paper table { border-collapse: collapse; width: 100%; font-size: var(--small); line-height: 1.5; }
.artifact-paper th, .artifact-paper td { border: 1px solid var(--seam); padding: 12px; text-align: left; }
.artifact-paper th { background: var(--surface); color: var(--fog); }
.artifact-paper td { color: var(--silver); }
@media(max-width:600px) { .ransom-note-paper, .remaining-work, .note-preview { padding: 16px; } .note-case { margin-left: 0; width: 100%; } }
@media print { .full-feedback, .role-perspectives, .remaining-work { background: white; color: #111; border-color: #aaa; } .observation-body { padding: 12px 0; } }
