:root {
  color-scheme: light;
  --forest-950: #071a12;
  --forest-900: #0d2b1e;
  --forest-800: #17432f;
  --forest-700: #225b40;
  --forest-100: #e8f1eb;
  --navy-900: #142c43;
  --gold-600: #865f15;
  --gold-500: #c49a43;
  --gold-100: #f8f0df;
  --scarlet: #ac2e3d;
  --ink-900: #17231d;
  --ink-700: #405047;
  --ink-500: #617068;
  --canvas: #f1f4f2;
  --surface: #fff;
  --line: #d8e1db;
  --line-soft: #e8eeea;
  --success: #25724a;
  --warning: #986113;
  --danger: #a03935;
  --shadow-sm: 0 5px 18px rgba(7,26,18,.055);
  --shadow-lg: 0 30px 90px rgba(3,19,11,.28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); color: var(--ink-900); font-family: Inter, "Segoe UI", Arial, sans-serif; }
body { min-height: 100vh; margin: 0; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 2000; left: 16px; top: -60px; padding: 11px 15px; color: #fff; background: var(--forest-900); border-radius: 6px; }
.skip-link:focus { top: 12px; }

.topbar { position: sticky; z-index: 100; top: 0; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 28px; color: #fff; background: rgba(7,26,18,.98); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 6px 25px rgba(0,0,0,.16); backdrop-filter: blur(14px); }
.brand { min-width: 0; display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.brand-mark { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid rgba(196,154,67,.75); border-radius: 50%; }
.brand-mark img { width: 47px; height: 47px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 17px/1.1 Georgia, serif; }
.brand small { margin-top: 3px; color: #aebfb5; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav > a { color: #cedbd3; font-size: 10px; font-weight: 750; text-decoration: none; }
.topbar nav > a:hover { color: #fff; }
.candidate-identity { display: flex; align-items: center; gap: 12px; padding-left: 17px; border-left: 1px solid rgba(255,255,255,.14); }
.candidate-identity strong, .candidate-identity small { display: block; text-align: right; }
.candidate-identity strong { font-size: 11px; }
.candidate-identity small { margin-top: 2px; color: #93aa9d; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.candidate-identity button { padding: 7px 10px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.23); border-radius: 6px; font-size: 9px; font-weight: 800; }
.eyebrow { display: block; color: var(--gold-600); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: #dec783; }

.button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 10px; font-weight: 850; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .58; transform: none; }
.button.primary { color: #fff; background: var(--forest-700); border-color: var(--forest-700); }
.button.primary:hover { background: var(--forest-800); }
.button.secondary { color: var(--forest-800); background: #fff; border-color: #bccac1; }
.button.danger { color: #fff; background: #8f282d; border-color: #8f282d; }
.button.danger:hover { background: #731e23; border-color: #731e23; }
.button.small { min-height: 32px; padding: 6px 10px; font-size: 8px; }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .question-jump:focus-visible, .flag-button:focus-visible { outline: 3px solid #0879b3; outline-offset: 3px; }
.topbar :focus-visible, .candidate-hero :focus-visible, .exam-header :focus-visible, .results-hero :focus-visible { outline-color: #f3cf70; }

.signin-view { position: relative; min-height: calc(100vh - 74px); display: grid; place-items: center; overflow: hidden; padding: 48px 18px; background: linear-gradient(128deg, var(--forest-950), #164a32); }
.signin-view::before { content: ""; position: absolute; inset: 0; opacity: .34; background: radial-gradient(circle at 19% 18%, rgba(196,154,67,.58), transparent 25%), radial-gradient(circle at 82% 82%, rgba(51,130,86,.5), transparent 30%), linear-gradient(135deg, transparent 49%, rgba(255,255,255,.045) 49.2%, transparent 49.4%); background-size: auto, auto, 44px 44px; }
.signin-card { position: relative; width: min(590px, 100%); padding: 43px 47px 39px; background: rgba(255,255,255,.985); border: 1px solid rgba(255,255,255,.65); border-top: 4px solid var(--gold-500); border-radius: 15px; box-shadow: var(--shadow-lg); }
.signin-card h1 { margin: 9px 0 12px; color: var(--forest-900); font: 600 clamp(35px, 6vw, 47px)/1 Georgia, serif; letter-spacing: -.03em; }
.signin-card > p { margin: 0 0 25px; color: var(--ink-700); font-size: 12px; line-height: 1.72; }
#enroll-form { display: grid; gap: 15px; }
#enroll-form > label:not(.consent) { display: grid; gap: 7px; }
#enroll-form > label > span { color: var(--ink-700); font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
#access-code { width: 100%; height: 49px; padding: 0 14px; color: var(--forest-900); background: #fbfcfb; border: 1px solid #c3d0c8; border-radius: 8px; outline: none; font: 700 16px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
#access-code:focus { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(34,91,64,.13); }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 15px; background: #f4f8f5; border: 1px solid var(--line); border-radius: 8px; }
.consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--forest-700); }
.consent span, .consent strong, .consent small { display: block; }
.consent strong { color: var(--ink-900); font-size: 10px; }
.consent small { margin-top: 5px; color: var(--ink-500); font-size: 8px; line-height: 1.55; }
.message { min-height: 15px; margin: 0; color: var(--danger); font-size: 9px; line-height: 1.5; }
.security-note { display: grid; gap: 5px; margin-top: 22px; padding: 15px 17px; color: #69501d; background: var(--gold-100); border: 1px solid #e7d5ae; border-left: 4px solid var(--gold-500); border-radius: 8px; }
.security-note strong { font-size: 10px; }
.security-note span { font-size: 9px; line-height: 1.55; }

.candidate-hero { min-height: 286px; display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; padding: 54px max(32px, calc((100vw - 1410px) / 2)) 73px; color: #fff; background: linear-gradient(115deg, var(--forest-950), #1b5339); }
.candidate-hero h1 { margin: 9px 0 8px; font: 600 clamp(43px, 6vw, 66px)/.98 Georgia, serif; letter-spacing: -.035em; }
.candidate-hero p { margin: 0; color: #b8cabf; font-size: 13px; }
.hero-status { min-width: 230px; padding: 18px 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-top: 3px solid var(--gold-500); border-radius: 9px; }
.hero-status span, .hero-status strong, .hero-status small { display: block; }
.hero-status span { color: #b6c9bd; font-size: 8px; font-weight: 850; letter-spacing: .065em; text-transform: uppercase; }
.hero-status strong { margin: 8px 0 4px; font: 600 35px Georgia, serif; }
.hero-status small { color: #9eb4a7; font-size: 8px; }
.dashboard-wrap, .results-wrap { width: min(1410px, calc(100% - 56px)); margin: 0 auto; }
.metric-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: -38px; }
.metric-grid article { min-height: 128px; padding: 18px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: 9px; box-shadow: var(--shadow-sm); }
.metric-grid span, .metric-grid small { display: block; color: var(--ink-500); font-size: 8px; }
.metric-grid span { font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.metric-grid strong { display: block; margin: 13px 0 7px; color: var(--forest-900); font: 600 32px Georgia, serif; }
.notice-strip { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; margin: 15px 0; padding: 17px 19px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--forest-700); border-radius: 9px; box-shadow: var(--shadow-sm); }
.notice-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--success); background: var(--forest-100); border-radius: 50%; font-weight: 900; }
.notice-strip strong { color: var(--forest-900); font-size: 10px; }
.notice-strip p { margin: 4px 0 0; color: var(--ink-500); font-size: 9px; line-height: 1.6; }
.assignment-section { margin: 33px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.section-heading h2 { margin: 6px 0 5px; color: var(--forest-900); font: 600 29px Georgia, serif; }
.section-heading p { margin: 0; color: var(--ink-500); font-size: 10px; }
.assignment-grid { display: grid; gap: 15px; margin-top: 18px; }
.assignment-status { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; align-items: center; min-height: 104px; margin-top: 18px; padding: 18px 20px; color: var(--ink-700); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--forest-700); border-radius: 10px; box-shadow: var(--shadow-sm); }
.assignment-status-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--forest-800); background: var(--forest-100); border: 1px solid #cfdfd5; border-radius: 50%; font-size: .875rem; font-weight: 900; letter-spacing: .08em; }
.assignment-status strong, .assignment-status span { display: block; }
.assignment-status strong { color: var(--forest-900); font: 600 1.125rem Georgia, serif; }
.assignment-status div > span { margin-top: 4px; font-size: .875rem; line-height: 1.55; }
.assignment-status.loading { border-left-color: var(--gold-500); }
.assignment-status.empty { border-left-color: var(--success); }
.assignment-status.empty .assignment-status-icon { color: #17613c; background: #eaf5ee; border-color: #c9e1d2; }
.assignment-status.error { border-left-color: var(--danger); }
.assignment-status.error .assignment-status-icon { color: #852f2a; background: #fff0ef; border-color: #e9c5c1; }
.attempt-history-section { margin: 42px 0; padding: 25px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--forest-700); border-radius: 11px; box-shadow: var(--shadow-sm); }
.history-privacy-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; color: var(--forest-800); background: var(--forest-100); border: 1px solid #cbded1; border-radius: 999px; font-size: .75rem; font-weight: 850; white-space: nowrap; }
.history-status { min-height: 1.4em; margin: 16px 0 10px; color: #4d5e54; font-size: .875rem; }
.attempt-history-list { display: grid; gap: 9px; }
.attempt-history-card { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 15px; background: #f8faf8; border: 1px solid var(--line-soft); border-radius: 9px; }
.attempt-score { width: 74px; min-height: 66px; display: grid; place-content: center; color: #7a4d0e; background: #fff5df; border: 1px solid #ead4a6; border-radius: 8px; text-align: center; }
.attempt-score.passed { color: #17613c; background: #eaf5ee; border-color: #c9e1d2; }
.attempt-score strong, .attempt-score span { display: block; }
.attempt-score strong { font: 600 1.45rem Georgia, serif; }
.attempt-score span { margin-top: 2px; font-size: .75rem; font-weight: 750; }
.attempt-history-copy { min-width: 0; }
.attempt-history-copy h3 { margin: 4px 0; color: var(--forest-900); font: 600 1.1rem Georgia, serif; }
.attempt-history-copy p, .attempt-history-copy small { display: block; margin: 0; color: #53635a; font-size: .75rem; line-height: 1.45; }
.attempt-history-copy small { margin-top: 4px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.attempt-status { color: #7a4d0e; font-size: .75rem; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.attempt-status.passed { color: #17613c; }
.attempt-history-empty { display: grid; gap: 5px; padding: 28px; color: #53635a; background: #f8faf8; border: 1px dashed #bfcec4; border-radius: 9px; font-size: .875rem; text-align: center; }
.attempt-history-empty strong { color: var(--forest-900); }
.assignment-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
.assignment-card.overdue { border-color: #dfaaa6; box-shadow: inset 4px 0 #a03935, var(--shadow-sm); }
.assignment-card.due-soon { border-color: #e4c98e; box-shadow: inset 4px 0 #b27718, var(--shadow-sm); }
.assignment-card > header { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 19px 21px; border-bottom: 1px solid var(--line-soft); }
.assignment-type { width: 48px; height: 48px; display: grid; place-items: center; color: var(--forest-700); background: var(--forest-100); border: 1px solid #d6e3da; border-radius: 9px; font-size: 9px; font-weight: 900; }
.assignment-card h3 { margin: 0; color: var(--forest-900); font: 600 21px Georgia, serif; }
.assignment-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.assignment-meta span { padding: 4px 6px; color: var(--ink-500); background: #f4f7f5; border-radius: 4px; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.assignment-meta .required { color: #745315; background: var(--gold-100); }
.assignment-meta .overdue { color: #852f2a; background: #fff0ef; }
.assignment-meta .due-soon { color: #704709; background: #fff6e4; }
.completion-ring { width: 72px; display: grid; gap: 5px; color: var(--forest-800); text-align: right; }
.completion-ring progress { width: 100%; height: 7px; overflow: hidden; appearance: none; }
.completion-ring progress::-webkit-progress-bar { background: #e7ece9; border-radius: 999px; }
.completion-ring progress::-webkit-progress-value { background: var(--forest-700); border-radius: 999px; }
.completion-ring progress::-moz-progress-bar { background: var(--forest-700); border-radius: 999px; }
.completion-ring strong { font-size: 9px; }
.assignment-body { padding: 17px 21px 21px; }
.exam-assignment-summary { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.exam-assignment-summary p { margin: 0; color: var(--ink-700); font-size: 10px; line-height: 1.6; }
.exam-assignment-summary strong { color: var(--forest-900); }
.score-chip { display: inline-flex; margin-top: 8px; padding: 5px 7px; color: var(--success); background: #eef7f1; border-radius: 5px; font-size: 8px; font-weight: 850; }
.score-chip.attention { color: var(--warning); background: #fff6e4; }
.score-chip.saved { margin-left: 6px; color: #245a78; background: #eef6fa; }
.exam-action-pair { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.path-step-list { display: grid; gap: 8px; }
.path-step { display: grid; grid-template-columns: 31px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; background: #f8faf8; border: 1px solid var(--line-soft); border-radius: 8px; }
.step-index { width: 29px; height: 29px; display: grid; place-items: center; color: var(--forest-700); background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 8px; font-weight: 900; }
.path-step.complete .step-index { color: #fff; background: var(--success); border-color: var(--success); }
.path-step strong { display: block; color: var(--ink-900); font-size: 9px; }
.path-step small { display: block; margin-top: 3px; color: var(--ink-500); font-size: 8px; line-height: 1.45; }
.step-copy { min-width: 0; }
.lesson-evidence { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.evidence-chip { display: inline-flex; align-items: center; gap: 3px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 7px; line-height: 1.3; }
.evidence-chip b { font-weight: 900; }
.evidence-chip.observed { color: #245a78; background: #eef6fa; border-color: #c7dde8; }
.evidence-chip.attested { color: var(--success); background: #eef7f1; border-color: #cce2d4; }
.evidence-chip.neutral { color: var(--ink-500); background: #fff; }
.step-actions { display: flex; align-items: center; gap: 6px; }
.study-link { padding: 6px 8px; color: var(--forest-700); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 8px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.step-check { min-height: 29px; padding: 5px 8px; color: var(--forest-700); background: #fff; border: 1px solid #b9cabf; border-radius: 5px; font-size: 8px; font-weight: 850; }
.step-check:disabled { color: var(--ink-500); background: #eef1ef; border-color: var(--line-soft); cursor: not-allowed; opacity: .78; }
.path-step.complete .step-check { color: #fff; background: var(--success); border-color: var(--success); }
.completion-disclosure { margin: 12px 0 0; padding: 11px 13px; color: var(--ink-600); background: #f4f6f4; border-left: 3px solid var(--gold-500); border-radius: 6px; font-size: 8px; line-height: 1.55; }
.completion-disclosure strong { color: var(--forest-800); }
.system-step { color: var(--blue, #2a6688); font-size: 8px; font-weight: 800; white-space: nowrap; }
.version-alert { margin: 0 21px 16px; padding: 10px 12px; color: #7f2d29; background: #fff1ef; border: 1px solid #ebcfcb; border-radius: 6px; font-size: 8px; line-height: 1.5; }
.assignment-empty { padding: 55px 24px; color: var(--ink-500); background: #fff; border: 1px solid var(--line); border-radius: 11px; font-size: 10px; line-height: 1.6; text-align: center; }
.privacy-boundary { display: grid; grid-template-columns: minmax(300px,.75fr) minmax(320px,1.25fr); gap: 45px; align-items: center; margin: 45px 0 65px; padding: 28px 31px; color: #fff; background: var(--forest-900); border-top: 3px solid var(--gold-500); border-radius: 11px; }
.privacy-boundary h2 { margin: 7px 0 0; font: 600 25px Georgia, serif; }
.privacy-boundary p { margin: 0; color: #b9c9c0; font-size: 10px; line-height: 1.65; }

.exam-view { min-height: calc(100vh - 74px); background: var(--canvas); }
.exam-header { min-height: 188px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 38px max(30px, calc((100vw - 1320px) / 2)) 34px; color: #fff; background: linear-gradient(116deg, var(--forest-950), #17442f); }
.exam-header h1 { margin: 7px 0 0; font: 600 clamp(34px,5vw,49px) Georgia, serif; }
.exam-clock { min-width: 130px; padding: 13px 15px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; }
.exam-clock span, .exam-clock strong { display: block; }
.exam-clock span { color: #aabdb1; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.exam-clock strong { margin-top: 5px; font: 600 23px ui-monospace, Consolas, monospace; }
.exam-layout { width: min(1320px, calc(100% - 48px)); display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 16px; margin: 20px auto 55px; }
.exam-sidebar, .question-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.exam-sidebar { align-self: start; padding: 18px; }
.exam-progress span { display: block; margin-bottom: 7px; color: var(--ink-700); font-size: 9px; font-weight: 800; }
.exam-progress progress { width: 100%; height: 7px; overflow: hidden; appearance: none; }
.exam-progress progress::-webkit-progress-bar { background: #e7ece9; border-radius: 999px; }
.exam-progress progress::-webkit-progress-value { background: var(--forest-700); border-radius: 999px; }
.question-palette { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; margin: 17px 0; }
.question-jump { aspect-ratio: 1; color: var(--ink-500); background: #f5f7f6; border: 1px solid var(--line); border-radius: 5px; font-size: 8px; font-weight: 800; }
.question-jump.answered { color: #fff; background: var(--forest-700); border-color: var(--forest-700); }
.question-jump.flagged { box-shadow: inset 0 -3px var(--gold-500); }
.question-jump.current { outline: 2px solid var(--gold-500); outline-offset: 1px; }
.exam-sidebar > .button { width: 100%; }
.question-panel { min-height: 540px; padding: 28px 31px 24px; }
.question-position { color: var(--gold-600); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
#question-card h2 { max-width: 900px; margin: 10px 0 23px; color: var(--forest-900); font: 600 clamp(23px,3vw,32px)/1.2 Georgia, serif; }
.question-domain { display: inline-flex; margin-top: 14px; padding: 4px 7px; color: var(--forest-700); background: var(--forest-100); border-radius: 4px; font-size: 8px; font-weight: 800; }
.submission-lock { margin: 14px 0 18px; padding: 10px 12px; color: #245a78; background: #eef6fa; border-left: 3px solid #2a6688; border-radius: 5px; font-size: 10px; font-weight: 750; line-height: 1.5; }
.question-image-wrap { width: min(350px,100%); margin: 0 auto 22px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.question-image { width: 100%; max-height: 300px; object-fit: contain; }
.choice-list { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.choice { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: center; min-height: 54px; padding: 9px 13px; color: var(--ink-700); background: #fafcfb; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.choice:hover { background: #f3f8f5; border-color: #b9c9bf; }
.choice:has(input:checked) { color: var(--forest-900); background: var(--forest-100); border-color: var(--forest-700); box-shadow: inset 3px 0 var(--forest-700); }
.choice:has(input:focus-visible) { outline: 3px solid #0879b3; outline-offset: 3px; }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:disabled) { cursor: not-allowed; }
.choice-letter { width: 31px; height: 31px; display: grid; place-items: center; background: #fff; border: 1px solid #cbd6cf; border-radius: 50%; font-size: 9px; font-weight: 900; }
.choice:has(input:checked) .choice-letter { color: #fff; background: var(--forest-700); border-color: var(--forest-700); }
.choice-text { font-size: 11px; line-height: 1.5; }
.question-actions { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.flag-button { justify-self: center; padding: 8px 11px; color: var(--ink-500); background: transparent; border: 0; font-size: 9px; font-weight: 800; }
.flag-button.active { color: var(--warning); }

.results-hero { min-height: 260px; display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 45px max(32px, calc((100vw - 1220px) / 2)); color: #fff; background: linear-gradient(116deg, var(--forest-950), #174b33); }
.results-hero h1 { margin: 8px 0 7px; font: 600 clamp(39px,5vw,57px)/1 Georgia, serif; }
.results-hero p { max-width: 720px; margin: 0; color: #b7c9be; font-size: 12px; line-height: 1.6; }
.score-orbit { width: 135px; height: 135px; flex: 0 0 135px; display: grid; place-content: center; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: inset 0 0 0 7px rgba(196,154,67,.25), 0 0 0 1px rgba(196,154,67,.45); text-align: center; }
.score-orbit strong, .score-orbit span { display: block; }
.score-orbit strong { font: 600 35px Georgia, serif; }
.score-orbit span { margin-top: 4px; color: #b6c7bd; font-size: 8px; }
.results-wrap { width: min(1220px, calc(100% - 48px)); padding: 22px 0 60px; }
.result-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 13px; }
.score-report { padding: 33px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--gold-500); border-radius: 10px; box-shadow: var(--shadow-sm); }
.score-report > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.report-brand { display: flex; align-items: center; gap: 11px; }
.report-brand img { width: 52px; height: 52px; object-fit: contain; }
.report-brand strong, .report-brand small { display: block; }
.report-brand strong { color: var(--forest-900); font: 600 17px Georgia, serif; }
.report-brand small { margin-top: 3px; color: var(--ink-500); font-size: 8px; text-transform: uppercase; }
.report-badge { padding: 6px 8px; color: var(--success); background: #edf6f0; border: 1px solid #d5e8db; border-radius: 5px; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.report-title { padding: 25px 0 18px; }
.report-title > span { color: var(--gold-600); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.report-title h2 { margin: 6px 0 7px; color: var(--forest-900); font: 600 30px Georgia, serif; }
.report-title p { margin: 0; color: var(--ink-500); font-size: 9px; }
.report-identity { display: grid; grid-template-columns: repeat(5,1fr); margin: 0 0 22px; background: #f6f8f7; border: 1px solid var(--line); border-radius: 8px; }
.report-identity div { padding: 14px; border-right: 1px solid var(--line); }
.report-identity div:last-child { border-right: 0; }
.report-identity dt { color: var(--ink-500); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.report-identity dd { margin: 5px 0 0; color: var(--forest-900); font-size: 10px; font-weight: 800; }
.report-identity dd { overflow-wrap: anywhere; }
.report-score { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 26px; border: 1px solid var(--line); border-radius: 8px; }
.report-score > div { padding: 19px; border-right: 1px solid var(--line); }
.report-score > div:last-child { border-right: 0; }
.report-score span, .report-score strong, .report-score small { display: block; }
.report-score span { color: var(--ink-500); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.report-score strong { margin: 7px 0 4px; color: var(--forest-900); font: 600 27px Georgia, serif; }
.report-score small { color: var(--ink-500); font-size: 8px; }
.score-report h3 { color: var(--forest-900); font: 600 18px Georgia, serif; }
.domain-results { display: grid; gap: 8px; }
.domain-row { display: grid; grid-template-columns: minmax(150px,.6fr) minmax(180px,1fr) 80px; gap: 13px; align-items: center; }
.domain-row strong { font-size: 9px; }
.domain-row progress { width: 100%; height: 7px; }
.domain-row span { color: var(--ink-500); font-size: 8px; text-align: right; }
.report-unavailable { padding: 14px; color: #53635a; background: #f6f8f7; border: 1px dashed #bfcec4; border-radius: 7px; font-size: .875rem; }
#report-note { margin-top: 24px; padding: 13px 15px; color: var(--ink-700); background: var(--gold-100); border-left: 4px solid var(--gold-500); border-radius: 6px; font-size: 8px; line-height: 1.55; }
.score-report footer { display: flex; justify-content: space-between; margin-top: 25px; padding-top: 14px; color: var(--ink-500); border-top: 1px solid var(--line); font-size: 7px; }
.answer-review { margin-top: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.answer-review select { height: 38px; padding: 0 10px; color: var(--ink-700); background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 9px; }
#answer-review { display: grid; gap: 9px; margin-top: 17px; }
.review-item { padding: 14px 16px; background: #fafcfb; border: 1px solid var(--line-soft); border-left: 4px solid var(--success); border-radius: 7px; }
.review-item.incorrect { border-left-color: var(--danger); }
.review-item > span { color: var(--success); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.review-item.incorrect > span { color: var(--danger); }
.review-item h3 { margin: 6px 0 8px; color: var(--ink-900); font-size: 11px; }
.review-question-image { width: min(420px,100%); max-height: 360px; margin: 13px auto; padding: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.review-choice-list { display: grid; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.review-choice-list li { display: grid; grid-template-columns: 30px minmax(0,1fr) auto auto; gap: 7px; align-items: center; min-height: 42px; padding: 7px 9px; background: #fff; border: 1px solid var(--line-soft); border-radius: 6px; }
.review-choice-list li > span { width: 26px; height: 26px; display: grid; place-items: center; color: var(--forest-800); background: var(--forest-100); border-radius: 50%; font-size: .75rem; font-weight: 900; }
.review-choice-list li > b { color: var(--ink-700); font-size: .875rem; font-weight: 650; }
.review-choice-list li > em { padding: 3px 5px; color: #4d5e54; background: #eef2ef; border-radius: 4px; font-size: .75rem; font-style: normal; font-weight: 850; }
.review-choice-list li.correct-choice { border-color: #9fc6ae; box-shadow: inset 3px 0 #25724a; }
.review-choice-list li.selected-choice:not(.correct-choice) { border-color: #ddaaa6; box-shadow: inset 3px 0 #a03935; }
.review-answers { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.review-answers div { padding: 9px 10px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.review-answers small, .review-answers strong { display: block; }
.review-answers small { color: var(--ink-500); font-size: 7px; text-transform: uppercase; }
.review-answers strong { margin-top: 4px; color: var(--ink-700); font-size: 9px; }
.review-item p { margin: 10px 0 0; color: var(--ink-700); font-size: 9px; line-height: 1.55; }
.review-item footer { margin-top: 8px; color: var(--ink-500); font-size: 7px; }
.session-dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; color: var(--ink-900); background: #fff; border: 1px solid #cfd9d2; border-top: 4px solid var(--scarlet); border-radius: 13px; box-shadow: 0 30px 90px rgba(3,19,11,.35); }
.session-dialog::backdrop { background: rgba(3,19,11,.72); backdrop-filter: blur(4px); }
.session-dialog-card { padding: 30px; }
.session-dialog h2 { margin: 8px 0 10px; color: var(--forest-900); font: 600 1.75rem/1.12 Georgia, serif; }
.session-dialog p { margin: 0; color: var(--ink-700); font-size: .9375rem; line-height: 1.65; }
.session-dialog .dialog-message { min-height: 1.5em; margin-top: 10px; color: #852f2a; font-weight: 700; }
.session-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.toast { position: fixed; z-index: 1200; right: 22px; bottom: 22px; max-width: 380px; padding: 13px 16px; color: #fff; background: var(--forest-900); border-left: 4px solid var(--gold-500); border-radius: 7px; box-shadow: 0 12px 34px rgba(0,0,0,.22); font-size: 10px; font-weight: 750; }

/* Operational accessibility floor: candidate training must remain readable at
   normal and high zoom without turning governed metadata into microtype. */
.topbar nav > a, .candidate-identity strong, .candidate-identity button, .button, .signin-card > p,
#enroll-form > label > span, .consent strong, .consent small, .message, .security-note strong, .security-note span,
.candidate-hero p, .notice-strip strong, .notice-strip p, .section-heading p, .assignment-card h3,
.exam-assignment-summary p, .path-step strong, .path-step small, .study-link, .step-check, .system-step,
.privacy-boundary p, .exam-progress span, .choice-text, .submission-lock, .results-hero p,
.report-title p, .report-identity dd, .answer-review select, .review-item h3, .review-answers strong,
.review-item p, .toast { font-size: .875rem !important; }
.brand small, .candidate-identity small, .eyebrow, .hero-status span, .hero-status small,
.metric-grid span, .metric-grid small, .assignment-meta span, .completion-ring strong, .score-chip,
.evidence-chip, .completion-disclosure, .version-alert, .question-position, .question-domain,
.question-jump, .flag-button, .score-orbit span, .report-brand small, .report-badge,
.report-title > span, .report-identity dt, .report-score span, .report-score small, .domain-row strong,
.domain-row span, #report-note, .score-report footer, .review-item > span, .review-answers small,
.review-item footer { font-size: .75rem !important; }
.button, .candidate-identity button, .study-link, .step-check, .flag-button, .answer-review select { min-height: 44px; }

@media (max-width: 900px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .exam-layout { grid-template-columns: 1fr; }
  .exam-sidebar { order: 2; }
  .question-palette { grid-template-columns: repeat(5,minmax(44px,1fr)); overflow-x: auto; padding: 3px; }
  .question-jump { min-width: 44px; min-height: 44px; aspect-ratio: auto; }
  .privacy-boundary { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 680px) {
  .topbar { min-height: 66px; padding: 8px 12px; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-mark img { width: 41px; height: 41px; }
  .brand strong { font-size: 14px; }
  .topbar nav > a, .candidate-identity span { display: none; }
  .topbar nav > a:first-child { display: inline-flex; font-size: 9px; }
  .signin-card { padding: 32px 22px 28px; }
  .candidate-hero { min-height: 330px; display: block; padding: 39px 18px 74px; }
  .candidate-hero h1 { font-size: 43px; }
  .hero-status { margin-top: 24px; }
  .dashboard-wrap, .results-wrap { width: calc(100% - 24px); }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { min-height: 106px; }
  .assignment-status { grid-template-columns: 42px minmax(0,1fr); }
  .assignment-status > .button { grid-column: 1/-1; width: 100%; }
  .section-heading { display: block; }
  .section-heading > .button, .section-heading > label { margin-top: 13px; }
  .history-privacy-chip { margin-top: 13px; }
  .attempt-history-section { padding: 20px 15px; }
  .attempt-history-card { grid-template-columns: 68px minmax(0,1fr); }
  .attempt-score { width: 62px; }
  .attempt-history-card > .button { grid-column: 1/-1; width: 100%; }
  .assignment-card > header { grid-template-columns: 42px 1fr; }
  .completion-ring { grid-column: 1/-1; width: 100%; }
  .completion-ring strong { display: none; }
  .exam-assignment-summary { grid-template-columns: 1fr; }
  .path-step { grid-template-columns: 29px 1fr; }
  .step-actions { grid-column: 1/-1; flex-wrap: wrap; justify-content: flex-end; }
  .lesson-evidence { align-items: flex-start; flex-direction: column; }
  .exam-header, .results-hero { display: block; padding: 34px 18px; }
  .exam-clock { margin-top: 20px; }
  .exam-layout { width: calc(100% - 24px); }
  .question-panel { min-height: 500px; padding: 22px 17px; }
  .question-actions { grid-template-columns: 1fr 1fr; }
  .flag-button { grid-row: 2; grid-column: 1/-1; }
  .score-orbit { margin-top: 25px; }
  .score-report { padding: 20px 16px; }
  .score-report > header { align-items: flex-start; flex-direction: column; }
  .report-identity, .report-score { grid-template-columns: 1fr; }
  .report-identity div, .report-score > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .report-identity div:last-child, .report-score > div:last-child { border-bottom: 0; }
  .domain-row { grid-template-columns: 1fr 55px; }
  .domain-row progress { grid-row: 2; grid-column: 1/-1; }
  .review-answers { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .session-dialog-card { padding: 24px 20px; }
  .session-dialog-actions { flex-direction: column; }
  .session-dialog-actions .button { width: 100%; }
}
@media (min-width: 281px) and (max-width: 680px) {
  .candidate-session-active .topbar { min-height: 60px; flex-wrap: nowrap; gap: 8px; padding: 7px 10px; }
  .candidate-session-active .brand { width: auto; }
  .candidate-session-active .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .candidate-session-active .brand-mark img { width: 39px; height: 39px; }
  .candidate-session-active .brand strong { font-size: .9375rem; line-height: 1; white-space: nowrap; }
  .candidate-session-active .brand small { display: none; }
  .candidate-session-active .topbar nav { width: auto; margin-left: auto; }
  .candidate-session-active .topbar nav > a:first-child { display: none; }
  .candidate-session-active .candidate-identity { width: auto; padding-left: 0; border-left: 0; }
  .candidate-session-active .candidate-identity button { width: auto; min-width: 58px; }
}
@media (max-width: 360px) {
  .topbar { position: static; align-items: stretch; flex-wrap: wrap; gap: 8px; padding: 8px; }
  .brand { width: 100%; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-mark img { width: 36px; height: 36px; }
  .brand strong { font-size: .9rem; overflow-wrap: anywhere; }
  .brand small { letter-spacing: .05em; }
  .topbar nav { width: 100%; flex-wrap: wrap; gap: 6px; }
  .topbar nav > a:first-child, .candidate-identity, .candidate-identity button { width: 100%; }
  .topbar nav > a:first-child, .candidate-identity button { justify-content: center; text-align: center; }
  .signin-view { min-height: auto; padding: 18px 6px; }
  .signin-card { padding: 24px 12px; }
  .signin-card h1, .candidate-hero h1 { font-size: 2rem; overflow-wrap: anywhere; }
  .candidate-hero, .exam-header, .results-hero { padding-inline: 8px; }
  .hero-status, .exam-clock { min-width: 0; width: 100%; }
  .dashboard-wrap, .results-wrap, .exam-layout { width: calc(100% - 12px); }
  .metric-grid { margin-top: -28px; }
  .assignment-card > header, .assignment-body { padding-inline: 12px; }
  .privacy-boundary { margin-bottom: 30px; padding: 20px 12px; }
  .question-panel, .exam-sidebar, .score-report, .answer-review { padding-inline: 10px; }
  .question-actions { grid-template-columns: 1fr; }
  .question-actions > *, .flag-button { width: 100%; grid-column: 1; grid-row: auto; }
  .question-palette { grid-template-columns: repeat(3,minmax(44px,1fr)); }
  .report-brand { align-items: flex-start; }
  .report-brand strong { overflow-wrap: anywhere; }
  .review-choice-list li { grid-template-columns: 28px minmax(0,1fr); }
  .review-choice-list li > em { grid-column: 2; justify-self: start; }
}
@media print {
  @page { size: letter; margin: .45in; }
  body { background: #fff !important; }
  .topbar, .results-hero, .result-actions, .answer-review, .toast { display: none !important; }
  main, .results-view, .results-wrap { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .score-report { padding: 20px !important; border: 1px solid #9aa69f !important; border-top: 5px solid #a5771f !important; border-radius: 0 !important; box-shadow: none !important; break-inside: avoid; }
  .score-report > header { padding-bottom: 12px; }
  .report-title { padding: 15px 0 11px; }
  .report-identity { margin-bottom: 13px; }
  .report-identity div { padding: 9px; }
  .report-score { margin-bottom: 15px; }
  .report-score > div { padding: 11px; }
  .report-score strong { font-size: 21px; }
  .domain-results { gap: 5px; }
  #report-note { margin-top: 15px; padding: 9px 11px; }
  .score-report footer { margin-top: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
