:root {
  color-scheme: light;
  --navy: #101525;
  --blue: #3366ff;
  --blue-dark: #214bce;
  --lime: #99ff33;
  --ink: #172039;
  --muted: #65708a;
  --line: #e1e6ef;
  --surface: #fff;
  --canvas: #f4f6fb;
  --blue-soft: #eef3ff;
  --green-soft: #effbdd;
  --danger: #a93143;
  --radius: 22px;
  --shadow: 0 16px 48px -30px rgba(16, 21, 37, .25);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; transform: none !important; box-shadow: none !important; }
button, a { touch-action: manipulation; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
button, input, select, textarea { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: #d9ffb7; color: var(--navy); }
[hidden] { display: none !important; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--navy); font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.1vw, 53px); line-height: 1.1; letter-spacing: -1.8px; }
h2 { font-size: clamp(25px, 3vw, 35px); line-height: 1.18; letter-spacing: -1px; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.4px; }
p { color: var(--muted); }
small { font-size: 12px; }
strong, b { font-weight: 700; }

.app-shell { width: 100%; min-height: 100svh; }
.site-header {
  min-height: 88px;
  padding: 18px max(28px, calc((100vw - 1240px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.headerbrand, .brand { display: flex; align-items: center; gap: 22px; text-decoration: none; min-width: 0; }
.brand-logo { width: 150px; height: 43px; object-fit: contain; flex: 0 0 auto; }
.brand-copy { padding-left: 21px; border-left: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--muted); }
.brand-copy strong { display: block; color: var(--navy); font-size: 14px; letter-spacing: -.2px; }
.brand-copy > span { display: block; font-weight: 750; color: var(--navy); font-size: 14px; }
.brand-copy > small { display: block; font-size: 10px; }
.user-summary { display: flex; align-items: center; gap: 12px; }
.user-summary > strong { font-size: 12px; color: var(--navy); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.role-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #f8faff; font-size: 11px; font-weight: 650; color: var(--muted); }
.role-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
#app { max-width: 1240px; margin: 0 auto; padding: 36px 28px 48px; }
.screen { animation: enter .24s ease both; }
.screen > h1, .screen > h2 { margin-bottom: 12px; }
.screen > p { max-width: 68ch; }
.screen > .eyebrow { margin-bottom: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; line-height: 1.5; }
.pill { display: inline-flex; gap: 6px; align-items: center; width: fit-content; padding: 6px 10px; border: 1px solid var(--line); background: white; border-radius: 7px; font-size: 11px; font-weight: 650; color: var(--muted); }
.pill.success, .pill.is-success { background: var(--green-soft); border-color: #d9edbf; color: #385724; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.45;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary, .button-primary { background: var(--blue); color: white; box-shadow: 0 5px 12px -6px #3366ff99; }
.btn-primary:hover:not(:disabled), .button-primary:hover:not(:disabled) { background: var(--blue-dark); box-shadow: 0 7px 17px -7px #3366ffb3; }
.btn-secondary, .button-secondary { background: white; border-color: #cbd3e1; color: var(--navy); }
.btn-secondary:hover:not(:disabled), .button-secondary:hover:not(:disabled) { background: #f4f7fc; border-color: #8d9bb6; }
.btn-ghost, .button-ghost { background: transparent; color: var(--muted); min-height: 38px; padding: 8px 10px; }
.btn-ghost:hover:not(:disabled), .button-ghost:hover:not(:disabled) { background: var(--blue-soft); color: var(--blue-dark); }
.button svg { width: 17px; height: 17px; }

.auth-card { max-width: 490px; margin: 36px auto 20px; padding: 38px; border-top: 4px solid var(--blue); }
.auth-card h1 { font-size: 35px; letter-spacing: -1.2px; margin: 10px 0 14px; }
.auth-card > p { font-size: 1rem; }
.login-form { display: grid; gap: 19px; margin-top: 28px; }
.login-form .button { width: 100%; margin-top: 3px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span, .field > label, label.field { font-size: .875rem; font-weight: 700; color: #34405a; }
.field input, .field select, input[type="text"], input[type="email"], input[type="password"], select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfd7e6; border-radius: 9px; background: #fff; color: var(--ink); font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, input::placeholder { color: #8b95a9; opacity: 1; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #3366ff14; }
.form-note { font-size: 11px; line-height: 1.6; color: var(--muted); }
.error-message { padding: 11px 14px; border-left: 3px solid var(--danger); border-radius: 6px; background: #fff0f2; font-size: 13px; color: var(--danger); }
.error-message:empty { display: none; }
.auth-card .form-note { margin-top: 20px; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 100; padding: 10px 18px; background: white; color: var(--blue-dark); border-radius: 8px; transform: translateY(-160%); box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; }
.mission-card { padding: 0; overflow: hidden; }
.hero-content { padding: 42px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; }
.hero-content h1 { max-width: 12ch; }
.hero-content > p { max-width: 46ch; font-size: 1rem; line-height: 1.75; }
.hero-content .button { margin-top: 3px; min-width: 190px; }
.hero-media {
  position: relative; min-height: 440px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; isolation: isolate;
  background: var(--navy) url("/assets/mission.webp") center center / cover no-repeat; color: #fff;
}
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #10152508 25%, #101525ed 100%); }
.hero-media p, .hero-media h2, .hero-media h3, .hero-media strong { color: white; }
.hero-media .eyebrow { color: var(--lime); }
.hero-media .pill { color: white; border-color: #ffffff40; background: #10152590; width: fit-content; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mission-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.mission-meta .pill { background: #f6f8fc; }
.mission-list { display: grid; gap: 10px; margin: 0; padding-left: 19px; font-size: 13px; color: #59667e; }
.mission-list li::marker { color: var(--blue); }
.mission-card + .panel { margin-top: 20px; }
.auth-layout { display: grid; grid-template-columns: 1.4fr .85fr; gap: 25px; align-items: stretch; }
.auth-layout .hero { position: relative; display: block; background: var(--navy); isolation: isolate; border-radius: var(--radius); }
.auth-layout .hero-content { min-height: 545px; padding: 42px; position: relative; z-index: 2; }
.auth-layout .hero-content h1 { color: white; font-size: clamp(38px, 3.7vw, 49px); max-width: 15ch; }
.auth-layout .hero-content > p { color: #c5cee2; max-width: 41ch; }
.auth-layout .hero-content .eyebrow { color: var(--lime); }
.auth-layout .hero-media { position: absolute; inset: 0; min-height: 0; padding: 0; z-index: 0; opacity: .35; }
.auth-layout .hero-media::before { background: linear-gradient(90deg, #101525d9, #10152540); }
.auth-layout .hero-media img { z-index: -1; }
.auth-layout .mission-meta .pill { border-color: #ffffff33; background: #ffffff0c; color: #e4e9f5; }
.auth-layout .auth-card { margin: 0; max-width: none; padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.auth-card h2 { margin: 10px 0 12px; font-size: 30px; }
.mission-steps { display: grid; gap: 10px; margin: 0; padding-left: 19px; color: #53617a; font-size: 13px; }
.mission-steps li::marker { color: var(--blue); font-weight: 750; }

.question-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 20px; }
.question-header h1, .question-header h2 { margin-top: 6px; }
.question-header h1 { font-size: 30px; }
.question-progress { font-size: 12px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.question-progress strong { color: var(--blue); font-variant-numeric: tabular-nums; }
.progress-track { appearance: none; display: block; width: 100%; height: 7px; border: 0; border-radius: 20px; background: #e2e8f2; overflow: hidden; margin: 14px 0 28px; }
.progress-track::-webkit-progress-bar { background: #e2e8f2; }
.progress-track::-webkit-progress-value { background: var(--blue); border-radius: 20px; }
.progress-track::-moz-progress-bar { background: var(--blue); border-radius: 20px; }
.question-card { max-width: 880px; margin: 0 auto; }
.mission-play { max-width: 880px; margin: 0 auto; }
.question-card h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.23; letter-spacing: -.8px; margin-bottom: 20px; }
.question-prompt { padding: 17px 19px; background: #f2f5fb; border-radius: 9px; color: #47546c; }
.question-fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.question-fieldset legend { padding: 0; }
.question-fieldset .option-list { margin-top: 15px; }
.scenario-note { margin-top: 20px; font-size: 10px; }
.question-card h2 { margin: 14px 0 17px; font-size: clamp(25px, 3vw, 33px); }
.question-card > p { font-size: 1rem; line-height: 1.75; }
.question-card .eyebrow { margin-bottom: 9px; }
.question-context, .scenario { padding: 17px 19px; margin: 20px 0; border-left: 3px solid var(--blue); background: #f2f6ff; border-radius: 0 9px 9px 0; font-size: 14px; line-height: 1.75; color: #44516b; }
.option-list { display: grid; gap: 12px; margin: 25px 0 0; padding: 0; list-style: none; }
.answer-option, .option-card {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; padding: 17px 19px; min-height: 73px;
  border: 1.5px solid var(--line); border-radius: 12px; background: white; color: #44516b; font-size: 1rem; font-weight: 450; line-height: 1.65; transition: background .15s, border-color .15s, box-shadow .15s;
}
.answer-option:hover:not(:disabled), .option-card:hover:not(:disabled) { background: #f7f9ff; border-color: #99b0ed; }
.answer-option.selected, .option-card.is-selected { background: var(--blue-soft); border-color: var(--blue); color: var(--navy); box-shadow: 0 0 0 1px var(--blue); }
.answer-option input { width: 18px; height: 18px; margin: 4px 0; accent-color: var(--blue); flex-shrink: 0; }
.answer-option:focus-within { outline: 3px solid #3366ff55; outline-offset: 3px; }
.answer-option .answer-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; margin: 0; }
.option-marker { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border: 1px solid #dae0eb; border-radius: 8px; background: #f8faff; color: var(--muted); font-size: 12px; font-weight: 750; }
.selected .option-marker, .is-selected .option-marker { color: white; background: var(--blue); border-color: var(--blue); }
.question-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 27px; }
.question-actions p, .question-actions small { max-width: 42ch; font-size: 11px; line-height: 1.6; color: var(--muted); }
.question-actions .button { flex: 0 0 auto; }

.result-summary { display: flex; align-items: center; gap: 32px; background: var(--navy); color: white; padding: 34px; border-color: var(--navy); }
.result-summary h1, .result-summary h2 { color: white; margin: 7px 0 12px; }
.result-summary p { color: #bac4dc; max-width: 62ch; font-size: 14px; }
.result-summary .eyebrow { color: var(--lime); }
.score-ring { display: flex; align-items: center; justify-content: center; flex-direction: column; flex: 0 0 auto; width: 140px; height: 140px; border: 9px solid var(--lime); border-radius: 50%; color: white; font-size: 36px; font-weight: 750; line-height: 1.1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.score-ring small { display: block; font-size: 11px; font-weight: 550; letter-spacing: 0; color: #c5cee2; margin-top: 5px; }
.score-ring > strong { font-size: 36px; line-height: 1; }
.score-ring > span { display: block; font-size: 11px; font-weight: 550; letter-spacing: 0; color: #c5cee2; margin-top: 8px; }
.result-summary .pill { margin-top: 16px; background: #ffffff0a; border-color: #ffffff2c; color: #dfe7f9; }
.result-summary > div:first-child { flex: 1; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.feedback-card { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 22px; }
.feedback-card h3 { margin: 10px 0; font-size: 17px; }
.feedback-card p { font-size: 13px; line-height: 1.75; }
.feedback-card h2 { font-size: 20px; letter-spacing: -.4px; line-height: 1.3; margin: 17px 0; }
.feedback-card p + p { margin-top: 13px; }
.feedback-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.feedback-header .eyebrow { font-size: 9px; letter-spacing: 1px; }
.feedback-header .pill { white-space: nowrap; font-size: 10px; padding: 4px 8px; }
.correct .feedback-header .pill { background: var(--green-soft); color: #486f24; border-color: #d8ebc6; }
.incorrect .feedback-header .pill { background: #fff7e6; color: #846015; border-color: #efdfba; }
.feedback-explanation { padding-top: 15px; border-top: 1px solid var(--line); }
.feedback-card.correct, .feedback-card.is-correct { border-top: 3px solid #78b62d; }
.feedback-card.incorrect, .feedback-card.is-incorrect { border-top: 3px solid #e4aa39; }
.feedback-card.correct .eyebrow, .feedback-card.is-correct .eyebrow { color: #4c702e; }
.feedback-card.incorrect .eyebrow, .feedback-card.is-incorrect .eyebrow { color: #8e6415; }
.result-actions, .report-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.dashboard-card { margin-top: 24px; }
.dashboard-card h2, .dashboard-card h3 { margin-bottom: 8px; }
.dashboard-card > p { font-size: 13px; }
.report-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; }
.report-heading h1 { font-size: clamp(30px, 3.5vw, 43px); margin: 10px 0 14px; }
.report-heading > div:first-child { max-width: 650px; }
.report-heading .report-actions { margin-top: 0; flex: 0 0 auto; }
.report-heading p { font-size: 13px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-heading h2 { font-size: 23px; }
.kpi-grid, .report-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.stat-card { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.stat-card > span, .stat-card > p, .stat-card > small { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.stat-card > strong, .stat-value { display: block; color: var(--navy); font-size: 32px; font-weight: 750; letter-spacing: -1px; line-height: 1.2; margin: 9px 0; font-variant-numeric: tabular-nums; }
.stat-card:first-child { border-top: 3px solid var(--blue); padding-top: 20px; }
.reports-screen .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart-bars, .topic-list { display: grid; gap: 18px; margin-top: 24px; }
.topic-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(100px, 2fr) 46px; gap: 18px; align-items: center; font-size: 13px; }
.topic-row strong { font-size: 13px; }
.topic-row .progress-track { margin: 0; height: 8px; }
.topic-row > span:last-child { text-align: right; font-size: 13px; font-weight: 750; color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.topic-list .topic-row { grid-template-columns: minmax(170px, 1fr) minmax(140px, 2.5fr); }
.topic-label { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
.topic-label strong { color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.chart-bar { background: #e4eaf5; height: 8px; overflow: hidden; border-radius: 10px; }
.chart-bar > span, .chart-bar > div { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.table-wrap { overflow-x: auto; width: 100%; border: 1px solid var(--line); border-radius: 12px; margin-top: 22px; }
table, .report-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 13px 16px; background: #f6f8fc; color: #64718a; font-weight: 700; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 15px 16px; border-bottom: 1px solid #eaf0f6; color: #49556d; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfe; }
td:first-child { color: var(--navy); font-weight: 600; }
td .pill { font-size: 10px; white-space: nowrap; }
.report-table tbody th { text-transform: none; letter-spacing: 0; background: white; color: var(--navy); font-weight: 600; font-size: 12px; border-bottom: 1px solid #eaf0f6; }
.empty-state { padding: 40px 24px; text-align: center; border: 1px dashed #cad4e5; background: #fafbff; border-radius: 14px; margin-top: 24px; }
.empty-state h3 { margin-bottom: 9px; }
.empty-state p { font-size: 13px; max-width: 48ch; margin: 0 auto; }
.empty-state .button { margin-top: 20px; }
.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; }
footer, .site-footer { color: #7d879b; text-align: center; font-size: 10px; padding: 20px 24px 28px; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; max-width: 1240px; margin: 0 auto; padding-top: 0; }

@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { #app { padding-top: 50px; } }
@media (max-width: 900px) {
  .site-header { padding: 16px 24px; }
  .brand-copy { display: none; }
  .hero { grid-template-columns: 1.1fr .9fr; }
  .hero-content { padding: 30px; gap: 18px; }
  .hero-content h1 { font-size: 39px; }
  .hero-media { min-height: 430px; padding: 22px; }
  .auth-layout { grid-template-columns: 1.05fr 1fr; gap: 19px; }
  .auth-layout .hero-content { padding: 30px; }
  .auth-layout .hero-content h1 { font-size: 39px; }
  .auth-layout .auth-card { padding: 26px; }
  .user-summary { gap: 8px; }
  .report-heading { align-items: flex-start; flex-direction: column; }
  .kpi-grid, .report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .site-header { min-height: 74px; padding: 13px 18px; gap: 10px; }
  .brand-logo { width: 120px; height: 34px; }
  .header-actions { gap: 5px; }
  .header-actions .button { min-height: 36px; padding: 7px 8px; font-size: 11px; }
  .role-badge { padding: 5px 7px; font-size: 10px; }
  .user-summary { flex-direction: column; align-items: flex-end; gap: 3px; }
  .user-summary > strong { font-size: 10px; }
  #app { padding: 23px 16px 35px; }
  .panel { padding: 23px; border-radius: 17px; }
  .auth-card { margin: 18px auto; padding: 28px 23px; }
  .auth-card h1 { font-size: 31px; }
  .auth-layout { grid-template-columns: 1fr; gap: 16px; }
  .auth-layout .hero-content { min-height: 320px; padding: 28px; gap: 15px; }
  .auth-layout .hero-content h1 { font-size: 36px; max-width: 16ch; }
  .auth-layout .hero-content > p { font-size: 13px; }
  .auth-layout .hero-content .form-note { margin-top: 0; padding-top: 11px; }
  .auth-layout .auth-card { padding: 27px; }
  .auth-layout .hero-content .mission-meta .pill { font-size: 9px; }
  .hero { grid-template-columns: 1fr; }
  .mission-card { padding: 0; }
  .hero-content { padding: 28px 25px; gap: 18px; }
  .hero-content h1 { max-width: 15ch; font-size: 39px; }
  .hero-content > p { font-size: 14px; }
  .hero-content .button { width: 100%; }
  .hero-media { min-height: 220px; background-position: center 42%; padding: 23px; }
  .hero-media h2 { font-size: 24px; }
  .question-header { margin-bottom: 14px; gap: 12px; align-items: center; }
  .question-header h1 { font-size: 22px; letter-spacing: -.6px; }
  .question-progress { font-size: 11px; }
  .question-card h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.6px; }
  .progress-track { margin: 11px 0 22px; }
  .answer-option, .option-card { padding: 15px 13px; gap: 11px; border-radius: 10px; font-size: 13px; min-height: 68px; }
  .option-marker { width: 27px; height: 27px; border-radius: 6px; font-size: 11px; }
  .question-actions { align-items: stretch; flex-direction: column-reverse; gap: 15px; }
  .question-actions .button { width: 100%; }
  .question-actions p { text-align: center; max-width: none; }
  .result-summary { gap: 23px; padding: 27px 23px; align-items: flex-start; flex-direction: column; }
  .score-ring { width: 105px; height: 105px; font-size: 28px; border-width: 7px; }
  .score-ring > strong { font-size: 28px; }
  .result-summary h1 { font-size: 33px; }
  .result-grid { grid-template-columns: 1fr; gap: 13px; margin-top: 16px; }
  .feedback-card { padding: 20px; }
  .result-actions, .report-actions { flex-direction: column; }
  .result-actions .button, .report-actions .button { width: 100%; }
  .kpi-grid, .report-stats { gap: 10px; margin: 22px 0; }
  .stat-card { padding: 17px; border-radius: 12px; }
  .stat-card:first-child { padding-top: 15px; }
  .stat-card > strong, .stat-value { font-size: 28px; }
  .topic-row { grid-template-columns: minmax(85px, 1.25fr) minmax(60px, 1fr) 35px; gap: 10px; font-size: 11px; }
  .topic-row strong, .topic-row > span:last-child { font-size: 11px; }
  .topic-list .topic-row { grid-template-columns: 1fr; gap: 8px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .report-heading h1 { font-size: 33px; }
  .report-heading .report-actions { width: 100%; flex-direction: row; }
  .report-heading .report-actions .button { flex: 1; }
  .reports-screen .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .reports-screen .stat-card { padding: 13px 11px; }
  .reports-screen .stat-card:first-child { padding-top: 11px; }
  .reports-screen .stat-card > span { font-size: 9px; }
  .reports-screen .stat-card > strong { font-size: 26px; }
  .feedback-header { gap: 8px; }
  .site-footer { padding-left: 18px; padding-right: 18px; flex-direction: column; gap: 4px; align-items: flex-start; }
  th, td { padding: 12px; }
  .table-wrap { margin-top: 18px; }
}
@media (max-width: 380px) {
  .role-badge { display: none; }
  .hero-content h1 { font-size: 35px; }
  .kpi-grid, .report-stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@page { size: A4 landscape; margin: 12mm; }
@media print {
  :root { --ink: #171c28; --muted: #525a6a; --line: #ccd1da; }
  body { background: white; color: #171c28; font-size: 10pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app-shell { min-height: 0; }
  .site-header { padding: 0 0 12px; min-height: 55px; border-bottom: 2px solid var(--navy); }
  .site-header .header-actions, .role-badge, .button, .question-actions, .result-actions, .report-actions, .no-print, .site-footer, footer, .skip-link { display: none !important; }
  .brand-logo { width: 130px; height: 36px; }
  .brand-copy { display: block; }
  #app { padding: 18px 0 0; max-width: none; }
  .screen { animation: none; }
  h1 { font-size: 25pt; letter-spacing: -.6px; }
  h2 { font-size: 18pt; }
  h3 { font-size: 12pt; }
  .panel, .feedback-card, .stat-card { box-shadow: none; border-radius: 6px; break-inside: avoid; }
  .panel { padding: 16px; }
  .dashboard-card { margin-top: 18px; }
  .kpi-grid, .report-stats { grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
  .stat-card { padding: 13px; }
  .stat-card:first-child { padding-top: 11px; }
  .stat-card > strong, .stat-value { font-size: 24pt; }
  .chart-bars, .topic-list { gap: 13px; margin-top: 17px; }
  .topic-row { grid-template-columns: 2fr 3fr 45px; }
  .topic-list .topic-row { grid-template-columns: minmax(170px, 1fr) minmax(140px, 2.5fr); }
  .table-wrap { overflow: visible; border-radius: 0; margin-top: 16px; }
  table, .report-table { font-size: 8pt; }
  th { font-size: 7pt; }
  th, td { padding: 9px 10px; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  .pill { font-size: 8pt; padding: 3px 6px; }
  .progress-track, .chart-bar { background: #e3e7ed !important; }
  .progress-fill, .chart-bar > span, .chart-bar > div { background: #3366ff !important; }
  a { color: inherit; text-decoration: none; }
}

/* Cambio de turno: the participant space is a field command center. */
body:has(.command-center) { background: #0c1221; color: #edf3ff; }
body:has(.command-center) .site-header { background: #101829; border-color: #28344c; }
body:has(.command-center) .brand-copy { border-color: #36425a; }
body:has(.command-center) .brand-copy > span,
body:has(.command-center) .user-summary > strong { color: #edf3ff; }
body:has(.command-center) .brand-copy > small { color: #8496b5; }
body:has(.command-center) .role-badge { background: #1b2940; border-color: #34445e; color: #afc0dc; }
body:has(.command-center) .header-actions .button { color: #afc0dc; }
body:has(.command-center) .header-actions .button:hover { background: #22314d; color: white; }
body:has(.command-center) .site-footer { color: #788ba9; }
body:has(.command-center) #app { max-width: 1360px; padding-top: 30px; }

.command-center {
  --surface: #15223a;
  --muted: #a1b1cc;
  --line: #2b3d59;
  --ink: #edf3ff;
  color: #edf3ff;
}
.command-center h1, .command-center h2, .command-center h3 { color: #f0f5ff; }
.command-center p { color: #a1b1cc; }
.command-center .eyebrow { color: #99ff33; font-size: 10px; letter-spacing: 1.8px; }
.command-center .panel { background: #15223a; box-shadow: none; border-color: #2b3d59; }
.command-center .pill { color: #c1d0e8; background: #1c2c47; border-color: #364968; }
.command-center .form-note { color: #91a4c3; }
.command-center .btn-secondary { color: #d7e4fa; background: #1b2c48; border-color: #405575; }
.command-center .btn-secondary:hover:not(:disabled) { background: #263c5f; border-color: #7592bf; }
.command-center .btn-ghost { color: #b7c8e3; }
.command-center .btn-ghost:hover:not(:disabled) { background: #1f3252; color: #fff; }
.command-center .btn-primary { background: #99ff33; color: #152119; box-shadow: 0 4px 18px -9px #99ff3380; }
.command-center .btn-primary:hover:not(:disabled) { background: #b2ff68; box-shadow: 0 6px 22px -9px #99ff3380; }
.command-center .error-message { background: #411f2a; color: #ffc5ce; border-color: #f28b9b; }
.command-center .field > label { color: #c1d0e8; }
.command-center .field input, .command-center .field select { background: #0d182c; border-color: #3c506f; color: #edf3ff; }
.command-center .field input:focus { border-color: #81a2ff; box-shadow: 0 0 0 3px #3366ff38; }
.command-center .auth-card h2 { color: white; }
.command-center .auth-card { border-top-color: #3366ff; }
.command-center.auth-layout { gap: 26px; }
.command-center.auth-layout .hero-content { min-height: 570px; }
.command-center .hero-media { background-color: #132947; background-image: url('/assets/worksite.webp'); }
.command-center.auth-layout .hero-media { opacity: .48; }
.command-center.auth-layout .hero-content { background: linear-gradient(90deg, #101525d9, #10152533); }
.command-center .hero-content .mission-steps { color: #adbed9; }
.command-center .mission-card.hero { border: 1px solid #2b3d59; }
.command-center .hero-content > h1 { max-width: 16ch; }
.command-center .hero-content > p { color: #adbed9; }
.command-center .hero-content .mission-meta .pill { background: #21344f; border-color: #3c5271; color: #d4e2f9; }

.mission-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.mission-choice {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  padding: 11px 16px 11px 18px;
  border: 1px solid #3b506e;
  border-radius: 9px;
  background: #142139;
  color: #d4e1f6;
  text-align: left;
  line-height: 1.35;
  transition: background-color .15s, border-color .15s;
}
.mission-choice > strong { font-size: 15px; }
.mission-choice > small { color: #aec0dd; }
.mission-choice[aria-current="true"] {
  border-color: #648650;
  background: #1b302b;
  color: #e1f5d4;
  box-shadow: inset 3px 0 var(--lime);
}
.mission-choice[aria-current="true"] > small { color: #bed2b7; }
.mission-choice:hover:not(:disabled):not([aria-current="true"]) {
  background: #203451;
  border-color: #6c8ab6;
}
.mission-choice:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.mission-switcher--report { max-width: 26rem; margin: 14px 0 18px; }
.mission-switcher--report .mission-choice { min-height: 44px; padding: 8px 13px; }
.mission-switcher--report .mission-choice > strong { font-size: 13px; }
@media screen and (max-width: 540px) {
  .mission-switcher { gap: 8px; margin-bottom: 13px; }
  .mission-choice { min-height: 60px; padding: 9px 12px; }
  .mission-choice > strong { font-size: 14px; }
}
@media screen and (max-width: 350px) {
  .mission-switcher { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .mission-switcher { display: none !important; }
}

.game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 0 23px; border-bottom: 1px solid #2b3d59; margin-bottom: 25px; }
.game-toolbar > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.game-toolbar h1 { font-size: 28px; letter-spacing: -.8px; }
.game-toolbar h2 { font-size: 22px; }
.xp-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #528334; border-radius: 8px; color: #b5ff7c; background: #1e3425; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sound-toggle { min-height: 40px; padding: 8px 12px; border: 1px solid #3b4e6b; border-radius: 8px; background: #17263f; color: #bacbe7; font-size: 11px; }
.sound-toggle[aria-pressed="true"] { color: #b3ff7a; border-color: #78aa48; }
.sound-toggle:hover { background: #233855; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 25px; align-items: start; }
.stage-content { min-width: 0; padding: 28px; border: 1px solid #2e4160; border-radius: 19px; background: #121f36; }
.stage-content > h1 { margin: 12px 0 15px; font-size: clamp(29px, 3vw, 41px); line-height: 1.16; letter-spacing: -1.25px; }
.stage-content > h2 { margin: 10px 0 15px; font-size: 29px; }
.stage-content > p { font-size: 14px; line-height: 1.75; max-width: 70ch; }
.stage-content > .pill { margin-bottom: 15px; }
.stage-content .question-actions { border-color: #304561; }
.stage-sidebar { position: sticky; top: 22px; display: grid; gap: 20px; }
.stage-sidebar h2 { font-size: 17px; letter-spacing: -.3px; }
.stage-sidebar h3 { font-size: 15px; }
.stage-sidebar p { font-size: 12px; line-height: 1.7; }
.stage-sidebar > .panel { padding: 21px; border-radius: 14px; }
.mission-map { display: grid; gap: 11px; margin: 23px 0; }
.map-stage { position: relative; display: flex; width: 100%; align-items: center; text-align: left; gap: 13px; padding: 17px; border: 1px solid #2c3d58; border-radius: 12px; background: #111c30; color: #91a4c1; transition: border-color .2s, background .2s; }
.map-stage .stage-number { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #415574; border-radius: 9px; color: #a6b8d4; background: #1a2a43; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.map-stage > div { min-width: 0; }
.map-stage strong { display: block; color: #c5d3e9; font-size: 13px; line-height: 1.4; }
.map-stage small, .map-stage p { display: block; margin-top: 3px; color: #8196b7; font-size: 10px; line-height: 1.5; }
.map-stage.active { background: #19386c; border-color: #527fff; box-shadow: inset 3px 0 #83a0ff; }
.map-stage.active .stage-number { background: #3366ff; color: white; border-color: #6e93ff; }
.map-stage.active strong { color: white; }
.map-stage.active small, .map-stage.active p { color: #bdcff8; }
.map-stage.committed { border-color: #45643c; background: #162c2b; }
.map-stage.committed .stage-number { color: #b5ff7e; border-color: #578143; background: #29432d; }
.map-stage.committed strong { color: #d7edcf; }
.map-stage.locked { background: #0f182a; color: #7c8eab; opacity: .7; }
.map-stage:not(.locked):hover { border-color: #7090ca; }
.stage-sidebar .mission-map { margin: 13px 0 0; gap: 9px; }
.stage-sidebar .map-stage { padding: 13px; gap: 10px; }
.stage-sidebar .stage-number { width: 29px; height: 29px; font-size: 11px; }
.command-center > .mission-map { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stage-commit { margin-top: 23px; padding: 20px; background: #1b2d49; border: 1px solid #405c82; border-radius: 12px; }
.stage-commit h3 { margin-bottom: 8px; font-size: 16px; }
.stage-commit p { font-size: 12px; }
.stage-commit .button { margin-top: 15px; width: 100%; }
.stage-commit.committed { background: #1c342d; border-color: #64964a; box-shadow: inset 3px 0 #99ff33; }
.stage-commit.committed h3 { color: #c0ff98; }

.scan-scene { position: relative; aspect-ratio: 3 / 2; overflow: hidden; margin: 23px 0 17px; border: 1px solid #45617f; border-radius: 13px; background: #182942; isolation: isolate; }
.scan-scene > img { width: 100%; height: 100%; object-fit: contain; transform: none; display: block; margin: 0; }
.scene-pinlayer { position: absolute; inset: 0; }
.scene-pin { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 2px solid #d8e8ff; border-radius: 50%; transform: translate(-50%, -50%); color: white; background: #183352e8; box-shadow: 0 3px 14px #07101db3, 0 0 0 5px #10152540; font-size: 12px; font-weight: 800; transition: background .16s, border-color .16s, box-shadow .16s; z-index: 2; }
.scene-pin:hover { background: #3366ff; border-color: white; box-shadow: 0 0 0 6px #3366ff50; }
.scene-pin.flagged, .scene-pin[aria-pressed="true"] { background: #99ff33; border-color: #ddffb8; color: #17301a; box-shadow: 0 2px 9px #07101d80, 0 0 0 5px #99ff3340; }
.scene-pin.observed:not(.flagged) { border-color: #99b7ff; background: #2955b4ef; }
.scene-pin:focus-visible { outline-color: #fff; outline-offset: 7px; }
.scene-observation { margin: 17px 0; padding: 18px 20px; border: 1px solid #41638d; border-left: 3px solid #6a91ff; border-radius: 0 10px 10px 0; background: #1b3252; }
.scene-observation h3 { margin-bottom: 8px; font-size: 17px; color: #e0ebff; }
.scene-observation p { font-size: 13px; color: #bdcee7; }
.scene-observation .button { margin-top: 14px; }
.area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 15px 0 22px; }
.area-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; min-height: 47px; border: 1px solid #344b6e; border-radius: 8px; background: #182840; color: #b1c4e0; text-align: left; font-size: 11px; line-height: 1.5; }
.area-option:hover, .area-option.active { border-color: #789cf0; background: #223d64; color: #e7efff; }
.area-option.flagged { border-color: #668b4c; background: #263f31; color: #c8f6ab; }
.area-option span, .area-option strong { font-weight: 600; }

.sequence-pool { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 22px 0; }
.sequence-picked { display: grid; gap: 10px; margin: 23px 0; padding: 15px; background: #0c172b; border: 1px solid #2d4568; border-radius: 13px; }
.sequence-item { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 17px; width: 100%; min-height: 76px; text-align: left; border: 1px solid #405b82; border-radius: 10px; color: #dde9fc; background: #1d3352; font-size: 13px; line-height: 1.6; transition: border-color .15s, background .15s; }
button.sequence-item:hover { border-color: #8caaff; background: #29446a; }
.sequence-item > span, .sequence-item > p { flex: 1; color: #c6d7f0; font-size: 12px; }
.sequence-item strong { display: block; color: #e4edff; }
.sequence-controls { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.sequence-controls button { display: grid; place-items: center; min-width: 34px; min-height: 38px; padding: 5px; background: #0f203a; border: 1px solid #42618c; border-radius: 6px; color: #d0e0fa; font-size: 13px; }
.sequence-controls button:hover:not(:disabled) { background: #3366ff; border-color: #789bff; }
.sequence-slot { display: flex; gap: 14px; align-items: center; min-height: 61px; padding: 13px 17px; color: #7086a7; border: 1px dashed #3e5576; border-radius: 9px; font-size: 12px; }
.sequence-slot > strong, .sequence-item > .stage-number { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; background: #14233a; border-radius: 7px; color: #83a4d7; font-size: 12px; }
.sequence-picked .sequence-item { background: #1c3657; border-color: #557ab0; }

.radio-transcript { position: relative; display: grid; gap: 0; margin: 24px 0; padding: 7px 20px; border: 1px solid #314b6d; border-radius: 12px; background: #0a1426; box-shadow: inset 3px 0 #3366ff; }
.radio-line { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid #253750; font-size: 13px; }
.radio-line:last-child { border-bottom: 0; }
.radio-line > strong, .radio-line > span:first-child { font-size: 9px; font-weight: 750; line-height: 1.8; letter-spacing: .8px; text-transform: uppercase; color: #84a7db; }
.radio-line p, .radio-line > span:last-child { color: #c3d1e8; font-size: 13px; line-height: 1.75; }
.radio-line.sent > strong, .radio-line.sent > span:first-child { color: #a4f76a; }
.radio-line.sent p { color: #d5e9d2; }
.radio-message { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 17px 19px; min-height: 57px; width: 100%; margin: 10px 0; text-align: left; background: #192b45; border: 1px solid #385579; border-radius: 10px; color: #bed0eb; font-size: .9375rem; line-height: 1.55; }
.radio-message:hover { background: #223c61; border-color: #779be1; }
.radio-message.selected, .radio-message[aria-pressed="true"] { background: #213d31; border-color: #99cf70; color: #e1ffd4; box-shadow: inset 3px 0 #99ff33; }
.radio-message strong { color: inherit; }
.radio-message-content { display: grid; gap: .25rem; }
.radio-message-content > span { color: inherit; }
.radio-tag, .radio-select-label { color: #aac5eb; font-size: .75rem; font-weight: 700; }
.radio-tag { border: 1px solid #526d93; border-radius: .35rem; padding: .1rem .3rem; font-variant-numeric: tabular-nums; }
.radio-message.selected .radio-select-label { color: #baff92; }

.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 23px 0; }
.evidence-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 139px; width: 100%; padding: 21px; border: 1px solid #385271; border-radius: 12px; color: #cbdaf0; background: #182b46; text-align: left; font-size: 13px; line-height: 1.6; transition: background .18s, border-color .18s; }
.evidence-card > small { color: #8ca7cf; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.evidence-card strong { color: #e3ecfb; font-size: 15px; }
.evidence-card p { font-size: 12px; color: #a6bddd; }
.evidence-card:hover { border-color: #83a5e6; background: #233e60; }
.evidence-card.selected { border-color: #a3e46c; background: #203b30; box-shadow: inset 3px 0 #99ff33; }
.evidence-card.selected strong { color: #d5ffc0; }
.closing-record { display: grid; gap: 11px; margin: 23px 0 0; padding: 21px; border: 1px solid #3a5073; border-radius: 12px; background: #0c172a; }
.closing-record h3 { margin-bottom: 5px; font-size: 16px; }
.record-slot { padding: 14px 16px; border: 1px dashed #395476; border-radius: 8px; color: #819aba; font-size: 12px; line-height: 1.65; min-height: 50px; }
.record-slot.filled { border-style: solid; color: #c3d9b2; background: #1b302a; border-color: #486d43; }

.after-story { padding: 34px; margin-top: 24px; border: 1px solid #3d5a7a; border-radius: 18px; background: #172b45; }
.after-story h2 { margin: 10px 0 16px; font-size: 30px; }
.after-story p { line-height: 1.8; max-width: 72ch; }
.command-center .result-grid { margin-top: 24px; }
.command-center .feedback-card { border-color: #354d70; background: #172842; }
.command-center .feedback-card.correct { border-top-color: #99ff33; }
.command-center .feedback-card.incorrect { border-top-color: #e4b968; }
.command-center .feedback-card .feedback-explanation { border-color: #334968; }
.command-center .feedback-card.correct .eyebrow { color: #afff76; }
.command-center .feedback-card.incorrect .eyebrow { color: #e8c680; }
.command-center .feedback-card.correct .pill { color: #c9f4ae; border-color: #5b7845; background: #28402e; }
.command-center .feedback-card.incorrect .pill { color: #f0d494; border-color: #816a3c; background: #463b27; }
.command-center .result-summary { background: #143f7c; border-color: #416ba2; }
.practice-card { margin: 22px 0; padding: 25px; border: 1px solid #41638d; border-radius: 14px; background: #152b49; }
.practice-card h3 { margin-bottom: 12px; font-size: 19px; }
.practice-card p { font-size: 13px; }
.practice-options { display: grid; gap: 10px; margin-top: 18px; }
.practice-option { padding: 15px 17px; min-height: 48px; text-align: left; border: 1px solid #41618a; border-radius: 8px; background: #1e3656; color: #c8d9f1; font-size: 12px; line-height: 1.6; }
.practice-option:hover { border-color: #93adf0; background: #2a4870; }
.practice-option.selected { background: #274533; border-color: #97ca71; color: #d4f9bc; }
.command-center .scenario-note { color: #748aa9; }
.command-center .empty-state { border-color: #3d5574; background: #101d31; }
.command-center .progress-track { background: #2a3d59; }
.command-center .progress-fill { background: #99ff33; }
.command-center :focus-visible { outline-color: #99ff33; }

@media (max-width: 1050px) {
  .game-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 18px; }
  .stage-content { padding: 23px; }
  .stage-sidebar > .panel { padding: 17px; }
  .stage-sidebar .map-stage { padding: 10px; }
  .command-center > .mission-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .game-layout { grid-template-columns: 1fr; }
  .stage-sidebar { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .stage-sidebar > .mission-map { grid-column: 1 / -1; }
  .stage-sidebar .mission-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-toolbar { margin-bottom: 20px; }
  .command-center.auth-layout .hero-content { min-height: 440px; }
}
@media (max-width: 650px) {
  body:has(.command-center) #app { padding: 21px 13px 30px; }
  .command-center.auth-layout { gap: 16px; }
  .command-center.auth-layout .hero-content { min-height: 345px; padding: 27px; }
  .command-center.auth-layout .hero-content h1 { font-size: 36px; }
  .command-center .hero-content h1 { font-size: 35px; }
  .game-toolbar { gap: 10px; padding-bottom: 17px; margin-bottom: 19px; align-items: flex-start; }
  .game-toolbar h1 { font-size: 22px; }
  .game-toolbar h2 { font-size: 18px; }
  .game-toolbar > div { gap: 7px; }
  .xp-badge { padding: 6px 8px; font-size: 10px; }
  .sound-toggle { padding: 7px 8px; font-size: 10px; }
  .stage-content { padding: 21px 17px; border-radius: 14px; }
  .stage-content > h1 { font-size: 29px; letter-spacing: -.8px; }
  .stage-content > h2 { font-size: 25px; }
  .stage-content > p { font-size: 13px; }
  .stage-sidebar { grid-template-columns: 1fr; gap: 15px; }
  .stage-sidebar .mission-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .command-center > .mission-map { gap: 8px; }
  .map-stage { padding: 13px; gap: 9px; }
  .map-stage strong { font-size: 11px; }
  .map-stage small, .map-stage p { font-size: 9px; }
  .map-stage .stage-number { width: 28px; height: 28px; font-size: 11px; }
  .scan-scene { margin: 20px -5px 15px; border-radius: 9px; }
  .scene-pin { width: 34px; height: 34px; font-size: 11px; border-width: 1.5px; box-shadow: 0 2px 7px #07101d80, 0 0 0 3px #10152540; }
  .scene-pin::before { content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%; }
  .area-list { gap: 7px; }
  .area-option { padding: 10px; min-height: 48px; font-size: 10px; }
  .scene-observation { padding: 15px; }
  .scene-observation p { font-size: 12px; }
  .sequence-pool { grid-template-columns: 1fr; gap: 9px; }
  .sequence-picked { padding: 10px; }
  .sequence-item { padding: 13px; gap: 10px; min-height: 67px; font-size: 12px; }
  .sequence-controls { gap: 4px; }
  .sequence-controls button { min-width: 35px; min-height: 44px; }
  .sequence-controls button:last-child { min-width: 31px; }
  .sequence-slot { padding: 12px; }
  .radio-transcript { padding: 4px 15px; }
  .radio-line { grid-template-columns: 1fr; gap: 7px; padding: 16px 0; }
  .radio-line > strong, .radio-line > span:first-child { font-size: 9px; }
  .radio-line p, .radio-line > span:last-child { font-size: 12px; }
  .radio-message { grid-template-columns: auto minmax(0, 1fr); gap: 9px; padding: 15px; }
  .radio-select-label { grid-column: 2; }
  .evidence-grid { gap: 10px; }
  .evidence-card { padding: 16px; min-height: 150px; gap: 9px; }
  .evidence-card strong { font-size: 13px; }
  .evidence-card p { font-size: 11px; }
  .evidence-card > small { font-size: 8px; }
  .closing-record { padding: 17px; }
  .stage-commit { padding: 18px; }
  .after-story { padding: 24px; }
  .after-story h2 { font-size: 26px; }
  .practice-card { padding: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .scene-observation, .stage-commit.committed { animation: field-entry .25s ease-out both; }
  .scene-pin.flagged { animation: pin-confirm .26s ease-out both; }
  .sequence-picked .sequence-item { animation: field-entry .2s ease-out both; }
}
@keyframes field-entry { from { opacity: .4; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@keyframes pin-confirm { 0% { scale: .8; } 70% { scale: 1.12; } 100% { scale: 1; } }
@media print {
  body:has(.command-center) { background: white; color: #172039; }
  .command-center { --muted: #525a6a; --line: #ccd1da; --ink: #172039; --surface: white; color: #172039; }
  .command-center .game-toolbar, .command-center .stage-sidebar, .command-center .sound-toggle { display: none; }
  .command-center h1, .command-center h2, .command-center h3 { color: #172039; }
  .command-center .game-layout { display: block; }
  .command-center .stage-content { background: white; border-color: #ccd1da; }
}

/* Decision records and SSO reports share a quiet, ruled editorial ledger. */
body:has(.report-ledger) { background: #f7f7f3; color: #172039; }
body:has(.report-ledger) #app { max-width: 1300px; }
.report-ledger {
  --ledger-ink: #172039;
  --ledger-muted: #637087;
  --ledger-rule: #d6dcdF;
  --ledger-paper: #f7f7f3;
  color: var(--ledger-ink);
  padding: 4px 0 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.report-ledger--player { --ledger-paper: #f8f7f2; max-width: 1010px; margin: 0 auto; }
body:has(.report-ledger--player) { background: #f8f7f2; }
.report-ledger h1, .report-ledger h2, .report-ledger h3 { color: var(--ledger-ink); }
.report-ledger p { color: var(--ledger-muted); }
.ledger-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; padding: 0 0 29px; border-bottom: 2px solid var(--ledger-ink); }
.ledger-head > div:first-child { min-width: 0; max-width: 800px; }
.report-ledger--player .ledger-head { display: block; }
.report-ledger--player .ledger-head > .ledger-masthead { max-width: none; }
.report-ledger h1[tabindex="-1"]:focus { outline: none; }
.ledger-head h1 { font-size: clamp(35px, 4vw, 51px); line-height: 1.09; letter-spacing: -1.6px; max-width: 24ch; margin: 12px 0 17px; font-weight: 720; text-wrap: pretty; }
.ledger-kicker { color: #315ad0 !important; font-size: 10px; font-weight: 750; line-height: 1.5; text-transform: uppercase; letter-spacing: 1.6px; }
.ledger-subtitle { color: #59667a !important; font-size: 13px; line-height: 1.75; max-width: 70ch; }
.ledger-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; flex-shrink: 0; }
.ledger-actions .btn-secondary, .ledger-actions .btn-ghost { padding: 8px 0; border: 0; background: transparent; color: #315ad0; border-radius: 0; box-shadow: none; font-size: 12px; }
.ledger-actions .btn-secondary:hover, .ledger-actions .btn-ghost:hover { color: #172039; background: transparent; text-decoration: underline; transform: none; }
.ledger-actions .btn-primary { font-size: 12px; border-radius: 5px; box-shadow: none; }
.ledger-masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 0 17px; margin-bottom: 25px; border-bottom: 1px solid var(--ledger-rule); color: var(--ledger-muted); font-size: 11px; line-height: 1.5; }
.ledger-masthead strong { color: var(--ledger-ink); font-weight: 700; }
.ledger-masthead > p { margin: 0; }
.ledger-masthead > div { display: flex; align-items: center; gap: 16px; }
.ledger-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 30px; padding: 0; border-bottom: 1px solid #aab3c1; }
.ledger-metrics > div { padding: 23px 27px 24px; border-right: 1px solid var(--ledger-rule); min-width: 0; }
.ledger-metrics > div:first-child { padding-left: 0; }
.ledger-metrics > div:last-child { border-right: 0; padding-right: 0; }
.ledger-metrics dt { color: #5e6c83; font-size: 11px; font-weight: 600; line-height: 1.6; }
.ledger-metrics dd { margin: 10px 0 0; color: var(--ledger-ink); font-size: 38px; font-weight: 650; line-height: 1.1; letter-spacing: -1.3px; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.ledger-metrics dd strong { font-size: inherit; font-weight: inherit; }
.ledger-metrics .metric-unit, .ledger-metrics dd small, .ledger-metrics dd > span { font-size: 12px; font-weight: 450; color: #68758a; letter-spacing: 0; margin-left: 6px; }
.ledger-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 35px; align-items: start; margin-top: 32px; }
.ledger-section { min-width: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.ledger-section-head, .ledger-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 0 0 17px; }
.ledger-section-head h2, .ledger-section-heading h2 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.65px; }
.ledger-section-head > p, .ledger-section-head > span, .ledger-section-heading > p, .ledger-section-heading > span { color: #738096; font-size: 10px; white-space: nowrap; }
.ledger-section-heading { margin-top: 34px; }
.ledger-table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid #172039; border-bottom: 1px solid #aab3c1; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.6; }
.ledger-table th { padding: 12px 9px; background: transparent; color: #627087; text-transform: none; letter-spacing: 0; font-size: 10px; font-weight: 650; border-bottom: 1px solid #adb7c5; white-space: normal; vertical-align: bottom; }
.ledger-table td { padding: 16px 9px; background: transparent; color: #48556d; border-bottom: 1px solid var(--ledger-rule); vertical-align: top; }
.ledger-table tbody th { padding: 16px 9px; background: transparent; color: #172039; border-bottom: 1px solid var(--ledger-rule); font-size: 12px; font-weight: 650; vertical-align: top; text-align: left; }
.ledger-table th:first-child, .ledger-table td:first-child { padding-left: 0; }
.ledger-table th:last-child, .ledger-table td:last-child { padding-right: 0; }
.ledger-table tbody tr:last-child > * { border-bottom: 0; }
.ledger-table tbody tr:hover { background: #edf0f1; }
.ledger-number { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; white-space: nowrap; text-align: right; color: #172039; }
.ledger-table .ledger-number { text-align: right; }
.ledger-table td small { display: block; margin-top: 3px; color: #7b8799; font-size: 10px; }
.ledger-bar { display: block; height: 4px; min-width: 65px; background: #dfe4e7; margin: 9px 0 2px; overflow: hidden; }
.ledger-bar > span, .ledger-bar > div { display: block; height: 100%; background: #3c63bd; }
.ledger-measure { display: grid; grid-template-columns: minmax(55px, 1fr) 37px; align-items: center; gap: 12px; min-width: 115px; }
.ledger-measure .ledger-bar { width: 100%; margin: 0; min-width: 0; appearance: none; border: 0; border-radius: 0; color: #3c63bd; }
.ledger-measure .ledger-bar::-webkit-progress-bar { background: #dfe4e7; }
.ledger-measure .ledger-bar::-webkit-progress-value { background: #3c63bd; }
.ledger-measure .ledger-bar::-moz-progress-bar { background: #3c63bd; }
.ledger-measure > span { font-variant-numeric: tabular-nums; }
.ledger-note { margin: 16px 0 0; color: #6d788b !important; font-size: 10px; line-height: 1.75; max-width: 85ch; }
.ledger-method { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--ledger-rule); max-width: none; }
.ledger-status { color: #607155; font-size: 10px; font-weight: 650; white-space: nowrap; }
.ledger-status.needs-review, .ledger-status.is-review { color: #86672d; }
.ledger-empty { padding: 26px 0; border-top: 1px solid var(--ledger-rule); border-bottom: 1px solid var(--ledger-rule); color: #6d788b; font-size: 12px; line-height: 1.7; }
.ledger-empty strong { display: block; font-size: 15px; color: #172039; margin-bottom: 7px; }
.ledger-list { border-top: 1px solid var(--ledger-ink); margin: 20px 0 0; }
.ledger-decision { padding: 0; margin: 0; border-bottom: 1px solid #bfc7d2; }
.ledger-decision summary { display: flex; list-style: none; align-items: center; gap: 23px; padding: 23px 3px; cursor: pointer; color: var(--ledger-ink); transition: background .15s; }
.ledger-decision summary::-webkit-details-marker { display: none; }
.ledger-decision summary:hover { background: #eef0ed; }
.ledger-decision summary::after { content: "+"; color: #486183; font-size: 24px; font-weight: 350; line-height: 1; flex-shrink: 0; margin-left: 4px; }
.ledger-decision[open] summary::after { content: "−"; }
.decision-number { color: #8290a4; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; flex: 0 0 26px; align-self: flex-start; padding-top: 4px; font-variant-numeric: tabular-nums; }
.decision-title { flex: 1; min-width: 0; }
.decision-title strong { display: block; font-size: 18px; font-weight: 650; line-height: 1.4; letter-spacing: -.25px; }
.decision-title small { display: block; color: #78859a; font-size: 10px; line-height: 1.5; margin-top: 5px; }
.decision-status { display: inline-flex; gap: 7px; align-items: center; color: #647557; font-size: 10px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.decision-status::before { content: ""; width: 4px; height: 4px; background: currentColor; flex: 0 0 auto; }
.decision-status.needs-review { color: #88682f; }
.decision-detail { margin: 0 36px 27px 52px; }
.decision-facts { margin: 0; }
.decision-facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 26px; padding: 16px 0; border-top: 1px solid #dce0e2; }
.decision-facts dt { font-size: 11px; font-weight: 650; color: #6b778b; }
.decision-facts dd { margin: 0; color: #26354c; font-size: 13px; line-height: 1.75; }
.decision-answers { margin: 0; padding-left: 18px; }
.decision-answers li { padding-left: 3px; }
.decision-answers li + li { margin-top: 5px; }
.decision-feedback { margin-top: 13px; border-left: 2px solid #6585c4; padding: 4px 0 4px 17px; color: #53627a !important; font-size: 13px; line-height: 1.8; max-width: 78ch; }
.ledger-practice { margin-top: 36px; padding: 29px 0 0; border-top: 2px solid var(--ledger-ink); background: transparent; border-radius: 0; box-shadow: none; }
.ledger-practice > h2 { margin: 8px 0 13px; font-size: 28px; letter-spacing: -.8px; }
.ledger-practice > p { font-size: 13px; max-width: 75ch; line-height: 1.8; }
.practice-topic-list { display: flex; flex-wrap: wrap; gap: 3px 23px; margin: 20px 0 25px; padding-bottom: 0; border-bottom: 1px solid #c9d0d9; }
.report-ledger .practice-topic-list .button { min-height: 39px; padding: 9px 0; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; color: #647089; font-size: 11px; font-weight: 600; transform: none; }
.report-ledger .practice-topic-list .button.selected, .report-ledger .practice-topic-list .button[aria-pressed="true"] { color: #244eae; border-bottom-color: #3366ff; }
.report-ledger .practice-topic-list .button:hover { color: #244eae; background: transparent; }
.practice-content { max-width: 800px; }
.practice-content h3 { font-size: 21px; font-weight: 650; line-height: 1.4; letter-spacing: -.35px; margin-bottom: 13px; }
.practice-content > p { font-size: 13px; line-height: 1.75; }
.report-ledger .practice-content .eyebrow { color: #6a778c; font-size: 10px; letter-spacing: .8px; }
.report-ledger .sequence-picked { padding: 0; margin: 23px 0; border: 0; border-top: 1px solid var(--ledger-rule); border-radius: 0; background: transparent; gap: 0; }
.report-ledger .sequence-picked > .eyebrow { margin: 16px 0 6px; }
.report-ledger .sequence-picked .sequence-item { min-height: 69px; padding: 13px 0; color: #26354c; border: 0; border-bottom: 1px solid var(--ledger-rule); border-radius: 0; background: transparent; gap: 14px; animation: none; }
.report-ledger .sequence-item > span { color: #26354c; font-size: 13px; }
.report-ledger .sequence-item > .stage-number { background: transparent; color: #7b889c; width: 21px; min-width: 21px; height: 28px; border-radius: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.report-ledger .sequence-controls button { min-height: 36px; min-width: 30px; color: #315ad0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.report-ledger .sequence-controls button:hover:not(:disabled) { color: #172039; background: #e9edf4; }
.report-ledger .sequence-slot { border: 0; border-bottom: 1px solid var(--ledger-rule); border-radius: 0; color: #8590a0; padding: 15px 0; gap: 20px; }
.report-ledger .sequence-slot > span { min-width: 15px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.report-ledger .sequence-pool { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ledger-rule); }
.report-ledger .sequence-pool > .eyebrow { margin: 15px 0 8px; }
.report-ledger .sequence-choice { display: flex; justify-content: flex-start; align-items: baseline; gap: 14px; text-align: left; padding: 14px 0; color: #315ad0; background: transparent; border: 0; border-bottom: 1px solid var(--ledger-rule); border-radius: 0; box-shadow: none; min-height: 50px; font-size: 13px; line-height: 1.6; }
.report-ledger .sequence-choice:hover:not(:disabled) { color: #172039; background: #edf0f4; transform: none; }
.report-ledger .sequence-choice > span:first-child { color: #8091aa; }
.report-ledger .practice-options { gap: 0; margin-top: 22px; border-top: 1px solid var(--ledger-rule); }
.report-ledger .practice-option { padding: 16px 10px 16px 0; min-height: 54px; border: 0; border-bottom: 1px solid var(--ledger-rule); border-radius: 0; background: transparent; color: #46546d; font-size: 13px; line-height: 1.7; box-shadow: none; }
.report-ledger .practice-option:hover { background: #eeefed; }
.report-ledger .practice-option.selected, .report-ledger .practice-option:has(input:checked) { color: #193b8a; background: #eaf0fc; border-left: 2px solid #3366ff; padding-left: 13px; }
.report-ledger .practice-option input { accent-color: #3366ff; margin-right: 9px; }
.practice-actions { display: flex; align-items: center; gap: 20px; margin-top: 21px; }
.practice-actions .button { border-radius: 5px; box-shadow: none; }
.practice-feedback { border-left: 2px solid #719252; padding: 3px 0 3px 17px; margin-top: 22px; font-size: 13px; line-height: 1.8; color: #48613c !important; }
.practice-feedback.needs-review { border-color: #b49454; color: #7d6233 !important; }
.practice-feedback strong { font-weight: 650; }
.ledger-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-top: 33px; padding-top: 19px; border-top: 1px solid #b6c0ce; color: #788498; font-size: 10px; line-height: 1.8; }
.ledger-footer p { max-width: 80ch; color: #788498; font-size: 10px; line-height: 1.8; }
.ledger-footer .button { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; min-height: 24px; color: #315ad0; font-size: 11px; white-space: nowrap; }
.ledger-footer .button:hover { background: transparent; text-decoration: underline; transform: none; }

@media (max-width: 1000px) {
  .ledger-split { grid-template-columns: 1fr; gap: 33px; }
  .ledger-head { gap: 23px; }
  .ledger-head h1 { font-size: 39px; }
  .ledger-metrics dd { font-size: 34px; }
}
@media (max-width: 650px) {
  body:has(.report-ledger) #app { padding: 26px 20px 30px; }
  .ledger-head { align-items: flex-start; flex-direction: column; gap: 22px; padding-bottom: 24px; }
  .ledger-head h1 { font-size: 34px; letter-spacing: -1px; max-width: 22ch; line-height: 1.12; margin: 12px 0; }
  .ledger-kicker { font-size: 9px; letter-spacing: 1.4px; }
  .ledger-subtitle { font-size: 12px; }
  .ledger-actions { gap: 20px; justify-content: flex-start; }
  .ledger-masthead { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 21px; }
  .ledger-masthead > div { gap: 12px; flex-wrap: wrap; }
  .ledger-metrics { margin-bottom: 25px; }
  .ledger-metrics > div { padding: 19px 13px 21px; }
  .ledger-metrics dt { font-size: 9px; line-height: 1.65; }
  .ledger-metrics dd { font-size: 28px; letter-spacing: -.8px; margin-top: 9px; }
  .ledger-metrics .metric-unit, .ledger-metrics dd small, .ledger-metrics dd > span { display: block; margin: 6px 0 0; font-size: 9px; line-height: 1.5; }
  .ledger-section-head, .ledger-section-heading { gap: 10px; align-items: flex-start; flex-direction: column; margin-bottom: 16px; }
  .ledger-section-head h2, .ledger-section-heading h2 { font-size: 22px; }
  .ledger-split { margin-top: 26px; gap: 30px; }
  .ledger-table th { padding: 11px 7px; font-size: 9px; }
  .ledger-table td, .ledger-table tbody th { padding: 14px 7px; font-size: 11px; }
  .ledger-table td small { font-size: 9px; }
  .ledger-table .ledger-status { white-space: normal; font-size: 9px; }
  .ledger-note { font-size: 9px; }
  .ledger-decision summary { position: relative; flex-wrap: wrap; gap: 4px 13px; padding: 21px 0; }
  .decision-number { flex-basis: 20px; font-size: 10px; padding-top: 4px; }
  .decision-title { flex-basis: calc(100% - 65px); padding-right: 20px; }
  .decision-title strong { font-size: 16px; }
  .decision-title small { font-size: 9px; }
  .decision-status { font-size: 9px; margin-left: 33px; margin-top: 8px; }
  .ledger-decision summary::after { position: absolute; right: 0; top: 24px; font-size: 20px; margin: 0; }
  .decision-detail { margin: 0 0 24px 33px; }
  .decision-facts > div { grid-template-columns: 1fr; gap: 7px; padding: 14px 0; }
  .decision-facts dt { font-size: 10px; }
  .decision-facts dd { font-size: 12px; }
  .decision-feedback { font-size: 12px; padding-left: 13px; }
  .ledger-practice { margin-top: 29px; padding-top: 24px; }
  .ledger-practice > h2 { font-size: 25px; }
  .ledger-practice > p { font-size: 12px; }
  .practice-topic-list { gap: 2px 20px; }
  .report-ledger .practice-topic-list .button { font-size: 10px; }
  .practice-content h3 { font-size: 19px; }
  .practice-content > p, .report-ledger .practice-option, .practice-feedback { font-size: 12px; }
  .practice-actions { align-items: flex-start; flex-direction: column; gap: 11px; }
  .report-ledger .sequence-item { flex-wrap: wrap; }
  .report-ledger .sequence-item > span:nth-child(2) { flex-basis: calc(100% - 40px); }
  .report-ledger .sequence-controls { margin-left: 35px; }
  .report-ledger .sequence-controls button { min-height: 44px; min-width: 38px; }
  .ledger-footer { flex-direction: column; gap: 14px; }
}
@media print {
  body:has(.report-ledger) { background: white; }
  body:has(.report-ledger) #app { padding: 15px 0 0; max-width: none; }
  .report-ledger { --ledger-paper: white; padding: 0; background: white; font-size: 9pt; }
  .ledger-head { gap: 20px; padding-bottom: 14px; break-inside: avoid; }
  .ledger-head h1 { font-size: 25pt; letter-spacing: -.5px; max-width: none; margin: 8px 0 10px; }
  .ledger-kicker { font-size: 7pt; }
  .ledger-subtitle { font-size: 8pt; }
  .ledger-actions, .ledger-practice, .ledger-footer .button { display: none !important; }
  .ledger-masthead { margin-bottom: 15px; padding-bottom: 11px; font-size: 8pt; }
  .ledger-metrics { margin-bottom: 20px; break-inside: avoid; }
  .ledger-metrics > div { padding: 15px 20px; }
  .ledger-metrics dt { font-size: 7.5pt; }
  .ledger-metrics dd { font-size: 26pt; margin-top: 6px; }
  .ledger-metrics .metric-unit, .ledger-metrics dd small, .ledger-metrics dd > span { font-size: 8pt; }
  .ledger-split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 9mm; margin-top: 22px; }
  .ledger-section { break-inside: auto; }
  .ledger-section-head, .ledger-section-heading { margin-bottom: 11px; break-after: avoid; }
  .ledger-section-head h2, .ledger-section-heading h2 { font-size: 15pt; }
  .ledger-table-wrap { overflow: visible; }
  .ledger-table { font-size: 7.5pt; }
  .ledger-table th { font-size: 7pt; padding: 8px 6px; }
  .ledger-table td, .ledger-table tbody th { font-size: 7.5pt; padding: 10px 6px; }
  .ledger-table tbody tr { break-inside: avoid; }
  .ledger-table thead { display: table-header-group; }
  .ledger-bar { min-width: 45px; height: 3px; }
  .ledger-note, .ledger-footer p, .ledger-status { font-size: 7pt; }
  .ledger-list { margin-top: 14px; }
  .ledger-decision { break-inside: avoid; }
  .ledger-decision summary { padding: 15px 0; gap: 15px; }
  .ledger-decision summary::after { display: none; }
  .decision-title strong { font-size: 12pt; }
  .decision-title small, .decision-status { font-size: 7.5pt; }
  .decision-detail { margin: 0 0 18px 41px; }
  .decision-facts > div { grid-template-columns: 115px 1fr; padding: 10px 0; gap: 20px; }
  .decision-facts dt { font-size: 8pt; }
  .decision-facts dd, .decision-feedback { font-size: 8.5pt; }
  .ledger-decision::details-content { display: block; content-visibility: visible; height: auto; }
  .ledger-decision:not([open]) > .decision-detail { display: block; }
  .ledger-footer { margin-top: 22px; padding-top: 12px; }
}

/* Keep the exercise and its records in one calm, dark workspace. */
@media screen {
  body:has(.report-ledger) { color-scheme: dark; background: #0c1221; color: #edf3ff; }
  body:has(.report-ledger) .site-header { background: #101829; border-color: #28344c; }
  body:has(.report-ledger) .brand-copy { border-color: #36425a; }
  body:has(.report-ledger) .brand-copy > span,
  body:has(.report-ledger) .user-summary > strong { color: #edf3ff; }
  body:has(.report-ledger) .brand-copy > small { color: #9aabc6; }
  body:has(.report-ledger) .role-badge { background: #1b2940; border-color: #34445e; color: #c2cfe3; }
  body:has(.report-ledger) .header-actions .button { color: #c2cfe3; }
  body:has(.report-ledger) .header-actions .button:hover { background: #22314d; color: white; }
  body:has(.report-ledger) .site-footer { color: #93a5c1; }
  .report-ledger { --ledger-ink: #edf3ff; --ledger-muted: #afbed5; --ledger-rule: #30425e; --ledger-paper: #0c1221; --muted: #afbed5; --ink: #edf3ff; }
  .report-ledger :focus-visible { outline-color: #99ff33; }
  .report-ledger h1, .report-ledger h2, .report-ledger h3,
  .ledger-masthead strong, .ledger-metrics dd, .ledger-number,
  .ledger-table tbody th, .ledger-empty strong { color: #edf3ff; }
  .ledger-kicker { color: #b0f675 !important; font-size: 12px; }
  .ledger-subtitle { color: #b2c2da !important; font-size: 16px; }
  .ledger-head { border-bottom-color: #536984; }
  .ledger-head h1 { font-size: clamp(36px, 4vw, 51px); }
  .ledger-masthead { color: #a6b8d1; }
  .ledger-metrics { border-bottom-color: #425671; }
  .ledger-metrics dt { color: #a9bad4; font-size: 13px; }
  .ledger-metrics dd { font-size: 45px; }
  .ledger-metrics .metric-unit, .ledger-metrics dd small, .ledger-metrics dd > span { color: #a9bad4; font-size: 14px; }
  .ledger-section-head > p, .ledger-section-head > span,
  .ledger-section-heading > p, .ledger-section-heading > span { color: #9fb0ca; font-size: 12px; }
  .ledger-section-head h2, .ledger-section-heading h2 { font-size: 26px; }
  .ledger-table-wrap { border-top-color: #7990b0; border-bottom-color: #425671; }
  .ledger-table th { color: #a9bad4; font-size: 12px; border-bottom-color: #425671; }
  .ledger-table td, .ledger-table tbody th { color: #d2def0; font-size: 14px; }
  .ledger-table td small { color: #a3b4ce; font-size: 12px; }
  .ledger-table tbody tr:hover { background: #121f34; }
  .ledger-bar, .ledger-measure .ledger-bar::-webkit-progress-bar { background: #273a55; }
  .ledger-bar > span, .ledger-bar > div, .ledger-measure .ledger-bar::-webkit-progress-value { background: #769aff; }
  .ledger-measure .ledger-bar::-moz-progress-bar { background: #769aff; }
  .ledger-measure > span { color: #e5edfc; }
  .ledger-note { color: #a4b5cf !important; font-size: 12px; }
  .ledger-status, .decision-status { color: #b2de95; font-size: 12px; }
  .ledger-status.needs-review, .ledger-status.is-review, .decision-status.needs-review { color: #e9c180; }
  .ledger-empty { color: #afbed5; font-size: 14px; }
  .ledger-list { border-top-color: #637b9c; }
  .ledger-decision { border-bottom-color: #344a69; }
  .ledger-decision summary { padding: 25px 3px; }
  .ledger-decision summary:hover { background: #121f34; }
  .ledger-decision summary::after { color: #adc5ed; }
  .decision-number { color: #9fb2ce; font-size: 13px; }
  .decision-title strong { font-size: 21px; color: #e6efff; }
  .decision-title small { color: #a3b5d0; font-size: 12px; }
  .decision-facts > div { border-top-color: #2d415e; }
  .decision-facts dt { color: #a7b9d4; font-size: 13px; }
  .decision-facts dd { color: #d4e0f2; font-size: 15px; }
  .decision-feedback { color: #c1d1e9 !important; border-color: #769aff; font-size: 15px; }
  .ledger-practice { border-top-color: #637b9c; }
  .ledger-practice > p, .practice-content > p { font-size: 15px; }
  .practice-topic-list { border-bottom-color: #344a69; }
  .report-ledger .practice-topic-list .button { color: #b4c4dc; font-size: 13px; }
  .report-ledger .practice-topic-list .button.selected,
  .report-ledger .practice-topic-list .button[aria-pressed="true"] { color: #b8ff87; border-bottom-color: #99ff33; }
  .report-ledger .practice-topic-list .button:hover { color: #d8f5c7; }
  .practice-content h3 { font-size: 24px; }
  .report-ledger .practice-content .eyebrow { color: #a5b7d1; font-size: 11px; }
  .report-ledger .practice-option { color: #c6d5eb; font-size: 15px; padding: 18px 12px 18px 0; }
  .report-ledger .practice-option:hover { background: #142239; }
  .report-ledger .practice-option.selected, .report-ledger .practice-option:has(input:checked) { color: #ddf8cb; background: #192c29; border-left-color: #99ff33; }
  .report-ledger .sequence-item > span { color: #d4e0f2; font-size: 15px; }
  .report-ledger .sequence-item > .stage-number { color: #a4b6d0; font-size: 12px; }
  .report-ledger .sequence-controls button { color: #b4ccff; }
  .report-ledger .sequence-controls button:hover:not(:disabled) { color: #fff; background: #243a5b; }
  .report-ledger .sequence-slot { color: #98acc8; }
  .report-ledger .sequence-choice { color: #b9cfff; font-size: 15px; }
  .report-ledger .sequence-choice:hover:not(:disabled) { color: #ecf3ff; background: #142239; }
  .report-ledger .sequence-choice > span:first-child { color: #9aaecc; }
  .report-ledger .btn-primary { color: #152119; background: #99ff33; box-shadow: none; }
  .report-ledger .btn-primary:hover:not(:disabled) { background: #b5ff7a; box-shadow: none; }
  .ledger-actions .btn-secondary, .ledger-actions .btn-ghost,
  .ledger-footer .button { color: #b1caff; }
  .ledger-actions .btn-secondary:hover, .ledger-actions .btn-ghost:hover { color: #e0ebff; }
  .practice-feedback { color: #b9e69a !important; border-color: #8cb96b; font-size: 15px; }
  .practice-feedback.needs-review { color: #e9c180 !important; border-color: #bfa06c; }
  .ledger-footer { border-top-color: #344a69; color: #99acc8; }
  .ledger-footer p { color: #99acc8; font-size: 12px; }

  .player-report { max-width: 1040px; }
  .player-report-head { padding-bottom: 26px; border-bottom: 1px solid #3b526f; }
  .player-report-head h1 { margin-top: 10px; font-size: clamp(36px, 4.3vw, 54px); line-height: 1.1; max-width: 23ch; }
  .player-report-head > p:last-child { margin-top: 14px; max-width: 65ch; color: #b2c2da; font-size: 16px; }
  .player-score-hero { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 34px 0; border-bottom: 1px solid #3b526f; }
  .player-score { display: block; color: #b4ff83; font-size: clamp(76px, 9vw, 116px); font-weight: 700; letter-spacing: -6px; line-height: 1; font-variant-numeric: tabular-nums; }
  .player-score small, .player-score > span { font-size: .4em; letter-spacing: -1px; }
  .player-score-caption { color: #a9bdd9; font-size: 16px; margin-top: 10px; }
  .player-score-meta { display: flex; gap: 34px; align-items: center; color: #b9c9e1; font-size: 15px; }
  .player-score-meta > div { padding-left: 27px; border-left: 1px solid #344a69; }
  .player-score-meta strong { display: block; color: #e9f1ff; font-size: 32px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .player-score-meta span, .player-score-meta small { display: block; margin-top: 7px; color: #a9bdd9; font-size: 13px; }
  .player-history { padding: 31px 0; border-bottom: 1px solid #3b526f; }
  .player-history h2, .player-decisions h2 { font-size: 27px; }
  .player-history > p { margin-top: 8px; font-size: 15px; }
  .history-chart { margin-top: 25px; }
  .history-chart ol, ol.history-chart { display: flex; align-items: end; gap: 22px; list-style: none; padding: 0; }
  .history-column { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 64px; flex: 0 1 84px; }
  .history-track { position: relative; height: 132px; width: 100%; border-bottom: 1px solid #425c7d; }
  .history-bar { position: absolute; left: 50%; top: 50%; width: 124px; height: 28px; appearance: none; transform: translate(-50%, -50%) rotate(-90deg); border: 0; border-radius: 0; background: #1b2c45; }
  .history-bar::-webkit-meter-bar { border: 0; border-radius: 0; background: #1b2c45; height: 28px; }
  .history-bar::-webkit-meter-optimum-value, .history-bar::-webkit-meter-suboptimum-value, .history-bar::-webkit-meter-even-less-good-value { border-radius: 0; background: #769aff; }
  .history-bar::-moz-meter-bar { border-radius: 0; background: #769aff; }
  .history-column:last-child .history-bar::-webkit-meter-optimum-value,
  .history-column:last-child .history-bar::-webkit-meter-suboptimum-value,
  .history-column:last-child .history-bar::-webkit-meter-even-less-good-value { background: #99ff33; }
  .history-column:last-child .history-bar::-moz-meter-bar { background: #99ff33; }
  .history-column > strong { color: #e8f1ff; font-size: 18px; font-variant-numeric: tabular-nums; }
  .history-column > span { color: #a6b9d4; font-size: 12px; }
  .player-decisions { margin-top: 32px; }
  .player-decisions .ledger-list { margin-top: 20px; }
  .player-report .ledger-practice { margin-top: 32px; }
}

@media screen {
  .command-center, .command-center input, .command-center select, .command-center textarea { color-scheme: dark; }
  .command-center .field > span, .command-center .field > label { color: #c1d0e8; }
  .command-center .auth-card.panel { border-top-width: 1px; border-top-color: #2b3d59; }
  .command-center .field input,
  .command-center .field input:hover,
  .command-center .field input:focus { background: #0d182c; color: #edf3ff; caret-color: #b4ff83; }
  .command-center .field input:-webkit-autofill,
  .command-center .field input:-webkit-autofill:hover,
  .command-center .field input:-webkit-autofill:focus,
  .command-center .field input:-webkit-autofill:active { -webkit-text-fill-color: #edf3ff; caret-color: #b4ff83; -webkit-box-shadow: 0 0 0 1000px #0d182c inset; box-shadow: 0 0 0 1000px #0d182c inset; background-color: #0d182c !important; border-color: #4e6689; }
  .command-center .field input:autofill { color: #edf3ff; background: #0d182c; box-shadow: 0 0 0 1000px #0d182c inset; }
  .command-center .stage-brief .question-prompt { padding: 0; background: transparent; border: 0; border-radius: 0; color: #c4d3e9; font-size: 16px; line-height: 1.75; }
  .command-center .stage-brief { display: grid; gap: 15px; }
  .command-center .question-context, .command-center .scenario { color: #c4d3e9; background: #1a2c46; border-color: #769aff; }
  .command-center .answer-option, .command-center .option-card { color: #c4d3e9; background: #192b45; border-color: #385579; }
  .command-center .answer-option.selected, .command-center .option-card.is-selected { background: #213d31; border-color: #99cf70; color: #e1ffd4; }
  .command-center .radio-audio { grid-column: 2; }
  .command-center .radio-audio audio { color-scheme: dark; max-width: 100%; }
}
@media screen and (max-width: 650px) {
  .ledger-metrics dd { font-size: 33px; }
  .ledger-metrics dt { font-size: 11px; }
  .ledger-metrics .metric-unit, .ledger-metrics dd small, .ledger-metrics dd > span { font-size: 11px; }
  .ledger-subtitle { font-size: 14px; }
  .ledger-head h1 { font-size: 33px; }
  .ledger-table td, .ledger-table tbody th { font-size: 12px; }
  .ledger-table th { font-size: 10px; }
  .decision-title strong { font-size: 18px; }
  .decision-title small, .decision-status { font-size: 11px; }
  .decision-facts dd, .decision-feedback { font-size: 14px; }
  .player-report-head h1 { font-size: 36px; letter-spacing: -1.3px; }
  .player-report-head > p:last-child { font-size: 14px; }
  .player-score-hero { align-items: flex-start; flex-direction: column; gap: 27px; padding: 26px 0; }
  .player-score { font-size: 88px; letter-spacing: -4px; }
  .player-score-meta { width: 100%; gap: 24px; }
  .player-score-meta > div { padding-left: 21px; }
  .player-score-meta > div:first-child { padding-left: 0; border-left: 0; }
  .player-score-meta strong { font-size: 28px; }
  .history-chart ol, ol.history-chart { gap: 11px; overflow-x: auto; }
  .history-column { min-width: 52px; }
  .history-track { height: 102px; }
  .history-bar { width: 96px; height: 23px; }
  .history-bar::-webkit-meter-bar { height: 23px; }
  .player-history h2, .player-decisions h2 { font-size: 24px; }
  .command-center .stage-brief .question-prompt { font-size: 15px; }
  .command-center .radio-audio { grid-column: 1; }
}

/* One radio transport and an explicit, accessible way to leave a turn. */
.command-center .radio-player { display: grid; grid-template-columns: auto minmax(70px, 1fr); align-items: center; gap: 20px; margin-top: 2px; min-width: 0; }
.radio-player-status { display: grid; grid-template-columns: minmax(40px, 1fr) 47px; align-items: center; gap: 12px; min-width: 0; }
.command-center .radio-player-button { min-height: 44px; padding: 9px 15px; border-color: #5f7eab; border-radius: 7px; background: #1c3250; color: #e6efff; font-size: 13px; white-space: nowrap; }
.command-center .radio-player-button:hover:not(:disabled) { background: #29496e; border-color: #a6c2ec; }
.radio-player-progress { display: block; appearance: none; width: 100%; height: 5px; margin: 0; border: 0; border-radius: 0; background: #314765; color: #99ff33; overflow: hidden; }
.radio-player-progress::-webkit-progress-bar { background: #314765; }
.radio-player-progress::-webkit-progress-value { background: #99ff33; }
.radio-player-progress::-moz-progress-bar { background: #99ff33; }
.radio-player-time { color: #bdcfe8; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
body:has(.game-screen) .header-actions .assessment-exit { flex: 0 0 auto; min-height: 44px; padding: 9px 15px; border: 1px solid #8a6473; border-radius: 7px; background: #33232f; color: #ffdce2; box-shadow: none; font-size: 13px; }
body:has(.game-screen) .header-actions .assessment-exit:hover:not(:disabled) { background: #4b2c3a; border-color: #e1a3b3; color: #fff; box-shadow: none; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-content .intro-actions .button { min-width: 0; }
.assessment-exit-dialog { color-scheme: dark; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 32px; overflow-y: auto; background: #111e33; color: #e9f1ff; border: 1px solid #5a7399; border-radius: 12px; box-shadow: none; }
.assessment-exit-dialog::backdrop { background: #050b18d9; }
.assessment-exit-dialog h2 { color: #edf4ff; font-size: 29px; line-height: 1.2; letter-spacing: -.7px; margin-bottom: 15px; }
.assessment-exit-dialog p { color: #b7c8e1; font-size: 15px; line-height: 1.75; }
.assessment-exit-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.assessment-exit-actions .button { min-height: 46px; border-radius: 7px; box-shadow: none; font-size: 13px; }
.assessment-exit-actions .btn-secondary { background: #1c3250; border-color: #6682ab; color: #e7f0ff; }
.assessment-exit-actions .btn-secondary:hover { background: #2a466a; }
.assessment-exit-confirm { background: #e9a2ac; color: #361a25; border-color: #e9a2ac; }
.assessment-exit-confirm:hover:not(:disabled) { background: #ffc0c9; border-color: #ffc0c9; }
.assessment-exit-dialog :focus-visible { outline-color: #99ff33; outline-offset: 4px; }

@media screen {
  body:has(.game-screen) .site-header { position: sticky; top: 0; z-index: 10; }
  .player-score > strong { display: block; font-size: inherit; font-weight: inherit; color: inherit; }
  .player-score .score-unit { font-size: .4em; letter-spacing: -1px; }
  .player-score > .player-score-caption { display: block; font-size: 16px; font-weight: 450; letter-spacing: 0; line-height: 1.5; }
  .score-segments { display: flex; gap: 6px; width: min(230px, 100%); height: 5px; margin-top: 18px; }
  .score-segments > span { flex: 1; background: #bb9160; }
  .score-segments > .is-correct { background: #99ff33; }
  .player-score-meta { margin: 0; }
  .player-score-meta dt { color: #a9bdd9; font-size: 13px; }
  .player-score-meta dd { color: #e9f1ff; font-size: 32px; font-weight: 650; line-height: 1.2; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
  .player-score-meta dd > span { display: inline; margin: 0; color: #a9bdd9; font-size: 18px; }
  .player-history .ledger-section-heading { margin-top: 0; }
  .history-label { display: flex; flex-direction: column; align-items: center; color: #a6b9d4; font-size: 12px; line-height: 1.5; }
  .history-label > span + span { font-size: 11px; color: #91a6c4; }
  .history-note { margin-top: 20px; font-size: 13px; color: #a6b9d4 !important; }
  .practice-switch { margin-top: 22px; border-top: 1px solid #344a69; }
  .practice-switch > summary { padding: 16px 0; color: #b1caff; font-size: 14px; cursor: pointer; }
  .ledger-practice > .button { margin-top: 18px; }
  .report-ledger .practice-actions .btn-secondary { color: #b1caff; border: 0; background: transparent; padding-left: 0; padding-right: 0; box-shadow: none; }
  .report-ledger .practice-actions .btn-secondary:hover { background: transparent; color: #e2edff; text-decoration: underline; }
}
@media (max-width: 650px) {
  .command-center .radio-player { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .command-center .radio-player-button { grid-column: 1 / -1; justify-self: start; }
  body:has(.game-screen) .site-header .brand-copy,
  body:has(.game-screen) .site-header .user-summary { display: none; }
  body:has(.game-screen) .site-header .header-actions { gap: 6px; }
  body:has(.game-screen) .header-actions .assessment-exit { padding-inline: 9px; }
  .assessment-exit-dialog { padding: 26px 22px; }
  .assessment-exit-dialog h2 { font-size: 25px; }
  .assessment-exit-actions { flex-direction: column; align-items: stretch; }
  .assessment-exit-actions .button { width: 100%; }
}
@media print {
  body:has(.report-ledger) { color-scheme: light; }
  .assessment-exit-dialog, .assessment-exit { display: none !important; }
  .player-report-head { padding-bottom: 14px; border-bottom: 1px solid #172039; }
  .player-report-head h1 { color: #172039; font-size: 25pt; margin: 8px 0; }
  .player-report-head p { color: #536177; font-size: 9pt; }
  .player-score-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid #adb7c5; break-inside: avoid; }
  .player-score { color: #172039; font-size: 52pt; line-height: 1; letter-spacing: -2px; }
  .player-score .score-unit { font-size: 22pt; }
  .player-score-caption { font-size: 9pt; margin-top: 8px; }
  .player-score-meta { display: flex; gap: 25px; margin: 0; }
  .player-score-meta dt { font-size: 8pt; color: #536177; }
  .player-score-meta dd { margin: 5px 0 0; font-size: 20pt; color: #172039; }
  .player-history { padding: 20px 0; break-inside: avoid; }
  .player-history h2, .player-decisions h2 { font-size: 15pt; }
  .player-history .ledger-section-heading { margin-top: 0; }
  .history-chart ol, ol.history-chart { display: flex; gap: 22px; list-style: none; padding: 0; margin: 15px 0; }
  .history-column { display: flex; flex-direction: column; align-items: center; width: 55px; gap: 5px; }
  .history-track { display: none; }
  .history-value { color: #172039; font-size: 13pt; }
  .history-label { display: flex; flex-direction: column; color: #536177; font-size: 8pt; }
  .history-note { font-size: 8pt; }
  .player-decisions { margin-top: 20px; }
}

/* Refuerzo: distinguish the case, the response plan and the available moves. */
@media screen {
  .report-ledger .practice-exercise { max-width: none; margin-top: 26px; }
  .report-ledger .practice-exercise .practice-question { padding: 22px 25px; scroll-margin-top: 20px; border: 1px solid #456d9f; border-left: 3px solid #759aff; border-radius: 9px; background: #142641; }
  .report-ledger .practice-exercise .practice-caption { color: #a9c3ff; font-size: 11px; font-weight: 750; line-height: 1.5; letter-spacing: 1.2px; text-transform: uppercase; }
  .report-ledger .practice-exercise .practice-question h3 { color: #edf4ff; font-size: 26px; line-height: 1.3; letter-spacing: -.5px; margin: 8px 0 12px; max-width: 32ch; }
  .report-ledger .practice-exercise .practice-question > p:last-child { color: #c2d2e9; font-size: 16px; line-height: 1.75; max-width: 76ch; }
  .report-ledger .practice-exercise .practice-task { margin-top: 23px; }
  .report-ledger .practice-exercise .practice-task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; margin-bottom: 16px; }
  .report-ledger .practice-exercise .practice-task-head h4 { color: #e7f0ff; margin: 0 0 6px; font-size: 19px; font-weight: 650; line-height: 1.4; letter-spacing: -.15px; }
  .report-ledger .practice-exercise .practice-task-head p { color: #aebfda; margin: 0; font-size: 15px; line-height: 1.65; }
  .report-ledger .practice-exercise .practice-count { flex: 0 0 auto; white-space: nowrap; padding: 7px 11px; border: 1px solid #3d5879; border-radius: 5px; color: #c6d9f4; background: #15263d; font-size: 13px; font-weight: 650; line-height: 1.5; font-variant-numeric: tabular-nums; }
  .report-ledger .practice-exercise .sequence-picked { display: grid; gap: 11px; margin: 17px 0 25px; padding: 0; list-style: none; border: 0; border-radius: 0; background: transparent; }
  .report-ledger .practice-exercise .sequence-picked .sequence-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 15px; min-height: 85px; padding: 17px 19px; border: 1px solid #57759c; border-radius: 8px; background: #172e4a; animation: none; }
  .report-ledger .practice-exercise .sequence-item > .stage-number,
  .report-ledger .practice-exercise .sequence-item > .practice-slot-number { display: grid; place-items: center; width: 32px; height: 32px; min-width: 32px; border: 1px solid #617e6a; border-radius: 5px; background: #233e34; color: #c4f5ab; font-size: 13px; font-weight: 700; }
  .report-ledger .practice-exercise .sequence-item > .practice-step-copy { color: #e0ebfb; font-family: inherit; font-size: 16px; line-height: 1.65; }
  .report-ledger .practice-exercise .sequence-controls { display: flex; gap: 6px; margin: 0; }
  .report-ledger .practice-exercise .sequence-controls button { min-width: 43px; min-height: 44px; padding: 8px; border: 1px solid #49688e; border-radius: 5px; background: #11243d; color: #d0e2ff; font-size: 17px; }
  .report-ledger .practice-exercise .sequence-controls button:hover:not(:disabled) { border-color: #96b6ef; background: #29496f; color: #fff; }
  .report-ledger .practice-exercise .sequence-controls button:disabled { opacity: .42; }
  .report-ledger .practice-exercise .sequence-slot { display: flex; align-items: center; gap: 13px; min-height: 56px; padding: 11px 15px; border: 1px dashed #607d9e; border-radius: 8px; background: #0e1a2c; color: #a4b7d0; font-size: 15px; line-height: 1.6; }
  .report-ledger .practice-exercise .sequence-slot > .practice-slot-number { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px dashed #577493; border-radius: 5px; color: #a7bddb; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
  .report-ledger .practice-exercise .sequence-slot > span:not(.practice-slot-number) { color: #a4b7d0; font-family: inherit; font-size: 15px; }
  .report-ledger .practice-exercise .sequence-pool { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding-top: 16px; border: 0; border-top: 1px solid #344e70; }
  .report-ledger .practice-exercise .practice-pool-head { grid-column: 1 / -1; margin: 0 0 4px; color: #e2edfd; font-size: 16px; font-weight: 650; line-height: 1.5; }
  .report-ledger .practice-exercise .practice-pool-head h4 { color: #e2edfd; margin: 0 0 6px; font-size: 18px; font-weight: 650; line-height: 1.4; }
  .report-ledger .practice-exercise .practice-pool-head p { color: #acbfdc; margin: 0; font-size: 15px; line-height: 1.6; }
  .report-ledger .practice-exercise .sequence-choice,
  .report-ledger .practice-exercise .practice-option { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; justify-content: start; gap: 13px; width: 100%; min-height: 67px; padding: 13px 15px; border: 1px solid #4a6d98; border-radius: 8px; background: #192f4d; color: #d9e7fb; text-align: left; font-size: 16px; font-weight: 500; line-height: 1.6; box-shadow: none; transform: none; }
  .report-ledger .practice-exercise .sequence-choice:hover:not(:disabled),
  .report-ledger .practice-exercise .practice-option:hover:not(:disabled) { border-color: #9bbaf0; background: #233f63; color: #f1f6ff; transform: none; }
  .report-ledger .practice-exercise .practice-option-mark,
  .report-ledger .practice-exercise .sequence-choice > .practice-option-mark { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; margin-top: 1px; border: 1px solid #6a87b0; border-radius: 5px; background: #263f61; color: #d5e5ff; font-size: 14px; font-weight: 750; line-height: 1; }
  .report-ledger .practice-exercise .sequence-choice:disabled,
  .report-ledger .practice-exercise .practice-option:disabled { opacity: .63; }
  .report-ledger .practice-exercise .sequence-choice.practice-choice--added,
  .report-ledger .practice-exercise .practice-option.selected,
  .report-ledger .practice-exercise .practice-option[aria-pressed="true"] { border: 1px solid #7fa46b; background: #20362e; color: #d7efcc; opacity: 1; }
  .report-ledger .practice-exercise .practice-choice--added .practice-option-mark,
  .report-ledger .practice-exercise .practice-option.selected .practice-option-mark,
  .report-ledger .practice-exercise .practice-option[aria-pressed="true"] .practice-option-mark { color: #caffaa; border-color: #83ac69; background: #2c4b37; }
  .report-ledger .practice-exercise .practice-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 19px; border: 0; }
  .report-ledger .practice-exercise .practice-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 27px; padding-top: 22px; border-top: 1px solid #344e70; }
  .report-ledger .practice-exercise .practice-actions .form-note { color: #b4c7e2; font-size: 14px; line-height: 1.6; }
  .report-ledger .practice-exercise .practice-actions .button { min-height: 48px; padding: 12px 20px; font-size: 15px; line-height: 1.5; box-shadow: none; }
  .report-ledger .practice-exercise .practice-actions .btn-primary:disabled { color: #aebdc2; border: 1px solid #4b5d66; background: #2b3c45; opacity: 1; box-shadow: none; }
  .report-ledger .practice-exercise :focus-visible { outline: 3px solid #99ff33; outline-offset: 4px; }
}
@media screen and (min-width: 900px) {
  .report-ledger .practice-exercise .sequence-picked { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
  .report-ledger .practice-exercise .sequence-picked .sequence-item { grid-template-columns: 32px minmax(0, 1fr); align-content: start; align-items: start; gap: 10px; padding: 12px; }
  .report-ledger .practice-exercise .sequence-controls { grid-column: 2; }
}
@media screen and (max-width: 700px) {
  .report-ledger .practice-exercise .practice-question { padding: 21px 19px; }
  .report-ledger .practice-exercise .practice-question h3 { font-size: 24px; }
  .report-ledger .practice-exercise .practice-question > p:last-child { font-size: 15px; }
  .report-ledger .practice-exercise .practice-task-head { flex-wrap: wrap; align-items: center; gap: 12px; }
  .report-ledger .practice-exercise .practice-task-head > div { flex: 1 1 220px; }
  .report-ledger .practice-exercise .sequence-picked .sequence-item { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .report-ledger .practice-exercise .sequence-item > .practice-step-copy { font-size: 15px; }
  .report-ledger .practice-exercise .sequence-controls { grid-column: 2; margin: 2px 0 0; }
  .report-ledger .practice-exercise .sequence-controls button { min-width: 44px; }
  .report-ledger .practice-exercise .sequence-pool,
  .report-ledger .practice-exercise .practice-options { grid-template-columns: 1fr; gap: 11px; }
  .report-ledger .practice-exercise .sequence-choice,
  .report-ledger .practice-exercise .practice-option { font-size: 15px; }
  .report-ledger .practice-exercise .practice-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .report-ledger .practice-exercise .practice-actions .button { width: 100%; }
}

.field-overview {
  --field-rule: #334761;
  --field-muted: #a8b9cf;
  --field-ink: #edf4ff;
  --field-lime: #a7f16b;
}

.field-overview :focus-visible {
  outline-color: var(--lime);
}

.field-overview-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 32px;
  padding-bottom: 18px;
}

.field-overview-head h1 {
  margin: 7px 0 10px;
  font-size: clamp(36px, 5vw, 61px);
  letter-spacing: -.055em;
}

.field-overview-head h1 + p {
  max-width: 60ch;
  color: var(--field-muted);
}

.field-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--field-rule);
}

.field-stats > div {
  min-width: 0;
  padding: 14px clamp(13px, 2.45vw, 31px) 15px;
}

.field-stats > div:first-child {
  padding-inline-start: 0;
}

.field-stats > div + div {
  border-inline-start: 1px solid var(--field-rule);
}

.field-stats dt,
.peer-measures dt {
  color: var(--field-muted);
  font-size: .875rem;
  font-weight: 580;
  line-height: 1.35;
}

.field-stats dd {
  margin: 5px 0 0;
  color: var(--field-ink);
  font-size: clamp(30px, 4vw, 47px);
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.055em;
  line-height: 1.15;
}

.field-stats dd > small,
.field-stats dd > span:not(:only-child) {
  color: var(--field-muted);
  font-size: .875rem;
  font-weight: 550;
  letter-spacing: 0;
}

.field-peer {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 15px clamp(24px, 4vw, 56px);
  padding: 23px 0;
  border-bottom: 1px solid var(--field-rule);
}

.field-peer h2 {
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: -.035em;
}

.field-peer p {
  max-width: 66ch;
  margin-top: 6px;
  color: var(--field-muted);
  font-size: .875rem;
}

.peer-measures {
  display: grid;
  gap: 8px;
  margin: 0;
}

.peer-measures > div {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 8px 15px;
}

.peer-measures dt {
  min-width: 116px;
}

.peer-measures dd {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  color: var(--field-muted);
  font-size: .875rem;
}

.peer-measures strong {
  min-width: 45px;
  color: var(--field-ink);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.peer-measures progress {
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #23334b;
  color: var(--peer-bar, #8daeea);
}

.peer-measures > div:first-child {
  --peer-bar: var(--field-lime);
}

.peer-measures progress::-webkit-progress-bar {
  background: #23334b;
}

.peer-measures progress::-webkit-progress-value {
  background: var(--peer-bar, #8daeea);
}

.peer-measures progress::-moz-progress-bar {
  background: var(--peer-bar, #8daeea);
}

.field-missions,
.field-history {
  margin-top: 28px;
}

.field-missions > header,
.field-history > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
}

.field-missions h2,
.field-history h2 {
  font-size: clamp(25px, 3vw, 35px);
  letter-spacing: -.045em;
}

.field-missions > header p,
.field-history > header p {
  font-size: .875rem;
}

.field-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px clamp(16px, 2.4vw, 30px);
  margin-top: 15px;
}

.field-mission {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-bottom: 1px solid var(--field-rule);
}

.field-mission > img {
  display: block;
  width: 100%;
  height: clamp(145px, 14vw, 210px);
  overflow: hidden;
  border: 1px solid var(--field-rule);
  border-radius: 6px;
  background: #16253e;
  object-fit: cover;
  object-position: center 55%;
}

.field-mission-head {
  margin-bottom: 9px;
}

.field-mission-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  padding: 15px 0 20px;
}

.field-mission-head .eyebrow {
  color: var(--field-lime);
  font-size: .7rem;
  letter-spacing: .07em;
}

.field-mission h3 {
  font-size: clamp(22px, 2.4vw, 29px);
  letter-spacing: -.035em;
}

.field-mission-body > p:not(.eyebrow) {
  max-width: 64ch;
  color: var(--field-muted);
  font-size: .9375rem;
  line-height: 1.55;
}

.field-mission-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 11px;
  margin-top: auto;
  padding-top: 7px;
}

.field-mission-actions .button {
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: .875rem;
}

.field-history h2 {
  margin-bottom: 14px;
}

.field-history-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.field-history-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid var(--field-rule);
  color: var(--field-muted);
  font-size: .875rem;
}

.field-history-row:last-child {
  border-bottom: 1px solid var(--field-rule);
}

.field-history-row > :first-child {
  flex: 1 1 180px;
  min-width: 0;
  color: var(--field-ink);
}

@media (max-width: 680px) {
  .field-overview-head {
    padding-bottom: 20px;
  }

  .field-stats dt {
    font-size: .75rem;
  }

  .field-stats dd {
    font-size: 29px;
  }

  .field-stats dd > small,
  .field-stats dd > span:not(:only-child) {
    font-size: .75rem;
  }

  .field-peer {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-block: 18px;
  }

  .field-missions,
  .field-history {
    margin-top: 29px;
  }

  .field-mission-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-mission > img {
    height: clamp(155px, 41vw, 230px);
  }

  .field-history-row {
    gap: 3px 12px;
  }
}
