:root{--bg:#f5f2eb;--panel:#fffdf8;--panel-raised:#fff;--panel-alt:#e7efe9;--accent:#196f5a;--accent-strong:#14342b;--on-accent:#fff;--accent-soft:#edf7f1;--accent-tint:#dcefe5;--correct:#4c9b7f;--correct-soft:#dff2e9;--wrong:#a84a3a;--wrong-soft:#fff4ed;--warn-bg:#fdf3e3;--warn-fg:#8a5a1b;--warn-border:#e0bd83;--text:#16211b;--muted:#43524b;--border:#16211b24;--bar-bg:#f5f2ebf0;--shadow:#12231c0d;--backdrop:#10181473;--fs-xs:.8125rem;--fs-sm:.875rem;--fs-body:1rem;--fs-h4:1.0625rem;--fs-h3:1.125rem;--fs-card:1.25rem;--fs-h2:1.375rem;--fs-h1:1.75rem;--tap:44px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);text-rendering:optimizelegibility;accent-color:var(--accent);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang TC,Noto Sans TC,Microsoft JhengHei,sans-serif}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#111613;--panel:#182019;--panel-raised:#1d2620;--panel-alt:#223029;--accent:#6cc7a3;--accent-strong:#8fd8bb;--on-accent:#0b1a13;--accent-soft:#17291f;--accent-tint:#1f3a2d;--correct:#6cc7a3;--correct-soft:#173126;--wrong:#f08f7c;--wrong-soft:#35201b;--warn-bg:#3a2c14;--warn-fg:#f0c27a;--warn-border:#6b5226;--text:#e4ebe6;--muted:#a8b6ae;--border:#e4ebe624;--bar-bg:#111613eb;--shadow:#00000059;--backdrop:#0009;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#111613;--panel:#182019;--panel-raised:#1d2620;--panel-alt:#223029;--accent:#6cc7a3;--accent-strong:#8fd8bb;--on-accent:#0b1a13;--accent-soft:#17291f;--accent-tint:#1f3a2d;--correct:#6cc7a3;--correct-soft:#173126;--wrong:#f08f7c;--wrong-soft:#35201b;--warn-bg:#3a2c14;--warn-fg:#f0c27a;--warn-border:#6b5226;--text:#e4ebe6;--muted:#a8b6ae;--border:#e4ebe624;--bar-bg:#111613eb;--shadow:#00000059;--backdrop:#0009;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}::selection{background:var(--accent-tint);color:var(--text)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}#app{max-width:820px;margin:0 auto;padding:20px 16px 48px}h1,h2,h3{text-wrap:balance}.topbar{min-height:var(--tap);align-items:center;gap:12px;margin-bottom:18px;display:flex}.topbar h1{font-size:var(--fs-h1);margin:0;line-height:1.25}button{font:inherit;color:inherit;cursor:pointer;border:none;border-radius:8px}.back{background:var(--panel);color:var(--accent);min-height:var(--tap);border:1px solid var(--border);flex:none;padding:8px 14px;font-weight:700}.lead{color:var(--muted);font-size:1.05rem;line-height:1.7}.submit{background:var(--accent);color:var(--on-accent);border:1px solid var(--accent);min-height:var(--tap);padding:10px 18px;font-weight:800}.cert-grid,.level-grid,.mode-picker,.subject-list{grid-template-columns:1fr;gap:14px;display:grid}.cert-card,.level-card,.mode-card,.subject-card{background:var(--panel);text-align:left;border:1px solid var(--border);box-shadow:0 6px 18px var(--shadow);border-radius:10px;flex-direction:column;gap:6px;padding:18px;display:flex}.cert-card h2,.level-card h2,.mode-card h2{color:var(--accent);font-size:var(--fs-card);margin:0}.cert-card p,.level-card p,.mode-card p{color:var(--muted);margin:0;line-height:1.6}.subject-card{width:100%}.subject-card.is-empty{opacity:.55;cursor:not-allowed}.mode-note{color:var(--muted);font-size:var(--fs-sm);border:1px dashed var(--border);border-radius:10px;margin:0;padding:14px 18px}.mode-card .mode-card-rule{color:var(--text);font-weight:700}.subject-code{color:var(--accent);font-weight:800}.subject-name{font-size:var(--fs-h3);font-weight:700}.subject-stats,.subject-time{font-size:var(--fs-sm);color:var(--muted)}.question .prompt{font-size:var(--fs-h3);line-height:1.7}.q-topic{background:var(--panel-alt);color:var(--muted);border:1px solid var(--border);font-size:var(--fs-xs);border-radius:999px;margin-bottom:8px;padding:3px 10px;font-weight:700;display:inline-block}.q-source{background:var(--warn-bg);color:var(--warn-fg);border:1px solid var(--warn-border);font-size:var(--fs-xs);border-radius:999px;margin-bottom:8px;padding:3px 10px;font-weight:700;display:inline-block}.q-topic+.q-source{margin-left:6px}.mode-card .mode-card-warn{color:var(--warn-fg);font-size:var(--fs-sm);font-weight:700}.choices{gap:10px;margin:18px 0;display:grid}.choice{min-height:var(--tap);background:var(--panel-raised);text-align:left;border:1px solid var(--border);border-radius:8px;align-items:center;gap:12px;padding:14px;line-height:1.6;transition:background-color .12s ease-out,border-color .12s ease-out,box-shadow .12s ease-out;display:flex}.choice.selected{border-color:var(--accent);background:var(--accent-tint);box-shadow:inset 0 0 0 1px var(--accent)}.choice.correct{border-color:var(--correct);background:var(--correct-soft);box-shadow:inset 0 0 0 1px var(--correct)}.choice.wrong{border-color:var(--wrong);background:var(--wrong-soft);box-shadow:inset 0 0 0 1px var(--wrong)}.choice-id{width:28px;height:28px;color:var(--accent);box-shadow:inset 0 0 0 1.5px var(--accent);background:0 0;border-radius:50%;flex:none;place-items:center;font-weight:800;display:inline-grid}.choice.selected .choice-id,.choice.correct .choice-id,.choice-explanation.correct .choice-id{background:var(--accent);color:var(--on-accent);box-shadow:none}.choice.wrong .choice-id{background:var(--wrong);color:var(--on-accent);box-shadow:none}@media (prefers-reduced-motion:reduce){.choice{transition:none}}.sr-live,.sr-only{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.view-anchor:focus{outline:none}.q-figures{gap:12px;margin:14px 0;display:grid}.q-figure{background:var(--panel);border:1px solid var(--border);border-radius:8px;margin:0;padding:12px 14px}.figure-caption{color:var(--muted);margin:0 0 8px;line-height:1.7}.figure-label{background:var(--panel-alt);color:var(--muted);font-size:var(--fs-xs);letter-spacing:.02em;border-radius:999px;margin-bottom:8px;padding:2px 8px;font-weight:700;display:inline-block}.figure-prose{color:var(--muted);margin:0;line-height:1.75}.q-figure-note{border-color:var(--accent)}.q-figure-note .figure-prose{color:var(--text)}.figure-pre,.choice-figure{-webkit-overflow-scrolling:touch;background:var(--bg);border-radius:6px;margin:0;padding:10px 12px;overflow-x:auto}.figure-pre code,.choice-figure code{color:var(--text);white-space:pre;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.82rem;line-height:1.6}.choice:has(.choice-figure){align-items:flex-start}.choice-figure{flex:1;min-width:0}.explanation{background:var(--panel-alt);color:var(--muted);border-radius:8px;padding:14px 16px;line-height:1.75}.explanation>strong{color:var(--text);display:block}.explanation p{margin:6px 0 0}.answer-summary{border:1px solid var(--border);border-radius:8px;flex-wrap:wrap;align-items:baseline;gap:8px;margin:14px 0 10px;padding:12px 14px;line-height:1.6;display:flex}.answer-summary.has-figure{display:block}.answer-summary.has-figure .choice-figure{margin-top:8px}.answer-summary.is-correct{background:var(--correct-soft);border-color:var(--correct)}.answer-summary.is-wrong{background:var(--wrong-soft);border-color:var(--wrong)}.answer-summary strong{color:var(--text)}.decision-boundary{border:1px dashed var(--accent);background:var(--panel);color:var(--muted);border-radius:8px;margin-top:12px;padding:12px 14px;line-height:1.75}.decision-boundary strong{color:var(--text);margin-bottom:6px;display:block}.decision-boundary p{margin:0}.choice-explanations{background:var(--panel);border:1px solid var(--border);border-radius:8px;margin-top:12px;padding:14px}.choice-explanations>strong{margin-bottom:10px;display:block}.choice-explanation-list{gap:8px;display:grid}.choice-explanation{color:var(--muted);grid-template-columns:28px 1fr;align-items:start;gap:10px;line-height:1.65;display:grid}.choice-explanation.correct{color:var(--text)}.choice-explanation p{margin:0}.drill-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:14px;display:grid}.drill-filter{background:var(--panel);color:var(--muted);border:1px solid var(--border);min-height:var(--tap);white-space:nowrap;justify-content:center;align-items:baseline;gap:6px;padding:8px 6px;font-weight:800;display:flex}.drill-filter.active{color:var(--accent);border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.drill-filter strong{font-variant-numeric:tabular-nums;font-weight:700}.drill-controls{margin-bottom:14px}.drill-controls .drill-filters{margin-bottom:0}.drill-filter-hint{color:var(--muted);font-size:var(--fs-sm);margin:8px 0 0;line-height:1.6}.topbar:has(.drill-tools){position:relative}.drill-tools{margin-left:auto}.drill-tools>summary,.exam-map>summary{cursor:pointer;-webkit-user-select:none;user-select:none;min-height:var(--tap);border:1px solid var(--border);background:var(--panel);color:var(--accent);border-radius:8px;align-items:center;gap:6px;padding:8px 14px;font-weight:700;list-style:none;display:inline-flex}.drill-tools>summary::-webkit-details-marker{display:none}.exam-map>summary::-webkit-details-marker{display:none}.drill-tools>summary:after,.exam-map>summary:after{content:"";border-bottom:2px solid;border-right:2px solid;width:7px;height:7px;margin-left:2px;transform:translateY(-2px)rotate(45deg)}.drill-tools[open]>summary:after,.exam-map[open]>summary:after{transform:translateY(2px)rotate(-135deg)}.drill-tools[open]>summary,.exam-map[open]>summary{border-color:var(--accent);background:var(--accent-soft)}.drill-tools-flag{font-size:var(--fs-xs);color:var(--on-accent);background:var(--accent);border-radius:999px;padding:1px 8px}.drill-tools-panel{z-index:10;background:var(--panel);border:1px solid var(--border);width:min(340px,100%);box-shadow:0 12px 32px var(--shadow), 0 2px 6px var(--shadow);border-radius:10px;gap:12px;padding:14px;display:grid;position:absolute;top:calc(100% + 6px);right:0}.drill-tools-panel>button{text-align:left;justify-self:stretch}.drill-jump{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.drill-jump-label{color:var(--muted);font-weight:700;font-size:var(--fs-sm);align-items:center;gap:6px;display:flex}.drill-jump-input{width:84px;min-height:var(--tap);background:var(--panel-raised);color:var(--text);border:1px solid var(--border);font:inherit;font-variant-numeric:tabular-nums;border-radius:8px;padding:7px 9px}.drill-jump-input:focus{border-color:var(--accent)}.drill-jump-go,.drill-reset,.drill-topics,.drill-confidence{background:var(--panel);color:var(--accent);min-height:var(--tap);border:1px solid var(--border);padding:8px 14px;font-weight:700}.drill-reset{color:var(--wrong)}.drill-confidence{text-align:left;width:100%;color:var(--muted)}.drill-confidence.active{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.drill-tool-hint,.drill-keys{color:var(--muted);font-size:var(--fs-sm);margin:6px 0 0;line-height:1.6}.drill-keys{border-top:1px solid var(--border);margin:0;padding-top:10px}@media (hover:none){.drill-keys{display:none}}.drill-progress-hint{color:var(--accent);font-weight:700}.empty-state{background:var(--panel);border:1px solid var(--border);color:var(--muted);border-radius:10px;padding:18px}.empty-state h2{color:var(--text);font-size:var(--fs-h3);margin:0 0 6px}.empty-state p{margin:0}.qnav{gap:10px;margin-top:18px;display:flex}.qnav button{background:var(--panel);color:var(--accent);min-height:var(--tap);border:1px solid var(--border);flex:1;padding:11px 14px;font-weight:700}.qnav .submit{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.progress,.timer{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:700}.timer{margin-left:auto}.timer.is-low{color:var(--wrong)}.topic-table{border-collapse:collapse;background:var(--panel);border:1px solid var(--border);font-variant-numeric:tabular-nums;border-radius:8px;width:100%;margin:14px 0;overflow:hidden}.topic-table th,.topic-table td{text-align:left;border-bottom:1px solid var(--border);padding:8px 12px}.topic-table th{color:var(--muted);font-size:var(--fs-sm)}.topic-stats .topic-table{width:100%}.topic-name{line-height:1.5}.topic-progress,.topic-rate{white-space:nowrap}.topic-visual{width:96px}.topic-bar{background:var(--panel-alt);border-radius:999px;height:8px;display:block;overflow:hidden}.topic-bar-fill{height:100%;width:var(--rate);background:var(--correct);display:block}.topic-bar-empty{color:var(--muted);font-size:var(--fs-xs)}.topic-note{color:var(--muted);font-size:var(--fs-sm);line-height:1.7}@media (width<=520px){.topic-visual,.topic-stats thead th:last-child{display:none}}.diag-heading{font-size:var(--fs-h3);margin:28px 0 0}.diag-empty{color:var(--muted);line-height:1.8}.diag-errors{gap:10px;margin:14px 0;padding:0;list-style:none;display:grid}.diag-error{background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:12px 14px}.diag-error-head{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.diag-error-label{font-weight:800}.diag-error-class{color:var(--muted);font-size:var(--fs-xs);border:1px solid var(--border);border-radius:999px;padding:1px 8px}.diag-error-count{font-variant-numeric:tabular-nums;margin-left:auto}.diag-error-meaning{margin:8px 0 0;line-height:1.8}.diag-error-advice{color:var(--accent);margin:6px 0 0;font-weight:700;line-height:1.8}.diag-verdict{font-weight:700;line-height:1.8}.confidence-picker{flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;display:flex}.confidence-hint{color:var(--muted);font-size:var(--fs-sm);font-weight:700}.confidence-btn{background:var(--panel);color:var(--text);min-height:var(--tap);border:1px solid var(--border);border-radius:999px;padding:8px 16px;font-weight:700}.confidence-btn.active{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.calibration-note{background:var(--panel-alt);color:var(--muted);border-radius:8px;margin:10px 0 0;padding:10px 12px;line-height:1.8}.calibration-note.is-overconfident{color:var(--wrong);font-weight:700}.study-entry{background:var(--panel);width:100%;color:var(--accent);text-align:left;border:1px solid var(--border);flex-direction:column;align-items:flex-start;gap:2px;margin-top:14px;padding:14px 18px;display:flex}.study-entry-title{font-size:var(--fs-h3);font-weight:800}.study-entry-sub{color:var(--muted);font-size:var(--fs-sm)}.study .lead{color:var(--muted)}.tts-rate{color:var(--muted);font-size:var(--fs-sm);flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;font-weight:700;display:inline-flex}.tts-rate button{border:1px solid var(--border);background:var(--panel);min-width:50px;min-height:40px;color:var(--muted);padding:6px 9px;font-weight:800}.tts-rate button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.tts-rate button:disabled,.tts-button:disabled{opacity:.55;cursor:not-allowed}.study-cert{margin-bottom:20px}.study-cert>h2{color:var(--accent);font-size:var(--fs-h2);border-bottom:2px solid var(--border);padding-bottom:6px}.study-level{margin-bottom:8px}.study-level-name{font-size:var(--fs-body);color:var(--muted);letter-spacing:.04em;margin:18px 0 4px}.study-subject{background:var(--panel);border:1px solid var(--border);box-shadow:0 6px 18px var(--shadow);border-radius:10px;margin:14px 0;padding:14px 18px}.study-subject>h3{font-size:var(--fs-card);margin:4px 0 12px}.study-topic{margin:10px 0 18px;scroll-margin-top:12px}.study-topic h4{font-size:var(--fs-h4);color:var(--text);margin:0 0 6px;line-height:1.5}.study-contents{color:var(--muted);margin:0 0 6px;padding-left:20px}.study-contents li{margin:2px 0;line-height:1.6}.study-notes{border-left:1px solid var(--accent);margin:10px 0;padding-left:14px}.study-notes summary{color:var(--accent);cursor:pointer;padding:6px 0;font-weight:800;line-height:1.6}.study-notes summary span{color:var(--muted);font-size:var(--fs-sm);font-weight:700}.study-note-section{margin:10px 0 14px}.study-note-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;display:flex}.study-note-title{font-size:var(--fs-body);color:var(--text);margin:0;font-weight:800;line-height:1.5}.tts-button{border:1px solid var(--border);background:var(--panel);width:40px;height:40px;color:var(--accent);flex:none;place-items:center;display:inline-grid}.tts-button.speaking{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.tts-button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:19px;height:19px}.study-note-section ul{color:var(--muted);margin:0;padding-left:20px}.study-note-section li{overflow-wrap:anywhere;margin:5px 0;line-height:1.72}.study-links{margin:0;padding-left:20px}.study-links li{margin:6px 0;line-height:1.6}.reading-link{color:var(--accent);text-underline-offset:3px;font-weight:600;-webkit-text-decoration:underline #0000;text-decoration:underline #0000}.exam-bar{z-index:5;background:var(--bar-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);padding:8px 4px;position:sticky;top:0}.exam-bar .submit{flex:none;padding:8px 16px}.exam-bar .exam-quit{color:var(--muted);background:0 0;border-color:#0000;padding:8px 10px}.exam-map>summary{color:var(--text);padding:8px 12px}.exam-map>summary .progress{color:inherit;white-space:nowrap}@media (width<=430px){.exam-map .progress-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.exam-bar{gap:8px}}.exam-map-panel{z-index:10;background:var(--panel);border:1px solid var(--border);box-shadow:0 12px 32px var(--shadow);border-top:none;border-radius:0 0 10px 10px;padding:12px 14px 14px;position:absolute;top:calc(100% + 1px);left:0;right:0}.exam-map-hint{color:var(--muted);font-size:var(--fs-sm);margin:0 0 10px}.exam-map-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;display:grid}.exam-map-cell{font-variant-numeric:tabular-nums;min-height:36px;font-weight:700;font-size:var(--fs-sm);background:var(--panel-raised);color:var(--muted);border:1px dashed var(--border);padding:0}.exam-map-cell.is-answered{background:var(--accent);color:var(--on-accent);border:1px solid var(--accent)}.exam-paper{gap:14px;display:grid}.exam-q{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:16px;scroll-margin-top:76px}.exam-q .prompt{margin-top:0}.qnum{color:var(--accent);margin-right:4px;font-weight:800}.exam-paper .choices{grid-template-columns:1fr}.submit-bottom{width:100%;padding:14px;font-size:1.05rem}.your-answer{color:var(--muted);margin:8px 0 0;font-weight:700}.exam-paper.review .explanation{margin-top:10px}.result-verdict{margin-bottom:18px}.result-verdict .score{font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:baseline;gap:12px;margin:0;font-size:2.5rem;font-weight:850;line-height:1.15;display:flex}.result-verdict.is-pass .score{color:var(--accent)}.result-verdict.is-fail .score{color:var(--wrong)}.score-verdict{font-size:var(--fs-h3);border:1.5px solid;border-radius:999px;padding:2px 12px;font-weight:800}.result-line{font-size:var(--fs-h3);margin:10px 0 0;font-weight:700;line-height:1.6}.answer-strip{margin:0 0 18px}.strip{margin:14px 0 12px;position:relative}.strip-cells{border-radius:6px;height:30px;display:flex;overflow:hidden}.strip-cell{box-shadow:inset -2px 0 0 var(--bg);flex:1 1 0}.strip-cell:last-child{box-shadow:none}.strip-cell.is-correct{background:var(--correct)}.strip-cell.is-wrong{background:var(--wrong)}.strip-cell.is-skip{background:var(--panel-alt)}.strip-line{left:var(--line);background:var(--text);border-radius:2px;width:3px;margin-left:-2px;position:absolute;top:-8px;bottom:-8px}.strip-legend{color:var(--muted);font-size:var(--fs-sm);font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:6px 16px;display:flex}.legend-item{align-items:center;gap:6px;display:inline-flex}.legend-item:before{content:"";border-radius:3px;width:12px;height:12px}.legend-item.is-correct:before{background:var(--correct)}.legend-item.is-wrong:before{background:var(--wrong)}.legend-item.is-skip:before{background:var(--panel-alt);box-shadow:inset 0 0 0 1px var(--border)}.legend-item.is-line:before{background:var(--text);width:3px;height:14px}.result-actions{gap:10px;margin:0 0 12px;display:flex}.result-actions .submit{min-width:min(240px,100%)}.result-table .topic-action{text-align:right;white-space:nowrap;width:1%}.result-table .topic-rate{width:1%}.confirm-dialog{background:var(--panel);width:min(420px,100vw - 32px);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:22px 20px 18px;box-shadow:0 24px 60px #00000040,0 4px 12px #0000001f}.confirm-dialog::backdrop{background:var(--backdrop)}.confirm-title{font-size:var(--fs-card);margin:0 0 8px}.confirm-body{color:var(--muted);margin:0 0 18px;line-height:1.7}.confirm-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.confirm-btn{min-height:var(--tap);border:1px solid var(--border);background:var(--panel);color:var(--text);flex:auto;padding:10px 16px;font-weight:800}.confirm-btn.is-primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.confirm-btn.is-danger{color:var(--wrong);border-color:var(--wrong)}.note-block{margin:10px 0 10px -1.1em;list-style:none}.note-table-wrap{-webkit-overflow-scrolling:touch;overflow-x:auto}.note-table{border-collapse:collapse;min-width:100%;font-size:var(--fs-sm)}.note-table caption{text-align:left;color:var(--text);caption-side:top;padding:2px 0 6px;font-weight:700}.note-table th,.note-table td{border:1px solid var(--border);text-align:left;white-space:nowrap;padding:6px 10px}.note-table thead th{background:var(--accent-soft);color:var(--accent);font-weight:700}.note-table tbody th,.note-table tbody td:first-child{font-weight:600}.note-formula{background:var(--accent-soft);border:1px solid var(--accent-tint);border-radius:8px;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:8px 12px;display:flex}.note-formula-label{font-weight:600}.note-formula-expr{color:var(--accent);overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.95rem}.note-formula-note{color:var(--muted);font-size:var(--fs-sm)}.note-flow-label{font-weight:600}.note-flow-steps{flex-wrap:wrap;align-items:center;gap:4px;margin:0;padding:6px 0 0;list-style:none;display:flex}.note-flow-steps li{background:var(--panel);border:1px solid var(--border);font-size:var(--fs-sm);border-radius:999px;padding:2px 10px}.note-flow-steps li+li:before{content:"→";color:var(--muted);margin-right:8px}.study-note-section.is-collapsible{border-left:1px solid var(--border);padding-left:12px}.study-note-section.is-collapsible>summary{cursor:pointer;color:var(--text);padding:8px 0;font-weight:700}.study-note-section.is-collapsible>summary span{color:var(--muted);font-weight:400;font-size:var(--fs-sm)}.study-note-section.is-collapsible[open]>summary{color:var(--accent)}.study-note-section.is-collapsible>.study-note-heading .study-note-title{display:none}.study-tools{gap:8px;margin:10px 0 16px;display:grid}.study-tools-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.study-search{min-width:0;min-height:var(--tap);border:1px solid var(--border);background:var(--panel-raised);color:var(--text);border-radius:8px;flex:240px;padding:8px 12px;font-size:1rem}.study-search-count{color:var(--muted);font-size:var(--fs-sm)}.study-action{border:1px solid var(--border);background:var(--panel);min-height:40px;font-size:var(--fs-sm);color:var(--text);cursor:pointer;border-radius:999px;padding:6px 14px}.study-action.active{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.study-toc{gap:12px;padding-bottom:4px;display:flex;overflow-x:auto}.study-toc-group{flex:none;align-items:center;gap:4px;display:flex}.study-toc-label{color:var(--muted);font-size:var(--fs-xs);white-space:nowrap}.study-toc-chip{border:1px solid var(--border);background:var(--panel);min-height:40px;font-size:var(--fs-sm);font-variant-numeric:tabular-nums;color:var(--accent);cursor:pointer;white-space:nowrap;border-radius:6px;padding:4px 10px}.study-cert.is-cram .study-note-section:not([data-note-section=formula]):not([data-note-section=confuse]),.study-cert.is-cram .study-contents,.study-cert.is-cram .study-links{display:none}.node-actions{flex-wrap:wrap;gap:8px;margin:8px 0;display:flex}.node-drill{border:1px solid var(--accent);background:var(--accent-soft);color:var(--accent);min-height:40px;font-size:var(--fs-sm);cursor:pointer;border-radius:999px;padding:6px 14px;font-weight:700}.node-drill.is-empty{border-style:dashed;border-color:var(--border);color:var(--muted);cursor:default;background:0 0;align-items:center;font-weight:400;display:inline-flex}.node-read{border:1px solid var(--border);background:var(--panel);color:var(--muted);min-height:40px;font-size:var(--fs-sm);cursor:pointer;border-radius:999px;padding:6px 14px}.node-read.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:600}.study-read-count{color:var(--muted);font-size:var(--fs-sm);margin-right:auto}.abbr-lookup{margin:0 0 12px}.study-cert.is-cram .node-actions{display:none}@media (hover:hover){.back:hover,.drill-jump-go:hover,.drill-topics:hover,.drill-reset:hover,.drill-confidence:hover,.drill-filter:hover,.qnav button:hover,.study-entry:hover,.tts-button:hover,.study-action:hover,.study-toc-chip:hover,.confirm-btn:hover,.drill-tools>summary:hover,.exam-map>summary:hover,.cert-card:hover,.level-card:hover,.mode-card:hover,.subject-card:hover{border-color:var(--accent);background:var(--accent-soft)}.subject-card.is-empty:hover{border-color:var(--border);background:var(--panel)}.exam-bar .exam-quit:hover{background:var(--panel);border-color:var(--border);color:var(--text)}button.choice:not(.selected):not(.correct):not(.wrong):hover{border-color:var(--accent);background:var(--accent-soft)}.submit:hover,.qnav .submit:hover,.confirm-btn.is-primary:hover,.study-action.active:hover{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--on-accent)}.confidence-btn:not(.active):hover{border-color:var(--accent)}.tts-button:disabled:hover{border-color:var(--border);background:var(--panel)}.node-drill:not(.is-empty):hover{background:var(--accent);color:var(--on-accent)}.node-read:hover{border-color:var(--accent);color:var(--accent)}.exam-map-cell:not(.is-answered):hover{border-style:solid;border-color:var(--accent);color:var(--accent)}.reading-link:hover{text-decoration-color:currentColor}}
