.exam-layout { display: grid; gap: 16px; }
.exam-plan {
  display: grid; grid-template-columns: minmax(145px,1fr) minmax(124px,.7fr) max-content;
  align-items: center; gap: 18px; padding: 17px 19px;
  background: linear-gradient(105deg,#edf3ff,#fff 75%);
}
.exam-date { display: flex; align-items: center; gap: 9px; }
.exam-date .glyph { width: 44px; height: 44px; border-radius: 12px; }
.exam-date h2 { font-size: 17px; line-height: 1.3; }
.exam-date p, .exam-progress { color: var(--muted); font-size: 13px; }
.exam-date p { margin-top: 3px; }
.exam-progress .progress-track { margin-top: 5px; }
.exam-history { max-width: 180px; }

.exam-tabs {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px;
  padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.exam-tabs button {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 45px;
  padding: 6px 4px; border: 0; border-radius: 9px; background: transparent;
  color: #4d5c78; font-size: 15px; font-weight: 670;
  transition: background .18s, color .18s, transform .18s var(--ease);
}
.exam-tabs button:hover { background: #f6f8fd; color: var(--blue-deep); }
.exam-tabs button:active { transform: scale(.983); }
.exam-tabs button[aria-selected="true"] { background: #eaf0ff; color: #204bcb; }
.exam-tabs button small { color: inherit; opacity: .83; font-size: 12px; font-variant-numeric: tabular-nums; }

.exam-panel { min-width: 0; }
.exam-passage-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.exam-passage-controls button {
  display: grid; gap: 4px; min-height: 53px; padding: 9px 13px; border: 1px solid var(--line);
  border-radius: 11px; text-align: left; background: #fff; color: #2d4269; font-weight: 690;
  transition: background .18s, border-color .18s, color .18s;
}
.exam-passage-controls small { font-size: 12px; font-weight: 590; color: var(--muted); }
.exam-passage-controls button:hover { border-color: #b5c8fa; }
.exam-passage-controls button[aria-pressed="true"] { background: #e9f0ff; border-color: #bfd1ff; color: #2148b8; }
.exam-reading-layout {
  display: grid; grid-template-columns: minmax(0,1.14fr) minmax(0,1fr); gap: 13px; align-items: start;
}
.exam-reader, .exam-passage { min-width: 0; padding: clamp(14px,2.3vw,26px); }
.exam-reader h2 { font-size: clamp(22px,3vw,31px); letter-spacing: -.035em; line-height: 1.25; margin: 5px 0 13px; }
.exam-prose { color: #283a57; font-size: 16px; line-height: 1.77; }
.exam-prose p + p { margin-top: 12px; }
.exam-paragraph-number {
  display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 7px;
  border-radius: 6px; background: #edf2fd; color: #526a9a; font-size: 12px; font-weight: 700;
}
.exam-prose p { border-radius: 7px; transition: background .18s, box-shadow .18s; }
.exam-prose p.exam-evidence { background: #fff1cd; box-shadow: 0 0 0 5px #fff1cd; }
.exam-task h2 { font-size: clamp(21px,3vw,28px); letter-spacing: -.03em; line-height: 1.34; }
.exam-meta { color: #4c649c; font-size: 13px; font-weight: 650; }
.exam-passage h2 { margin-bottom: 5px; font-size: 19px; line-height: 1.45; }
.exam-questions { display: grid; gap: 16px; margin-top: 14px; }
.exam-question { min-width: 0; margin: 0; padding: 0; border: 0; scroll-margin-top: 15px; }
.exam-question legend { width: 100%; padding: 0; font-size: 15px; line-height: 1.5; }
.exam-question legend span {
  display: inline-grid; place-items: center; width: 27px; min-height: 23px; margin-right: 7px;
  border-radius: 6px; background: #eaf0ff; color: #204bcb; font-size: 12px; font-weight: 730;
}
.exam-choice {
  position: relative; display: flex; align-items: baseline; gap: 8px; margin-top: 6px;
  padding: 8px 9px; border: 1px solid #dee6f6; border-radius: 8px;
  background: #fafbff; color: #253958; font-size: 14px; line-height: 1.45;
  cursor: pointer; transition: background .18s, border-color .18s;
}
.exam-choice input { position: absolute; top: 8px; left: 9px; width: 17px; height: 17px; margin: 0; opacity: 0; }
.exam-choice-letter { width: 15px; flex: none; color: #48618f; font-weight: 750; }
.exam-choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.exam-choice:has(input:enabled):hover { border-color: #afc4ff; }
.exam-choice:has(input:enabled:checked) { background: #edf2ff; border-color: #a6bcfb; }
.exam-choice:has(input:disabled) { cursor: default; }
.exam-choice[data-result="correct"] { background: #edf9f3; border-color: #aadacb; color: #0b684f; }
.exam-choice[data-result="wrong"] { background: #fff1f3; border-color: #efb6bc; color: #903641; }
.exam-explanation {
  margin: 8px 0 0; padding: 8px 9px; border-radius: 7px;
  background: #f3f6fc; color: #435a80; font-size: 13px; line-height: 1.6;
}
.exam-explanation strong { color: #2549ac; margin-right: 3px; }
.exam-reading-coach { margin-top: 7px; border-top: 1px solid #dae4f9; }
.exam-reading-coach summary, .exam-translation-step summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer; list-style: none; color: #2549ac; font-weight: 710;
}
.exam-reading-coach summary { padding: 7px 0 1px; }
.exam-reading-coach summary::-webkit-details-marker, .exam-translation-step summary::-webkit-details-marker { display: none; }
.exam-reading-coach summary svg, .exam-translation-step summary svg { transition: transform .18s var(--ease); }
.exam-reading-coach[open] summary svg, .exam-translation-step[open] summary svg { transform: rotate(180deg); }
.exam-coach-steps { display: grid; gap: 8px; margin: 9px 0; }
.exam-coach-steps dt { color: #2b446e; font-weight: 700; }
.exam-coach-steps dd { margin: 2px 0 0; }
.exam-locate, .exam-evidence-back {
  padding: 5px 8px; min-height: 31px; border: 1px solid #b8caf7; border-radius: 6px;
  color: #2549ac; background: #fff; font-size: 12px; font-weight: 700;
}
.exam-locate:hover, .exam-evidence-back:hover { background: #eaf1ff; }
.exam-evidence-back { display: block; margin: 5px 0 2px; }
.exam-reading-coach h3 { margin: 10px 0 4px; color: #2b446e; font-size: 13px; }
.exam-distractors { padding: 0; margin: 0; list-style: none; }
.exam-distractors li + li { margin-top: 3px; }
.exam-distractors b { color: #8a374b; margin-right: 2px; }
.exam-coach-reminder { margin-top: 9px; padding: 6px 8px; border-radius: 6px; background: #eaf0ff; color: #334d7c; }
.exam-coach-reminder strong { margin-right: 3px; color: #2549ac; }
.exam-legacy { padding: 12px 14px; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.exam-legacy summary { color: var(--ink); cursor: pointer; font-weight: 650; }
.exam-legacy p { margin-top: 7px; }
.exam-sheet-actions { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 13px; }
.exam-score { color: #334b74; font-size: 14px; }
.exam-score strong { color: var(--blue-deep); }
.exam-sheet-help { margin: 0 1px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.exam-sheet-help kbd { font-family: inherit; color: #234fcf; font-weight: 750; }

.exam-task { padding: clamp(17px,3vw,29px); }
.exam-task > header > p { margin-bottom: 5px; }
.exam-prompt { font-size: 16px; color: #263752; line-height: 1.82; margin: 11px 0 18px; }
.exam-translation-grid, .exam-writing { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; align-items: start; }
.exam-translation-coach { margin-bottom: 17px; }
.exam-translation-coach h3 { margin: 0; color: #213b65; font-size: 17px; }
.exam-translation-method { margin: 6px 0 11px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.exam-translation-step { margin-top: 6px; border: 1px solid #dce6f9; border-radius: 9px; background: #f8faff; }
.exam-translation-step summary { min-height: 43px; padding: 8px 11px; font-size: 14px; line-height: 1.5; }
.exam-translation-step summary b {
  display: inline-grid; place-items: center; min-width: 20px; min-height: 20px; margin-right: 7px;
  border-radius: 5px; background: #e7efff; font-size: 12px;
}
.exam-translation-step-body { padding: 2px 11px 11px; font-size: 14px; line-height: 1.63; color: #3c5176; }
.exam-translation-step-body strong { color: #253e67; margin-right: 3px; }
.exam-translation-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 8px 0; }
.exam-translation-comparison > div { min-width: 0; padding: 8px; border-radius: 6px; background: #eef3ff; }
.exam-translation-comparison dt { color: #2549ac; font-size: 12px; font-weight: 750; }
.exam-translation-comparison dd { margin: 3px 0 0; color: #223b65; overflow-wrap: anywhere; }
.exam-translation-check { margin-top: 12px; color: #405577; font-size: 14px; line-height: 1.6; }
.exam-translation-check h3 { font-size: 15px; }
.exam-translation-check ul { margin: 4px 0 0; padding-left: 20px; }
.exam-answer { border: 1px solid #dce6ff; border-radius: 12px; background: #f6f8ff; }
.exam-answer summary {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 14px;
  cursor: pointer; color: #2549ac; font-size: 15px; font-weight: 740; list-style: none;
}
.exam-answer summary::-webkit-details-marker { display: none; }
.exam-answer summary svg { transition: transform .18s var(--ease); }
.exam-answer[open] summary svg { transform: rotate(180deg); }
.exam-answer p, .exam-model p { font-size: 16px; color: #273654; line-height: 1.72; }
.exam-answer p { margin: 0 14px 14px; }
.exam-tip {
  margin-top: 15px; padding: 12px 14px; border-radius: 10px;
  color: #4a5e83; background: #f4f7fd; font-size: 14px; line-height: 1.65;
}
.exam-tip strong { color: #2447ab; margin-right: 5px; }
.exam-task-footer { display: flex; justify-content: end; margin-top: 16px; }
.exam-writing { grid-template-columns: minmax(0,1.34fr) minmax(0,1fr); }
.exam-model, .exam-patterns { padding: 15px; border-radius: 13px; background: #f8faff; border: 1px solid var(--line); }
.exam-model > header { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.exam-model > header > span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.exam-writing h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.exam-model p + p { margin-top: 10px; }
.exam-model p { white-space: pre-line; }
.exam-patterns ul { padding: 0; margin: 10px 0 0; list-style: none; }
.exam-patterns li { padding: 9px 0; border-top: 1px solid #e2e9fb; }
.exam-patterns li:last-child { padding-bottom: 0; }
.exam-patterns li > strong { display: block; color: #2549ac; font-size: 13px; }
.exam-patterns li p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 4px; }
.exam-patterns li .exam-pattern-frame { font-size: 15px; font-weight: 620; color: #263752; white-space: pre-line; }

@media (max-width: 1010px) {
  .exam-reading-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 845px) and (min-width: 731px), (max-width: 620px) {
  .exam-writing, .exam-translation-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .exam-layout { gap: 11px; }
  .exam-plan { grid-template-columns: minmax(0,1fr) auto; gap: 7px 10px; padding: 12px; }
  .exam-progress { grid-column: 1/-1; grid-row: 2; }
  .exam-history { grid-column: 2; grid-row: 1; max-width: 122px; }
  .exam-history select { font-size: 12px; }
  .exam-date { gap: 6px; }
  .exam-date h2 { font-size: 14px; }
  .exam-date .glyph { width: 31px; height: 31px; }
  .exam-tabs button { font-size: 13px; gap: 4px; }
  .exam-tabs button svg { width: 16px; height: 16px; }
  .exam-tabs button small { font-size: 11px; }
  .exam-translation-comparison { grid-template-columns: 1fr; }
}
