:root {
  --itm-purple: #251a45;
  --itm-purple-soft: #eeeaf6;
  --intermediate-navy: #102a56;
  --intermediate-teal: #0f766e;
  --intermediate-gold: #d6a23d;
  --intermediate-coral: #c84f49;
  --ink: #1e293b;
  --muted: #5e6b7f;
  --line: #d8dee8;
  --surface: #f3f6fa;
  --success: #18794e;
  --danger: #b42336;
  --warning: #765b00;
  --shadow: 0 16px 40px rgba(16, 42, 86, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: "Nunito", "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(15, 118, 110, .35); outline-offset: 3px; }
body, main, section, form, article, div, nav, header, footer { min-width: 0; }

.institutional-band { padding: .7rem 1rem; background: #fff; border-bottom: 1px solid #e5e7eb; }
.institutional-band img { display: block; width: min(1123px, 100%); height: auto; margin: 0 auto; }

.exam-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); box-shadow: 0 8px 26px rgba(16, 42, 86, .08); }
.exam-nav-inner { display: flex; align-items: center; gap: 1rem; max-width: 1160px; margin: auto; padding: .72rem 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--intermediate-navy); text-decoration: none; font-weight: 900; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.exam-nav-links { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; }
.exam-nav-links a { padding: .55rem .7rem; color: var(--intermediate-navy); text-decoration: none; font-weight: 800; }
.exam-nav-links a:hover { color: var(--intermediate-teal); }

.exam-hero { position: relative; min-height: 470px; display: grid; align-items: end; color: #fff; background: var(--intermediate-navy) url("../img/english-intermediate/integrated-task/mock-integrated-task-global-food.webp") center 38% / cover no-repeat; overflow: hidden; }
.real-integrated-task .exam-hero { background-image: url("../img/english-intermediate/integrated-task/integrated-task-real-global-food.webp"); background-position: center 45%; }
.exam-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 25, 57, .96) 0%, rgba(7, 25, 57, .78) 48%, rgba(7, 25, 57, .18) 100%); }
.exam-hero-inner { position: relative; z-index: 1; width: min(1160px, 100%); margin: 0 auto; padding: 4rem 1rem 3.5rem; }
.hero-copy-wrap { width: min(670px, 100%); }
.eyebrow, .section-kicker { margin: 0 0 .35rem; color: var(--intermediate-gold); text-transform: uppercase; letter-spacing: .1em; font-size: .79rem; font-weight: 900; }
.exam-hero h1 { max-width: 780px; margin: .65rem 0 1rem; color: #fff; font: 900 clamp(2.15rem, 5vw, 4.3rem) / 1.04 "Montserrat", "Segoe UI", sans-serif; letter-spacing: 0; }
.exam-hero h1 span { display: block; }
.hero-copy { max-width: 650px; margin: 0; color: rgba(255, 255, 255, .92); font-size: 1.08rem; line-height: 1.7; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .72rem; border-radius: 8px; background: #fff; color: var(--itm-purple); font-weight: 900; }

.btn-row { min-width: 0; display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.15rem; }
.btn-main, .btn-soft, .btn-danger { max-width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .72rem 1rem; border-radius: 8px; border: 0; cursor: pointer; text-align: center; text-decoration: none; overflow-wrap: anywhere; font-weight: 900; }
.btn-main { background: var(--intermediate-teal); color: #fff; box-shadow: 0 10px 22px rgba(15, 118, 110, .2); }
.btn-main:hover { background: #0b5f59; color: #fff; }
.btn-soft { background: #fff; color: var(--intermediate-navy); border: 2px solid #cbd5e1; }
.btn-soft:hover { border-color: var(--intermediate-teal); color: var(--intermediate-teal); }
.btn-danger { background: #fff0f1; color: var(--danger); border: 2px solid #efc3ca; }
button:disabled { opacity: .56; cursor: not-allowed; }

.exam-shell { width: min(1120px, 100%); margin: auto; padding: 2rem 1rem; }
.panel, .exam-section { padding: clamp(1.15rem, 3vw, 2rem); margin-bottom: 1.2rem; background: #fff; border: 1px solid rgba(16, 42, 86, .1); border-radius: 8px; box-shadow: var(--shadow); }
.access-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.access-icon { width: 62px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: var(--itm-purple-soft); color: var(--itm-purple); font-size: 1.6rem; }
.section-title { margin: .15rem 0 .65rem; color: var(--intermediate-navy); font: 900 clamp(1.45rem, 3vw, 2.2rem) / 1.12 "Montserrat", "Segoe UI", sans-serif; letter-spacing: 0; }
.section-copy { color: var(--muted); line-height: 1.68; overflow-wrap: anywhere; }

.identity-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.25fr; gap: .75rem; }
.field { display: grid; gap: .35rem; }
.field label { color: var(--intermediate-navy); font-size: .86rem; font-weight: 900; }
.field input, .field textarea, .field select { width: 100%; padding: .75rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.field input[readonly] { background: #f5f7fa; }
.exam-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta-item { padding: .9rem .25rem; }
.meta-item strong { display: block; color: var(--intermediate-navy); }

.audio-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem; background: #eef8f7; border: 1px solid #b9ddd9; border-radius: 8px; }
.audio-card audio { width: 100%; min-width: 0; }
.audio-speed-row { min-width: 0; grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0; }
.speed-label { color: var(--intermediate-navy); font-weight: 900; margin-right: .25rem; }
.speed-btn { min-width: 62px; min-height: 40px; border: 2px solid #bad1d0; border-radius: 8px; background: #fff; color: var(--intermediate-navy); cursor: pointer; font-weight: 900; }
.speed-btn.active { background: var(--intermediate-teal); border-color: var(--intermediate-teal); color: #fff; }
.speed-btn:active, .btn-main:active, .btn-soft:active, .btn-danger:active { transform: translateY(1px); }
.inline-action-feedback { min-width: 0; grid-column: 1 / -1; min-height: 1.5rem; padding: .55rem .7rem; border-radius: 8px; background: #f7f9fc; border: 1px solid var(--line); color: var(--muted); overflow-wrap: anywhere; font-weight: 800; }
.inline-action-feedback.success { background: #e8f6ef; border-color: #b5dfc8; color: var(--success); }
.inline-action-feedback.pending { background: #fff8df; border-color: #ead477; color: var(--warning); }
.inline-action-feedback.error { background: #fff0f1; border-color: #efbdc5; color: var(--danger); }

.question-card { padding: 1rem 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); }
.question-card:last-child { border-bottom: 0; }
.question-card legend { width: 100%; padding: 0 0 .5rem; color: var(--intermediate-navy); font-weight: 900; }
.option { display: flex; align-items: flex-start; gap: .65rem; padding: .65rem .7rem; margin: .28rem 0; border-radius: 8px; cursor: pointer; }
.option:hover { background: #f0f6fa; }
.option input { margin-top: .25rem; accent-color: var(--intermediate-teal); }

.writing-prompt { padding: 1rem 1.15rem; background: #fbf7eb; border-left: 5px solid var(--intermediate-gold); border-radius: 8px; }
.writing-prompt p:first-child { margin-top: 0; }
.writing-prompt ul { line-height: 1.72; }
.rubric-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rubric-item { padding: .85rem .7rem; border-right: 1px solid var(--line); }
.rubric-item:last-child { border-right: 0; }
.rubric-item strong { display: block; color: var(--intermediate-navy); }
.rubric-item span { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.writing-area { min-height: 290px; resize: vertical; line-height: 1.65; }
.word-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: .45rem; color: var(--muted); font-weight: 800; }

.status-box { display: none; padding: 1rem; margin-top: 1rem; border-radius: 8px; font-weight: 800; line-height: 1.6; }
.status-box.show { display: block; }
.status-box.success { background: #e8f6ef; border: 1px solid #b5dfc8; color: #12613f; }
.status-box.error { background: #fff0f1; border: 1px solid #efbdc5; color: #971a2a; }
.status-box.pending { background: #fff8df; border: 1px solid #ead477; color: var(--warning); }
.admin-panel { border-top: 5px solid var(--intermediate-gold); }
.admin-state { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.admin-state .btn-row { flex: 0 0 auto; margin-top: 0; }
.state-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-radius: 8px; font-weight: 900; }
.state-badge.open { background: #e8f6ef; color: var(--success); border: 1px solid #b5dfc8; }
.state-badge.closed { background: #fff0f1; color: var(--danger); border: 1px solid #efbdc5; }
.activation-feedback { min-height: 1.5rem; margin-top: .75rem; color: var(--muted); font-weight: 900; }
.activation-feedback.success { color: var(--success); }
.activation-feedback.error { color: var(--danger); }
.review-stats { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.stat-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; color: var(--intermediate-navy); }
.stat-pill.pending { background: #fff8df; border-color: #ead477; }
.stat-pill.graded { background: #e8f6ef; border-color: #b5dfc8; }
.review-grid { display: grid; gap: 1rem; }
.review-roster-wrap { margin: .4rem 0 1rem; }
.review-roster-wrap h3 { margin: 0 0 .65rem; color: var(--intermediate-navy); }
.review-table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.review-roster-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; }
.review-roster-table th, .review-roster-table td { padding: .72rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.review-roster-table th { background: #f4f7fb; color: var(--intermediate-navy); font-size: .82rem; }
.review-roster-table tbody tr:last-child td { border-bottom: 0; }
.review-status { display: inline-flex; padding: .28rem .48rem; border-radius: 6px; background: #eef2f7; color: var(--muted); font-size: .78rem; font-weight: 900; white-space: nowrap; }
.review-status.pending { background: #fff8df; color: var(--warning); }
.review-status.graded { background: #e8f6ef; color: var(--success); }
.review-card { padding: 1.1rem; border: 1px solid var(--line); border-left: 5px solid var(--intermediate-teal); border-radius: 8px; background: #fff; }
.review-card h3 { margin: 0; color: var(--intermediate-navy); }
.review-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .65rem 0; }
.review-meta span { padding: .35rem .55rem; border-radius: 6px; background: #eef2f7; color: var(--muted); font-size: .85rem; font-weight: 800; }
.review-meta .graded-chip { background: #e8f6ef; color: var(--success); }
.student-writing { padding: 1rem; margin: .85rem 0; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; line-height: 1.7; white-space: pre-wrap; }
.rubric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.teacher-comments { margin-top: .8rem; }
.teacher-comments textarea { min-height: 110px; resize: vertical; }
.submitted-receipt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-bottom: .8rem; }
.submitted-receipt strong { grid-column: 1 / -1; color: var(--intermediate-navy); font-size: 1.05rem; }
.submitted-receipt span { padding: .45rem .6rem; border-radius: 6px; background: rgba(255, 255, 255, .62); }
.submitted-rubric { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.submitted-rubric span { padding: .4rem .55rem; border-radius: 6px; background: rgba(255, 255, 255, .66); }
.submitted-comments { margin-top: .75rem; }
.submitted-comments p { margin-bottom: 0; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: .8rem; }
.result-item { padding: .75rem; background: rgba(255, 255, 255, .64); border: 1px solid rgba(16, 42, 86, .12); border-radius: 8px; }
.result-item strong { display: block; color: var(--intermediate-navy); font-size: 1.15rem; }

.history-list { display: grid; border-top: 1px solid var(--line); }
.history-item { display: grid; grid-template-columns: minmax(190px, 1.6fr) repeat(2, minmax(110px, .7fr)) auto; gap: .75rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.history-item > div { min-width: 0; }
.history-item span { display: block; color: var(--muted); font-size: .8rem; font-weight: 800; }
.history-item strong { display: block; overflow-wrap: anywhere; color: var(--intermediate-navy); }
.history-diagnostic-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .7rem; border: 2px solid #bad1d0; border-radius: 8px; background: #fff; color: var(--intermediate-navy); cursor: pointer; font-weight: 900; }
.history-diagnostic-button:hover { border-color: var(--intermediate-teal); color: var(--intermediate-teal); }
.empty-state { margin: 0; padding: 1rem 0; color: var(--muted); font-weight: 800; }
.error-text { color: var(--danger); }

.diagnostic-panel { border-top: 5px solid var(--intermediate-teal); }
.diagnostic-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diagnostic-card { min-width: 0; padding: 1rem; border-right: 1px solid var(--line); border-top: 4px solid #9aa7b9; }
.diagnostic-card:last-child { border-right: 0; }
.diagnostic-card.secure { border-top-color: var(--success); }
.diagnostic-card.developing { border-top-color: var(--intermediate-gold); }
.diagnostic-card.priority { border-top-color: var(--intermediate-coral); }
.diagnostic-card-head { display: grid; gap: .45rem; }
.diagnostic-card-head strong { color: var(--intermediate-navy); overflow-wrap: anywhere; }
.diagnostic-card-head span { width: fit-content; padding: .25rem .42rem; border-radius: 6px; background: #eef2f7; color: var(--muted); font-size: .75rem; font-weight: 900; }
.diagnostic-card.secure .diagnostic-card-head span { background: #e8f6ef; color: var(--success); }
.diagnostic-card.developing .diagnostic-card-head span { background: #fff8df; color: var(--warning); }
.diagnostic-card.priority .diagnostic-card-head span { background: #fff0f1; color: var(--danger); }
.diagnostic-score { margin: .75rem 0 .35rem; color: var(--muted); font-weight: 900; }
.diagnostic-score b { color: var(--intermediate-navy); font-size: 1.55rem; }
.diagnostic-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.writing-diagnostic { margin-top: 1.2rem; }
.writing-diagnostic h3, .feedback-content h3 { color: var(--intermediate-navy); }
.signal-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.signal-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .65rem; border-radius: 8px; font-weight: 900; }
.signal-chip.found { background: #e8f6ef; color: var(--success); }
.signal-chip.missing { background: #fff0f1; color: var(--danger); }
.attempt-save-status { display: flex; align-items: center; gap: .45rem; }

.feedback-panel { border-top: 5px solid var(--itm-purple); }
.feedback-content { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 1.2rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.protected-transcript { max-height: 620px; overflow: auto; padding-right: .7rem; }
.protected-transcript p { color: var(--ink); line-height: 1.7; }
.answer-explanation-list { min-width: 0; }
.answer-explanation { border-bottom: 1px solid var(--line); }
.answer-explanation summary { display: flex; justify-content: space-between; gap: .7rem; padding: .8rem 0; color: var(--intermediate-navy); cursor: pointer; font-weight: 900; }
.answer-explanation summary span { color: var(--intermediate-teal); white-space: nowrap; }
.answer-explanation > div { padding: 0 0 1rem; color: var(--muted); line-height: 1.6; }
.answer-explanation > div strong { color: var(--ink); }
.answer-explanation > div p { margin: .45rem 0 0; }

.study-companion .exam-hero { background-image: url("../img/english-intermediate/integrated-task/mock-study-companion-food-review.webp"); background-position: center 48%; }
.study-companion .exam-hero::before { background: linear-gradient(90deg, rgba(7, 25, 57, .96) 0%, rgba(7, 25, 57, .76) 52%, rgba(7, 25, 57, .2) 100%); }
.study-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.study-summary-item { padding: 1rem; border-right: 1px solid var(--line); }
.study-summary-item:last-child { border-right: 0; }
.study-summary-item i { color: var(--intermediate-teal); font-size: 1.35rem; }
.study-summary-item strong { display: block; margin: .4rem 0 .2rem; color: var(--intermediate-navy); }
.study-summary-item span { color: var(--muted); line-height: 1.5; }
.study-audio-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.study-audio-toolbar p { min-width: min(100%, 300px); margin: 0; color: var(--muted); font-weight: 800; }
.study-audio-speed { display: flex; align-items: center; gap: .45rem; }
.vocabulary-list { display: grid; }
.vocabulary-row { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(180px, 1fr) minmax(260px, 1.5fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.vocabulary-row:last-child { border-bottom: 0; }
.vocabulary-expression { color: var(--intermediate-navy); font-size: 1.05rem; font-weight: 900; }
.vocabulary-use { color: var(--muted); line-height: 1.5; }
.vocabulary-example { color: var(--ink); line-height: 1.55; }
.grammar-tag { width: fit-content; display: inline-flex; padding: .25rem .45rem; margin-top: .3rem; border-radius: 6px; background: #eef8f7; color: var(--intermediate-teal); font-size: .76rem; font-weight: 900; }
.audio-model-button { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid #bad1d0; border-radius: 50%; background: #fff; color: var(--intermediate-navy); cursor: pointer; font-size: 1.1rem; }
.audio-model-button:hover, .audio-model-button.is-playing { border-color: var(--intermediate-teal); background: var(--intermediate-teal); color: #fff; }
.annotated-model { padding: 1rem 1.1rem; background: #f7f9fc; border-left: 5px solid var(--intermediate-gold); border-radius: 8px; color: var(--ink); font-size: 1.02rem; line-height: 1.82; }
.annotated-model mark { padding: .08rem .18rem; border-radius: 4px; color: inherit; }
.model-origin { background: #dfeafa; }
.model-quantity { background: #d9f0e9; }
.model-sensory { background: #fff0c7; }
.model-comparison { background: #f6dfdf; }
.model-recommendation { background: #e8e0f5; }
.annotation-key { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.annotation-item { padding: .85rem; border-right: 1px solid var(--line); }
.annotation-item:last-child { border-right: 0; }
.annotation-item strong { display: block; color: var(--intermediate-navy); }
.annotation-item span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.study-sequence { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: study-step; border-top: 1px solid var(--line); }
.study-step { position: relative; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.study-step:last-child { border-right: 0; }
.study-step::before { counter-increment: study-step; content: counter(study-step, decimal-leading-zero); display: block; color: var(--intermediate-gold); font-weight: 900; }
.study-step strong { display: block; margin: .3rem 0; color: var(--intermediate-navy); }
.study-step span { color: var(--muted); line-height: 1.5; }
.study-audio-status { min-height: 1.5rem; color: var(--intermediate-teal); font-weight: 900; }

.screen-footer { padding: 2rem 1rem; background: var(--intermediate-navy); color: #fff; }
.screen-footer-inner { max-width: 1120px; margin: auto; }
.screen-footer p { margin-bottom: 0; color: rgba(255, 255, 255, .8); }
.institutional-footer { padding: .6rem 1rem; background: #fff; }
.institutional-footer img { display: block; width: min(1274px, 100%); height: auto; margin: auto; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; max-width: min(390px, calc(100vw - 2rem)); padding: 1rem; border-radius: 8px; background: var(--intermediate-navy); color: #fff; box-shadow: var(--shadow); font-weight: 900; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.print-only { display: none; }

@media (max-width: 850px) {
  .exam-nav-links { display: none; }
  .identity-grid { grid-template-columns: 1fr 1fr; }
  .exam-meta { grid-template-columns: 1fr; }
  .meta-item { border-bottom: 1px solid var(--line); }
  .meta-item:last-child { border-bottom: 0; }
  .rubric-strip { grid-template-columns: 1fr 1fr; }
  .rubric-grid { grid-template-columns: 1fr 1fr; }
  .admin-state { align-items: flex-start; flex-direction: column; }
  .admin-state .btn-row { width: 100%; }
  .rubric-item { border-bottom: 1px solid var(--line); }
  .audio-card { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-diagnostic-button { width: 100%; }
  .diagnostic-grid, .annotation-key, .study-sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagnostic-card:nth-child(2n), .annotation-item:nth-child(2n), .study-step:nth-child(2n) { border-right: 0; }
  .feedback-content { grid-template-columns: 1fr; }
  .protected-transcript { max-height: none; overflow: visible; padding-right: 0; }
  .vocabulary-row { grid-template-columns: minmax(150px, .8fr) minmax(0, 1.4fr) auto; }
  .vocabulary-use { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 560px) {
  .exam-hero { min-height: 530px; background-position: 57% center; }
  .exam-hero::before { background: rgba(7, 25, 57, .79); }
  .exam-hero-inner { padding: 3rem 1rem 3.25rem; }
  .hero-copy-wrap, .hero-copy, .exam-hero h1, .eyebrow { max-width: 100%; overflow-wrap: anywhere; }
  .exam-hero h1 { font-size: clamp(1.72rem, 8vw, 1.95rem); line-height: 1.08; }
  .hero-copy { font-size: 1rem; line-height: 1.62; }
  .access-grid, .identity-grid, .rubric-strip, .rubric-grid, .result-grid, .submitted-receipt { grid-template-columns: 1fr; }
  .submitted-receipt strong { grid-column: auto; }
  .rubric-item { border-right: 0; }
  .btn-row { display: grid; grid-template-columns: 1fr; gap: .75rem; width: 100%; }
  .btn-main, .btn-soft, .btn-danger { width: 100%; }
  .audio-speed-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; width: 100%; }
  .speed-label { grid-column: 1 / -1; }
  .speed-btn { min-width: 0; }
  .word-row { flex-direction: column; gap: .2rem; }
  .history-item, .diagnostic-grid, .study-summary-grid, .annotation-key, .study-sequence, .vocabulary-row { grid-template-columns: 1fr; }
  .diagnostic-card, .annotation-item, .study-step, .study-summary-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .history-item { gap: .55rem; }
  .history-diagnostic-button { width: 100%; }
  .vocabulary-use { grid-column: auto; grid-row: auto; }
  .audio-model-button { width: 100%; border-radius: 8px; }
  .study-audio-toolbar, .study-audio-speed { align-items: stretch; }
  .study-audio-toolbar { flex-direction: column; }
  .study-audio-speed { display: grid; grid-template-columns: repeat(3, 1fr); }
}

@page { size: letter; margin: .85in .75in 1.35in; }
@media print {
  body { background: #fff; color: #000; font-family: Arial, sans-serif; font-size: 10.5pt; }
  .exam-nav, .exam-hero, #access, .screen-footer, .btn-row, .status-box, .toast, .audio-card, .review-panel { display: none !important; }
  .institutional-band { position: fixed; top: 0; left: 0; right: 0; height: .5in; padding: 0; border: 0; }
  .institutional-band img { width: 7in; height: .455in; object-fit: fill; }
  .institutional-footer { position: fixed; left: 0; right: 0; bottom: 0; height: 1.18in; padding: 0; transform: translateY(1.18in); }
  .institutional-footer img { width: 7in; height: 1.18in; object-fit: fill; }
  .exam-shell { max-width: none; padding: 0; }
  #examContent[hidden] { display: block !important; }
  .panel, .exam-section { padding: 0; margin: 0 0 .18in; border: 0; border-radius: 0; box-shadow: none; }
  .section-title, .section-kicker, .field label { color: #000; }
  .question-card { break-inside: avoid-page; }
  .writing-area { min-height: 4in; border: 1px solid #777 !important; }
  .print-only { display: block; }
  .print-receipt { margin: .12in 0; padding: .1in; border: 2px solid #000; font-weight: 700; }
}
