:root{--ink:#25213b;--muted:#726c83;--purple:#7555e8;--purple-dark:#5333c4;--coral:#f38e80;--teal:#239d93;--sky:#467bd9;--paper:#f7f5fc;--line:#e6e0ef;--shadow:0 18px 55px #35245f0c;--radius:24px}*{box-sizing:border-box}body{margin:0;background:var(--paper);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:15px;line-height:1.6}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e99538;outline-offset:4px}a{color:var(--purple-dark)}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.18;letter-spacing:-.035em}h1{font-size:clamp(36px,5vw,64px);font-weight:800}h2{font-size:28px}h3{font-size:20px}button{border:0}a{text-underline-offset:3px}.top{max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:24px 32px;gap:20px}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);font-weight:850;font-size:27px;line-height:1}.brand-mark{display:grid;place-items:center;border-radius:15px;width:47px;height:47px;background:var(--purple);color:white;font-size:38px;box-shadow:0 5px 15px #7555e833}.brand-sub{display:block;font-size:9px;letter-spacing:.15em;margin-top:7px;font-weight:700}.top-right{display:flex;align-items:center;gap:14px}.status-pill{font-size:11px;font-weight:750;letter-spacing:.02em;color:#686079;background:white;padding:7px 12px;border-radius:30px;border:1px solid var(--line)}.status-pill.ready{background:#dff5eb;color:#146958}.icon-button{border-radius:50%;height:40px;width:40px;background:white;color:var(--ink);font-size:23px;border:1px solid var(--line)}main{max-width:1216px;margin:12px auto 110px;padding:0 32px;outline:none}.hero{background:#201a38;color:white;border-radius:32px;padding:38px 44px;display:grid;grid-template-columns:1.6fr 1fr;overflow:hidden;position:relative;min-height:315px}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-weight:800;font-size:11px;margin-bottom:17px;color:var(--purple)}.hero .eyebrow{color:#bca9ff}.hero h1{max-width:620px;margin:0 0 18px;line-height:1.07}.hero h1 em{font-style:normal;color:#c5b1ff}.hero p{color:#cdc6df;max-width:460px;font-size:14px;margin-bottom:22px}.hero-art{position:relative;min-height:250px;display:grid;place-items:center}.orb{width:218px;height:218px;border:1px solid #ffffff29;border-radius:50%;position:absolute;box-shadow:0 0 0 33px #ffffff05,0 0 0 66px #ffffff03}.art-card{height:180px;width:140px;background:linear-gradient(145deg,#a487ff,#7051dc);border:1px solid #c6b6ff;box-shadow:0 20px 40px #0003;border-radius:19px;transform:rotate(13deg);position:absolute;padding:20px;text-align:center}.art-card.back{background:#f9ae92;transform:translate(-65px,9px) rotate(-14deg);border-color:#ffd3bf}.art-card b{font-size:65px;color:#fff}.art-card small{display:block;color:#fff;font-size:9px;letter-spacing:.16em;font-weight:800}.art-spark{position:absolute;font-size:43px;color:#f8c875;right:0;top:5px}.art-dot{position:absolute;border-radius:50%;background:#83dcd1;width:23px;height:23px;left:12px;bottom:14px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:12px 19px;text-decoration:none;font-weight:750;font-size:13px;min-height:46px;transition:transform .16s,background .16s}.button:hover{transform:translateY(-2px)}.primary{background:var(--purple);color:white}.primary:hover{background:var(--purple-dark)}.secondary{background:#eee9fb;color:#5235a8;border:1px solid #e1d7fa}.dark{background:#29223c;color:white}.hero .primary{background:#c7b5ff;color:#2e2154}.ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero .ghost{color:white;border-color:#ffffff42}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0 36px}.stat{padding:22px 22px;background:white;border:1px solid var(--line);border-radius:19px;display:flex;align-items:center;gap:14px}.stat-icon{font-size:26px;width:49px;height:49px;border-radius:14px;display:grid;place-items:center;flex-shrink:0;background:#eee8ff;color:var(--purple)}.stat:nth-child(2) .stat-icon{background:#dbf2ef;color:var(--teal)}.stat:nth-child(3) .stat-icon{background:#fff0e8;color:#bc6148}.stat:nth-child(4) .stat-icon{background:#e6edff;color:var(--sky)}.stat strong{display:block;font-size:26px;line-height:1.2;letter-spacing:-.04em}.stat small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:30px 0 20px}.section-heading h2{margin:0}.section-heading p{margin:0;font-size:13px;color:var(--muted)}.topic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.topic-tile{padding:24px;text-align:left;background:white;border:1px solid var(--line);border-radius:23px;box-shadow:var(--shadow);color:var(--ink);position:relative;overflow:hidden;transition:transform .2s,border-color .2s}.topic-tile:hover{transform:translateY(-4px);border-color:var(--accent)}.topic-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:750;color:var(--muted);margin-bottom:22px}.topic-number{display:grid;place-items:center;background:var(--tint);color:var(--accent);width:47px;height:47px;border-radius:15px;font-size:24px}.topic-tile h3{margin:0 0 10px;min-height:48px;font-size:20px;max-width:250px}.topic-tile .tiny{font-size:12px}.progress-track{height:5px;background:#f0edf5;border-radius:9px;margin-top:19px;overflow:hidden}.progress-track i{display:block;height:100%;background:var(--accent,var(--purple));border-radius:9px}.topic-bottom{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:8px}.notice{background:#fff6e6;border:1px solid #eddbb8;color:#6e5427;border-radius:15px;padding:14px 18px;font-size:12px;margin:22px 0}.tiny{font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.page-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.page-title h1{font-size:40px;margin-bottom:8px}.page-title p{margin:0;color:var(--muted);font-size:14px}.filters{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.5fr;gap:12px;background:white;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:22px}.field{font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}.field select,.field input{display:block;margin-top:5px;width:100%;border:1px solid var(--line);border-radius:9px;padding:10px 9px;font-size:12px;color:var(--ink);background:#faf9fd;min-height:43px;letter-spacing:0;text-transform:none;font-weight:500}.study-topline{display:flex;justify-content:space-between;align-items:center;max-width:840px;margin:0 auto 14px;font-size:12px;color:var(--muted)}.study-stage{max-width:840px;margin:auto;perspective:1200px}.flip-card{position:relative;background:white;border:1px solid var(--line);border-radius:28px;padding:32px 38px;min-height:400px;box-shadow:var(--shadow);overflow:hidden;transition:transform .3s;cursor:pointer}.flip-card:before{content:'';position:absolute;top:0;left:0;width:100%;height:6px;background:linear-gradient(90deg,#9c77f3,#f3a38f,#63c5bb)}.flip-card.revealed{background:#fffefa}.card-kicker{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.13em;color:var(--purple);display:flex;justify-content:space-between;gap:12px;margin-bottom:24px}.badge{background:#eee9fc;padding:4px 8px;border-radius:7px;letter-spacing:.02em;font-size:9px;white-space:nowrap}.badge.official{background:#e1edff;color:#2d62ad}.flip-card h2{font-size:clamp(22px,3vw,32px);line-height:1.35;margin:0 0 25px;letter-spacing:-.025em}.flip-card .answer{font-size:24px;font-weight:800;line-height:1.4;margin:0 0 16px}.explanation{font-size:14px;line-height:1.8;color:#655e76;white-space:pre-line}.visual{background:#f6f3fc;border:1px solid #ebe5f6;border-radius:16px;padding:17px 20px;margin:22px 0 0}.visual-title{font-size:10px;font-weight:800;color:var(--purple);letter-spacing:.08em;text-transform:uppercase;margin-bottom:12px}.visual-items{display:flex;gap:8px;flex-wrap:wrap}.visual-item{flex:1;min-width:105px;background:white;border:1px solid #ded4f3;border-radius:9px;padding:11px;font-size:12px;line-height:1.4}.visual-item b{display:block;color:var(--purple);font-size:17px;margin-bottom:4px}.legacy-visual svg{max-width:100%;height:auto;max-height:220px;display:block;margin:auto}.flip-hint{text-align:center;color:#9588b1;font-size:11px;margin-top:28px}.card-source{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:15px;margin-top:20px}.card-source a{overflow-wrap:anywhere}.card-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:20px 0}.review-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:15px 0}.selected-action{box-shadow:inset 0 0 0 2px var(--purple)}.mastered{background:#def3eb;color:#126b56}.needs{background:#fff0df;color:#9a591e}.empty{background:white;text-align:center;padding:65px 25px;border-radius:24px;border:1px dashed #cfc3e6}.empty h2{font-size:24px}.test-layout{max-width:840px;margin:auto}.panel{padding:28px;background:white;border:1px solid var(--line);border-radius:25px;box-shadow:var(--shadow)}.test-settings{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:25px 0}.choice{display:flex;gap:13px;align-items:flex-start;padding:15px 17px;border:1px solid var(--line);border-radius:12px;background:#faf9fd;margin:10px 0;cursor:pointer;font-size:14px}.choice input{accent-color:var(--purple);margin-top:6px}.choice.correct{border-color:#38a989;background:#e7f7ef}.choice.incorrect{border-color:#d2726e;background:#fcecea}.test-feedback{padding:19px;background:#f3effb;border-radius:13px;margin:18px 0}.test-feedback h3{font-size:18px}.test-feedback p{font-size:14px}.test-foot{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:24px}.score-circle{width:155px;height:155px;border-radius:50%;display:grid;place-content:center;background:#eee7ff;color:var(--purple-dark);font-size:47px;font-weight:850;letter-spacing:-.06em;margin:15px auto 25px;line-height:1.1}.score-circle small{font-size:10px;letter-spacing:.08em;text-transform:uppercase}.score-summary{text-align:center}.history{display:grid;gap:12px}.history-row{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:14px 0;font-size:13px}.history-row b{font-size:20px;color:var(--purple)}.chapter-progress{display:grid;grid-template-columns:1fr auto;gap:6px 18px;margin-bottom:24px}.chapter-progress .progress-track{grid-column:1/-1;margin:0}.chapter-progress strong{font-size:13px}.chapter-progress span{font-size:12px;color:var(--muted)}.two-col{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.bottom-nav{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:8px;display:flex;gap:6px;background:#211b34;color:white;border:1px solid #5a4c75;border-radius:22px;box-shadow:0 12px 35px #211b3433;z-index:20}.bottom-nav button{background:transparent;color:#bab0ce;display:flex;align-items:center;gap:9px;padding:12px 20px;border-radius:14px;font-size:12px;font-weight:750;white-space:nowrap}.bottom-nav button span{font-size:21px}.bottom-nav button.active{color:white;background:#7051d4}.toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);background:#29213c;color:white;border-radius:12px;padding:12px 22px;box-shadow:0 5px 25px #0002;z-index:60;font-size:13px;max-width:90%;text-align:center}.update-banner{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:70;background:#e9e0ff;border:1px solid #b6a0ed;border-radius:15px;padding:12px 16px;box-shadow:var(--shadow);font-size:13px;width:max-content;max-width:95%}.update-banner button{background:var(--purple);color:white;border-radius:7px;padding:6px 10px;margin-left:8px}.skip{position:fixed;top:-50px;left:10px;z-index:100;background:white;padding:10px}.skip:focus{top:10px}dialog{max-width:580px;width:calc(100% - 28px);border:1px solid var(--line);border-radius:26px;padding:28px;color:var(--ink);box-shadow:0 25px 80px #0003}dialog::backdrop{background:#19112599;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-heading h2{font-size:26px;margin:0}.dialog-heading+p{margin-top:15px;font-size:13px}.settings-block{border-top:1px solid var(--line);padding-top:22px;margin-top:22px;font-size:13px}.settings-block h3{font-size:19px}.settings-block .button{margin:0 5px 10px 0}.settings-block .tiny{font-size:11px}footer{color:var(--muted);font-size:11px;text-align:center;margin:30px 0}.nowrap{white-space:nowrap}[hidden]{display:none!important}
@media(min-width:1250px){.hero-art{margin-left:40px}}@media(max-width:950px){.topic-grid{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1.5fr 1fr;padding:30px}.hero-art{transform:scale(.8)}.filters{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}}@media(max-width:600px){.top{padding:19px 18px}.brand{font-size:23px}.brand-mark{width:42px;height:42px}.brand-sub{font-size:8px}.top-right{gap:7px}.status-pill{font-size:9px;padding:5px 8px;max-width:105px;text-align:center}.icon-button{height:34px;width:34px;font-size:20px}main{padding:0 17px;margin:4px auto 100px}.hero{padding:27px 23px;border-radius:25px;grid-template-columns:1fr;min-height:0}.hero h1{font-size:39px;max-width:310px}.hero p{font-size:13px;max-width:280px}.hero-art{display:none}.hero .eyebrow{font-size:9px;margin-bottom:13px}.hero-actions .button{font-size:12px;padding:11px 14px}.stats{gap:9px;margin:15px 0 28px}.stat{padding:15px 13px;gap:10px;border-radius:16px}.stat-icon{width:35px;height:35px;border-radius:11px;font-size:21px}.stat strong{font-size:23px}.stat small{font-size:9px}.section-heading{align-items:start;margin:23px 0 15px}.section-heading h2{font-size:24px}.section-heading p{font-size:11px;text-align:right;max-width:110px}.topic-grid{gap:11px}.topic-tile{padding:16px;border-radius:19px}.topic-meta{font-size:9px;margin-bottom:16px}.topic-number{width:36px;height:36px;border-radius:11px;font-size:20px}.topic-tile h3{font-size:16px;min-height:56px;margin-bottom:5px}.topic-tile .tiny{font-size:10px}.topic-bottom{font-size:9px}.progress-track{margin-top:15px}.notice{font-size:10px;padding:12px 14px}.bottom-nav{bottom:0;left:0;transform:none;width:100%;border-radius:18px 18px 0 0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));justify-content:space-around;gap:2px}.bottom-nav button{flex:1;flex-direction:column;gap:0;padding:6px 5px;font-size:9px;border-radius:12px}.bottom-nav button span{font-size:22px}.page-title h1{font-size:32px}.page-title p{font-size:12px}.page-title .button{font-size:11px;padding:9px 12px;min-height:39px}.filters{padding:12px;gap:9px;border-radius:15px}.field{font-size:9px}.field select,.field input{font-size:11px;padding:9px 7px}.flip-card{padding:25px 22px;min-height:380px;border-radius:23px}.card-kicker{font-size:8px;margin-bottom:21px;align-items:center}.badge{font-size:8px;max-width:100px;white-space:normal;text-align:center}.flip-card h2{font-size:23px}.flip-card .answer{font-size:21px}.explanation{font-size:13px}.visual{padding:13px;margin-top:18px}.visual-item{font-size:10px;min-width:80px;padding:9px}.visual-item b{font-size:14px}.card-source{font-size:10px}.review-actions{gap:6px}.review-actions .button{font-size:11px;padding:10px 12px}.card-actions{gap:8px}.card-actions .button{font-size:12px;padding:11px 15px}.panel{padding:22px 18px}.panel h2{font-size:24px}.test-settings{grid-template-columns:1fr;gap:12px;margin:20px 0}.test-foot .button{font-size:12px;padding:11px 15px}.choice{padding:13px;font-size:13px}.toast{bottom:95px}.update-banner{font-size:11px}dialog{padding:23px}.dialog-heading h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Comfortable phone controls without disabling browser zoom. */
.flip-card:focus-visible{outline:3px solid #e99538;outline-offset:4px}
.field{min-width:0}
@media(max-width:600px){
 .field select,.field input{font-size:16px;min-height:46px}
 .icon-button{width:44px;height:44px;flex-shrink:0}
 .page-title .button{min-height:44px}
 .update-banner button{min-height:44px;min-width:44px}
 .test-foot{flex-wrap:wrap}
}
.chapter-queues{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.chapter-queues .button{min-height:44px;font-size:12px;padding:10px 12px;white-space:normal;text-align:left}
.history-row>div{min-width:0;overflow-wrap:anywhere}.history-review-button{margin-top:10px;min-height:48px;max-width:100%;white-space:normal}.history-row>b{flex-shrink:0}
.missed-review{margin-top:12px;border:1px solid #e4dff0;border-radius:12px;padding:0 14px;overflow-wrap:anywhere}.missed-review summary{cursor:pointer;padding:14px 0;min-height:44px;line-height:1.5}.missed-review summary:focus-visible{outline:3px solid #7755d6;outline-offset:3px;border-radius:6px}.missed-review .test-feedback{margin-bottom:14px}
@media(max-width:600px){.study-stage{display:flex;flex-direction:column}.study-stage .flip-card{order:0;min-height:320px}.study-stage .card-actions{order:1;position:sticky;bottom:calc(88px + env(safe-area-inset-bottom));z-index:10;background:var(--paper);padding:10px 0;margin:10px 0;border-radius:14px;box-shadow:0 4px 16px #35245f18}.study-stage .card-actions .button{min-height:48px;flex:1;padding:10px 8px}.study-stage .review-actions{order:2;margin-bottom:calc(30px + env(safe-area-inset-bottom))}}
.study-rating{display:table;padding:7px 12px;border-radius:9px;margin:0 0 18px;font-size:13px;font-weight:800;border:2px solid currentColor}.study-rating.is-mastered{background:#def3eb;color:#126b56}.study-rating.is-review{background:#fff0df;color:#844714}.study-rating.is-unrated{background:#f2eff8;color:#625975}.review-actions .mastered.selected-action{background:#126b56;color:white;box-shadow:inset 0 0 0 2px #084c3d}.review-actions .needs.selected-action{background:#844714;color:white;box-shadow:inset 0 0 0 2px #61320c}
/* Keep progress controls discoverable and the settings close control reachable. */
.progress-tools{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
dialog{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.dialog-heading{position:sticky;top:-28px;z-index:2;background:white;padding:12px 0}
#resetSection{scroll-margin-block:80px}
#testFeedbackHeading{scroll-margin-top:96px}
@media(max-width:600px){.dialog-heading{top:-23px}.dialog-heading .icon-button{min-width:44px;min-height:44px}.progress-tools .button{min-height:44px}.settings-block .button{min-height:44px}}
.chapter-options{grid-column:1 / -1;min-width:0;margin-top:8px;border:1px solid var(--line);border-radius:12px;padding:0 12px}
.chapter-options>summary{cursor:pointer;min-height:48px;padding:12px 0;font-weight:750;color:var(--purple-dark);overflow-wrap:anywhere}
.chapter-options>summary:focus-visible{outline:3px solid #e99538;outline-offset:3px;border-radius:6px}
.chapter-options[open]{padding-bottom:12px}
.chapter-options .chapter-queues{margin-top:0}
.legacy-visual svg.directed-network-diagram{width:100%;max-width:360px;max-height:none}
.legacy-visual svg.rate-reversal-diagram{width:100%;max-width:360px;max-height:none}
.legacy-visual svg.weight-sensitivity-diagram{width:100%;max-width:360px;max-height:none}
.test-help{margin:16px 0;border:1px solid var(--line);border-radius:12px;padding:0 12px;overflow-wrap:anywhere}
.test-help>summary{cursor:pointer;min-height:48px;padding:12px 0;font-weight:750;color:var(--purple-dark)}
.test-help>summary:focus-visible{outline:3px solid #e99538;outline-offset:3px;border-radius:6px}
.test-help p{margin:0 0 16px}
.filters .field:last-child{grid-column:1 / -1}
.ksa-breakdown{margin-top:12px;border-top:1px solid var(--line);min-width:0}
.ksa-breakdown>summary{min-height:48px;padding:12px 0;cursor:pointer;font-weight:750;color:var(--purple-dark)}
.ksa-breakdown>summary:focus-visible{outline:3px solid #e99538;outline-offset:3px}
.ksa-row{border-top:1px solid var(--line);padding:16px 0;overflow-wrap:anywhere}
.ksa-row h4{margin:0 0 8px;font-size:1rem}.ksa-row p{margin:6px 0;font-size:.875rem}
.ksa-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.ksa-actions .button{min-height:44px}
@media(max-width:600px){.ksa-actions{display:grid;grid-template-columns:minmax(0,1fr)}.ksa-actions .button{width:100%;white-space:normal}}
.legacy-visual svg.acquisition-diagram{width:100%;max-width:360px;max-height:none}
.legacy-visual svg.interpolation-diagram{width:100%;max-width:360px;max-height:none}
.legacy-visual svg.coverage-contract-diagram{width:100%;max-width:360px;max-height:none}
.filters .field,.test-settings .field{font-size:.875rem;letter-spacing:.02em}
.legacy-visual svg.project-recovery-diagram{width:100%;max-width:360px;max-height:none}
.filters .field select,.filters .field input,.test-settings .field select{font-size:1rem;min-height:44px}
.legacy-visual svg.record-scope-diagram{width:100%;max-width:360px;max-height:none}
.legacy-visual svg.code-meaning-diagram{width:100%;max-width:360px;max-height:none}
.legacy-visual svg.query-grouping-diagram{width:100%;max-width:360px;max-height:none}
.legacy-visual svg.timing-range-diagram{width:100%;max-width:360px;max-height:none}
.result-scope{font-size:1rem;overflow-wrap:anywhere;line-height:1.6}
/* Learning text must stay readable when the phone layout becomes compact. */
body{font-size:1rem}
.explanation,.choice,.test-feedback p{font-size:1rem}
.card-source,.notice,.study-topline,.study-rating,.stat small,.topic-tile .tiny,.topic-bottom,.chapter-progress strong,.chapter-progress span,.history-row,.page-title p{font-size:.875rem}
.button,.hero-actions .button,.page-title .button,.review-actions .button,.card-actions .button,.test-foot .button,.chapter-queues .button{font-size:.875rem}
.bottom-nav button{font-size:.75rem;min-height:44px}
.stats,.topic-grid,.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.stat>div:last-child,.topic-tile,.chapter-progress,.panel{min-width:0}
.topic-tile h3,.chapter-progress strong,.chapter-progress span{overflow-wrap:anywhere}
.study-topline{flex-wrap:wrap;gap:8px}
@media(min-width:951px){.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.two-col{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}}
@media(max-width:950px){.two-col{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.topic-tile h3{font-size:1.125rem;min-height:0}.topic-meta{font-size:.75rem}.card-kicker,.badge{font-size:.75rem}.card-kicker{flex-wrap:wrap}.badge{max-width:none}.top{flex-wrap:wrap}.top-right{margin-left:auto}}
@media(max-width:400px){.topic-grid{grid-template-columns:minmax(0,1fr)}.stat{flex-direction:column;align-items:flex-start}.page-title{flex-wrap:wrap}}
