:root{--bg:#f8faf5;--ink:#29382b;--muted:#899184;--green:#58b737;--deep:#3e9425;--line:#e5e9df;--yellow:#ffc839;--red:#e65c62;--shadow:0 5px 0 #dfe5d8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px 'Noto Sans SC',system-ui,sans-serif;-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #71b6f0;outline-offset:5px}button{color:inherit}a{color:inherit;text-decoration:none}.topbar{max-width:1160px;margin:auto;height:96px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-size:24px;font-weight:900;letter-spacing:-1px;display:flex;align-items:center;gap:10px}.brand-icon{color:var(--green);font-size:38px;line-height:1}.brand-dot{color:var(--green);margin-left:-9px}.header-right{display:flex;align-items:center;gap:25px}.course-label{font-size:12px;letter-spacing:1px;color:var(--muted)}main{max-width:1020px;margin:auto;padding:40px 24px 30px}.hero{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;min-height:275px;padding:8px 16px 25px}.hero h1{font-size:43px;line-height:1.45;margin:13px 0 12px;font-weight:900;letter-spacing:-1.5px}.hero h1 em{color:var(--green);font-style:normal}.hero p{color:#89917f;font-size:13px;line-height:1.9;margin:0}.hero-art{position:relative;height:252px;display:flex;align-items:center;justify-content:center}.halo{position:absolute;border-radius:50%;width:233px;height:233px;background:#eef3df;border:1px solid #e7edda}.orbit{position:absolute;width:300px;height:185px;border:1px dashed #d9e3c8;border-radius:50%;transform:rotate(-23deg)}.spark{position:absolute;font-size:25px;color:#b9d66c}.spark.s1{top:15px;right:55px;animation:twinkle 2.4s infinite}.spark.s2{bottom:24px;left:45px;font-size:17px;animation:twinkle 3s infinite}.robot{width:190px;height:220px;z-index:1;overflow:visible;filter:drop-shadow(0 8px 0 #dfe7cb);animation:bob 3.2s ease-in-out infinite}.robot .eye{transform-origin:center;animation:blink 5s infinite}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:4px 0 28px}.stat-card{display:flex;align-items:center;gap:14px;padding:19px 23px;background:white;border:1.5px solid var(--line);border-radius:19px;box-shadow:0 3px 0 #e8ecdf}.stat-icon{height:44px;width:44px;border-radius:14px;display:grid;place-items:center;font-size:23px;background:#fff6d9}.stat-card:nth-child(2) .stat-icon{background:#edf7e6}.stat-card:nth-child(3) .stat-icon{background:#eaf2ff}.stat-value{font-size:23px;line-height:1.4;font-weight:900;font-variant-numeric:tabular-nums}.stat-value small{font-size:12px;font-weight:500;margin-left:4px}.stat-label{font-size:11px;color:var(--muted);margin-top:2px}.challenge-card{background:#eff7e6;border:1.5px solid #dbeacb;border-radius:24px;padding:26px 30px;position:relative;overflow:hidden;display:grid;grid-template-columns:1fr 235px;gap:24px;align-items:center}.challenge-card:after{content:'✦';position:absolute;right:260px;bottom:-55px;font-size:160px;color:#e3efcf;pointer-events:none;z-index:0}.challenge-copy,.challenge-action{position:relative;z-index:1}.pill{display:inline-block;font-size:10px;font-weight:700;letter-spacing:1px;background:white;color:#6d994f;padding:5px 9px;border-radius:6px}.challenge-card h2{font-size:23px;margin:10px 0 8px;letter-spacing:-.5px}.challenge-card p{font-size:12px;color:#829475;margin:0;line-height:1.8}.primary{background:var(--green);border:0;border-bottom:5px solid var(--deep);border-radius:14px;color:white;padding:15px 25px;font-size:15px;font-weight:800;letter-spacing:1px;min-height:54px;transition:transform .15s,filter .15s;width:100%}.primary:hover{filter:brightness(1.04);transform:translateY(-2px)}.primary:active{transform:translateY(3px);border-bottom-width:2px}.challenge-action p{text-align:center;font-size:10px;margin-top:11px;color:#8b9b7f}.arrow{display:inline-block;margin-left:20px;font-size:19px}.history{margin-top:34px}.section-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.section-top h2{font-size:17px;margin:0;font-weight:800;display:flex;gap:9px;align-items:center}.section-top h2 span{font-size:18px;color:#9ba892}.local-tag{font-size:10px;color:#9aa391;border:1px solid var(--line);border-radius:7px;padding:4px 8px}.empty{border:1.5px dashed #dee5d5;border-radius:19px;display:flex;align-items:center;justify-content:center;gap:17px;padding:25px;background:#f6f8f1}.empty-icon{font-size:28px;opacity:.5}.empty strong{display:block;font-size:12px;margin-bottom:5px;color:#85917c}.empty p{font-size:11px;margin:0;color:#a2aa9b}.footer{text-align:center;font-size:10px;color:#a2ab99;margin:25px 0 0;letter-spacing:.5px}.footer span{color:#94b475;margin-right:5px}.history-row{display:flex;align-items:center;gap:16px;padding:17px 19px;border:1px solid var(--line);border-radius:15px;background:white;margin-bottom:10px}.medal{width:38px;height:42px;display:grid;place-items:center;background:#fff5d7;border-radius:12px;font-size:22px}.history-info{flex:1}.history-info strong{font-size:12px}.history-info p{font-size:10px;color:var(--muted);margin:5px 0 0}.history-score{font-size:21px;color:var(--green);font-weight:900}.history-score small{font-size:10px}.action-btn{background:transparent;border:0;color:#859376;padding:13px;font-size:12px;cursor:pointer}.history-more{display:block;margin:auto}.quiz{max-width:740px;margin:0 auto;animation:enter .35s ease}.quiz-top{display:flex;gap:17px;align-items:center;margin-bottom:24px}.progress{height:15px;border-radius:10px;background:#e5ebde;flex:1;overflow:hidden}.progress-fill{height:100%;background:var(--green);border-radius:10px;transition:width .45s;position:relative;min-width:0}.progress-fill:after{content:'';position:absolute;top:3px;left:6px;right:6px;height:4px;border-radius:8px;background:#8dd768}.progress-count{font-size:12px;font-weight:700;color:#819172;white-space:nowrap}.live-stats{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--line);border-radius:15px;padding:14px 4px;margin-bottom:30px}.live-stat{text-align:center;border-right:1px solid var(--line)}.live-stat:last-child{border:0}.live-stat b{font-size:17px;font-weight:800;font-variant-numeric:tabular-nums}.live-stat span{display:block;font-size:10px;color:var(--muted);margin-top:4px}.live-stat:first-child b{color:#dba42b}.live-stat:nth-child(2) b{color:var(--green)}.q-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#94a088;margin-bottom:13px}.q-meta strong{color:#77a655;background:#edf5e7;border-radius:7px;padding:5px 9px;font-size:10px;letter-spacing:1px}.question{font-size:21px;line-height:1.8;font-weight:700;margin:0 0 25px;outline:0}.options{display:flex;flex-direction:column;gap:13px}.option{display:flex;align-items:center;gap:15px;text-align:left;line-height:1.65;padding:15px 18px;min-height:66px;background:white;border:2px solid var(--line);border-bottom-width:5px;border-radius:16px;transition:background .15s,transform .15s,border-color .15s;width:100%;font-size:14px}@media(hover:hover) and (pointer:fine){.option:not(:disabled):hover{border-color:#c7cec0}}.option:disabled{cursor:default;opacity:1;color:var(--ink)}.letter{width:31px;height:31px;flex-shrink:0;border:1.5px solid #e1e6db;border-radius:9px;display:grid;place-items:center;font-size:12px;font-weight:800;color:#94a187}.option .option-text{flex:1}.option .state{font-weight:900;font-size:18px}.option.correct{border-color:#80c654;background:#ecf8e4;animation:pop .3s}.option.correct .letter{background:#66b83e;border-color:#66b83e;color:white}.option.wrong{border-color:#ef9a9c;background:#fff0ef;animation:shake .35s}.option.wrong .letter{background:#e7767c;border-color:#e7767c;color:white}.feedback{margin-top:24px;padding:19px 22px;border-radius:17px;background:#ebf5e2;border:1px solid #d7e9c7;animation:enter .25s}.feedback.wrong-feedback{background:#fff1ef;border-color:#f7d8d4}.feedback p{font-size:12px;line-height:1.9;margin:10px 0;color:#78876d;overflow-wrap:anywhere}.wrong-feedback p{color:#987b78}.feedback .source{font-size:10px;opacity:.8}.feedback .primary{margin-top:8px}.results{max-width:650px;text-align:center;margin:auto;animation:enter .6s}.trophy-wrap{height:180px;position:relative;display:grid;place-items:center}.trophy{font-size:110px;filter:drop-shadow(0 8px 0 #e8dbaa);animation:trophy .9s cubic-bezier(.2,1.5,.5,1) both}.result-kicker{font-size:11px;letter-spacing:3px;font-weight:800;color:#9caa89}.results h1{font-size:36px;margin:13px 0 10px;color:var(--green);font-weight:900}.result-sub{font-size:13px;color:#8e9983;line-height:1.9}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:30px 0 20px}.result-stat{border:2px solid #e2ead8;background:white;border-radius:17px;overflow:hidden}.result-stat label{display:block;background:#edf5e4;color:#7f9a66;padding:10px 0;font-size:11px;font-weight:700}.result-stat b{display:block;padding:18px 4px;font-size:25px;font-weight:900;color:#63aa3a}.result-stat:nth-child(2) label{background:#fff5d8;color:#c79f38}.result-stat:nth-child(2) b{color:#d8ab2c}.result-stat:nth-child(3) label{background:#eaf1fd;color:#799ac6}.result-stat:nth-child(3) b{color:#7098cd}.result-details{font-size:12px;color:#91a183;line-height:2;margin-bottom:26px}.result-actions{max-width:330px;margin:auto}.saved-note{font-size:11px;color:#92a581;margin-top:21px}.confetti{position:fixed;top:-25px;width:10px;height:15px;z-index:20;pointer-events:none;animation:fall var(--duration) var(--delay) ease-in both}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,25px);background:#34482d;color:white;border-radius:12px;padding:13px 20px;font-size:12px;opacity:0;pointer-events:none;z-index:99;transition:.2s;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1.5px solid var(--line);border-radius:24px;padding:30px;max-width:365px;width:90%;text-align:center;background:var(--bg);color:var(--ink)}dialog::backdrop{background:#20301d66;backdrop-filter:blur(4px)}dialog h2{font-size:22px}dialog p{font-size:13px;line-height:1.9;color:var(--muted);margin-bottom:25px}.dialog-icon{font-size:45px}.offline-note{font-size:11px;color:var(--red);line-height:1.8}@keyframes bob{50%{transform:translateY(-9px)}}@keyframes blink{0%,43%,47%,100%{opacity:1}45%{opacity:.05}}@keyframes twinkle{50%{opacity:.35;transform:scale(.7) rotate(20deg)}}@keyframes enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@keyframes pop{50%{transform:scale(1.018)}}@keyframes trophy{from{opacity:0;transform:scale(.1) rotate(-25deg)}to{opacity:1;transform:scale(1) rotate(0)}}@keyframes fall{to{transform:translate3d(var(--drift),110vh,0) rotate(700deg)}}
@media(min-width:1200px){main{padding-top:45px}.hero{padding-bottom:33px}.history{margin-top:36px}}
@media(max-width:650px){.topbar{height:75px;margin:0 22px;padding:0 0}.brand{font-size:21px}.brand-icon{font-size:32px}.course-label{display:none}.header-right{gap:10px}main{padding:25px 21px 24px}.hero{display:flex;flex-direction:column-reverse;padding:0;min-height:0;align-items:stretch}.hero-art{height:218px;margin:-5px 0 9px}.halo{width:195px;height:195px}.orbit{width:262px;height:157px}.robot{width:164px;height:190px}.spark.s1{right:calc(50% - 108px)}.spark.s2{left:calc(50% - 110px);bottom:18px}.hero-copy{text-align:center}.hero h1{font-size:30px;line-height:1.5;letter-spacing:-1px;margin:10px 0 9px}.hero h1 br{display:none}.hero p{font-size:11px;line-height:1.9}.hero p br{display:none}.stats{gap:9px;margin:25px 0 21px}.stat-card{flex-direction:column;gap:7px;text-align:center;padding:13px 5px;border-radius:16px}.stat-icon{width:32px;height:32px;font-size:19px;border-radius:10px}.stat-value{font-size:21px}.stat-value small{font-size:10px}.stat-label{font-size:9px}.challenge-card{padding:22px;grid-template-columns:1fr;gap:22px;border-radius:22px}.challenge-card h2{font-size:21px}.challenge-card p{font-size:11px}.challenge-card:after{right:-15px;top:-20px;bottom:auto;font-size:135px}.challenge-action p{font-size:9px;margin-top:9px}.primary{font-size:14px;padding:14px 20px}.history{margin-top:27px}.section-top h2{font-size:15px}.empty{padding:21px 14px;gap:13px}.empty strong{font-size:11px}.empty p{font-size:10px}.empty-icon{font-size:25px}.local-tag{font-size:9px}.footer{font-size:9px;margin-top:23px}.quiz-top{gap:11px;margin-bottom:19px}.progress{height:13px}.progress-count{font-size:11px}.live-stats{margin-bottom:25px;padding:13px 2px}.live-stat b{font-size:15px}.live-stat span{font-size:9px}.question{font-size:19px;line-height:1.8;margin-bottom:23px}.option{padding:13px;min-height:64px;font-size:13px;gap:12px}.options{gap:11px}.feedback{padding:16px;margin-top:20px}.feedback p{font-size:11px}.results h1{font-size:30px}.trophy-wrap{height:160px}.trophy{font-size:96px}.result-grid{gap:9px}.result-stat b{font-size:22px}.result-stat label{font-size:10px}.result-sub{font-size:12px}.history-row{gap:10px;padding:14px}.history-info strong{font-size:11px}.history-info p{font-size:9px}.history-score{font-size:19px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}
@media(max-width:650px){.hero h1 br{display:initial}.hero h1{font-size:28px}.hero h1 em{white-space:nowrap}}

@media(max-width:650px){.brand{font-size:18px;letter-spacing:-.5px;gap:7px}.brand-dot{margin-left:-6px}}

.question-order{padding:0;margin:0 0 14px;border:0;min-width:0}
.question-order legend{font-size:10px;color:#789169;font-weight:600;margin-bottom:8px;padding:0}
.order-options{display:flex;gap:8px}
.order-choice{position:relative;flex:1;min-width:0;cursor:pointer}
.order-choice input{position:absolute;width:1px;height:1px;opacity:0}
.order-choice span{display:block;text-align:center;background:#fff;border:1.5px solid #dae7cf;border-radius:10px;padding:10px 3px;font-size:11px;white-space:nowrap;color:#88997c}
.order-choice input:checked+span{border-color:#80bc5f;color:#4d932c;background:#e4f2d9;font-weight:700}
.order-choice input:focus-visible+span{outline:3px solid #71b6f0;outline-offset:3px}

/* Practice, exam, answer card and notebook */
.notebook-entry{font:inherit;cursor:pointer;color:inherit;text-align:left}
.notebook-entry:hover{border-color:#b9d6a5}
.resume-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#fff;border:1px solid #dce9d2;border-radius:17px;padding:17px 20px;margin-bottom:20px}
.resume-bar strong{font-size:13px}.resume-bar p{font-size:11px;color:var(--muted);margin:7px 0 0}
.small-primary{background:var(--green);color:#fff;border:0;border-bottom:3px solid var(--deep);border-radius:10px;padding:11px 16px;font-size:12px;font-weight:700;white-space:nowrap}
.study-setup{grid-template-columns:1fr 270px}

.challenge-action .exam-rules{font-size:11px;line-height:2;text-align:left;margin:0 0 16px}.offline-line{font-size:11px;color:#9b947b;padding:16px 0 0;text-align:center}.offline-line.cache-ready{color:#719658}
.history-record{width:100%;text-align:left;color:inherit;font:inherit}.history-date{display:block;font-size:10px;color:var(--muted);margin-top:5px}.history-record:hover{border-color:#bacfa9}
.stats-clickable{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:4px}.stats-clickable .live-stat{background:none;border:0;border-right:1px solid var(--line);min-width:0;padding:0 2px;cursor:pointer}.stats-clickable .live-stat:last-child{border:0}.live-stat:hover span{color:var(--green)}.stats-clickable .live-stat b{font-size:16px;display:block;overflow-wrap:anywhere}.stats-clickable .live-stat span{font-size:9px}.stats-clickable .live-stat:first-child b{font-size:14px}.stats-clickable .live-stat:last-child b{color:#7392be}
.answer-panel[hidden]{display:none}.answer-panel{padding:13px 16px 10px;background:#fff;border:1px solid var(--line);border-radius:16px;margin:0 0 25px}.answer-panel-top{display:flex;justify-content:space-between;align-items:center;font-size:12px}.answer-panel-top .action-btn{padding:5px;font-size:10px}.card-legend,.card-note{font-size:10px;color:#929c89;line-height:1.9;margin:9px 0}.legend-dot{display:inline-block;width:8px;height:8px;border:1px solid #e0e5db;border-radius:2px;background:#f4f6ef}.right-dot{background:#cceab8;border-color:#a4d484}.wrong-dot{background:#ffd6d4;border-color:#edb2ae}.answered-dot{background:#d4e7fd;border-color:#aac9e8}.legend-outline{display:inline-block;width:8px;height:8px;border:1.5px solid #698fca;border-radius:2px}.number-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(33px,1fr));gap:6px;max-height:270px;overflow:auto;padding:4px;scrollbar-width:thin;overscroll-behavior:contain}.number-tile{border:1px solid #e0e5da;border-radius:7px;background:#f6f8f2;color:#9aa28f;font-size:10px;font-variant-numeric:tabular-nums;min-height:33px;padding:2px}.number-tile.is-right{background:#e2f3d5;border-color:#b6d79f;color:#539332}.number-tile.is-wrong{background:#ffe8e5;border-color:#f2c0b9;color:#cc716c}.number-tile.is-answered{background:#e1edfc;border-color:#bed4ee;color:#648abe}.number-tile.current{outline:2px solid #6c94cd;outline-offset:1px;font-weight:800}.number-tile:focus-visible{outline:3px solid #3e76c4}
.question-card{touch-action:pan-y;will-change:transform;transition:transform .18s ease;user-select:none}.question-card .feedback{user-select:text}.question-card .question{margin-bottom:24px}.question-card .option{transition:border-color .15s,background .15s}.option.selected{border-color:#a1c4e6;background:#eaf3ff}.option.selected .letter{background:#7fa8d5;color:white;border-color:#7fa8d5}.option.selected .state{color:#7fa8d5}
.question-nav{display:flex;align-items:center;gap:15px;margin-top:28px}.question-nav>span{font-size:11px;color:#8e9f80;white-space:nowrap;min-width:45px;text-align:center}.question-nav button{flex:1;min-width:0}.question-nav .primary{width:auto;padding:12px 10px;min-height:48px;font-size:13px}.secondary{background:white;border:1.5px solid #dee5d5;border-bottom-width:4px;border-radius:12px;padding:12px 9px;font-size:12px;color:#819472;font-weight:700;min-height:48px}.secondary:disabled{opacity:.4;cursor:default}.secondary:not(:disabled):active{transform:translateY(2px);border-bottom-width:2px}.submit-top{border:1px solid #cce1bb;border-radius:8px;background:#edf6e6;color:#679845;font-size:11px;padding:7px 10px;white-space:nowrap}
.result-review{text-align:left;margin-top:35px}.review-item{border:1px solid var(--line);background:white;border-radius:14px;margin:12px 0;overflow:hidden}.review-item summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:16px;list-style:none}.review-item summary::-webkit-details-marker{display:none}.review-item summary b{font-size:12px}.review-item summary small{font-size:10px;color:#9ba58f;margin-left:12px}.review-status{color:#d1857b;background:#fff0eb;border-radius:7px;padding:4px 7px;font-size:10px;white-space:nowrap}.review-status.mastered{background:#edf7e5;color:#78a957}.review-item summary:after{content:none;font-size:17px;color:#9dac90}.review-item[open] summary:after{content:none}.review-body{border-top:1px solid var(--line);padding:17px}.review-body h3{font-size:14px;line-height:1.9;margin:0 0 16px}.review-body p{font-size:12px;color:#8e9984;line-height:1.9;overflow-wrap:anywhere}.review-body .review-chosen{color:#c0877b}.review-body .review-correct{color:#639e42;font-weight:600}.review-body small{font-size:10px;color:#a6ae9c;line-height:1.7}.review-body button{display:block;text-align:left;padding-left:0}.notebook{max-width:740px;margin:auto}.notebook-intro{font-size:12px;line-height:2;color:#8f9c83;margin:10px 0 22px}.notebook>.primary{max-width:360px;display:block}.result-stat b{font-size:22px}.footer{line-height:1.9}
@media(max-width:650px){.study-setup{grid-template-columns:1fr}.notebook-entry{text-align:center}.resume-bar{padding:15px;gap:8px}.resume-bar strong{font-size:11px}.resume-bar p{font-size:9px;line-height:1.8}.small-primary{font-size:11px;padding:10px 12px}.stats-clickable .live-stat b{font-size:14px}.stats-clickable .live-stat:first-child b{font-size:12px}.stats-clickable .live-stat span{font-size:8px}.answer-panel{padding:12px}.number-grid{grid-template-columns:repeat(auto-fill,minmax(29px,1fr));gap:5px}.number-tile{min-height:30px;font-size:9px}.question-nav{gap:10px}.review-item summary{padding:14px 12px;gap:8px}.review-item summary small{display:block;margin:4px 0 0}.review-body{padding:14px}.review-body h3{font-size:13px}.review-body p{font-size:11px}.result-stat b{font-size:18px}.results h1{font-size:29px}.quiz-top{gap:8px}.result-review .section-top h2{font-size:15px}}
@media(prefers-reduced-motion:reduce){.question-card{transition:none}}

/* Keep mode controls and page height steady while switching modes. */
.study-settings{display:flow-root;min-height:160px}

.count-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.count-options .order-choice span{padding:11px 0;min-height:42px;font-size:11px}.count-options small{font-size:9px;margin-left:2px}

/* Sliding paper cards: outgoing and incoming surfaces share one clipped deck. */
.quiz{animation:none}
.card-deck{position:relative;isolation:isolate;overflow:hidden;padding:5px 3px 11px;overflow-anchor:none}
.card-deck .question-card{position:relative;width:100%;padding:22px 20px;background:#fff;border:1.5px solid #e0e7d8;border-radius:23px;box-shadow:0 5px 0 #e4eada,0 7px 18px #354d2010;transform-origin:50% 65%;transition:none;backface-visibility:hidden}
.card-deck .card-preview{position:absolute;top:5px;left:3px;width:calc(100% - 6px);pointer-events:none;z-index:1}
.card-deck [data-swipe]{z-index:2}
.card-deck.is-dragging,.card-deck.is-transitioning{cursor:grabbing}
.card-deck.is-transitioning [data-swipe]{pointer-events:none}
.card-deck .q-meta strong{font-size:9px}
@media(max-width:650px){.card-deck .question-card{padding:18px 15px;border-radius:21px}.card-deck .question{font-size:18px}.card-deck .option{padding:12px 10px;gap:9px}.card-deck .letter{width:28px;height:28px}.card-deck .feedback{padding:14px 12px}}

/* Clear navigation and bordered action controls across every screen. */
.topbar{position:sticky;top:0;z-index:40;background:rgba(248,250,245,.97);backdrop-filter:blur(12px)}
.header-left{display:flex;align-items:center;gap:12px;min-width:0}.brand{white-space:nowrap}
.ui-icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.back-button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1.5px solid #dce5d3;border-bottom-width:3px;border-radius:13px;background:#fff;color:#779661;transition:transform .15s,background .15s}
.back-button[hidden]{display:none}.back-button:hover{background:#eef6e7}.back-button:active{transform:translateY(2px);border-bottom-width:1.5px}
.action-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 15px;background:#fff;border:1.5px solid #dce5d3;border-bottom-width:3px;border-radius:12px;color:#7a9069;font-size:12px;font-weight:600;line-height:1.5;transition:transform .15s,background .15s}
.action-btn:hover{background:#eff5e9;border-color:#bbd4a9}.action-btn:active{transform:translateY(2px);border-bottom-width:1.5px}.action-btn.danger-button{color:#bd7972;border-color:#efcec8;background:#fff8f6}.action-btn.danger-button:hover{background:#ffede8}
.history-more{display:flex;margin:14px auto 0}.result-actions .action-btn{width:100%;margin-top:12px}.review-body .action-btn{display:inline-flex;text-align:center;padding:10px 14px;margin-top:9px}.section-top .action-btn{font-size:11px;white-space:nowrap;min-height:42px}
.review-item summary:after{display:grid;place-items:center;width:28px;height:28px;border:1px solid #e3eadc;background:#f6f9f2;border-radius:9px;flex-shrink:0}
.submit-top{min-height:44px;padding:8px 13px;border-bottom-width:3px;border-radius:11px;font-weight:600}dialog .action-btn{width:100%;margin-top:12px}
.stats-clickable{gap:4px;padding:10px 8px 8px;border-radius:18px;margin-bottom:18px}
.stats-clickable .live-stat{background:#f7f9f3;border:1px solid #e6ecdf;border-radius:9px;min-height:48px;padding:5px 1px}.stats-clickable .live-stat:last-child{border:1px solid #e6ecdf}.stats-clickable .live-stat:hover{background:#eef5e7}
.stats-expander{grid-column:1/-1;justify-self:center;display:grid;place-items:center;width:64px;height:44px;padding:0;margin-top:3px;background:#f2f7eb;color:#85a270;border:1px solid #e0e9d7;border-radius:12px;transition:background .18s}
.stats-expander:hover{background:#e6f1db}.stats-expander .ui-icon{width:20px;height:20px;transition:transform .2s}.stats-expander[aria-expanded="true"] .ui-icon{transform:rotate(180deg)}
@media(max-width:650px){.header-left{gap:8px}.topbar.has-back .brand{font-size:16px;gap:5px}.topbar.has-back .brand-icon{font-size:27px}.topbar.has-back .brand-dot{margin-left:-4px}.stats-clickable{padding:9px 6px 7px;gap:4px}.history-row{gap:9px}.action-btn{font-size:11px}}
@media(max-width:360px){.stats-clickable .live-stat:first-child b{font-size:10px}.topbar.has-back .brand{font-size:14px}.topbar.has-back .brand-icon{font-size:24px}.back-button{width:42px;height:44px}.header-left{gap:6px}.history-info strong{font-size:10px}.history-score{font-size:17px}}

/* A quiet inline disclosure and a viewport-bound study canvas. */
.stats-expander{display:flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:120px;height:30px;padding:0 10px;margin:0;background:transparent;border:0;border-radius:6px;color:#9aa68f;font-size:11px;font-weight:400;box-shadow:none}
.stats-expander:hover{background:#f7f9f3;color:#80936f}.stats-expander .ui-icon{width:19px;height:15px;stroke-width:1.5;transition:transform .34s cubic-bezier(.2,.8,.2,1)}
.answer-panel-shell[hidden]{display:none}.answer-panel-shell{flex-shrink:0;overflow:hidden;transform-origin:top center;will-change:height,opacity}.answer-panel-shell .answer-panel{margin:0;padding:12px}
html.quiz-page,body.quiz-page{height:var(--app-height,100dvh);overflow:hidden;overscroll-behavior:none}
body.quiz-page{display:flex;flex-direction:column;width:100%;position:relative}
body.quiz-page .topbar{position:relative;top:auto;height:58px;min-height:58px;width:calc(100% - 32px);padding:0 10px;margin:0 auto;flex-shrink:0;backdrop-filter:none}
body.quiz-page .topbar .back-button{height:38px;width:38px;border-radius:11px}
body.quiz-page main{display:flex;flex:1;min-height:0;width:100%;max-width:820px;padding:8px 16px max(8px,env(safe-area-inset-bottom));margin:0 auto;overflow:hidden;overscroll-behavior:none;touch-action:pan-y}
body.quiz-page .quiz{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:740px;gap:7px;margin:0 auto}
body.quiz-page .quiz-top{margin:0;min-height:13px;flex-shrink:0;gap:8px}
body.quiz-page .progress{height:9px}body.quiz-page .progress-count{font-size:10px}
body.quiz-page .submit-top{min-height:28px;padding:3px 9px;border-radius:8px;font-size:10px;border-bottom-width:2px}
body.quiz-page .stats-clickable{margin:0;padding:6px 5px 3px;gap:3px;border-radius:14px;flex-shrink:0}
body.quiz-page .stats-clickable .live-stat{min-height:35px;padding:3px 1px;border-radius:7px}
body.quiz-page .stats-clickable .live-stat b{font-size:14px;line-height:1.35}body.quiz-page .stats-clickable .live-stat:first-child b{font-size:12px}
body.quiz-page .stats-clickable .live-stat span{font-size:8px;margin-top:2px;line-height:1.2}
body.quiz-page .card-deck{flex:1;min-height:0;height:auto;padding:5px 3px 11px;touch-action:pan-y}
body.quiz-page .card-deck .question-card{height:100%;display:flex;flex-direction:column;min-height:0;padding:15px 14px;overflow:hidden}
body.quiz-page .card-deck .card-preview{height:calc(100% - 16px)}
body.quiz-page .q-meta{flex-shrink:0;margin-bottom:9px;font-size:10px;min-height:20px}
.q-tools{display:flex;align-items:center;gap:7px;white-space:nowrap}.full-question-btn{display:none;border:1px solid #e0e8d7;border-radius:7px;background:#f7faf3;color:#819970;font-size:9px;padding:4px 6px;white-space:nowrap;min-height:24px}
body.quiz-page .card-deck .question{flex-shrink:0;font-size:clamp(15px,2.15dvh,19px);line-height:1.55;margin:0 0 12px;overflow-wrap:anywhere}
body.quiz-page .options{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));flex:1;min-height:0;gap:8px}
body.quiz-page .card-deck .option{height:100%;min-height:0;padding:8px 10px;gap:8px;font-size:clamp(12px,1.7dvh,14px);line-height:1.45;border-bottom-width:3px;border-radius:12px}
body.quiz-page .card-deck .letter{height:25px;width:25px;border-radius:7px;font-size:11px}.option-text{overflow-wrap:anywhere}
body.quiz-page .feedback{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;padding:8px 10px;margin-top:9px;border-radius:11px;min-height:43px}
.feedback-brief{display:flex;flex-direction:column;gap:2px}.feedback-brief strong{font-size:12px;color:#5d9e38}.feedback-brief span{font-size:9px;color:#91a27f}.wrong-feedback .feedback-brief strong{color:#c9776d}.wrong-feedback .feedback-brief span{color:#b49286}
.analysis-btn{border:1px solid #d6e6c9;border-radius:9px;background:#fff;color:#7b9c66;font-size:10px;padding:6px 9px;min-height:30px;flex-shrink:0}.wrong-feedback .analysis-btn{color:#ba8479;border-color:#efd5cd}
body.quiz-page .question-nav{flex-shrink:0;margin:0;gap:10px;min-height:42px}
body.quiz-page .question-nav button{min-height:42px;padding:8px 10px;font-size:12px;border-radius:11px}
body.quiz-page .question-nav>span{font-size:10px}
body.quiz-page.card-expanded main{display:block;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;touch-action:pan-y}
body.quiz-page.card-expanded .quiz{height:auto;min-height:100%;flex:none}
body.quiz-page.card-expanded .card-deck{height:var(--card-slot,380px);min-height:var(--card-slot,380px);flex:none}
body.quiz-page.card-expanded .number-grid{max-height:none;overflow:visible}
body.quiz-page[data-quiz-fit="1"] .card-deck .question-card,body.quiz-page[data-quiz-fit="2"] .card-deck .question-card,body.quiz-page[data-quiz-fit="3"] .card-deck .question-card,body.quiz-page[data-quiz-fit="4"] .card-deck .question-card{padding:12px 11px}
body.quiz-page[data-quiz-fit="1"] .card-deck .question{font-size:15px;line-height:1.45;margin-bottom:9px}
body.quiz-page[data-quiz-fit="1"] .options{gap:6px}body.quiz-page[data-quiz-fit="1"] .card-deck .option{padding:6px 8px;font-size:12px}
body.quiz-page[data-quiz-fit="2"] .card-deck .question,body.quiz-page[data-quiz-fit="3"] .card-deck .question,body.quiz-page[data-quiz-fit="4"] .card-deck .question{font-size:13px;line-height:1.4;margin-bottom:7px}
body.quiz-page[data-quiz-fit="2"] .options,body.quiz-page[data-quiz-fit="3"] .options,body.quiz-page[data-quiz-fit="4"] .options{gap:5px}
body.quiz-page[data-quiz-fit="2"] .card-deck .option,body.quiz-page[data-quiz-fit="3"] .card-deck .option,body.quiz-page[data-quiz-fit="4"] .card-deck .option{padding:5px 7px;font-size:12px;gap:6px;line-height:1.35}
body.quiz-page[data-quiz-fit="2"] .q-meta,body.quiz-page[data-quiz-fit="3"] .q-meta,body.quiz-page[data-quiz-fit="4"] .q-meta{margin-bottom:5px}
body.quiz-page[data-quiz-fit="2"] .feedback,body.quiz-page[data-quiz-fit="3"] .feedback,body.quiz-page[data-quiz-fit="4"] .feedback{margin-top:6px;padding:5px 8px;min-height:35px}
body.quiz-page[data-quiz-fit="2"] .feedback-brief span,body.quiz-page[data-quiz-fit="3"] .feedback-brief span,body.quiz-page[data-quiz-fit="4"] .feedback-brief span{display:none}
body.quiz-page[data-quiz-fit="3"] .question,body.quiz-page[data-quiz-fit="4"] .question{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body.quiz-page[data-quiz-fit="3"] .full-question-btn,body.quiz-page[data-quiz-fit="4"] .full-question-btn{display:inline-flex;align-items:center}
body.quiz-page[data-quiz-fit="4"] .option-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#question-dialog{width:min(540px,calc(100% - 28px));max-width:540px;max-height:calc(var(--app-height,100dvh) - 28px);padding:19px;text-align:left;overflow:hidden}
#question-dialog[open]{display:flex;flex-direction:column;gap:14px}#question-dialog h2{font-size:18px;margin:0;flex-shrink:0}
#detail-content{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}#detail-content p{font-size:13px;line-height:1.9;color:#829077;margin:0 0 12px}#detail-content .detail-question{font-size:15px;font-weight:600;color:var(--ink)}
.detail-options p{display:flex;align-items:flex-start;gap:10px;padding:10px;background:#f4f7ef;border:1px solid #e4ebdc;border-radius:10px}.detail-options b{font-size:11px;line-height:1.9;color:#9bab90}
.detail-explanation{padding:14px;background:#edf6e5;border-radius:13px;margin-top:18px}.detail-explanation strong{font-size:13px;color:#6a984e;line-height:1.8}.detail-explanation small{font-size:10px;color:#98a68e}#detail-content .detail-explanation p{margin-top:10px}
#close-question-dialog{margin:0;flex-shrink:0}
@media(max-height:650px){body.quiz-page .topbar{height:50px;min-height:50px}body.quiz-page main{padding:5px 12px max(5px,env(safe-area-inset-bottom))}body.quiz-page .quiz{gap:5px}body.quiz-page .stats-clickable .live-stat{min-height:31px}body.quiz-page .stats-expander{height:25px;font-size:10px}body.quiz-page .stats-clickable{padding:4px 4px 1px}body.quiz-page .question-nav,body.quiz-page .question-nav button{min-height:36px}body.quiz-page .question-nav button{padding:6px 8px}body.quiz-page .card-deck .question-card{padding:11px}body.quiz-page .card-deck .question{font-size:14px}}
@media(max-height:420px) and (min-width:480px){body.quiz-page .topbar{height:43px;min-height:43px}body.quiz-page .topbar .back-button{width:32px;height:32px}body.quiz-page .brand{font-size:15px}body.quiz-page main{padding:3px 12px}body.quiz-page .quiz{gap:4px}body.quiz-page .stats-clickable{grid-template-columns:repeat(5,minmax(0,1fr)) 110px;padding:3px 4px;gap:4px}body.quiz-page .stats-expander{grid-column:auto;height:31px;min-width:0;padding:0;font-size:9px;gap:3px}body.quiz-page .stats-clickable .live-stat{min-height:29px}body.quiz-page .stats-clickable .live-stat b{font-size:12px}body.quiz-page .stats-clickable .live-stat span{font-size:7px}body.quiz-page .options{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}body.quiz-page .card-deck .question-card{padding:7px 10px}body.quiz-page .q-meta{margin-bottom:4px;min-height:15px}body.quiz-page .q-meta strong{padding:3px 6px;font-size:8px}body.quiz-page .card-deck .question{font-size:12px;line-height:1.35;margin-bottom:5px}body.quiz-page .card-deck .letter{height:20px;width:20px;font-size:9px}body.quiz-page .card-deck .option{padding:4px 7px;font-size:11px;gap:5px;border-radius:8px}body.quiz-page .question-nav,body.quiz-page .question-nav button{min-height:31px}body.quiz-page .question-nav button{padding:4px 8px;font-size:10px}body.quiz-page .feedback{margin-top:4px;min-height:27px;padding:3px 8px}body.quiz-page .feedback-brief strong{font-size:10px}body.quiz-page .feedback-brief span{display:none}body.quiz-page .analysis-btn{min-height:23px;padding:3px 8px;font-size:9px}body.quiz-page .full-question-btn{padding:2px 5px;min-height:20px;font-size:8px}}
@media(prefers-reduced-motion:reduce){.stats-expander .ui-icon{transition:none}}
@media(max-height:420px) and (min-width:480px){
 body.quiz-page[data-quiz-fit] .card-deck .question-card{padding:6px 9px}
 body.quiz-page[data-quiz-fit] .q-meta{min-height:15px;margin-bottom:3px}
 body.quiz-page[data-quiz-fit] .full-question-btn{min-height:18px;padding:1px 5px;font-size:8px}
 body.quiz-page[data-quiz-fit] .card-deck .question{font-size:11.5px;line-height:1.3;margin-bottom:4px}
 body.quiz-page[data-quiz-fit="3"] .card-deck .question,body.quiz-page[data-quiz-fit="4"] .card-deck .question{-webkit-line-clamp:1}
 body.quiz-page[data-quiz-fit] .card-deck .option{padding:3px 6px;font-size:11px;line-height:1.25;gap:5px}
 body.quiz-page[data-quiz-fit] .options{gap:4px}
 body.quiz-page[data-quiz-fit] .feedback{min-height:24px;padding:2px 6px;margin-top:4px}
 body.quiz-page[data-quiz-fit] .feedback-brief strong{font-size:10px}
}

/* Swipe actions stay behind the row until deliberately revealed. */
.swipe-row{position:relative;isolation:isolate;overflow:hidden;border-radius:15px;margin:12px 0;background:#f8ede8;--delete-height:72px}
.swipe-content{position:relative;z-index:2;will-change:transform;transition:transform .26s cubic-bezier(.2,.8,.2,1);touch-action:pan-y}
.swipe-row .history-row,.swipe-row .review-item{margin:0}.swipe-row .history-record{padding-right:52px}
.swipe-row--wrongs summary{padding-right:52px}.row-delete{position:absolute;top:0;right:0;z-index:1;width:84px;height:var(--delete-height);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:14px;background:#df8176;color:#fff;font-size:11px;font-weight:700;padding:8px;cursor:pointer}
.row-delete:disabled{opacity:1;cursor:default}.row-delete .ui-icon{width:19px;height:19px}.row-delete:active{background:#cb6c63}.row-removing{pointer-events:none}
.notebook-tools{display:flex;align-items:center;gap:8px}.notebook .section-top{flex-wrap:wrap;gap:10px}.notebook .section-top h2{white-space:nowrap}.notebook .section-top .action-btn{padding:8px 10px;font-size:11px;gap:6px}
.danger-primary{background:#df8176;border-bottom-color:#c26b61}.danger-primary:hover{background:#d5796f}
#toast.has-action{display:flex;align-items:center;justify-content:space-between;gap:16px;pointer-events:auto;padding:10px 12px 10px 18px;min-width:230px}
.toast-undo{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 12px;border:1px solid #bed2ac;border-radius:8px;color:#eff9e7;background:#506a41;font-size:12px;white-space:nowrap;font-weight:600}.toast-undo:active{background:#658452}
@media(max-width:360px){.notebook-tools{gap:6px}.notebook .section-top .action-btn{font-size:10px;padding:8px}.notebook .section-top .action-btn .ui-icon{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){.swipe-content{transition:none}}

/* One continuous swipe surface, larger type and consistent full-width rows. */
.swipe-row{background:transparent;--delete-red:#df8176}
.swipe-row.delete-revealed{background:var(--delete-red)}
.row-delete{height:100%;min-height:var(--delete-height);border-radius:0;background:var(--delete-red);justify-content:flex-start;padding:calc(var(--delete-height)/2 - 22px) 6px 6px;font-size:13px;line-height:1.4;visibility:hidden}
.delete-revealed .row-delete{visibility:visible}.row-delete:active{background:#cf7168}
.swipe-content{border-radius:inherit;background:#fff}
.swipe-row .history-row,.swipe-row .review-item{border-radius:inherit;margin:0}
.swipe-row .history-record{padding:16px}.swipe-row--wrongs summary{padding:15px}
.review-item summary:after,.review-item[open] summary:after{content:none;display:none}
.review-expand{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;min-width:74px;padding:7px 10px;border:1px solid #dce6d2;border-bottom-width:2px;border-radius:10px;background:#f5f9ef;color:#718d5e;flex-shrink:0;font-size:13px;font-weight:600}
.review-expand .ui-icon{height:17px;width:17px;transition:transform .22s cubic-bezier(.2,.8,.2,1)}
.review-item[open] .review-expand .ui-icon{transform:rotate(180deg)}
.review-item summary{gap:10px}.review-item summary>span:first-child{flex:1;min-width:0}.review-item summary b{font-size:15px;line-height:1.6;display:block}.review-item summary small{display:block;margin:3px 0 0;font-size:12px;line-height:1.5;color:#88977b}
.review-status{font-size:12px;padding:5px 7px;line-height:1.5}.review-body{padding:18px}.review-body h3{font-size:16px;line-height:1.8}.review-body p{font-size:14px;line-height:1.9}.review-body small{font-size:12px;line-height:1.7}
.notebook{width:100%;max-width:740px}.notebook>.primary{width:100%;max-width:none;min-height:52px}.notebook-intro{font-size:14px;line-height:1.7;margin:8px 0 18px}.notebook>.swipe-row{width:100%}.notebook .section-top h2{font-size:19px}.notebook .section-top .action-btn{font-size:13px;min-height:44px;padding:8px 10px}
.notebook-tools{margin-left:auto;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.hero p{font-size:14px;line-height:1.8}.stat-label{font-size:13px;color:#829073}.stat-value small{font-size:13px}.challenge-card p{font-size:14px;line-height:1.8}.challenge-action .exam-rules{font-size:14px;line-height:1.9}.question-order legend{font-size:13px;margin-bottom:9px}.order-choice span{font-size:13px;min-height:44px;padding:11px 5px}.count-options .order-choice span{font-size:14px;padding:11px 0;min-height:44px}.count-options small{font-size:12px;margin-left:2px}
.study-settings{min-height:176px}.challenge-card{gap:24px}.resume-bar strong{font-size:14px}.resume-bar p{font-size:12px;line-height:1.7}.small-primary{font-size:13px;min-height:44px}.local-tag{font-size:12px;padding:4px 8px}.section-top h2{font-size:18px}.offline-line{font-size:13px;line-height:1.6}.footer{font-size:13px;line-height:1.7}.empty strong{font-size:14px}.empty p{font-size:13px;line-height:1.7}
.history-row{gap:13px}.history-info{min-width:0}.history-info strong{font-size:14px;line-height:1.6}.history-date{font-size:12px;line-height:1.65;margin-top:4px}.history-score{font-size:23px;flex-shrink:0;white-space:nowrap;text-align:right}.history-score small{font-size:12px}.record-verdict{display:block;font-size:12px;font-style:normal;font-weight:500;line-height:1.5;color:#879c75;margin-top:2px}
.result-stat label{font-size:13px}.result-stat b{font-size:25px}.result-sub{font-size:14px;line-height:1.8}.result-details{font-size:14px;line-height:1.8}.saved-note{font-size:13px}.score-max{font-size:20px;font-weight:500;color:#99a78d}.exam-verdict{display:inline-block;padding:6px 17px;border-radius:10px;font-size:15px;font-weight:700;margin:2px 0 8px}.exam-verdict.passed{background:#e7f4da;color:#679f40}.exam-verdict.failed{background:#fff0e9;color:#c88172}.action-btn{font-size:13px}.result-actions .action-btn{font-size:14px}
body.quiz-page .quiz-top{font-size:12px}.quiz-page .progress-count{font-size:12px}body.quiz-page .stats-clickable .live-stat{min-height:40px}body.quiz-page .stats-clickable .live-stat b{font-size:16px}body.quiz-page .stats-clickable .live-stat span{font-size:11px;line-height:1.3}body.quiz-page .stats-clickable .live-stat:first-child b{font-size:13px}.stats-expander{font-size:13px;min-height:31px}
.card-legend,.card-note{font-size:12px;line-height:1.7}.answer-panel-top{font-size:14px}.number-grid{grid-template-columns:repeat(auto-fill,minmax(36px,1fr));gap:6px}.number-tile{font-size:12px;min-height:35px;border-radius:8px}
body.quiz-page .q-meta strong{font-size:12px;padding:5px 8px;letter-spacing:0}body.quiz-page .card-deck .letter{font-size:12px}.feedback-brief strong{font-size:13px}.analysis-btn{font-size:12px;min-height:32px}body.quiz-page .full-question-btn{font-size:11px;min-height:28px}#detail-content p{font-size:15px}#detail-content .detail-question{font-size:16px}.detail-options b{font-size:13px}.detail-explanation strong{font-size:15px}.detail-explanation small{font-size:12px}
body.quiz-page[data-quiz-fit="1"] .card-deck .option{font-size:13px}
body.quiz-page[data-quiz-fit="2"] .card-deck .option,body.quiz-page[data-quiz-fit="3"] .card-deck .option,body.quiz-page[data-quiz-fit="4"] .card-deck .option{font-size:12.5px}
@media(max-width:650px){.hero h1{font-size:32px}.hero p{font-size:14px}.stat-label{font-size:12px}.stat-value small{font-size:12px}.resume-bar strong{font-size:13px}.resume-bar p{font-size:12px}.small-primary{font-size:12px}.challenge-card p,.challenge-action .exam-rules{font-size:14px}.section-top h2{font-size:17px}.local-tag{font-size:12px}.footer{font-size:12px}.history-info strong{font-size:14px}.history-date{font-size:12px}.history-row{gap:10px}.medal{width:32px;height:36px;flex-shrink:0}.history-score{font-size:22px}.review-body h3{font-size:15px}.review-body p{font-size:14px}.review-body small{font-size:12px}.result-stat label{font-size:12px}.result-stat b{font-size:21px}.result-sub,.result-details{font-size:14px}.action-btn{font-size:13px}.number-grid{grid-template-columns:repeat(auto-fill,minmax(32px,1fr));gap:5px}.number-tile{font-size:12px;min-height:33px}.card-legend,.card-note{font-size:12px}.result-review .section-top h2{font-size:17px}}
@media(max-width:360px){.notebook .section-top h2{font-size:17px}.notebook .section-top .action-btn{font-size:12px;padding:8px}.review-item summary{padding:13px 11px;gap:7px}.review-item summary b{font-size:14px}.review-status{font-size:11px}.review-expand{min-width:67px;font-size:12px;padding:7px 8px}.history-info strong{font-size:13px}.history-score{font-size:20px}.history-date{font-size:12px}.stats-clickable .live-stat:first-child b{font-size:12px}}
@media(max-height:650px){body.quiz-page .stats-clickable .live-stat{min-height:37px}body.quiz-page .stats-clickable .live-stat span{font-size:10px}body.quiz-page .stats-expander{min-height:28px;font-size:12px}}
@media(max-height:420px) and (min-width:480px){body.quiz-page .stats-clickable .live-stat{min-height:32px}body.quiz-page .stats-clickable .live-stat b{font-size:13px}body.quiz-page .stats-clickable .live-stat span{font-size:9px}body.quiz-page .stats-expander{font-size:11px;min-height:32px}body.quiz-page .q-meta strong{font-size:11px;padding:3px 5px}body.quiz-page[data-quiz-fit] .card-deck .option{font-size:11.5px}body.quiz-page .feedback-brief strong{font-size:11px}body.quiz-page .analysis-btn{font-size:11px}body.quiz-page .full-question-btn{font-size:10px;min-height:20px}}
:root{--muted:#758367}
.stat-label,.local-tag,.offline-line,.footer,.notebook-intro{color:#728267}
.question-order legend{color:#697f5b}.order-choice span{color:#6d805e}.history-date{color:#7b886f}.review-expand{color:#627d50}
.swipe-row{--delete-red:#c65d52}.row-delete:active{background:#b34e44}.danger-primary{background:#c65d52;border-bottom-color:#ad4c42}.danger-primary:hover{background:#bc564b}.action-btn.danger-button{color:#a45249}
@media(max-height:650px) and (min-height:421px){body.quiz-page .stats-clickable .live-stat span{font-size:11px}}
@media(max-width:360px){body.quiz-page .stats-clickable .live-stat:first-child b{font-size:12px}}
.result-stat b{padding:16px 2px;font-size:clamp(17px,4.8vw,25px);font-variant-numeric:tabular-nums;white-space:nowrap}
.history-score.failed-score,.results.exam-failed h1{color:#b66759}.history-score.failed-score .record-verdict{color:#b66759}
/* Extend the delete hit area beneath the foreground card's inner curves. */
.row-delete{width:100px;padding-left:16px;padding-right:0}

.footer p{margin:0}.icp-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;text-decoration:underline;text-underline-offset:3px;letter-spacing:0}.icp-link:hover{color:var(--deep)}
