:root {
  --navy: #101b34;
  --navy-deep: #0b1429;
  --ink: #18243b;
  --muted: #788298;
  --teal: #18b9ad;
  --teal-dark: #078f86;
  --surface: #ffffff;
  --paper: #f4f7fb;
  --line: #e7ebf2;
  --shadow: 0 14px 44px rgba(26, 38, 72, .055);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible + .switch { outline: 3px solid #75d8cd; outline-offset: 3px; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 76px; background: var(--navy-deep); color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 max(30px, calc((100vw - 1230px)/2)); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; font-size: 23px; font-weight: 900; line-height: 1; background: linear-gradient(145deg, #23c8b7, #167b9a); letter-spacing: -3px; padding-right: 3px; }
.brand-dot { color: #b7f4da; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 15px; letter-spacing: -.3px; }
.brand-copy small { font-size: 9px; letter-spacing: 1.65px; color: #96a8c4; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.account-link, .owner-login { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; font: inherit; font-size: 11px; font-weight: 850; border-radius: 9px; padding: 10px 12px; text-decoration: none; cursor: pointer; }
.account-link { color: #d7f4ec; background: transparent; border: 1px solid #527584; }
.account-link:hover { background: #253a55; }
.owner-login { background: #24bdaa; color: #071e2f; border: 1px solid #24bdaa; }
.owner-login:hover { background: #63d9c8; }
.live-link { display: inline-flex; align-items: center; text-decoration: none; background: #eaf8f6; color: #104b4a; border-radius: 9px; padding: 10px 12px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.live-link:hover { background: #baf3e8; }
.subject-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.subject-card { background: #fff; border: 1.5px solid #dde7ef; border-radius: 14px; padding: 14px 10px; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; text-align: left; min-width: 0; }
.subject-card > span { font-size: 22px; }
.subject-card strong { font-size: 15px; color: #23364e; }
.subject-card small { color: #8493a8; font-size: 10px; line-height: 1.45; }
.subject-card.is-active { border-color: #12ac9f; background: #eaf8f5; box-shadow: 0 0 0 1px #12ac9f inset; }
.live-cta { width: 100%; margin-top: 12px; text-decoration: none; text-align: center; }
.sync-status { display: inline-block; margin-top: 20px !important; padding: 10px 13px; border-radius: 9px; background: #edf8f5; color: #337f75 !important; font-size: 11px !important; }
.resume-button { width: 100%; margin-top: 11px; justify-content: center; }
.resume-button[hidden] { display: none; }
.mini-pill, .subtle-pill { display: inline-flex; align-items: center; gap: 9px; border-radius: 100px; background: #23314c; padding: 8px 13px; color: #d7e4f4; font-size: 12px; font-weight: 700; }
.green-dot { display: inline-block; height: 7px; width: 7px; background: #20d7a1; border-radius: 50%; box-shadow: 0 0 0 4px #25d2a11c; }
.top-label { font-size: 12px; color: #9daec7; }
main { width: 100%; max-width: 1230px; margin: 0 auto; padding: 0 30px; flex: 1; }
.view { animation: fadeUp .28s ease both; }
@keyframes fadeUp { from { opacity: .4; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero { display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; min-height: 335px; gap: 26px; padding: 46px 0 32px; }
.eyebrow, .section-index { font-size: 10px; font-weight: 850; letter-spacing: 1.8px; text-transform: uppercase; color: var(--teal-dark); }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { display: inline-block; height: 2px; width: 23px; background: var(--teal); }
.hero h1 { font-size: clamp(34px, 4.5vw, 57px); line-height: 1.08; letter-spacing: -2.4px; font-weight: 850; margin: 20px 0 16px; }
.hero h1 em { font-style: normal; color: #079e95; }
.hero p { color: #68758a; max-width: 555px; font-size: 15px; line-height: 1.75; margin: 0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.hero-chips span { border: 1px solid #dfeae9; border-radius: 100px; padding: 8px 12px; background: #edf8f6; color: #207870; font-size: 11px; font-weight: 750; }
.hero-art { min-height: 282px; position: relative; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; background: radial-gradient(circle at center, #cff2e9 0, #ecf6f7 41%, transparent 72%); width: 375px; height: 375px; border-radius: 50%; z-index: -2; }
.art-orbit { position: absolute; border: 1px dashed #b2dcd7; border-radius: 50%; transform: rotate(-19deg); }
.art-orbit-outer { width: 318px; height: 237px; }
.art-orbit-inner { width: 260px; height: 290px; border-color: #d3e5ec; transform: rotate(54deg); }
.art-medallion { width: 188px; height: 188px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; box-shadow: 0 22px 42px #0d8b8b41; background: linear-gradient(150deg, #28c4b3, #078487); border: 11px solid #ecfaf7; transform: rotate(-5deg); }
.art-medallion span { font-size: 70px; font-weight: 900; line-height: 1; letter-spacing: -5px; }
.art-medallion small { font-weight: 850; font-size: 10px; letter-spacing: 3px; margin-top: 8px; }
.float-chip { position: absolute; background: white; border: 1px solid #e5edef; border-radius: 12px; box-shadow: 0 10px 28px #15374416; padding: 11px 13px; font-size: 10px; font-weight: 800; color: #95a3b8; display: flex; gap: 10px; align-items: center; }
.float-chip strong { color: #20364b; letter-spacing: .6px; }
.chip-one { top: 18px; left: 13%; transform: rotate(-7deg); }
.chip-two { top: 67px; right: 1%; transform: rotate(7deg); }
.chip-three { bottom: 18px; left: 2%; transform: rotate(4deg); }
.setup-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); align-items: start; gap: 22px; padding-bottom: 60px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.settings-panel { padding: 29px 32px 31px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.panel h2 { font-size: 22px; letter-spacing: -.7px; margin: 6px 0 0; }
.heading-symbol { color: var(--teal); font-size: 25px; }
.setting-group { border-top: 1px solid var(--line); padding: 23px 0; }
.group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.group-heading h3 { margin: 0; font-size: 14px; letter-spacing: -.1px; }
.group-heading span { color: #9da6b7; font-size: 11px; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-card { border-radius: 14px; border: 1.5px solid #e1e6ef; background: white; min-height: 130px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 15px 17px; position: relative; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mode-card:hover, .topic-chip:hover, .count-options button:hover { border-color: #8ccec8; }
.mode-card.is-selected { background: #eff9f8; border-color: #17a99f; box-shadow: inset 0 0 0 .5px #17a99f; }
.mode-icon { font-size: 24px; color: #159e96; line-height: 1; margin-bottom: 5px; }
.mode-card strong { font-size: 13px; }
.mode-card > span:not(.mode-icon):not(.mode-indicator) { color: #8290a4; line-height: 1.5; font-size: 11px; padding-right: 4px; }
.mode-indicator { position: absolute; right: 12px; top: 12px; background: #0eaca3; color: white; border-radius: 50%; width: 19px; height: 19px; font-size: 11px; display: grid; place-items: center; opacity: 0; }
.mode-card.is-selected .mode-indicator { opacity: 1; }
.topic-options { display: flex; flex-wrap: wrap; gap: 9px; }
.topic-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #e2e8ef; border-radius: 11px; background: white; font-size: 11px; color: #526177; font-weight: 750; }
.topic-chip span { color: #9ba6b8; font-weight: 850; }
.topic-chip.active { background: #112a43; color: white; border-color: #112a43; }
.topic-chip.active span { color: #72dfd4; }
.count-options { display: flex; gap: 10px; }
.count-options button { flex: 1; padding: 11px 0; border: 1px solid #e2e8ef; border-radius: 11px; color: #526177; background: white; font-weight: 750; }
.count-options button.active { background: #112a43; border-color: #112a43; color: white; }
.hint { font-size: 11px; margin: 10px 0 0; color: #97a3b5; }
.settings-toggles { padding: 12px 0 20px; border-bottom: 0; }
.switch-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 11px 0; position: relative; }
.switch-row > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.switch-row strong { font-size: 13px; }
.switch-row small { font-size: 11px; color: #9ba5b7; }
.switch-row input { opacity: 0; width: 1px; height: 1px; position: absolute; right: 12px; }
.switch { display: block; width: 43px; height: 25px; background: #dfe5ed; border-radius: 20px; padding: 4px; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; width: 17px; height: 17px; border-radius: 50%; background: white; display: block; transition: transform .2s; box-shadow: 0 2px 6px #0002; }
.switch-row input:checked + .switch { background: #0ca69d; }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.primary-button, .secondary-button { border: 0; border-radius: 12px; min-height: 48px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; font-weight: 800; font-size: 13px; transition: transform .15s, background .15s, box-shadow .15s; }
.primary-button { color: white; background: #0b9c94; box-shadow: 0 9px 20px #0b9c9430; }
.primary-button:hover:not(:disabled) { background: #07847e; transform: translateY(-1px); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.primary-button span { font-size: 19px; line-height: 1; }
.start-button { width: 100%; justify-content: space-between; padding-left: 22px; padding-right: 22px; }
.error-text { color: #aa3c45; font-size: 12px; }
.side-stack { display: grid; gap: 20px; }
.overview-panel { padding: 29px 25px 22px; }
.overview-panel h2 { margin-bottom: 21px; }
.topic-stat { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.topic-stat > div { display: grid; gap: 4px; flex: 1; }
.topic-stat strong { font-size: 13px; }
.topic-stat small { color: #9aa6b8; font-size: 11px; }
.topic-stat b { font-size: 20px; color: #2b3650; letter-spacing: -.5px; }
.topic-visual { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; }
.topic-visual.violet { background: #eeeafe; border: 8px solid #eeeafe; box-shadow: inset 0 0 0 3px #8479df; }
.topic-visual.cyan { background: #dff8f4; border: 8px solid #dff8f4; box-shadow: inset 0 0 0 3px #0caea2; }
.topic-visual.coral { background: #fff0e8; border: 8px solid #fff0e8; box-shadow: inset 0 0 0 3px #f09c6b; }
.overview-note { background: #f4f8fb; border-radius: 12px; padding: 15px; margin-top: 22px; display: flex; align-items: flex-start; gap: 10px; }
.overview-note > span { font-size: 21px; font-weight: 800; color: #0ea399; }
.overview-note p { margin: 0; color: #66758b; line-height: 1.65; font-size: 11px; }
.side-quote { border-radius: 18px; padding: 24px; background: var(--navy); color: white; position: relative; overflow: hidden; }
.side-quote::after { content: ""; position: absolute; height: 130px; width: 130px; border: 24px solid #ffffff07; border-radius: 50%; right: -42px; bottom: -80px; }
.quote-symbol { font-size: 46px; line-height: .8; color: #27c7b4; font-weight: 900; }
.side-quote p { font-size: 16px; line-height: 1.55; font-weight: 650; margin: 4px 0 21px; position: relative; z-index: 1; }
.side-quote small { font-size: 9px; letter-spacing: 2px; color: #88afbd; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #98a3b5; font-size: 11px; padding: 23px max(30px, calc((100vw - 1230px)/2)); border-top: 1px solid #e5ebf1; }
.site-footer a { color: #0b9489; font-weight: 750; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media(max-width: 780px) { .topbar { height:auto; min-height:76px; padding:14px 18px; flex-wrap:wrap; } .topbar-right { gap:8px; flex-wrap:wrap; } .mini-pill { display:none; } .subject-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .subject-card { padding:12px 8px; } .subject-card strong { font-size:12px; } .subject-card small { font-size:9px; } }

/* Active quiz */
.quiz-topline { max-width: 950px; margin: 30px auto 18px; display: flex; align-items: center; justify-content: space-between; }
.text-button { border: 0; background: transparent; color: #68788b; font-weight: 700; font-size: 12px; padding: 8px 0; }
.text-button:hover { color: #0a9f96; }
.quiz-container { max-width: 950px; margin: 0 auto 80px; }
.quiz-progress-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.quiz-progress-header > div:first-child { display: grid; gap: 8px; }
.quiz-progress-header strong { font-size: 19px; letter-spacing: -.5px; }
.quiz-stats { display: flex; gap: 10px; align-items: center; color: #697b8e; font-size: 12px; font-weight: 800; }
.timer-chip { padding: 8px 10px; color: #375975; background: #e8f0f5; border-radius: 10px; font-variant-numeric: tabular-nums; }
.timer-chip.urgent { color: #c63b38; background: #ffeae6; }
.progress-track { width: 100%; height: 9px; border-radius: 20px; background: #dfe7ed; overflow: hidden; margin-bottom: 22px; }
.progress-fill { width: 0; height: 100%; border-radius: 20px; background: linear-gradient(90deg, #0b9d96, #69d9bb); transition: width .3s ease; }
.question-panel { border: 1px solid #e2e8ef; border-radius: 22px; background: white; box-shadow: var(--shadow); padding: 42px; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topic-tag { font-size: 11px; font-weight: 850; padding: 8px 13px; background: #e8f8f5; color: #087f79; border-radius: 30px; }
.question-number { font-size: 10px; font-weight: 900; letter-spacing: 1.5px; color: #a1abba; }
.question-panel h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.36; letter-spacing: -.8px; margin: 23px 0 8px; max-width: 780px; }
.question-help { color: #a0aab9; font-size: 12px; margin: 0 0 29px; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.answer-option { min-height: 91px; text-align: left; background: #fafbfd; border: 1.5px solid #e3e8ef; border-radius: 13px; padding: 17px; display: flex; align-items: center; gap: 13px; color: #303f53; line-height: 1.45; font-size: 13px; font-weight: 650; transition: border-color .16s, background .16s, transform .16s; }
.answer-option:hover:not(:disabled) { border-color: #91b9bb; transform: translateY(-1px); background: #f4faf9; }
.answer-option .answer-letter { height: 36px; width: 36px; display: grid; place-items: center; border-radius: 10px; flex-shrink: 0; color: #fff; font-weight: 900; font-size: 14px; }
.answer-option[data-index="0"] .answer-letter { background: #5367ba; }
.answer-option[data-index="1"] .answer-letter { background: #d88259; }
.answer-option[data-index="2"] .answer-letter { background: #199c90; }
.answer-option[data-index="3"] .answer-letter { background: #9169b8; }
.answer-option.selected { border-color: #11a79d; box-shadow: inset 0 0 0 1px #11a79d; background: #effaf8; }
.answer-option.correct { border-color: #13ab83; background: #e7f8f0; box-shadow: inset 0 0 0 1px #13ab83; }
.answer-option.incorrect { border-color: #dd6b62; background: #fff0ef; }
.answer-option:disabled { cursor: default; }
.answer-option .answer-text { flex: 1; }
.answer-option .answer-status { font-size: 19px; color: #0b9770; font-weight: 900; }
.answer-option.incorrect .answer-status { color: #cb4d49; }
.feedback { display: flex; align-items: flex-start; gap: 15px; background: #e6f8f0; border: 1px solid #c2e9d9; color: #164f40; border-radius: 17px; padding: 20px 23px; margin-top: 16px; }
.feedback.not-correct { background: #fff5ea; border-color: #f2ddc2; color: #765027; }
.feedback-icon { height: 36px; width: 36px; flex-shrink: 0; background: #20ab82; border-radius: 50%; color: white; display: grid; place-items: center; font-size: 22px; font-weight: 900; }
.feedback.not-correct .feedback-icon { background: #e69b56; }
.feedback h3 { font-size: 15px; margin: 1px 0 7px; }
.feedback p { margin: 4px 0; font-size: 12px; line-height: 1.65; }
.feedback-source { font-size: 10px; color: #64877b; font-weight: 700; }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 0; }
.quiz-actions > span { color: #9fa9b8; font-size: 11px; }

/* Results */
.result-hero { text-align: center; padding: 58px 0 31px; }
.result-hero h1 { margin: 12px 0; font-size: clamp(29px, 4vw, 45px); letter-spacing: -1.5px; }
.result-hero p { margin: 0; color: #7c899b; font-size: 14px; }
.results-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; }
.result-score-panel { display: grid; justify-items: center; padding: 32px 30px 25px; }
.score-ring { width: 183px; height: 183px; border-radius: 50%; border: 14px solid transparent; background: linear-gradient(white, white) padding-box, conic-gradient(#17ae9e var(--score), #e5efee 0) border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.score-ring span { font-size: 44px; font-weight: 900; letter-spacing: -2px; }
.score-ring small { font-size: 10px; color: #8a9bab; letter-spacing: 1.8px; font-weight: 900; }
.result-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; text-align: center; }
.result-numbers div { display: grid; gap: 2px; }
.result-numbers strong { font-size: 25px; }
.result-numbers small { color: #8492a6; font-size: 10px; }
.best-line { color: #8190a2; font-size: 11px; text-align: center; margin: 22px 0 0; }
.result-topics-panel { padding: 30px; }
.result-topics-panel h2 { margin-bottom: 25px; }
.topic-result { margin-bottom: 21px; }
.topic-result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 750; margin-bottom: 9px; }
.topic-result-head small { font-size: 12px; font-weight: 650; color: #7d8ca0; }
.topic-result-track { height: 11px; background: #eef2f6; border-radius: 20px; overflow: hidden; }
.topic-result-fill { height: 100%; background: linear-gradient(90deg, #21b7ab, #70d9be); border-radius: 20px; }
.mistakes-panel { padding: 30px; margin-top: 18px; }
.mistakes-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.mistakes-heading h2 { margin-top: 7px; }
.mistake-badge { font-size: 11px; color: #b16728; background: #fff2e7; border-radius: 20px; padding: 9px 12px; font-weight: 800; }
.mistake-item { padding: 18px 2px; border-top: 1px solid #e9edf2; }
.mistake-item h3 { margin: 0 0 10px; font-size: 13px; line-height: 1.45; }
.mistake-item p { font-size: 12px; margin: 5px 0; color: #748194; line-height: 1.55; }
.mistake-item .right-answer { color: #087d6b; font-weight: 800; }
.mistake-item .wrong-answer { color: #b9615d; }
.mistake-item .explain-text { margin-top: 9px; background: #f2f8f8; padding: 11px 12px; color: #63778a; border-radius: 8px; }
.all-correct { text-align: center; color: #447c72; background: #effaf6; padding: 22px; border-radius: 12px; font-size: 14px; }
.result-actions { display: flex; justify-content: center; gap: 12px; margin: 22px 0 75px; }
.secondary-button { background: white; color: #30495d; border: 1px solid #dce5ed; box-shadow: none; }
.secondary-button:hover { background: #eaf4f3; }
.account-gate { position: fixed; z-index: 200; inset: 0; background: linear-gradient(135deg, rgba(10,23,43,.97), rgba(11,54,66,.94)); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.account-gate[hidden] { display: none; }
.account-card { width: min(100%, 470px); padding: clamp(25px, 5vw, 42px); box-shadow: 0 22px 65px rgba(0,0,0,.2); text-align: center; }
.account-card { position: relative; }
.account-close { position: absolute; right: 14px; top: 11px; background: none; border: 0; color: #6d8296; font-size: 27px; line-height: 1; cursor: pointer; padding: 7px; }
.account-signed-in { padding: 15px; background: #edf8f6; border-radius: 11px; }
.account-signed-in[hidden] { display: none; }
.account-signed-in strong { display: block; color: #176e63; font-size: 16px; }
.account-signed-in p { font-size: 12px; color: #55766f; line-height: 1.6; }
.account-signed-in a { color: #317e8d; font-size: 12px; }
.account-symbol { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: #0e2440; color: white; margin: 0 auto 23px; font-size: 34px; font-weight: 900; }
.account-symbol span { color: #33d0b8; }
.account-card h1 { margin: 13px 0 12px; font-size: clamp(29px,5vw,38px); letter-spacing: -1.5px; color: #1f3347; }
.account-card > p { margin: 0 auto 25px; line-height: 1.7; color: #708296; font-size: 14px; max-width: 350px; }
.account-card .primary-button { display: flex; width: 100%; align-items: center; justify-content: center; margin-top: 13px; text-decoration: none; }
.account-card .primary-button[hidden] { display: none; }
.account-card #registrationForm { display: grid; gap: 10px; text-align: left; }
.account-card #registrationForm[hidden] { display: none; }
.account-card #registrationForm label { font-size: 12px; color: #596c7d; font-weight: 800; }
.account-card #registrationForm input { border: 1px solid #d9e6ee; border-radius: 11px; padding: 13px; font: inherit; color: #26384c; }
.account-card .account-assurance { font-size: 10px; color: #7c91a3; margin: 25px 0 0; }
.account-card .account-error { color: #ae4c45; background: #fff1ef; border-radius: 8px; padding: 9px; margin: 15px 0 0; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr .65fr; }
  .hero-art { transform: scale(.78); margin: -30px; }
  .setup-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .side-quote { min-height: 100%; }
}
@media (max-width: 680px) {
  main { padding: 0 17px; }
  .topbar { height: 67px; padding: 0 17px; }
  .topbar-right { gap: 7px; }
  .topbar-right .mini-pill { display: none; }
  .account-link, .owner-login { font-size: 10px; padding: 9px 8px; }
  .account-link { max-width: 94px; white-space: normal; text-align: center; line-height: 1.15; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 8px; letter-spacing: 1px; }
  .top-label { display: none; }
  .hero { display: block; padding: 38px 0 22px; min-height: 0; }
  .hero h1 { letter-spacing: -1.7px; font-size: clamp(32px, 8.6vw, 43px); }
  .hero p { font-size: 13px; line-height: 1.7; }
  .hero-art { display: none; }
  .hero-chips { gap: 6px; margin-top: 20px; }
  .hero-chips span { font-size: 10px; padding: 6px 9px; }
  .settings-panel { padding: 23px 18px 21px; }
  .panel h2 { font-size: 20px; }
  .group-heading { display: block; }
  .group-heading span { display: block; margin-top: 5px; }
  .mode-grid { gap: 8px; }
  .mode-card { padding: 12px; min-height: 148px; }
  .mode-card strong { font-size: 12px; }
  .mode-card > span:not(.mode-icon):not(.mode-indicator) { font-size: 10px; }
  .topic-chip { font-size: 10.5px; padding: 9px 10px; }
  .side-stack { grid-template-columns: 1fr; }
  .side-quote { min-height: unset; }
  .site-footer { display: grid; gap: 6px; padding: 19px 17px; font-size: 10px; }
  .quiz-topline { margin: 20px auto 20px; }
  .quiz-progress-header strong { font-size: 16px; }
  .question-panel { padding: 24px 18px; border-radius: 16px; }
  .question-panel h2 { margin-top: 22px; }
  .answer-grid { grid-template-columns: 1fr; gap: 9px; }
  .answer-option { min-height: 68px; padding: 11px 13px; font-size: 12.5px; }
  .answer-option .answer-letter { width: 33px; height: 33px; }
  .quiz-actions { display: block; }
  .quiz-actions > span { display: block; margin: 0 0 14px; }
  .quiz-actions button { width: 100%; justify-content: space-between; }
  .feedback { padding: 16px; }
  .results-grid { grid-template-columns: 1fr; }
  .mistakes-panel, .result-topics-panel { padding: 23px 19px; }
  .result-hero { padding-top: 36px; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
