@charset "UTF-8";
:root{--paper:#f4f8ff;--white:#fff;--ink:#162b48;--muted:#576b85;--primary:#1565e8;--accent-light:#ffffff;--line:#d8e3f2;--soft:#eaf2ff;--red:#a33532;--blue:#1565e8;--shadow:0 12px 36px #17447c0a;font-family:"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}

*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
button,input,select{font:inherit}
button,a,input,select{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.48}
a{color:var(--primary);text-underline-offset:4px}
button{color:inherit}
p{line-height:1.75}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #155cce;outline-offset:4px}
button{border:0;background:none}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{word-break:keep-all;letter-spacing:-.045em}
h1{font-size:44px;line-height:1.27;font-weight:750;margin-bottom:18px}
h2{font-size:24px;line-height:1.45}
h3{font-size:17px;line-height:1.5}
small,.muted{color:var(--muted)}
.skip{position:absolute;top:-100px;left:20px;z-index:100;background:white;padding:15px}
.skip:focus{top:10px}
.site-header{height:90px;border-bottom:1px solid var(--line);background:var(--paper)}
.header-inner{max-width:1180px;margin:auto;padding:0 30px;height:100%;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px;text-align:left;padding:0;font-size:19px;font-weight:750;letter-spacing:-.04em}
.brand svg{height:43px;width:43px;border-radius:12px;padding:7px;background:var(--primary);stroke:var(--accent-light);stroke-width:1.6;fill:var(--accent-light)}
.brand small{display:block;font-size:9px;letter-spacing:1.3px;font-weight:600;margin-top:5px}
.site-header nav{display:flex;gap:16px}
.nav-button{padding:10px 2px;font-size:13px;font-weight:600}
.nav-button #wrong-count{background:#e4eeff;min-width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;margin-left:4px;font-size:11px}
main{max-width:1180px;margin:auto;padding:48px 30px 64px;min-height:72vh;outline:none}
.eyebrow{display:flex;gap:9px;align-items:center;font-size:11px;letter-spacing:1.5px;font-weight:700;color:var(--primary);margin-bottom:19px}
.eyebrow:before{content:"";width:7px;height:7px;background:#2992ff;border-radius:50%}
.hero{display:flex;justify-content:space-between;align-items:flex-start;gap:40px;margin-bottom:36px}
.hero p{font-size:15px;color:var(--muted);max-width:570px;margin-bottom:0;word-break:keep-all}
.hero-stats{display:flex;gap:34px;padding-top:40px;flex-shrink:0}
.hero-stats strong{display:block;font-size:38px;font-weight:550;letter-spacing:-2px;line-height:1.4;font-variant-numeric:tabular-nums}
.hero-stats span{font-size:12px;color:var(--muted)}
.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 308px;gap:22px;align-items:start}
.panel{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:var(--shadow)}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.panel-heading h2{font-size:20px;margin:0}
.step-num{color:#63758c;font-size:12px;letter-spacing:1px}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mode{position:relative;border:1px solid var(--line);padding:20px 17px;border-radius:12px;cursor:pointer;display:block;transition:border-color .15s,background .15s}
.mode.active{border-color:var(--primary);background:#edf5ff;box-shadow:inset 0 0 0 1px var(--primary)}
.mode input{position:absolute;top:20px;right:16px;accent-color:var(--primary);width:17px;height:17px}
.mode strong{display:block;margin:12px 0 7px;font-size:18px}
.mode small{display:block;font-size:12px;line-height:1.65;padding-right:8px}
.mode-icon{display:block;width:32px;height:32px;border:1px solid #b9cef1;border-radius:9px;padding:6px;color:var(--primary)}
.section-divider{height:1px;background:var(--line);margin:24px 0}
.field-title{display:flex;justify-content:space-between;gap:12px;font-size:13px;font-weight:650;margin:0 0 12px}
.field-title small{font-weight:400}
.topics{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:9px 13px;border:1px solid var(--line);border-radius:8px;font-size:12px;line-height:1.3;transition:background .15s}
.chip.active{background:var(--primary);border-color:var(--primary);color:white}
.chip:hover:not(.active){background:var(--soft)}
.options-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:23px}
.checkline{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.6}
.checkline input{accent-color:var(--primary);height:17px;width:17px;flex-shrink:0}
.count-select{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}
select{border:1px solid var(--line);border-radius:8px;background:white;padding:9px 30px 9px 12px;color:var(--ink)}
.start-row{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#edf5ff;border-radius:12px;margin-top:25px;padding:17px 18px}
.start-info strong{font-size:16px}
.start-info p{font-size:11px;margin:4px 0 0;color:var(--muted)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:13px;font-weight:650;padding:13px 20px;min-height:46px;border-radius:10px;line-height:1.4;text-decoration:none;transition:background .15s,transform .15s}
.button:active:not(:disabled){transform:translateY(1px)}
.primary{color:white;background:var(--primary)}
.primary:hover{background:#0953c9}
.secondary{background:white;border:1px solid var(--line)}
.secondary:hover{background:#edf5ff}
.danger{background:var(--red);color:white}
.text-button{font-size:12px;padding:8px 0;color:var(--primary);text-decoration:underline;text-underline-offset:4px}
.scope-panel{background:var(--primary);color:#ffffff;box-shadow:none;border-color:var(--primary)}
.scope-panel small{color:#dceaff}
.scope-panel h2{font-size:20px;margin:13px 0 24px}
.scope-path{margin:0 0 22px;padding:0;list-style:none}
.scope-path li{position:relative;display:flex;gap:15px;padding-bottom:22px;align-items:flex-start}
.scope-path li:before{content:"";position:absolute;left:11px;top:24px;bottom:0;width:1px;background:#6e9ff0}
.scope-path li:last-child:before{display:none}
.scope-path li:last-child{padding-bottom:0}
.scope-path i{border:1px solid #b9d6ff;color:var(--accent-light);font-style:normal;min-width:24px;height:24px;font-size:10px;display:flex;align-items:center;justify-content:center;border-radius:50%}
.scope-path strong{display:block;font-size:13px;margin:2px 0 6px}
.scope-path small{font-size:11px}
.scope-note{font-size:11px;line-height:1.8;color:#e7f1ff;margin:0;padding-top:19px;border-top:1px solid #75a4f2;word-break:keep-all}
.scope-note b{color:var(--accent-light)}
.home-secondary{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:22px}
.small-panel{padding:22px 26px;box-shadow:none}
.small-panel p{font-size:13px;color:var(--muted);margin:7px 0}
.small-panel h3{margin-bottom:5px}
.resume{border:1px solid #b9d4ff;background:#edf5ff;border-radius:12px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}
.resume strong{display:block;font-size:14px}
.resume p{font-size:12px;margin:4px 0 0;color:var(--muted)}
.resume .button{white-space:nowrap}
.recent{width:100%;border-collapse:collapse;font-size:12px}
.recent td{padding:8px 0;border-bottom:1px solid #edf2fa}
.recent td:last-child{text-align:right;font-weight:700}
.recent tr:last-child td{border:0}
.notice{font-size:11px;color:var(--muted);line-height:1.7;margin:15px 0 0}
.badge{display:inline-block;background:var(--soft);color:var(--primary);font-size:11px;padding:5px 9px;border-radius:6px;font-weight:650;line-height:1.4}
.badge.supplement{background:#fbf1db;color:#7c601c}
.badge.past{background:#e9f6ee;color:#1f6b3d}
.figure{margin:12px 0 0;padding:12px 14px;border-radius:10px;background:#fff;border:1px solid #d3e5ff;font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,"D2Coding",monospace;font-size:12.5px;line-height:1.6;white-space:pre;overflow-x:auto;max-width:100%;color:var(--ink);tab-size:2}
.figure.stem{margin:6px 0 14px;background:var(--soft);border-color:var(--line);font-size:13.5px}
.quiz-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.quiz-top h1{font-size:26px;margin:0}
.quiz-top p{font-size:12px;color:var(--muted);margin:5px 0 0}
.timer{font-variant-numeric:tabular-nums;font-size:22px;letter-spacing:.5px;display:flex;align-items:center;gap:10px}
.timer small{font-size:11px;letter-spacing:0}
.timer.urgent{color:var(--red)}
.quiz-layout{display:grid;grid-template-columns:minmax(0,1fr) 266px;gap:22px;align-items:start}
.question-sheet{padding:30px 32px}
.q-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}
.badges{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.question-number{font-size:11px;letter-spacing:1.3px;color:var(--muted);font-weight:650}
.flag{font-size:12px;white-space:nowrap;padding:7px 9px;border-radius:7px;color:var(--muted)}
.flag.active{color:#7c601c;background:#fbf1db}
.q-title{font-size:23px;line-height:1.65;margin:12px 0 13px;word-break:keep-all;overflow-wrap:anywhere}
.q-hint{font-size:12px;color:var(--muted);margin:0 0 25px}
.answer-list{border:0;padding:0;margin:0;display:grid;gap:10px}
.answer-list legend{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.answer{border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;gap:13px;padding:17px 16px;cursor:pointer;min-height:62px;position:relative;background:#fff}
.answer input{position:absolute;opacity:0;width:1px;height:1px}
.answer:has(input:focus-visible){outline:3px solid #155cce;outline-offset:3px}
.answer:has(input:checked){border-color:var(--primary);background:#edf5ff;box-shadow:inset 0 0 0 1px var(--primary)}
.answer:has(input:disabled){cursor:default}
.answer:not(:has(input:disabled)):hover{background:#f3f8ff}
.answer-letter{height:28px;width:28px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;border:1px solid #c7d9f2;border-radius:7px;flex-shrink:0;color:#576b85}
.answer:has(input:checked) .answer-letter{background:var(--primary);border-color:var(--primary);color:white}
.answer-text{font-size:14px;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}
.answer.correct{background:#edf6e7;border-color:#8baa7b}
.answer.wrong{background:#fcf0ed;border-color:#c99a94}
.answer-tag{margin-left:auto;flex-shrink:0;font-size:11px;font-weight:700}
.correct .answer-tag{color:#42662c}
.wrong .answer-tag{color:var(--red)}
.question-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:26px}
.question-actions .button{min-width:95px}
.action-right{display:flex;gap:9px;align-items:center}
.action-status{display:none}
.keyboard-hint{font-size:10px;color:var(--muted);text-align:center;margin:19px 0 0}
.progress-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:10px}
.progress{height:5px;background:#e6eef9;border-radius:5px;overflow:hidden}
.progress span{display:block;height:100%;background:var(--primary)}
.navigator{position:sticky;top:20px;padding:23px}
.navigator h2{font-size:15px;margin:0 0 17px}
.navigator summary{display:none;cursor:pointer}
.question-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:20px 0 16px}
.q-jump{position:relative;aspect-ratio:1;border:1px solid var(--line);border-radius:7px;font-size:12px;min-height:31px}
.q-jump.answered{background:#e7f1ff;border-color:#b8d3ff;color:#1859b8}
.q-jump.current{outline:2px solid var(--primary);outline-offset:1px;font-weight:750}
.q-jump.flagged:after{content:"";width:6px;height:6px;position:absolute;top:3px;right:3px;background:#c78a2a;border-radius:50%}
.nav-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:10px;color:var(--muted);margin-bottom:22px}
.nav-legend span{display:flex;align-items:center;gap:5px}
.nav-legend i{width:8px;height:8px;background:#b8d3ff;border-radius:2px}
.nav-legend .flag-dot{background:#c78a2a;border-radius:50%}
.navigator .button{width:100%}
.navigator .save-note{font-size:10px;text-align:center;color:var(--muted);margin:12px 0 0;line-height:1.6}
.explanation{margin-top:26px;border-top:1px solid var(--line);padding-top:23px}
.result-label{font-size:14px;font-weight:750;color:#3c642b;margin:0 0 11px}
.result-label.wrong{color:var(--red)}
.explanation p{font-size:13px;line-height:1.85}
.short-answer{border:1px solid #d3e5ff;border-radius:12px;background:#edf5ff;padding:16px 17px;margin-top:17px}
.short-answer h3{font-size:11px;color:#1859b8;margin:0 0 7px;letter-spacing:.2px}
.short-answer p{margin:0;font-size:13px}
.source{font-size:11px;color:var(--muted);margin-top:13px;line-height:1.7}
.source a{margin-left:7px}
.why{margin-top:17px;font-size:12px}
.why summary{cursor:pointer;color:var(--muted);padding:5px 0}
.why ul{padding:0;list-style:none}
.why li{padding:10px 0;border-bottom:1px solid var(--line);line-height:1.8}
.why li strong{display:block;font-size:12px}
.why li span{color:var(--muted)}
.result-hero{display:grid;grid-template-columns:170px 1fr;gap:38px;align-items:center;padding:30px;margin-bottom:24px}
.score-circle{width:160px;height:160px;border:8px solid #d3e5ff;background:#f1f7ff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.score-circle strong{font-size:48px;font-weight:650;letter-spacing:-2px}
.score-circle span{font-size:11px;color:var(--muted)}
.result-hero h1{font-size:28px;margin-bottom:12px}
.score-counts{display:flex;gap:24px;font-size:13px;margin:18px 0}
.score-counts strong{margin-left:7px}
.result-actions{display:flex;gap:10px;flex-wrap:wrap}
.result-hero .notice{margin:12px 0 0}
.topic-results{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:30px}
.topic-stat{padding:16px;border:1px solid var(--line);border-radius:11px;background:white}
.topic-stat strong{font-size:12px;display:block;margin-bottom:10px}
.topic-stat span{font-size:12px;color:var(--muted)}
.review-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}
.review-heading h2{margin:0;font-size:21px}
.review-item{border:1px solid var(--line);border-radius:12px;background:white;margin-bottom:12px;overflow:hidden}
.review-item>summary{display:flex;gap:12px;align-items:center;cursor:pointer;padding:19px 22px;list-style:none;font-size:14px;line-height:1.65}
.review-item>summary::-webkit-details-marker{display:none}
.review-item>summary:after{content:"＋";margin-left:auto;flex-shrink:0}
.review-item[open]>summary:after{content:"−"}
.review-status{font-size:10px;padding:4px 7px;border-radius:6px;white-space:nowrap;background:#edf6e7;color:#3c642b}
.review-status.wrong{background:#fbece8;color:var(--red)}
.review-status.unanswered{background:#edf0f4;color:#576773}
.review-content{padding:0 22px 22px}
.review-content .explanation{margin-top:8px;padding-top:15px}
.choice-review{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.choice-review li{font-size:12px;border:1px solid var(--line);border-radius:8px;padding:11px 13px;line-height:1.7}
.choice-review .is-correct{background:#eff5e8;border-color:#a7be94}
.choice-review .is-wrong{background:#fbeee9;border-color:#d1aaa1}
.choice-review small{display:block;margin-top:4px}
.empty{padding:32px;text-align:center;color:var(--muted);font-size:14px}
.loading{padding:60px;color:var(--muted)}
footer{max-width:1120px;border-top:1px solid var(--line);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 0 32px;color:var(--muted);font-size:10px}
footer button{font-size:10px;text-decoration:underline;text-underline-offset:3px}
dialog{border:1px solid var(--line);border-radius:18px;max-width:540px;width:calc(100% - 32px);padding:30px;color:var(--ink);box-shadow:0 25px 90px #15376030}
dialog::backdrop{background:#11274377;backdrop-filter:blur(3px)}
dialog h2{font-size:22px;padding-right:20px}
.dialog-close{position:absolute;right:15px;top:10px;font-size:27px;color:var(--muted);padding:5px 10px}
#dialog-body{font-size:14px;line-height:1.8}
#dialog-body p{margin-bottom:12px}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;background:var(--primary);color:white;font-size:13px;line-height:1.7;padding:13px 20px;max-width:calc(100% - 32px);border-radius:11px;box-shadow:var(--shadow);z-index:10}
.storage-warning{padding:12px 25px;background:#fff0cb;color:#70571a;text-align:center;font-size:12px;line-height:1.7}
.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.error-message{color:var(--red)}

@media(min-width:901px){.navigator details>div{display:block}
.navigator details:not([open])>div{display:block}
}

@media(max-width:1000px){.home-grid{grid-template-columns:minmax(0,1fr) 275px}
.quiz-layout{grid-template-columns:minmax(0,1fr) 235px}
.hero-stats{gap:20px}
.options-row{align-items:flex-start;flex-wrap:wrap}
.hero h1{font-size:38px}
footer{margin:0 30px}
.question-sheet{padding:25px}
.q-title{font-size:21px}
}





@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}
}

@media print{header,footer,.navigator,.question-actions,.review-heading,.result-actions{display:none}
main{max-width:none;padding:0}
.review-item{break-inside:avoid}
body{background:white}
.panel{box-shadow:none}
.review-content{display:block}
}


/* Clear selection, readable feedback, and a single primary action. */
:root{--primary-hover:#0953c9;--selected:#edf5ff;--success:#25653c;--success-bg:#edf8ef;--error-bg:#fff0ed;--focus:#155cce}

.button,.chip,.flag,.nav-button,.text-button,select,summary,.brand,footer button{min-height:44px}

.primary:hover{background:var(--primary-hover)}

.brand{min-height:48px}

.answer:has(input:checked).correct,.answer.correct{background:var(--success-bg);border-color:#6fa982;box-shadow:inset 0 0 0 1px #6fa982}

.answer:has(input:checked).wrong,.answer.wrong{background:var(--error-bg);border-color:#bf5c50;box-shadow:inset 0 0 0 1px #bf5c50}

.answer:has(input:checked).correct .answer-letter,.answer.correct .answer-letter{background:var(--success);border-color:var(--success);color:#fff}

.answer:has(input:checked).wrong .answer-letter,.answer.wrong .answer-letter{background:var(--red);border-color:var(--red);color:#fff}

.answer-tag.selected{color:var(--primary)}

.explanation{scroll-margin-block:24px}

.explanation:focus-visible{outline:2px solid var(--focus);outline-offset:8px;border-radius:4px}

.question-grid{grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}

.q-jump{min-width:44px;min-height:44px}

.dialog-close{min-width:44px;min-height:44px}

.why summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}

.why summary::after{content:'＋';font-size:18px}

.why[open] summary::after{content:'−'}

.why summary::-webkit-details-marker{display:none}





@media print{.question-actions{display:none}
main:has(.quiz-layout){padding-bottom:0}
}









.mobile-title,.mobile-nav-trigger,.footer-help{display:none}
.action-status.sr-only{display:block}
.modal-grid{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));max-height:45dvh;overflow:auto;padding:4px}
@media(max-width:760px){
  :root{background:#fff}
  .site-header{height:56px;background:#fff}
  .header-inner{padding:0 16px;gap:8px}
  .brand{font-size:16px;gap:8px;min-height:44px}
  .brand svg{width:30px;height:30px;border-radius:9px;padding:5px}
  .brand small,.about-button{display:none}
  .site-header nav{gap:8px}
  .nav-button{font-size:12px;min-width:44px;padding:8px 2px}
  main{padding:20px 16px 32px;min-height:0}
  .hero{display:block;margin-bottom:20px}
  .hero .eyebrow,.hero-stats,.desktop-title{display:none}
  .mobile-title{display:inline}
  .hero h1{font-size:24px;line-height:1.35;margin:0 0 8px}
  .hero p{font-size:14px;line-height:1.6;margin:0}
  .hero p br{display:none}
  .home-grid{display:block}
  .home-grid>.panel:first-child{padding:0;border:0;border-radius:0;box-shadow:none}
  .panel-heading{margin:0 0 12px}
  .panel-heading h2{font-size:16px}
  .step-num,.field-title small{display:none}
  .mode-grid{gap:10px}
  .mode{padding:14px 12px;border-radius:10px}
  .mode-icon{display:none}
  .mode input{top:15px;right:12px;width:18px;height:18px}
  .mode strong{font-size:16px;margin:0 24px 6px 0}
  .mode small{font-size:12px;padding:0;line-height:1.5}
  .section-divider{margin:20px 0}
  .field-title{font-size:14px}
  .topics{gap:8px}
  .chip{font-size:13px;padding:10px 12px;min-height:44px}
  .options-row{flex-wrap:wrap;gap:8px 16px;margin-top:16px}
  .checkline{font-size:13px;min-height:44px;cursor:pointer}
  .checkline input{width:20px;height:20px}
  .count-select{font-size:13px}
  select{font-size:16px;min-height:44px}
  .start-row{position:static;display:block;background:none;border-radius:0;padding:0;margin:20px 0 0}
  .start-info{margin-bottom:12px}
  .start-info strong{font-size:15px}
  .start-info p{font-size:12px;line-height:1.6;margin-top:3px}
  .start-row .button{width:100%;min-height:48px;font-size:16px}
  .button{font-size:14px;min-height:48px}
  .notice{font-size:12px;margin-top:12px;line-height:1.6}
  .resume{padding:12px 14px;align-items:center;margin-bottom:20px;border-radius:10px}
  .resume strong{font-size:13px}
  .resume p{font-size:12px}
  .resume .button{padding:10px 12px;min-height:44px;font-size:13px}
  .scope-panel{margin-top:28px;border-radius:12px;padding:20px;box-shadow:none}
  .scope-panel h2{font-size:19px;margin:8px 0 16px}
  .scope-path{display:grid;grid-template-columns:1fr 1fr;gap:20px 12px;margin-bottom:20px}
  .scope-path li{padding:0;gap:8px}
  .scope-path li:before{display:none}
  .scope-path strong{font-size:13px}
  .scope-path small,.scope-note{font-size:12px}
  .home-secondary{display:block}
  .small-panel{border:0;border-top:1px solid var(--line);border-radius:0;padding:20px 0;margin-top:24px;box-shadow:none}
  .text-button,.small-panel p{font-size:14px}
  .quiz-top{display:flex;align-items:center;gap:8px;margin:0 0 12px;min-height:44px}
  .quiz-top h1{font-size:14px;letter-spacing:-.02em;font-weight:650;white-space:nowrap}
  .quiz-top p,.quiz-top>.badge{display:none}
  .mobile-nav-trigger{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;border-radius:8px;font-size:13px;color:var(--primary);background:var(--soft);margin-left:auto;white-space:nowrap}
  .timer{font-size:17px;display:block;white-space:nowrap;line-height:1.5}
  .timer small{display:none}
  .quiz-layout{display:block}
  .quiz-layout>.navigator{display:none}
  body:has(.quiz-layout) footer{display:none}
  .question-sheet{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
  .q-meta{margin:0 0 8px;gap:8px;min-height:44px;align-items:center}
  .badge{font-size:12px;padding:4px 8px}
  .flag{font-size:12px;min-height:44px;padding:8px;color:var(--muted)}
  .question-number,.q-hint{display:none}
  .q-title{font-size:21px;line-height:1.5;margin:0 0 20px;letter-spacing:-.04em}
  .answer-list{gap:10px}
  .answer{min-height:56px;padding:13px 12px;gap:12px;flex-wrap:wrap;border-radius:10px}
  .answer-letter{width:26px;height:26px;font-size:12px}
  .answer-text{font-size:16px;line-height:1.55;flex:1;min-width:0}
  .answer-tag{font-size:12px;flex-basis:100%;padding-left:38px;max-width:none;margin-top:-4px}
  .answer-tag.selected{display:none}
  .answer:has(input:checked) .answer-letter{outline:2px solid var(--primary);outline-offset:2px}
  .answer:has(input:checked).correct .answer-letter,.answer:has(input:checked).wrong .answer-letter{outline:none}
  .question-actions{position:static;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:20px;padding:0;background:transparent;border:0;box-shadow:none}
  .question-actions .button{min-height:48px;min-width:0;font-size:14px;padding:12px 16px}
  .question-actions>.button{padding:12px 8px;border:0;background:none;color:var(--muted);white-space:nowrap}
  .action-right{display:flex;gap:8px;min-width:0}
  .action-right .skip-question{padding:12px 8px;border:0;background:none;color:var(--muted);font-size:13px}
  .action-right>.primary{min-width:140px}
  .keyboard-hint{display:none}
  .explanation{margin-top:24px;padding-top:20px}
  .explanation p,.short-answer p{font-size:16px;line-height:1.75}
  .short-answer{padding:16px;margin-top:16px}
  .short-answer h3{font-size:13px}
  .source{font-size:12px}
  .source a{display:inline-flex;align-items:center;min-height:44px;margin-left:0;margin-right:8px}
  .why{font-size:14px}
  .why summary{font-size:14px}
  .why li strong,.why li span,.choice-review li{font-size:15px;line-height:1.75}
  .result-hero{display:block;padding:0 0 24px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;margin-bottom:20px}
  .score-circle{width:auto;height:auto;border:0;border-radius:0;background:none;align-items:flex-start;margin-bottom:16px}
  .score-circle strong{font-size:40px;line-height:1.2;color:var(--primary)}
  .score-circle>span{font-size:12px;margin-top:6px}
  .result-hero h1{font-size:23px;line-height:1.4}
  .score-counts{gap:20px;margin:16px 0}
  .result-actions{display:grid;grid-template-columns:1fr;width:100%;gap:8px}
  .topic-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px}
  .topic-stat{padding:12px;border-radius:8px}
  .topic-stat strong,.topic-stat span{font-size:13px}
  .review-heading{display:block;margin:20px 0 16px}
  .review-heading h2{font-size:19px;margin-bottom:12px}
  .review-heading .topics{gap:6px}
  .review-item>summary{font-size:15px;padding:16px 12px;gap:8px}
  .review-status{font-size:11px}
  .review-content{padding:0 12px 16px}
  dialog{padding:24px 20px;max-height:calc(100dvh - 32px);overflow:auto}
  #dialog-body{font-size:16px}
  .modal-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:45dvh}
  .q-jump{font-size:14px;min-width:44px;min-height:44px}
  .nav-legend{font-size:12px}
  .dialog-actions{flex-wrap:wrap}
  .dialog-actions .primary{flex:1}
  .toast{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  footer{margin:0 16px;padding:16px 0 calc(16px + env(safe-area-inset-bottom,0px));font-size:11px;flex-wrap:wrap;gap:8px}
  footer span:first-child{display:none}
  footer button{font-size:12px;padding:8px 0}
  footer .footer-help{display:inline-flex;align-items:center}
  footer span{flex-basis:100%}
}
@media(max-width:380px){
  .header-inner{padding:0 12px}
  .brand{font-size:15px;gap:6px}
  .site-header nav{gap:4px}
  main{padding:16px 12px 28px}
  .hero h1{font-size:22px}
  .quiz-top{gap:6px}
  .mobile-nav-trigger{font-size:12px;padding:8px}
  .q-title{font-size:20px}
  .question-actions{gap:4px}
  .question-actions .button{font-size:13px;padding:12px 8px}
  .action-right{gap:4px}
  .action-right>.primary{min-width:124px}
  .modal-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Consistent functional icons; never add a separate row on mobile. */
.icon{display:inline-block;width:20px;height:20px;flex-shrink:0;vertical-align:middle;pointer-events:none}
.button,.nav-button,.text-button,.flag,.mobile-nav-trigger,.footer-help{gap:7px}
.nav-button,.text-button,.flag{display:inline-flex;align-items:center;justify-content:center}
.nav-button #wrong-count{margin-left:0}
h2>.icon,h3>.icon{margin-right:8px;color:var(--primary)}
.mode strong{display:flex;align-items:center;gap:8px;margin-top:0}
.mode strong .icon{width:23px;height:23px;color:var(--primary)}
.flag .icon{width:18px;height:18px}
.flag.active .icon{fill:currentColor;fill-opacity:.18}
.result-label>.icon{margin-right:7px}
.source .icon{width:15px;height:15px;margin-left:3px}
.dialog-close{display:flex;align-items:center;justify-content:center}
.why summary::after{content:none}
.why[open] summary::after{content:none}
.why[open] summary>.icon{transform:rotate(180deg)}
.footer-help .icon{width:17px;height:17px}
@media(max-width:760px){
 .nav-button .icon{width:18px;height:18px}
 .home-button .nav-label{display:none}
 .home-button{width:44px}
 .site-header nav{gap:6px}
 .about-button,.footer-help{display:none}
 footer .footer-help{display:inline-flex}
 .mode strong{gap:6px}
 .mode strong .icon{width:19px;height:19px}
 .mobile-nav-trigger .icon{width:16px;height:16px}
 .timer{display:flex;gap:4px}
 .timer>.icon{width:16px;height:16px}
 .question-actions .button{gap:5px}
 .question-actions .icon{width:18px;height:18px}
}
@media(max-width:380px){
 .header-inner{gap:4px}
 .site-header nav{gap:2px}
 .mode strong{font-size:15px;gap:4px}
 .mode strong .icon{width:17px;height:17px}
 .question-actions .button{gap:4px}
 .mobile-nav-trigger{gap:4px}
}
