:root{--bg:#f2f6fa;--paper:#fff;--text:#192e46;--muted:#62758a;--accent:#1762ba;--line:#dce5ef;--good:#187547;--bad:#b33838;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:280px}button,input,select{font:inherit}button,select{touch-action:manipulation}button{cursor:pointer;min-height:44px;border:0;border-radius:10px;padding:11px 16px;color:var(--text);font-weight:600}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #77ade7;outline-offset:3px}.primary{background:var(--accent);color:#fff}.ghost{background:#edf3fa;color:#245585;border:1px solid var(--line)}.hidden{display:none!important}.sky-bg{display:none}.app-shell{max-width:1080px;margin:auto;padding:0 24px 40px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:26px 0 22px;border-bottom:1px solid var(--line)}.eyebrow{font-size:12px;color:var(--muted);margin:0 0 6px}h1{font-size:28px;line-height:1.3;margin:0;letter-spacing:-.5px}.top-draw{flex-shrink:0}.search-panel{padding:24px 0 18px}.search-label{display:block;font-size:19px;font-weight:700;margin-bottom:12px;color:var(--text)}.search-field{display:flex;align-items:center;gap:8px;background:white;border:1px solid #a8c1dc;border-radius:12px;padding:4px 6px 4px 14px;box-shadow:0 3px 12px #174b7a05}.search-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #1762ba15}.search-icon{font-size:28px;line-height:1;color:var(--accent)}.search-field input{min-width:0;width:100%;height:46px;border:0;outline:none;background:transparent;color:var(--text);font-size:16px}.search-field input:focus-visible{outline:none}.search-field input::placeholder{color:#718397}.clear-search{background:#edf3fa;white-space:nowrap;padding:8px 12px;font-size:13px}.search-hint{font-size:12px;color:var(--muted);margin:9px 0 0;line-height:1.6}.control-panel{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:14px;padding:0 0 20px}label{display:grid;gap:7px;color:var(--muted);font-size:13px}select{min-width:0;width:100%;min-height:44px;padding:10px 30px 10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);font-size:14px}.card-zone{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:20px;align-items:start}.question-card{min-width:0;background:var(--paper);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:12px;padding:26px;scroll-margin-top:16px}.card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px}#sourceBadge{color:var(--accent);font-size:13px;line-height:1.6}.icon-btn{flex-shrink:0;font-size:25px;font-weight:400;background:#f0f5fb;width:44px;padding:0;color:var(--accent)}#questionText{font-size:23px;font-weight:650;line-height:1.65;margin:20px 0 24px;overflow-wrap:anywhere}.options{display:grid;gap:12px}.option{width:100%;display:block;text-align:left;padding:15px 17px;border:1px solid var(--line);background:#f8fafd;font-size:16px;line-height:1.65;font-weight:400;overflow-wrap:anywhere}.option b{color:var(--accent);margin-right:10px}.option.correct{background:#eaf6ee;border-color:#70b88c;color:#155e37}.option.wrong{background:#fff0f0;border-color:#d78a8a;color:var(--bad)}.feedback{font-size:14px;line-height:1.7;color:var(--muted);background:#f3f6fa;border-radius:8px;margin:18px 0;padding:12px 14px;overflow-wrap:anywhere}.feedback.good{color:var(--good);background:#eaf6ee}.feedback.bad{color:var(--bad);background:#fff0f0}.card-actions{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px}.card-actions button{padding:12px 5px;font-size:14px}.answer-editor{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px;font-size:14px}.answer-editor button{background:#e3eefb;color:var(--accent);min-width:44px}.side-panel{display:grid;gap:20px}.dashboard{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#e8f0f9;border-radius:12px;padding:8px}.stat{padding:16px 5px;text-align:center}.stat:first-child{grid-column:span 2;border-bottom:1px solid #cfddec}.stat b{display:block;color:#205c9c;font-size:25px;font-weight:650;line-height:1.4}.stat span{font-size:12px;color:var(--muted)}.memo-panel{padding:0 10px}.memo-panel h3{margin:0;font-size:15px}.memo-panel ul{padding-left:17px;margin:10px 0}.memo-panel li{font-size:13px;line-height:1.9;color:var(--muted);margin:7px 0}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.results-heading h2{font-size:20px;margin:0}#searchCount{font-size:14px;color:var(--muted);line-height:1.7;margin:12px 0 18px}#searchList{display:grid;gap:16px}.search-result{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;overflow-wrap:anywhere}.result-meta{font-size:12px;color:var(--muted);margin:0 0 10px}.search-result h3{font-size:18px;line-height:1.7;margin:0 0 15px}.result-options{list-style:none;padding:0;margin:0;display:grid;gap:8px;font-size:15px;line-height:1.7}.result-options li{padding:8px 12px;border-radius:6px;background:#f5f8fb}.result-options .result-correct{background:#edf7f0;color:var(--good)}.result-answer{font-size:15px;font-weight:650;color:var(--good);line-height:1.7;margin:15px 0}.result-note{font-size:13px;line-height:1.7;color:#885719;background:#fff7e9;padding:10px 12px;border-radius:6px}mark{background:#ffebac;color:inherit;border-radius:2px}
@media(max-width:760px){.app-shell{padding:0 16px calc(24px + env(safe-area-inset-bottom))}.topbar{padding:20px 0 18px}h1{font-size:23px}.top-draw{font-size:14px;padding:10px 13px}.card-zone{grid-template-columns:minmax(0,1fr);gap:20px}.search-panel{padding:20px 0}.control-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding-bottom:16px}.control-panel .full{grid-column:span 2;justify-self:end;background:transparent;min-height:44px;padding:8px 0;border:0;font-size:12px;font-weight:400;color:var(--muted);margin-top:-8px}.question-card{padding:20px}#questionText{font-size:20px;line-height:1.65;margin:18px 0 22px}.dashboard{grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 0}.stat{padding:10px 1px}.stat:first-child{grid-column:auto;border:0}.stat b{font-size:20px}.stat span{font-size:11px}.memo-panel{padding:0 4px}.memo-panel ul{margin-bottom:0}.search-result{padding:18px}.side-panel{gap:18px}}
@media(max-width:360px){.app-shell{padding-left:12px;padding-right:12px}h1{font-size:21px}.question-card{padding:16px}.option{padding:13px;font-size:15px}.search-field input{font-size:16px}.search-field input::placeholder{font-size:13px}.card-actions{gap:6px}.card-actions button{font-size:13px}.search-label{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Original aviation palette and glass surfaces, shared by practice and search. */
:root{--bg:#06101f;--paper:rgba(255,255,255,.12);--text:#f5fbff;--muted:#b8d6ee;--accent:#49d3ff;--line:rgba(255,255,255,.18);--good:#c8ffdd;--bad:#ffd6d6;background:#06101f;color:var(--text)}
body{min-height:100svh;background:radial-gradient(circle at top,#1c75bc 0,#123b69 34%,#06101f 100%);background-attachment:fixed;font-family:"Microsoft YaHei",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.sky-bg{display:block;pointer-events:none}.sky-bg::before,.sky-bg::after{content:"";position:fixed;width:320px;height:320px;border-radius:50%;filter:blur(10px);pointer-events:none}.sky-bg::before{right:-170px;top:-160px;background:rgba(73,211,255,.15)}.sky-bg::after{left:-190px;bottom:-200px;background:rgba(255,209,102,.10)}
.app-shell{position:relative}.topbar,.question-card,.dashboard,.memo-panel,.search-result{border:1px solid var(--line);background:var(--paper);backdrop-filter:blur(18px);box-shadow:0 18px 42px rgba(0,0,0,.30)}
.topbar{padding:18px 20px;border-radius:0 0 20px 20px}.eyebrow{color:#ffd166}.primary{background:linear-gradient(135deg,#00b4d8,#4361ee);color:#fff}.ghost{background:rgba(255,255,255,.13);color:var(--text);border:1px solid rgba(255,255,255,.16)}button{border-radius:15px}
.search-field{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.32);backdrop-filter:blur(18px);border-radius:15px}.search-field:focus-within{border-color:#49d3ff;box-shadow:0 0 0 3px #49d3ff22}.search-field input::placeholder{color:#b8d6ee}.clear-search{color:var(--text);background:rgba(255,255,255,.13)}select{background:rgba(7,17,31,.88);color:var(--text);border-color:rgba(255,255,255,.22);border-radius:14px}
.question-card{border-top:1px solid var(--line);border-radius:26px;position:relative;overflow:hidden}.question-card::before{content:"✈";position:absolute;right:10px;bottom:-26px;font-size:130px;color:rgba(255,255,255,.055);transform:rotate(-16deg);pointer-events:none}.question-card>*{position:relative}
#sourceBadge{padding:7px 10px;border-radius:999px;border:1px solid rgba(255,209,102,.28);background:rgba(255,209,102,.18);color:#ffe8a3}.icon-btn{background:rgba(255,255,255,.10);color:#ffd166}.option{border-color:rgba(255,255,255,.20);background:rgba(255,255,255,.13);color:var(--text);border-radius:18px}.option b{color:#ffd166}.option.correct{background:rgba(62,224,127,.24);border-color:rgba(62,224,127,.85);color:#c8ffdd}.option.wrong{background:rgba(255,107,107,.24);border-color:rgba(255,107,107,.85);color:#ffd6d6}
.feedback{background:rgba(0,0,0,.18);border-radius:17px}.feedback.good{color:#c8ffdd;background:rgba(62,224,127,.18)}.feedback.bad{color:#ffd6d6;background:rgba(255,107,107,.18)}.answer-editor button{background:rgba(255,209,102,.28);color:var(--text)}
.dashboard{border-radius:22px}.stat:first-child{border-bottom-color:var(--line)}.stat b{color:#ffd166}.memo-panel{padding:16px;border-radius:22px}.memo-panel h3{color:#ffd166}.search-result{border-radius:22px}.result-options li{background:rgba(255,255,255,.10)}.result-options .result-correct{background:rgba(62,224,127,.20);color:#c8ffdd}.result-answer{color:#c8ffdd}.result-note{color:#ffe8a3;background:rgba(255,209,102,.16)}mark{color:#fff3bd;background:rgba(255,209,102,.28)}
@media(max-width:760px){.topbar{padding:14px 12px}.question-card{border-radius:20px}.memo-panel{padding:16px}.control-panel .full{color:var(--muted)}}

/* One-screen practice: reading area flexes; actions stay in view. */
html,body{height:100%;overflow:hidden}body{height:100dvh}.app-shell{height:100dvh;display:flex;flex-direction:column;padding-top:0;padding-bottom:max(12px,env(safe-area-inset-bottom));gap:10px;min-height:0}.topbar{flex-shrink:0;padding:12px 16px}.eyebrow{display:none}h1{font-size:23px}.search-panel{padding:0;flex-shrink:0}.search-label,.search-hint{display:none}.search-field{padding-top:0;padding-bottom:0}.search-field input{height:44px}.top-draw{min-height:42px}.search-results{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.results-heading{flex-shrink:0}.results-heading h2{font-size:18px}#searchCount{flex-shrink:0;margin:6px 0 10px;font-size:12px}#searchList{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding-bottom:8px}#practiceArea{flex:1;display:flex;flex-direction:column;min-height:0;gap:8px;position:relative}.practice-settings{flex-shrink:0}.practice-settings summary{cursor:pointer;min-height:32px;line-height:32px;color:var(--muted);font-size:13px;width:max-content}.practice-settings[open] .control-panel{position:absolute;top:36px;left:0;right:0;z-index:10;padding:16px;background:#102e4b;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 30px #0006}.card-zone{flex:1;display:flex;flex-direction:column;gap:8px;min-height:0}.question-card{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;padding:16px 20px;border-radius:20px}.card-topline{flex-shrink:0}#sourceBadge{font-size:12px;padding:5px 8px}.icon-btn{height:40px;min-height:40px;width:40px}.question-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:2px;scrollbar-width:thin;scrollbar-color:#ffffff50 transparent}#questionText{font-size:21px;line-height:1.55;margin:12px 0 16px}.options{gap:10px}.option{min-height:48px;padding:12px 14px;font-size:16px;line-height:1.5}.feedback{margin:12px 0;padding:10px 12px;font-size:13px;line-height:1.5}.card-actions{flex-shrink:0;padding-top:10px}.card-actions button{min-height:44px;padding:10px 5px}.side-panel{width:100%;flex-shrink:0}.dashboard{display:flex;justify-content:space-around;padding:3px 8px;border-radius:12px;box-shadow:none}.stat,.stat:first-child{border:0;padding:4px;display:flex;align-items:baseline;gap:5px}.stat b{font-size:17px}.stat span{font-size:11px}.answer-editor{margin:8px 0}.answer-editor button{min-height:36px;padding:6px 12px}.question-card::before{font-size:100px}
@media(max-width:760px){.app-shell{padding-left:12px;padding-right:12px;gap:8px}.topbar{padding:10px 12px}h1{font-size:21px}.question-card{padding:12px 14px}.control-panel{padding:12px}.stat,.stat:first-child{display:block;text-align:center;padding:2px}.stat b{font-size:16px;line-height:1.25}.stat span{font-size:10px}.dashboard{padding:4px}#questionText{font-size:19px}.search-field input::placeholder{font-size:14px}}
@media(max-height:700px){.topbar{padding-top:7px;padding-bottom:7px}.app-shell{gap:6px}.question-card{padding:10px 12px}#questionText{font-size:18px;margin:8px 0 12px}.option{padding:9px 12px;min-height:44px}.options{gap:8px}.feedback{padding:8px 10px;margin:10px 0}.card-actions{padding-top:8px}.dashboard{padding:2px}.practice-settings summary{min-height:28px;line-height:28px}}

/* Compact exam interface: search and random practice share the toolbar. */
.app-shell{padding-top:max(12px,env(safe-area-inset-top));gap:8px}
.search-toolbar{display:flex;align-items:center;gap:8px}.search-field{flex:1;min-width:0;border-radius:10px;padding-left:10px}.search-icon{font-size:23px}.search-field input{height:38px;font-size:14px}.search-field input::placeholder{font-size:13px}.clear-search{min-height:32px;padding:5px 8px;font-size:12px;border-radius:7px}.top-draw{min-height:40px;padding:8px 13px;font-size:13px;font-weight:600;border-radius:10px}
.practice-settings summary{font-size:12px;min-height:28px;line-height:28px}.practice-settings[open] .control-panel{top:32px}
.question-card{padding:14px 18px;border-radius:16px}.question-card::before{display:none}.card-topline{padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.12)}#sourceBadge{background:transparent;border:0;padding:0;color:#b8d6ee;font-size:12px;font-weight:400;border-radius:0;line-height:1.5}.icon-btn{height:32px;min-height:32px;width:32px;border-radius:8px;font-size:21px}
#questionText{font-size:18px;font-weight:600;line-height:1.65;margin:16px 0 18px}.option{border-radius:10px;min-height:44px;padding:10px 13px;font-size:15px;font-weight:400;line-height:1.55}.option b{font-weight:600;margin-right:9px}.options{gap:9px}.feedback{font-size:12px;line-height:1.6;border-radius:8px;padding:9px 11px;margin:14px 0}.card-actions{grid-template-columns:1.2fr 1fr 1fr;gap:8px;padding-top:10px;border-top:1px solid rgba(255,255,255,.12)}.card-actions button{min-height:38px;padding:8px 5px;border-radius:9px;font-size:13px;font-weight:500}.answer-editor{font-size:12px}.answer-editor button{min-height:32px;font-size:12px;border-radius:7px}
.dashboard{border-radius:10px;background:rgba(255,255,255,.07)}.stat b{font-size:15px;font-weight:600}.stat span{font-size:10px}
.search-result{border-radius:14px;padding:16px}.search-result h3{font-size:16px;font-weight:600;line-height:1.65}.result-options,.result-answer{font-size:14px}.search-result button{min-height:36px;padding:8px 12px;border-radius:8px;font-size:12px}.results-heading h2{font-size:16px}.results-heading button{min-height:36px;padding:8px 12px;font-size:12px;border-radius:8px}
@media(max-width:760px){.app-shell{padding-top:max(10px,env(safe-area-inset-top));padding-left:10px;padding-right:10px}.question-card{padding:12px 14px}#questionText{font-size:17px;margin:14px 0 16px}.option{font-size:14px;padding:10px 12px}.dashboard{padding:3px}.stat b{font-size:15px}.top-draw{padding:8px 11px;font-size:12px}}
@media(max-height:600px){#questionText{margin:10px 0 12px;font-size:16px}.option{padding:8px 11px}.feedback{margin:10px 0;padding:7px 10px}.card-topline{padding-bottom:6px}.card-actions{padding-top:8px}}

/* Always-visible compact filters; record management sits beside statistics. */
.control-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:0;flex-shrink:0;align-items:center}.control-panel label{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;color:var(--muted);min-width:0}.control-panel select{flex:1;min-width:0;min-height:36px;height:36px;padding:6px 22px 6px 9px;border-radius:8px;font-size:12px;background:rgba(7,17,31,.64)}
.dashboard{align-items:center;gap:3px}.stat{flex:1;min-width:0}.reset-records{flex-shrink:0;min-height:36px;padding:6px 9px;border-radius:7px;font-size:11px;font-weight:400;color:var(--muted);background:transparent;border-left:1px solid rgba(255,255,255,.16)}.reset-records:hover{background:rgba(255,255,255,.08);color:var(--text)}
@media(max-width:760px){.control-panel{padding:0;gap:8px}.control-panel label{gap:5px;font-size:10px}.control-panel select{padding-left:7px;font-size:12px}.dashboard{padding:4px}.reset-records{font-size:10px;padding:5px 7px;min-height:34px}.stat b{font-size:14px}}
@media(max-width:340px){.control-panel label{gap:4px}.control-panel select{font-size:11px;padding-left:5px}.reset-records{padding:5px;font-size:10px}.stat b{font-size:13px}}

/* Content-sized question card, proportionate controls and a clear page title. */
.app-shell{max-width:900px;gap:10px}.app-title{flex-shrink:0;text-align:center;font-size:20px;font-weight:600;line-height:1.5;letter-spacing:1px;margin:2px 0 4px;color:var(--text)}
.control-panel{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:10px 18px}.control-panel label{flex:0 1 auto;gap:7px;font-size:12px}.control-panel select{flex:0 1 auto;width:145px;max-width:100%;font-size:12px;height:34px;min-height:34px;padding:5px 24px 5px 9px}.control-panel label:nth-child(2) select{width:118px}
#practiceArea{flex:1;min-height:0;gap:10px}.card-zone{flex:0 1 auto;max-height:100%;gap:10px}.question-card{flex:0 1 auto;min-height:0;padding:14px 18px}.question-body{flex:0 1 auto;min-height:0}.card-topline{padding-bottom:8px}#questionText{font-size:18px;line-height:1.6;margin:14px 0 16px}.option{font-size:15px;min-height:42px;padding:9px 12px}.options{gap:8px}.feedback{margin:12px 0 10px;padding:8px 11px}.card-actions{padding-top:10px}.card-actions button{min-height:36px;padding:8px 5px}.side-panel{margin-top:0}.reset-records{background:rgba(255,183,76,.20);color:#ffe2a7;border:1px solid rgba(255,201,109,.65);border-radius:7px;font-weight:600;min-height:30px;padding:5px 9px;white-space:nowrap}.reset-records:hover{background:rgba(255,183,76,.32);color:#fff1d6}
@media(max-width:760px){.app-shell{gap:9px}.app-title{font-size:18px;margin:0 0 3px;letter-spacing:.5px}.control-panel{gap:8px 12px;justify-content:flex-start;padding:0}.control-panel label{font-size:11px;gap:5px}.control-panel select{width:126px;font-size:11px;height:32px;min-height:32px}.control-panel label:nth-child(2) select{width:102px}.question-card{padding:12px 14px}#questionText{font-size:17px;margin:12px 0 14px}.option{font-size:14px}.reset-records{font-size:10px;padding:5px 7px;min-height:30px}}
@media(max-width:340px){.control-panel{gap:8px}.control-panel label{font-size:10px;gap:4px}.control-panel select{width:116px;padding-left:6px}.control-panel label:nth-child(2) select{width:94px}.app-title{font-size:17px}}
@media(max-height:600px){.app-shell{gap:6px}.app-title{font-size:16px;margin:0}.question-card{padding:10px 12px}#questionText{font-size:16px;margin:10px 0 12px}.option{padding:8px 11px}.feedback{margin:10px 0 8px}}

/* Separate the two filter groups without widening their selects. */
.control-panel{justify-content:space-between}
@media(max-width:760px){.control-panel{justify-content:space-between}}

.control-panel{justify-content:flex-start;column-gap:24px}
@media(max-width:760px){.control-panel{justify-content:flex-start;column-gap:24px}}
@media(max-width:340px){.control-panel{column-gap:14px}}

/* Responsive portrait canvas; both filter groups always share one row. */
html,body{width:100%;max-width:100%;overflow:hidden}.app-shell{width:100%;max-width:560px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));margin-inline:auto}.search-toolbar,.search-field,#practiceArea,.card-zone,.question-card,.question-body,.side-panel{min-width:0}.control-panel{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);column-gap:clamp(12px,4vw,24px);width:100%;flex-wrap:nowrap}.control-panel label{min-width:0;display:flex;font-size:clamp(10px,2.8vw,12px);gap:5px}.control-panel select,.control-panel label:nth-child(2) select{flex:1;width:0;min-width:0;max-width:100%;height:34px;min-height:34px;font-size:clamp(10px,2.8vw,12px);padding:5px 18px 5px 7px}.card-topline{min-width:0}#sourceBadge{min-width:0;overflow-wrap:anywhere}.option{overflow-wrap:anywhere}.stat span{white-space:nowrap}.dashboard{gap:2px}.stat{padding-inline:1px}.reset-records{padding-inline:6px}.orientation-notice{display:none}
@media(max-width:340px){.app-shell{padding-left:8px;padding-right:8px}.top-draw{padding-inline:9px}.control-panel{column-gap:12px}.control-panel label{gap:4px}.question-card{padding-inline:12px}.stat span{font-size:9px}.reset-records{font-size:9px;padding-inline:5px}}
@media(orientation:landscape){.app-shell{display:none}.orientation-notice{display:flex;position:fixed;inset:0;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--text);padding:24px}.orientation-notice>span{font-size:42px;color:#49d3ff}.orientation-notice p{font-size:20px;font-weight:600;margin:12px 0}.orientation-notice small{font-size:14px;color:var(--muted)}}

/* Stable practice frame: only question content scrolls between questions. */
#practiceArea{flex:1;min-height:0}.card-zone{flex:1;min-height:0;max-height:none}.question-card{flex:1;min-height:0}.question-body{flex:1;min-height:0;overflow-y:auto;scrollbar-gutter:stable}.card-topline,.card-actions,.side-panel{flex-shrink:0}

/* Give filters breathing room and keep small-screen statistics legible. */
#practiceArea{padding-top:5px;gap:16px}
.dashboard{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;column-gap:5px;padding:7px 8px;align-items:center}
.stat,.stat:first-child{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0;grid-column:auto;border:0;line-height:1.3}
.stat b{font-size:15px;line-height:1.3}.stat span{font-size:10px;line-height:1.4;white-space:nowrap}.reset-records{font-size:10px;padding:5px 7px;min-height:30px}
#questionText{overflow-wrap:break-word;word-break:normal;line-break:auto}
@media(max-width:340px){.dashboard{column-gap:3px;padding:7px 5px}.stat b{font-size:13px}.stat span{font-size:9px}.reset-records{font-size:9px;padding:5px 4px}}
@media(max-height:600px){#practiceArea{padding-top:3px;gap:12px}}

/* Fixed two-line question slot and three stable, single-line option rows. */
#questionText{height:58px;min-height:58px;max-height:58px;font-size:18px;line-height:1.6;overflow:hidden;margin:14px 0 16px}
.options{grid-template-rows:repeat(3,44px);gap:9px}.option{height:44px;min-height:44px;display:flex;align-items:center;padding:9px 12px;white-space:nowrap;overflow:hidden}.option b{flex:0 0 20px;margin-right:9px;font-size:15px}.option-text{display:block;flex:1;min-width:0;white-space:nowrap;font-size:15px;line-height:1.5}
@media(max-width:760px){#questionText{height:56px;min-height:56px;max-height:56px;font-size:17px}.option-text{font-size:14px}}
@media(max-height:600px){#questionText{height:52px;min-height:52px;max-height:52px;font-size:16px;margin:10px 0 12px}.options{grid-template-rows:repeat(3,42px);gap:8px}.option{height:42px;min-height:42px}}

/* Practice is entirely fixed: no internal scrolling. */
.question-body{overflow:hidden;scrollbar-gutter:auto;display:flex;flex-direction:column}
#questionText,.options{flex-shrink:0}
.feedback{flex:0 1 auto;min-height:0;overflow:hidden}
.answer-editor{flex-shrink:0;margin:4px 0}
@media(max-height:650px){#questionText{height:46px;min-height:46px;max-height:46px;margin:8px 0 10px;font-size:16px}.options{grid-template-rows:repeat(3,38px);gap:7px}.option{height:38px;min-height:38px;padding:6px 10px}.feedback{margin:8px 0 5px;padding:6px 9px;font-size:11px;line-height:1.4}.answer-editor button{min-height:28px;padding:4px 10px}.card-topline{padding-bottom:5px}}

/* Reference spacing: two-line stem, equal options, feedback and fixed actions. */
.question-card{padding:12px 14px;display:grid;grid-template-rows:42px minmax(0,1fr) 46px;gap:0}
.card-topline{height:42px;padding:0 0 10px}.question-body{display:grid;grid-template-rows:minmax(0,1fr) 36px;align-content:start;overflow:hidden;padding:0}
#questionText{height:64px;min-height:64px;max-height:64px;font-size:18px;line-height:1.6;margin:12px 0 16px}
.options{grid-template-rows:repeat(3,44px);gap:9px}.option{height:44px;min-height:44px;padding:9px 12px;border-radius:11px}
.feedback{height:36px;min-height:36px;margin:12px 0 0;padding:8px 11px;line-height:20px;box-sizing:border-box;font-size:12px}
.question-body{display:flex;flex-direction:column}.question-body .feedback{flex-shrink:0}.card-actions{height:46px;padding-top:10px;align-self:end}.card-actions button{height:36px;min-height:36px}.answer-editor{margin:4px 0;gap:6px}.answer-editor button{min-height:26px;padding:3px 10px}
@media(max-height:700px){.question-card{grid-template-rows:36px minmax(0,1fr) 44px;padding:10px 12px}.card-topline{height:36px;padding-bottom:6px}#questionText{height:52px;min-height:52px;max-height:52px;margin:10px 0 12px;font-size:17px}.options{grid-template-rows:repeat(3,40px);gap:8px}.option{height:40px;min-height:40px;padding:7px 11px}.feedback{height:32px;min-height:32px;margin:10px 0 0;padding:6px 10px;font-size:11px}.card-actions{height:44px;padding-top:8px}}
@media(max-height:590px){.question-card{grid-template-rows:32px minmax(0,1fr) 40px;padding:8px 12px}.card-topline{height:32px}#questionText{height:46px;min-height:46px;max-height:46px;margin:7px 0 9px;font-size:16px}.options{grid-template-rows:repeat(3,36px);gap:7px}.option{height:36px;min-height:36px;padding:5px 10px}.feedback{height:28px;min-height:28px;margin:8px 0 0;padding:4px 9px}.card-actions{height:40px;padding-top:6px}.card-actions button{height:34px;min-height:34px}}

.question-body{display:grid;grid-template-rows:64px minmax(0,1fr) 36px;row-gap:12px;padding:12px 0 10px}.question-body #questionText{margin:0}.question-body .options{height:100%;min-height:0;grid-template-rows:repeat(3,minmax(0,1fr));gap:9px}.question-body .option{height:100%;min-height:0}.question-body .feedback{margin:0}
.question-body:has(.answer-editor:not(.hidden)){grid-template-rows:64px minmax(0,1fr) 36px 28px;row-gap:8px}.question-body .answer-editor{margin:0}
@media(max-height:700px){.question-body{grid-template-rows:52px minmax(0,1fr) 32px;row-gap:10px;padding:10px 0 8px}.question-body:has(.answer-editor:not(.hidden)){grid-template-rows:52px minmax(0,1fr) 32px 28px;row-gap:6px}}
@media(max-height:590px){.question-body{grid-template-rows:46px minmax(0,1fr) 28px;row-gap:8px;padding:7px 0 6px}.question-body:has(.answer-editor:not(.hidden)){grid-template-rows:46px minmax(0,1fr) 28px 26px;row-gap:4px}}

/* Keep option rows compact rather than stretching with tall viewports. */
.question-body{display:grid;grid-template-rows:64px 150px 36px;align-content:start;row-gap:12px;padding:12px 0 10px}
.question-body .options{height:150px;grid-template-rows:repeat(3,44px);gap:9px}
.question-body .option{height:44px;min-height:44px}
.question-body:has(.answer-editor:not(.hidden)){grid-template-rows:64px 150px 36px 28px;row-gap:8px}
@media(max-height:700px){.question-body{grid-template-rows:52px 136px 32px;row-gap:10px;padding:10px 0 8px}.question-body .options{height:136px;grid-template-rows:repeat(3,40px);gap:8px}.question-body .option{height:40px;min-height:40px}.question-body:has(.answer-editor:not(.hidden)){grid-template-rows:52px 136px 32px 28px;row-gap:6px}}
@media(max-height:590px){.question-body{grid-template-rows:46px 122px 28px;row-gap:8px;padding:7px 0 6px}.question-body .options{height:122px;grid-template-rows:repeat(3,36px);gap:7px}.question-body .option{height:36px;min-height:36px}.question-body:has(.answer-editor:not(.hidden)){grid-template-rows:46px 122px 28px 26px;row-gap:4px}}

/* Anchor C above feedback; option heights never consume spare space. */
.question-body{grid-template-rows:minmax(64px,1fr) 150px 36px;align-content:stretch;row-gap:12px;padding:12px 0 10px}
.question-body:has(.answer-editor:not(.hidden)){grid-template-rows:minmax(64px,1fr) 150px 36px 28px;row-gap:8px}
@media(max-height:700px){.question-body{grid-template-rows:minmax(52px,1fr) 136px 32px;row-gap:10px;padding:10px 0 8px}.question-body:has(.answer-editor:not(.hidden)){grid-template-rows:minmax(52px,1fr) 136px 32px 28px;row-gap:6px}}
@media(max-height:590px){.question-body{grid-template-rows:minmax(46px,1fr) 122px 28px;row-gap:8px;padding:7px 0 6px}.question-body:has(.answer-editor:not(.hidden)){grid-template-rows:minmax(46px,1fr) 122px 28px 26px;row-gap:4px}}
