.deck-totals,.history-note{color:var(--muted);line-height:1.7}
.deck-record{margin-top:12px!important;font-size:12px!important;padding-right:14px}
.study-mode-card{padding:30px;border:1px solid var(--line);border-radius:24px;background:var(--surface)}
.mode-icon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--surface-2);color:var(--blue-2);font-size:28px}
.study-mode-card h2{font-size:25px;margin:20px 0 12px}
.study-mode-card p{color:var(--muted);line-height:1.8;font-size:14px;min-height:50px}
.study-mode-card strong{display:block;margin:22px 0;font-size:14px;line-height:1.6}
.study-setup>p{min-height:0}
.study-scope-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:0;padding:0;margin:24px 0}
.study-scope-option{display:grid;grid-template-columns:18px 1fr;align-items:start;gap:10px;border:1px solid var(--line);border-radius:16px;padding:18px;cursor:pointer;background:var(--bg)}
.study-scope-option:has(input:checked){border-color:var(--blue);background:var(--surface-2);box-shadow:0 0 0 1px var(--blue)}
.study-scope-option:has(input:focus-visible){outline:3px solid var(--blue-2);outline-offset:3px}
.study-scope-option input{width:17px;height:17px;margin:3px 0 0;accent-color:var(--blue)}
.study-scope-option b{display:block;font-size:15px;line-height:1.5}.study-scope-option small{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin-top:8px}
.study-scope-option>strong{grid-column:2;font-size:18px;margin:4px 0 0;color:var(--blue-2)}
.study-scope-option:has(input:disabled){opacity:.6;cursor:wait}
.mode-actions{display:flex;flex-wrap:wrap;gap:10px}
.history-note{font-size:12px;margin:18px 0 30px}
.history-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:40px}
.history-heading h2{font-size:20px}.history-heading span{font-size:12px;color:var(--muted)}
.study-history{list-style:none;padding:0;display:grid;gap:8px}
.study-history li{display:flex;gap:22px;align-items:center;padding:18px 22px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.study-history li>span:first-child{flex:1}.study-history small{display:block;margin-top:5px;color:var(--muted);font-size:12px}
.history-correct{color:var(--green)}.history-wrong,.card-wrong-count{color:var(--red)}
.history-empty{color:var(--muted);font-size:14px}
.study-save-row{display:flex;align-items:center;justify-content:space-between;margin-top:-12px;margin-bottom:10px;color:var(--muted);font-size:12px}
.study-save-row .text-button{font-size:12px;padding:8px 12px}
.card-wrong-count{font-size:12px;border:1px solid var(--line);padding:3px 9px;border-radius:20px}
.card-meta{align-items:center;gap:10px}.saved-result{color:var(--muted);font-size:12px}
.result-deck-name{font-weight:600}.list-mistakes{color:var(--red)!important;margin-top:6px}
@media(max-width:700px){.study-scope-options{grid-template-columns:1fr}.study-scope-option{grid-template-columns:18px 1fr auto;padding:16px}.study-scope-option>strong{grid-column:3;grid-row:1;margin:0}.study-mode-card{padding:24px}.study-history li{padding:15px;gap:12px;font-size:13px}.card-wrong-count{font-size:11px}.history-heading{margin-top:28px}.study-save-row{margin-top:0}}

/* Status colors apply equally to both faces, including the light theme. */
[data-learning-status="mastered"]{--learning-bg:linear-gradient(145deg,#173e32,#142c28);--learning-border:#37775d;--learning-accent:#88edba;--learning-chip:#214b3a}
[data-learning-status="learning"]{--learning-bg:linear-gradient(145deg,#233851,#192b42);--learning-border:#456c9b;--learning-accent:#b3d4ff;--learning-chip:#294567}
[data-learning-status="focus"]{--learning-bg:linear-gradient(145deg,#4c3224,#34261f);--learning-border:#9d6845;--learning-accent:#ffd1a1;--learning-chip:#60402b}
.light [data-learning-status="mastered"]{--learning-bg:linear-gradient(145deg,#e1f4e9,#f1faf5);--learning-border:#8abca0;--learning-accent:#195d3b;--learning-chip:#caead7}
.light [data-learning-status="learning"]{--learning-bg:linear-gradient(145deg,#e5efff,#f4f8ff);--learning-border:#97b4df;--learning-accent:#244f8c;--learning-chip:#d4e4fc}
.light [data-learning-status="focus"]{--learning-bg:linear-gradient(145deg,#ffe9d7,#fff7ee);--learning-border:#d7a779;--learning-accent:#85410f;--learning-chip:#ffdcc0}
.flashcard[data-learning-status] .card-face,.list-card[data-learning-status]{background:var(--learning-bg);border-color:var(--learning-border)}
.learning-badge{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;border-radius:999px;padding:5px 10px;background:var(--learning-chip,var(--surface-2));color:var(--learning-accent,var(--text));font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap}
.learning-summary{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}.learning-summary b{font-variant-numeric:tabular-nums}
.classification-note{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 22px}
.card-learning-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:18px}
.recent-performance{color:var(--learning-accent);font-size:12px;line-height:1.6}
.list-card .learning-badge{margin-top:8px}.list-card .list-performance{font-size:11px;margin:8px 0 4px;color:var(--learning-accent)}
.list-card .list-mistakes{font-size:11px}
.flashcard[data-learning-status] .side-label,.flashcard[data-learning-status] .flip-prompt{color:var(--learning-accent)}
.light .card-wrong-count,.light .list-card .list-mistakes{color:#a82f43!important}
@media(max-width:700px){.card-learning-row{margin-top:14px;gap:7px}.recent-performance{font-size:11px}.learning-badge{font-size:11px}.classification-note{margin-bottom:18px}}
