@charset "UTF-8";
:root {
  --ink: #303c32;
  --muted: #747c70;
  --green: #304d3b;
  --paper: #fafaf7;
  --line: #eaeaea;
  --radius: 12px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; border: 0; }
button:disabled { cursor: default; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button svg { pointer-events: none; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #6e8c61; outline-offset: 4px; }
input:focus-visible, select:focus-visible { outline: 2px solid #6e8c61; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h1:focus, h2:focus { outline: none; }
em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.skip-link { position: fixed; left: 20px; top: -70px; z-index: 100; background: var(--green); color: white; padding: 15px; border-radius: 6px; }
.skip-link:focus { top: 15px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; padding: 36px 22px 23px; border-right: 1px solid var(--line); background: #f3f4ee; display: flex; flex-direction: column; z-index: 2; }
.brand { display: flex; align-items: center; text-decoration: none; font-weight: 750; font-size: 32px; letter-spacing: -1.7px; padding-left: 9px; gap: 10px; line-height: 1; }
.brand-icon { height: 39px; width: 39px; background: var(--green); color: #e4ecd8; border-radius: 10px; display: grid; place-items: center; transform: rotate(-5deg); }
.brand-icon svg { width: 25px; height: 25px; }
.brand-dot { margin-left: -10px; color: #82956d; }
.sidebar-label { font-size: 10px; font-weight: 650; color: #838d79; letter-spacing: 1.4px; margin: 49px 0 18px 14px; }
nav { display: grid; gap: 7px; }
.nav-item { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 15px; background: transparent; font-size: 13px; font-weight: 500; color: #737e6c; border-radius: 7px; transition: background .18s; min-height: 46px; }
.nav-item:hover { background: #e9ece2; }
.nav-item.active { color: var(--green); background: #e2e8d9; font-weight: 650; }
.nav-item svg { width: 18px; height: 18px; }
.sidebar-note { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px 22px; background: #eeefe6; text-align: center; }
.buddy { fill: initial; stroke: none; width: 150px; height: 135px; overflow: visible; }
.buddy-note > .buddy { width: 145px; height: 133px; display: block; margin: 0 auto 11px; }
.sidebar-note h3 { font-size: 11px; margin-bottom: 9px; }
.sidebar-note p { font-size: 11px; line-height: 1.8; color: #818571; }
.local-note { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 9px; color: #838b78; margin-top: 23px; }
.local-note svg { width: 12px; height: 12px; }
main { margin-left: 236px; min-height: 100dvh; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 45px; border-bottom: 1px solid var(--line); font-size: 12px; color: #858b7d; }
.profile-button { display: flex; align-items: center; gap: 8px; background: transparent; font-size: 12px; padding: 3px 0 3px 6px; border-radius: 6px; max-width: 55%; }
#player-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #8ca375; flex-shrink: 0; }
.avatar { margin-left: 12px; display: grid; place-items: center; background: #eae5d7; color: #87775d; font-family: Georgia, serif; font-weight: bold; font-size: 14px; width: 34px; height: 34px; border: 3px solid white; border-radius: 50%; flex-shrink: 0; }
.page-content { max-width: 1360px; margin: auto; padding: 40px 45px 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 32px; }
.eyebrow { display: block; font-size: 9px; letter-spacing: 1.6px; font-weight: 650; color: #7e8b70; margin-bottom: 13px; }
h1 { font-size: clamp(34px, 3.5vw, 49px); line-height: 1.14; letter-spacing: -1.7px; }
h1 em { color: #748b63; }
.subtitle { font-size: 13px; color: var(--muted); margin-top: 13px; line-height: 1.8; }
.button { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px; padding: 12px 17px; font-size: 12px; font-weight: 600; transition: background .18s, transform .18s; text-decoration: none; line-height: 1.5; }
.button:not(:disabled):active { transform: scale(.98); }
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover:not(:disabled) { background: #43654b; }
.button.secondary { background: #fff; border: 1px solid var(--line); color: #536448; }
.button.secondary:hover:not(:disabled) { background: #f0f3e8; }
.button.text { background: transparent; color: #7e8872; }
.button.text:hover { color: var(--green); background: #edf0e5; }
.button:disabled { opacity: .45; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 253px; gap: 20px; }
.practice-hero { background: #e8eddf; min-height: 325px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; overflow: hidden; position: relative; }
.hero-copy { padding: 30px; position: relative; z-index: 1; }
.pill { display: inline-block; background: #f4f6ed; border-radius: 4px; padding: 7px 9px; font-size: 8px; letter-spacing: 1.1px; font-weight: 700; color: #7d8b6b; }
.hero-copy h2 { font-size: clamp(27px,2.7vw,38px); letter-spacing: -1.1px; line-height: 1.17; margin: 18px 0 13px; font-weight: 550; }
.hero-copy p { font-size: 12px; color: #728067; line-height: 1.85; margin-bottom: 23px; }
.hero-copy .button { font-size: 11px; }
.hero-footnote { display: block; font-size: 9px; color: #7f8a71; margin-top: 13px; }
.study-art { position: relative; min-width: 155px; flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-right: 15px; margin-left: -20px; }
.hero-buddy { width: clamp(155px,17vw,245px); height: auto; aspect-ratio: 200/180; transform: rotate(-4deg); }
.buddy-caption { font-size: 10px; color: #8b947a; text-align: center; margin-top: 2px; line-height: 1.5; transform: rotate(-5deg); }
.buddy-caption em { font-size: 15px; color: #7c876a; }
.progress-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 21px; text-align: center; }
.section-label { font-size: 8px; letter-spacing: 1px; font-weight: 650; color: #889479; text-align: left; }
.progress-card h3 { font-size: 14px; text-align: left; margin-top: 12px; }
.progress-ring { --score: 0%; height: 116px; width: 116px; border-radius: 50%; background: conic-gradient(#8ba174 var(--score),#eef1e8 0); display: grid; place-items: center; margin: 23px auto; transform: rotate(-90deg); }
.progress-ring > div { display: flex; align-items: center; justify-content: center; flex-direction: column; width: 99px; height: 99px; border-radius: 50%; background: white; transform: rotate(90deg); }
.progress-ring strong { font-weight: 550; font-size: 27px; line-height: 1.1; letter-spacing: -1px; }
.progress-ring span { font-size: 8px; color: #929c82; margin-top: 6px; }
.progress-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.progress-stats > div:first-child { border-right: 1px solid var(--line); }
.progress-stats strong { font-size: 20px; font-weight: 550; display: block; }
.progress-stats span { display: block; font-size: 8px; color: #8a947b; margin-top: 5px; }
.progress-card > p { font-size: 8px; color: #929a84; margin-top: 20px; line-height: 1.6; }
.session-setup { margin-top: 28px; padding: 23px 25px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.section-heading h2 { font-size: 20px; letter-spacing: -.5px; }
.section-heading p { font-size: 11px; color: #8a907f; margin-top: 7px; line-height: 1.8; }
.set-count { font-size: 9px; color: #8e9780; flex-shrink: 0; }
.setup-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-top: 23px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 10px; font-weight: 600; color: #718062; }
input,select { border: 1px solid var(--line); border-radius: 6px; width: 100%; min-width: 0; padding: 11px 10px; background: white; color: var(--ink); font-size: 11px; line-height: 1.6; min-height: 42px; }
input::placeholder { color: #a2aa95; font-weight: 400; }
.setup-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 19px; color: #939b84; }
.setup-note svg { width: 13px; height: 13px; margin-top: 2px; }
.setup-note p { font-size: 9px; line-height: 1.8; }
.setup-note strong { font-weight: 600; color: #798968; }
.form-error { font-size: 12px; color: #a05243; line-height: 1.7; margin-top: 12px; }
.form-error:empty { display: none; }
.sets-section { margin-top: 35px; }
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 23px; margin-top: 19px; }
.topic-row { display: flex; align-items: center; gap: 14px; background: transparent; text-align: left; border-bottom: 1px solid var(--line); padding: 19px 2px; min-width: 0; }
.topic-row:last-child { grid-column: 1/-1; }
.topic-row:hover .topic-copy strong { color: #6f8b57; }
.topic-row > svg { width: 16px; height: 16px; color: #8a997b; }
.topic-mark { width: 42px; height: 43px; border-radius: 8px; display: grid; place-items: center; font-family: Georgia,serif; font-size: 17px; flex-shrink: 0; }
.blue { background: #e7eef3; color: #7d98ac; }
.lavender { background: #eeebf2; color: #9989aa; }
.peach { background: #f6ece1; color: #b19b7a; }
.green { background: #eaf0df; color: #829565; }
.sand { background: #eeece0; color: #a2986e; }
.topic-copy { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.topic-copy strong { font-size: 13px; font-weight: 600; }
.topic-copy > span { font-size: 10px; color: #8a9380; }
.topic-count { font-size: 10px; color: #99a08d; white-space: nowrap; }
.bottom-tip { background: #f1f0e8; border: 1px solid var(--line); padding: 17px 21px; border-radius: 8px; margin-top: 26px; color: #8d907e; }
.bottom-tip p { font-size: 10px; line-height: 1.9; }
.bottom-tip strong { font-weight: 600; color: #788263; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 28px 0 24px; color: #a0a58f; font-size: 9px; line-height: 1.6; }
.page-footer > span:last-child { font-size: 15px; font-weight: 700; letter-spacing: -1px; }
.warning { background: #fbf3db; color: #886d2f; font-size: 12px; padding: 13px; border-radius: 6px; margin-bottom: 20px; line-height: 1.7; }
.resume-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #eff3e6; padding: 19px 22px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; }
.resume-banner strong { font-size: 13px; }
.resume-banner p { font-size: 11px; color: #879575; margin-top: 7px; }
.format-strip { display: grid; grid-template-columns: repeat(6,1fr); gap: 15px; border-block: 1px solid var(--line); padding: 25px 0; margin-bottom: 25px; }
.format-strip > span { font-size: 10px; color: #8d967e; display: flex; flex-direction: column; gap: 8px; }
.format-strip strong { font-weight: 550; font-size: 25px; color: #657b52; }
.coverage-list article { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.coverage-list article > div { flex: 1; min-width: 0; }
.coverage-list h2 { font-size: 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.coverage-list h2 > span { font-size: 10px; font-weight: 400; color: #939d82; white-space: nowrap; }
.coverage-list p { font-size: 13px; line-height: 1.9; color: #848e76; margin-top: 11px; }
.source-panel { margin: 30px 0; padding: 25px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.source-panel h2 { font-size: 20px; margin-bottom: 22px; }
.source-panel > p { display: flex; flex-direction: column; gap: 7px; font-size: 12px; margin-bottom: 22px; }
.source-panel > p span { font-size: 11px; color: #89947b; overflow-wrap: anywhere; }
.source-note { padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: #7e8b70; line-height: 1.8; }
.source-note strong { color: #677b55; font-weight: 600; }
.source-note p { margin-top: 9px; }
.empty-state { text-align: center; padding: 45px 20px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state .buddy { display: block; margin: 0 auto 15px; }
.empty-state h2 { font-size: 23px; letter-spacing: -.5px; }
.empty-state p { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 14px auto 24px; max-width: 460px; }
.privacy-footnote { font-size: 11px; color: #919b83; margin: 23px 0; line-height: 1.9; }
.history-summary { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; color: #8b967d; margin-bottom: 20px; }
.history-row { display: flex; gap: 17px; align-items: center; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.history-score { display: grid; place-items: center; width: 57px; height: 57px; background: #eef2e5; border-radius: 9px; color: #708957; font-size: 17px; font-weight: 650; flex-shrink: 0; }
.history-detail { flex: 1; min-width: 0; }
.history-detail h3 { font-size: 14px; overflow-wrap: anywhere; }
.history-detail p { font-size: 11px; color: #849174; margin-top: 7px; }
.history-detail > span { display: block; font-size: 10px; color: #9aa38d; margin-top: 6px; }
dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 0; max-height: 90dvh; width: calc(100% - 32px); scrollbar-width: thin; }
dialog::backdrop { background: #26372865; backdrop-filter: blur(4px); }
.login-dialog { max-width: 760px; display: grid; grid-template-columns: 280px 1fr; overflow: hidden; }
.login-dialog:not([open]) { display: none; }
.login-art { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 410px; background: #e8eddf; gap: 25px; padding: 25px; }
.login-art .buddy { width: 235px; height: 212px; }
.login-subtitle { font-size: 8px; color: #8b977a; letter-spacing: 1.5px; text-align: center; }
.login-content { padding: 42px 35px 34px; }
.login-content h2 { font-family: Georgia,serif; font-size: 29px; font-weight: 400; letter-spacing: -.8px; }
.login-content > p { font-size: 12px; color: #89927d; line-height: 1.85; margin-top: 15px; }
#login-form { margin-top: 25px; }
#login-form label { margin-bottom: 8px; }
#login-form input { font-size: 13px; padding: 12px; }
#login-form .button { width: 100%; margin-top: 15px; }
.login-content p.login-footnote { font-size: 9px; line-height: 1.8; margin-top: 20px; color: #9aA28d; }
.confirm-dialog { max-width: 470px; }
.quit-confirm { padding: 34px; text-align: center; }
.quit-confirm h2 { font-size: 24px; letter-spacing: -.6px; }
.quit-confirm p { color: #869477; font-size: 12px; line-height: 1.9; margin: 16px auto 27px; }
.quit-confirm > div { display: flex; justify-content: center; gap: 12px; }
.quiz-page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.quiz-page-header h1 { font-size: 34px; letter-spacing: -1px; line-height: 1.18; }
.quiz-session-actions { display: flex; align-items: center; gap: 5px; }
.question-card { max-width: 860px; margin: auto; border: 1px solid var(--line); background: white; border-radius: var(--radius); overflow: hidden; }
.question-card-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 30px; border-bottom: 1px solid var(--line); }
.question-card-top > div:first-child { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.question-type { font-size: 10px; font-weight: 600; background: #edf1e6; color: #7f926b; padding: 6px 9px; border-radius: 4px; }
.question-topic { font-size: 11px; color: #8a967b; }
.question-timer { display: flex; align-items: center; gap: 7px; font: 600 16px ui-monospace,Consolas,monospace; color: #79945f; flex-shrink: 0; }
.question-timer svg { width: 17px; height: 17px; }
.question-timer.urgent { color: #b37857; }
.question-timer.stopped { color: #a3ad96; font-family: inherit; font-size: 11px; }
.question-progress { padding: 22px 30px 0; }
.question-progress > div:first-child { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #939d86; margin-bottom: 12px; }
.quiz-progress-track { height: 4px; background: #eef1e9; border-radius: 4px; overflow: hidden; }
.quiz-progress-track > span { display: block; height: 100%; background: #97ad81; }
#answer-form { padding: 29px 30px 0; }
.question-prompt { font-size: 23px; line-height: 1.55; letter-spacing: -.4px; margin-bottom: 25px; font-weight: 550; overflow-wrap: anywhere; }
.question-context { margin: -10px 0 24px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.answer-options { display: grid; gap: 10px; }
.answer-option { display: flex; gap: 13px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: white; font-size: 14px; line-height: 1.6; transition: background .15s,border-color .15s; overflow-wrap: anywhere; }
.answer-letter { width: 29px; height: 29px; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; border: 1px solid var(--line); border-radius: 5px; color: #929e82; }
.answer-option:hover:not(:disabled) { background: #f6f8f0; border-color: #cbd6bc; }
.answer-option.selected { border-color: #8ba475; background: #f0f5e8; }
.answer-option.selected .answer-letter { color: white; background: #82996c; border-color: #82996c; }
.answer-option.correct { border-color: #9bb383; background: #eff5e7; }
.answer-option.wrong { border-color: #d9b9a9; background: #fcf3ee; }
.answer-option > span:nth-child(2) { flex: 1; min-width: 0; }
.answer-option svg { width: 17px; height: 17px; margin-left: auto; }
.answer-option.wrong svg { color: #b78670; }
.answer-option.correct svg { color: #839e69; }
.answer-hint { font-size: 10px; color: #95a087; line-height: 1.8; margin-top: 15px; }
.written-answer { font-size: 12px; }
.written-answer input { font-size: 16px; min-height: 53px; padding: 13px 15px; }
.enumeration-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.enumeration-inputs label { position: relative; }
.enumeration-inputs label > span { position: absolute; left: 14px; top: 15px; font-size: 11px; color: #a1ac94; }
.enumeration-inputs input { padding-left: 37px; font-size: 13px; min-height: 47px; }
.matching-inputs { display: grid; gap: 13px; }
.matching-inputs label { display: grid; grid-template-columns: minmax(100px,1fr) minmax(0,1.6fr); align-items: center; gap: 20px; padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.matching-inputs select { font-size: 12px; }
.answer-feedback { margin-top: 23px; padding: 22px; background: #f0f4e9; border-radius: 8px; font-size: 13px; line-height: 1.85; color: #7d8e68; }
.answer-feedback > strong { color: #5a7545; display: block; font-size: 16px; margin-bottom: 5px; }
.answer-feedback > span { display: block; font-size: 10px; color: #90a179; }
.answer-feedback.incorrect { background: #f8f2e7; color: #9b8b69; }
.answer-feedback.incorrect > strong { color: #967b4e; }
.answer-feedback.incorrect > span { color: #b09b75; }
.model-answer { margin-top: 15px; color: #687e53; }
.model-answer strong { font-weight: 650; }
.model-answer ol { margin: 0; padding-left: 21px; }
.model-answer li { padding: 3px 0; }
.feedback-explanation { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e4e7d9; }
.grading-note { font-size: 10px; margin-top: 12px; }
.matching-key { margin: 0; }
.matching-key > div { display: grid; grid-template-columns: minmax(70px,1fr) minmax(0,2fr); gap: 15px; padding: 9px 0; border-bottom: 1px solid #e2e6d6; }
.matching-key dt { font-weight: 600; }
.matching-key dd { margin: 0; }
.question-actions { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 25px 0; }
.question-source { display: flex; gap: 7px; align-items: center; font-size: 9px; color: #a2ad93; padding: 17px 30px; border-top: 1px solid var(--line); background: #fcfcf9; }
.question-source svg { width: 13px; height: 13px; }
.feedback-buddy { display: flex; gap: 6px; align-items: center; font-size: 10px; color: #9ba58c; }
.feedback-buddy .buddy { width: 49px; height: 44px; }
.quiz-under-note { max-width: 860px; margin: 18px auto 0; display: flex; gap: 20px; justify-content: space-between; font-size: 9px; color: #99a48a; line-height: 1.8; }
.result-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.session-result { display: grid; grid-template-columns: 1fr 150px; gap: 25px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #edf2e5; }
.result-score { font-size: 65px; font-weight: 550; letter-spacing: -2.5px; color: #69864f; margin-top: 18px; line-height: 1.1; }
.result-score > span { font-size: 23px; letter-spacing: -.5px; color: #9aa98c; }
.session-result > div:first-child > p { font-size: 12px; color: #859773; margin-top: 13px; }
.result-status { display: block; font-size: 10px; color: #96a286; margin-top: 10px; line-height: 1.8; }
.result-buttons { grid-column: 1/-1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.result-breakdown { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.result-breakdown h2 { font-size: 17px; margin-bottom: 15px; }
.result-breakdown > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; color: #8c997b; }
.result-breakdown strong { font-weight: 600; color: #708c56; font-variant-numeric: tabular-nums; }
.result-breakdown > p { font-size: 9px; color: #a2ac94; line-height: 1.8; margin-top: 16px; }
.answers-review { margin-top: 35px; }
.answers-review > .section-heading { margin-bottom: 25px; }
.review-item { background: white; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; font-size: 13px; line-height: 1.8; }
.review-item > summary { cursor: pointer; padding: 21px; list-style: none; }
.review-item > summary::-webkit-details-marker { display: none; }
.review-item > summary::after { content: '+'; display: block; text-align: right; color: #a2ae92; margin-top: -20px; }
.review-item[open] > summary::after { content: '−'; }
.review-status { font-size: 9px; display: block; color: #8aa26f; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .8px; }
.review-item.missed .review-status { color: #b49b73; }
.review-item summary > strong { display: block; font-size: 14px; font-weight: 550; padding-right: 22px; overflow-wrap: anywhere; }
.review-source { display: block; color: #a2ad94; font-size: 9px; margin-top: 9px; padding-right: 15px; }
.review-content { padding: 0 21px 21px; color: #899a75; overflow-wrap: anywhere; }
.review-content > p strong { font-weight: 600; color: #738d5b; }
.review-model { margin-top: 18px; padding: 17px; background: #f5f7f0; border-radius: 6px; }
.review-model > strong { display: block; font-size: 10px; color: #9ba98a; margin-bottom: 8px; }
.review-model ol { padding-left: 20px; }
.review-model p strong { font-weight: 600; }
.review-explanation { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: var(--green); color: white; padding: 14px 22px; border-radius: 7px; font-size: 12px; z-index: 10; max-width: calc(100% - 32px); text-align: center; line-height: 1.7; }
.app-error { padding: 35px; line-height: 1.8; color: #a56f54; }
.matched-item::marker { color: #809969; }
.missed-item { color: #b39167; }
.item-status { font-size: 10px; }
.answer-feedback { font-size: 14px; }
.model-answer { color: #536c43; }
.feedback-explanation { color: #6d7d5b; }
.incorrect .feedback-explanation { color: #88734c; }
.answer-hint { font-size: 11px; color: #7e8c6c; }
.question-source { color: #849576; }
.review-explanation { color: #71825d; }
@media (prefers-reduced-motion: no-preference) {
  #app > .page-heading { animation: arrive .45s both; }
  .hero-grid, .question-card, .result-layout { animation: arrive .55s .04s both; }
  .session-setup { animation: arrive .55s .09s both; }
  .topic-list { animation: arrive .45s .15s both; }
  .buddy-eyes { transform-origin: 104px 78px; animation: blink 7s infinite; }
  .answer-correct .buddy-note > .buddy { animation: buddy-cheer .5s 2; }
  @keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes blink { 0%,43%,47%,100% { transform: scaleY(1); } 45% { transform: scaleY(.12); } }
  @keyframes buddy-cheer { 0%,100% { transform: rotate(0); } 50% { transform: translateY(-4px) rotate(-4deg); } }
}
@media (min-width: 1500px) {
  .page-content { padding-top: 48px; }
  .hero-copy { padding: 35px; }
  .practice-hero { min-height: 350px; }
  .hero-copy h2 { font-size: 40px; }
  .hero-copy p { font-size: 13px; }
  .progress-ring { margin: 30px auto; }
  .topic-copy strong { font-size: 14px; }
  .topic-copy > span { font-size: 11px; }
  .setup-grid label { font-size: 11px; }
  .setup-grid select { font-size: 12px; }
}
@media (max-width: 1190px) {
  .sidebar { width: 204px; padding-inline: 16px; }
  main { margin-left: 204px; }
  .page-content { padding: 32px 28px 0; }
  .topbar { padding-inline: 28px; min-height: 80px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 220px; gap: 15px; }
  .hero-copy { padding: 25px; }
  .hero-copy h2 { font-size: 30px; }
  .hero-copy p { font-size: 11px; }
  .study-art { min-width: 135px; margin-left: -30px; padding-right: 10px; }
  .hero-buddy { width: 165px; }
  .progress-card { padding: 25px 17px; }
  .progress-stats span { font-size: 7px; }
  .sidebar-note h3 { font-size: 10px; }
  .setup-grid { gap: 10px; }
  .setup-grid select { font-size: 10px; padding-inline: 6px; }
  .topic-count { font-size: 9px; }
  .topic-row { gap: 10px; }
  .topic-copy strong { font-size: 12px; }
  .topic-copy > span { font-size: 9px; }
  .result-layout { grid-template-columns: 1fr; }
  .result-breakdown { display: grid; grid-template-columns: 1fr 1fr; column-gap: 25px; }
  .result-breakdown h2, .result-breakdown > p { grid-column: 1/-1; }
}
@media (max-width: 1000px) {
  .sidebar { width: 181px; }
  main { margin-left: 181px; }
  .brand { font-size: 28px; gap: 9px; padding-left: 5px; }
  .brand-icon { width: 33px; height: 33px; }
  .nav-item { font-size: 11px; padding: 13px 10px; gap: 9px; }
  .sidebar-label { font-size: 8px; margin-left: 10px; }
  .sidebar-note { padding: 11px 9px 18px; }
  .buddy-note > .buddy { width: 125px; height: 112px; }
  .sidebar-note h3 { line-height: 1.8; font-size: 10px; }
  .local-note { font-size: 7px; gap: 5px; }
  .topbar { font-size: 10px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 195px; gap: 12px; }
  .hero-copy { padding: 25px 21px; }
  .hero-copy h2 { font-size: 27px; }
  .hero-copy p { font-size: 10px; }
  .hero-copy .button { font-size: 10px; padding-inline: 13px; }
  .hero-footnote { font-size: 8px; }
  .study-art { min-width: 90px; padding-right: 5px; margin-left: -39px; }
  .hero-buddy { width: 129px; }
  .buddy-caption { font-size: 8px; }
  .buddy-caption em { font-size: 12px; }
  .progress-card { padding: 24px 13px; }
  .progress-card h3 { font-size: 12px; }
  .progress-ring { width: 105px; height: 105px; }
  .progress-ring > div { width: 90px; height: 90px; }
  .progress-card > p { font-size: 7px; }
  .page-heading > .button { font-size: 10px; padding: 11px; }
  .setup-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .setup-grid select { font-size: 12px; padding-inline: 10px; }
  .topic-list { grid-template-columns: 1fr; }
  .topic-copy strong { font-size: 14px; }
  .topic-copy > span { font-size: 11px; }
  .topic-count { font-size: 10px; }
  .topic-row { gap: 14px; }
  .format-strip { grid-template-columns: repeat(3,1fr); row-gap: 23px; }
  .quiz-page-header h1 { font-size: 30px; }
  .quiz-session-actions { flex-direction: column; align-items: flex-end; }
  .question-prompt { font-size: 21px; }
}
@media (max-width: 800px) {
  .sidebar { position: relative; width: auto; padding: 22px 24px 0; display: block; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: 29px; padding: 0; }
  .sidebar-label,.sidebar-note,.local-note { display: none; }
  nav { display: flex; gap: 7px; margin-top: 22px; margin-bottom: 12px; }
  .nav-item { flex: 1; justify-content: center; font-size: 11px; padding: 11px 8px; }
  .nav-item svg { width: 16px; height: 16px; }
  main { margin-left: 0; }
  .topbar { padding: 10px 24px; min-height: 55px; }
  .profile-button { font-size: 10px; }
  .avatar { width: 29px; height: 29px; font-size: 12px; margin-left: 4px; }
  .page-content { padding: 29px 24px 0; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 210px; gap: 15px; }
  .hero-copy { padding: 27px 25px; }
  .hero-copy h2 { font-size: 30px; }
  .hero-copy p { font-size: 11px; }
  .study-art { min-width: 120px; margin-left: -30px; }
  .hero-buddy { width: 155px; }
  .progress-card h3 { font-size: 13px; }
  .hero-footnote { font-size: 9px; }
  .hero-copy .button { font-size: 11px; }
  .progress-stats span { font-size: 8px; }
  .progress-card > p { font-size: 8px; }
  .page-heading > .button { font-size: 11px; }
  .subtitle { font-size: 12px; }
  .topic-list { grid-template-columns: 1fr 1fr; }
  .topic-copy strong { font-size: 12px; }
  .topic-copy > span { font-size: 9px; }
  .topic-count { font-size: 8px; }
  .topic-row { gap: 10px; }
}
@media (max-width: 660px) {
  .page-content { padding: 25px 20px 0; }
  .page-heading { flex-wrap: wrap; gap: 18px; margin-bottom: 25px; }
  h1 { font-size: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .practice-hero { min-height: 305px; }
  .hero-copy { padding: 28px 25px; }
  .hero-copy h2 { font-size: 32px; }
  .hero-copy p { font-size: 11px; }
  .study-art { min-width: 140px; margin-left: -30px; }
  .hero-buddy { width: 180px; }
  .buddy-caption { font-size: 9px; }
  .buddy-caption em { font-size: 14px; }
  .progress-card { display: grid; grid-template-columns: 1fr 1fr; text-align: left; padding: 22px; gap: 0 20px; position: relative; }
  .progress-card .section-label,.progress-card h3 { grid-column: 1; }
  .progress-card h3 { font-size: 15px; margin-top: 9px; }
  .progress-ring { grid-column: 2; grid-row: 1/5; position: absolute; right: 2px; top: 50%; transform: translateY(-50%) rotate(-90deg); margin: 0; width: 93px; height: 93px; }
  .progress-ring > div { width: 79px; height: 79px; }
  .progress-ring strong { font-size: 24px; }
  .progress-ring span { font-size: 7px; }
  .progress-stats { grid-column: 1; gap: 12px; margin-top: 18px; min-width: 200px; max-width: 230px; }
  .progress-stats strong { font-size: 19px; }
  .progress-stats span { font-size: 8px; white-space: nowrap; }
  .progress-card > p { grid-column: 1/-1; max-width: calc(100% - 90px); font-size: 8px; margin-top: 17px; }
  .session-setup { padding: 21px; margin-top: 22px; }
  .setup-grid { gap: 18px 12px; }
  .setup-grid label { font-size: 10px; }
  .setup-grid select { font-size: 11px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading p { font-size: 10px; }
  .set-count { font-size: 8px; }
  .sets-section { margin-top: 29px; }
  .topic-list { grid-template-columns: 1fr; gap: 0; margin-top: 10px; }
  .topic-row { gap: 13px; padding: 18px 0; }
  .topic-copy strong { font-size: 14px; }
  .topic-copy > span { font-size: 10px; }
  .topic-count { font-size: 9px; }
  .bottom-tip p { font-size: 10px; }
  .login-dialog { grid-template-columns: 1fr; max-width: 380px; overflow: auto; }
  .login-art { min-height: 0; padding: 21px; gap: 6px; }
  .login-art .buddy { width: 140px; height: 126px; }
  .login-subtitle { font-size: 7px; }
  .login-content { padding: 26px; }
  .login-content h2 { font-size: 28px; }
  .login-content > p { font-size: 11px; }
  .login-content p.login-footnote { font-size: 9px; }
  .resume-banner { padding: 18px; flex-wrap: wrap; gap: 16px; }
  .resume-banner strong { font-size: 12px; }
  .coverage-list article { gap: 14px; }
  .coverage-list h2 { font-size: 17px; flex-wrap: wrap; gap: 7px; }
  .coverage-list p { font-size: 12px; }
  .source-panel { padding: 21px; }
  .history-row { gap: 13px; padding: 18px; flex-wrap: wrap; }
  .history-detail { flex-basis: calc(100% - 75px); }
  .history-row > .button { margin-left: auto; min-height: 38px; font-size: 11px; padding: 8px 13px; }
  .history-summary { font-size: 9px; }
  .quiz-page-header h1 { font-size: 28px; }
  .quiz-page-header .eyebrow { font-size: 8px; }
  .quiz-session-actions .button { font-size: 10px; min-height: 38px; padding: 9px 12px; }
  .question-card-top { padding: 20px; gap: 15px; }
  .question-card-top > div:first-child { gap: 7px; }
  .question-type { font-size: 9px; }
  .question-topic { font-size: 10px; }
  .question-progress { padding: 20px 20px 0; }
  #answer-form { padding: 23px 20px 0; }
  .question-prompt { font-size: 20px; line-height: 1.55; margin-bottom: 23px; }
  .answer-option { padding: 13px; gap: 10px; font-size: 13px; }
  .answer-letter { width: 27px; height: 27px; }
  .answer-hint { font-size: 10px; }
  .question-actions { gap: 10px; }
  .question-actions .button { font-size: 11px; padding-inline: 12px; }
  .feedback-buddy { font-size: 9px; max-width: 135px; }
  .feedback-buddy .buddy { width: 40px; height: 36px; }
  .question-source { padding: 16px 20px; font-size: 8px; }
  .quiz-under-note { font-size: 8px; gap: 13px; }
  .enumeration-inputs { grid-template-columns: 1fr; gap: 10px; }
  .enumeration-inputs input { font-size: 15px; }
  .matching-inputs label { grid-template-columns: 1fr; gap: 7px; font-size: 12px; }
  .matching-inputs select { font-size: 13px; }
  .answer-feedback { padding: 18px; font-size: 12px; }
  .answer-feedback > strong { font-size: 15px; }
  .matching-key > div { gap: 10px; font-size: 11px; }
  .session-result { padding: 25px; grid-template-columns: 1fr 110px; gap: 20px; }
  .session-result > .buddy { width: 110px; height: 99px; }
  .result-score { font-size: 56px; }
  .result-buttons { gap: 8px; }
  .result-buttons .button { font-size: 11px; padding-inline: 12px; }
  .result-breakdown { padding: 24px; column-gap: 15px; }
  .result-breakdown > div { font-size: 10px; gap: 10px; }
  .answers-review > .section-heading { flex-wrap: wrap; }
  .answers-review .section-heading > .button { font-size: 10px; min-height: 38px; }
  .review-item summary > strong { font-size: 13px; }
  .review-item > summary { padding: 18px; }
  .review-content { padding: 0 18px 18px; font-size: 12px; }
  .review-model { padding: 13px; }
}
@media (max-width: 400px) {
  .sidebar { padding: 20px 17px 0; }
  .nav-item { font-size: 10px; gap: 6px; }
  .nav-item svg { width: 14px; height: 14px; }
  .topbar { padding-inline: 18px; font-size: 8px; }
  .profile-button { font-size: 9px; }
  .page-content { padding: 24px 17px 0; }
  h1 { font-size: 37px; }
  .hero-copy { padding: 25px 20px; }
  .hero-copy h2 { font-size: 28px; }
  .hero-copy p { font-size: 10px; }
  .hero-copy .button { font-size: 10px; padding-inline: 12px; }
  .hero-footnote { font-size: 8px; }
  .study-art { min-width: 95px; margin-left: -35px; padding-right: 7px; }
  .hero-buddy { width: 136px; }
  .buddy-caption { font-size: 8px; }
  .buddy-caption em { font-size: 12px; }
  .progress-stats { min-width: 180px; gap: 9px; }
  .progress-stats span { font-size: 7px; }
  .progress-ring { width: 80px; height: 80px; right: 0; }
  .progress-ring > div { width: 68px; height: 68px; }
  .progress-ring strong { font-size: 21px; }
  .progress-ring span { font-size: 6px; }
  .section-heading h2 { font-size: 17px; }
  .session-setup { padding: 18px; }
  .setup-grid { gap: 15px 10px; }
  .setup-grid select { font-size: 10px; padding-inline: 6px; }
  .topic-copy strong { font-size: 13px; }
  .topic-count { font-size: 8px; }
  .topic-copy > span { font-size: 9px; }
  .page-footer { font-size: 8px; }
  .quiz-page-header h1 { font-size: 25px; }
  .question-card-top { padding: 17px; }
  .question-card-top > div:first-child { flex-direction: column; align-items: flex-start; }
  .question-timer { font-size: 15px; }
  .question-progress { padding-inline: 17px; }
  #answer-form { padding-inline: 17px; }
  .question-prompt { font-size: 18px; }
  .answer-option { font-size: 12px; padding: 12px; }
  .question-actions .button { font-size: 10px; padding-inline: 10px; }
  .question-source { padding-inline: 17px; }
  .feedback-buddy > span { display: none; }
  .session-result { grid-template-columns: 1fr 90px; padding: 22px; gap: 14px; }
  .session-result > .buddy { width: 90px; height: 81px; }
  .session-result > div:first-child > p { font-size: 11px; }
  .result-score { font-size: 48px; }
  .result-breakdown { grid-template-columns: 1fr; }
  .result-buttons .button { font-size: 10px; }
  .quit-confirm { padding: 27px 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 660px) {
  .question-prompt { font-size: 21px; }
  .answer-feedback { font-size: 14px; }
  .answer-option { font-size: 14px; }
  .written-answer input, .enumeration-inputs input { font-size: 16px; }
  .matching-inputs select { font-size: 14px; }
  .answer-hint { font-size: 11px; }
  .review-explanation { font-size: 13px; }
}
