@font-face {
  font-family: 'Noto Study'; src: url('/fonts/noto-sans-kr.woff2') format('woff2'); font-style: normal; font-weight: 400 700; font-display: swap;
}
@font-face {
  font-family: Newsreader; src: url('/fonts/newsreader.woff2') format('woff2'); font-style: normal; font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: Arimo; src: url('/fonts/arimo.woff2') format('woff2'); font-style: normal; font-weight: 400 700; font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #faf9f5; --sheet: #fffefb; --ink: #25261f; --muted: #5d6053;
  --line: #d9d8cd; --input: #878a79; --soft: #efeee6; --cover: #e8e8db;
  --accent: #535941; --fill: #545a42; --fill-hover: #414733; --on-fill: #fffef7;
  --focus: #535941; --good: #33553c; --good-fill: #edf1e7; --bad: #8a3f35; --bad-fill: #f6ebe6;
  --serif: Newsreader, Georgia, serif; --sans: 'Noto Study', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  /* ETS public sample pp. 11–12: ArialMT for questions, Helvetica for the Part 6 passage. */
  --exam: Arial, Arimo, sans-serif; --exam-passage: Helvetica, Arial, Arimo, sans-serif;
  --width: 1120px; --pad: clamp(20px, 4vw, 48px);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #22231f; --sheet: #282a24; --ink: #eeeee4; --muted: #babdae;
  --line: #474a40; --input: #858a76; --soft: #30342a; --cover: #35382f;
  --accent: #d0d5b8; --fill: #c2c8aa; --fill-hover: #d2d7bc; --on-fill: #24271d;
  --focus: #c4cba7; --good: #c4ddb8; --good-fill: #303b2c; --bad: #ffb9ac; --bad-fill: #452f2b;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 15px/1.65 var(--sans); color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .45; }
:where(button,input,select,summary,a):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1,h2,h3,h4,p,dl,dd,figure { margin: 0; }
h1,h2,h3 { line-height: 1.25; letter-spacing: -.045em; font-weight: 650; word-break: keep-all; overflow-wrap: anywhere; }
h2 { font-size: 19px; } h3 { font-size: 17px; }
p { overflow-wrap: anywhere; } b,strong { font-weight: 650; }
svg { display: block; width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
em { font-style: normal; color: var(--accent); font-variant-numeric: tabular-nums; }
.skip { position: fixed; z-index: 3; inset: 10px auto auto 10px; background: var(--sheet); padding: 10px; color: var(--ink); transform: translateY(-170%); }
.skip:focus { transform: none; }
.loading { max-width: var(--width); margin: 60px auto; padding-inline: var(--pad); }
.top { border-bottom: 1px solid var(--line); }
.top-inner { max-width: var(--width); min-height: 68px; padding-inline: var(--pad); margin: auto; display: flex; gap: 22px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0; background: transparent; border: 0; font: 550 26px/.95 var(--serif); letter-spacing: -.065em; white-space: nowrap; }
.brand img { display: block; width: 27px; height: 27px; }
.brand-rc { font: 600 12px/1 var(--sans); letter-spacing: .015em; }
.top nav { display: flex; align-self: stretch; gap: clamp(7px,2vw,24px); margin-left: clamp(6px,3vw,38px); }
.top nav button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 0; box-shadow: inset 0 -2px transparent; padding: 0 3px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 550; white-space: nowrap; }
.top nav button[aria-current] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px var(--accent); }
.top nav button:hover:not([aria-current]) { color: var(--ink); box-shadow: inset 0 -1px var(--input); }
.top nav svg { display: none; }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.icon-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); }
.icon-button:hover { background: var(--soft); color: var(--ink); }
.icon-button svg { width: 18px; height: 18px; }
.userid { max-width: 132px; font-size: 13px; color: var(--muted); margin-inline-end: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page { max-width: var(--width); margin: auto; padding: 53px var(--pad) 64px; outline: none; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.page-head h1,.desk-head h1 { font-size: clamp(31px,4.1vw,47px); line-height: 1.16; padding-block-end: 8px; }
.section-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.badge { display: inline-block; flex: none; border-radius: 3px; padding: 3px 7px; font-size: 11px; line-height: 1.5; background: var(--soft); color: var(--muted); white-space: nowrap; }
.badge.good { color: var(--good); background: var(--good-fill); }
.badge.bad { color: var(--bad); background: var(--bad-fill); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 7px 13px; font-size: 13px; font-weight: 600; line-height: 1.4; border: 1px solid transparent; border-radius: 5px; text-align: center; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.btn.primary:hover:enabled { background: var(--fill-hover); border-color: var(--fill-hover); }
.btn.secondary { background: transparent; border-color: var(--input); }
.btn.secondary:hover:enabled { background: var(--soft); }
.btn.link { padding-inline: 2px; background: transparent; color: var(--accent); }
.btn.link:hover:enabled { text-decoration: underline; text-underline-offset: 4px; }
select,.auth-panel input,.word-search input { width: 100%; min-height: 46px; background: var(--sheet); border: 1px solid var(--input); border-radius: 5px; padding: 8px 11px; }
input::placeholder { color: var(--muted); opacity: 1; }
.view-auth { max-width: 1030px; display: grid; grid-template-columns: 1.1fr minmax(0, .85fr); align-items: center; gap: clamp(38px,7vw,96px); padding-top: clamp(43px,8vh,88px); }
.welcome { background: var(--cover); padding: clamp(22px,4vw,38px); min-width: 0; }
.cover-index { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--input); padding-bottom: 9px; font-size: 10px; letter-spacing: .12em; font-weight: 600; color: var(--accent); }
.welcome h1 { font: 450 clamp(58px,7.3vw,100px)/.9 var(--serif); letter-spacing: -.065em; margin-block: 29px 17px; }
.welcome h1 span { color: var(--accent); }
.welcome p { font-size: 14px; color: var(--muted); word-break: keep-all; }
.proof { margin-top: 23px; }
.proof svg { width: 100%; height: auto; overflow: visible; }
.proof-rules { stroke: var(--input); opacity: .55; }
.proof-numbers { fill: var(--accent); font: 430 24px var(--serif); letter-spacing: -.04em; }
.proof-copy { stroke: var(--input); stroke-linecap: round; opacity: .7; }
.proof-accent { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.proof-bubbles { stroke: var(--input); } .proof-bubbles .proof-filled { fill: var(--fill); stroke: var(--fill); }
.auth-panel { min-width: 0; }
.auth-panel h2 { font-size: 30px; margin-bottom: 7px; }
.auth-panel>p { font-size: 14px; }
.switch { display: flex; gap: 21px; border-bottom: 1px solid var(--line); margin: 20px 0; }
.switch button { min-height: 44px; padding: 0 2px; background: transparent; border: 0; color: var(--muted); font-size: 14px; }
.switch button[aria-pressed='true'] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px var(--accent); }
.auth-panel label,.settings label { display: block; font-size: 13px; font-weight: 650; margin: 12px 0 5px; }
.auth-panel label span { font-weight: 400; }
.pin-field { position: relative; }
.pin-field input { padding-inline-end: 49px; }
.pin-field .icon-button { position: absolute; inset: 1px 1px auto auto; }
.auth-submit { width: 100%; margin-top: 18px; min-height: 48px; justify-content: space-between; }
.auth-submit svg { margin-left: auto; }
.auth-note,.form-error { margin-top: 12px; color: var(--muted); }
.form-error { color: var(--bad); font-size: 13px; }
.desk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 20px; border-bottom: 1px solid var(--input); padding: 0 0 24px; margin: 0 0 26px; }
.desk-label { margin-bottom: 9px; font-size: 10px; color: var(--accent); font-weight: 650; letter-spacing: .12em; }
.desk-label span { padding-inline: 2px; }
.desk-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.desk-count b { color: var(--ink); }
.desk-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(215px,1fr); gap: clamp(27px,5vw,67px); }
.desk-section { font-size: 16px; letter-spacing: -.027em; }
.desk-practice>.desk-section { margin-bottom: 12px; }
.desk-aside { align-self: stretch; border-inline-start: 1px solid var(--line); padding-inline-start: clamp(19px,3vw,36px); }
.quick,.mode-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 12px 10px 11px 3px; }
.quick { align-items: start; padding-block: 16px 17px; }
.quick-content { grid-column: 2/-1; }
.quick h3 { font-size: 19px; margin-block-end: 4px; }
.quick p,.mode-copy>span { font-size: 13px; }
.quick-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 11px; }
.quick-actions .primary { flex-direction: row-reverse; }
.mode-list { border-bottom: 1px solid var(--line); }
.mode-row { min-height: 67px; }
.mode-row:hover,.record-row:hover,.type-stat:hover,.weak-row:hover { background: var(--soft); }
.mode-index { font: 440 25px/1.05 var(--serif); color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.mode-copy { display: grid; gap: 1px; }
.mode-copy b { font-size: 16px; }
.mode-copy>span,.mode-row>svg { color: var(--muted); }
.mode-row svg,.record-row>svg,.type-stat>svg,.weak-row svg { width: 16px; height: 16px; }
.snapshot .btn { font-size: 12px; }
.completion-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 9px 0 7px; font-size: 13px; color: var(--muted); }
.completion-row b,.snapshot-keys dd { color: var(--ink); font-variant-numeric: tabular-nums; }
.completion-row b span { color: var(--muted); font-weight: 400; }
progress { appearance: none; width: 100%; height: 4px; display: block; min-width: 0; overflow: hidden; border: 0; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--fill); }
progress::-moz-progress-bar { background: var(--fill); }
.snapshot-keys { margin-top: 14px; }
.snapshot-keys div { display: flex; min-height: 40px; align-items: center; justify-content: space-between; text-align: right; gap: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.snapshot-keys dt { color: var(--muted); text-align: left; }
.snapshot-keys dd { font-weight: 600; }
.focus-panel { margin-top: 28px; }
.focus-panel p { margin-top: 10px; font-size: 13px; }
.weak-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line); width: 100%; background: transparent; text-align: left; }
.weak-row b { display: block; font-size: 13px; }
.weak-row small,.weak-row span:last-child { color: var(--muted); white-space: nowrap; }
.weak-row span:last-child { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; }
.resume { padding: 10px 12px; margin-bottom: 21px; background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.resume div { min-width: 0; display: grid; }
.resume span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.resume button { flex: none; }
/* Records and notebook */
.panel { min-width: 0; }
.list-panel { border-block: 1px solid var(--line); }
.list-head { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-head p { font-size: 13px; margin-top: 2px; }
.filters { display: flex; gap: 7px; }
.filters select { font-size: 13px; width: auto; min-width: 0; }
.record-row,.type-stat { width: 100%; display: grid; text-align: left; align-items: center; gap: 10px; border: 0; background: transparent; min-height: 62px; padding: 9px 9px 9px 1px; }
.record-row { grid-template-columns: auto minmax(0,1fr) auto auto; }
.record-row.history { grid-template-columns: minmax(0,1fr) auto auto; }
.record-row+.record-row,.type-stat+.type-stat { border-top: 1px solid var(--line); }
.record-text { display: grid; gap: 2px; min-width: 0; }
.record-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.record-text small { color: var(--muted); overflow-wrap: anywhere; }
.qnumber { width: 50px; font: 530 25px/.95 var(--serif); font-variant-numeric: lining-nums; }
.qnumber small { color: var(--muted); font: 400 10px/1 var(--sans); margin-left: 2px; }
.empty { display: grid; justify-items: start; gap: 3px; padding: 21px 0 25px; }
.empty p,.pager span { color: var(--muted); font-size: 13px; }
.empty .btn { margin-top: 7px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 13px; padding-block: 10px; border-top: 1px solid var(--line); }
.summary-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); margin-bottom: 22px; }
.summary-strip:has(>div:nth-child(3):last-child) { grid-template-columns: repeat(3,minmax(0,1fr)); }
.summary-strip>div { display: grid; gap: 4px; padding: 12px 15px; }
.summary-strip>div+div { border-inline-start: 1px solid var(--line); }
.summary-strip span,.summary-strip small { font-size: 12px; color: var(--muted); }
.summary-strip strong { font-size: clamp(17px,3vw,25px); font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,4vw,48px); align-items: start; }
.type-stat { grid-template-columns: minmax(0,1fr) auto auto; }
.type-stat>span { display: grid; gap: 2px; }
.type-stat>span:nth-child(2) { text-align: right; }
.type-stat small { color: var(--muted); font-size: 11px; }
.type-stat b { font-size: 13px; overflow-wrap: anywhere; }
.words-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 9px 20px; }
.word-search { display: grid; width: min(100%,300px); font-size: 12px; gap: 4px; }
.word-search>span { display: grid; align-items: center; }
.word-search svg,.word-search input { grid-area: 1/1; }
.word-search svg { margin-left: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; z-index: 1; }
.word-search input { padding-left: 34px; font-size: 16px; }
.word-list { list-style: none; padding: 0; margin: 0; }
.word-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px 15px; padding: 9px 3px 9px 0; }
.word-row+.word-row { border-top: 1px solid var(--line); }
.word-copy { min-width: 0; }
.word-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; }
.word-title strong { font: 550 20px/1.18 var(--serif); overflow-wrap: anywhere; }
.word-title .badge { background: none; padding: 0 3px; }
.word-title .word-pos { text-decoration: none; font-weight: 650; color: var(--accent); }
.word-copy p { font-size: 13px; color: var(--muted); }
.word-toggle,.word-remove { padding-inline: 8px; font-size: 12px; border-color: transparent !important; }
.word-toggle[aria-pressed='true'] { background: var(--soft); color: var(--accent); }
.word-toggle[aria-pressed='true'] path { fill: currentColor; }
/* Exam and review paper */
.view-quiz,.view-result { --width: 1060px; }
.quiz-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 9px 20px; padding-bottom: 13px; border-bottom: 1px solid var(--input); margin-bottom: 16px; }
.quiz-head h1 { font-size: clamp(22px,3vw,33px); }
.quiz-head .btn { justify-content: start; margin-bottom: 3px; }
.timer-badges { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.timer-badges>span,.time-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timer-badges svg,.time-tag svg { width: 14px; height: 14px; }
.timer-badges b { color: var(--ink); }
.quiz-progress { display: flex; align-items: center; gap: 11px; margin: 0 0 15px; }
.quiz-progress span { white-space: nowrap; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.quiz-layout,.review-layout { display: grid; align-items: start; gap: 18px; }
.quiz-layout.has-passage,.review-layout.has-passage { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
.quiz-layout:not(.has-passage),.view-result>.review-layout:not(.has-passage) { width: min(100%, 740px); }
.passage,.question { background: var(--sheet); border: 1px solid var(--line); }
.question { padding: clamp(15px,2.8vw,26px); }
.passage-head,.question-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.passage-head { min-height: 44px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 650; letter-spacing: .035em; color: var(--accent); }
.eyebrow svg { width: 15px; height: 15px; }
.question-top .eyebrow span { width: 8px; height: 1px; background: currentColor; }
.question-top .muted { font-size: 12px; }
.passage-text,.prompt,.completion { font-family: var(--exam); font-weight: 400; overflow-wrap: anywhere; letter-spacing: normal; }
.passage-text { padding: 16px clamp(13px,2.6vw,24px); font-family: var(--exam-passage); font-size: clamp(16px,1.6vw,18px); line-height: 1.5; white-space: pre-wrap; }
.blank-in-passage { display: inline-flex; justify-content: center; align-items: center; min-width: 29px; padding: 1px 4px; margin: 0 2px; border: 1px solid var(--line); color: var(--muted); font: 600 11px/1.4 var(--sans); vertical-align: .15em; }
.blank-in-passage.current-blank { background: var(--soft); color: var(--ink); border-color: var(--focus); }
.text-blank { padding-inline: 4px; background: var(--soft); color: var(--accent); }
.prompt { margin-block: 20px 18px; font-size: clamp(17px,2.25vw,23px); line-height: 1.45; }
.question-instruction { margin: 14px 0; font-size: 14px; }
.options { border-bottom: 1px solid var(--line); }
.option { display: flex; align-items: center; width: 100%; text-align: left; padding: 7px 8px; gap: 11px; min-height: 50px; border: 1px solid transparent; border-top-color: var(--line); background: transparent; }
.option:enabled:hover,.option.chosen { background: var(--soft); border-color: var(--input); }
.option-letter { width: 28px; height: 26px; flex: none; display: grid; place-items: center; color: var(--muted); font: 400 16px/1 var(--exam); }
.option.chosen .option-letter { color: var(--accent); font-weight: 700; }
.option-text { min-width: 0; flex: 1; font: 400 17px/1.4 var(--exam); overflow-wrap: anywhere; }
.choice-indicator { display: grid; place-items: center; width: 17px; color: var(--accent); }
.choice-indicator svg { width: 16px; height: 16px; }
.option.is-correct { color: var(--good); background: var(--good-fill); }
.option.is-wrong { color: var(--bad); background: var(--bad-fill); }
.option-status { flex: none; font-size: 11px; font-weight: 650; }
.quiz-actions,.result-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; margin-block-start: 16px; }
.submit-note { margin-top: 5px; font-size: 12px; text-align: right; }
.navigator,.all-results { margin-top: 16px; border-block: 1px solid var(--line); }
.navigator summary,.all-results summary,.original-vocab summary { min-height: 44px; padding: 10px 4px; font-size: 13px; font-weight: 600; }
summary small { color: var(--muted); margin-left: 5px; }
.number-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(44px,1fr)); gap: 4px; padding-bottom: 10px; }
.number-grid button { min-height: 44px; min-width: 44px; padding: 2px; border: 1px solid var(--line); border-radius: 3px; background: var(--sheet); font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; }
.number-grid button.answered { background: var(--soft); }
.number-grid button[aria-current] { border: 2px solid var(--focus); }
.all-results summary+.record-row { border-top: 1px solid var(--line); }
.solution,.review-vocab { padding-block-start: 15px; margin-block-start: 21px; border-top: 1px solid var(--line); }
.answer-info { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 13px; }
.completion { margin: 11px 0; padding: 10px 12px; background: var(--soft); font-size: 19px; line-height: 1.4; white-space: pre-wrap; }
.completion mark { background: transparent; color: var(--accent); font-weight: 650; text-decoration: underline; text-underline-offset: .18em; }
.solution h4 { font-size: 13px; margin: 11px 0 2px; font-weight: 650; }
.solution p { font-size: 14px; white-space: pre-wrap; }
.solution .footnote,.review-vocab>p,.original-vocab { font-size: 12px; }
.solution .footnote { margin-top: 8px; }
.source-badge { margin-left: 4px; }
.review-vocab>p:not(:empty) { margin: 3px 0 7px; }
.review-vocab .word-list { border-block: 1px solid var(--line); }
.original-vocab { margin-top: 7px; color: var(--muted); }
.word-feedback { color: var(--accent); }
dialog { padding: 0; color: var(--ink); background: var(--sheet); border: 1px solid var(--input); border-radius: 7px; width: min(470px,calc(100% - 26px)); max-width: none; max-height: calc(100dvh - 26px); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #14150eb0; }
dialog.review-dialog { width: min(960px,calc(100% - 26px)); background: var(--paper); }
.dialog-inner { padding: 13px 20px 19px; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 13px; }
.dialog-top .icon-button { margin-right: -7px; }
.settings .btn { width: 100%; margin-top: 14px; }
.setting-description { font-size: 13px; margin-top: 5px; }
.toast { position: fixed; z-index: 4; bottom: 16px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 22px); padding: 9px 13px; border-radius: 4px; background: var(--fill); color: var(--on-fill); font-size: 13px; }
@media (max-width: 680px) {
  .page { padding-top: 27px; padding-bottom: 38px; }
  .top-inner { min-height: 56px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 6px; }
  .top .brand { justify-self: start; }
  .top-tools { grid-row: 1; grid-column: 2; }
  .top nav { margin: 0; grid-column: 1/-1; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; }
  .top nav button { padding-inline: 0; font-size: 12px; }
  .userid { display: none; }
  .view-auth { max-width: 490px; gap: 22px; grid-template-columns: 1fr; padding-top: 18px; }
  .welcome { padding: 14px 16px 16px; }
  .welcome h1 { font-size: clamp(43px,10vw,59px); margin: 17px 0 6px; }
  .welcome h1 br { display: none; }
  .welcome p { font-size: 13px; }
  .welcome p br { display: none; }
  .proof { display: none; }
  .auth-panel h2 { font-size: 24px; }
  .auth-panel input,.settings select { font-size: 16px; }
  .switch { margin: 12px 0; }
  .desk-grid,.stats-grid,.quiz-layout.has-passage,.review-layout.has-passage { grid-template-columns: 1fr; gap: 19px; }
  .desk-head { padding-bottom: 13px; margin-bottom: 18px; }
  .desk-head h1 { padding-bottom: 3px; }
  .desk-aside { padding: 13px 0 0; border-inline-start: 0; border-top: 1px solid var(--input); }
  .page-head { align-items: start; gap: 7px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 13px; }
  .page-head p,.desk-head>.muted { font-size: 13px; }
  .quick,.mode-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; }
  .mode-row { min-height: 62px; }
  .quick { padding-block: 11px; }
  .focus-panel { margin-top: 18px; }
  .quiz-head { gap: 9px 16px; }
  .quiz-head .btn { margin: -7px 0 0; }
  .quiz-layout.has-passage,.review-layout.has-passage { gap: 9px; }
  .quiz-layout .passage-text { max-height: min(45vh,270px); overflow: auto; }
  .passage-head { min-height: 38px; }
  .question { padding: 13px 11px; }
  .option { min-height: 46px; }
  .list-head { flex-wrap: wrap; }
  .record-row { gap: 5px; }
  .qnumber { width: 38px; font-size: 21px; }
  .record-row .badge { padding-inline: 3px; font-size: 10px; }
  .summary-strip:not(:has(>div:nth-child(3):last-child)) { grid-template-columns: 1fr 1fr; }
  .summary-strip:not(:has(>div:nth-child(3):last-child))>div:nth-child(3) { border-inline-start: 0; }
  .summary-strip:not(:has(>div:nth-child(3):last-child))>div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .summary-strip>div { padding: 8px 10px; }
  .dialog-inner { padding-inline: 10px; }
}
/* Practice shelf and question bookmarks */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.view-home .desk-head { border-bottom: 0; margin-bottom: 12px; padding-bottom: 0; }
.hourly-note { margin: 0 0 26px; padding: 12px 0; border-block: 1px solid var(--line); color: var(--accent); font-size: 14px; word-break: keep-all; overflow-wrap: anywhere; }
.hourly-note span { color: var(--ink); }
.quick.drill-quick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-inline: 0; }
.drill-quick .quick-actions { margin-top: 0; }
.mock-shelf { border-block: 1px solid var(--line); padding: 15px 0 12px; }
.mock-series + .mock-series { margin-top: 15px; }
.mock-series h3 { font-size: 14px; margin-bottom: 7px; }
.mock-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.mock-tile { min-width: 0; min-height: 70px; padding: 8px 7px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--sheet); text-align: start; border-radius: 3px; }
.mock-tile:hover { border-color: var(--focus); background: var(--soft); }
.mock-tile b,.mock-tile small { display: block; white-space: nowrap; }
.mock-tile b { font: 700 15px/1.2 var(--exam); }
.mock-tile small,.mock-note { color: var(--muted); font-size: 11px; }
.mock-tile svg { width: 14px; height: 14px; color: var(--muted); }
.mock-note { margin-top: 8px; }
.exam-paper { position: relative; display: grid; gap: 2px; align-content: start; flex: none; width: 34px; height: 42px; padding: 12px 5px 0; border: 1px solid var(--input); background: var(--paper); color: var(--accent); }
.exam-paper::before { content: ''; position: absolute; top: 0; right: 0; width: 8px; height: 8px; border: solid var(--input); border-width: 0 0 1px 1px; background: var(--soft); }
.exam-paper span { border-top: 1px solid currentColor; opacity: .64; }
.exam-paper span:nth-child(2) { width: 78%; }
.exam-paper span:nth-child(3) { width: 90%; }
.exam-paper-half { width: 24px; height: 30px; padding: 10px 4px 0; }
.exam-paper-half::before { width: 6px; height: 6px; }
.practice-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 3px; }
.practice-links .btn { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--input); }
.question-meta { display: flex; align-items: center; justify-content: end; gap: 3px 8px; flex-wrap: wrap; }
.question-toggle { padding-inline: 7px; font-size: 11px; border-color: transparent !important; }
.question-toggle[aria-pressed='true'] { color: var(--accent); background: var(--soft); }
.question-toggle[aria-pressed='true'] path { fill: currentColor; }
.saved-question-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px; }
.saved-question-row + .saved-question-row { border-top: 1px solid var(--line); }
.record-row.saved-record { grid-template-columns: auto minmax(0,1fr) auto; }
.saved-remove { padding-inline: 6px; font-size: 12px; }
.setting-error { margin-top: 8px; font-size: 13px; color: var(--bad); }
.score-note { padding: 3px 0 13px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.score-note strong { color: var(--accent); font-size: 17px; }
.score-note p { max-width: 58ch; margin-top: 3px; word-break: keep-all; }
@media (max-width: 680px) {
  .hourly-note { margin-bottom: 19px; font-size: 13px; }
  .mock-tile { grid-template-columns: auto minmax(0,1fr); gap: 5px; min-height: 62px; padding-inline: 5px; }
  .mock-tile svg { display: none; }
  .mock-tile b { font-size: 13px; }
  .exam-paper { width: 26px; height: 34px; padding-inline: 4px; }
  .exam-paper-half { width: 18px; height: 24px; padding-inline: 3px; }
  .top nav button { font-size: 11px; }
}
@media (min-width: 681px) and (max-width: 840px) {
  .top-inner { gap: 12px; }
  .top nav { gap: 12px; margin-left: 7px; }
  .top .userid { display: none; }
  .mock-tile { grid-template-columns: auto minmax(0,1fr); gap: 4px; }
  .mock-tile svg { display: none; }
  .exam-paper { width: 26px; height: 34px; }
  .exam-paper-half { width: 18px; height: 24px; }
}
@media (max-width: 365px) {
  .mock-tile { grid-template-columns: 1fr; justify-items: start; gap: 5px; }
  .mock-tile .exam-paper { align-self: end; }
  .mock-tile b { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: color .12s, background-color .12s, border-color .12s; }
}
