:root {
  color-scheme: light;
  --page: #f2ede3;
  --paper: #fcf9f0;
  --surface-muted: #eae2d3;
  --ink: #302d27;
  --muted: #625b4e;
  --primary: #37342e;
  --primary-hover: #4d463a;
  --line: #dfd6c6;
  --grid-line: #92805c1a;
  --line-strong: #a69a86;
  --accent: #a3834b;
  --focus: #806635;
  --good: #14604b;
  --bad: #8b303a;
  --sidebar: 234px;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, "Noto Sans CJK JP", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; background-color: var(--page);
  background-image:
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 28px);
  font: 16px/1.65 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
main:focus, .feedback:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; font-weight: 700; }
h1 { font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.035em; }
h2 { font-size: 1.22rem; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; }
small { font-size: .82rem; }
p { line-height: 1.75; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; left: 1rem; top: 1rem; z-index: 50; background: white; padding: .75rem 1rem; }
.loading { max-width: 40rem; padding: 3rem 1rem; margin: auto; }
.muted, .source, .eyeline { color: var(--muted); }
.source, .eyeline { font-size: .85rem; }
.clean-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.chips, .button-row { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.icon { display: block; width: 21px; height: 21px; flex: none; }
.arrow { font-size: 1.35em; font-family: Arial, sans-serif; line-height: 1; }
.external-mark { flex: 0 0 auto; }

.sidebar { display: none; }
.workspace { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1234px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1rem; min-height: 61px; }
.desktop-context { display: none; }
.brand { display: inline-flex; align-items: center; gap: .61rem; font-weight: 700; color: var(--ink); white-space: nowrap; letter-spacing: -.025em; }
.logo { width: 39px; height: 39px; display: block; border-radius: 10px; flex: 0 0 auto; }
.top-link, .text-link { color: var(--primary); font-weight: 700; }
.top-link { display: flex; align-items: center; gap: .34rem; min-height: 40px; padding: 0 .65rem; border: 1px solid var(--line); border-radius: 9px; white-space: nowrap; font-size: .81rem; }
.text-link:hover { text-decoration: underline; }
.top-link:hover { background: var(--surface-muted); }
.top-link .icon { width: 15px; height: 15px; }
.content { width: 100%; max-width: 1234px; margin: 0 auto; padding: 1.1rem 1rem 2rem; flex: 1; }
.content.focused { max-width: 900px; }
.footer { display: flex; justify-content: space-between; gap: .6rem 1rem; width: 100%; max-width: 1234px; margin: auto auto 0; color: var(--muted); font-size: .76rem; padding: 1rem; flex-wrap: wrap; }
.footer a { display: inline-flex; align-items: center; gap: .35rem; text-underline-offset: 3px; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer .icon { width: 15px; height: 15px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); z-index: 10; background: var(--paper);
  border-top: 1px solid var(--line); padding: 0 .25rem env(safe-area-inset-bottom); }
.bottom-nav a { position: relative; color: var(--muted); display: grid; grid-template-rows: 25px auto;
  justify-items: center; align-content: center; align-items: center; gap: .26rem;
  font-size: clamp(.65rem, 2.85vw, .74rem); min-height: 65px; padding: .4rem 0 .27rem; white-space: nowrap; }
.bottom-nav .icon { width: 25px; height: 25px; }
.icon-accent { fill: var(--surface-muted); }
.bottom-nav a[aria-current] { color: var(--ink); font-weight: 700; }
.bottom-nav a[aria-current] .icon-accent,
.side-nav a[aria-current] .icon-accent { fill: #d5bd86; }
.bottom-nav a[aria-current]::before { content: ""; position: absolute; top: -1px; left: 50%; width: 1.26rem;
  height: 2px; transform: translateX(-50%); border-radius: 0 0 2px 2px; background: var(--accent); }
.bottom-nav a:focus-visible { outline-offset: -3px; }
@media (hover: hover) {
  .bottom-nav a:hover { color: var(--ink); }
}

.hero { display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden;
  min-height: 215px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink);
  box-shadow: 0 6px 22px #3e33220c; }
.hero-photo { position: absolute; z-index: -1; top: 0; right: 0; width: 83%; height: 100%;
  object-fit: cover; object-position: 66% 55%; opacity: .15; filter: grayscale(1); mix-blend-mode: multiply; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #0002 28%, #000 100%); }
.hero-body { min-width: 0; padding: 1.35rem 1.18rem 1.48rem; }
.hero h1 { margin: 0 0 .44rem; font-size: clamp(1.69rem, 7.35vw, 2.65rem); letter-spacing: -.035em; }
.hero p { color: var(--muted); font-size: .87rem; max-width: 39ch; }
.hero-actions { margin-top: 1rem; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.hero-actions .button { min-height: 46px; padding-block: .58rem; }
.hero-actions .icon { width: 17px; height: 17px; }
.hero-resume { display: block; color: var(--muted); margin-top: .65rem; }

.badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 6px; padding: .15rem .55rem;
  font-size: .73rem; line-height: 1.65; font-weight: 700; white-space: nowrap; }
.badge.pale { background: var(--surface-muted); color: var(--primary); }
.badge.correct { background: #e4f5ec; color: var(--good); }
.badge.incorrect { background: #fcebee; color: var(--bad); }

.button { display: inline-flex; min-height: 46px; max-width: 100%; align-items: center; justify-content: center; text-align: center; gap: .35rem; padding: .57rem .94rem; border: 1px solid transparent; border-radius: 9px; font-size: .88rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.primary { background: var(--primary); color: var(--paper); }
.primary:hover:not(:disabled) { background: var(--primary-hover); }
.outline { background: var(--paper); color: var(--primary); border-color: var(--line-strong); }
.outline:hover:not(:disabled) { background: var(--surface-muted); }
.panel { border: 1px solid var(--line); background: var(--paper); border-radius: 13px; }
.home-menu { margin-top: 1.24rem; }
.card-heading h2 { display: flex; align-items: center; gap: .46rem; font-size: .99rem; }
.card-heading h2 .study-mark { width: 27px; height: 27px; }

.home-stats { margin-top: 1.06rem; padding: .96rem .94rem; display: grid; gap: .7rem; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: .24rem .6rem; }
.card-heading .text-link { flex-shrink: 0; font-size: .77rem; padding: .35rem 0; }
.home-stats .progress-overview { grid-template-columns: 1.3fr .9fr; margin: 0; padding: 0; }
.home-stats strong { font-size: clamp(1.1rem, 3.15vw, 1.56rem); }
.progress-overview { display: grid; grid-template-columns: 1.3fr .9fr .9fr; gap: .7rem; margin: .9rem 0 0; padding: 1rem .85rem; align-items: center; }
.progress-overview > div { display: grid; gap: .15rem; min-width: 0; align-self: start; }
.progress-overview > div + div { border-left: 1px solid var(--line); padding-left: .65rem; }
.progress-overview > div > span { font-size: .76rem; color: var(--muted); }
.progress-overview strong { font-variant-numeric: tabular-nums; font-size: clamp(1rem, 4vw, 1.75rem); line-height: 1.28; }
.progress-overview small { font-weight: 600; color: var(--muted); }

progress { width: 100%; height: 7px; border: 0; border-radius: 20px; overflow: hidden; color: var(--primary); background: var(--surface-muted); }
progress::-webkit-progress-bar { background: var(--surface-muted); border-radius: 20px; }
progress::-webkit-progress-value { background: var(--primary); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--primary); border-radius: 20px; }
.progress-overview progress { margin-top: .34rem; }
.block { margin: 1.5rem 0; }
.block > h2, .section-heading { margin-bottom: .8rem; }
.module-grid { display: grid; }
.module { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: .71rem; padding: .72rem .83rem; align-items: center; }
.module:first-child { border-radius: 12px 12px 0 0; }
.module:last-child { border-radius: 0 0 12px 12px; }
.module:not(:last-child) { border-bottom: 1px solid var(--line); }
.module:hover, .qualification-card:hover, .video-card:hover { border-color: var(--line-strong); background: #f7f2e6; }
.home-menu .section-heading { margin-bottom: .65rem; }
.tile-icon { height: 40px; width: 40px; display: grid; place-items: center; color: var(--primary);
  background: var(--surface-muted); border-radius: 8px; }
.module .tile-icon { grid-row: 1 / 3; width: 44px; height: 44px;
  background: transparent; }
.study-mark { width: 37px; height: 37px; flex: none; color: var(--ink); }
.mark-paper { fill: var(--paper); }
.mark-layer { fill: var(--surface-muted); stroke: var(--muted); }
.mark-gold { fill: var(--accent); }
.module strong { grid-column: 2; font-size: .96rem; }
.module .muted { grid-column: 2; font-size: .76rem; }
.module .arrow { grid-column: 3; grid-row: 1 / 3; color: var(--primary); }
.page-heading p { color: var(--muted); font-size: .9rem; margin: .29rem 0 0; }
.page-heading { margin: .55rem 0 1.25rem; }
.card-grid { display: grid; gap: .8rem; }
.qualification-card { display: flex; gap: .9rem; align-items: center; padding: 1rem; }
.qualification-card > div { flex: 1; }
.qualification-card p, .topic-card p, .set-row p { color: var(--muted); font-size: .85rem; margin: .2rem 0; }
.qualification-card .badge { margin-top: .4rem; }
.search { margin: 0 0 1rem; }
.search label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.search input { width: min(100%, 36rem); min-height: 46px; padding: .65rem .85rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 9px; }
.tabs { display: flex; flex-wrap: wrap; gap: .35rem; border-bottom: 1px solid var(--line); margin: 0 0 1rem; }
.tabs a { min-height: 44px; padding: .53rem .6rem; display: flex; align-items: center; border-bottom: 3px solid transparent; color: var(--muted); font-size: .86rem; font-weight: 700; }
.tabs a:hover { color: var(--primary); }
.tabs a[aria-current] { color: var(--primary); border-color: var(--primary); background: var(--surface-muted); border-radius: 8px 8px 0 0; }
.past-exams .page-heading { margin: .8rem 0 1.5rem; }
.past-exams .page-heading h1 { font-size: clamp(1.8rem, 4.1vw, 2.8rem); }
.past-exams .page-heading p { font-size: 1rem; }
.past-exams .tabs { gap: clamp(.25rem, 1.7vw, 1.05rem); margin-bottom: 1.15rem; }
.past-exams .tabs a[aria-current] { background: transparent; border-color: var(--accent); }
.exam-notice { margin: 0 0 1.6rem; padding: .65rem .95rem; background: var(--surface-muted); border: 1px solid var(--line);
  border-radius: 9px; color: var(--muted); font-size: .9rem; }
.exam-year { border-top: 1px solid var(--line-strong); }
.exam-year:last-child { border-bottom: 1px solid var(--line-strong); }
.exam-year h2 { padding: .75rem 0 .15rem; font-size: clamp(1.4rem, 3.1vw, 2.05rem); font-variant-numeric: tabular-nums; }
.exam-year h2 span { font-size: .86em; }
.exam-periods { list-style: none; margin: 0; padding: 0; }
.exam-period { display: grid; align-items: center; grid-template-columns: minmax(5.15rem, 27%) 1fr max-content;
  gap: clamp(.5rem, 2vw, 1.4rem); min-height: 60px; padding: .35rem 0; }
.exam-period + .exam-period { border-top: 1px solid var(--line); }
.exam-month { font-size: clamp(.97rem, 2.4vw, 1.35rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.exam-month small { display: block; color: var(--muted); font-weight: 500; }
.exam-count { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exam-action { background: transparent; color: var(--primary); white-space: nowrap; padding: .5rem .6rem; }
.exam-action:hover { background: var(--surface-muted); }
.exam-action::after { content: ''; width: .43em; height: .43em; border-top: 1.5px solid var(--focus);
  border-right: 1.5px solid var(--focus); transform: rotate(45deg); margin-left: .3em; }
.notice, .empty { background: var(--surface-muted); border: 1px solid var(--line); color: var(--ink); padding: .8rem 1rem; border-radius: 10px; margin: 0 0 1rem; font-size: .9rem; }
.empty { background: var(--paper); }
.empty p { margin-top: .25rem; color: var(--muted); }
.notice.warning { background: #fff4d9; border-color: #f0dba3; color: #6a480d; }
.topic-card { padding: 1rem; display: grid; gap: .6rem; }
.topic-card .button { justify-self: start; }
.set-row, .inline-row, .review-row { display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.set-row, .review-row, .related { padding: .8rem 1rem; }
.related .text-link { width: fit-content; padding: .35rem 0; display: inline-block; }
.related { margin-top: 1.35rem; display: grid; gap: .3rem; }
.advertising { margin-top: 3rem; }
.video-grid { display: grid; grid-template-columns: min(88%, 19rem); justify-content: center; gap: .9rem; }
.video-card { display: grid; grid-template-rows: auto 1fr; width: 100%; height: 100%; padding: 0; text-align: left; color: var(--ink); }
.video-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9;
  border-radius: 12px 12px 0 0; overflow: hidden; background: var(--surface-muted); color: var(--muted); }
.video-thumb .icon { width: 2rem; height: 2rem; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-details { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .75rem .75rem; }
.video-details strong, .review-row strong { font-size: .92rem; display: block; }
.video-type { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .76rem; }
.video-play { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 50%;
  background: var(--surface-muted); color: var(--primary); }
.video-play .icon { width: 16px; height: 16px; }
.video-dialog + p { margin-top: 1rem; }
.video-dialog { width: min(46rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); padding: 0;
  color: var(--ink); box-shadow: 0 14px 42px #211b1540; }
.video-dialog::backdrop { background: #27231de0; }
body:has(.video-dialog[open]) { overflow: hidden; }
.video-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .65rem .85rem; }
.video-dialog-head h2 { font-size: 1rem; }
.video-dialog-head .button { flex: none; }
.video-frame { background: #15130f; }
.video-frame iframe { display: block; width: 100%; min-height: 200px; aspect-ratio: 16 / 9; border: 0; }
.video-dialog-foot { display: flex; justify-content: flex-end; padding-inline: .85rem; }
.video-watch-link { display: inline-flex; align-items: center; min-height: 44px; gap: .3rem; font-size: .83rem; }
.rate-panel { padding: .25rem .9rem; }
.rate-row { display: grid; align-items: center; grid-template-columns: minmax(6rem, .9fr) minmax(2rem, 1.4fr) 2.6rem minmax(3.6rem, auto); gap: .35rem; padding: .7rem 0; font-size: .83rem; }
.rate-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.rate-row small, .rate-row strong { text-align: right; }
.history-row { display: flex; align-items: flex-start; gap: .55rem; padding: .75rem; font-size: .87rem; }
.history-row .badge { flex: none; }
.history-row small { color: var(--muted); display: block; margin-top: .25rem; }
.data-card { padding: 1rem; margin: 0 0 .9rem; }
.data-card p { margin: .55rem 0; max-width: 62ch; color: var(--muted); }
.data-card .button-row { margin-top: .95rem; }

.practice-back { display: inline-flex; align-items: center; min-height: 42px; font-size: .9rem; }
.quiz-meta { display: flex; align-items: center; gap: .7rem; justify-content: space-between; font-size: .92rem; }
.quiz-meta > strong { white-space: nowrap; }
.quiz-progress { display: block; margin: .55rem 0 .9rem; }
.quiz { padding: 1.05rem; box-shadow: 0 8px 28px #3e33220c; }
.quiz-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.quiz-top .chips { padding-top: .43rem; }
.question-prompt { margin: .75rem 0 1.15rem; }
.question-instruction { max-inline-size: 40em; white-space: pre-line; line-height: 1.65; font-weight: 680;
  font-size: clamp(1.02rem, 2.2vw, 1.23rem); letter-spacing: 0; }
.question-instruction.long, .question-body p { font-weight: 450; font-size: clamp(.98rem, 2vw, 1.08rem); line-height: 1.85; }
.question-body { margin-top: .68rem; padding: .72rem .85rem; border-inline-start: 3px solid var(--accent);
  border-radius: 3px 8px 8px 3px; background: #f6f1e6; }
.question-body p { max-inline-size: 26em; white-space: pre-line; }
.question-body p + p { margin-top: .8em; }
.question-prompt mark { display: inline-block; padding-inline: .08em; white-space: nowrap; border-radius: 4px;
  background: #eee5d2; color: var(--ink); font-weight: 680; }
.favorite { display: grid; flex: 0 0 44px; place-items: center; min-height: 44px; align-self: start; border: 1px solid var(--line); background: var(--paper); color: var(--primary); border-radius: 9px; font-size: 1.38rem; line-height: 1; }
.favorite[aria-pressed="true"] { color: #805407; background: #fff3d3; border-color: #e5cd92; }
.statements { margin: 0 0 1.2rem; padding-inline: .32rem; border-block: 1px solid var(--line); }
.statements div { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); align-items: baseline; gap: .55rem;
  padding-block: .58rem; font-size: .94rem; }
.statements div + div { border-top: 1px solid var(--line); }
.statements dt { color: var(--muted); font-size: .87rem; font-weight: 750; }
.statements dd { margin: 0; }
.figure { margin: 0 0 .9rem; }
.figure img { display: block; max-width: 100%; max-height: 330px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; }
.figure figcaption { margin: .45rem 0 0; font-size: .8rem; color: var(--muted); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset legend { margin: 0 0 .6rem; padding: 0; font-size: .83rem; color: var(--muted); }
.choices { display: grid; gap: .55rem; }
.choice { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .55rem; align-items: start; padding: .65rem; min-height: 54px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; line-height: 1.65; }
.choice input { accent-color: var(--primary); width: 16px; height: 16px; margin: .34rem 0 0; }
.choice-number { display: grid; place-items: center; font-size: .78rem; font-weight: 750; width: 1.65rem; height: 1.65rem; border-radius: 100%; color: var(--primary); background: var(--surface-muted); }
.choice:hover { border-color: var(--line-strong); background: #f7f2e6; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--surface-muted); }
.choice:has(input:checked) .choice-number { color: white; background: var(--primary); }
.choice.choice-correct .choice-number { color: white; background: var(--good); }
.choice.choice-incorrect .choice-number { color: white; background: var(--bad); }
.choice.choice-correct { color: var(--good); background: #edf8f1; border-color: #73ab98; }
.choice.choice-incorrect { color: var(--bad); background: #fff1f2; border-color: #dc9ca6; }
fieldset:disabled .choice { cursor: default; }
.choice-parts { display: flex; flex-wrap: wrap; gap: .25rem .7rem; }
.choice-parts b { font-size: .8rem; margin-right: .15rem; }
.choice-tag { font-size: .77rem; grid-column: 3; font-weight: 800; }
.quiz-actions { display: flex; justify-content: flex-end; margin-top: .85rem; }
.quiz-actions .button { width: 100%; }
.practice-ad { margin-block-start: 1.5rem; }
.practice-ad-slot { min-block-size: 100px; }
.practice-ad-slot:has(> span) {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: .78rem;
}
.feedback { margin-top: 1.05rem; border-radius: 9px; padding: .8rem .9rem; }
.feedback h2 { margin-bottom: .28rem; }
.feedback small { margin-left: .45rem; }
.feedback p { font-size: .93rem; }
.feedback-correct { background: #e8f6ee; color: var(--good); }
.feedback-incorrect { background: #fbecef; color: var(--bad); }
.source { margin-top: .65rem; }
.result-page { display: grid; gap: .7rem; padding: 1.45rem; }
.score { color: var(--primary); font-size: 2.5rem; line-height: 1.2; font-weight: 820; }
.score span { color: var(--muted); font-size: 1rem; font-weight: 650; }
.answer-review { margin-top: .35rem; min-width: 0; }
.answer-review summary { min-height: 44px; padding: .65rem .8rem; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface-muted); color: var(--ink); font-size: .92rem; font-weight: 700; cursor: pointer; }
.answer-review summary:hover { border-color: var(--focus); }
.answer-review-list { gap: 0; margin-top: 1rem; }
.answer-review-item { padding: 1.05rem 0; border-top: 1px solid var(--line); }
.answer-review-item:last-child { padding-bottom: 0; }
.answer-review-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.answer-review-heading h2 { font-size: 1.04rem; }
.answer-review-pair { margin: 0 0 .8rem; border-block: 1px solid var(--line); }
.answer-review-pair > div { display: grid; grid-template-columns: 5.1rem minmax(0, 1fr); gap: .42rem; padding: .55rem 0; }
.answer-review-pair > div + div { border-top: 1px solid var(--line); }
.answer-review-pair dt { color: var(--muted); font-size: .8rem; font-weight: 700; }
.answer-review-pair dd { display: flex; align-items: baseline; gap: .5rem; margin: 0; font-size: .9rem; }
.answer-number { flex: none; color: var(--primary); font-weight: 720; white-space: nowrap; }
.answer-review-explanation { padding: .65rem .78rem; border-left: 2px solid var(--accent); background: #f6f1e6; }
.answer-review-explanation h3 { margin-bottom: .23rem; font-size: .91rem; }
.answer-review-explanation p, .answer-review-old-prompt { font-size: .92rem; white-space: pre-line; }
.answer-review-item > .muted { margin-top: .55rem; font-size: .85rem; }

@media (min-width: 570px) {
  .top-inner, .content, .footer { padding-left: 1.6rem; padding-right: 1.6rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 19rem)); justify-content: start; }
  .progress-overview { padding: 1rem 1.2rem; }
  .progress-overview > div + div { padding-left: 1.1rem; }
  .quiz { padding: 1.35rem; }
}
@media (min-width: 680px) {
  .exam-year { display: grid; grid-template-columns: minmax(8.5rem, 20%) minmax(0, 1fr); align-items: center; }
  .exam-year h2 { padding: .5rem .75rem; }
  .exam-period { grid-template-columns: minmax(8rem, 20%) 1fr max-content; min-height: 66px; padding-inline: 1rem; }
  .exam-action { font-size: .97rem; }
  .hero { min-height: 241px; }
  .hero-photo { width: 69%; opacity: .18; object-position: 67% 52%;
    mask-image: linear-gradient(90deg, transparent, #0005 26%, #000 78%); }
  .hero-body { padding: 1.7rem 1.62rem; }
  .hero h1 { font-size: clamp(1.72rem, 4vw, 3rem); }
  .hero-actions { margin-top: 1.15rem; }
  .home-stats { padding: .91rem 1.13rem; grid-template-columns: minmax(7.8rem, .48fr) minmax(0, 1.5fr); align-items: center; }
  .card-heading { align-items: flex-start; flex-direction: column; justify-content: center; }
  .home-stats .progress-overview { border-left: 1px solid var(--line); padding-left: 1rem; }
}
@media (min-width: 800px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 19rem)); }
}
@media (min-width: 920px) {
  .past-exams .page-heading { margin: 1.1rem 0 1.8rem; }
  .past-exams .page-heading h1 { font-size: clamp(2.5rem, 3.3vw, 3.25rem); }
  .past-exams .page-heading p { font-size: 1.05rem; }
  .past-exams .tabs a { font-size: .96rem; }
  .exam-notice { font-size: .94rem; }
  .exam-year h2 { font-size: 2.3rem; }
  .exam-period { min-height: 74px; }
  .exam-month { font-size: 1.47rem; }
  .exam-count, .exam-action { font-size: 1.03rem; }
  .sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar);
    padding: 1.06rem .9rem; background: var(--paper); border-right: 1px solid var(--line); color: var(--muted); overflow-y: auto; }
  .sidebar .brand { margin: .05rem .5rem 1.65rem; font-size: 1.02rem; }
  .qualification-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--line);
    border-radius: 11px; padding: .65rem .75rem; margin-bottom: 1.13rem; background: var(--page); }
  .qualification-switch > span:first-child { font-size: .71rem; }
  .qualification-switch strong { color: var(--ink); font-size: .87rem; grid-column: 1; }
  .qualification-switch .arrow { grid-row: 1 / 3; grid-column: 2; align-self: center; }
  .side-nav { display: grid; gap: .23rem; }
  .side-nav a { display: flex; align-items: center; min-height: 45px; gap: .65rem; padding: .5rem .72rem;
    border-radius: 8px; font-size: .87rem; font-weight: 610; }
  .side-nav a:hover, .qualification-switch:hover { background: var(--surface-muted); color: var(--primary); }
  .side-nav a[aria-current] { background: var(--surface-muted); box-shadow: inset 3px 0 var(--primary);
    font-weight: 740; color: var(--primary); }
  .side-foot { margin: auto .4rem 0; font-size: .74rem; display: flex; align-items: center; gap: .43rem;
    border-top: 1px solid var(--line); padding-top: .85rem; }
  .side-foot .icon { width: 17px; height: 17px; color: var(--primary); }
  .workspace { margin-left: var(--sidebar); padding-bottom: 0; }
  .bottom-nav, .mobile-brand { display: none; }
  .desktop-context { display: inline; color: var(--muted); font-size: .87rem; font-weight: 720; }
  .top-inner, .content, .footer { padding-left: 2rem; padding-right: 2rem; }
  .content { padding-top: 1.6rem; }
  .hero { min-height: clamp(245px, 19vw, 282px); }
  .hero-photo { width: 73%; }
  .hero-body { padding: 1.82rem clamp(1.45rem, 3vw, 2.75rem); }
  .hero p { font-size: .98rem; }
  .progress-overview { margin-top: 1.1rem; padding: 1.05rem 1.3rem; }
  .module { padding: .73rem 1rem; }
  .module strong { font-size: .99rem; }
  .module .muted { font-size: .8rem; }
  .quiz { padding: 1.65rem; }
}
@media (min-width: 1000px) {
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .module { padding-block: .92rem; }
  .module:not(:last-child) { border-bottom: 0; border-right: 1px solid var(--line); }
  .module:first-child { border-radius: 12px 0 0 12px; }
  .module:last-child { border-radius: 0 12px 12px 0; }
}
@media (min-width: 1180px) {
  .video-grid { grid-template-columns: repeat(4, minmax(0, 19rem)); }
}
@media (max-width: 340px) {
  .rate-row { grid-template-columns: minmax(4rem, 1fr) 1fr 2.4rem 3.35rem; }
  .top-link { font-size: .75rem; padding-inline: .45rem; }
  .top-link .icon { display: none; }
  .brand { gap: .44rem; font-size: .92rem; }
  .logo { width: 35px; height: 35px; }
}
