/* legacy-components: canonical source module */
/* Retained components: editors, account, Classroom, saved decks, tools and diagrams.
 * The former shell and modal-workspace rules have been removed.
 * New foundation, navigation and workspace live in separate owned modules. */

/* retained from style.css */
:root{--bg:#f7f8f5;--panel:#fff;--ink:#242d27;--muted:#72796f;--line:#e2e5dc;--accent:#284936;--accent-soft:#edf2e9;--cream:#f0ecd9;--cream-ink:#665f40;--wrong:#a33e32;--wrong-bg:#faf0ec;--shadow:0 20px 80px #14241c20;--radius:10px;color-scheme:light;font-family:Arial,Helvetica,sans-serif;font-size:15px}
:root[data-theme=dark]{--bg:#19211c;--panel:#202a23;--ink:#e7ede5;--muted:#a5afa4;--line:#374238;--accent:#bbd6b2;--accent-soft:#2b3c2d;--cream:#393b28;--cream-ink:#e2ddba;--wrong:#f2aa9a;--wrong-bg:#3d2c28;--shadow:0 20px 80px #0006;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.55}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button,input,select,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent)}button{border:0;background:none}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.2;font-weight:500;letter-spacing:-.035em}h1{font-size:38px}h2{font-size:27px}h3{font-size:18px}small,.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.17em;color:var(--muted);text-transform:uppercase}.icon{flex-shrink:0;vertical-align:middle}.skip-link{position:fixed;top:-70px;left:20px;z-index:100;background:var(--accent);color:var(--panel);padding:10px 18px}.skip-link:focus{top:12px}.loading-screen{padding:100px;text-align:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:10px 18px;border:1px solid var(--line);border-radius:6px;background:var(--panel);font-size:13px;font-weight:600;line-height:1.35;transition:background .15s,border-color .15s}.btn:hover{border-color:var(--muted)}.btn.primary{background:var(--accent);color:var(--panel);border-color:var(--accent)}.btn.primary:hover{filter:brightness(1.1)}.btn.soft{background:var(--accent-soft);border-color:transparent;color:var(--accent)}.btn.small{padding:7px 12px;min-height:34px;font-size:12px}.btn.full{width:100%}.btn.danger{border-color:var(--wrong);color:var(--wrong)}.text-btn{color:var(--accent);padding:0;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:4px}.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:6px;color:var(--muted)}.icon-btn:hover,.icon-btn.active{background:var(--accent-soft);color:var(--accent)}.pill{display:inline-flex;gap:6px;align-items:center;font-size:11px;padding:5px 9px;border:1px solid var(--line);border-radius:4px;white-space:nowrap}.pill.soft{background:var(--accent-soft);color:var(--accent);border:0}.pill .icon{width:13px;height:13px}.status-dot{height:6px;width:6px;border-radius:50%;background:var(--accent);display:inline-block;margin-right:6px}.avatar{width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:11px}.user-menu{display:flex;align-items:center;gap:8px;font-size:12px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:29px;gap:20px}.page-heading h1{margin:7px 0 10px}.page-heading p{font-size:13px;color:var(--muted)}.date-label{font-size:11px;color:var(--muted);margin-bottom:5px;white-space:nowrap}.feature{display:grid;grid-template-columns:1.28fr 1fr;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);overflow:hidden;margin-bottom:28px;min-height:207px}.feature-copy{padding:30px 31px}.feature-copy h2{font-size:28px;line-height:1.12;margin:11px 0 12px;max-width:390px}.feature-copy p{max-width:345px;font-size:12px;line-height:1.65;color:var(--muted);margin-bottom:17px}.feature-copy .text-btn{display:flex;align-items:center;gap:8px;text-decoration:none}.feature-art{position:relative;overflow:hidden;border-left:1px solid var(--line);background:var(--cream);display:flex;align-items:center;justify-content:center;padding:20px}.graph-grid{position:absolute;inset:0;opacity:.45;background-image:linear-gradient(#a99f7322 1px,transparent 1px),linear-gradient(90deg,#a99f7322 1px,transparent 1px);background-size:24px 24px}.feature-math{position:relative;transform:rotate(-4deg);display:flex;align-items:center;gap:16px;font-family:Georgia,serif;font-size:44px;color:var(--cream-ink);padding-bottom:20px}.feature-math math{font-size:45px}.pencil-note{position:absolute;bottom:35px;font-family:Georgia,serif;font-style:italic;font-size:14px;color:var(--cream-ink);transform:rotate(-4deg);border-bottom:1px solid #9b9378;padding:0 10px 5px}.stat-strip{display:grid;grid-template-columns:repeat(4,1fr);padding:5px 0 27px;border-bottom:1px solid var(--line);margin-bottom:29px;gap:15px}.stat-item{padding-left:23px;border-left:1px solid var(--line)}.stat-item:first-child{padding-left:0;border-left:0}.stat-label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.stat-label .icon{width:14px;height:14px}.stat-value{font-size:27px;letter-spacing:-.04em;margin-top:7px;line-height:1.2}.stat-value span{font-size:12px;font-weight:400;color:var(--muted);letter-spacing:0;margin-left:6px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.section-title h2{font-size:21px}.section-title p{font-size:11px;color:var(--muted);margin-top:4px}.search-box{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:6px;background:var(--panel);padding:9px 12px;color:var(--muted);width:254px}.search-box input{width:100%;border:0;outline:0;background:transparent;font-size:12px;color:var(--ink)}.search-box .icon{width:16px;height:16px}.topic-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.topic-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);padding:24px;display:flex;flex-direction:column;transition:border .15s,transform .15s}.topic-card:hover{border-color:#a5b29e;transform:translateY(-1px)}.topic-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.topic-number{font-family:Georgia,serif;font-size:16px;color:var(--muted)}.topic-symbol{height:58px;display:flex;align-items:center;font-family:Georgia,serif;font-size:32px;color:var(--accent);margin-bottom:18px}.topic-symbol math{font-size:30px}.topic-symbol .icon{width:65px;height:58px;stroke-width:.8}.topic-card h3{font-size:19px;line-height:1.25;max-width:300px;margin-bottom:10px}.topic-card .topic-description{font-size:12px;color:var(--muted);line-height:1.75;min-height:44px;margin-bottom:18px}.topic-meta{display:flex;gap:12px;align-items:center;color:var(--muted);font-size:10px;margin-bottom:20px}.tiny-dot{height:3px;width:3px;background:var(--muted);border-radius:50%}.topic-progress{border-top:1px solid var(--line);padding-top:16px;margin-top:auto}.progress-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:9px;gap:12px}.progress-label span{color:var(--muted)}.progress-track{height:4px;border-radius:2px;background:var(--line);overflow:hidden}.progress-fill{height:100%;background:var(--accent)}.topic-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}.topic-actions .text-btn{font-size:11px}.topic-actions .btn{font-size:12px;min-height:38px;padding:9px 12px}.bottom-note{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:22px;margin-top:28px;color:var(--muted);font-size:11px}.bottom-note .icon{height:18px;width:18px}.bottom-note button{font-size:11px;color:var(--ink);text-decoration:underline;text-underline-offset:3px}.banner{background:var(--cream);color:var(--cream-ink);border:1px solid var(--line);border-radius:6px;padding:14px 17px;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.banner.network{background:var(--wrong-bg);color:var(--wrong)}.empty-state{padding:45px 22px;text-align:center;border:1px dashed var(--line);border-radius:var(--radius);color:var(--muted)}.empty-state .icon{width:29px;height:29px;margin-bottom:12px}.empty-state h3{color:var(--ink);margin-bottom:8px}.empty-state p{font-size:13px;max-width:400px;margin:0 auto 18px}.empty-search{grid-column:1/-1}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:20px}.panel>h2{font-size:23px;margin-bottom:10px}.panel>p{font-size:13px;color:var(--muted);margin-bottom:15px}.progress-overview{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grade-row{display:flex;align-items:flex-end;gap:18px;margin:24px 0}.grade-number{font-size:43px;letter-spacing:-.05em;line-height:1}.grade-number small{font-size:20px;margin-left:4px;color:var(--muted)}.grade-meta{font-size:12px;color:var(--muted)}.grade-meta strong{display:block;color:var(--ink);font-size:14px;margin-bottom:3px}.topic-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:17px 0;margin:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.topic-stat-grid b{display:block;font-size:18px;font-weight:500}.topic-stat-grid small{font-size:10px;color:var(--muted)}.skill-row{display:grid;grid-template-columns:minmax(120px,1fr) 100px 42px;gap:12px;align-items:center;font-size:11px;margin:13px 0}.skill-row>span:last-child{text-align:right;color:var(--muted)}.sparkline{width:100%;height:100px;display:block;margin:15px 0}.sparkline .axis{stroke:var(--line);stroke-width:1}.sparkline .trend{fill:none;stroke:var(--accent);stroke-width:2}.sparkline text{font-size:10px;fill:var(--muted)}.activity-grid{display:flex;gap:9px;height:105px;align-items:flex-end;margin:25px 0}.activity-day{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px}.activity-bar{width:100%;max-width:35px;background:var(--accent-soft);border-top:2px solid var(--accent);min-height:3px}.activity-day small{font-size:9px;color:var(--muted)}.activity-day b{font-size:10px;font-weight:400}.recent-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-top:1px solid var(--line);gap:16px;font-size:12px}.recent-label{display:flex;align-items:center;gap:12px}.recent-label .icon{color:var(--accent);width:17px;height:17px}.recent-label .wrong-icon{color:var(--wrong)}.recent-label small{display:block;color:var(--muted);font-size:10px}.recent-row time{font-size:10px;color:var(--muted)}.grading-note{font-size:12px;color:var(--muted)}.grading-note p{margin:12px 0}.grading-note summary{font-size:14px;color:var(--ink);cursor:pointer}.saved-row{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-top:1px solid var(--line);gap:18px}.saved-row:first-of-type{border-top:0}.saved-row h3{font-size:14px;margin-bottom:6px}.saved-row small{color:var(--muted);font-size:10px}.saved-expression{font-size:20px;max-width:250px;overflow:auto}.saved-buttons{display:flex;gap:8px;align-items:center}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px}.settings-grid label{display:block;font-size:12px;margin-bottom:7px}.field-input,select{border:1px solid var(--line);background:var(--panel);border-radius:5px;min-height:43px;padding:10px 12px;color:var(--ink);width:100%;font-size:13px}.settings-actions{display:flex;justify-content:flex-end;margin-top:20px}.check-label{display:flex!important;align-items:flex-start;gap:9px;line-height:1.5}.check-label input{accent-color:var(--accent);margin-top:3px}.account-actions{display:flex;gap:10px;flex-wrap:wrap}.settings-warning{margin-top:15px;font-size:11px;color:var(--muted)}
/* Dialogs and the problem workspace */
dialog{color:var(--ink);background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);padding:0;border-radius:12px;max-height:calc(100dvh - 48px);overflow:auto}dialog::backdrop{background:#14251db3;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 28px;border-bottom:1px solid var(--line);background:var(--panel)}.dialog-header h2{font-size:19px;letter-spacing:-.02em;margin-top:4px}.dialog-header .eyebrow{font-size:9px}.dialog-header-right{display:flex;align-items:center;gap:11px}.problem-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:10px;margin-bottom:25px}.problem-prompt{font-size:13px;color:var(--muted);max-width:590px;line-height:1.7;margin-bottom:20px}.main-expression{padding:24px 10px 29px;font-size:39px;min-height:105px;overflow-x:auto;text-align:center}.main-expression math{font-size:39px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:24px}.choice{display:flex;align-items:center;gap:15px;min-height:82px;padding:17px;border:1px solid var(--line);border-radius:7px;cursor:pointer;font-size:23px;overflow-x:auto}.choice input{position:absolute;opacity:0;width:1px;height:1px}.choice-box{display:grid;place-items:center;min-width:23px;height:23px;border:1px solid var(--line);border-radius:4px;font-size:12px;font-family:Arial,sans-serif;color:var(--muted)}.choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.choice:has(input:checked) .choice-box{background:var(--accent);color:var(--panel);border-color:var(--accent)}.choice:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}.choice.correct-option{border-color:var(--accent);background:var(--accent-soft)}.choice.wrong-option{border-color:var(--wrong);background:var(--wrong-bg)}.choice.math-large math{font-size:20px}.choice-hint{font-size:11px;color:var(--muted);margin:0 0 12px}.answer-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:19px}.answer-field>label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.math-input-shell{border:1px solid var(--line);border-radius:7px;background:var(--panel);overflow:hidden}.math-input-shell:focus-within{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.math-toolbar{display:flex;align-items:center;border-bottom:1px solid var(--line);background:var(--bg);padding:4px;gap:2px}.math-toolbar button{font-family:Georgia,serif;font-size:17px;height:30px;min-width:30px;flex:1;border-radius:3px;line-height:1}.math-toolbar button:hover{background:var(--accent-soft);color:var(--accent)}.math-toolbar button sup,.math-toolbar button sub{font-size:11px}.input-with-unit{display:flex;align-items:center;padding-right:12px}.math-entry{min-width:0;width:100%;padding:15px 12px;border:0;outline:0;background:none;color:var(--ink);font-family:Consolas,monospace;font-size:15px}.math-entry:focus-visible{outline:0}.math-entry::placeholder{font-family:Arial,sans-serif;font-size:12px;color:var(--muted)}.answer-unit{font-size:12px;color:var(--muted);white-space:nowrap}.math-preview{padding:9px 12px 13px;border-top:1px dashed var(--line);min-height:52px;color:var(--accent);display:flex;align-items:center;font-size:21px;overflow-x:auto}.math-preview>span{font-family:Georgia,serif;font-size:12px;font-style:italic;color:var(--muted)}.input-help{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:8px}.input-help code{font-size:10px;color:var(--ink)}.field-feedback{font-size:11px;margin-top:8px;color:var(--wrong)}.field-feedback.good{color:var(--accent)}.problem-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:25px}.keyboard-note{font-size:10px;color:var(--muted)}.form-error{padding:11px 14px;color:var(--wrong);background:var(--wrong-bg);border-radius:5px;font-size:12px;margin-top:15px}.form-error:empty{display:none}.rail-section .eyebrow{display:block;margin-bottom:12px}.rail-section p{font-size:11px;line-height:1.7;color:var(--muted);margin-top:10px}.difficulty-label{display:flex;align-items:center;justify-content:space-between;font-size:12px}.difficulty-bars{display:flex;gap:4px;margin-top:10px}.difficulty-bars i{height:7px;flex:1;background:var(--line);border-radius:1px}.difficulty-bars i.active{background:var(--accent)}.rail-tally{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.rail-tally b{display:block;font-size:24px;font-weight:400;letter-spacing:-.04em}.rail-tally small{font-size:10px;color:var(--muted)}.hint-box{font-size:12px;line-height:1.75;padding:14px;border:1px solid var(--line);border-radius:5px;background:var(--cream);color:var(--cream-ink);margin-top:12px}.rail-select{font-size:11px;min-height:35px;padding:7px 8px;margin-bottom:8px}.rail-bottom{margin-top:auto;font-size:10px;color:var(--muted);line-height:1.7}.feedback-panel{margin-top:25px;padding:19px 20px;background:var(--accent-soft);border:1px solid var(--line);border-radius:7px}.feedback-panel.wrong{background:var(--wrong-bg)}.feedback-heading{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:600;margin-bottom:9px}.feedback-panel.wrong .feedback-heading{color:var(--wrong)}.feedback-panel p{font-size:12px;line-height:1.8}.solution{margin-top:14px}.solution summary{cursor:pointer;font-size:12px;font-weight:600}.solution-math{padding:7px 0;font-size:18px;overflow-x:auto}.takeaway{border-top:1px solid var(--line);margin-top:5px;padding-top:12px;font-size:11px!important}.choice-reason{border-top:1px solid var(--line);padding:12px 0;display:grid;grid-template-columns:25px 1fr;gap:8px}.choice-reason b{font-size:12px;color:var(--accent)}.choice-reason p{font-size:12px}.choice-reason math{font-size:19px;margin-bottom:7px}.geometry-diagram{width:100%;height:auto;display:block;margin:-3px auto 12px;max-height:300px;overflow:visible;color:var(--muted)}.geometry-diagram .shape{fill:var(--accent-soft);stroke:var(--ink);stroke-width:2.2;stroke-linejoin:round}.geometry-diagram .guide{stroke:var(--muted);stroke-width:1.3;stroke-dasharray:5 5}.geometry-diagram .dimension,.geometry-diagram .tick{stroke:var(--muted);stroke-width:1}.geometry-diagram .radius{stroke:var(--accent);stroke-width:1.5}.geometry-diagram .right-angle{stroke:var(--muted);stroke-width:1.2;fill:none}.geometry-diagram .center-dot{fill:var(--accent)}.geometry-diagram .dim-label{fill:var(--ink);font-size:14px;font-family:Arial,sans-serif;paint-order:stroke;stroke:var(--panel);stroke-width:5px;stroke-linejoin:round}.session-progress{height:3px;background:var(--line)}.session-progress>div{height:100%;background:var(--accent)}.session-summary{padding:45px 42px;max-width:730px;margin:auto;text-align:center}.summary-check{display:grid;place-items:center;width:55px;height:55px;margin:0 auto 22px;background:var(--accent-soft);color:var(--accent);border-radius:50%}.summary-check .icon{width:27px;height:27px}.session-summary h2{font-size:33px;margin:10px 0}.session-summary>p{font-size:13px;color:var(--muted);margin-bottom:24px}.summary-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:23px 0}.summary-stats b{display:block;font-size:28px;font-weight:400}.summary-stats small{color:var(--muted);font-size:11px}.summary-buttons{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.test-intro{text-align:left;margin:25px 0;background:var(--bg);border:1px solid var(--line);padding:20px;border-radius:7px}.test-intro p{font-size:13px;color:var(--muted);margin:9px 0}.diagnostic-review{text-align:left;border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.diagnostic-review>details{border:1px solid var(--line);padding:14px 16px;border-radius:5px;margin-bottom:9px}.diagnostic-review summary{cursor:pointer;font-size:12px}.diagnostic-review .geometry-diagram{max-height:230px}
/* Account and reference windows */
.account-dialog{width:min(455px,calc(100vw - 32px));}.account-inner{padding:29px 33px 32px}.account-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.account-inner h2{font-size:27px;margin:8px 0 10px}.account-inner>p{font-size:12px;color:var(--muted);margin-bottom:20px;line-height:1.8}.auth-tabs{display:flex;gap:4px;padding:4px;background:var(--bg);border:1px solid var(--line);border-radius:6px;margin:21px 0}.auth-tabs button{flex:1;font-size:12px;padding:8px;border-radius:4px;color:var(--muted)}.auth-tabs .selected{background:var(--panel);box-shadow:0 1px 3px #0001;color:var(--ink)}.account-form label:not(.check-label){display:block;font-size:12px;font-weight:600;margin:17px 0 7px}.account-form .check-label{font-size:11px;color:var(--muted);margin:17px 0}.account-form>.btn{margin-top:6px}.auth-footer{border-top:1px solid var(--line);padding-top:17px;margin-top:20px;text-align:center;font-size:11px;color:var(--muted)}.auth-footer .text-btn{font-size:11px}.auth-fine{font-size:10px;color:var(--muted);margin-top:17px;line-height:1.7}.recovery-code{font-family:Consolas,monospace;word-break:break-all;padding:18px;background:var(--bg);border:1px dashed var(--accent);font-size:17px;margin:18px 0;letter-spacing:.03em}.reference-dialog{width:min(860px,calc(100vw - 36px))}.reference-body{padding:28px 35px 35px}.reference-tabs{display:flex;gap:12px;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:23px}.reference-tabs button{font-size:12px;color:var(--muted);padding:7px 12px;border-radius:4px}.reference-tabs button.selected{background:var(--accent-soft);color:var(--accent)}.formula-intro .eyebrow{display:block;margin-bottom:10px}.formula-intro h2{font-size:28px;margin-bottom:13px}.formula-intro p{font-size:12px;color:var(--muted);margin-bottom:25px;line-height:1.8}.formula-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.formula-row{border:1px solid var(--line);border-radius:7px;padding:18px}.formula-row h3{font-size:17px;margin-bottom:17px}.formula-row>div{display:flex;align-items:center;gap:12px;margin:10px 0;font-size:19px;overflow-x:auto}.formula-row>div>span{font-size:8px;letter-spacing:.07em;color:var(--muted);width:63px;flex-shrink:0}.formula-row>p{font-size:11px;color:var(--muted);line-height:1.7;margin-top:15px}.reference-notes{display:grid;grid-template-columns:1fr 1fr;gap:23px;margin:28px 0;padding-top:22px;border-top:1px solid var(--line)}.reference-notes h3{font-size:17px;margin-bottom:12px}.reference-notes p{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0}.reference-equation{font-size:23px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0;overflow-x:auto}.formula-footnote{font-size:11px;color:var(--muted);padding-top:17px;border-top:1px solid var(--line)}.rule-card{margin:20px 0;padding:21px;border:1px solid var(--line);border-radius:7px}.rule-card p{font-size:13px;color:var(--muted);line-height:1.9}.rule-card h3{font-size:18px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);background:var(--ink);color:var(--panel);padding:13px 20px;box-shadow:var(--shadow);border-radius:6px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:999;max-width:calc(100vw - 30px)}.toast.visible{opacity:1;transform:translate(-50%,0)}.notice-inline{font-size:11px;color:var(--muted);margin:12px 0}.no-margin{margin:0}.readonly-note{font-size:10px;letter-spacing:.03em;color:var(--muted)}.plain-math{font-family:Georgia,serif}math{font-family:math,"Cambria Math","STIX Two Math",serif}input[type=checkbox]{accent-color:var(--accent)}[hidden]{display:none!important}
:root[data-large=true] .problem-prompt,:root[data-large=true] .choice-reason p,:root[data-large=true] .feedback-panel p{font-size:16px}:root[data-large=true] .dim-label{font-size:16px}:root[data-reduce-motion=true] *{transition:none!important;animation:none!important}
@media(min-width:1450px){.feature{min-height:235px}.feature-copy{padding:35px}.topic-card{padding:28px}}
@media(max-width:1150px){.feature-copy{padding:26px}.feature-copy h2{font-size:25px}.topic-card{padding:20px}.topic-actions{align-items:flex-start;flex-direction:column}.topic-actions .btn{width:100%}.topic-description{min-height:65px!important}.answer-fields{grid-template-columns:1fr}.math-preview{min-height:49px}}
@media(max-width:850px){.page-heading{margin-bottom:24px}.date-label{display:none}.feature{grid-template-columns:1fr}.feature-art{display:none}.feature-copy p{max-width:100%}.feature-copy h2{max-width:100%}.topic-grid{grid-template-columns:1fr}.topic-description{min-height:0!important}.topic-symbol{float:right;position:absolute;right:20px;top:50px;opacity:.3}.topic-card{position:relative}.topic-card h3{max-width:85%}.topic-actions{flex-direction:row;align-items:center}.topic-actions .btn{width:auto}.stat-item{padding-left:14px}.stat-value{font-size:24px}.stat-value span{display:block;margin-left:0;font-size:10px}.stat-label{font-size:10px}.stat-label .icon{display:none}.page-heading h1{font-size:33px}.section-title{align-items:flex-start;flex-direction:column;gap:12px}.search-box{width:100%}.progress-overview{grid-template-columns:1fr}.settings-grid{gap:17px}.choice-grid{grid-template-columns:1fr}.choice{min-height:70px}.choice math{font-size:23px}.geometry-diagram .dim-label{font-size:16px}}
@media(max-width:620px){.page-heading h1{font-size:31px}.page-heading .eyebrow{font-size:9px}.page-heading p{font-size:12px}.feature{margin-bottom:25px}.feature-copy{padding:23px}.feature-copy h2{font-size:26px}.feature-copy p{font-size:12px}.stat-strip{gap:8px;margin-bottom:24px;padding-bottom:23px}.stat-item{padding-left:9px}.stat-label{font-size:9px}.stat-value{font-size:23px}.stat-value span{font-size:9px}.topic-card{padding:22px}.topic-card h3{font-size:20px;max-width:84%}.topic-symbol{right:25px}.topic-actions .btn{padding:9px 14px}.bottom-note{align-items:flex-start;font-size:10px}.banner{align-items:flex-start;font-size:11px;gap:10px}.banner .btn{white-space:nowrap;padding:7px 9px}.panel{padding:20px}.settings-grid{grid-template-columns:1fr}.grade-number{font-size:39px}.activity-grid{gap:5px}.activity-day small{font-size:8px}.saved-expression{display:none}.saved-row h3{font-size:12px}.saved-buttons .btn{font-size:10px}.recent-row time{max-width:70px;text-align:right}.account-actions .btn{width:100%}.dialog-header{padding:16px 18px;gap:10px}.dialog-header h2{font-size:15px;max-width:240px}.dialog-header .eyebrow{font-size:8px}.dialog-header-right .pill{display:none}.problem-prompt{font-size:12px;margin-bottom:12px}.problem-meta{margin-bottom:17px}.main-expression{padding:20px 0;font-size:32px;min-height:90px}.main-expression math{font-size:33px}.choice-grid{grid-template-columns:1fr 1fr;gap:9px}.choice{padding:11px;gap:9px;font-size:20px;min-height:75px}.choice math{font-size:20px}.choice-box{width:20px;min-width:20px;height:20px;font-size:10px}.choice.math-large math{font-size:18px}.rail-bottom{grid-column:1/-1}.rail-section>p{font-size:10px}.rail-tally b{font-size:22px}.answer-fields{grid-template-columns:1fr;gap:17px}.geometry-diagram{margin:0 auto 10px;max-height:250px}.geometry-diagram .dim-label{font-size:16px}.keyboard-note{display:none}.problem-actions{justify-content:flex-end;margin-top:21px}.problem-actions .btn{flex:1}.feedback-panel{padding:17px 15px}.session-summary{padding:35px 22px}.session-summary h2{font-size:29px}.summary-stats b{font-size:25px}.summary-stats small{font-size:10px}.summary-buttons .btn{width:100%}.reference-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.reference-body{padding:22px 19px}.formula-grid{grid-template-columns:1fr}.reference-notes{grid-template-columns:1fr;gap:10px}.formula-row>div{font-size:21px}.formula-row p{font-size:12px}.formula-intro h2{font-size:25px}.account-inner{padding:25px}.account-inner h2{font-size:26px}.account-top{margin-bottom:22px}.recovery-code{font-size:15px}.toast{bottom:15px;font-size:11px;text-align:center;width:max-content}.search-box{padding:11px 12px}.input-help{font-size:10px}.math-entry{font-size:16px}.math-toolbar button{min-height:34px}.math-preview{font-size:23px}.user-menu>span:not(.avatar){max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.check-label{font-size:12px}.progress-overview .panel{margin-bottom:0}.progress-overview{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.topic-link{font:inherit;letter-spacing:inherit;text-align:left;padding:0;line-height:inherit}.topic-link:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}

@media(max-width:620px){.geometry-diagram .dim-label{font-size:22px}}
/* Expanded study workspace. Kept deliberately quiet: paper, readable type, useful controls. */
:root[data-accent=ink]{--accent:#354d68;--accent-soft:#eaf0f7}:root[data-accent=clay]{--accent:#87533e;--accent-soft:#f4eae3}:root[data-accent=plum]{--accent:#69516e;--accent-soft:#f1eaf3}
:root[data-theme=dark][data-accent=ink]{--accent:#b0cce8;--accent-soft:#29384b}:root[data-theme=dark][data-accent=clay]{--accent:#e5baa0;--accent-soft:#46322b}:root[data-theme=dark][data-accent=plum]{--accent:#d1b6d7;--accent-soft:#3c2d43}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.account-count{font-size:12px;color:var(--muted);border-bottom:1px dashed var(--line);white-space:nowrap}.topic-symbol{min-height:42px}.topic-meta{flex-wrap:wrap}.topic-card{display:flex;flex-direction:column}.topic-progress{margin-top:auto}.topic-description{min-height:66px}.topic-actions{gap:12px}.topic-actions .text-btn{max-width:48%;text-align:left}.section-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}.button-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.deck-topic-grid{border:0;padding:0;margin:20px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.deck-topic{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:6px;padding:14px;cursor:pointer;background:var(--bg)}.deck-topic:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.deck-topic input{margin-top:5px;accent-color:var(--accent)}.deck-topic span{font-size:13px;font-weight:600}.deck-topic small{display:block;font-weight:400;color:var(--muted);margin-top:4px}.deck-options{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:20px;margin:24px 0}.deck-options fieldset{border:0;padding:0;margin:0}.deck-options label,.deck-options legend{font-size:12px;color:var(--muted)}.deck-options legend{margin-bottom:10px}.deck-options select{margin-top:10px;display:block;width:100%}.level-check{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.simple-list{margin-top:20px}.simple-list>div{display:flex;gap:16px;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.simple-list small{display:block;color:var(--muted)}.reward-hero{display:grid;grid-template-columns:270px 1fr;gap:48px;align-items:center;margin:28px 0 36px}.notebook-preview{height:310px;background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent);border-left-width:10px;border-radius:3px 12px 12px 3px;padding:28px;display:flex;flex-direction:column;align-items:flex-start;box-shadow:5px 5px 0 var(--line)}.notebook-preview h2{font-size:26px;font-weight:600;margin:16px 0}.notebook-preview small{margin-top:auto}.notebook-mark{font-size:44px;line-height:1}.ink-balance{font-size:62px;line-height:1.2;margin:10px 0 15px;font-variant-numeric:tabular-nums}.ink-balance small{display:inline-block;font-size:13px;color:var(--muted);margin-left:12px}.ink-summary p+p{margin-top:14px}.badge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}.badge-card{display:flex;gap:14px;border:1px solid var(--line);padding:16px;border-radius:6px}.badge-card p{font-size:12px;color:var(--muted);margin:5px 0}.badge-card strong{font-size:13px}.badge-card small{font-size:11px}.badge-card.earned{border-color:var(--accent);background:var(--accent-soft)}.badge-symbol{font-size:24px;color:var(--accent)}.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px}.catalog-item{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:6px;padding:16px}.catalog-item strong{font-size:13px}.catalog-item p{font-size:12px;color:var(--muted);flex:1}.catalog-item .btn{font-size:11px;padding:8px}.item-swatch{height:72px;display:flex;align-items:center;justify-content:center;font-size:30px;background:var(--accent-soft);color:var(--accent);border-radius:4px;border:1px solid var(--line)}[data-swatch=forest]{background:#284936}[data-swatch=ink]{background:#354d68}[data-swatch=clay]{background:#87533e}[data-swatch=plum]{background:#69516e}[data-cover=grid].notebook-preview,[data-cover=grid].item-swatch{background-image:linear-gradient(90deg,#72847320 1px,transparent 1px),linear-gradient(#72847320 1px,transparent 1px);background-size:16px 16px}[data-cover=dots].notebook-preview,[data-cover=dots].item-swatch{background-image:radial-gradient(#72847350 1px,transparent 1px);background-size:12px 12px}[data-cover=lines].notebook-preview,[data-cover=lines].item-swatch{background-image:repeating-linear-gradient(transparent 0px,transparent 23px,#72847330 23px,#72847330 24px)}:root[data-cover=grid] .feature-art .graph-grid{opacity:.7}:root[data-cover=dots] .feature-art .graph-grid{background-image:radial-gradient(var(--accent) 1px,transparent 1px);background-size:16px 16px}:root[data-cover=lines] .feature-art .graph-grid{background-image:repeating-linear-gradient(transparent 0,transparent 23px,#72847340 23px,#72847340 24px)}.community-stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:8px;margin:24px 0;background:var(--panel)}.community-stats>div{padding:24px;border-right:1px solid var(--line)}.community-stats>div:last-child{border:0}.community-stats strong{display:block;font-size:32px;font-weight:500}.community-stats span{font-size:12px;color:var(--muted)}.metric-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0}.metric-tabs button{padding:9px 12px;border-radius:5px;font-size:12px;color:var(--muted);border:1px solid var(--line)}.metric-tabs button.selected{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.table-scroll{overflow:auto}.leaderboard{width:100%;border-collapse:collapse;margin:24px 0 0;text-align:left;font-size:13px}.leaderboard th{font-size:11px;color:var(--muted);font-weight:400;padding:12px;border-bottom:1px solid var(--line)}.leaderboard td{padding:15px 12px;border-bottom:1px solid var(--line)}.leaderboard td:nth-child(2){display:flex;align-items:center;gap:12px}.leaderboard td:last-child,.leaderboard th:last-child{text-align:right;font-variant-numeric:tabular-nums}.leaderboard small{display:block;color:var(--muted);font-size:11px}.leader-mark{font-size:25px;width:32px;text-align:center}.leaderboard .my-row{background:var(--accent-soft)}.formula-card{padding:22px;border:1px solid var(--line);border-radius:5px}.formula-card h3{font-size:17px;margin-bottom:15px}.formula-card p{font-size:13px;color:var(--muted);margin-top:15px}.formula-value{font-size:22px}.formula-grid{margin-top:24px}.shape-givens{display:flex;gap:8px 20px;flex-wrap:wrap;margin:0 0 20px;padding:12px 16px;border:1px solid var(--line);border-radius:4px;font-size:12px;color:var(--muted);line-height:1.8}.shape-givens span{display:block}.diagram-wrap{margin:10px 0 20px}.diagram-expand{font-size:11px;display:block;margin-left:auto}.expanded-diagram .geometry-diagram{width:100%;max-height:none;height:auto}.expanded-diagram p{margin:12px 0}.compound-diagram .shape{fill:var(--accent-soft);stroke:var(--accent);stroke-width:2.4;stroke-linejoin:round}.compound-diagram .guide{stroke:var(--muted);stroke-width:1.5;stroke-dasharray:5 5;fill:none}.compound-diagram .dimension,.compound-diagram .tick{stroke:var(--muted);stroke-width:1;fill:none}.compound-diagram .dim-label{font:13px Arial,Helvetica,sans-serif;fill:var(--ink)}.number-line{width:100%;display:block;margin:12px 0;color:var(--accent)}.number-line text{font:13px Arial,Helvetica,sans-serif;fill:var(--ink)}.number-axis{stroke:var(--muted);stroke-width:1}.number-solution{stroke:var(--accent);stroke-width:4}.number-dot{stroke:var(--accent);stroke-width:2;fill:var(--panel)}.number-dot.closed{fill:var(--accent)}.number-arrow{stroke:var(--accent);stroke-width:3;fill:none}.math-toolbar{flex-wrap:wrap}.choice:has(.choice-box){min-width:0}.choice math{max-width:none;overflow:visible}.choice-reason math{max-width:none;overflow:visible}.main-expression{overflow-x:auto;max-width:100%}.reference-tabs{flex-wrap:wrap}.diagram-wrap svg{overflow:visible}.topic-grid .topic-card h3{min-height:44px}
@media(min-width:1200px){.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.deck-options{grid-template-columns:1fr 1fr}.deck-options fieldset{grid-column:1/-1}.reward-hero{gap:24px;grid-template-columns:220px 1fr}.notebook-preview{height:290px;padding:20px}.notebook-preview h2{font-size:24px}}
@media(max-width:600px){.deck-topic-grid,.badge-grid{grid-template-columns:1fr}.reward-hero{grid-template-columns:1fr}.notebook-preview{max-width:260px;justify-self:center;width:100%;height:280px}.ink-summary{text-align:left}.ink-balance{font-size:48px}.community-stats>div{padding:16px 10px}.community-stats strong{font-size:26px}.community-stats span{font-size:10px}.section-controls{align-items:flex-start}.account-count{font-size:10px}.catalog-grid{gap:10px}.catalog-item{padding:12px}.panel{padding:20px}.topic-description{min-height:0}.topic-actions{align-items:center}.topic-actions .btn{padding:9px 10px}.choice-grid{grid-template-columns:1fr}.shape-givens{padding:10px;font-size:11px;gap:5px 12px}.compound-diagram .dim-label{font-size:15px}.diagram-wrap{overflow:hidden}.numberline-preview{margin:0 -4px}.leaderboard td,.leaderboard th{padding:12px 7px}.topic-grid .topic-card h3{min-height:0}}
.diagram-caption{color:var(--muted);font-size:12px;line-height:1.6;margin:0 0 10px}.diagram-expand{margin-top:8px}@media(max-width:620px){.user-menu>span:not(.avatar){display:none}.account-count{max-width:80px;overflow:hidden;text-overflow:ellipsis}}

/* Version 3: quiet study controls and a detailed, collectible notebook shelf. */
.community-stats .community-topics{border:0;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer;border-radius:10px;padding:0}
.community-stats .community-topics:hover strong,.community-stats .community-topics:focus-visible strong{color:var(--accent)}
.community-stats .community-topics:focus-visible{outline:2px solid var(--accent);outline-offset:8px}
.question-fullscreen .dialog-header{position:sticky;top:0;z-index:5;background:var(--panel,#fff);padding-top:max(18px,env(safe-area-inset-top));}
.fullscreen-toggle{white-space:nowrap;flex-shrink:0;gap:5px}
.fullscreen-toggle>span:first-child{font-size:20px;line-height:1}
.confetti-layer{position:absolute;left:0;right:0;height:500px;max-height:100%;overflow:hidden;z-index:20;pointer-events:none;contain:layout paint}
.confetti-piece{position:absolute;left:var(--x);top:14px;width:6px;height:10px;opacity:0;animation:answer-confetti 1.35s ease-out both}
@keyframes answer-confetti{0%{opacity:0;transform:translate(0,0) rotate(0)}10%{opacity:.9}70%{opacity:.8}100%{opacity:0;transform:translate(var(--drift),var(--fall)) rotate(var(--spin))}}
[data-reduce-motion="true"] .confetti-layer{display:none}
@media (prefers-reduced-motion:reduce){.confetti-layer{display:none}.cover-preview{transition:none!important}.feedback-panel{scroll-behavior:auto}}
.cover-preview{position:relative;isolation:isolate;width:144px;aspect-ratio:3/4;overflow:hidden;border-radius:3px 10px 10px 3px;background:#f3eddd;color:var(--cover-text,#294331);box-shadow:3px 4px 0 -1px #c5c1b3,6px 9px 15px -7px #13282a40;border:1px solid #192c282b;flex-shrink:0}
.cover-preview-large{width:240px;max-width:100%;transform:rotate(-3deg);box-shadow:4px 5px 0 -1px #ccc7b5,12px 15px 25px -12px #13282a66;justify-self:center}
.notebook-art{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.cover-lettering{position:absolute;left:12%;right:9%;top:34.5%;height:32.5%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:4px;box-sizing:border-box}
.cover-mark{font-family:Georgia,serif;font-size:16px;font-weight:400}
.cover-lettering strong{font-family:Georgia,serif;font-size:12px;font-weight:500;line-height:1.2;max-width:110px}
.cover-preview-large .cover-mark{font-size:27px}
.cover-preview-large .cover-lettering strong{font-size:23px;max-width:145px}
.cover-preview-large .cover-lettering small{font-size:9px;letter-spacing:.06em;line-height:1.2;max-width:160px}
.book-spine{position:absolute;top:0;bottom:0;left:0;width:9px;border-right:1px solid #0002;background:linear-gradient(90deg,#0003,transparent)}
.cover-preview[data-cover="grid"]{background-color:#f6f3df;background-image:linear-gradient(#acb7aa44 1px,transparent 1px),linear-gradient(90deg,#acb7aa44 1px,transparent 1px);background-size:14px 14px}
.cover-preview[data-cover="dots"]{background-color:#f6f3df;background-image:radial-gradient(#93a190 1px,transparent 1px);background-size:12px 12px}
.cover-preview[data-cover="lines"]{background-color:#f6f3df;background-image:repeating-linear-gradient(transparent 0 16px,#adbbaa 17px,transparent 18px)}
.cover-preview:not(.cover-illustrated) .cover-lettering{background:#f6f3dfdf;border:1px solid #c8b89055}
.catalog-grid.cover-catalog,.edition-grid{grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:20px}
.catalog-item.cover-shop-card{padding:20px 16px 16px;align-items:center;display:flex;flex-direction:column;gap:14px}
.catalog-item.cover-shop-card .catalog-copy{width:100%}
.catalog-copy strong{display:block;line-height:1.35}
.catalog-copy p{font-size:12px;line-height:1.5}
.catalog-copy .ink-price{font-size:11px;font-weight:600;color:var(--muted,#58675d);display:block;margin-top:8px}
.cover-shop-card>.btn{margin-top:auto;width:100%;white-space:normal;line-height:1.4;min-height:40px}
.collector-panel{border-top:3px solid #ad9154}
.owned-editions{margin-top:24px;padding-top:20px;border-top:1px solid var(--border,#dce1d9)}
.owned-editions summary{cursor:pointer;font-weight:600;margin-bottom:16px}
.owned-editions .button-row{margin:12px 0 20px}.owned-editions select{max-width:370px;min-width:0}
.reward-hero{align-items:center}.ink-summary .notice-inline{margin:18px 0}
@media(min-width:1500px){.question-fullscreen .main-expression{font-size:36px}}
@media(max-width:650px){.dialog-header-right{gap:4px;flex-wrap:wrap;justify-content:flex-end}.fullscreen-toggle{padding:6px 8px}.fullscreen-toggle>span:last-child{font-size:11px}.dialog-header>div:first-child{min-width:0}.dialog-header h2{font-size:18px}.question-fullscreen .dialog-header{padding-left:14px;padding-right:10px}.cover-preview-large{width:190px;margin:12px auto 26px}.cover-preview-large .cover-lettering strong{font-size:19px}.cover-preview-large .cover-mark{font-size:21px}.catalog-grid.cover-catalog,.edition-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-item.cover-shop-card{padding:14px 9px 12px}.cover-shop-card .cover-preview{width:125px;max-width:100%}.cover-lettering strong{font-size:11px}.catalog-copy strong{font-size:13px}.catalog-copy p{font-size:11px}.catalog-item.cover-shop-card .btn{font-size:11px}.reward-hero{grid-template-columns:1fr}.community-stats{gap:14px}.confetti-layer{height:380px}}
@media(max-width:359px){.catalog-grid.cover-catalog,.edition-grid{grid-template-columns:1fr}.dialog-header .pill{display:none}}

.community-stats .community-topics{padding:24px;border:1px solid var(--line);background:var(--panel);border-radius:10px}.community-topics strong,.community-topics>span{display:block}.community-topics>span{font-size:12px;color:var(--muted)}#topics{scroll-margin-top:25px}
@media(max-width:600px){.community-stats .community-topics{padding:16px 10px}}

.ink-summary{min-width:0}.reward-hero{grid-template-columns:270px minmax(0,1fr)}.ink-summary .notice-inline{display:block;white-space:normal}.cover-shop-card{min-width:0}@media(max-width:900px){.reward-hero{grid-template-columns:220px minmax(0,1fr)}}@media(max-width:600px){.reward-hero{grid-template-columns:minmax(0,1fr)}}

/* Exact-calculus questions: legible givens and compact context choices. */
.given-table-wrap{overflow-x:auto;margin:22px 0;border:1px solid var(--line);border-radius:8px}.given-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:17px}.given-table caption{text-align:left;padding:12px 16px;font-size:14px;font-weight:650}.given-table th,.given-table td{padding:11px 18px;border-top:1px solid var(--line);text-align:center}.given-table th{font-size:14px;background:var(--bg)}
.piecewise-rule{display:flex;align-items:center;gap:18px;margin:20px 0;padding:16px;overflow-x:auto;font-size:23px}.piecewise-rule>div{border-left:2px solid var(--text);border-radius:12px;padding:4px 0 4px 20px;flex:1}.piecewise-row{display:flex;justify-content:space-between;gap:30px;padding:8px}.piecewise-row>span:last-child{font-size:17px;white-space:nowrap}.me-calculus-hint{font-size:13px;line-height:1.5;color:var(--muted);margin:9px 0}.calculus-choice-field{margin-top:18px}.calculus-choice-field label{display:block;font-weight:650;line-height:1.4;margin-bottom:9px}.calculus-choice-field select{width:100%;min-height:46px;max-width:100%;font-size:15px}.calculus-diagram text{font:16px system-ui,sans-serif;fill:currentColor;stroke:none}.calculus-diagram .calc-dim{stroke-width:1.2;stroke-dasharray:5 4}.calculus-diagram .calc-emphasis{stroke-width:3.5}.calculus-diagram .calc-water{fill:var(--accent,#355e50);fill-opacity:.12;stroke-width:1.2}.calculus-diagram{max-height:360px;width:100%}.reference-tabs{flex-wrap:wrap}.cr-level-checks{flex-wrap:wrap}.grade-inline-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:600px){.piecewise-rule{padding:10px;gap:8px;font-size:20px}.piecewise-row{gap:14px;padding:6px}.given-table th,.given-table td{padding:10px}.calculus-choice-field select{font-size:16px}}

/* Context choices stay fully readable, including on narrow phones. */
.calculus-choice-field{border:0;padding:0;margin:20px 0;min-width:0}
.calculus-choice-field legend{font-size:16px;font-weight:650;margin-bottom:10px;line-height:1.5}
.calculus-options{display:grid;gap:8px}
.calculus-option{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:8px;line-height:1.55;cursor:pointer;background:var(--paper)}
.calculus-option:has(input:checked){border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.calculus-option input{flex:0 0 auto;margin-top:5px;accent-color:var(--accent)}
.calculus-option-letter{font-weight:650;color:var(--muted);flex:0 0 auto}
.calculus-option>span:last-child{overflow-wrap:anywhere;min-width:0}
.calculus-option:has(input:disabled){cursor:default}
.cr-answer-review .geometry-diagram,.cr-answer-review .calculus-diagram{max-height:330px}

/* Multipart interpretation gets its own full-width row, not a cramped third column. */
.calculus-choice-field{grid-column:1 / -1;width:100%}
.calculus-choice-field .calculus-option{display:flex;align-items:flex-start;gap:12px;line-height:1.55;font-weight:400;margin:0;border:1px solid var(--line);background:var(--panel)}
.calculus-choice-field .calculus-option>span:last-child{flex:1}
.piecewise-rule>div{border-left-color:var(--ink)}

/* retained from math-editor.css */
/* A single paper-like answer surface; structure slots live inside the expression. */
.math-editor{min-width:0}
.math-editor>label{display:block;margin-bottom:9px;color:var(--ink);font-size:13px;font-weight:600}
.me-surface{display:flex;align-items:center;min-height:68px;border:1px solid var(--line);border-radius:8px;background:var(--panel);transition:border-color .12s,box-shadow .12s;min-width:0}
.me-surface:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.math-editor .me-expression{position:relative;display:block;flex:1;min-width:0;width:100%;min-height:64px;padding:15px 16px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;outline:none;border:0;background:transparent;color:var(--ink);font:24px/1.4 "Cambria Math","STIX Two Math","Times New Roman",serif;cursor:text;scrollbar-width:thin;text-align:left;touch-action:pan-x pan-y;-webkit-tap-highlight-color:transparent}
.me-expression[data-empty="true"]::before{content:"Your answer";position:absolute;left:16px;top:21px;pointer-events:none;font:15px/1.4 var(--sans,Arial,sans-serif);color:var(--muted);opacity:.8}
.me-expression:focus-within[data-empty="true"]::before{opacity:.5}
.me-unit{padding:0 14px 0 2px;flex-shrink:0;color:var(--muted);font-size:13px}
.me-row{display:inline;white-space:pre}
.me-run{display:inline-block;min-width:.12em;min-height:1.15em;outline:none;white-space:pre;vertical-align:baseline;border-radius:2px;caret-color:var(--accent);cursor:text;user-select:text;-webkit-user-select:text}
.me-run:focus{outline:none!important}
.me-slot{min-width:.64em;box-shadow:inset 0 0 0 1px var(--line);background:var(--bg);line-height:1.08;border-radius:2px;margin:0 .03em}
.me-slot:focus{box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-soft)}
.me-node{display:inline-block;vertical-align:baseline;white-space:nowrap;user-select:none;-webkit-user-select:none}
.me-node .me-run{user-select:text;-webkit-user-select:text}
.me-fraction-node{vertical-align:middle;margin:0 .11em}
.me-fraction{display:inline-flex;flex-direction:column;align-items:stretch;vertical-align:baseline;text-align:center;line-height:1.2}
.me-numerator{display:block;padding:0 .15em .11em;min-width:.8em;border-bottom:1.2px solid currentColor;text-align:center}
.me-denominator{display:block;padding:.12em .15em 0;min-width:.8em;text-align:center}
.me-fraction .me-fraction{font-size:.88em}
.me-fraction .me-root-node{vertical-align:-.07em}
.me-root-node{vertical-align:-.06em;margin:0 .08em 0 .03em}
.me-root{display:inline-flex;align-items:stretch;position:relative;padding-top:.05em}
.me-root-sign{display:block;align-self:stretch;width:.58em;min-height:1.28em;height:auto;overflow:visible;flex-shrink:0}
.me-radicand{display:block;min-width:.5em;padding:.07em .13em .02em .03em;border-top:1.3px solid currentColor;line-height:1.28}
.me-root-index{align-self:flex-start;font-size:.64em;line-height:1;min-width:.5em;margin-right:-.3em;margin-top:-.17em;z-index:1}
.me-script-node{white-space:nowrap;margin-right:.03em}
.me-script-base{display:inline-block;vertical-align:baseline}
.me-scripts{display:inline-flex;flex-direction:column;vertical-align:baseline;margin-left:.025em;font-size:.72em;line-height:1}
.me-scripts>sup{font-size:inherit;line-height:1;position:relative;top:-.7em;vertical-align:baseline}
.me-scripts>sub{font-size:inherit;line-height:1;position:relative;top:.35em;vertical-align:baseline}
.me-both-scripts{vertical-align:-.4em;margin-top:-.2em}
.me-both-scripts>sup,.me-both-scripts>sub{top:0;position:static}
.me-both-scripts>sup{margin-bottom:.12em}
.me-group-node{display:inline-block;vertical-align:baseline}
.me-bracket{font-size:1.08em;line-height:1;vertical-align:-.03em}
.me-all-selected>.me-row,.me-selected-node{background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent);border-radius:2px}
.me-controls{display:flex;align-items:center;margin-top:7px}
.me-tools{display:flex;align-items:center;gap:3px;flex-wrap:wrap;width:100%}
.math-editor .me-tool{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;min-width:34px;padding:5px 8px;border:0;background:transparent;border-radius:5px;font:12px/1.2 var(--sans,Arial,sans-serif);color:var(--muted);cursor:pointer;white-space:nowrap;text-transform:none}
.math-editor .me-tool:hover,.math-editor .me-tool:focus-visible,.math-editor .me-more-toggle[aria-expanded="true"]{background:var(--accent-soft);color:var(--accent);outline:none}
.me-tool .me-tool-symbol{font:18px/1 "Cambria Math",Georgia,serif;color:var(--ink);display:inline-block;min-width:17px}
.me-tool .me-tool-symbol sup,.me-tool .me-tool-symbol sub{font-size:10px}
.me-fraction-icon{display:inline-flex;flex-direction:column;text-align:center;font:italic 11px/1 Georgia,serif;vertical-align:middle}
.me-fraction-icon>span{padding:0 3px}
.me-fraction-icon>span:first-child{border-bottom:1px solid currentColor;padding-bottom:2px}
.me-fraction-icon>span:last-child{padding-top:1px}
.me-more-toggle{margin-left:auto}
.me-more-toggle>span{font-size:19px;line-height:.8}
.me-more{padding:6px 3px;background:var(--bg);border:1px solid var(--line);border-radius:6px;margin-top:4px}
.me-extra-tools{gap:4px}
.me-helper{display:flex;justify-content:space-between;align-items:flex-start;gap:5px;min-height:23px;margin-top:4px}
.me-hint{font-size:11px;color:var(--muted);line-height:1.5;display:block;padding-top:3px}
.me-exit{font:11px/1.4 var(--sans,Arial,sans-serif);font-weight:600;white-space:nowrap;border:0;border-radius:4px;padding:4px 6px;color:var(--accent);background:var(--accent-soft);cursor:pointer;min-height:27px}
.me-guide{background:var(--bg);border:1px solid var(--line);padding:12px;border-radius:6px;font-size:12px;line-height:1.8;margin-top:6px;color:var(--muted)}
.me-guide kbd{font:11px monospace;padding:2px 4px;background:var(--panel);border:1px solid var(--line);border-radius:3px;color:var(--ink)}
.me-editor-message{font-size:11px;line-height:1.5;color:var(--muted)}
.me-editor-message:empty{display:none}
.me-relations{display:flex;align-items:center;gap:4px;border-top:1px solid var(--line);padding-top:3px;margin-top:3px}
.me-relations>span{font-size:11px;color:var(--muted);margin-left:auto}
.me-readonly .me-controls,.me-readonly .me-relations,.me-readonly .me-helper,.me-readonly .me-more,.me-readonly .me-guide{display:none}
.me-readonly .me-expression{cursor:default}
.me-readonly .me-surface{background:var(--bg)}
.math-editor [hidden]{display:none!important}
@media(max-width:560px){.math-editor .me-expression{font-size:24px;padding:15px 12px;min-height:64px}.me-expression[data-empty="true"]::before{left:12px}.math-editor .me-tool{min-height:40px;padding:6px 7px;font-size:11px;gap:4px}.me-tools{gap:1px}.me-helper{flex-wrap:wrap}.me-exit{min-height:32px}.me-root-sign{width:.62em}.me-hint{font-size:11px}}
@media(prefers-reduced-motion:reduce){.me-surface{transition:none}}

/* An equation prefix is a fixed label, never a second input. */
.me-answer-prefix{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:14px 0 14px 18px;font:italic 28px/1.4 "Cambria Math","Times New Roman",serif;color:var(--ink);user-select:none;pointer-events:none}
.me-answer-prefix>span{font-style:normal}
.me-answer-prefix+.me-expression{padding-left:12px}
.me-answer-prefix+.me-expression[data-empty=true]::before{left:12px;content:"Your expression"}
@media(max-width:600px){.me-answer-prefix{font-size:27px;padding-left:14px;gap:9px}}

/* retained from experience.css */
/* Answer celebrations: decorative, finite, pointer-transparent, no rapid flashes. */
.celebration-layer{position:absolute!important;left:0;right:0;z-index:20;overflow:hidden;pointer-events:none;max-height:65vh;background:transparent!important}
.celebration-piece{position:absolute;display:block;left:var(--sx);top:10px;color:var(--color);background:var(--color);width:var(--size);height:calc(var(--size)*.52);border-radius:1px;opacity:0;animation:paper-fall 1.8s var(--delay) ease-out both;will-change:transform,opacity}
@keyframes paper-fall{0%{opacity:0;transform:translate3d(0,-16px,0) rotate(0)}12%{opacity:.9}100%{opacity:0;transform:translate3d(var(--dx),var(--dy),0) rotate(var(--turn))}}
.effect-stars .celebration-piece{top:var(--sy);background:none;font:24px/1 Georgia,serif;width:auto;height:auto;animation:star-fan 1.7s var(--delay) ease-out both}
@keyframes star-fan{0%{opacity:0;transform:scale(.3)}20%{opacity:.85}100%{opacity:0;transform:translate(var(--dx),calc(var(--dy)*-.45)) rotate(var(--turn)) scale(.6)}}
.effect-bubbles .celebration-piece{top:70%;height:var(--size);border:1.5px solid var(--color);background:transparent;border-radius:50%;box-shadow:inset 2px 2px 5px color-mix(in srgb,var(--color),transparent 84%);animation:bubble-rise 2s var(--delay) ease-out both}
@keyframes bubble-rise{0%{opacity:0;transform:scale(.6)}18%{opacity:.75}100%{opacity:0;transform:translate(calc(var(--dx)*.45),calc(var(--dy)*-.8)) scale(1.15)}}
.effect-leaves .celebration-piece{width:14px;height:21px;border-radius:90% 5% 85% 5%;box-shadow:inset 1px 0 #ffffff70;animation-duration:2s}
.effect-comets .celebration-piece{top:var(--sy);height:2px;width:70px;border-radius:100%;background:linear-gradient(90deg,transparent,var(--color));animation:meteor-glide 1.5s var(--delay) ease-out both}
.effect-comets .celebration-piece::after{content:"";position:absolute;right:0;top:-2px;width:5px;height:5px;background:var(--color);border-radius:50%}
@keyframes meteor-glide{0%{opacity:0;transform:translate(-30px,-30px) rotate(24deg)}18%{opacity:.8}100%{opacity:0;transform:translate(130px,80px) rotate(24deg)}}
.effect-origami .celebration-piece{background:none;top:var(--sy);width:35px;height:25px;animation:paper-flight 2.1s var(--delay) ease-in-out both}
.effect-origami svg{width:100%;height:100%}
@keyframes paper-flight{0%{opacity:0;transform:translate(-55px,35px) rotate(-12deg) scale(.8)}20%{opacity:.85}100%{opacity:0;transform:translate(160px,-70px) rotate(7deg) scale(1)}}
.effect-orbits .celebration-piece{top:var(--sy);height:var(--size);border-radius:50%;animation:star-fan 2s var(--delay) ease-out both}
.effect-orbits .orbital-ring{left:50%;top:40%;width:var(--ring-size);height:calc(var(--ring-size)*.4);margin-left:calc(var(--ring-size)*-.5);margin-top:calc(var(--ring-size)*-.2);background:none;border:1px solid var(--color);animation:ring-unfold 2s var(--delay) ease-out both}
@keyframes ring-unfold{0%{opacity:0;transform:scale(.6) rotate(var(--turn))}20%{opacity:.7}100%{opacity:0;transform:scale(1.2) rotate(calc(var(--turn) + 35deg))}}
.effect-fireflies .celebration-piece{top:var(--sy);height:var(--size);border-radius:50%;box-shadow:0 0 9px 2px var(--color);animation:firefly-drift 2s var(--delay) ease-out both}
@keyframes firefly-drift{0%{opacity:0;transform:translate(0,8px)}30%{opacity:.6}100%{opacity:0;transform:translate(calc(var(--dx)*.3),-42px)}}
.effect-aurora .celebration-piece{width:44%;height:85px;border-radius:55%;top:var(--sy);filter:blur(16px);background:linear-gradient(40deg,transparent,var(--color),transparent);animation:aurora-drift 2.1s var(--delay) ease-in-out both}
@keyframes aurora-drift{0%{opacity:0;transform:translate(-20px,-10px) rotate(var(--turn))}30%{opacity:.24}100%{opacity:0;transform:translate(45px,10px) rotate(calc(var(--turn) + 10deg))}}
.celebration-swatch{position:relative;display:grid;place-items:center;height:92px;border-radius:7px;background:var(--bg);color:var(--accent);overflow:hidden;margin-bottom:13px;border:1px solid var(--line)}
.celebration-swatch>span{font:46px/1 Georgia,serif;font-weight:normal;z-index:1}.celebration-swatch>i{position:absolute;font:35px Georgia;left:22%;top:11%;color:#a79564}.celebration-swatch>b{position:absolute;font:25px Georgia;right:22%;bottom:12%;color:#8d9daf}
.swatch-stars{color:#ac904f;background-image:radial-gradient(ellipse at 50% 70%,#bc964612,transparent)}
.swatch-bubbles{color:#7796ab}.swatch-leaves{color:#718762}.swatch-origami{color:#9d7c68}.swatch-fireflies{color:#b0a15b}
.swatch-aurora{background-image:linear-gradient(120deg,#65a79718,#8a8abd25,#8dafb31c);color:#73968f}
.celebration-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.celebration-shop-card .celebration-buy-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}.celebration-shop-card .celebration-buy-row button{min-height:36px}.celebration-shop-card .catalog-copy{flex:1}
.celebration-status{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:15px 0 22px;padding:12px 14px;border:1px solid var(--line);border-radius:6px;font-size:13px}.celebration-status>span{flex:1}
.effect-preview-dialog{width:min(570px,calc(100% - 28px));border:1px solid var(--line);border-radius:12px;padding:0;background:var(--panel);color:var(--ink);max-height:90dvh}
.effect-preview-dialog::backdrop{background:#10231d55}.effect-preview-stage{position:relative;min-height:255px;display:grid;place-content:center;text-align:center;padding:28px;isolation:isolate;overflow:hidden}.effect-preview-stage .celebration-swatch{margin:0 auto 15px;width:110px;height:82px;border:0;background:none}.effect-preview-stage p{color:var(--muted);font-size:13px}.effect-preview-footer{padding:16px 22px 23px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.experience-settings{margin:22px 0 0;padding:22px 0 0;border-top:1px solid var(--line)}.experience-settings h3{margin-bottom:8px}.experience-settings>p{font-size:13px;color:var(--muted);max-width:680px}.sound-grid{margin-top:18px}.sound-volume{display:flex;gap:12px;align-items:center;min-height:42px}.sound-volume input{flex:1;min-width:70px;accent-color:var(--accent)}.sound-volume output{font-size:13px;min-width:42px;font-variant-numeric:tabular-nums}.sound-preview-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:17px 0 6px}.sound-note{font-size:12px!important}.quiet-toggle{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--muted);cursor:pointer;flex-shrink:0}.quiet-toggle[data-enabled=true]{color:var(--accent);background:var(--accent-soft)}.quiet-toggle svg{width:17px;height:17px}.sound-state-badge{font-size:11px;color:var(--muted)}
@media(max-width:760px){.celebration-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.celebration-catalog{grid-template-columns:1fr}.celebration-shop-card{display:grid;grid-template-columns:80px 1fr;gap:12px;align-items:start}.celebration-shop-card .celebration-swatch{height:80px;margin:0}.celebration-shop-card .celebration-buy-row{grid-column:1/-1}.experience-settings{margin-top:18px}.effect-preview-footer{padding:14px}.sound-preview-controls .btn{flex:1}.effect-preview-dialog .dialog-header{padding:16px}}
@media(prefers-reduced-motion:reduce){.celebration-layer{display:none!important}}
[data-reduce-motion=true] .celebration-layer{display:none!important}

/* retained from studio.css */
/* MyMathDesk · paper, graphite, and a little room to think. */
:root{--studio-paper:#f5f1e8;--studio-rule:#d9d6cd;--studio-wash:#eee9df;--display:Georgia,'Times New Roman',serif;--radius:8px}
:root[data-theme=dark]{--studio-paper:#29322b;--studio-rule:#424b42;--studio-wash:#242d26}
button:disabled{cursor:not-allowed}textarea{font:inherit;color:var(--ink);resize:vertical}fieldset{min-width:0}fieldset legend{font-size:12px;font-weight:600;margin-bottom:10px}summary{cursor:pointer}.button-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.display-title{font-family:var(--display);font-size:35px;line-height:1.2;font-weight:400;letter-spacing:-.045em}.quiet-empty{color:var(--muted);padding:25px 0;line-height:1.8}.page-heading h1,.studio-heading h1{font-family:var(--display);font-weight:400;font-size:43px;letter-spacing:-.045em}.studio-heading{margin-bottom:24px}.studio-heading p{font-size:14px;line-height:1.7}.main p{overflow-wrap:anywhere}.panel{box-shadow:none}.main .panel h2{font-family:var(--display);font-size:26px}.nav-divider{height:1px;background:var(--line);margin:9px 11px;flex-shrink:0}.command-trigger{display:inline-flex;gap:9px;align-items:center;padding:7px 10px;border:1px solid var(--line);border-radius:5px;font-size:11px;color:var(--muted);background:var(--panel);min-height:34px}.command-trigger .icon{width:14px;height:14px}.command-trigger kbd{font-size:10px;padding:1px 4px;background:var(--bg);border:1px solid var(--line);border-radius:3px;font-family:inherit}.topbar-ink{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.topbar-ink small{font-size:8px;letter-spacing:.1em;color:var(--muted);margin-left:3px}.ink-increased{animation:ink-arrived .7s ease-out}@keyframes ink-arrived{0%{transform:translateY(0)}35%{transform:translateY(-4px);color:var(--accent)}100%{transform:translateY(0)}}
/* A tactile home with real, labeled controls. Decorative objects remain optional. */
.desk-topline{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin-bottom:13px}.desk-topline .text-btn{font-size:11px}.personal-desk{position:relative;height:426px;border:1px solid var(--studio-rule);border-radius:8px;background:#efece3;color:#29342c;overflow:hidden;isolation:isolate}.personal-desk[data-surface=oak]{background:#dac5a6}.personal-desk[data-surface=slate]{background:#454c49}.personal-desk[data-surface=blueprint]{background:#244653}.desk-grain{position:absolute;inset:0;z-index:-1;opacity:.5;background-image:repeating-linear-gradient(0deg,transparent 0,transparent 41px,#8f8d7820 42px,transparent 43px),repeating-linear-gradient(90deg,transparent 0,transparent 41px,#8f8d781c 42px,transparent 43px)}[data-surface=oak] .desk-grain{background-image:repeating-linear-gradient(2deg,#66523208 0,#66523208 1px,transparent 2px,transparent 9px)}[data-surface=blueprint] .desk-grain{background-image:linear-gradient(#eeeeee12 1px,transparent 1px),linear-gradient(90deg,#eeeeee12 1px,transparent 1px);background-size:24px 24px}.desk-notebook{position:absolute;left:8%;top:27px;padding:0;transform:rotate(-4deg);transition:transform .22s;text-align:left;z-index:2}.desk-notebook:hover{transform:rotate(-2deg) translateY(-4px)}.desk-notebook .cover-preview-large{width:218px;transform:none;aspect-ratio:3/4}.desk-notebook .cover-title{font-size:21px}.object-caption{position:absolute;left:13px;right:13px;bottom:15px;padding:9px 10px;background:#f5f1e8ed;color:#25382a;border-top:1px solid #67746155;font-size:11px;display:flex;justify-content:space-between;gap:10px}.object-caption>span{font-size:16px}.desk-seal{position:absolute;right:10px;top:12px;width:37px;height:37px;border-radius:50%;background:#f7e8b7;border:2px double #997944;color:#75653c;font-family:var(--display);font-size:28px;text-align:center;transform:rotate(13deg)}.daily-note{position:absolute;right:7%;top:31px;width:260px;background:#fff9df;box-shadow:2px 5px 7px -3px #0002;transform:rotate(1.5deg);padding:21px 23px 19px;text-align:left;border-bottom:1px solid #d8cc9d;display:flex;flex-direction:column;gap:9px;z-index:2;transition:transform .2s;color:#3d4230}.daily-note:hover{transform:rotate(0deg) translateY(-2px)}.daily-note:before{content:'';position:absolute;top:-7px;left:42%;width:53px;height:19px;background:#dcd1b480;transform:rotate(-6deg)}.daily-note .eyebrow{font-size:8px;color:#6d7056}.daily-note>strong{font-family:var(--display);font-size:36px;font-weight:400;letter-spacing:-.04em}.daily-note>span:not(.eyebrow):not(.note-progress){font-size:12px;line-height:1.6;color:#676d50}.daily-note>b{font-size:11px;font-weight:600;margin-top:2px}.daily-note>small{font-size:9px;color:#75755e}.note-progress{height:3px;background:#d8d4b7;margin-top:6px}.note-progress i{display:block;height:100%;background:#627454}.review-stack{position:absolute;right:11%;bottom:31px;width:241px;min-height:105px;padding:17px 20px 15px;background:#fffefa;transform:rotate(-2.2deg);box-shadow:2px 3px 0 0 #d1d0c6,4px 7px 0 -1px #e2e0d5;border:1px solid #c7c7ba;text-align:left;display:grid;grid-template-columns:40px 1fr;column-gap:13px;align-items:center;z-index:2}.review-stack b{font-family:var(--display);font-size:36px;font-weight:400}.review-stack>span:not(.stack-lines){font-size:12px;max-width:130px}.review-stack small{grid-column:1/-1;font-family:var(--display);font-style:italic;font-size:11px;color:#828373;margin-top:7px}.stack-lines{position:absolute;inset:12px 0 0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0,transparent 22px,#95a5a317 23px,transparent 24px)}.desk-ruler{position:absolute;bottom:33px;left:4%;width:253px;height:39px;background:#b69869d9;border:1px solid #8c734a;transform:rotate(2deg);color:#554429;padding:3px 8px;text-align:center;z-index:1;box-shadow:1px 2px 2px #0002}.desk-ruler span{font-size:8px;letter-spacing:.18em;display:block;margin-top:8px}.desk-ruler i{position:absolute;top:0;left:8px;right:8px;height:9px;background:repeating-linear-gradient(90deg,#6a543f 0,#6a543f 1px,transparent 1px,transparent 8px)}.desk-ink{position:absolute;left:40%;bottom:26px;text-align:center;z-index:3;padding:0}.ink-cap{display:block;background:#354238;width:51px;height:13px;margin:0 auto -1px;border-radius:2px 2px 0 0;border:1px solid #203425;background-image:repeating-linear-gradient(90deg,transparent 0,transparent 3px,#f3ffef22 4px)}.ink-bottle{display:flex;flex-direction:column;justify-content:center;width:72px;height:64px;border-radius:6px 6px 12px 12px;background:#f4f1e3;color:#294d35;border:5px solid #2d4637;font-family:var(--display);font-size:22px;line-height:1.1;box-shadow:2px 4px 5px #0002}.ink-bottle small{font-family:Arial,sans-serif;font-size:6px;letter-spacing:.14em;margin-top:4px}.desk-pencil{position:absolute;left:43%;top:32px;width:17px;height:218px;transform:rotate(15deg);background:#747b6c;border-radius:2px 2px 0 0;border-left:4px solid #adb09d;border-right:3px solid #545d50;color:#eef0db;padding:0;z-index:1;box-shadow:3px 2px 4px #0002}.desk-pencil:before{content:'';position:absolute;left:-4px;right:-3px;bottom:-22px;height:24px;background:#bba680;clip-path:polygon(0 0,100% 0,50% 100%)}.desk-pencil:after{content:'';position:absolute;left:1px;bottom:-24px;border-left:3px solid transparent;border-right:3px solid transparent;border-top:8px solid #394336}.desk-pencil i{position:absolute;left:-4px;right:-3px;top:-9px;height:11px;background:#e2dac6;border:1px solid #b3b39d}.desk-pencil span{position:absolute;top:10px;left:-2px;writing-mode:vertical-rl;font-size:7px;letter-spacing:.2em}.desk-pencil.brass{background:#ae8647;border-color:#94703d #7b603e #94703d #dac487}.desk-pencil.fountain{background:#323b49;border-color:#d9ce9d #202730 #d9ce9d #4b576a;width:19px}.desk-lamp{position:absolute;width:124px;height:179px;right:32%;top:23px;stroke:#576254;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none;z-index:1}.lamp-shade{fill:#7f8c7b}.desk-lamp.dome .lamp-shade{fill:#baa572;stroke:#8f805d}.desk-next{display:grid;grid-template-columns:repeat(3,1fr);margin:24px 0;border:1px solid var(--line);background:var(--panel);border-radius:6px;overflow:hidden}.desk-next>button{text-align:left;padding:22px 23px;position:relative;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:9px}.desk-next>button:last-child{border-right:0}.desk-next>button:hover{background:var(--accent-soft)}.desk-next .eyebrow{font-size:8px}.desk-next strong{font-family:var(--display);font-size:22px;line-height:1.2;font-weight:400;letter-spacing:-.025em}.desk-next p{font-size:11px;color:var(--muted);line-height:1.65;max-width:240px}.next-arrow{position:absolute;right:14px;top:14px;font-size:16px;color:var(--muted)}.welcome-strip{margin-top:20px;padding:18px 22px;border-left:3px solid var(--accent);background:var(--panel);display:flex;align-items:center;gap:20px;justify-content:space-between}.welcome-strip p{font-size:12px;margin-top:4px;color:var(--muted)}.welcome-strip strong{font-size:14px;font-weight:500}.welcome-strip .btn{white-space:nowrap}.weekly-note{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:17px 3px 18px}.weekly-note h2{font-family:var(--display);font-size:25px;margin:7px 0}.weekly-note p{color:var(--muted);font-size:12px;max-width:620px}.weekly-note .text-btn{white-space:nowrap}
/* The topic library is compact rather than a wall of dashboard cards. */
.topic-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.topic-card{padding:20px;border-radius:6px}.topic-top{margin-bottom:10px}.topic-symbol{height:39px;margin-bottom:13px}.topic-symbol math{font-size:25px}.topic-symbol .icon{height:36px;width:42px}.topic-card h3{font-size:18px;max-width:none}.topic-card .topic-description{font-size:11px;line-height:1.7;margin-bottom:13px}.topic-meta{font-size:9px;gap:7px;flex-wrap:wrap;row-gap:0;margin-bottom:14px}.topic-meta span{white-space:nowrap}.topic-actions{gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px}.topic-actions .btn{font-size:11px;padding:8px 10px}.topic-actions .text-btn{font-size:10px}.topic-test-action{padding-top:12px}.topic-test-action .text-btn,.topic-test-action>span{font-size:10px}.topic-card .progress-label{font-size:9px;gap:8px}.topic-card .progress-label strong{white-space:nowrap}.topic-progress{padding-top:12px}.topic-grid .topic-card h3{min-height:44px}.topic-card .topic-top .pill{font-size:9px;padding:3px 6px}
/* Mastery map: ordered suggested routes; explicit states, never a locked game board. */
.mastery-legend{display:flex;flex-wrap:wrap;gap:20px;font-size:11px;padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid var(--line)}.mastery-legend>span{display:flex;align-items:center;gap:7px;color:var(--muted)}.mastery-legend b{font-size:10px;font-weight:400;color:var(--ink)}.stage-dot{display:inline-block;width:9px;height:9px;border-radius:50%;border:1px solid var(--muted)}.stage-dot.introduced{background:var(--line)}.stage-dot.practicing{background:var(--accent-soft);border-color:var(--accent)}.stage-dot.strong{background:var(--accent);opacity:.6}.stage-dot.mastered{background:var(--accent);border-color:var(--accent)}.mastery-layout{display:grid;grid-template-columns:235px 1fr;gap:30px;align-items:start}.mastery-topics{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--line);background:var(--panel);border-radius:6px;position:sticky;top:20px}.mastery-topics button{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 10px;font-size:12px;text-align:left;border-radius:4px;color:var(--muted)}.mastery-topics button:hover,.mastery-topics button.selected{background:var(--accent-soft);color:var(--accent)}.mastery-topics small{font-size:9px;white-space:nowrap}.route-heading{padding:8px 0 23px;border-bottom:1px solid var(--line)}.route-heading h2{font-family:var(--display);font-size:31px;line-height:1.15;margin:10px 0 13px}.route-heading .text-btn{font-size:12px}.skill-path{list-style:none;padding:0;margin:0}.skill-node{display:grid;grid-template-columns:46px 1fr;gap:18px;position:relative;padding:27px 0 27px}.skill-node:before{content:'';position:absolute;left:22px;top:60px;bottom:-25px;width:1px;background:var(--line)}.skill-node:last-child:before{display:none}.node-number{height:44px;width:44px;display:grid;place-items:center;border:1px solid var(--line);background:var(--panel);border-radius:50%;font-family:var(--display);font-size:18px;z-index:1;color:var(--muted)}.skill-node.mastered .node-number{background:var(--accent);color:var(--panel);border-color:var(--accent)}.skill-node.strong .node-number,.skill-node.practicing .node-number{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.skill-node .eyebrow{font-size:8px}.skill-node h3{font-size:20px;margin:4px 0 9px;letter-spacing:-.025em}.skill-node p{font-size:11px;color:var(--muted);line-height:1.7}.skill-evidence{height:3px;background:var(--line);margin:12px 0 14px;max-width:270px}.skill-evidence i{display:block;background:var(--accent);height:100%}.skill-node .button-row .small{font-size:10px}.grading-note{margin-top:24px!important}.grading-note summary{font-size:13px}.grading-note p{font-size:12px;color:var(--muted);margin-top:12px;line-height:1.8}
/* Learning history is read as a notebook, with numbers in their proper context. */
.insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;min-width:0}.insight-grid .panel{margin-bottom:20px;min-width:0}.insight-grid h2{margin-bottom:14px}.insight-grid .panel>p{font-size:12px;color:var(--muted);line-height:1.8}.insight-grid .eyebrow{display:block;margin-bottom:10px}.weekly-stats{display:flex;gap:30px;margin:19px 0}.weekly-stats strong{display:block;font-family:var(--display);font-size:38px;font-weight:400;line-height:1}.weekly-stats small{display:block;font-size:10px;color:var(--muted);margin-top:8px}.personal-records{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:var(--panel);border-radius:6px;margin:0 0 25px;padding:20px 0}.personal-records>div{padding:0 20px;border-right:1px solid var(--line)}.personal-records>div:last-child{border:0}.personal-records span{font-size:10px;color:var(--muted);display:block}.personal-records strong{display:block;font-family:var(--display);font-size:32px;font-weight:400;margin-top:7px}.confidence-stat{display:grid;grid-template-columns:95px 1fr 36px;gap:9px;align-items:center;margin:18px 0}.confidence-stat>span{font-size:11px}.confidence-stat>b{font-size:11px;font-weight:500;text-align:right}.confidence-stat>small{grid-column:2/4;font-size:9px;color:var(--muted);margin-top:-5px}.evidence-bar{height:5px;background:var(--line);border-radius:2px;overflow:hidden}.evidence-bar i{height:100%;display:block;background:var(--accent)}.study-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:20px 0}.calendar-day{display:grid;place-items:center;aspect-ratio:1.35;font-size:10px;border:1px solid var(--line);border-radius:3px;color:var(--muted);background:var(--bg)}.calendar-day[data-level='1']{background:var(--accent-soft);color:var(--accent)}.calendar-day[data-level='2']{background:color-mix(in srgb,var(--accent) 50%,var(--panel));color:var(--panel)}.calendar-day[data-level='3']{background:var(--accent);color:var(--panel)}.trend-chart{width:100%;max-height:190px;overflow:visible}.trend-chart text{fill:var(--muted);font:10px Arial,sans-serif}.trend-chart line{stroke:var(--line)}.trend-chart polyline{stroke:var(--accent);stroke-width:2;fill:none}.trend-chart circle{fill:var(--panel);stroke:var(--accent);stroke-width:2}.coach-summary{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.coach-count{display:flex;align-items:center;gap:20px}.coach-count strong{font-family:var(--display);font-size:51px;font-weight:400;line-height:1}.coach-count p{font-size:12px;color:var(--muted)}.mistake-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mistake-card{padding:25px;border:1px solid var(--line);background:var(--panel);border-radius:6px}.mistake-card h2,.mistake-card h3{font-family:var(--display);font-size:25px;margin:9px 0 10px}.mistake-card p{font-size:12px;color:var(--muted);line-height:1.7}.mistake-card .button-row{margin-top:18px}.mistake-card .text-btn{font-size:11px}.coach-disclaimer{margin:24px 0;font-size:12px;color:var(--muted)}.lesson-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.lesson-card{padding:27px 24px;background:var(--panel);border:1px solid var(--line);border-radius:6px;display:flex;flex-direction:column;align-items:flex-start}.lesson-card .eyebrow{font-size:8px}.lesson-card h2{font-family:var(--display);font-size:27px;margin:16px 0 13px;line-height:1.12}.lesson-card p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:18px;flex:1}.lesson-card small{font-size:9px;color:var(--muted);margin-bottom:19px}.lesson-card .text-btn{font-size:12px}
/* Shared modal language. */
.studio-dialog{width:min(850px,calc(100vw - 42px));max-width:calc(100vw - 42px);max-height:90dvh;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:0;box-shadow:var(--shadow);overscroll-behavior:contain}.studio-dialog::backdrop{background:#15201777;backdrop-filter:blur(2px)}.studio-dialog .dialog-header{position:sticky;top:0;background:var(--panel);z-index:4;padding:19px 28px;border-bottom:1px solid var(--line)}.studio-dialog .dialog-header h2{font-size:19px;font-family:var(--display)}.studio-dialog-body{padding:28px 32px}.studio-dialog-body>p{margin:10px 0 20px;color:var(--muted);font-size:13px;line-height:1.8}.studio-dialog-body>h3{margin:8px 0 14px}.studio-dialog-body .button-row{margin:20px 0}.studio-dialog .field-input{width:100%;max-width:100%;font-size:14px;background:var(--bg)}.studio-dialog label:not(.choice):not(.me-field-label){font-size:12px}.studio-dialog label>textarea,.studio-dialog label>input:not([type=radio]):not([type=checkbox]),.studio-dialog label>select{margin-top:6px}.studio-dialog-body .btn[type=submit]{margin-top:16px}.studio-dialog-body .small{line-height:1.8}.studio-dialog-body fieldset{border:0;border-top:1px solid var(--line);padding:18px 0 22px;margin:22px 0 0}.setup-topics{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}.setup-topics .check-label{font-size:12px;align-items:start}.setup-topics input{margin:3px 0 0;accent-color:var(--accent)}.setup-goals{display:grid;grid-template-columns:1fr 1fr;gap:12px}.setup-goals label{display:flex;gap:11px;align-items:start;padding:13px 14px;background:var(--bg);border:1px solid var(--line);border-radius:5px}.setup-goals input{accent-color:var(--accent);margin-top:3px}.setup-goals strong{display:block;font-size:13px}.setup-goals small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.daily-results{display:grid;grid-template-columns:1fr 1fr;gap:8px}.daily-result{text-align:left;display:grid;grid-template-columns:24px 1fr;gap:2px 10px;padding:12px;border:1px solid var(--line);border-radius:4px}.daily-result span{grid-row:1/3;font-size:20px;color:var(--accent)}.daily-result strong{font-size:12px;font-weight:500}.daily-result small{color:var(--muted);font-size:10px}.daily-result.incorrect span{color:var(--wrong)}
/* One intentional search surface, with keyboard selection. */
.command-dialog{width:700px}.command-dialog .studio-dialog-body{padding:20px}.command-input{display:flex;align-items:center;gap:13px;padding:6px 10px 16px;border-bottom:1px solid var(--line)}.command-input>span{font-size:25px;color:var(--muted)}.command-input input{border:0;outline:0;background:transparent;color:var(--ink);width:100%;font-size:16px!important}.command-results{max-height:53dvh;overflow:auto;margin-top:9px;overscroll-behavior:contain}.command-result{display:grid;grid-template-columns:1fr 20px;gap:3px;text-align:left;padding:13px 14px;width:100%;border-radius:5px}.command-result>strong{font-size:13px;font-weight:500}.command-result>small{font-size:10px;color:var(--muted)}.command-result>span{grid-row:1/3;grid-column:2;align-self:center;color:var(--muted)}.command-result.active{background:var(--accent-soft)}.command-dialog .small{font-size:10px;margin-bottom:0}
/* Micro-lessons are progressive disclosure, not long textbook pages. */
.lesson-dialog{width:790px}.lesson-intro{font-family:var(--display);font-size:23px!important;color:var(--ink)!important;line-height:1.45!important}.lesson-stepper{list-style:none;margin:25px 0;padding:0}.lesson-stepper li{display:grid;grid-template-columns:27px 1fr;gap:18px;padding:20px 0;border-top:1px solid var(--line)}.lesson-stepper li>span{font-size:12px;color:var(--muted);font-family:var(--display)}.lesson-stepper p{font-size:13px;color:var(--muted);margin:0 0 15px}.lesson-equation{padding:6px 0}.lesson-equation math{font-size:26px}.lesson-check{border:1px solid var(--line);background:var(--bg);border-radius:6px;padding:22px;margin-top:28px}.lesson-check>p{margin:10px 0 18px;font-size:14px}.lesson-check .button-row{margin:12px 0}.lesson-check .btn[type=submit]{margin-top:0}.lesson-check-feedback{font-size:13px;color:var(--accent);line-height:1.8}.lesson-check-feedback p{margin-top:8px}.lesson-check-feedback math{font-size:22px}.lesson-finish{display:flex;gap:20px;align-items:center;margin-top:25px}.lesson-dialog .takeaway{font-size:13px;margin:22px 0}.balance-equation{padding:24px 18px;margin:20px 0;border:1px solid var(--line);background:var(--bg);border-radius:5px;overflow:auto;text-align:center}.balance-equation math{font-size:25px}.balance-controls{display:grid;grid-template-columns:1fr 1fr;gap:15px}.balance-log{margin-top:20px;padding-left:14px;border-left:2px solid var(--line)}.balance-log p{font-size:12px;margin:12px 0}.balance-error{font-size:12px;color:var(--muted);margin:18px 0}.balance-lab>p{font-size:13px;color:var(--muted);line-height:1.8}
/* Actual working tools and gentler result feedback. */
.selection-reason{font-size:10px;color:var(--muted);margin:0 0 12px;font-style:italic}.confidence-picker{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:25px 0 0}.confidence-picker legend{font-size:11px;font-weight:500;margin-bottom:9px}.confidence-picker legend span{font-size:9px;color:var(--muted);margin-left:6px}.confidence-picker label{cursor:pointer;position:relative}.confidence-picker input{position:absolute;width:1px;height:1px;opacity:0}.confidence-picker span:not(legend span){display:block;font-size:10px;line-height:1;padding:10px 12px;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--muted)}.confidence-picker input:checked+span{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.confidence-picker input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}.hint-ladder{display:flex;flex-direction:column;gap:5px;margin-top:13px}.hint-rung{display:flex;align-items:center;gap:10px;font-size:11px;text-align:left;padding:9px 7px;border-bottom:1px solid var(--line)}.hint-rung span{width:20px;height:20px;border:1px solid var(--line);border-radius:50%;font-family:var(--display);display:grid;place-items:center;font-size:11px;color:var(--muted)}.hint-rung.opened{color:var(--accent)}.hint-rung.opened span{background:var(--accent-soft);border-color:var(--accent)}.hint-box>div+div{padding-top:13px;margin-top:13px;border-top:1px solid var(--line)}.hint-box strong{font-size:10px}.hint-box p{font-size:11px;margin-top:5px;line-height:1.7}.hint-box math{font-size:16px}.feedback-panel{border-radius:5px;background:var(--accent-soft);border-width:0 0 0 3px;box-shadow:none;padding:19px 22px}.feedback-panel.wrong{background:var(--panel);border:1px solid var(--line);border-left:3px solid #b1a082}.feedback-panel.wrong .feedback-heading{color:var(--ink)}.feedback-panel .solution{background:var(--panel)}.solution-math{margin:11px 0!important;border:0!important;background:transparent!important;padding:3px 0!important}.solution-math math{font-size:23px}.step-why{margin-top:12px}.step-why summary{font-size:10px;color:var(--accent);text-decoration:underline;text-underline-offset:3px;width:max-content}.step-why p{font-size:11px;line-height:1.8;color:var(--muted);padding:12px;background:var(--bg);border-radius:4px;margin-top:8px}.mistake-callout{margin:16px 0 20px;background:var(--studio-wash);padding:19px;border-radius:5px}.mistake-callout .eyebrow{font-size:8px}.mistake-callout h4{font-family:var(--display);font-weight:400;letter-spacing:-.02em;font-size:22px;margin:9px 0 10px}.mistake-callout p{font-size:12px!important;line-height:1.8}.mistake-callout .coach-rule{border-top:1px solid var(--studio-rule);padding-top:10px;margin-top:12px}.session-learning{margin:20px auto;max-width:520px;padding:20px 0;border-block:1px solid var(--line);text-align:left}.session-learning p{font-size:12px}.session-learning .button-row{margin-top:15px}.number-set-choices{gap:9px}.number-set-choices .choice{border-radius:4px;transition:border .15s,background .15s}.number-set-choices .choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.graph-builder{padding:15px 16px;margin-top:25px;border:1px solid var(--line);border-radius:5px;background:var(--bg)}.graph-builder summary{font-size:12px;font-weight:500}.graph-builder>p{font-size:11px;color:var(--muted);line-height:1.7;margin:12px 0 18px}.graph-builder>label{font-size:11px;display:block}.graph-builder .field-input{width:100%;margin-top:5px}.endpoint-controls{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.endpoint-controls fieldset{border:0;padding:0;margin:0}.endpoint-controls fieldset[hidden]{display:none}.endpoint-controls legend{font-size:10px;font-weight:500}.endpoint-controls label{font-size:10px}.endpoint-controls [type=range]{width:100%;accent-color:var(--accent);margin:16px 0}.endpoint-controls .check-label{line-height:1.5;align-items:start}.graph-builder-message{font-size:11px!important;margin-bottom:9px!important}.graph-builder [data-graph-preview] svg{max-height:140px;width:100%}.geometry-tools{border:1px solid var(--line);background:var(--bg);border-radius:4px;padding:16px;margin:18px 0}.geometry-tools p{font-size:11px;line-height:1.75;margin:10px 0;color:var(--muted)}.geometry-tools .button-row{gap:8px}.geometry-tools button{font-size:11px;min-height:34px}.geo-piece{fill:transparent;stroke:transparent;stroke-width:2;cursor:pointer;pointer-events:all;transition:fill .15s}.geo-piece:hover,.geo-piece:focus,.geo-piece.selected{fill:color-mix(in srgb,var(--accent) 13%,transparent);stroke:var(--accent);outline:0}.geo-piece[data-removed=true]{fill:transparent}.geo-piece[data-removed=true]:hover,.geo-piece[data-removed=true].selected{fill:#ba766622;stroke:var(--wrong);stroke-dasharray:5 4}.trace-outside .shape{stroke:var(--accent);stroke-width:3;stroke-dasharray:1200;animation:trace-boundary 1.4s ease-out forwards}.trace-outside .guide{opacity:.4}@keyframes trace-boundary{from{stroke-dashoffset:1200}to{stroke-dashoffset:0}}.geometry-explanation{font-size:12px;margin-top:12px}.scratch-body{padding:23px}.scratch-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px}.scratch-toolbar .selected{background:var(--accent-soft);border-color:var(--accent)}.scratch-canvas{display:block;width:100%;height:auto;touch-action:none;border:1px solid var(--line);border-radius:5px;background:#faf8f2}.scratch-label{display:block;margin-top:20px}.scratch-label textarea{display:block;width:100%;margin-top:9px;font-family:var(--display);font-size:16px;line-height:1.8}.scratch-body>.small{margin-top:15px}
/* Named deck recipes, collectible sets and an explicit offline handoff. */
.saved-deck-panel{margin-bottom:24px!important}.preset-list{display:flex;flex-direction:column}.preset-list article{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}.preset-list article:last-child{border-bottom:0}.preset-list h3{font-family:var(--display);font-size:22px}.preset-list p{font-size:11px;color:var(--muted);margin-top:5px}.preset-list .text-btn{font-size:11px}.deck-naming{border-top:1px solid var(--line);padding-top:24px;margin-top:22px}.deck-naming>label{display:block;font-size:12px;font-weight:500;max-width:400px}.deck-naming>label input{width:100%;margin-top:8px}.deck-naming details{margin:22px 0;font-size:12px}.deck-naming details p{margin:12px 0 16px}.count-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}.count-grid label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px!important}.count-grid .field-input{width:65px;min-width:65px}.share-code{font-family:monospace!important;font-size:12px!important;word-break:break-all;line-height:1.8}.share-label{display:block;margin-top:18px}.ink-chip{padding:10px 12px;white-space:nowrap;font-family:var(--display);font-size:28px}.ink-chip small{font-family:Arial,sans-serif;font-size:9px;letter-spacing:.14em}.desk-shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.desk-item{border:1px solid var(--line);border-radius:5px;padding:12px;display:flex;flex-direction:column;align-items:flex-start}.desk-item-art{height:96px;background:var(--studio-paper);border-radius:4px;position:relative;width:100%;overflow:hidden;display:grid;place-items:center;margin-bottom:14px;color:var(--muted);font-size:10px;letter-spacing:.15em}.desk-item-art .desk-lamp{position:static;width:60px;height:90px}.desk-item-art[data-item=oak]{background:#dbc6a7;color:#6f5234;background-image:repeating-linear-gradient(2deg,transparent 0,transparent 7px,#7d694219 8px)}.desk-item-art[data-item=slate]{background:#454c49;color:#dadccf}.desk-item-art[data-item=blueprint]{background-color:#244653;color:#c4e0e1;background-image:linear-gradient(#fff2 1px,transparent 1px),linear-gradient(90deg,#fff2 1px,transparent 1px);background-size:15px 15px}.desk-item-art[data-item=graph]{background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:15px 15px}.desk-item-art[data-item=dotted]{background-image:radial-gradient(var(--muted) 1px,transparent 1px);background-size:14px 14px}.desk-item-art[data-kind=paper] span{font-family:var(--display);font-size:22px;letter-spacing:0;transform:rotate(-5deg);color:var(--ink)}.little-pencil{width:95px;height:8px;background:#6d7664;transform:rotate(-20deg);border-top:2px solid #bec1a8;box-shadow:1px 3px 4px #0002}.desk-item-art[data-item=brass] .little-pencil{background:#9e7c44;border-color:#d5ba7b}.desk-item-art[data-item=fountain] .little-pencil{background:#24384d;height:10px;border-color:#8f9da0}.desk-item>strong{font-size:12px;font-weight:600}.desk-item>p{font-size:10px;line-height:1.7;color:var(--muted);margin:8px 0 12px;flex:1}.desk-item>.btn{font-size:10px;width:100%;margin-top:auto}.studio-collection{margin-top:30px!important}.studio-collection .section-title p{max-width:620px;line-height:1.8}.collection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:20px}.collection-card{border:1px solid var(--line);padding:22px;border-radius:5px;background:var(--bg)}.collection-card h3{font-family:var(--display);font-size:24px;margin:10px 0 12px}.collection-card p{font-size:11px;color:var(--muted);line-height:1.8}.collection-card ul{list-style:none;padding:15px 0;margin:12px 0;border-block:1px solid var(--line);font-size:11px;line-height:2.2}.collection-card small{font-size:10px;color:var(--muted);display:block}.collection-card .text-btn{font-size:10px;margin-top:14px}.milestone-covers{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:25px}.milestone-covers>article{display:flex;gap:25px;align-items:center}.milestone-covers .cover-preview{width:125px}.milestone-covers h3{font-family:var(--display);font-size:26px}.milestone-covers p{font-size:11px;color:var(--muted);margin:12px 0;line-height:1.8}.milestone-covers strong{display:block;font-size:11px;font-weight:500}.milestone-covers .btn{margin-top:16px}.offline-intro{display:grid;grid-template-columns:1fr 1fr;gap:40px}.offline-intro>div+div{padding-left:35px;border-left:1px solid var(--line)}.offline-intro h2{margin:10px 0 16px}.offline-intro p{font-size:12px;color:var(--muted);line-height:1.8}.offline-intro form{margin-top:25px;display:flex;flex-direction:column;gap:18px;align-items:flex-start}.offline-intro label{display:block;font-size:11px;width:100%}.offline-intro label select{width:100%;margin-top:7px}.file-import{margin:25px 0;font-size:12px!important;font-weight:500}.file-import input{display:block;width:100%;font-size:11px;margin-top:12px}.offline-intro+.panel>p{font-size:12px;color:var(--muted);line-height:1.8}
@media(min-width:1450px){.personal-desk{height:465px}.desk-notebook{left:11%;top:35px}.desk-notebook .cover-preview-large{width:240px}.daily-note{right:11%;top:36px;width:280px}.review-stack{right:14%;bottom:41px}.desk-ruler{left:7%;bottom:36px;width:284px}.desk-pencil{left:46%;top:51px}.desk-ink{left:46%;bottom:30px}.desk-lamp{right:38%;top:42px}}
@media(max-width:1190px){.topic-grid,.lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.desk-notebook{left:6%;top:41px}.desk-notebook .cover-preview-large{width:195px}.daily-note{right:6%;width:230px}.review-stack{right:7%;width:222px}.desk-ruler{width:225px}.desk-pencil{left:45%;height:192px;top:56px}.desk-ink{left:42%;bottom:27px}.personal-desk .desk-lamp{width:96px;height:144px;right:35%;top:130px;opacity:.85}.desk-next>button{padding:19px 18px}.desk-next strong{font-size:20px}.desk-next .eyebrow{font-size:7px}.desk-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.collection-grid{gap:12px}.collection-card{padding:17px}.mastery-layout{grid-template-columns:195px 1fr;gap:24px}.mastery-topics{padding:8px}.mastery-topics button{font-size:11px;padding:10px 8px}.milestone-covers>article{gap:16px}.milestone-covers .cover-preview{width:95px}.command-trigger span{display:none}}
@media(max-width:980px){.mastery-layout{grid-template-columns:180px 1fr;gap:20px}.mastery-topics button{font-size:10px}.insight-grid{grid-template-columns:minmax(0,1fr)}.insight-grid .panel{margin-bottom:0}.insight-grid{margin-bottom:20px}.personal-records{grid-template-columns:repeat(2,1fr);row-gap:23px}.personal-records>div:nth-child(2){border-right:0}.personal-records strong{font-size:30px}.milestone-covers{grid-template-columns:1fr;gap:30px}.milestone-covers .cover-preview{width:120px}.collection-grid{grid-template-columns:1fr}.desk-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.offline-intro{grid-template-columns:1fr;gap:30px}.offline-intro>div+div{border-left:0;border-top:1px solid var(--line);padding:30px 0 0}.welcome-strip{padding:16px;gap:16px}.welcome-strip .btn{font-size:11px;padding:9px 13px}.weekly-note{align-items:flex-start}.weekly-note .text-btn{margin-top:15px}.desk-next p{font-size:10px}}
@media(max-width:850px){.personal-desk{height:424px}.desk-notebook .cover-preview-large{width:210px}.desk-pencil{left:43%}.desk-ink{left:40%}.daily-note{right:7%;width:245px}.review-stack{right:9%}.mastery-layout{grid-template-columns:195px 1fr}.mastery-topics button{font-size:11px}.topbar-ink{font-size:11px}.command-trigger kbd{display:none}.command-trigger{border:0;background:transparent;padding:6px}}
@media(max-width:650px){.topbar-ink small{font-size:7px;display:block;line-height:1.1}.topbar-ink{font-size:12px;line-height:1.1;padding-inline:3px}.page-heading h1,.studio-heading h1{font-size:35px}.studio-heading p{font-size:12px}.studio-heading{margin-bottom:18px}.desk-topline{font-size:9px;gap:10px}.desk-topline .text-btn{font-size:9px}.personal-desk{height:484px;border-radius:5px}.desk-notebook{left:6%;top:27px}.desk-notebook .cover-preview-large{width:180px}.desk-notebook .cover-title{font-size:17px}.object-caption{font-size:9px;padding:7px;bottom:12px;left:9px;right:9px}.object-caption>span{font-size:13px}.daily-note{right:5%;width:184px;top:283px;padding:15px 16px 13px;gap:5px}.daily-note .eyebrow{font-size:7px}.daily-note>strong{font-size:29px}.daily-note>span:not(.eyebrow):not(.note-progress){font-size:10px;line-height:1.5}.daily-note>b{font-size:10px}.daily-note>small{font-size:8px}.review-stack{width:124px;right:6%;top:62px;bottom:auto;min-height:130px;padding:12px;display:block}.review-stack b{font-size:32px;display:block}.review-stack>span:not(.stack-lines){display:block;font-size:10px;line-height:1.35;max-width:90px}.review-stack small{font-size:9px;display:block;line-height:1.4}.desk-ruler{left:15px;bottom:38px;width:139px;height:35px;transform:rotate(1.5deg)}.desk-ruler span{font-size:6px;letter-spacing:.08em}.desk-pencil{left:auto;right:20%;top:209px;width:12px;height:88px;transform:rotate(68deg)}.desk-pencil span{font-size:5px;letter-spacing:.09em;top:0}.desk-pencil:before{bottom:-14px;height:15px}.desk-pencil:after{bottom:-16px;left:-1px}.desk-ink{left:13%;bottom:94px}.ink-bottle{height:57px;width:61px;font-size:20px;border-width:4px}.ink-cap{width:43px;height:10px}.ink-bottle small{font-size:5px}.desk-seal{width:30px;height:30px;font-size:22px}.desk-next{grid-template-columns:1fr;margin-top:21px}.desk-next>button{padding:18px 21px;border-right:0;border-bottom:1px solid var(--line);gap:6px}.desk-next>button:last-child{border-bottom:0}.desk-next strong{font-size:22px}.desk-next p{font-size:11px;max-width:none}.desk-next .eyebrow{font-size:8px}.next-arrow{right:19px;top:20px}.welcome-strip{display:block}.welcome-strip .btn{margin-top:12px}.weekly-note{display:block;padding-top:4px}.weekly-note h2{font-size:26px}.weekly-note .text-btn{display:block;margin-top:17px;font-size:12px}.topic-grid,.lesson-grid{grid-template-columns:1fr;gap:15px}.topic-card{padding:22px}.topic-card .topic-top{margin-bottom:7px}.topic-card .topic-symbol{height:32px;margin-bottom:12px}.topic-card .topic-description{font-size:12px;min-height:0;margin-bottom:14px}.topic-card h3{font-size:21px}.topic-card .progress-label{font-size:10px}.topic-meta{font-size:10px}.topic-grid .topic-card h3{min-height:0}.topic-actions .btn{font-size:12px}.topic-actions .text-btn{font-size:11px}.topic-test-action{padding-top:14px}.topic-test-action .text-btn,.topic-test-action>span{font-size:11px}.mastery-legend{gap:12px 17px;font-size:10px;margin-bottom:18px}.mastery-layout{display:block}.mastery-topics{position:static;flex-direction:row;overflow-x:auto;gap:6px;padding:9px;margin-bottom:23px;max-width:100%;scrollbar-width:thin}.mastery-topics button{white-space:nowrap;flex-shrink:0;padding:8px 10px;font-size:11px}.mastery-topics small{font-size:9px}.route-heading h2{font-size:28px}.skill-node{gap:14px;grid-template-columns:38px 1fr;padding:22px 0}.node-number{width:36px;height:36px;font-size:16px}.skill-node:before{left:17px;top:58px}.skill-node h3{font-size:19px}.skill-node p{font-size:11px}.skill-node .button-row{gap:9px}.skill-node .button-row>.small{display:block;width:100%}.coach-summary{display:block}.coach-summary .button-row{margin-top:20px}.mistake-grid{grid-template-columns:1fr}.personal-records>div{padding:0 16px}.personal-records span{font-size:9px}.weekly-stats{gap:26px}.weekly-stats strong{font-size:34px}.insight-grid .panel{padding:22px}.insight-grid .panel h2{font-size:25px}.confidence-stat{grid-template-columns:87px 1fr 32px}.lesson-card{padding:25px}.lesson-card h2{font-size:29px}.lesson-card p{font-size:13px}.studio-dialog{width:calc(100vw - 18px);max-width:calc(100vw - 18px);max-height:94dvh;border-radius:7px}.studio-dialog .dialog-header{padding:15px 18px}.studio-dialog .dialog-header h2{font-size:19px}.studio-dialog-body{padding:22px 20px}.studio-dialog-body .display-title{font-size:29px}.setup-topics{grid-template-columns:1fr;gap:12px}.setup-goals{grid-template-columns:1fr}.setup-goals label{padding:12px}.studio-dialog .field-input{font-size:16px}.command-dialog .studio-dialog-body{padding:13px}.command-input input{font-size:14px!important}.command-dialog .small{padding-left:10px;font-size:9px}.command-result{padding:12px 10px}.command-result>strong{font-size:12px}.lesson-intro{font-size:21px!important}.lesson-stepper li{grid-template-columns:23px 1fr;gap:12px;padding-block:18px}.lesson-equation math{font-size:22px}.lesson-check{padding:17px}.lesson-check .button-row{gap:15px}.lesson-check .btn{font-size:11px}.lesson-finish{flex-wrap:wrap;gap:17px}.lesson-check .text-btn{font-size:11px}.daily-results{grid-template-columns:1fr}.balance-controls{grid-template-columns:1fr}.balance-equation math{font-size:23px}.confidence-picker{margin-top:20px;gap:7px}.confidence-picker span:not(legend span){padding:11px;font-size:10px}.confidence-picker legend{font-size:10px}.feedback-panel{padding:17px}.solution-math math{font-size:20px}.mistake-callout{padding:15px}.mistake-callout h4{font-size:22px}.mistake-callout p{font-size:11px!important}.mistake-callout .eyebrow{font-size:7px}.graph-builder{padding:15px}.graph-builder summary{font-size:11px}.graph-builder .field-input{font-size:16px}.endpoint-controls{grid-template-columns:1fr;gap:18px}.scratch-body{padding:16px}.scratch-toolbar{gap:7px}.scratch-toolbar .btn{font-size:10px;min-height:35px;padding:7px 9px}.scratch-canvas{min-height:210px;object-fit:contain}.scratch-label textarea{font-size:16px}.preset-list article{align-items:flex-start;flex-direction:column;gap:11px}.preset-list .button-row{gap:18px}.saved-deck-panel .section-title{align-items:flex-start;flex-direction:column}.count-grid{grid-template-columns:1fr;gap:11px}.count-grid input{font-size:16px}.deck-naming .field-input{font-size:16px}.desk-shop-grid{grid-template-columns:1fr 1fr;gap:11px}.desk-item{padding:11px}.desk-item-art{height:82px;margin-bottom:12px}.desk-item>strong{font-size:12px}.desk-item>p{font-size:10px}.desk-item .btn{font-size:10px;padding-inline:8px}.studio-collection .section-title{align-items:flex-start;gap:12px}.studio-collection .ink-chip{font-size:20px;padding:5px 0}.milestone-covers .cover-preview{width:111px}.milestone-covers h3{font-size:23px}.collection-card h3{font-size:25px}.offline-intro select{font-size:16px}.offline-intro .file-import input{font-size:12px}.numberline-preview{overflow-x:auto}.leaderboard{font-size:11px}}
@media(max-width:380px){.personal-desk{height:492px}.desk-notebook .cover-preview-large{width:164px}.review-stack{width:114px;right:5%;top:53px}.daily-note{width:179px;top:283px;right:5%}.desk-ruler{width:118px;font-size:6px}.desk-ink{left:10%}.desk-pencil{right:22%;top:192px}.page-heading h1{font-size:33px}.desk-shop-grid{gap:8px}.desk-item{padding:10px}}
@media(prefers-reduced-motion:reduce){.desk-notebook,.daily-note,.geo-piece{transition:none}.ink-increased,.trace-outside .shape{animation:none}.trace-outside .shape{stroke-dasharray:none}}
[data-reduce-motion=true] .desk-notebook,[data-reduce-motion=true] .daily-note,[data-reduce-motion=true] .geo-piece{transition:none}[data-reduce-motion=true] .ink-increased,[data-reduce-motion=true] .trace-outside .shape{animation:none}[data-reduce-motion=true] .trace-outside .shape{stroke-dasharray:none}
.coach-overview{display:grid;grid-template-columns:repeat(3,1fr);padding:22px 0;border-block:1px solid var(--line);margin-bottom:25px}.coach-overview>div{padding:0 22px;border-right:1px solid var(--line)}.coach-overview>div:first-child{padding-left:0}.coach-overview>div:last-child{border:0}.coach-overview b{display:block;font-family:var(--display);font-size:35px;font-weight:400}.coach-overview span{font-size:11px;color:var(--muted)}.mistake-row{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:18px;border-top:1px solid var(--line);padding:22px 0}.mistake-count{font-family:var(--display);font-size:30px;color:var(--muted)}.mistake-row h3{font-family:var(--display);font-size:22px;margin-bottom:8px}.mistake-row p{font-size:11px;color:var(--muted)}.mistake-row small{font-size:9px;color:var(--muted)}.return-row{display:flex;gap:20px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:15px 0}.return-row:first-of-type{margin-top:20px}.return-row strong{font-size:13px;font-weight:500;display:block}.return-row small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.return-row .text-btn{font-size:11px;white-space:nowrap}.large-serif{font-family:var(--display);font-size:32px;display:block;margin-bottom:15px}.geo-piece-buttons{display:flex;gap:7px;flex-wrap:wrap}.geo-piece-buttons button{font-size:11px;padding:7px 11px;border:1px solid var(--line);border-radius:4px;background:var(--panel)}.geo-piece-buttons button.selected{background:var(--accent-soft);border-color:var(--accent)}.geo-explain{padding:12px;border-left:2px solid var(--accent);background:var(--panel);font-size:12px!important}.geometry-tools{width:100%;text-align:left}.geometry-tools>p:last-child{font-size:10px}.geometry-tools .eyebrow{font-size:9px}.geometry-tools [data-trace-boundary]{margin-bottom:4px}.graph-builder .field-input[type=number]{min-height:38px}
@media(max-width:650px){.coach-overview{padding:18px 0}.coach-overview>div{padding:0 12px}.coach-overview b{font-size:29px}.coach-overview span{font-size:9px}.mistake-row{grid-template-columns:28px 1fr;gap:12px}.mistake-row .btn{grid-column:2;justify-self:start}.mistake-row h3{font-size:22px}.return-row strong{font-size:12px}.return-row{gap:13px}.geometry-tools{padding:14px}.geo-piece-buttons button{font-size:10px;min-height:36px}.geometry-tools .geo-explain{font-size:11px!important}.geometry-tools .eyebrow{font-size:8px}}

/* Perimeter mode highlights only the original external outline, never the learning partitions. */
.trace-outside .geo-piece,.trace-outside .geo-piece.selected{stroke:transparent!important}.trace-outside .shape{stroke:var(--accent)!important;stroke-width:4px!important;stroke-dasharray:none!important;animation:none!important}.trace-outside .geo-pieces{opacity:.55}
.quality-table{width:100%;border-collapse:collapse;font-size:12px}.quality-table th,.quality-table td{text-align:left;padding:13px 8px;border-bottom:1px solid var(--line)}.quality-table th{font-weight:500;color:var(--muted)}.quality-table td:not(:first-child){font-variant-numeric:tabular-nums}.quality-table-wrap{overflow:auto}.quality-summary{display:flex;gap:15px;align-items:start;justify-content:space-between}.quality-summary p{max-width:650px}.quality-summary .btn{white-space:nowrap}

.personal-best-note{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:0 0 14px;margin-bottom:15px;border-bottom:1px solid var(--line)}.personal-best-note span{font-size:8px;letter-spacing:.15em;color:var(--accent)}.personal-best-note strong{font-family:var(--display);font-weight:400;font-size:18px}.personal-best-note small{font-size:10px;color:var(--muted)}

/* Keep owned desk objects visible at small widths without crowding controls. */
@media(max-width:650px){.personal-desk .desk-lamp{width:61px;height:87px;right:5%;top:194px;opacity:.92}}

/* retained from clarity.css */
/* Version 4.1 — readable, consistent navigation and a question-first workspace.
   This layer leaves the original learning, grading and notebook artwork intact. */
:root{--muted:#626c63;--control-radius:7px;font-size:16px}
:root[data-theme=dark]{--muted:#b4beb3}
[hidden]{display:none!important}
body{font-size:16px;line-height:1.6}
button,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.btn{font-size:14px;min-height:43px;border-radius:var(--control-radius);gap:9px}
.btn.small{font-size:13px;min-height:40px;padding:9px 12px}
.icon-btn{min-width:40px;min-height:40px}
.text-btn{font-size:14px;line-height:1.5;min-height:36px;display:inline-flex;align-items:center;gap:7px}
.small,.notice-inline,.settings-warning{font-size:13px;line-height:1.65}
.eyebrow{font-size:11px;letter-spacing:.11em;line-height:1.5}
.field-input,input[type=search],select,textarea{font-size:16px;line-height:1.45}
.field-input,select{min-height:44px}
.check-label{font-size:15px;line-height:1.5}
input[type=checkbox],input[type=radio]{width:18px;height:18px;flex-shrink:0;accent-color:var(--accent)}
.page-heading{align-items:flex-start;gap:20px;margin-bottom:28px}
.page-heading h1,.studio-heading h1{font-size:42px;line-height:1.17;letter-spacing:-.035em}
.page-heading p,.studio-heading p{font-size:16px;line-height:1.65;max-width:760px}
.section-title{gap:18px;align-items:center}
.section-title h2{font-size:22px;line-height:1.4}
.section-title p{font-size:14px;margin-top:4px}
.panel{padding:26px}
.panel p{font-size:15px;line-height:1.7}
.panel p.small{font-size:13px}
.panel h3{font-size:18px}
.search-box{min-height:44px;min-width:0;border-radius:7px}
.search-box input{min-width:0;width:100%;font-size:15px}
/* Clear, permanent groups rather than a long undifferentiated list. */
.command-trigger{font-size:13px;min-height:40px;border-radius:7px;padding:8px 11px;gap:10px}
.command-trigger kbd{font-size:10px;white-space:nowrap}
.topbar-ink{font-size:15px;min-height:40px}
.topbar-ink small{font-size:10px}
.user-menu{min-height:42px;gap:8px;font-size:14px;max-width:185px}
.user-menu>span:not(.avatar){max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quiet-toggle{width:38px;height:38px}
/* Mathematical category illustrations remain legible at every size. */
.topic-glyph{display:block;width:100px;height:60px;color:var(--accent);flex-shrink:0;overflow:visible}
.topic-glyph text{font-family:"Cambria Math","Times New Roman",serif;fill:currentColor;stroke:none;font-style:normal}
.topic-glyph text.glyph-words{font-family:Arial,Helvetica,sans-serif}
.topic-glyph .glyph-guide{stroke:var(--muted);stroke-width:1;opacity:.65}
.topic-glyph .glyph-heavy{stroke-width:3}
.topic-glyph .glyph-filled{fill:currentColor}
.topic-glyph.compact{width:44px;height:29px}
.topic-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}
.topic-filters button{padding:9px 14px;min-height:41px;border:1px solid var(--line);background:var(--panel);font-size:14px;border-radius:7px;line-height:1.4}
.topic-filters button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.topic-filters button:hover:not([aria-pressed=true]){background:var(--accent-soft)}
.topic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:20px}
.topic-card{padding:24px;border-radius:8px;min-width:0}
.topic-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.topic-card .topic-symbol{position:static;float:none;opacity:1;margin:0;width:102px;height:60px;min-height:0;color:var(--accent)}
.topic-card h3,.topic-grid .topic-card h3{font-size:22px;line-height:1.3;max-width:none;min-height:0;margin:0 0 12px}
.topic-description{font-size:15px;line-height:1.65;min-height:0!important;margin:0 0 15px}
.topic-meta{font-size:12.5px;gap:8px;line-height:1.6;flex-wrap:wrap;margin-bottom:0}
.topic-card .pill{font-size:11px;white-space:nowrap;padding:5px 7px;gap:5px}
.topic-card .pill .icon{width:16px;height:16px}
.topic-progress{margin-top:auto;padding-top:22px}
.progress-label{font-size:12.5px;gap:8px;flex-wrap:wrap}
.progress-label strong{font-size:13px}
.progress-track{height:5px;margin-top:9px}
.topic-actions{margin-top:18px;gap:16px;flex-direction:row;justify-content:space-between;flex-wrap:wrap}
.topic-actions .btn{padding:10px 17px;min-height:42px}
.topic-test-action{margin-top:9px}
.topic-test-action .text-btn{font-size:13px}
.lesson-card-symbol{margin:0 0 16px}
.lesson-card p{font-size:15px;line-height:1.7}
.lesson-card small{font-size:13px}
.lesson-card h2{line-height:1.3}
.mastery-topics button{font-size:14px;display:flex;gap:9px;align-items:center;line-height:1.35}
.mastery-topics .topic-glyph{width:33px;height:24px}
.mastery-topics button>span{flex:1;min-width:0}
.mastery-topics small{font-size:12px}
.skill-node h3{font-size:20px;line-height:1.35}
.skill-node p,.route-heading p{font-size:14px}
/* Keep playful desk objects; add obvious, equivalent text controls. */
.desk-start-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:-4px 0 22px}
.desk-topline{font-size:13px}
.object-caption{font-size:14px;padding:12px 14px}
.daily-note>span:not(.eyebrow):not(.note-progress){font-size:14px;line-height:1.5}
.daily-note>b{font-size:14px}
.daily-note>small{font-size:11px}
.review-stack>span:not(.stack-lines){font-size:14px}
.review-stack>small{font-size:12px}
.desk-next button{padding:22px}
.desk-next p{font-size:14px;line-height:1.6}
.desk-next strong{font-size:24px}
.desk-week>p,.welcome-strip p{font-size:14px}
/* Question controls live in one predictable place, above the problem. */
.workspace-topic-title{display:flex;align-items:center;gap:12px;line-height:1.3!important;max-width:none!important;font-size:21px!important}
.workspace-topic-title .topic-glyph{width:46px;height:30px}
.workspace-topic-title>span{min-width:0}
.dialog-header .eyebrow{font-size:10px}
.question-tools{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:12px 28px;border-bottom:1px solid var(--line);background:var(--bg)}
.question-tools .btn{background:var(--panel);font-size:13px;min-height:39px}
.question-tool-note{margin-left:auto;font-size:12px;color:var(--muted)}
.dialog-header-right>.pill{display:none}
.problem-prompt{font-size:16px;line-height:1.75;margin-top:10px;margin-bottom:18px}
.problem-meta{font-size:12px;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.problem-meta .problem-level{margin-left:auto;font-weight:600;white-space:nowrap}
.main-expression{padding:16px 0 24px;min-height:90px;font-size:34px}
.main-expression math{font-size:34px}
.shape-givens{font-size:14px;line-height:1.7;padding:14px 16px;gap:8px 18px}
.diagram-caption{font-size:13px;line-height:1.65}
.diagram-expand{font-size:13px}
.answer-field>label{font-size:15px}
.math-editor .me-expression{font-size:28px;min-height:69px}
.me-surface{min-height:73px}
.me-controls .me-tool{min-height:36px;font-size:13px}
.me-hint{font-size:12px}
.choice{font-size:16px;line-height:1.6;min-height:75px;padding:16px;gap:12px}
.choice math{font-size:25px}
.choice.math-large math{font-size:24px}
.choice-box{width:26px;height:26px;min-width:26px;font-size:12px}
.choice-hint{font-size:14px}
.choice-grid{gap:12px}
.rail-section>p,.rail-bottom{font-size:13px;line-height:1.7}
.rail-section .eyebrow{font-size:10.5px}
.rail-tally small{font-size:12px}
.hint-rung{font-size:14px;line-height:1.4;min-height:44px}
.hint-box p,.hint-box{font-size:14px;line-height:1.7}
.rail-select{font-size:14px;min-height:42px}
.session-options summary{font-size:14px;font-weight:600;line-height:1.5;margin-bottom:14px}
.session-options:not([open]) summary{margin-bottom:0}
.confidence-picker legend{font-size:14px}
.confidence-picker label span{font-size:13px;padding:8px 12px;min-height:38px}.choice-reason p,.feedback-panel p{font-size:15px;line-height:1.75}
.solution summary{font-size:16px}
.step-why summary{font-size:13px}
.step-why p{font-size:14px}
.solution-math math{font-size:25px}
.problem-actions{padding-top:18px;gap:14px}
.keyboard-note{font-size:12px}
[data-large=true] .problem-prompt{font-size:19px}
[data-large=true] .math-editor .me-expression{font-size:32px}
[data-large=true] .choice{font-size:18px}
/* Scratchpad: independently scrolling reference and working areas. */
.studio-dialog.scratch-dialog{width:min(1450px,calc(100vw - 40px));max-width:calc(100vw - 40px);height:min(940px,94dvh);max-height:94dvh;padding:0;overflow:hidden}
.studio-dialog.scratch-dialog[open]{display:flex;flex-direction:column}
.scratch-header{flex-shrink:0;padding:17px 24px!important;min-height:80px}
.scratch-header h2{font-size:24px!important;margin:3px 0 0!important}
.scratch-header .btn{white-space:nowrap}
.scratch-workspace{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);flex:1;min-height:0}
.scratch-workspace.free-notes{grid-template-columns:1fr}
.scratch-question{min-width:0;overflow:auto;overscroll-behavior:contain;padding:25px;background:var(--bg);border-right:1px solid var(--line);scrollbar-width:thin}
.scratch-question-topic{display:flex;align-items:center;gap:12px;margin-bottom:23px}
.scratch-question-topic strong{font-size:14px;display:block;line-height:1.4}
.scratch-question-topic .pill{margin-left:auto;font-size:12px;white-space:nowrap}
.scratch-question h3{font-size:25px;line-height:1.3;margin-bottom:12px}
.scratch-question .problem-prompt{font-size:16px;line-height:1.75}
.scratch-expression{margin:22px 0;max-width:100%;overflow-x:auto}
.scratch-expression math{font-size:29px}
.scratch-diagram .geometry-diagram{width:100%;height:auto;max-height:none;margin:15px auto 10px}
.scratch-diagram .dim-label{font-size:18px}
.scratch-question .shape-givens{display:block;padding:14px;font-size:14px}
.scratch-question .shape-givens span+span{margin-top:8px}
.scratch-choices>p{font-size:13px;color:var(--muted);margin-bottom:10px}
.scratch-choice{display:flex;align-items:center;gap:13px;border-top:1px solid var(--line);padding:14px 0;font-size:15px;min-width:0}
.scratch-choice>b{display:grid;place-items:center;flex:0 0 26px;height:26px;border:1px solid var(--line);border-radius:4px;font-size:12px}
.scratch-choice>span{min-width:0;overflow-x:auto;max-width:100%}
.scratch-choice math{font-size:26px}
.scratch-question-note{font-size:13px;line-height:1.65;padding-top:20px;margin-top:20px;border-top:1px solid var(--line);color:var(--muted)}
.scratch-body{min-width:0;overflow:auto;overscroll-behavior:contain;padding:25px;background:var(--panel)}
.scratch-body-heading{display:flex;align-items:baseline;gap:15px;justify-content:space-between}
.scratch-body-heading h3{font-size:21px;margin:0}
.scratch-scroll-note{font-size:13px;line-height:1.6;color:var(--muted);margin:9px 0 18px}
.scratch-toolbar{gap:8px;margin-bottom:15px}
.scratch-toolbar .btn{font-size:13px;min-height:38px;padding:8px 10px;gap:6px}
.scratch-toolbar .icon{width:17px;height:17px}
.scratch-canvas{height:auto;min-height:0;width:100%;aspect-ratio:1000/520;object-fit:fill}
.scratch-label{font-size:15px;font-weight:600;margin-top:20px}
.scratch-label>span{font-weight:400;margin-left:6px}
.scratch-label textarea{font:16px/1.7 Arial,Helvetica,sans-serif;padding:14px;margin-top:9px}
.scratch-privacy{font-size:12px!important;line-height:1.65}
/* A library first, with focused create/edit dialogs rather than a giant form. */
.library-heading>.btn{flex-shrink:0;margin-top:12px}
.deck-resume-panel{display:flex;align-items:center;justify-content:space-between;gap:25px;background:var(--accent-soft);border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:7px;padding:22px 24px;margin-bottom:28px}
.deck-resume-label{display:flex;align-items:center;gap:16px;min-width:0}
.deck-resume-label>.icon{width:29px;height:29px;flex-shrink:0}
.deck-resume-label h2{font-size:20px;margin:4px 0;line-height:1.4;overflow-wrap:anywhere}
.deck-resume-label p{font-size:14px;margin:0}
.library-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:20px}
.library-toolbar>div{margin-right:auto}
.library-toolbar h2{font-size:22px;line-height:1.4;margin:0}
.library-toolbar h2 span{font-size:14px;font-weight:400;margin-left:9px;background:var(--accent-soft);padding:2px 9px;border-radius:15px}
.library-toolbar p{font-size:13px;margin:4px 0 0;color:var(--muted)}
.library-toolbar .search-box{width:240px;flex-shrink:1}
.saved-deck-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.saved-deck-card{border:1px solid var(--line);background:var(--panel);padding:23px;border-radius:8px;min-width:0;display:flex;flex-direction:column}
.saved-deck-card-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}
.deck-card-mark{display:grid;place-items:center;width:40px;height:40px;background:var(--accent-soft);color:var(--accent);border-radius:6px}
.deck-card-mark>.icon{width:24px;height:24px}
.saved-deck-card .pill{font-size:12px}
.saved-deck-card h2{font-size:22px;line-height:1.4;margin:0 0 9px;overflow-wrap:anywhere}
.saved-deck-metadata{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted);line-height:1.5;margin:0 0 16px}
.saved-deck-metadata strong{font-weight:500;color:var(--ink)}
.saved-deck-topics{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 20px;align-items:flex-start}
.saved-deck-topics>span{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.4;background:var(--bg);padding:5px 9px;border:1px solid var(--line);border-radius:5px}
.saved-deck-topics .topic-glyph{width:26px;height:19px}
.saved-deck-topics details{width:100%;font-size:13px;line-height:1.7;color:var(--muted)}
.saved-deck-primary{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto;margin-bottom:17px}
.saved-deck-primary .btn{font-size:14px;gap:8px;min-height:42px}
.saved-deck-secondary{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--line)}
.saved-deck-secondary .text-btn{font-size:13px;gap:7px}
.saved-deck-secondary .icon{width:16px;height:16px}
.saved-deck-secondary .danger-link{margin-left:auto}
.danger-link{color:var(--wrong)}
.deck-empty{padding:40px 30px 44px;display:flex;align-items:center;flex-direction:column;text-align:center;border:1px dashed var(--line);border-radius:8px;background:var(--panel)}
.deck-empty>.icon{width:37px;height:37px;color:var(--accent);margin-bottom:16px}
.deck-empty h2{font-family:var(--display);font-size:29px;line-height:1.35;margin:0 0 10px}
.deck-empty p{max-width:480px;font-size:15px;color:var(--muted);line-height:1.7;margin:0 0 22px}
.deck-library-note{display:flex;gap:12px;align-items:flex-start;margin:24px 0;padding:18px 20px;background:var(--accent-soft);border-radius:6px}
.deck-library-note>.icon{flex-shrink:0;margin-top:2px}
.deck-library-note p{font-size:13px;line-height:1.65;margin:0}
.deck-recent-history summary{font-weight:600;font-size:16px}
.deck-recent-history summary span{font-weight:400;margin-left:8px;color:var(--muted)}
.studio-dialog.deck-editor-dialog{width:min(1000px,calc(100vw - 40px));max-height:94dvh}
.deck-editor-dialog .studio-dialog-body{padding:0}
.deck-editor-form{padding:0}
.deck-editor-intro{padding:22px 28px 24px;border-bottom:1px solid var(--line)}
.deck-editor-intro>p{font-size:14px;line-height:1.65;color:var(--muted);margin:0 0 18px}
.deck-name-label{font-size:15px;font-weight:600;display:block}
.deck-name-label input{margin-top:8px;width:100%}
.deck-builder-section{padding:23px 28px;border-bottom:1px solid var(--line)}
.deck-builder-section h3{font-size:19px;line-height:1.4;display:flex;align-items:center;gap:10px;margin:0 0 6px}
.deck-builder-section h3>span{display:grid;place-items:center;width:25px;height:25px;border:1px solid var(--line);border-radius:50%;font-size:12px;font-weight:400}
.deck-builder-section .section-title{display:flex;flex-direction:row;align-items:center;gap:14px;margin-bottom:18px;flex-wrap:wrap}
.deck-builder-section .section-title>div{margin-right:auto}
.deck-builder-section .section-title p{font-size:12px;margin:0 0 0 35px;color:var(--muted)}
.deck-builder-section .section-title .search-box{width:220px;flex-shrink:1}
.deck-editor-form .deck-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:330px;overflow-y:auto;scrollbar-width:thin;padding:2px 4px 2px 2px;overscroll-behavior:contain;border:0;margin:0}
.deck-editor-form .deck-topic{padding:12px 14px;gap:10px;align-items:center;background:var(--panel);min-width:0}
.deck-editor-form .deck-topic:has(:checked){background:var(--accent-soft);border-color:var(--accent)}
.deck-topic>span{font-size:14px;line-height:1.4;min-width:0}
.deck-topic small{font-size:11.5px;display:block;margin-top:5px;line-height:1.4}
.deck-topic .topic-glyph{width:38px;height:28px}
.deck-editor-settings{display:grid;grid-template-columns:minmax(0,1.5fr) 1fr .8fr;gap:20px;margin-top:19px;align-items:start}
.deck-editor-settings fieldset{padding:0;border:0;margin:0}
.deck-editor-settings legend,.deck-editor-settings>label{font-size:14px;font-weight:600;line-height:1.5}
.deck-editor-settings .field-input{margin-top:9px;width:100%}
.deck-editor-settings small{font-size:12px;font-weight:400;line-height:1.5;margin-top:7px;display:block}
.deck-editor-settings fieldset p{margin:10px 0 0;font-size:12px}
.level-options{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.level-options .level-check{padding:7px;gap:6px;min-width:37px;min-height:40px;background:var(--bg);border:1px solid var(--line);border-radius:5px;position:relative;display:flex;align-items:center;justify-content:center}
.level-options .level-check input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}
.level-options .level-check:has(:checked){background:var(--accent);color:var(--panel);border-color:var(--accent)}
.level-options .level-check:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.deck-exact-counts{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}
.deck-exact-counts summary{font-size:14px;font-weight:600;line-height:1.5}
.deck-exact-counts summary>span{font-size:12px;font-weight:400;margin-left:10px;color:var(--muted)}
.deck-exact-counts p{font-size:13px;line-height:1.6;margin:13px 0}
.deck-exact-counts .count-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:270px;overflow:auto;gap:10px 24px}
.count-grid label{font-size:13px;line-height:1.5;min-width:0}
.count-grid input{width:75px}
.deck-editor-form>.form-error{padding:0 28px}
.deck-editor-footer{position:sticky;bottom:0;padding:16px 28px;background:var(--panel);border-top:1px solid var(--line);z-index:3;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.deck-editor-footer>p{font-size:12.5px;line-height:1.5;color:var(--muted);margin:0}
.deck-editor-footer .button-row{gap:9px}
.deck-editor-footer .btn{white-space:nowrap}
.rename-deck-dialog,.delete-deck-dialog{max-width:560px}
.rename-deck-dialog label{font-size:15px;font-weight:600;display:block;margin-top:22px}
.rename-deck-dialog input{margin-top:8px;width:100%}
.rename-deck-dialog .button-row,.delete-deck-dialog .button-row{justify-content:flex-end;margin-top:22px}
/* Reference and auxiliary pages share the same readable type scale. */
.settings-grid label{font-size:14px}
.settings-grid select{font-size:16px}
.sound-note,.experience-settings>p{font-size:13px;line-height:1.7}
.formula-intro p,.formula-row p,.reference-notes p,.rules-sheet p{font-size:15px;line-height:1.7}
.reference-tabs button{font-size:14px;min-height:41px;padding:8px 12px}
.stat-label{font-size:13px}
.stat-value span{font-size:13px}
.command-result strong{font-size:15px}
.command-result small{font-size:13px}
.command-input input{font-size:17px}
.catalog-copy strong{font-size:15px}
.catalog-copy p{font-size:13px}
.catalog-item.cover-shop-card .btn{font-size:13px}
/* Responsive layout — nav moves out of the way before type becomes cramped. */
@media(max-width:1180px){.command-trigger kbd{display:none}
 .deck-editor-settings{grid-template-columns:1.2fr 1fr}.deck-editor-settings>label:last-child{grid-column:2}
 .deck-editor-settings fieldset{grid-row:span 2}
 .saved-deck-primary .btn{padding:9px 12px}
}
@media(max-width:980px){
 .nav-is-open{overflow:hidden}
 .command-trigger{width:40px;height:40px;justify-content:center;padding:0}
 .daily-note>span:not(.eyebrow):not(.note-progress){font-size:13px}
 .scratch-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media(max-width:760px){
 .hint-ladder{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .question-tools{padding:11px 24px;gap:8px}.question-tool-note{font-size:11px}
 .question-tools .btn{font-size:12px;padding:8px 10px}.question-tools .icon{width:16px;height:16px}.workspace-topic-title{font-size:19px!important;gap:9px}
 .problem-meta .problem-level{font-size:11px}.problem-meta{font-size:11px}
 .studio-dialog.scratch-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0}
 .scratch-header{min-height:73px;padding:14px 18px!important;gap:12px}
 .scratch-header .eyebrow{font-size:9px}.scratch-header h2{font-size:21px!important}
 .scratch-workspace{display:flex;flex-direction:column;min-height:0}
 .scratch-question{flex:0 0 44%;min-height:140px;padding:18px 21px;border-right:0;border-bottom:2px solid var(--line);background:var(--bg)}
 .scratch-question-topic{margin-bottom:16px}.scratch-question h3{font-size:23px}
 .scratch-question .problem-prompt{font-size:15px;margin:8px 0 14px}
 .scratch-expression{margin:16px 0}.scratch-expression math{font-size:27px}
 .scratch-body{flex:1;min-height:0;padding:18px 21px}.scratch-body-heading h3{font-size:18px}
 .scratch-scroll-note{font-size:12px;margin:6px 0 12px}.scratch-toolbar{gap:7px}
 .scratch-toolbar .btn{font-size:12px;padding:7px 9px;min-height:36px}
 .scratch-label{margin-top:15px}.scratch-label textarea{font-size:16px}
 .scratch-workspace.free-notes .scratch-body{flex:1}
 .deck-resume-panel{align-items:flex-start;flex-direction:column;gap:15px}
 .saved-deck-grid{grid-template-columns:1fr}.saved-deck-topics{max-width:100%}
 .library-toolbar{gap:12px}.library-toolbar>div{width:100%;margin-bottom:2px}.library-toolbar .search-box{flex:1;min-width:140px;width:auto}
 .deck-editor-dialog .studio-dialog-body{padding:0}.deck-editor-intro,.deck-builder-section{padding:20px}
 .deck-editor-footer{padding:14px 20px;gap:10px}.deck-editor-footer .button-row{margin-left:auto}
 .deck-builder-section .section-title .search-box{width:180px}
 .deck-editor-form .deck-topic{padding:11px;gap:8px}.deck-topic .topic-glyph{width:30px;height:22px}
 .deck-topic>span{font-size:13px}.deck-topic small{font-size:11px}.level-options{gap:6px}
 .desk-next strong{font-size:22px}.desk-next p{font-size:13px}
}
@media(max-width:600px){.page-heading{flex-wrap:wrap;margin-bottom:24px;gap:14px}
 .page-heading h1,.studio-heading h1{font-size:35px;line-height:1.2}.page-heading p,.studio-heading p{font-size:15px;line-height:1.65}
 .page-heading .eyebrow{font-size:10px}.page-heading>.btn{font-size:13px;margin-top:0}.command-trigger{width:36px;height:36px;min-height:36px}
 .topbar-ink{font-size:14px;gap:3px;white-space:nowrap}.topbar-ink small{font-size:9px}
 .user-menu{padding:0;min-width:34px}.user-menu>span:not(.avatar){display:none}
 .topic-filters{gap:7px;margin-bottom:18px}.topic-filters button{font-size:12px;padding:8px 11px;min-height:37px}
 .topic-grid{grid-template-columns:1fr;gap:17px}.topic-card{padding:22px}
 .topic-card h3{font-size:22px}.topic-description{font-size:15px;margin-bottom:16px}
 .topic-progress{padding-top:20px}.topic-actions{gap:12px}.topic-actions .btn{padding:10px 18px}
 .topic-top{margin-bottom:16px}.section-title{flex-direction:column;align-items:flex-start}
 .section-title h2{font-size:20px}.section-title .search-box{width:100%}
 .topic-card .topic-symbol{width:100px;height:60px}
 .panel{padding:21px}.panel p{font-size:14px}.panel .small{font-size:12.5px}
 .desk-start-actions{gap:10px}.desk-start-actions .btn{font-size:13px;padding:10px 13px}.desk-start-actions .text-btn{font-size:13px}
 .desk-next button{padding:20px}.desk-next p{font-size:14px}
 .daily-note>span:not(.eyebrow):not(.note-progress){font-size:13px}.daily-note>b{font-size:13px}
 .workspace-topic-title{font-size:17px!important;gap:7px;margin-top:4px!important}.workspace-topic-title .topic-glyph{width:35px;height:26px}
 .dialog-header-right{gap:4px;flex-wrap:wrap;max-width:136px}
 .dialog-header-right .icon-btn{min-height:36px;min-width:33px}.dialog-header .eyebrow{font-size:9px}
 .dialog-header-right .quiet-toggle{display:none}.fullscreen-toggle{min-height:33px!important;font-size:11px!important;padding:5px 8px!important}
 .question-tools{padding:10px 16px;gap:7px}.question-tools .btn{font-size:12px;padding:8px 9px;min-height:38px;gap:6px}
 .question-tool-note{width:100%;margin:0;font-size:11px;line-height:1.3}.problem-prompt{font-size:16px;line-height:1.7}
 .problem-meta{margin-bottom:14px;gap:8px}.problem-meta>span:nth-child(2){max-width:60%}
 .main-expression{min-height:85px;margin-bottom:8px}.main-expression math{font-size:31px}
 .shape-givens{font-size:13px;line-height:1.7;padding:12px 14px}.diagram-caption{font-size:12px}
 .choice-grid{grid-template-columns:1fr}.choice{font-size:16px;min-height:68px;padding:15px}.choice math{font-size:26px}
 .answer-fields{gap:20px}.math-editor .me-expression{font-size:28px;min-height:68px}.answer-field>label{font-size:15px}
 .me-helper .me-hint{font-size:11.5px}.me-controls .me-tool{font-size:12px;min-height:36px}
 .rail-section>p{font-size:13px}.rail-bottom{font-size:12px}.confidence-picker{margin-top:23px}
 .confidence-picker label span{font-size:12px;padding:8px 9px}.confidence-picker legend{font-size:13px}
 .problem-actions .btn{font-size:15px}.choice-reason p{font-size:15px}
 .scratch-header .btn{font-size:12px;padding:8px 10px;gap:5px}.scratch-header h2{max-width:none!important}
 .scratch-question-topic .eyebrow{font-size:9px}.scratch-question-topic strong{font-size:13px}
 .scratch-question h3{font-size:23px}.scratch-question .shape-givens{font-size:13px}
 .scratch-question .geometry-diagram .dim-label{font-size:21px}.scratch-choice math{font-size:25px}
 .scratch-body-heading .small{font-size:11px}.scratch-toolbar .icon{width:15px;height:15px}
 .library-heading h1{font-size:35px}.library-toolbar .btn{font-size:12px;padding:9px 10px;gap:6px}
 .library-toolbar .btn .icon{width:17px;height:17px}.library-toolbar .search-box{padding:9px 10px}
 .library-toolbar .search-box input{font-size:14px}.library-toolbar p{font-size:13px}
 .saved-deck-card{padding:21px}.saved-deck-card h2{font-size:22px}.saved-deck-primary .btn{font-size:14px;padding:10px 14px}
 .saved-deck-secondary{gap:16px}.saved-deck-secondary .text-btn{font-size:13px}
 .deck-empty{padding:33px 23px}.deck-empty h2{font-size:26px}.deck-empty p{font-size:14px}
 .deck-library-note{padding:16px;gap:10px}.deck-library-note p{font-size:12.5px}
 .studio-dialog.deck-editor-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;margin:0;border-radius:0;border:0}
 .deck-editor-dialog .dialog-header{padding:16px 20px}.deck-editor-dialog .dialog-header h2{font-size:21px;max-width:none}
 .deck-editor-intro,.deck-builder-section{padding:20px}.deck-builder-section h3{font-size:18px}
 .deck-builder-section .section-title{gap:12px}.deck-builder-section .section-title>div{width:100%}
 .deck-builder-section .section-title .search-box{width:auto;flex:1;min-width:100px}
 .deck-editor-form .deck-topic-grid{grid-template-columns:1fr;max-height:288px;gap:8px}
 .deck-editor-form .deck-topic{padding:11px 12px;gap:10px}.deck-topic>span{font-size:14px}.deck-topic small{font-size:12px}.deck-topic .topic-glyph{width:37px;height:25px}
 .deck-editor-settings{grid-template-columns:1fr 1fr;gap:18px}.deck-editor-settings fieldset{grid-column:1/-1;grid-row:auto}
 .deck-editor-settings>label:last-child{grid-column:auto}.deck-editor-settings select{font-size:15px}
 .level-options{gap:8px}.level-options .level-check{min-width:36px;min-height:41px}
 .deck-exact-counts .count-grid{grid-template-columns:1fr}.deck-exact-counts summary{font-size:13px}
 .deck-exact-counts summary>span{font-size:11px;margin-left:6px}.deck-editor-footer{padding:13px 15px max(13px,env(safe-area-inset-bottom));display:block}
 .deck-editor-footer>p{font-size:12px;margin-bottom:10px}.deck-editor-footer .button-row{gap:7px;flex-wrap:nowrap}
 .deck-editor-footer .btn{font-size:12px;padding:9px 10px;gap:5px;flex:1}.deck-editor-footer .btn .icon{width:15px;height:15px}
 .deck-editor-footer .btn:first-child{flex:0 0 auto}.deck-editor-form>.form-error{padding:0 20px}
 .settings-grid label{font-size:14px;line-height:1.55}.reference-tabs{gap:7px}.reference-tabs button{font-size:12px}
 .formula-row p,.reference-notes p{font-size:14px}.skill-node h3{font-size:19px}
 .catalog-copy p{font-size:12px}.catalog-copy strong{font-size:14px}.catalog-item.cover-shop-card .btn{font-size:12px}
 .toast{font-size:13px;bottom:84px;padding:12px 16px;max-width:calc(100vw - 28px);line-height:1.5}
}
@media(max-width:370px){.topbar-ink small{display:none}.question-tools .btn{font-size:11px;padding:8px}.saved-deck-secondary{gap:12px}.deck-editor-footer .btn{padding:9px 7px}.saved-deck-primary .btn{padding:9px 11px}}

/* Match the more-specific selectors retained by the preceding releases. */
.main:focus,#topics-heading:focus{outline:none}
.topic-card .topic-description{font-size:15px;line-height:1.65;min-height:0!important;margin-bottom:16px}
.topic-card .topic-top{margin-bottom:18px}
.topic-card .topic-top .pill{font-size:11px;padding:5px 7px}
.topic-actions .btn{font-size:14px}
.topic-actions .text-btn{font-size:14px}
.topic-card .progress-label>span{font-size:12.5px}
.confidence-picker label>span{font-size:13px}
@media(max-width:600px){.topic-card .topic-description{font-size:15px}.topic-actions .btn,.topic-actions .text-btn{font-size:14px}.confidence-picker label>span{font-size:12px}}
/* These explicit component selectors outrank the older studio micro-type. */
@media(max-width:600px){
 .scratch-dialog>.scratch-header .eyebrow{display:none}
 .scratch-dialog>.scratch-header{min-height:65px;padding:13px 18px!important}
 .scratch-question-topic .eyebrow{display:none}
 .scratch-question-topic{margin-bottom:14px}
}

/* retained from classroom.css */
/* Classroom — quiet, legible stationery, with explicit navigation and actions. */
.cr-heading p{font-size:16px;max-width:630px}.cr-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:0 0 26px;overflow-x:auto;padding:0 0 1px}.cr-tabs button{padding:13px 18px;min-height:48px;white-space:nowrap;font-size:15px;border-bottom:3px solid transparent;color:var(--muted);font-weight:600}.cr-tabs button[aria-current=page]{color:var(--accent);border-bottom-color:var(--accent)}.cr-tabs button:hover{background:var(--accent-soft)}
.cr-intro-grid,.cr-learning-top{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px}.cr-intro-grid article{padding:26px;border:1px solid var(--line);background:var(--panel);border-radius:8px}.cr-intro-grid p{margin-top:12px;color:var(--muted)}.cr-code-panel{border-left:3px solid var(--accent)}.cr-code-panel h2{font-size:25px;margin:10px 0}.cr-code-panel p{font-size:15px;line-height:1.6;margin:12px 0}.cr-code{font:600 clamp(16px,1.8vw,23px)/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.03em;background:var(--bg);border:1px dashed var(--line);padding:14px 12px;margin:20px 0;word-break:break-all;border-radius:5px}.cr-counts{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:19px 0 23px}.cr-counts strong{font-size:47px;font-weight:500;line-height:1}.cr-counts span{display:block;font-size:14px;color:var(--muted);margin-top:10px}.cr-workload>p{font-size:15px;margin:14px 0 22px;line-height:1.7}
.cr-section{margin-top:32px}.cr-section>h2{font-size:25px;margin-bottom:12px}.cr-section>p{font-size:15px;margin-bottom:18px}.cr-section-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:25px 0 20px}.cr-section-heading h2{font-size:28px}.cr-section-heading p{font-size:15px;color:var(--muted);margin-top:7px}.cr-section .section-title h2{font-size:25px}.cr-section .section-title p{font-size:14px}.cr-empty{padding:36px 28px;border:1px dashed var(--line);border-radius:8px;background:var(--panel);text-align:center}.cr-empty h2{font-size:25px;margin:8px 0 12px}.cr-empty p{font-size:15px;color:var(--muted);max-width:560px;margin:0 auto 20px;line-height:1.7}.cr-empty-symbol{color:var(--accent);margin-bottom:13px}.cr-empty-symbol .icon{width:37px;height:37px}.cr-empty>.btn{margin:0}.cr-notice{padding:17px 20px;margin:18px 0;background:var(--accent-soft);border-left:3px solid var(--accent);font-size:14px;line-height:1.65;border-radius:2px 5px 5px 2px}.cr-notice p{margin-top:8px}.cr-warning{background:var(--wrong-bg);border-color:var(--wrong)}
.cr-pill{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:4px;padding:4px 8px;font-size:12px;line-height:1.4;font-weight:500;color:var(--muted);background:var(--panel)}.cr-pill.soft,.cr-pill.good{background:var(--accent-soft);color:var(--accent)}.cr-badges{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px}.cr-task-list{display:grid;gap:12px}.cr-task-card{display:flex;align-items:center;gap:20px;padding:21px 24px;border:1px solid var(--line);border-radius:8px;background:var(--panel);min-width:0}.cr-task-mark{width:46px;height:52px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);border-radius:4px;flex-shrink:0}.cr-task-mark .icon{width:27px;height:27px}.cr-task-copy{flex:1;min-width:0}.cr-task-copy h3{font-size:22px;line-height:1.35;overflow-wrap:anywhere;letter-spacing:-.025em}.cr-task-copy p{font-size:14px;color:var(--muted);margin:6px 0}.cr-task-copy .small{font-size:13px}.cr-task-card>.button-row{justify-content:flex-end;gap:10px}.cr-task-card .btn{white-space:nowrap;min-height:39px}.cr-task-card .text-btn{font-size:13px}
.cr-request-grid,.cr-grade-cards,.cr-class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.cr-request h3{font-size:23px;margin:10px 0}.cr-request p{font-size:15px;line-height:1.65;margin:10px 0 15px}.cr-request .text-btn{margin-left:18px}.cr-grade-cards .cr-overall{margin-top:12px}.cr-grade-cards p{font-size:14px;margin-bottom:18px;color:var(--muted)}.cr-connections{display:grid;gap:12px}.cr-connections article{display:flex;align-items:center;justify-content:space-between;gap:16px}.cr-connections h3{font-size:21px}.cr-connections p{font-size:14px;margin-top:7px;color:var(--muted)}.cr-class-grid .panel{display:flex;flex-direction:column;gap:15px}.cr-class-grid h2{font-size:26px;overflow-wrap:anywhere}.cr-class-grid p{font-size:15px;color:var(--muted);line-height:1.6;flex:1}.cr-class-grid strong{font-size:14px;font-weight:500}.cr-class-grid .btn{align-self:flex-start}.cr-independent{border-color:var(--accent)}
.cr-teacher-bar{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:16px 20px;border:1px solid var(--line);border-radius:6px;background:var(--panel)}.cr-teacher-bar strong{display:block;font-size:17px;font-weight:600}.cr-teacher-bar span{display:block;font-size:13px;color:var(--muted);margin-top:4px}.cr-group-select{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted)}.cr-group-select select{width:auto;max-width:240px;font-size:14px;min-height:39px;margin:0}.cr-roster{border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}.cr-student-row{display:flex;align-items:center;gap:17px;padding:22px;border-bottom:1px solid var(--line)}.cr-student-row:last-child{border-bottom:0}.cr-student-row>.avatar{width:38px;height:38px;font-size:13px}.cr-student-copy{flex:1;min-width:0}.cr-student-copy h3{font-size:21px;overflow-wrap:anywhere}.cr-student-copy p{font-size:14px;margin:4px 0;color:var(--muted)}.cr-roster-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;max-width:360px;flex-wrap:wrap}.cr-roster-actions .text-btn{font-size:13px;padding:6px}.cr-pending{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding:13px 0;font-size:14px}
.cr-history{margin:25px 0;border-top:1px solid var(--line);padding-top:16px}.cr-history>summary{cursor:pointer;font-size:16px;font-weight:600;margin-bottom:14px}.cr-history p{font-size:14px;line-height:1.6;margin:12px 0}.cr-overall{font-size:47px;font-weight:500;line-height:1.2;letter-spacing:-.04em;margin:12px 0}.cr-weight-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:7px;background:var(--panel);margin:20px 0}.cr-weight-strip>div{padding:18px 20px;border-right:1px solid var(--line)}.cr-weight-strip>div:last-child{border:0}.cr-weight-strip span{font-size:13px;display:block;color:var(--muted);margin-bottom:8px}.cr-weight-strip strong{font-size:25px;font-weight:500;display:block}.cr-weight-strip small{font-size:12px;color:var(--muted)}.cr-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:7px;background:var(--panel);scrollbar-width:thin}.cr-gradebook,.cr-report-table{width:100%;border-collapse:collapse;text-align:left}.cr-gradebook th,.cr-gradebook td,.cr-report-table th,.cr-report-table td{padding:14px 18px;border-bottom:1px solid var(--line);vertical-align:middle;font-size:14px}.cr-gradebook thead th,.cr-report-table thead th{background:var(--bg);font-size:13px;color:var(--muted);font-weight:500;line-height:1.4}.cr-gradebook th:first-child{position:sticky;left:0;background:var(--panel);z-index:1;min-width:155px}.cr-gradebook thead th:first-child{background:var(--bg)}.cr-gradebook th>span{display:block;width:160px;white-space:normal;overflow-wrap:anywhere;color:var(--ink);font-weight:600}.cr-gradebook th small{display:block;font-size:11px;margin-top:6px}.cr-grade-cell{display:block;width:100%;min-width:130px;padding:9px;text-align:left;border:1px solid transparent;border-radius:4px}.cr-grade-cell:hover,.cr-grade-cell:focus-visible{border-color:var(--accent);background:var(--accent-soft)}.cr-grade-cell strong{font-size:18px;font-weight:600;display:block}.cr-grade-cell small{display:block;font-size:12px;color:var(--muted);margin-top:6px;white-space:nowrap}.cr-gradebook tbody tr:last-child>*{border-bottom:0}.cr-gradebook tbody tr:hover>th{background:var(--accent-soft)}
/* Real, scrollable dialogs: primary actions stay reachable, no clipped prompt. */
.cr-dialog,.cr-work,.full-problem-dialog{padding:0;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);box-shadow:var(--shadow);max-width:calc(100vw - 32px);max-height:92dvh;width:640px}.cr-dialog::backdrop,.cr-work::backdrop,.full-problem-dialog::backdrop{background:#12231bb3;backdrop-filter:blur(2px)}.cr-dialog[open],.cr-work[open],.full-problem-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.cr-dialog .dialog-header,.cr-work .dialog-header,.full-problem-dialog .dialog-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:20px 25px;gap:20px;border-bottom:1px solid var(--line)}.cr-dialog .dialog-header h2{font-size:24px;max-width:none}.cr-modal-body{overflow:auto;overscroll-behavior:contain;padding:25px 28px;font-size:15px;min-height:0}.cr-modal-body>p{margin:0 0 18px;line-height:1.7}.cr-modal-body h3{font-size:23px;margin:20px 0 12px}.cr-modal-body h4{font-size:17px;font-weight:600;margin:22px 0 10px}.cr-modal-body .small{font-size:13px;line-height:1.65}.cr-wide{width:940px}.cr-report-dialog{width:1100px}.cr-field{display:block;font-size:14px;font-weight:500;line-height:1.55;margin:16px 0}.cr-field input,.cr-field select,.cr-field textarea{display:block;margin-top:7px;width:100%;font-size:16px;min-height:43px;line-height:1.5}.cr-field textarea{font:inherit;font-size:15px;resize:vertical}.cr-modal-body fieldset{border:0;padding:0;margin:18px 0}.cr-modal-body legend{font-size:14px;font-weight:500;margin-bottom:10px}.cr-modal-body .check-label{align-items:flex-start;font-size:15px;line-height:1.5}.cr-modal-body input[type=checkbox],.cr-modal-body input[type=radio]{accent-color:var(--accent);width:17px;height:17px;flex-shrink:0;vertical-align:middle}.cr-check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:16px 0}.cr-check-list label{padding:12px;border:1px solid var(--line);border-radius:5px;background:var(--bg);overflow-wrap:anywhere}.cr-help-steps article{display:flex;gap:20px;margin:0 0 23px}.cr-help-steps article>b{width:32px;height:32px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex-shrink:0}.cr-help-steps h3{margin:0 0 10px}.cr-help-steps p{line-height:1.7}
.cr-form-section{margin:0 -28px;padding:8px 28px 24px;border-bottom:1px solid var(--line)}.cr-form-section+.cr-form-section{padding-top:24px}.cr-form-section>.eyebrow{display:block;margin:3px 0 19px}.cr-kind-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.cr-kind-options label{padding:14px 13px;border:1px solid var(--line);border-radius:6px;display:flex;gap:9px;align-items:flex-start;cursor:pointer}.cr-kind-options label:has(:checked){border-color:var(--accent);background:var(--accent-soft)}.cr-kind-options strong{font-size:14px;display:block;line-height:1.4}.cr-kind-options small{font-size:12px;display:block;line-height:1.5;margin-top:7px;color:var(--muted)}.cr-two-cols,.cr-three-cols{display:grid;gap:22px;align-items:start}.cr-two-cols{grid-template-columns:1fr 1fr}.cr-three-cols{grid-template-columns:1fr 1fr 1fr}.cr-topic-checks{display:grid;grid-template-columns:1fr 1fr;gap:11px}.cr-topic-checks label{padding:13px;border:1px solid var(--line);border-radius:6px;background:var(--bg);align-items:center!important;font-size:14px!important;gap:9px;cursor:pointer}.cr-topic-checks label:has(:checked){border-color:var(--accent);background:var(--accent-soft)}.cr-topic-checks .topic-glyph{width:35px;height:28px;flex-shrink:0}.cr-topic-checks span{min-width:0}.cr-level-checks{display:flex;gap:8px;flex-wrap:wrap}.cr-level-checks label{position:relative;cursor:pointer}.cr-level-checks input{position:absolute;opacity:0}.cr-level-checks span{width:39px;height:42px;border:1px solid var(--line);border-radius:5px;display:grid;place-items:center;background:var(--bg);font-size:15px}.cr-level-checks input:checked+span{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.cr-level-checks input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}.cr-radio-row{display:flex;gap:25px;flex-wrap:wrap}.cr-feedback-rule{font-size:14px;color:var(--muted);line-height:1.6;margin:17px 0}.cr-form-footer{position:sticky;bottom:-25px;margin:20px -28px -25px;padding:18px 28px;background:var(--panel);border-top:1px solid var(--line);display:flex;gap:13px;z-index:2}.cr-error{margin:12px 0;font-size:14px}.cr-weight-total{font-size:16px;line-height:1.6}.cr-invalid{color:var(--wrong)}.cr-result-students article{display:flex;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line);gap:18px}.cr-result-students p{font-size:14px;margin-top:5px;color:var(--muted)}
/* Reports deliberately disclose retained scope, not a fabricated full history. */
.cr-report-top{display:flex;justify-content:space-between;align-items:center;gap:20px}.cr-report-top h2{font-size:32px;margin:8px 0}.cr-report-top p{font-size:14px;color:var(--muted)}.cr-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px 0}.cr-metrics strong{font-size:34px;font-weight:500;display:block}.cr-metrics span{display:block;font-size:14px;color:var(--muted);margin-top:8px}.cr-report-topics>details{border:1px solid var(--line);border-radius:5px;margin:10px 0}.cr-report-topics>details>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:16px 18px;font-size:16px;gap:18px}.cr-report-topics>details>summary>span{display:flex;align-items:center;gap:13px;min-width:0}.cr-report-topics>details>summary:after{content:'+';color:var(--muted)}.cr-report-topics>details[open]>summary:after{content:'−'}.cr-report-topic-body{padding:0 20px 20px}.cr-report-topic-body>p{font-size:14px;margin:10px 0}.cr-skill-list>div{display:grid;grid-template-columns:minmax(0,1fr) 100px 130px;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);align-items:center;font-size:14px}.cr-skill-list strong{font-size:13px;font-weight:500}.cr-skill-list small{font-size:12px;color:var(--muted)}.cr-report-history{display:flex;flex-wrap:wrap;gap:9px 17px;margin:14px 0;font-size:13px}.cr-report-topic-body>details>summary{cursor:pointer;font-size:14px;margin-top:16px}.cr-answer-review{padding:16px;border:1px solid var(--line);border-radius:5px;margin:14px 0;background:var(--bg);font-size:14px;line-height:1.65}.cr-answer-review p{margin:0 0 10px}.cr-answer-review>div{overflow:auto}.cr-answer-review math{font-size:23px;vertical-align:middle}.cr-answer-review small{display:block;margin-top:10px;font-size:12px}.cr-recent-answer{border-bottom:1px solid var(--line);padding:10px 0}.cr-recent-answer>summary{cursor:pointer;font-size:14px}.cr-math{font-size:28px;margin:14px 0;max-width:100%;overflow:auto;padding:6px 2px}.cr-math math{font-size:inherit}
/* Student assignment workspace. Question text grows naturally; no crop-to-card. */
.cr-work{width:1180px;height:92dvh}.cr-work.cr-fullscreen{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.cr-work-header h2{font-size:24px;line-height:1.3;margin:5px 0;overflow-wrap:anywhere;max-width:none!important}.cr-work-header p{font-size:13px;color:var(--muted);line-height:1.5}.cr-work-header>.button-row{flex-shrink:0}.cr-task-progress{display:flex;align-items:center;gap:17px;padding:13px 25px;border-bottom:1px solid var(--line);font-size:13px;flex-shrink:0}.cr-task-progress>div{height:4px;background:var(--line);flex:1;border-radius:2px;overflow:hidden;min-width:25px}.cr-task-progress i{display:block;background:var(--accent);height:100%}.cr-assignment-instructions{padding:14px 25px;border-bottom:1px solid var(--line);font-size:14px;flex-shrink:0;max-height:135px;overflow:auto;line-height:1.6}.cr-assignment-instructions>p{white-space:pre-wrap;margin-top:5px}.cr-question-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 25px;border-bottom:1px solid var(--line);background:var(--bg);flex-shrink:0}.cr-question-actions>span.small{margin-left:auto;font-size:12px}.cr-work-body{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:minmax(0,1fr) 205px;align-items:start;overscroll-behavior:contain}.cr-work-main{min-width:0;padding:28px 34px}.cr-problem-block .scratch-question{padding:0;border:0;background:none;overflow:visible;min-width:0;max-height:none;height:auto}.cr-problem-block .scratch-question-topic{margin-bottom:18px}.cr-problem-block .scratch-question h3{font-size:28px}.cr-problem-block .problem-prompt{font-size:18px;line-height:1.8;overflow-wrap:anywhere}.cr-problem-block .scratch-expression math{font-size:33px}.cr-problem-block .scratch-diagram .geometry-diagram{width:100%;max-width:650px}.cr-problem-block #cr-answer-form{margin-top:27px}.cr-problem-block .math-editor{margin:0 0 25px}.cr-problem-block .math-editor>label{font-size:15px}.cr-question-index{border-left:1px solid var(--line);padding:27px 20px;align-self:stretch;background:var(--bg)}.cr-question-index>div{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0 22px}.cr-index-button{border:1px solid var(--line);border-radius:5px;min-width:39px;min-height:38px;font-size:13px;padding:7px;background:var(--panel)}.cr-index-button.selected{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.cr-question-index>p{font-size:13px;line-height:1.7;color:var(--muted);margin:13px 0}.cr-work-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:14px 25px;border-top:1px solid var(--line);background:var(--panel);gap:15px}.cr-work-footer>span{font-size:14px;color:var(--muted)}.cr-choice-answers{border:0;padding:0;margin:0 0 24px}.cr-choice-answers legend{font-size:15px;margin:0 0 15px;color:var(--muted)}.cr-choice-answers>label{display:flex;align-items:center;gap:15px;padding:17px;border:1px solid var(--line);border-radius:6px;margin-bottom:11px;min-width:0;cursor:pointer}.cr-choice-answers>label:has(:checked){border-color:var(--accent);background:var(--accent-soft)}.cr-choice-answers input{accent-color:var(--accent);width:17px;height:17px;flex-shrink:0}.cr-choice-letter{font-size:13px;color:var(--muted);flex-shrink:0}.cr-choice-answers>label>span:last-child{overflow:auto;min-width:0;font-size:17px}.cr-choice-answers math{font-size:29px}.cr-saved-answer{padding:16px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:5px;background:var(--accent-soft);font-size:15px;margin:16px 0}.cr-worked-solution{margin:22px 0}.cr-worked-solution>summary{font-size:17px;font-weight:600;cursor:pointer;margin-bottom:17px}.cr-worked-solution>div{margin:15px 0;padding-left:15px;border-left:2px solid var(--line)}.cr-worked-solution p{font-size:15px;line-height:1.7}.cr-worked-solution>p{margin:15px 0}.cr-submission-note{border-top:1px solid var(--line);margin-top:27px;padding-top:20px}.cr-submission-note p{font-size:15px;margin-top:12px;line-height:1.7}.cr-lesson{margin-bottom:35px}.cr-lesson>h3{font-size:29px;margin:10px 0 15px}.cr-lesson>p{font-size:17px;line-height:1.75}.cr-lesson-step{display:flex;align-items:flex-start;gap:17px;margin:23px 0}.cr-lesson-step>b{background:var(--accent-soft);color:var(--accent);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:14px}.cr-lesson-step>div{min-width:0}.cr-lesson-step p{font-size:16px;line-height:1.75}
/* Full problem reader: the whole content remains accessible at readable scale. */
.full-problem-dialog{width:1080px;height:92dvh}.full-problem-dialog .dialog-header h2{font-size:26px;line-height:1.4;overflow-wrap:anywhere;margin-top:6px;max-width:none}.problem-reader-controls{padding:13px 26px;display:flex;justify-content:space-between;align-items:center;gap:15px;background:var(--bg);border-bottom:1px solid var(--line);font-size:14px;flex-shrink:0}.problem-reader-body{overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}.problem-reader-body>.scratch-question{max-width:880px;margin:0 auto;overflow:visible;border:0;background:transparent;padding:32px 35px;height:auto;max-height:none}.problem-reader-body .problem-prompt{font-size:20px;line-height:1.85;white-space:normal;overflow-wrap:anywhere}.problem-reader-body .scratch-expression{padding:12px 0;max-width:100%;overflow-x:auto}.problem-reader-body .scratch-expression math{font-size:37px}.problem-reader-body .scratch-diagram svg{width:100%;height:auto;max-height:none;overflow:visible}.problem-reader-body .scratch-diagram{padding:10px 12px}.problem-reader-body .scratch-choice{padding:20px;min-width:0}.problem-reader-body .scratch-choice>span{min-width:0;max-width:100%;overflow:auto;font-size:18px}.problem-reader-body .scratch-choice math{font-size:32px}.problem-reader-body .shape-givens{font-size:16px}.reader-large .problem-reader-body .problem-prompt{font-size:24px}.reader-large .scratch-expression math{font-size:43px}.reader-large .scratch-choice math{font-size:38px}.scratch-reader-button{display:block;margin:0 0 19px auto;position:sticky;top:0;z-index:1;box-shadow:0 2px 8px #00000008}.question-tools [data-action=read-full-problem]{font-weight:600}
@media(max-width:1100px){.cr-section-heading{align-items:flex-start;flex-direction:column}.cr-roster-actions{max-width:275px}.cr-task-card{padding:19px}.cr-task-card>.button-row{max-width:210px}.cr-learning-top{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.cr-learning-top,.cr-intro-grid{grid-template-columns:1fr}.cr-code-panel{padding:23px}.cr-code{font-size:21px}.cr-workload{padding:24px}.cr-section{margin-top:26px}.cr-heading{align-items:flex-start}.cr-heading h1{font-size:35px}.cr-heading>.button-row{gap:7px}.cr-heading .btn{font-size:12px;min-height:38px}.cr-tabs{gap:0;margin-bottom:22px}.cr-tabs button{font-size:14px;padding:12px 15px}.cr-student-row{flex-wrap:wrap;padding:20px}.cr-roster-actions{max-width:none;width:100%;justify-content:flex-start;margin:7px 0 0 52px}.cr-section-heading .button-row{width:100%;gap:9px}.cr-group-select{width:100%;margin-bottom:6px}.cr-group-select select{max-width:none;flex:1}.cr-task-card{gap:14px;flex-wrap:wrap}.cr-task-card>.btn{margin-left:60px}.cr-task-card>.button-row{max-width:none;margin-left:60px;justify-content:flex-start}.cr-task-copy h3{font-size:21px}.cr-task-copy{flex-basis:calc(100% - 65px)}.cr-grade-cards,.cr-class-grid,.cr-request-grid{grid-template-columns:1fr}.cr-connections article{padding:20px;align-items:flex-start}.cr-connections h3{font-size:20px}.cr-teacher-bar{padding:15px;gap:10px}.cr-teacher-bar .btn{max-width:150px;font-size:12px}.cr-weight-strip>div{padding:15px 12px}.cr-weight-strip span{font-size:12px}.cr-weight-strip strong{font-size:23px}.cr-dialog,.cr-work,.full-problem-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.cr-dialog .dialog-header{padding:17px 20px}.cr-dialog .dialog-header h2{font-size:22px}.cr-modal-body{padding:22px 20px}.cr-form-section{padding:8px 20px 22px;margin:0 -20px}.cr-form-footer{bottom:-22px;margin:18px -20px -22px;padding:15px 20px max(15px,env(safe-area-inset-bottom))}.cr-kind-options{grid-template-columns:1fr;gap:8px}.cr-kind-options label{padding:13px 15px}.cr-kind-options small{font-size:13px;margin-top:3px}.cr-kind-options strong{font-size:15px}.cr-topic-checks{grid-template-columns:1fr 1fr;gap:8px}.cr-topic-checks label{font-size:13px!important;padding:10px;gap:6px}.cr-topic-checks .topic-glyph{width:26px;height:24px}.cr-two-cols{grid-template-columns:1fr}.cr-two-cols>fieldset{margin:0 0 15px}.cr-three-cols{grid-template-columns:1fr 1fr;gap:15px}.cr-three-cols>.cr-field:first-child{grid-column:1/-1}.cr-three-cols .cr-field{margin:9px 0}.cr-report-top{flex-direction:column;align-items:flex-start}.cr-metrics strong{font-size:27px}.cr-metrics span{font-size:13px}.cr-skill-list>div{grid-template-columns:1fr 90px;gap:8px}.cr-skill-list small{grid-column:1/-1}.cr-report-topics>details>summary{padding:14px 12px;font-size:14px}.cr-report-topics .topic-glyph{width:32px;flex-shrink:0}.cr-report-topic-body{padding:0 12px 17px}.cr-work-header{padding:15px 18px!important;align-items:flex-start!important;gap:10px!important}.cr-work-header h2{font-size:21px;line-height:1.3}.cr-work-header p{font-size:12px}.cr-work-header .eyebrow{font-size:9px}.cr-work-header>.button-row{gap:5px}.cr-work-header>.button-row>.btn{font-size:11px;padding:7px;max-width:80px}.cr-task-progress{padding:10px 17px;font-size:12px;gap:10px}.cr-task-progress>.cr-pill{font-size:10px;padding:3px 5px;max-width:150px}.cr-assignment-instructions{padding:11px 18px;max-height:95px;font-size:13px}.cr-question-actions{padding:10px 16px;gap:8px}.cr-question-actions .btn{font-size:12px;padding:8px 10px;min-height:37px}.cr-question-actions>span.small{display:none}.cr-work-body{grid-template-columns:1fr;display:block}.cr-work-main{padding:25px 20px}.cr-question-index{border-left:0;border-top:1px solid var(--line);padding:18px 20px}.cr-question-index>p{display:none}.cr-question-index>div{margin:10px 0 0}.cr-index-button{min-height:40px;min-width:41px}.cr-problem-block .scratch-question h3{font-size:25px}.cr-problem-block .problem-prompt{font-size:17px;line-height:1.75}.cr-problem-block .scratch-expression math{font-size:29px}.cr-problem-block .scratch-question-topic{gap:9px}.cr-problem-block .scratch-question-topic strong{font-size:13px}.cr-problem-block .scratch-question-topic .eyebrow{display:none}.cr-problem-block .scratch-question-topic .pill{font-size:11px}.cr-choice-answers>label{padding:14px 12px;gap:11px}.cr-choice-answers math{font-size:27px}.cr-work-footer{padding:12px 17px max(12px,env(safe-area-inset-bottom));gap:10px}.cr-work-footer .btn{font-size:13px;min-height:40px;padding:9px 12px}.cr-work-footer>span{font-size:12px}.cr-lesson>h3{font-size:26px}.cr-lesson>p,.cr-lesson-step p{font-size:16px}.cr-lesson .cr-math{font-size:25px}.full-problem-dialog .dialog-header{padding:16px 18px;gap:12px;align-items:flex-start}.full-problem-dialog .dialog-header h2{font-size:22px}.full-problem-dialog .dialog-header .btn{font-size:12px;max-width:120px;flex-shrink:0}.full-problem-dialog .eyebrow{font-size:9px}.problem-reader-controls{padding:11px 18px;font-size:12px;align-items:flex-start}.problem-reader-controls .btn{font-size:12px;white-space:nowrap;flex-shrink:0}.problem-reader-body>.scratch-question{padding:24px 20px}.problem-reader-body .problem-prompt{font-size:18px;line-height:1.8}.problem-reader-body .scratch-expression math{font-size:31px}.problem-reader-body .scratch-choice{padding:17px 12px}.problem-reader-body .scratch-choice math{font-size:29px}.problem-reader-body .scratch-diagram{padding:4px 0}.problem-reader-body .shape-givens{font-size:15px}.reader-large .problem-reader-body .problem-prompt{font-size:22px}.reader-large .scratch-expression math{font-size:37px}.reader-large .scratch-choice math{font-size:33px}}
@media(max-width:400px){.cr-tabs button{font-size:13px;padding:12px 10px}.cr-heading{display:block}.cr-heading>.button-row{margin-top:15px}.cr-code{font-size:17px}.cr-topic-checks{grid-template-columns:1fr}.cr-check-list{grid-template-columns:1fr}.cr-task-mark{width:35px;height:44px}.cr-task-card>.btn,.cr-task-card>.button-row{margin-left:49px}.cr-task-copy h3{font-size:20px}.cr-roster-actions{margin-left:0}.cr-request .text-btn{margin-left:12px}.cr-question-actions .btn{font-size:11px;padding:8px}.cr-work-header h2{font-size:20px}}
@media print{body:has(.cr-report-dialog[open]){background:white;color:black}body:has(.cr-report-dialog[open])>#app,body:has(.cr-report-dialog[open])>dialog:not(.cr-report-dialog),body:has(.cr-report-dialog[open])>#toast{display:none!important}.cr-report-dialog[open]{position:static;display:block;width:100%;height:auto;max-height:none;overflow:visible;box-shadow:none;border:0;margin:0}.cr-report-dialog .cr-modal-body{overflow:visible;padding:0}.cr-report-dialog button,.cr-report-dialog .dialog-header{display:none}.cr-report-dialog details{break-inside:avoid}.cr-report-dialog .cr-table-wrap{overflow:visible}.cr-report-dialog .cr-report-topics>details>summary{display:flex}.cr-report-dialog *{color:black!important;background:white!important}}

.cr-student-weight-note{margin:10px 24px;padding:10px 12px;background:var(--paper);border-left:3px solid var(--accent);font-size:14px;line-height:1.6}

/* The current overall grade is useful even when only one category has evidence. */
.cr-overall-cell { min-width:165px;max-width:220px; }
.cr-overall-cell>small { display:block;font-size:12px;line-height:1.5;color:var(--muted);white-space:normal;margin:6px 0; }
.cr-grade-basis { padding:12px 16px;border-left:3px solid var(--accent);background:var(--accent-soft);line-height:1.6; }
.cr-grade-breakdown { align-items:stretch; }
.cr-grade-breakdown>div { min-width:0; }
.cr-grade-breakdown small { display:block;line-height:1.6;margin-top:6px; }
.cr-grade-breakdown .cr-empty-category strong { font-family:inherit;font-size:17px;color:var(--muted); }
/* Teaching teams: a single explicit scope, kept separate from personal learning. */
.cr-workspace-bar{display:flex;align-items:center;gap:24px;margin:4px 0 22px;padding:18px 20px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.cr-workspace-bar .cr-field{flex:0 1 380px;min-width:200px;margin:0}.cr-workspace-bar p{max-width:55ch;line-height:1.55;font-size:.93rem;margin:0;color:var(--muted)}
.cr-team-member{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid var(--line)}.cr-team-member span{display:block;margin-top:4px}.cr-scope-label{padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:5px;font-size:.9rem}
@media(max-width:700px){.cr-workspace-bar{display:block;padding:14px}.cr-workspace-bar p{margin-top:10px}.cr-workspace-bar select{max-width:100%}.cr-team-member{flex-wrap:wrap}}

/* retained from identity.css */
/* MyMathDesk identity: one clear form, generous type, visible password controls. */
.identity-brand{display:flex;align-items:center;gap:10px;color:var(--ink,#26392d)}
.mmd-mark{width:34px;height:36px;display:inline-flex;position:relative;align-items:center;justify-content:center;border:1.5px solid currentColor;border-radius:5px 5px 2px 2px;flex:none}
.mmd-mark span{font-family:Georgia,serif;font-weight:700;font-size:24px;line-height:1;margin-top:-4px}.mmd-mark i{position:absolute;bottom:6px;left:7px;right:7px;border-top:1px solid currentColor}.mmd-wordmark{font-size:22px;font-weight:750;letter-spacing:-.7px}
.mmd-account .account-top{align-items:center;margin-bottom:28px}.mmd-account h2{font-size:28px;line-height:1.2;letter-spacing:-.6px;margin:0 0 12px}.mmd-account .identity-intro{line-height:1.55;margin:0 0 20px;font-size:16px}.account-dialog{width:min(490px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}.mmd-account{padding:30px}
.identity-close{border:0;background:transparent;color:inherit;font-size:28px;line-height:1;width:40px;height:40px;border-radius:6px;cursor:pointer}.identity-close:hover{background:var(--accent-soft,#f0f1ec)}
.account-form .identity-field{margin:0 0 16px}.account-form .identity-field>label{display:block;font-weight:650;font-size:14px;margin:0 0 7px}.identity-field .field-input{min-height:46px;width:100%;font-size:16px;margin:0}.identity-field-note{font-size:12.5px!important;line-height:1.5;margin:6px 0 0!important;color:var(--muted,#5f6c62)}
.password-control{position:relative;display:flex;align-items:stretch}.password-control input.field-input{padding-right:65px}.password-control button{position:absolute;right:5px;top:4px;bottom:4px;width:53px;border:0;border-radius:4px;background:transparent;color:var(--ink,#26392d);font-size:12px;font-weight:700;cursor:pointer}.password-control button:hover{background:var(--accent-soft,#f0f1ec)}.password-control button:focus-visible{outline:2px solid var(--accent,#30654a);outline-offset:-2px}
.google-signin{min-height:46px;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;font-family:Arial,sans-serif;font-size:14px;font-weight:500;border:1px solid #747775;background:#fff;color:#1f1f1f;border-radius:5px;cursor:pointer;margin:0}.google-signin svg{flex:none}.google-signin:hover:not(:disabled){background:#f8fafd}.google-signin:disabled{opacity:.55;cursor:not-allowed}.identity-provider-note{font-size:12px!important;text-align:center;margin:7px 0!important;line-height:1.4}.identity-divider{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted,#667168);margin:18px 0}.identity-divider:before,.identity-divider:after{content:'';height:1px;flex:1;background:var(--line,#dbe0da)}
.account-form .identity-remember{font-size:13px;line-height:1.5;margin:3px 0 12px;align-items:flex-start}.identity-error{color:var(--wrong,#a0332d);font-size:14px!important;line-height:1.5;margin:10px 0!important}.identity-error:empty{display:none}.identity-notice{border-left:3px solid var(--accent,#356345);background:var(--accent-soft,#eef2eb);padding:12px 14px;font-size:14px!important;line-height:1.5;margin:14px 0!important}.identity-byline{font-size:12px!important;line-height:1.7;color:var(--muted,#667168);margin:22px 0 0!important}.identity-byline a{color:inherit}.identity-rule{border:0;border-top:1px solid var(--line,#dbe0da);margin:24px 0}
.identity-gate{max-width:1040px;margin:auto;padding:28px 32px 60px}.identity-gate-top{display:flex;justify-content:space-between;align-items:center;gap:14px}.identity-gate-card{max-width:510px;margin:48px auto 0;padding:32px;border:1px solid var(--line,#dbe0da);border-radius:10px;background:var(--panel,#fff)}.identity-gate-card h1{font-size:30px;line-height:1.15;letter-spacing:-.6px;margin:12px 0 18px}.identity-gate-card .identity-intro{font-size:17px;line-height:1.6}.identity-preserved{display:grid;gap:4px;padding:14px 16px;border:1px solid var(--line,#dbe0da);border-radius:6px;margin:20px 0;font-size:14px;line-height:1.5}.identity-preserved span{color:var(--muted,#667168)}
.identity-status{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid var(--line,#dbe0da);padding:18px 0}.identity-status>div{display:flex;flex-wrap:wrap;gap:6px 10px;min-width:0;flex:1}.identity-status-label{width:100%;font-size:13px;color:var(--muted,#667168)}.identity-status strong{font-size:16px;overflow-wrap:anywhere}.identity-status small{width:100%;color:var(--muted,#667168);line-height:1.6}.identity-status-tag{font-size:11px;border:1px solid var(--line,#dbe0da);padding:2px 6px;border-radius:4px}.mmd-account .btn.full{min-height:46px;margin-top:5px}.mmd-account .auth-tabs{margin-bottom:22px}.mmd-account .auth-fine{font-size:12.5px;line-height:1.6}.mmd-account [hidden],.identity-gate [hidden]{display:none!important}
@media(max-width:540px){.mmd-account{padding:22px}.mmd-account h2{font-size:25px}.mmd-wordmark{font-size:21px}.identity-gate{padding:20px 16px}.identity-gate-card{margin-top:28px;padding:22px 18px}.identity-gate-card h1{font-size:28px}.identity-status{align-items:flex-start;gap:10px}.identity-status .btn{font-size:12px;padding:8px 10px}.identity-gate-top .btn{padding:8px 12px}}

/* retained from exams.css */
/* Exam preparation: quiet paper, readable tools, clear boundaries. */
.exam-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 24px}.exam-card{border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:20px 17px;display:flex;align-items:center;gap:13px;text-align:left;min-width:0}.exam-card.selected{border-color:var(--accent);box-shadow:inset 0 -3px var(--accent);background:var(--accent-soft)}.exam-card>svg{width:48px;height:44px;flex-shrink:0}.exam-card strong{display:block;font-size:21px;letter-spacing:-.025em}.exam-card small{display:block;margin-top:5px;color:var(--muted);font-size:12px}.exam-card>b{margin-left:auto;font-size:11px;color:var(--muted)}
.exam-tabs{display:flex;gap:3px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:25px}.exam-tabs button{padding:14px 17px;white-space:nowrap;font-size:15px;border-bottom:2px solid transparent}.exam-tabs .selected{color:var(--accent);border-color:var(--accent);font-weight:700}.exam-two-col{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:24px;align-items:start}.exam-two-col>.panel{min-width:0}.exam-two-col p,.exam-section-heading p{font-size:15px;line-height:1.7}.exam-two-col h2{margin:12px 0 14px}.exam-two-col .panel>p{margin:0 0 18px}.exam-side-note p{margin-bottom:18px}.exam-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.exam-filter-grid label,.exam-calc-main label,#exam-timer-config>label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600;min-width:0}.exam-filter-grid select,#exam-timer-config select,.calc-toolbar select{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:6px;min-height:45px;width:100%;padding:8px 11px;min-width:0}.exam-start{display:flex;flex-direction:column;gap:8px;align-items:flex-start;justify-content:flex-end}.exam-running{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:15px 18px;background:var(--cream);color:var(--cream-ink);border-radius:8px;margin:18px 0}.exam-section-heading{margin:28px 0 22px}.exam-section-heading h2{margin-bottom:10px}.exam-lessons-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.exam-lessons-grid .panel{display:flex;flex-direction:column;gap:13px;margin-bottom:0}.exam-lessons-grid h3{font-size:20px;line-height:1.25}.exam-lessons-grid p{font-size:14px;color:var(--muted);flex:1}.exam-lessons-grid button{align-self:flex-start}.exam-provenance{font-size:12px;line-height:1.75;color:var(--muted);border-top:1px solid var(--line);margin-top:30px;padding-top:18px;max-width:1000px}.exam-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:24px}.exam-source-grid article{border-top:1px solid var(--line);padding-top:18px}.exam-source-grid strong{font-size:17px;line-height:1.35}.exam-source-grid small{display:block;color:var(--muted);margin:7px 0}.exam-source-grid p{font-size:14px}.exam-paper-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0;max-height:550px;overflow-y:auto;padding:2px 6px 6px 2px}.exam-paper{padding:12px;border:1px solid var(--line);border-radius:5px;text-decoration:none;font-size:14px;background:var(--bg)}.exam-paper:hover{border-color:var(--accent)}.exam-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.exam-actions a{text-decoration:none}.exam-format-number{font-size:23px!important;letter-spacing:-.025em;padding:20px 0}.exam-format-number span{color:var(--muted);padding:0 8px}#exam-timer-config>label{margin:20px 0}#exam-timer-config>.check-label{display:flex;flex-direction:row;align-items:flex-start;font-weight:400}#exam-timer-config>.check-label input{margin-top:5px}.exam-result-list article{display:flex;gap:20px;align-items:center;border-top:1px solid var(--line);padding:20px 0;flex-wrap:wrap}.exam-result-list article>div{flex:1}.exam-result-list small{display:block;color:var(--muted);margin-top:5px}.exam-domain-results{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:25px 0}.exam-domain-results>div{background:var(--accent-soft);padding:13px;display:flex;gap:12px;justify-content:space-between}.exam-review{border-top:1px solid var(--line);padding:16px 0}.exam-review>summary{display:flex;gap:12px;cursor:pointer;align-items:baseline}.exam-review>summary>span{flex:1}.exam-review>.scratch-question{border:0;background:none;max-height:none;overflow:visible;padding:18px 0}.exam-review .exam-solution{padding:12px 0}.exam-fast{background:var(--accent-soft);border-left:3px solid var(--accent);padding:17px 20px;margin:22px 0;color:var(--ink)}.exam-fast p{margin-top:7px}.exam-solution ol,.exam-lesson-steps{padding-left:24px}.exam-solution li,.exam-lesson-steps li{padding-left:9px;margin:18px 0;line-height:1.8}.exam-solution math{display:block;margin:12px 0;font-size:22px;overflow:visible}.exam-calculator-guide{margin:18px 0;padding:18px;border:1px solid var(--line);border-radius:7px}.exam-calculator-guide summary{font-weight:600;cursor:pointer}.exam-calculator-guide p{margin:12px 0}.exam-calculator-lines{display:grid;gap:10px;background:var(--bg);padding:15px;overflow:auto}.exam-calculator-lines code{white-space:pre;font-size:15px}.exam-references{border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.exam-references p{margin:12px 0;font-size:14px}
.exam-dialog,.exam-timed-dialog,.exam-calculator-dialog{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:0;box-shadow:var(--shadow)}.exam-dialog{width:min(880px,calc(100vw - 32px));max-height:92dvh}.exam-dialog::backdrop,.exam-timed-dialog::backdrop,.exam-calculator-dialog::backdrop{background:#12201988}.exam-dialog-body{padding:28px 36px;font-size:16px;line-height:1.8}.exam-dialog-body>p{margin:15px 0}.exam-dialog-body .panel{margin:22px 0}.exam-dialog-body form>button{margin:15px 0}.exam-lead{font-size:19px!important;color:var(--muted)}.exam-dialog .dialog-header{position:sticky;top:0;background:var(--panel);z-index:3}.exam-timed-dialog{width:calc(100vw - 32px);max-width:1360px;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);overflow:hidden}.exam-timed-header{display:flex;align-items:center;gap:20px;padding:18px 26px;border-bottom:1px solid var(--line);background:var(--panel)}.exam-timed-header>div:first-child{flex:1}.exam-timed-header h2{margin-top:6px;font-size:23px}.exam-clock{font-size:29px;font-variant-numeric:tabular-nums;letter-spacing:-.04em;color:var(--accent)}.exam-clock.urgent{color:var(--wrong)}.exam-timed-layout{display:grid;grid-template-columns:230px minmax(0,1fr);height:calc(100% - 97px)}.exam-navigator{padding:25px 20px;background:var(--bg);border-right:1px solid var(--line);overflow:auto}.exam-navigator nav{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:20px 0}.exam-navigator nav button{position:relative;height:34px;background:var(--panel);border:1px solid var(--line);border-radius:4px;font-size:13px}.exam-navigator nav .answered{background:var(--accent-soft);color:var(--accent);font-weight:700}.exam-navigator nav .selected{outline:2px solid var(--accent);outline-offset:1px}.exam-navigator sup{position:absolute;right:0;top:-7px;color:var(--wrong)}.exam-navigator>p{margin:12px 0}.exam-task{padding:25px 35px;overflow:auto;min-width:0}.exam-task>.scratch-question{background:none;border:0;max-height:none;overflow:visible;padding:24px 0}.exam-task>.scratch-question .scratch-question-topic{display:none}.exam-task-tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:16px}.exam-task-tools>strong{margin-right:auto}.exam-answer-choices{border:0;padding:0;margin:0;display:grid;gap:12px}.exam-answer-choices legend{margin:0 0 12px;color:var(--muted);font-size:14px}.exam-answer-choices .choice{min-height:65px;justify-content:flex-start;width:100%;gap:15px}.exam-answer-choices math{font-size:23px}.exam-answer-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:25px 0}.exam-answer-actions>span{margin-right:auto}
.exam-calculator-dialog{width:min(1400px,calc(100vw - 30px));height:min(900px,calc(100dvh - 30px));max-height:calc(100dvh - 30px);overflow:hidden}.exam-calculator-dialog .dialog-header{min-height:82px}.exam-calculator-dialog h2{font-size:23px}.exam-calc-layout{display:grid;grid-template-columns:minmax(230px,35%) minmax(0,1fr);height:calc(100% - 90px)}.exam-calc-question{overflow:auto;border-right:1px solid var(--line);padding:22px;background:var(--bg)}.exam-calc-question>.scratch-question{border:0;background:none;max-height:none;padding:0;overflow:visible}.exam-calc-question .scratch-question h3{font-size:20px}.exam-calc-question .scratch-question p{font-size:15px}.exam-calc-question .scratch-question .scratch-question-topic{display:none}.exam-calc-question>p{margin:22px 0}.exam-calc-main{min-width:0;overflow:auto;padding:20px 24px}.exam-calc-tabs{display:flex;gap:7px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:16px}.exam-calc-tabs .selected,.calc-toolbar .selected{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.exam-calc-tabs button{font-size:14px}.exam-calc-main p{font-size:14px;line-height:1.6;margin:12px 0}.exam-calc-main .desmos-host{width:100%;height:470px;min-height:320px;border:1px solid var(--line);border-radius:6px;overflow:hidden}.exam-calc-unavailable{padding:25px;display:flex;flex-direction:column;align-items:flex-start;gap:13px;height:100%;min-height:0;overflow:auto;justify-content:flex-start;background:var(--bg)}.exam-calc-unavailable>*{flex-shrink:0;max-width:100%;overflow-wrap:anywhere}.exam-calc-unavailable h3{font-size:24px}.exam-ti-note{border-left:3px solid var(--line);padding:3px 15px;margin-bottom:18px}.calc-toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:15px 0}.calc-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.calc-toolbar label{font-size:12px}.calc-toolbar select{min-height:36px;min-width:74px}.calc-expression{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:20px!important}.calc-result{font-family:ui-monospace,SFMono-Regular,monospace;text-align:right;font-size:30px;font-weight:500;letter-spacing:-.04em;background:var(--accent-soft);padding:18px;border-radius:5px;margin:13px 0;overflow-wrap:anywhere;min-height:78px}.calc-keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:15px 0}.calc-keypad button{background:var(--bg);border:1px solid var(--line);border-radius:5px;min-height:39px;font-size:16px}.calc-keypad button:hover{background:var(--accent-soft)}.calc-error{color:var(--wrong);min-height:22px}.calc-history{margin:17px 0}.calc-history p{padding:8px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.calc-window{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.calc-window input{width:100%}.exam-calc-main .button-row{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.local-calculator-graph{width:100%;height:auto;max-height:340px;background:var(--bg);border:1px solid var(--line);border-radius:5px}.plot-frame{fill:none;stroke:var(--line)}.plot-axis{fill:none;stroke:var(--muted);stroke-width:1}.plot-line{fill:none;stroke:var(--accent);stroke-width:2}.plot-line.line-1{stroke:#b05c37;stroke-dasharray:6 3}.plot-line.line-2{stroke:#5374a7;stroke-dasharray:3 3}.plot-line.line-3{stroke:#87638e;stroke-dasharray:9 3}.local-calculator-graph text{fill:var(--muted);font-size:13px}.exam-tutorial{border-top:1px solid var(--line);padding-top:20px;margin-top:25px;font-size:14px}.exam-tutorial li{margin:13px 0;line-height:1.6}.exam-diagram .dim-label{fill:var(--ink);stroke:none;font-size:18px}.exam-diagram .shape{fill:var(--accent-soft);stroke:var(--accent)}.exam-diagram .guide{stroke:var(--muted);stroke-dasharray:4 4}.exam-diagram circle[r="5"],.exam-diagram circle[r="3"]{fill:var(--accent)}
@media(min-width:1400px){.exam-task{padding-right:10%;padding-left:7%}}
@media(max-width:1120px){.exam-switch{gap:10px}.exam-card{padding:15px 12px}.exam-card>b{display:none}.exam-lessons-grid{grid-template-columns:1fr 1fr}.exam-two-col{grid-template-columns:1fr}.exam-side-note{display:block}.exam-card strong{font-size:19px}}
@media(max-width:700px){.exam-switch{gap:7px;margin-bottom:15px}.exam-card{flex-direction:column;gap:8px;align-items:flex-start;padding:13px 10px}.exam-card>svg{width:37px;height:34px}.exam-card strong{font-size:17px}.exam-card small{font-size:11px;line-height:1.4}.exam-tabs button{padding:12px;font-size:14px}.exam-lessons-grid,.exam-source-grid{grid-template-columns:1fr}.exam-filter-grid{gap:15px}.exam-paper-list{grid-template-columns:1fr 1fr;max-height:450px}.exam-dialog-body{padding:23px 19px}.exam-domain-results{grid-template-columns:1fr}.exam-dialog,.exam-timed-dialog,.exam-calculator-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border:0;border-radius:0}.exam-dialog .dialog-header h2{font-size:22px}.exam-timed-header{padding:13px 14px;gap:13px;flex-wrap:wrap}.exam-timed-header h2{font-size:20px}.exam-timed-header .eyebrow{font-size:9px;letter-spacing:.05em}.exam-timed-header>button{font-size:12px}.exam-clock{font-size:24px}.exam-timed-layout{grid-template-columns:1fr;grid-template-rows:auto 1fr;height:calc(100% - 103px)}.exam-navigator{padding:12px 15px;border-right:0;border-bottom:1px solid var(--line);max-height:158px;display:grid;grid-template-columns:1fr auto;gap:5px 15px}.exam-navigator nav{display:flex;overflow-x:auto;grid-column:1 / -1;order:1;margin:6px 0;padding:4px 2px;gap:7px}.exam-navigator nav button{min-width:32px;height:32px}.exam-navigator>p{display:none}.exam-navigator>strong{font-size:13px}.exam-navigator>.btn{font-size:12px;padding:5px 9px;min-height:32px;width:auto}.exam-navigator>.text-btn{font-size:11px;grid-column:1/-1;text-align:left;order:2;justify-self:start}.exam-task{padding:17px 18px}.exam-task-tools{gap:7px}.exam-task-tools .btn{font-size:11px;min-height:32px;padding:6px 9px}.exam-task>.scratch-question .problem-prompt{font-size:18px}.exam-task-tools>strong{font-size:14px}.exam-answer-actions{gap:12px}.exam-answer-actions>.primary{width:100%;font-size:15px}.exam-calc-layout{grid-template-columns:1fr;grid-template-rows:175px minmax(0,1fr);height:calc(100% - 94px)}.exam-calc-question{border:0;border-bottom:1px solid var(--line);padding:14px 18px}.exam-calc-question>.small{margin:10px 0}.exam-calc-main{padding:16px}.exam-calc-tabs{gap:5px;position:sticky;top:-16px;background:var(--panel);z-index:3;padding-top:10px}.exam-calc-tabs button{font-size:12px;padding:7px 10px}.exam-calculator-dialog .dialog-header{padding:15px;align-items:center;gap:8px}.exam-calculator-dialog h2{font-size:19px}.exam-calculator-dialog .dialog-header .eyebrow{font-size:9px}.exam-calculator-dialog .dialog-header button{font-size:11px;padding:7px}.calc-window{grid-template-columns:1fr 1fr}.calc-toolbar{align-items:flex-start}.calc-toolbar .btn{font-size:12px;padding:7px 10px}.desmos-host{height:480px!important}.exam-review>summary{font-size:14px;gap:8px}.exam-review>summary>strong{font-size:12px}.exam-paper{font-size:13px}.exam-running{font-size:13px}.exam-provenance{font-size:12px}.exam-result-list article{gap:12px}.exam-result-list article>div{flex-basis:100%}}

/* retained from calculator.css */
/* A compact desk calculator; Desmos is the only graphing workspace. */
.exam-calculator-dialog {
  width:min(1040px,calc(100vw - 36px)); height:min(790px,calc(100dvh - 36px));
  max-height:calc(100dvh - 36px); overflow:hidden; border-radius:12px;
}
.exam-calculator-dialog[open] { display:flex; flex-direction:column; }
.exam-calculator-dialog[data-mode="desmos"] { width:min(1260px,calc(100vw - 36px)); }
.exam-calculator-dialog .dialog-header { flex:0 0 auto; min-height:0; padding:19px 24px; gap:20px; }
.exam-calculator-dialog h2 { font-size:22px; margin:4px 0; line-height:1.3; letter-spacing:-.025em; }
.exam-calculator-dialog .calculator-permission { margin:5px 0 0; color:var(--muted); font-size:14px; line-height:1.5; }
.exam-calculator-dialog .dialog-header>.btn { flex-shrink:0; font-size:14px; }
.exam-calculator-dialog .exam-calc-layout { flex:1; min-height:0; height:auto; display:grid; grid-template-columns:minmax(0,1fr) 376px; }
.exam-calculator-dialog[data-mode="desmos"] .exam-calc-layout { grid-template-columns:minmax(260px,35%) minmax(0,1fr); }
.exam-calc-question { padding:24px 26px; overflow:auto; overscroll-behavior:contain; }
.exam-calc-question .scratch-question .problem-prompt { font-size:18px; line-height:1.65; }
.exam-calc-question .main-expression math { font-size:29px; }
.exam-calc-main { min-height:0; padding:18px 20px; display:flex; flex-direction:column; overflow:hidden; }
.exam-calc-tabs { flex:0 0 auto; display:flex; gap:5px; padding:4px; margin:0 0 16px; border:1px solid var(--line); border-radius:8px; background:var(--bg); }
.exam-calc-tabs .btn { flex:1; min-height:39px; background:transparent; border:0; font-size:14px; border-radius:5px; }
.exam-calc-tabs .btn.selected { background:var(--panel); color:var(--accent); box-shadow:0 1px 3px #0000000d; font-weight:700; }
.exam-calc-content { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
.exam-calc-content .desmos-host { min-height:280px; height:max(320px,calc(100% - 110px)); background:#fff; color:#202734; border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.exam-calc-main .desmos-footnote { color:var(--muted); font-size:12px; line-height:1.55; margin:7px 0; }
.exam-calc-main .calc-status:empty { display:none; }
.exam-calc-unavailable { padding:26px; }
.exam-calc-unavailable h3 { font-size:23px; }
.exam-calc-unavailable p { margin:10px 0; font-size:15px; line-height:1.6; }
.exam-calc-content .button-row { margin:10px 0; }
.desk-calculator { max-width:328px; width:100%; margin:0 auto; padding:16px; background:var(--bg); border:1px solid var(--line); border-radius:13px; box-shadow:0 3px 0 var(--line); }
.desk-calc-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 1px 12px; color:var(--muted); }
.desk-calc-heading span:first-child { font-size:9px; font-weight:750; letter-spacing:.13em; }
.desk-calc-heading span:last-child { font-size:11px; }
.desk-calc-screen { display:flex; flex-direction:column; min-height:94px; padding:11px 13px; border-radius:7px; background:var(--accent-soft); border:1px solid var(--line); margin-bottom:15px; }
.desk-calc-input { width:100%; min-width:0; min-height:30px; background:transparent!important; color:var(--ink); border:0!important; border-radius:0!important; box-shadow:none!important; padding:0 0 5px!important; font-size:19px!important; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; text-align:right; }
.desk-calc-input:focus { outline:none; }
.desk-calc-screen:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
.desk-calculator .calc-result { display:block; min-height:35px; margin:0; padding:0; background:none; color:var(--ink); font:500 29px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:-.045em; text-align:right; overflow-wrap:anywhere; }
.desk-calc-keys { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.desk-calc-key { display:flex; align-items:center; justify-content:center; min-height:43px; padding:6px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--ink); font-size:21px; font-variant-numeric:tabular-nums; line-height:1.2; box-shadow:0 1px 0 var(--line); touch-action:manipulation; user-select:none; }
.desk-calc-key sup { position:static; vertical-align:super; font-size:.7em; line-height:0; }
.desk-calc-key.function-key { min-height:35px; font-size:17px; background:transparent; color:var(--muted); }
.desk-calc-key.operator-key { color:var(--accent); background:var(--accent-soft); font-size:23px; }
.desk-calc-key.clear-key { color:var(--accent); font-size:16px; font-weight:650; }
.desk-calc-key.zero-key { grid-column:span 2; }
.desk-calc-key.equals-key { background:var(--accent); border-color:var(--accent); color:var(--on-accent,#fff); }
.desk-calc-key:hover { border-color:var(--accent); }
.desk-calc-key:active { transform:translateY(1px); box-shadow:none; }
.desk-calc-key:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.desk-calculator .calc-error { font-size:13px; line-height:1.4; color:var(--wrong); margin:10px 0 0; min-height:0; }
.desk-calculator .calc-error:empty { display:none; }
.desk-calculator .desk-calc-hint { font-size:11px; line-height:1.5; color:var(--muted); text-align:center; margin:13px 0 0; }
.offline-calculator { margin:18px 0; padding:16px; border:1px solid var(--line); border-radius:8px; }
.offline-calculator summary { cursor:pointer; font-weight:650; }
.offline-calculator .desk-calculator { margin-top:15px; }
@media (max-width:700px) {
  .exam-calculator-dialog,.exam-calculator-dialog[data-mode="desmos"] { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border:0; border-radius:0; }
  .exam-calculator-dialog .dialog-header { padding:13px 15px; gap:10px; }
  .exam-calculator-dialog .dialog-header .eyebrow { font-size:9px; }
  .exam-calculator-dialog h2 { font-size:18px; }
  .exam-calculator-dialog .calculator-permission { font-size:12px; margin:3px 0 0; }
  .exam-calculator-dialog .dialog-header>.btn { font-size:12px; padding:8px 10px; min-height:38px; max-width:100px; }
  .exam-calculator-dialog .exam-calc-layout,.exam-calculator-dialog[data-mode="desmos"] .exam-calc-layout { grid-template-columns:1fr; grid-template-rows:clamp(96px,19dvh,156px) minmax(0,1fr); }
  .exam-calc-question { padding:13px 18px; border-right:0; border-bottom:1px solid var(--line); }
  .exam-calc-question .scratch-question .problem-prompt { font-size:16px; }
  .exam-calc-question .scratch-question h3 { font-size:18px; }
  .exam-calc-main { padding:10px 14px 16px; }
  .exam-calc-tabs { position:static; margin-bottom:12px; padding:3px; }
  .exam-calc-tabs .btn { font-size:13px; min-height:36px; padding:7px 10px; }
  .desk-calculator { padding:13px; }
  .desk-calc-key { min-height:42px; }
  .desk-calc-key.function-key { min-height:34px; }
  .desk-calc-hint { font-size:10px!important; }
  .exam-calc-content .desmos-host { height:390px; min-height:300px; }
}
@media (prefers-reduced-motion:reduce) { .desk-calc-key:active { transform:none; } }

/* retained from math-layout.css */
/* Read-only expressions need an HTML line box, not a scrollbar on the MathML glyph box.
   Load after the visual themes. No grading, editor or account state is affected. */
.math-layout {
  display:inline-block;
  vertical-align:middle;
  box-sizing:border-box;
  min-inline-size:0;
  max-inline-size:100%;
  padding:.22em .12em .28em;
  line-height:1.4;
  overflow:visible;
  text-align:inherit;
}
.math-layout math {
  display:inline math !important;
  overflow:visible !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  flex-shrink:0;
}
.math-layout-multiline { text-align:left; }
/* Only a truly indivisible oversized expression can scroll, in a full-width HTML region.
   Normal numbers, fractions, radicals and multiline expressions never get inner scrollbars. */
.math-layout[data-math-overflow=true] {
  display:block;
  overflow-x:auto;
  scrollbar-width:thin;
}
.choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
.choice-grid.math-single-column { grid-template-columns:minmax(0,1fr); }
.choice {
  min-width:0;
  height:auto;
  max-height:none;
  overflow:visible;
  white-space:normal;
  overflow-wrap:anywhere;
  align-items:center;
}
.choice-box { flex-shrink:0; align-self:center; }
.choice>.math-layout { flex:1 1 0%; min-width:0; text-align:left; }
.choice-reason { min-width:0; grid-template-columns:30px minmax(0,1fr); }
.choice-reason>div { min-width:0; }
.choice-reason math { overflow:visible; max-width:none; }
.scratch-choice>span,.problem-reader-body .scratch-choice>span,.cr-choice-answers>label>span:last-child { flex:1; min-width:0; overflow:visible; }
.scratch-choice,.cr-choice-answers>label { height:auto;max-height:none;overflow:visible; }
.main-expression,.solution-math,.scratch-expression,.problem-reader-body .scratch-expression,.cr-math,.saved-expression { overflow:visible;min-width:0;max-height:none; }
.exam-solution math { overflow:visible; }
.plain-math { white-space:normal;overflow-wrap:anywhere; }.formula-row>div,.formula-card,.formula-value { min-width:0; }
.cr-answer-review>div { overflow:visible; }
.math-layout mtable { border:0; }
.math-layout mtr,.math-layout mtd { border:0;background:transparent; }
@media(max-width:600px) {
  .choice-grid { grid-template-columns:minmax(0,1fr); }
  .choice { padding:15px;min-height:70px; }
}

/* retained from additions-v9.css */
/* v9: focused additions, keeping the existing visual and math-fit system. */
.gift-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:28px;align-items:center}.gift-panel p{margin-bottom:0}.gift-entry{display:flex;gap:10px;margin-top:8px}.gift-entry input{min-width:0;font-family:ui-monospace,monospace;font-size:1rem}.gift-entry .btn{flex-shrink:0}
.swatch-axolotl{position:relative;background:linear-gradient(155deg,#edf4f1,#eadfea);overflow:hidden}.swatch-axolotl svg{width:116px;height:85px}.swatch-axolotl .rare-mark{position:absolute;right:10px;top:8px;font:600 10px/1.5 system-ui;letter-spacing:.12em;color:#7e5272}
.effect-axolotl .axolotl-swimmer{width:var(--size);height:auto;background:none!important;border-radius:0;animation:axo-swim 2.3s var(--delay) both ease-out}.axolotl-swimmer svg{width:100%;height:auto;filter:drop-shadow(0 2px 2px #594b5322)}.effect-axolotl .lagoon-bubble{border:1px solid var(--color);border-radius:50%;background:transparent;animation:axo-swim 2.3s var(--delay) both ease-out}
@keyframes axo-swim{0%{opacity:0;transform:translate(0,30px) rotate(var(--turn))}18%{opacity:1}78%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--turn))}}
@media(max-width:700px){.gift-panel{grid-template-columns:1fr;gap:18px}.gift-entry{flex-wrap:wrap}.gift-entry input{flex:1 1 170px}}
@media(prefers-reduced-motion:reduce){.effect-axolotl{display:none!important}}

.elimination-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px;min-width:0;align-items:stretch}.elimination-row>.choice,.elimination-row>.calculus-option{margin:0!important;min-width:0}.eliminate-choice{align-self:center;min-height:38px;min-width:38px;border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:7px;cursor:pointer;font-size:22px;line-height:1}.eliminate-choice:hover,.eliminate-choice[aria-pressed=true]{color:var(--text);border-color:var(--accent);background:var(--soft)}.eliminate-choice:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.eliminate-choice:disabled{cursor:default;opacity:.4}.elimination-row.is-eliminated>.choice,.elimination-row.is-eliminated>.calculus-option,.cr-choice-answers>.elimination-row.is-eliminated>label{opacity:.5;position:relative}.elimination-row.is-eliminated>label::after{content:'';position:absolute;left:15px;right:15px;top:50%;height:2px;background:currentColor;pointer-events:none}.elimination-help{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px;margin:14px 0 8px;flex-wrap:wrap}.elimination-help .text-btn{font-size:13px}.cr-choice-answers>.elimination-row{margin-top:10px}.cr-choice-answers>.elimination-row>label{display:flex;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:9px;min-width:0}.exam-answer-choices>.elimination-row{margin:10px 0}.calculus-options>.elimination-row>label{width:100%}
.practice-start-block{display:flex;flex-direction:column;align-items:flex-start;gap:9px;flex:1 1 280px}.desk-start-actions{align-items:flex-start}.practice-customize-link{border:0;background:none;padding:0;color:var(--accent);font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;text-decoration:underline;text-underline-offset:4px;cursor:pointer;text-align:left}.practice-customize-link:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.practice-scope-summary{color:var(--muted);font-size:13px;line-height:1.6;max-width:52ch}.start-question-count{font-size:.82em;opacity:.8;margin-left:5px}.focus-presets{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.focus-group{border:1px solid var(--line);border-radius:9px;margin:10px 0;padding:13px 16px}.focus-group summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;font-weight:650}.focus-group summary span,[data-focus-count]{color:var(--muted);font-size:13px;font-weight:400}.focus-length{margin:20px 0}.focus-length label{display:block;margin-bottom:8px}.rapid-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px}.rapid-controls small{color:var(--muted);font-size:12px}.rapid-controls .check-label{font-size:13px}.physics-feedback{margin:14px 0;padding:12px 16px;border-left:3px solid var(--accent);background:var(--soft);font-size:15px;line-height:1.7}.topic-source-note{padding:12px 15px;margin-bottom:18px;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.6}.topic-source-note summary{font-weight:650;cursor:pointer}.topic-source-note a{color:var(--accent);text-underline-offset:3px}.topic-source-note ul{padding-left:20px}.physics-svg{max-height:330px}
@media(max-width:600px){.practice-start-block{flex-basis:100%}.practice-start-block>.btn{width:100%;justify-content:center}.start-question-count{font-size:.78em}.elimination-row{grid-template-columns:minmax(0,1fr) 34px;gap:5px}.eliminate-choice{min-width:34px;min-height:42px}.focus-group{padding:12px}.focus-presets .btn{flex:1 1 130px}.rapid-controls{display:block}.rapid-controls>*{margin:6px 0}}
/* Theme-specific contrast for mechanics; includes standalone/offline output. */
.physics-svg{--physics-line:#3b594b;--physics-ramp:#d9e6dd;--physics-box:#b6cabd;--physics-text:#142c20;--physics-arrow:#8b3f0d;--physics-bg:#f3f7f2;background:var(--physics-bg);border:1px solid var(--line);border-radius:10px;width:100%;height:auto;max-height:none!important;padding:8px;display:block}
:root[data-theme=dark] .physics-svg{--physics-line:#b5d0c0;--physics-ramp:#324f42;--physics-box:#466a58;--physics-text:#f1f8ee;--physics-arrow:#ffd38c;--physics-bg:#1c2d23}
.physics-ramp{fill:var(--physics-ramp)}.physics-box{fill:var(--physics-box)}.physics-label{fill:var(--physics-text);font-weight:550}.physics-label-bg{fill:var(--physics-ramp)}.physics-direction{stroke:var(--physics-arrow);stroke-width:3}.physics-angle{stroke:var(--physics-text)}.physics-dashed{stroke:var(--physics-line);stroke-dasharray:5 5}
.physics-precision-note{font-size:14px;line-height:1.65;border-left:3px solid var(--accent);background:var(--accent-soft);padding:12px 15px;margin:14px 0}.physics-precision-note strong{display:block;margin-bottom:4px}

.leaderboard-notice{padding:18px 20px;border:1px solid var(--line);border-left:3px solid var(--accent);background:var(--surface);border-radius:8px;margin-bottom:24px;display:flex;align-items:center;gap:22px}.leaderboard-notice p{margin:6px 0 0;font-size:.93rem;line-height:1.5;max-width:75ch}.leaderboard-notice .button-row{flex-shrink:0;flex-wrap:wrap}@media(max-width:720px){.leaderboard-notice{display:block}.leaderboard-notice .button-row{margin-top:12px}}

/* retained from refinements-v11.css */
/* Midnight library: slate pages, parchment type, and restrained ink-blue accents.
   Purchased accent palettes remain distinct; typography never uses the accent alone. */
:root[data-theme=dark]{--bg:#171d27;--panel:#202936;--ink:#e5e9f0;--muted:#b1becf;--line:#46576d;--accent:#b4c7ee;--accent-soft:#2b3a53;--cream:#383629;--cream-ink:#eee0b5;--wrong:#ffb6ac;--wrong-bg:#442e36;--shadow:0 22px 72px #080d1680;--studio-paper:#232d3a;--studio-rule:#46556b;--studio-wash:#1c2532;--paper:var(--panel);--soft:var(--accent-soft);--text:var(--ink);--border:var(--line);color-scheme:dark}
:root[data-theme=dark][data-accent=ink]{--accent:#afcbed;--accent-soft:#293b54}
:root[data-theme=dark][data-accent=clay]{--accent:#e9bf9e;--accent-soft:#42362f}
:root[data-theme=dark][data-accent=plum]{--accent:#d1bde9;--accent-soft:#3a3150}
:root[data-theme=dark] .physics-svg{--physics-bg:#1b2534;--physics-line:#acbed6;--physics-ramp:#304258;--physics-box:#526b87;--physics-text:#edf0f6;--physics-arrow:#f1cc8a}
:root[data-theme=dark] .choice,:root[data-theme=dark] .calculus-option{background:var(--panel)}
:root[data-theme=dark] .choice:has(input:checked),:root[data-theme=dark] .calculus-option:has(input:checked){background:var(--accent-soft)}
:root[data-theme=dark] .personal-desk:not([data-surface=oak]):not([data-surface=blueprint]):not([data-surface=slate]){background:#252f3d;border-color:#50617a;color:var(--ink)}
:root[data-theme=dark] .personal-desk .desk-grain{opacity:.22}
:root[data-theme=dark] .topic-symbol,:root[data-theme=dark] .topic-illustration{color:var(--accent)}
:root[data-theme=dark] .correct-option{border-color:#90c3b1!important}
:root[data-theme=dark] .choice.eliminated{opacity:.65}
:root[data-theme=dark] dialog::backdrop{background:#090f1bbc;backdrop-filter:blur(3px)}
.difficulty-picker{border:0;padding:0;margin:0;min-width:0;grid-column:1 / -1}
.difficulty-picker legend{font-weight:650;font-size:14px;letter-spacing:.015em;margin-bottom:10px}
.level-picker-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;margin-bottom:12px}
.level-picker-heading>div{display:flex;gap:15px}.level-picker-heading .text-btn{font-size:12px}
.level-chips{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px}
.level-chip{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;margin:0!important;padding:7px 2px!important;border:1px solid var(--line);border-radius:6px;background:var(--panel);cursor:pointer;color:var(--ink);line-height:1.2;transition:background .1s,border-color .1s}
.level-chip input{position:absolute;width:1px;height:1px;opacity:0;margin:0}
.level-chip span{font-size:16px;font-weight:650}.level-chip small{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
.level-chip:has(input:checked){background:var(--accent-soft);border-color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent)}
.level-chip:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
.level-chip.level-empty{border-style:dashed}.level-chip.level-empty span{color:var(--muted)}
.level-range{display:flex;align-items:center;gap:9px;margin-top:14px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.level-range label{margin:0!important;padding:0!important}.level-range select{min-width:65px;min-height:38px;margin:0!important;font-size:15px;padding:5px 8px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:5px}
.level-picker-note{font-size:12px!important;line-height:1.6!important;color:var(--muted);margin:10px 0 0!important}
.practice-focus{margin:0 0 22px;border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:visible}
.practice-focus>summary{padding:13px 16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:13px;cursor:pointer;list-style:none}
.practice-focus>summary:before{content:'+';color:var(--accent);font-size:20px;line-height:1}.practice-focus[open]>summary:before{content:'−'}
.practice-focus summary strong{font-weight:600;color:var(--accent)}.practice-focus summary small{margin-left:auto;color:var(--muted);font-size:12px}
.practice-focus-body{padding:0 16px 16px;border-top:1px solid var(--line)}.practice-focus-body .difficulty-picker{padding-top:15px}
.practice-skill-label{display:block;font-size:13px;font-weight:600;margin-top:15px}.practice-skill-label select{display:block;margin-top:7px;padding:9px 12px;min-height:42px;border:1px solid var(--line);border-radius:5px;width:100%;font-size:14px;background:var(--panel);color:var(--ink)}
.focus-status{font-size:12px!important;line-height:1.55!important;margin-top:12px!important;color:var(--muted)}
.empty-practice-focus{padding:28px;max-width:820px;margin:auto}.empty-practice-focus .empty-state{padding:35px 12px}.empty-state p{margin-top:12px}
.physics-schematic-note{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.6}
.physics-option-diagrams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.physics-option-card,.physics-option-diagrams figure{margin:0;border:1px solid var(--line);border-radius:8px;padding:10px;min-width:0;background:var(--panel)}
.physics-option-card>strong,.physics-option-diagrams figcaption{display:block;padding:3px 8px 7px;font-size:14px;color:var(--accent)}
.physics-option-card .physics-svg,.physics-option-diagrams .physics-svg{border:0;padding:0}.physics-label.small-label{font-size:17px}
@media(max-width:600px){.level-chips{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.level-chip{min-height:47px}.practice-focus>summary{gap:8px;padding:12px;font-size:12px}.practice-focus summary small{flex-basis:100%;margin-left:22px}.practice-focus-body{padding:0 12px 14px}.practice-skill-label select{font-size:16px}.empty-practice-focus{padding:16px}.physics-option-diagrams{grid-template-columns:1fr}.level-picker-heading{font-size:12px}}
@media(prefers-reduced-motion:reduce){.level-chip{transition:none}}
/* Physical paper objects retain dark lettering in the otherwise dark desk. */
:root[data-theme=dark] .review-stack{color:#303b43}
:root[data-theme=dark] .review-stack small{color:#5a625c}

/* v13: quiet, readable challenge explanations; no new tiny scroll containers. */
.challenge-step-title{display:block;font-size:1.05em;margin-bottom:.4rem;color:var(--text);line-height:1.45}
.challenge-intro{font-size:.95rem;line-height:1.65;border-left:3px solid var(--accent);padding:.65rem 1rem;background:var(--panel);margin:1rem 0}
.challenge-checks{margin:1.3rem 0;padding:1rem 1.15rem;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.challenge-checks h3,.challenge-fbd h3{font-size:1.15rem;margin:0 0 .65rem}.challenge-checks h4{font-size:1rem;margin:1rem 0 .3rem}.challenge-checks p{line-height:1.7}
.challenge-fbd{margin:1.4rem 0}.challenge-fbd .geometry-diagram{max-width:520px;width:100%;height:auto;max-height:none}.challenge-fbd p{font-size:.95rem;line-height:1.6}
.challenge-checks summary{cursor:pointer;font-weight:600;padding:.5rem 0}.reference-body .challenge-diagram{max-height:none;width:100%;max-width:520px;height:auto;margin:.8rem auto}

/* Large enough to read, without enlarging a schematic to the whole desktop column. */
.physics-svg.challenge-diagram{max-width:620px;margin:12px auto}
.challenge-fbd .physics-svg.challenge-diagram{max-width:510px}

/* retained from refinements-v14.css */
/* Readable Java and separated physics bodies; no changes to user theme choices. */
.java-block{margin:1rem 0;border:1px solid var(--line,#ccd3db);border-radius:10px;background:var(--paper,#f6f7f9);max-width:100%;min-width:0;overflow:visible}
.java-block figcaption{font-family:var(--font-sans,system-ui);font-size:.78rem;letter-spacing:.04em;font-weight:700;padding:.65rem 1rem;border-bottom:1px solid var(--line,#ccd3db);color:var(--muted,#536373)}
.java-block pre,.java-code{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:1.02rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;padding:1rem;margin:0;max-width:100%;color:var(--text,#202a36);text-align:left}
.java-block code{font:inherit}.java-choice{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.01rem;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;min-width:0;max-width:100%;text-align:left;color:inherit}
.csa-source-line{font-size:.85rem;color:var(--muted);line-height:1.6;margin:.7rem 0}.topic-subject-control{display:flex;align-items:center;gap:1rem;margin:1rem 0 1.4rem}.topic-subject-control label{font-weight:650}.topic-subject-control select{max-width:360px;width:100%;min-height:44px}.focus-shortcut-label{display:grid;gap:.5rem;max-width:30rem;margin:1rem 0}.csa-section{border:1px solid var(--line,#bac5d1);border-radius:10px;padding:1rem;margin:1rem 0}.csa-section summary{font-size:1.08rem;font-weight:700;cursor:pointer}.csa-section p{line-height:1.7}.csa-section fieldset{border:0;margin:1rem 0;padding:1rem;background:var(--bg);border-radius:8px}.csa-check-option{display:flex;align-items:flex-start;gap:.8rem;padding:.8rem;border:1px solid var(--line);border-radius:7px;margin:.6rem 0;cursor:pointer}.csa-check-option input{margin-top:.3rem}.csa-check-feedback{font-weight:600;min-height:1.5rem}.csa-guide{width:min(920px,96vw);max-height:94dvh}.csa-guide .reference-body{max-width:100%}
.worked-force-hints{margin:1rem 0;padding-top:.8rem;border-top:1px solid var(--line,#99a9b9);min-width:0}.worked-force-hints h3{font-size:1.1rem;margin:.5rem 0}.worked-force-hints>p{line-height:1.6}.force-body-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:1rem;align-items:start}.force-body-card{margin:0;border:1px solid var(--line,#aabbcc);border-radius:10px;padding:1rem;min-width:0;background:var(--panel,var(--paper,#f7f9fc))}.force-body-card>figcaption{font-size:1rem;font-weight:750;line-height:1.4;margin-bottom:.3rem}.force-body-svg{width:100%;height:auto;max-height:230px;display:block;color:var(--text,#202a36)}.force-arrow path{stroke:#266b96;stroke-width:2.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.force-arrow text{fill:var(--text,#202a36);font-family:system-ui;font-size:15px;font-weight:750}.force-origin{fill:var(--text,#202a36)}.force-legend{margin:.2rem 0 .8rem;padding-left:1.55rem;font-size:.91rem;line-height:1.6}.force-legend li{padding:.14rem 0;overflow-wrap:anywhere}.force-equation{font-size:1rem;padding:.5rem 0;min-width:0;max-width:100%}.force-body-card>p{font-size:.9rem;line-height:1.6;margin:.55rem 0 0}.worked-force-hints .physics-diagram{width:100%;height:auto;max-width:100%}
[data-theme="dark"] .java-block,[data-theme="dark"] .force-body-card{background:#1b2635;border-color:#3b4b61}[data-theme="dark"] .java-block pre,[data-theme="dark"] .java-block code,[data-theme="dark"] .force-arrow text{color:#e3e9f0;fill:#e3e9f0}[data-theme="dark"] .force-arrow path{stroke:#9ecde7}[data-theme="dark"] .force-origin{fill:#e3e9f0}
.cr-work-layout{align-items:start}.physics-option-diagrams{gap:1.25rem;align-items:start}.physics-option-diagrams figure{min-width:0;padding:.8rem;border:1px solid var(--line);border-radius:8px;margin:0}.physics-option-diagrams svg{width:100%;height:auto;max-height:none}.diagram-wrap svg{max-width:100%;height:auto}.worked-force-hints math{max-width:100%}
@media(max-width:600px){.java-block pre{font-size:.95rem;padding:.8rem}.topic-subject-control{align-items:stretch;flex-direction:column;gap:.5rem}.topic-subject-control select{max-width:100%}.force-body-grid{grid-template-columns:1fr}.force-body-card{padding:.85rem}.csa-section{padding:.8rem}.java-choice{font-size:.95rem}.csa-guide{margin:1dvh auto;max-height:98dvh;width:98vw}.csa-section fieldset{padding:.6rem}}

/* retained from force-diagrams.css */
/* Physics drawings are reading surfaces, not decoration. The paper stays light
   in both themes, with softened paper in dark mode and fully labelled vectors. */
.worked-force-hints{margin:1.4rem 0;min-width:0;border-top:1px solid var(--line);padding-top:1rem}
.worked-force-hints>h3{font-size:1.2rem;margin:.25rem 0 .65rem}
.worked-force-hints>p,.force-scale-note>p{font-size:15px!important;line-height:1.65!important;max-width:75ch;margin:.6rem 0!important}
.force-scale-note{border-left:3px solid var(--muted);padding:.3rem .8rem;margin:1rem 0 1.2rem}
.force-scale-note strong{font-size:15px}.force-scale-note>p{margin:.4rem 0!important}
.force-body-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:20px;align-items:start}
.force-body-card{--fbd-paper:#faf9f5;--fbd-ink:#182532;--fbd-guide:#738394;background:var(--fbd-paper)!important;color:var(--fbd-ink)!important;border:1px solid #929ca4!important;border-radius:3px;box-shadow:none;padding:16px 16px 14px;margin:0;min-width:0}
.force-body-card>figcaption{font:700 18px/1.45 system-ui,sans-serif;color:var(--fbd-ink);margin-bottom:6px;text-wrap:balance}
.force-axis-note{font-size:14px!important;line-height:1.5!important;margin:0 0 4px!important;color:#3d4d59!important}
.force-body-svg.textbook-fbd{display:block;width:100%;height:auto!important;max-height:none!important;overflow:visible;color:var(--fbd-ink);margin:0}
.textbook-fbd .fbd-paper{fill:var(--fbd-paper,#faf9f5);stroke:none}
.textbook-fbd .fbd-body-point{fill:var(--fbd-ink,#182532);stroke:none}
.textbook-fbd .fbd-axis,.textbook-fbd .fbd-projection{stroke:var(--fbd-guide,#738394);stroke-width:1.15;stroke-dasharray:3 5;fill:none}
.textbook-fbd .fbd-axis-head,.textbook-fbd .fbd-right-angle{stroke:var(--fbd-guide,#738394);stroke-width:1.15;fill:none}
.textbook-fbd .fbd-projections circle{fill:var(--fbd-guide,#738394);stroke:none}
.textbook-fbd .fbd-axis-label{fill:#43535f!important;stroke:var(--fbd-paper,#faf9f5);stroke-width:4;paint-order:stroke;font:italic 15px Georgia,serif}
.textbook-fbd .fbd-force{color:#174b75}.textbook-fbd .fbd-weight{color:#984336}.textbook-fbd .fbd-normal{color:#286451}.textbook-fbd .fbd-friction{color:#8c511b}.textbook-fbd .fbd-contact{color:#5c4476}.textbook-fbd .fbd-tension{color:#174b75}.textbook-fbd .fbd-applied{color:#245971}
.textbook-fbd .fbd-shaft{stroke:currentColor;stroke-width:2.8;stroke-linecap:butt;fill:none}.textbook-fbd .fbd-head{stroke:none;fill:currentColor}
.textbook-fbd .fbd-leader,.textbook-fbd .fbd-tail-guide{stroke:#7d8992;stroke-width:.95;stroke-dasharray:2 3;fill:none}
.textbook-fbd .fbd-label-backing{fill:var(--fbd-paper,#faf9f5);stroke:none}
.textbook-fbd text.fbd-force-label{fill:var(--fbd-ink,#182532)!important;font:italic 700 21px Georgia,serif;stroke:none}
.textbook-fbd text.fbd-force-value{fill:var(--fbd-ink,#182532)!important;font:18px Arial,sans-serif;stroke:none}
.textbook-fbd .fbd-caption{fill:#43535f!important;font:13px Arial,sans-serif;stroke:none}
.force-key{display:grid;gap:6px;margin:8px 0 12px;font-size:14px;line-height:1.5}
.force-key>div{display:grid;grid-template-columns:4rem minmax(0,1fr);gap:10px}.force-key dt{font-family:Georgia,serif;font-style:italic;font-weight:700}.force-key dd{margin:0;overflow-wrap:anywhere}
.force-body-card .force-equation{border-top:1px solid #cad0d2;border-bottom:1px solid #cad0d2;padding:10px 0;margin:10px 0;color:#182532!important;font-size:19px!important;overflow:visible}
.force-body-card .force-equation math{color:#182532!important;font-size:19px!important}
.force-body-card .force-body-note{font-size:15px!important;line-height:1.65!important;margin:.5rem 0!important;color:#283b49!important}
.force-body-card .force-offset-note,.force-body-card .force-zero-note{font-size:13px!important;line-height:1.5!important;color:#43535f!important;margin:10px 0 0!important}
[data-theme="dark"] .force-body-card{--fbd-paper:#e8eae6;--fbd-ink:#142535;--fbd-guide:#6b7b89;border-color:#a6afb5!important}
[data-theme="dark"] .force-body-card p,[data-theme="dark"] .force-body-card dd,[data-theme="dark"] .force-body-card dt{color:var(--fbd-ink)!important}
.force-closing-note{font-size:14px!important;line-height:1.6}
/* Never squeeze a worked FBD into the former ~200px hint rail. Once opened,
   the diagrams occupy a full-width study row; question/answer controls stay intact. */
.challenge-fbd .force-body-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}
@media(max-width:600px){.force-body-grid{grid-template-columns:1fr}.force-body-card{padding:12px 10px}.force-body-card>figcaption{font-size:17px}.force-body-card .force-body-note{font-size:14px!important}.force-axis-note{font-size:13px!important}.force-key{font-size:13px}.force-key>div{grid-template-columns:3.8rem minmax(0,1fr)}}
@media print{.force-body-card{break-inside:avoid;--fbd-paper:white;border:1px solid #666!important}.textbook-fbd{max-width:400px}.force-scale-note{color:#111}}

.force-body-svg.textbook-fbd{max-width:470px;margin-left:auto;margin-right:auto}.force-body-grid:has(>.force-body-card:only-child){max-width:700px}.force-equation br{display:block;content:"";margin-top:10px}
/* Direction-choice diagrams do not have specified force magnitudes. They keep
   explicit force names and guide axes, without claiming an invented scale. */
.candidate-force-diagram{background:#e8eae6;border:1px solid #82919d;border-radius:3px;--physics-line:#283a47;--physics-direction:#245571;--physics-label:#182532;--physics-label-bg:#e8eae6;color:#182532}
.candidate-force-diagram text.physics-label{fill:#182532!important;stroke:#e8eae6!important;stroke-width:3px;paint-order:stroke}
.candidate-force-diagram .physics-direction{stroke:#245571!important}.candidate-force-diagram .physics-box{fill:#182532!important;stroke:#182532!important}.candidate-force-diagram .physics-dashed{stroke:#7b8994!important;stroke-width:1.1;stroke-dasharray:3 5}
.candidate-fbd-guides{opacity:.6;pointer-events:none}
.desmos-startup-details{width:100%;max-width:720px;border:1px solid var(--line);border-radius:6px;padding:10px 12px}.desmos-startup-details summary{cursor:pointer;font-weight:600}.desmos-startup-details pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:12px;line-height:1.55;background:var(--panel);padding:12px;border-radius:5px;max-height:220px;overflow:auto}

/* tokens: canonical source module */
:root{--bg:#f5f6f7;--panel:#fff;--surface:#fff;--text:#222b36;--muted:#566270;--line:#d9dfe4;--accent:#285f58;--accent-soft:#eaf2ef;--wrong:#a12d38;--good:#23614d;--paper:#f4f1e9;--radius:8px;--shadow:0 12px 42px #172b3a14;--font-body:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;color-scheme:light}
:root[data-theme=dark]{--bg:#202731;--panel:#29323e;--surface:#29323e;--text:#f0f2f5;--muted:#b8c3cc;--line:#4a5867;--accent:#a4d6ca;--accent-soft:#344a48;--wrong:#ffadb3;--good:#b3dfc4;--paper:#e5e4dc;--shadow:0 12px 42px #0002;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-body);font-size:17px;line-height:1.6}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:3px}h1,h2,h3,h4,p{overflow-wrap:break-word}h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,3.4vw,43px);font-weight:500;line-height:1.2;letter-spacing:-.035em;margin:0 0 16px}h2{font-size:23px;line-height:1.3;letter-spacing:-.015em}h3{font-size:19px;line-height:1.4}p{max-width:75ch}small,.small{font-size:14px}.muted{color:var(--muted)}.eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:.12em;margin-bottom:12px;color:var(--muted)}svg.icon{width:20px;height:20px;flex-shrink:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:1px solid var(--line);border-radius:6px;padding:9px 17px;background:var(--panel);color:var(--text);font-size:16px;font-weight:600;line-height:1.4;text-decoration:none;box-shadow:none;transition:border-color 150ms}.btn.primary{background:var(--accent);color:var(--on-accent,#fff);border-color:var(--accent)}[data-theme=dark]{--on-accent:#1b302d}.btn:disabled{opacity:.58}.btn.small{min-height:42px;font-size:14px;padding:8px 12px}.text-btn{border:0;background:transparent;color:var(--accent);padding:9px 0;min-height:44px;font-size:16px;text-align:left;text-decoration:none;display:inline-flex;align-items:center;gap:8px}.icon-btn{height:44px;width:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:6px}.panel{border:1px solid var(--line);background:var(--panel);padding:24px;border-radius:8px;box-shadow:none;margin:24px 0}.field-input,input:not([type=checkbox],[type=radio],[type=range],[type=hidden]),select,textarea{border:1px solid var(--line);border-radius:5px;background:var(--panel);color:var(--text);min-height:44px;padding:9px 12px;max-width:100%}.form-error{color:var(--wrong)}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:22px 0 32px}.page-heading p{color:var(--muted);font-size:17px;margin-bottom:0}.button-row{display:flex;flex-wrap:wrap;gap:12px}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}.table-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:6px}table{border-collapse:collapse}th,td{padding:13px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{font-size:14px}td{font-size:16px}table small{display:block;color:var(--muted)}[hidden]{display:none!important}dialog{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:10px;box-shadow:var(--shadow);max-height:92dvh}dialog::backdrop{background:#15232c65}.dialog-header{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-header h2{margin:0}.dialog-header-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.page-footer{border-top:1px solid var(--line);margin-top:48px;padding:22px 0;color:var(--muted);font-size:13px;display:flex;justify-content:space-between;gap:16px}.page-footer a{color:inherit}
[data-reduce-motion=true] *,[data-reduce-motion=true] *::before,[data-reduce-motion=true] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}[data-large=true] .problem-prompt{font-size:22px}[data-large=true] .main-expression{font-size:28px}

/* shell: canonical source module */
.mmd-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100dvh}.mmd-shell .sidebar{position:sticky;top:0;height:100dvh;overflow:auto;background:var(--panel);border-right:1px solid var(--line);padding:28px 16px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;border:0;background:none;color:var(--text);padding:4px 8px 28px;text-align:left}.brand .brand-subtitle{display:none}.brand-text{font-size:20px}.mmd-shell .nav{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:13px;border:0;padding:11px 14px;min-height:48px;border-radius:5px;font-size:16px;text-align:left;background:transparent;color:var(--muted);width:100%;font-weight:500}.nav-item.selected{color:var(--accent);background:var(--accent-soft);font-weight:700}.nav-item .count{margin-left:auto;font-size:12px}.nav-group-label{font-size:11px;letter-spacing:.1em;font-weight:700;margin:26px 14px 8px;color:var(--muted)}.sidebar-bottom{margin-top:auto;padding-top:30px}.sidebar-bottom p{font-size:13px;padding:0 14px}.main-wrap{min-width:0;width:100%}.topbar{display:flex;align-items:center;justify-content:space-between;padding:18px 38px;border-bottom:1px solid var(--line);gap:20px;min-height:80px;background:var(--panel)}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:15px}.topbar-right{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.command-trigger{border:1px solid var(--line);border-radius:5px;background:var(--bg);display:flex;align-items:center;gap:12px;padding:9px 12px;font-size:14px;color:var(--muted);min-height:42px}.command-trigger kbd{font-size:11px}.saved-label{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px}.user-menu{background:none;border:0;display:flex;align-items:center;gap:10px;color:var(--text);font-size:14px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;font-size:12px;background:var(--accent-soft);color:var(--accent)}.main{padding:25px 40px 0;max-width:1400px;margin:auto;min-width:0}.mobile-menu,.nav-close,.mobile-dock{display:none}.section-tabs{display:flex;gap:24px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:30px;scrollbar-width:thin}.section-tabs button{background:none;border:0;border-bottom:3px solid transparent;color:var(--muted);font-size:15px;white-space:nowrap;min-height:48px;padding:10px 0}.section-tabs button[aria-current=page]{border-color:var(--accent);color:var(--accent);font-weight:700}.continue-panel{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 26px;border-left:4px solid var(--accent);background:var(--accent-soft);margin-bottom:26px}.continue-panel h2{margin:0 0 8px}.continue-panel p{margin:0}.continue-panel .eyebrow{margin-bottom:8px}.practice-start{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:30px;padding:32px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.practice-start h2{margin:0;font-size:26px}.practice-start p{margin:10px 0}.practice-start .muted{font-size:15px}.start-actions{align-self:center;display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:260px}.start-actions .text-btn{justify-content:center}.home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 38px}.home-shortcuts .btn{justify-content:flex-start;padding:20px;gap:15px;font-weight:400}.home-shortcuts strong,.home-shortcuts small{display:block;text-align:left}.home-shortcuts small{color:var(--muted);font-size:13px;margin-top:4px}.home-evidence{border-top:1px solid var(--line);padding-top:25px;display:grid;grid-template-columns:1fr auto;gap:20px}.home-evidence h2{margin:0 0 8px}.home-evidence p{font-size:15px;color:var(--muted)}.home-evidence dl{display:flex;gap:38px;margin:0}.home-evidence dt{font-size:14px;color:var(--muted)}.home-evidence dd{margin:0;font-size:28px}.home-first{max-width:75ch}.home-classroom{border-top:1px solid var(--line);padding-top:24px;margin-top:28px;display:flex;justify-content:space-between;align-items:center;gap:24px}.home-classroom h2{margin:0 0 8px}.home-classroom p{font-size:15px;color:var(--muted);margin:0}.study-search{display:grid;grid-template-columns:1fr 280px;gap:20px;margin-bottom:28px}.study-search label{font-size:14px;display:grid;gap:7px}.study-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.study-topic{display:grid;grid-template-columns:110px minmax(0,1fr);gap:20px;border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:24px;text-decoration:none;color:var(--text);cursor:pointer;transition:border-color 150ms,background 150ms}.study-topic h2{font-size:20px;margin:0 0 10px}.study-topic p{font-size:15px;color:var(--muted);margin:0 0 14px}.study-topic small{font-size:13px;color:var(--muted)}.study-topic-copy{min-width:0}.study-topic .topic-symbol{color:var(--accent);width:110px;min-width:0;align-self:start;display:flex;justify-content:center;align-items:center}.study-topic .topic-symbol .topic-glyph{width:100%;height:auto;max-height:76px;position:static;display:block}.study-topic:hover{border-color:var(--accent);background:var(--accent-soft)}.topic-open-label{display:flex;align-items:center;gap:10px;color:var(--accent);font-size:15px;font-weight:600;margin-top:20px}.topic-symbol{color:var(--accent)}.topic-primary-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:32px}.topic-overview{display:grid;grid-template-columns:1.4fr 1fr;gap:42px}.topic-skills{display:grid;gap:4px}.topic-skills button{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;color:var(--text);min-height:52px;font-size:16px}.topic-overview aside{border-left:1px solid var(--line);padding-left:28px}.topic-overview aside p{font-size:15px;color:var(--muted)}.topic-levels{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.topic-levels span{border:1px solid var(--line);padding:8px 4px;text-align:center;border-radius:4px}.topic-levels b,.topic-levels small{display:block}.topic-levels small{font-size:10px}.topic-levels .unavailable{opacity:.58}.topic-publication{border-top:1px solid var(--line);margin-top:32px;padding:20px 0;color:var(--muted);font-size:15px}.evidence-table{width:100%}.shop-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.shop-card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:20px;display:flex;flex-direction:column;gap:15px}.shop-card h3{margin:5px 0}.shop-card p{font-size:14px;color:var(--muted);margin:0}.shop-card small{text-transform:capitalize;color:var(--muted);font-size:12px}.shop-art{height:170px;display:flex;justify-content:center;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px}.shop-art .notebook-cover-preview{max-height:160px;width:auto}.shop-symbol{font-size:56px;color:var(--accent)}.shop-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:auto}.personalization-preview{border:1px solid var(--line);padding:35px;display:grid;grid-template-columns:260px 1fr;gap:40px;align-items:center;background:var(--panel)}.personalization-preview dl div{display:grid;grid-template-columns:110px 1fr;gap:16px;padding:5px 0}.personalization-preview dt{text-transform:capitalize;color:var(--muted)}.personalization-preview dd{margin:0}.skip-link{position:fixed;top:0;left:20px;transform:translateY(-120%);z-index:1000;padding:12px;background:var(--accent);color:var(--panel)}.skip-link:focus{transform:none}
@media(max-width:1180px){.topbar{padding:16px 24px}.topbar-right .saved-label{display:none}.command-trigger kbd{display:none}.main{padding:22px 24px 0}.practice-start{grid-template-columns:1fr}.start-actions{align-items:flex-start}.start-actions .text-btn{justify-content:flex-start}.shop-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.home-shortcuts .btn{padding:15px;gap:10px}}
@media(max-width:980px){.mmd-shell{display:block}.mmd-shell .sidebar{position:fixed;left:0;top:0;width:min(310px,88vw);transform:translateX(-102%);height:100dvh;padding-bottom:24px}.mmd-shell .sidebar.open{transform:none}.nav-backdrop{display:block;position:fixed;inset:0;z-index:25;background:#172d3c70;border:0}.mobile-menu,.nav-close{display:inline-flex}.nav-close{position:absolute;right:10px;top:10px}.main{padding-bottom:82px}.mobile-dock{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(6,1fr);z-index:20;background:var(--panel);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.mobile-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:none;border:0;color:var(--muted);font-size:11px;min-height:62px}.mobile-dock button[aria-current=page]{color:var(--accent);background:var(--accent-soft)}.topbar{padding:12px 18px}.command-trigger span{display:none}.command-trigger{padding:9px}.topbar-right{gap:10px}.topbar-right .user-menu>span:last-child{display:none}.sidebar-bottom{margin-top:30px}}
@media(max-width:600px){.main{padding:20px 18px 82px}.page-heading{margin:10px 0 24px}.page-heading p{font-size:16px}.practice-start{padding:24px;gap:14px}.start-actions{min-width:0;align-items:stretch}.start-actions .btn{width:100%;font-size:15px}.home-shortcuts{grid-template-columns:1fr;gap:10px;margin:20px 0 28px}.home-shortcuts .btn{padding:16px 20px}.home-shortcuts small{font-size:13px}.continue-panel,.home-classroom{align-items:flex-start;flex-direction:column}.home-evidence{grid-template-columns:1fr}.home-evidence dl{gap:26px}.study-search{grid-template-columns:1fr}.study-topic-grid{grid-template-columns:1fr}.study-topic{padding:20px;grid-template-columns:84px minmax(0,1fr);gap:16px}.study-topic .topic-symbol{width:84px}.section-tabs{gap:22px}.topic-overview{grid-template-columns:1fr;gap:20px}.topic-overview aside{border:0;padding:0}.shop-gallery{grid-template-columns:1fr}.personalization-preview{grid-template-columns:1fr;padding:24px}.personalization-preview>.notebook-cover-preview{max-width:220px;margin:auto}.page-footer{display:block}.page-footer span{display:block}.topbar .quiet-toggle{display:none}.main .panel{padding:20px}}

.daily-goal{margin:20px 9px 4px;padding:15px 10px;border-top:1px solid var(--line);font-size:13px}.daily-goal>div{display:flex;justify-content:space-between;gap:10px}.daily-goal strong{font-size:13px}.daily-goal>div>span{font-variant-numeric:tabular-nums;color:var(--accent);font-weight:600}.daily-goal progress{display:block;width:100%;height:7px;accent-color:var(--accent);margin:10px 0}.daily-goal small{font-size:11px;color:var(--muted)}.daily-goal-mobile{display:none}progress{border:0;border-radius:10px;overflow:hidden;background:var(--line)}progress::-webkit-progress-bar{background:var(--line);border-radius:10px}progress::-webkit-progress-value{background:var(--accent);border-radius:10px}progress::-moz-progress-bar{background:var(--accent);border-radius:10px}@media(max-width:980px){.daily-goal-mobile{display:grid;grid-template-columns:170px 1fr;align-items:center;gap:0 18px;margin:0;padding:10px 20px;background:var(--panel);border-top:0;border-bottom:1px solid var(--line)}.daily-goal-mobile small{grid-column:1/-1}.daily-goal-mobile progress{margin:4px 0}}@media(max-width:420px){.study-topic{grid-template-columns:1fr}.study-topic .topic-symbol{width:100px;height:56px;justify-content:flex-start}.study-topic h2{font-size:21px}.topic-open-label{margin-top:16px}.mobile-dock button{font-size:10px;min-height:62px}.daily-goal-mobile{grid-template-columns:140px 1fr}.page-heading{gap:16px}}
/* Account-scoped music discovery next to Room. Animation settles and respects reduced motion. */
.nav-item{position:relative}.room-music-hint-dot{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;margin-left:auto;border-radius:50%;color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 2px var(--accent-soft),0 0 12px var(--accent-soft);animation:room-tip-glow 2.5s ease-in-out 3}
.room-music-hint-dot svg{width:18px;height:18px}.room-music-hint{background:var(--accent-soft);color:var(--text);border:1px solid var(--line);border-radius:8px;font-size:13px;padding:12px;margin:6px 6px 10px;line-height:1.5}.room-music-hint strong{font-size:13px}.room-music-hint p{font-size:13px;margin:5px 0 8px}.room-music-hint>div{display:flex;gap:10px;justify-content:space-between}.room-music-hint .text-btn{font-size:13px;min-height:36px;padding:4px 0}.room-music-hint-mobile{display:none}
@keyframes room-tip-glow{50%{box-shadow:0 0 0 4px var(--accent-soft),0 0 15px var(--accent)}}
@media(max-width:980px){.mobile-dock [data-page=room]{position:relative}.mobile-dock .room-music-hint-dot{position:absolute;top:3px;right:6px;width:19px;height:19px;margin:0}.mobile-dock .room-music-hint-dot svg{width:14px;height:14px}.room-music-hint-mobile{display:block;position:fixed;right:12px;bottom:calc(68px + env(safe-area-inset-bottom));width:min(285px,calc(100vw - 24px));margin:0;z-index:21;box-shadow:0 8px 24px #0002}.nav-is-open .room-music-hint-mobile{display:none}.topbar .quiet-toggle{display:inline-flex}}
@media(prefers-reduced-motion:reduce){.room-music-hint-dot{animation:none}}html[data-reduce-motion=true] .room-music-hint-dot,html[data-reducemotion=true] .room-music-hint-dot{animation:none}

/* workspace: canonical source module */
#workspace.workspace-page{display:block;width:100%;max-width:1240px;min-height:100dvh;margin:0 auto;padding:0 32px 40px;background:var(--panel);color:var(--text);border:0;border-radius:0;box-shadow:none;position:relative;overflow:visible;max-height:none}.workspace-open{background:var(--panel)}#workspace .dialog-header{padding:20px 0;border-bottom:1px solid var(--line);flex-wrap:wrap;position:relative;background:var(--panel)}#workspace .dialog-header .eyebrow{font-size:11px;margin-bottom:7px}#workspace .workspace-topic-title{font-size:22px;display:flex;gap:12px;align-items:center}#workspace .dialog-header-right>.pill{display:none}#workspace .session-progress{height:3px;background:var(--line)}#workspace .session-progress>div{height:3px;background:var(--accent)}#workspace .question-tools{display:flex;flex-wrap:wrap;gap:10px;padding:16px 0;margin:0;border-bottom:1px solid var(--line);background:none}#workspace .question-tool-note{display:none}#workspace .workspace-body{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:34px;overflow:visible;max-height:none;height:auto;min-height:0;align-items:start}#workspace .problem-pane{padding:28px 0;max-height:none;height:auto;overflow:visible;min-width:0}#workspace .study-rail{border-left:1px solid var(--line);padding:26px 0 20px 24px;max-height:none;height:auto;overflow:visible;background:transparent}#workspace .study-rail>.rail-section:first-child,#workspace .study-rail>.rail-section:nth-child(2),#workspace .rail-bottom{display:none}#workspace .rail-section{padding:0 0 24px;margin:0 0 20px;border-bottom:1px solid var(--line)}#workspace .rail-section p{font-size:14px}#workspace .rail-section .eyebrow{font-size:11px}#workspace .problem-meta{display:flex;flex-wrap:wrap;gap:10px 22px;margin:12px 0 22px;font-size:12px;color:var(--muted);font-weight:600;letter-spacing:.04em}#workspace .problem-meta .problem-level{margin-left:auto}#workspace .problem-pane>h3{font-family:Georgia,serif;font-size:27px;line-height:1.35;margin:0 0 18px}#workspace .problem-prompt{font-size:19px;line-height:1.65;margin:16px 0;max-width:70ch}#workspace .main-expression{font-size:25px;margin:24px 0;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:8px 2px}#workspace .main-expression math{font-size:1em}#workspace .answer-fields{margin:26px 0}#workspace .problem-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:22px 0;margin-top:20px;border-top:1px solid var(--line);position:static;background:none}#workspace .keyboard-note{font-size:13px;color:var(--muted)}#workspace .practice-focus{border:1px solid var(--line);padding:12px 16px;border-radius:6px;margin:0 0 22px;background:var(--bg)}#workspace .practice-focus summary{display:flex;flex-wrap:wrap;gap:12px;font-size:14px;cursor:pointer}#workspace .practice-focus summary strong{color:var(--text);font-weight:500}#workspace .practice-focus summary small{margin-left:auto}#workspace .practice-focus-body{padding-top:16px}.focus-pending{border-left:3px solid var(--accent);padding:10px 16px;background:var(--accent-soft);font-size:14px;margin:12px 0}.save-receipt{font-size:13px;color:var(--muted)}.save-receipt.failed{color:var(--wrong)}#workspace .feedback-panel{margin:24px 0;border:1px solid var(--line);border-left:4px solid var(--good);background:var(--panel);padding:22px;box-shadow:none;border-radius:6px}#workspace .feedback-panel.wrong{border-left-color:var(--wrong)}#workspace .feedback-heading{font-size:21px;display:flex;gap:12px;align-items:center;font-weight:700}#workspace .feedback-panel>p{font-size:15px;color:var(--muted)}#workspace .solution{border-top:1px solid var(--line);margin-top:22px;padding-top:15px;background:none}.solution>summary{font-size:18px;font-weight:650;color:var(--text);padding:8px 0;cursor:pointer}.solution-math{font-size:23px;padding:14px 0;overflow-x:auto;max-width:100%}.step-why{font-size:14px;color:var(--muted);margin-top:10px}.step-why summary{cursor:pointer}.precision-note{border-left:3px solid var(--line);padding:10px 14px;font-size:14px;color:var(--muted);margin:18px 0}.selection-reason{font-size:13px;color:var(--muted);margin:0 0 20px}#workspace .confidence-picker{border:0;padding:0;margin:20px 0;font-size:14px}.confidence-picker legend{font-size:14px}#workspace .choice-grid{gap:12px;margin:22px 0}#workspace .choice{min-height:60px;padding:16px;font-size:18px;border:1px solid var(--line);border-radius:6px;background:var(--panel)}#workspace .diagram-wrap{max-width:100%;margin:24px 0;padding:16px 0;overflow:visible}#workspace .diagram-wrap svg{max-width:100%;height:auto;max-height:440px}#workspace .diagram-caption{font-size:14px;color:var(--muted);margin:12px 0}.question-fullscreen.workspace-page{max-width:1500px!important}.question-reading .answer-fields,.question-reading .choice-grid,.question-reading .problem-actions,.question-reading .confidence-picker{display:none!important}.question-reading .study-rail{display:none}.question-reading .workspace-body{grid-template-columns:1fr!important}.question-reading .problem-pane{max-width:900px;width:100%;margin:auto}.question-reading .problem-prompt{font-size:22px!important}.question-reading .main-expression{font-size:29px!important}.reading-return{margin:16px 0}.workspace-page .session-summary{max-width:760px;margin:50px auto}.workspace-page .celebration-layer{position:fixed;pointer-events:none;z-index:50}.workspace-page .celebration-piece{opacity:.7}#workspace .rapid-controls{display:flex;flex-wrap:wrap;gap:14px;font-size:13px;padding:8px 0}#workspace .challenge-intro{display:none}#workspace .csa-source-line{font-size:13px;border:0;margin:10px 0}#workspace .csa-source-line .text-btn{font-size:13px;padding:0;min-height:30px}
@media(max-width:1000px){#workspace .workspace-body{grid-template-columns:1fr}#workspace .study-rail{border:0;border-top:1px solid var(--line);padding:22px 0;display:grid;grid-template-columns:1fr 1fr;gap:24px}#workspace .study-rail .rail-section{margin:0}#workspace .problem-pane{padding-bottom:15px}#workspace .dialog-header-right .quiet-toggle{display:none}}
@media(max-width:600px){#workspace.workspace-page{padding:0 18px 30px}#workspace .dialog-header{padding:14px 0;gap:10px}#workspace .workspace-topic-title{font-size:18px}#workspace .dialog-header>.dialog-header-right{gap:6px;width:100%;justify-content:flex-end}#workspace .dialog-header>.dialog-header-right .fullscreen-toggle{margin-right:auto}#workspace .question-tools{gap:8px;padding:13px 0}#workspace .question-tools .btn{font-size:13px;min-height:42px;padding:8px 11px}#workspace .problem-pane>h3{font-size:24px}#workspace .problem-prompt{font-size:18px}#workspace .main-expression{font-size:24px}#workspace .study-rail{grid-template-columns:1fr}#workspace .feedback-panel{padding:17px}#workspace .feedback-heading{font-size:19px}#workspace .choice{font-size:17px;padding:12px}#workspace .problem-meta .problem-level{margin-left:0}.workspace-page .keyboard-note{display:none}#workspace .problem-actions .btn{width:100%}.precision-note{font-size:13px}#workspace .diagram-wrap{padding:0}#workspace .dialog-header-right .fullscreen-toggle{font-size:12px}}
/* Minimal room practice is the same form and session engine, not a new grader. */
#workspace.room-study-mode.workspace-page{max-width:none;min-height:100dvh;padding:0 0 32px;background:#d7ccbb;color:#243334;isolation:isolate;--text:#243334;--muted:#5e6b68;--line:#d4cbbd;--panel:#fffcf6;--surface:#fffcf6;--bg:#f6f0e6;--accent:#286860;--on-accent:#fff;--accent-soft:#e1ede5;--good:#287a4b;--wrong:#a93939}
#workspace.room-study-mode .room-study-backdrop{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;display:grid;place-items:center}
#workspace.room-study-mode .room-study-backdrop .room-scene{width:max(100vw,160vh);min-height:100vh;max-width:none;border-radius:0;opacity:.9;flex-shrink:0}
#workspace.room-study-mode .dialog-header{max-width:1000px;box-sizing:border-box;margin:auto;padding:16px 24px;border:0;background:#fffcf6f5;border-radius:0 0 14px 14px}
#workspace.room-study-mode .dialog-header .eyebrow,#workspace.room-study-mode .session-progress{display:none}
#workspace.room-study-mode .workspace-topic-title{font-size:18px}
#workspace.room-study-mode .workspace-body{display:block;max-width:860px;margin:24px auto 0;padding:0 24px;position:relative}
#workspace.room-study-mode .problem-pane{box-sizing:border-box;background:#fffcf6f8;border:1px solid #d9cfbe;border-radius:18px;box-shadow:0 18px 50px #0002;padding:26px 30px;position:relative}
#workspace.room-study-mode:not(.room-tools-open) .question-tools,#workspace.room-study-mode:not(.room-tools-open) .study-rail,#workspace.room-study-mode:not(.room-tools-open) .practice-focus,#workspace.room-study-mode:not(.room-tools-open) .confidence-picker,#workspace.room-study-mode:not(.room-tools-open) .selection-reason,#workspace.room-study-mode:not(.room-tools-open) .problem-meta span:nth-child(2){display:none}
#workspace.room-study-mode .problem-meta{margin:0 0 14px;font-size:12px}
#workspace.room-study-mode .problem-pane>h3{font-size:25px;margin:0 0 12px}
#workspace.room-study-mode .problem-prompt{font-size:19px;line-height:1.65;max-width:none}
#workspace.room-study-mode .problem-actions{padding:16px 0 0;margin-top:16px}
#workspace.room-study-mode .question-tools{max-width:960px;margin:auto;padding:12px 20px;background:var(--panel)}
#workspace.room-study-mode.room-tools-open .study-rail{padding:20px;border:0;background:var(--panel);margin-top:14px;border-radius:12px}
#workspace.room-study-mode .feedback-panel{background:var(--panel)}
#workspace.room-study-mode .session-summary{padding:24px;background:var(--panel);border-radius:16px}
@media(max-width:760px){#workspace.room-study-mode .workspace-body{padding:0 12px;margin-top:14px}#workspace.room-study-mode .problem-pane{padding:20px 16px}#workspace.room-study-mode .dialog-header{padding:12px 14px}}

/* teaching: canonical source module */
:root{--ink:var(--text);--cream:#eeeee6;--cream-ink:#414438;--wrong-bg:#fcf3f3}
[data-theme=dark]{--ink:var(--text);--cream:#38423e;--cream-ink:#e1e7df;--wrong-bg:#42353c}
.scope-pending{border-left:3px solid var(--accent);padding:12px 16px;background:var(--accent-soft);font-size:14px;margin:12px 0}.teaching-content{max-width:75ch;font-size:17px;line-height:1.65}.teaching-content h3{font-size:20px;margin:26px 0 14px}.teaching-content p{font-size:17px!important;margin:12px 0}.teaching-content .teaching-equation{font-size:24px;overflow-x:auto;padding:12px 2px;max-width:100%;margin:12px 0}.teaching-content math{font-size:1em}.teaching-content pre{overflow-x:auto;padding:18px;background:var(--bg);border:1px solid var(--line);font-size:16px;white-space:pre;max-width:100%;line-height:1.6}.teaching-content .reason{border-left:2px solid var(--line);padding-left:16px;color:var(--muted)}.teaching-content .final-answer{border-left:4px solid var(--accent);padding:14px 20px;background:var(--accent-soft);margin:24px 0}.teaching-content .teaching-meta{font-size:12px!important;color:var(--muted);margin-top:24px}.teaching-content .diagram-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.teaching-content figure{margin:16px 0}.teaching-content figcaption{font-size:14px;color:var(--muted)}.teaching-content .diagram-pair svg{width:100%;height:auto;max-height:350px}.teaching-content .step-why{font-size:15px;margin:6px 0 16px}.teaching-content summary{cursor:pointer;font-weight:600}.teaching-content table{width:100%;font-variant-numeric:tabular-nums}.content-render-error{border:2px solid var(--wrong);padding:18px;color:var(--wrong);font-size:16px}.teaching-content .key-idea{font-size:18px!important}.topic-levels small{font-size:12px}.home-shortcuts small,.study-topic small,.shop-card small{font-size:14px}.eyebrow{font-size:12px}.catalogue-table th{position:sticky;top:0;background:var(--panel)}
@media(max-width:600px){.teaching-content .diagram-pair{grid-template-columns:1fr}.teaching-content .teaching-equation{font-size:22px}.teaching-content p{font-size:17px!important}.topic-levels{grid-template-columns:repeat(5,minmax(0,1fr))}.topic-levels small{font-size:11px}}
.quality-workspace{max-width:1200px;margin:auto;padding:32px}.quality-workspace>.button-row{margin:20px 0}.quality-example-list{display:grid;grid-template-columns:1fr 1fr;gap:16px}.quality-example{text-align:left;display:flex;flex-direction:column;gap:10px;margin:0;font-size:17px}.quality-example span,.quality-example small{font-size:14px;color:var(--muted)}#quality-example:not(:empty){padding:30px 0;max-width:850px;margin:auto}.quality-diagrams{display:grid;grid-template-columns:1fr 1fr;gap:25px}.quality-diagrams figure{margin:0;min-width:0;overflow:auto;border:1px solid var(--line);padding:20px}.quality-diagrams svg{display:block;max-width:100%;min-width:280px;max-height:520px;margin:20px auto}.quality-diagrams h2{font-size:20px}.quality-diagrams figcaption{font-size:16px}.teaching-content .diagram-pair figure{min-width:0;overflow-x:auto}.teaching-content .diagram-pair svg{min-width:280px}.scope-pending{font-size:14px;line-height:1.6;padding:12px 16px;border-left:3px solid var(--accent);background:var(--accent-soft);margin:16px 0}
@media(max-width:700px){.quality-workspace{padding:20px}.quality-example-list,.quality-diagrams{grid-template-columns:1fr}}
.teaching-content .table-wrap,.quality-workspace .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.teaching-content .table-wrap th,.teaching-content .table-wrap td{min-width:7em;vertical-align:top}.quality-workspace .table-wrap{margin-top:20px}

/* One ordered-list contract in practice, Classroom, and solution reviews. Native markers reserve their own lane. */
.solution-steps{list-style:decimal outside;margin:20px 0 0;padding:0 0 0 2.4em;counter-reset:none}
.solution-steps>li{margin:0;padding:0 0 22px 10px;line-height:1.7;font-size:17px;position:static;border:0;min-width:0;overflow-wrap:break-word}
.solution-steps>li::before{content:none;display:none}.solution-steps>li::marker{font-weight:600;color:var(--muted)}
.solution-steps>li>p:first-child{margin-top:0}.solution-steps>li .solution-math{max-width:100%;overflow-x:auto}
.solution-steps>li:last-child{padding-bottom:8px}
@media(max-width:600px){.solution-steps{padding-left:2em}.solution-steps>li{font-size:16px;padding-left:8px}}

/* Weekly plot: explicit theme colors, label gutters, and a scrollable small-screen canvas. */
.weekly-trend{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.weekly-trend .insight-chart{display:block;width:100%;min-width:480px;height:auto;overflow:visible;color:var(--text)}
.insight-chart text{fill:var(--muted);font-size:18px;font-family:inherit}.insight-chart .chart-grid{stroke:var(--line);stroke-width:1;fill:none}
.insight-chart .chart-line{stroke:var(--accent);stroke-width:2.5;fill:none;stroke-linejoin:round}.insight-chart .chart-point{fill:var(--accent);stroke:var(--panel);stroke-width:1.5}
.weekly-values{font-size:14px;margin-top:12px;color:var(--muted)}

/* room: canonical source module */
/* Study Room: scoped illustration, editor, ambience and achievement components. */
.room-heading-actions{display:flex;flex-wrap:wrap;gap:10px}.room-board{min-width:0}.room-board.with-inspector{display:flex;flex-wrap:wrap;gap:20px;align-items:start}.room-board.with-inspector>div{flex:1 1 500px}.room-board.with-inspector>.room-inspector{flex:1 1 290px;min-width:0}.room-board>div{min-width:0}.room-scene{--wall:#e7decd;--wall-line:#dacfb9;--floor:#c6ac91;--wood:#ac825c;--wood-edge:#775339;position:relative;isolation:isolate;width:100%;aspect-ratio:16/10;overflow:hidden;border:1px solid #86756760;border-radius:12px;background:var(--wall);color:#414948;container-type:inline-size;box-shadow:inset 0 0 50px #645b4712}.room-wall{position:absolute;inset:0 0 16%;background:linear-gradient(112deg,#ffffff30,transparent 58%),var(--wall);border-bottom:5px solid var(--wall-line)}.room-wall::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0,transparent 15.9%,#ffffff16 16%,transparent 16.1%);pointer-events:none}.room-floor{position:absolute;inset:84% 0 0;background:repeating-linear-gradient(94deg,transparent 0,transparent 19%,#785d4225 19.2%,transparent 19.4%),linear-gradient(0deg,#ffffff25,transparent),var(--floor)}.room-floor::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0,transparent 47%,#775c3d15 49%,transparent 50%)}.room-scene-grain{pointer-events:none;position:absolute;inset:0;z-index:35;box-shadow:inset 0 0 8cqw #0e1e2510;border-radius:inherit}.room-window{position:absolute;right:8%;top:10%;width:23%;height:37%;padding:1.4%;background:#f8f2e5;border-radius:45% 45% 2% 2%;box-shadow:0 1.4cqw 2.7cqw #53605718,inset 0 0 0 .35cqw #cbbda7}.room-window::after{content:"";position:absolute;left:-5%;bottom:-4%;width:110%;height:5%;border-radius:.3cqw;background:#f8f2e5;box-shadow:0 .7cqw .8cqw #45453414}.room-window-sky{position:relative;height:100%;background:linear-gradient(#b0c9ca,#e5ead8);overflow:hidden;border-radius:45% 45% 0 0}.room-moon{position:absolute;top:22%;right:23%;width:17%;aspect-ratio:1;background:#ffefc9;border-radius:50%;box-shadow:0 0 3cqw #ffefc935}.room-hills{position:absolute;left:-50%;width:220%;height:90%;bottom:-56%;border-radius:50%;background:#708f8d;transform:rotate(-9deg);box-shadow:-1cqw -2cqw #9bb1a3}.room-shelf{position:absolute;left:10%;top:50%;height:1.7%;width:60%;background:#ae8564;border-top:.35cqw solid #ccac88;box-shadow:0 1cqw 1.1cqw #6d64512a;z-index:1}.room-shelf::before,.room-shelf::after{content:"";position:absolute;top:100%;width:3%;height:2.5cqw;border-left:.7cqw solid #8a6c51;border-bottom:.7cqw solid #8a6c51;transform:skewY(-35deg)}.room-shelf::before{left:12%}.room-shelf::after{right:12%}.room-desk{--desktop:#c5a580;--desk-edge:#a6805a;position:absolute;inset:0;pointer-events:none;z-index:1}.room-desktop{position:absolute;left:9%;top:75%;height:3%;width:82%;border-radius:1cqw 1cqw .35cqw .35cqw;background:repeating-linear-gradient(0deg,transparent 0,transparent 20%,#65472d0d 24%,transparent 30%),var(--desktop);border-bottom:.55cqw solid var(--desk-edge);box-shadow:0 1.4cqw 1.5cqw #50453725}.room-desk-leg{position:absolute;top:78%;height:17%;width:2.3%;background:var(--desk-edge);border-radius:0 0 .25cqw .25cqw;box-shadow:.55cqw 0 #ffffff18 inset}.room-desk-leg.left{left:13%}.room-desk-leg.right{right:13%}.room-drawers{position:absolute;left:65%;top:78%;width:19%;height:11%;background:var(--desktop);border:.25cqw solid var(--desk-edge);border-top:0;border-radius:0 0 .4cqw .4cqw}.room-drawers i{position:absolute;width:100%;height:50%;border-bottom:.2cqw solid var(--desk-edge)}.room-drawers i+i{top:50%;border:0}.room-drawers i::after{content:"";position:absolute;left:40%;top:32%;width:20%;height:15%;border-radius:1cqw;background:#b3965e}.room-chair{position:absolute;left:39%;top:72%;width:18%;height:23%;z-index:0}.room-chair>span{position:absolute;inset:0 0 30%;background:#809b94;border-radius:40% 40% 20% 20%;border:.4cqw solid #6c8580;box-shadow:inset 0 .5cqw 1cqw #fcfff510}.room-chair::before,.room-chair::after{content:"";position:absolute;top:60%;bottom:-8%;width:7%;background:#738980}.room-chair::before{left:10%;transform:rotate(8deg)}.room-chair::after{right:10%;transform:rotate(-8deg)}
.room-desk[data-desk=surface-walnut]{--desktop:#76573f;--desk-edge:#483629}.room-desk[data-desk=surface-white]{--desktop:#edeade;--desk-edge:#c2baa5}.room-desk[data-desk=surface-laboratory]{--desktop:#5f8390;--desk-edge:#304f5b}.room-desk[data-desk=surface-oak]{--desktop:#bd9768;--desk-edge:#8e663e}.room-desk[data-desk=surface-slate]{--desktop:#596775;--desk-edge:#35414d}.room-desk[data-desk=surface-maple]{--desktop:#debe90;--desk-edge:#b69868}.room-desk[data-desk=surface-midnight]{--desktop:#424d68;--desk-edge:#283249}.room-desk[data-desk=surface-sage]{--desktop:#9bada0;--desk-edge:#6b8375}.room-desk[data-desk=surface-blueprint]{--desktop:#557a82;--desk-edge:#36515b}.room-desk[data-desk=surface-rose]{--desktop:#c3a295;--desk-edge:#9a796e}
.room-scene[data-wallpaper=wallpaper-sage]{--wall:#ccd8c9;--wall-line:#b5c6b3;--floor:#c9b79e}.room-scene[data-wallpaper=wallpaper-rose]{--wall:#ddc5bf;--wall-line:#c7aba5;--floor:#bca48e}.room-scene[data-wallpaper=wallpaper-blueprint]{--wall:#385c6e;--wall-line:#284454;--floor:#b49c83}.room-scene[data-wallpaper=wallpaper-blueprint] .room-wall{background:repeating-linear-gradient(0deg,#d5eeee14 0 1px,transparent 1px 3cqw),repeating-linear-gradient(90deg,#d5eeee14 0 1px,transparent 1px 3cqw),var(--wall)}.room-scene[data-wallpaper=wallpaper-night]{--wall:#253f53;--wall-line:#1c3141;--floor:#847e7c}.room-scene[data-wallpaper=wallpaper-night] .room-wall{background:radial-gradient(circle at 17% 15%,#fbeac7 0 .12cqw,transparent .17cqw),radial-gradient(circle at 44% 25%,#fbeac7 0 .16cqw,transparent .2cqw),radial-gradient(circle at 62% 13%,#fbeac7 0 .1cqw,transparent .16cqw),radial-gradient(circle at 87% 32%,#fbeac7 0 .13cqw,transparent .18cqw),radial-gradient(circle at 31% 41%,#fbeac7 0 .1cqw,transparent .15cqw),linear-gradient(145deg,#395568,transparent),var(--wall)}.room-scene[data-wallpaper=wallpaper-night] .room-window-sky{background:linear-gradient(#20394e,#587485)}.room-scene[data-wallpaper=wallpaper-night] .room-hills{background:#254956;box-shadow:-1cqw -2cqw #456975}.room-scene[data-wallpaper=wallpaper-night] .room-window,.room-scene[data-wallpaper=wallpaper-night] .room-window i,.room-scene[data-wallpaper=wallpaper-night] .room-window i::after,.room-scene[data-wallpaper=wallpaper-night] .room-window::after{background:#d1cbbf}.room-wall-note{position:absolute;left:13%;top:17%;width:40%;text-align:center;color:#67786b;transform:rotate(-2deg)}.room-wall-note span{font-size:1.6cqw;letter-spacing:.3em;font-weight:700;display:block}.room-wall-note small{font-family:Georgia,serif;font-size:4cqw;display:block;font-style:italic;margin-top:.7cqw}.room-scene[data-wallpaper=wallpaper-night] .room-wall-note,.room-scene[data-wallpaper=wallpaper-blueprint] .room-wall-note{color:#e5e9db}.room-achievement-wall{position:absolute;left:10%;top:11%;width:53%;display:grid;grid-template-columns:repeat(3,1fr);gap:.3cqw 2cqw;z-index:1}.room-wall-award{width:100%;height:12cqw;filter:drop-shadow(0 .4cqw .35cqw #21342920)}.room-wall-award svg{width:100%;height:100%}.room-wall-award:nth-child(n+4){height:10cqw}.room-object{position:absolute;left:var(--item-x);top:var(--item-y);width:var(--item-width);transform:translate(-50%,-100%) rotate(var(--item-rotation));transform-origin:50% 100%;padding:0;border:0;background:none;color:inherit;filter:drop-shadow(0 .45cqw .2cqw #283c3520);line-height:0;min-width:0}.room-object>svg,.room-object>.cover-preview{width:100%;height:auto;display:block;transform:scaleX(var(--item-flip));pointer-events:none}.room-object .cover-preview{width:100%;height:auto;min-width:0;min-height:0;margin:0;max-height:none;aspect-ratio:3/4;max-width:100%;border-radius:.2cqw .7cqw .7cqw .2cqw;box-shadow:.25cqw .3cqw .2cqw #23352c30}.room-object .cover-lettering{gap:.3cqw;padding:.3cqw}.room-object .cover-mark{font-size:1.4cqw}.room-object .cover-lettering strong{font-size:.9cqw;max-width:100%}.room-object .cover-preview svg{width:100%;height:100%}.room-editing .room-object{cursor:grab;touch-action:none;border-radius:5px}.room-editing .room-object.is-selected{outline:2px dashed #1b7774;outline-offset:5px}.room-editing .room-object:active{cursor:grabbing}.room-object:focus-visible{outline:3px solid #077f84;outline-offset:5px}.room-pet:not(button)>svg{animation:room-breathe 7s ease-in-out infinite;transform-origin:50% 95%}.room-light::before{content:"";position:absolute;left:-10%;right:-10%;bottom:0;height:45%;background:radial-gradient(ellipse,#ffe4a758,transparent 70%);pointer-events:none;z-index:-1}.room-zone{position:absolute;left:var(--zone-left);right:var(--zone-right);top:var(--zone-y);border-top:1px dashed #234e5c99;pointer-events:none;z-index:30}.room-zone span{position:absolute;left:0;top:3px;font-size:clamp(9px,1.2cqw,12px);line-height:1.2;padding:2px 5px;background:#f1f8f1e0;border-radius:3px;color:#214947}.room-caption{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);margin:10px 0 20px}.room-inspector{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:20px;display:grid;gap:12px;font-size:14px;max-height:1000px;overflow:auto}.room-inspector h2,.room-inspector h3,.room-inspector p{margin:0}.room-inspector h2{font-size:20px}.room-inspector p,.room-inspector small{color:var(--muted)}.room-inspector label{display:grid;gap:5px}.room-inspector hr{width:100%;border:0;border-top:1px solid var(--line);margin:6px 0}.room-inspector select{width:100%;font-size:14px;min-width:0}.room-selection-panel{border-top:1px solid var(--line);padding-top:16px;display:grid;gap:12px}.room-move-buttons{display:flex;gap:8px;flex-wrap:wrap}.room-move-buttons .btn{padding:8px 10px;font-size:13px;flex:1 1 auto}.room-inspector .check-label,.check-label{display:flex;align-items:center;gap:9px}.check-label input{flex-shrink:0}.room-inspector input[type=range],.room-volume input{width:100%;min-width:0;accent-color:var(--accent)}.room-placed-list{display:grid;gap:0}.room-edit-status{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 18px;margin-bottom:16px;background:var(--accent-soft);border:1px solid var(--line);border-radius:6px;font-size:14px}.room-edit-status>div{display:flex;gap:10px}.room-ambience-title{display:flex;justify-content:space-between;gap:20px;align-items:start}.room-ambience-title h2{margin:0 0 8px}.room-ambience-title p{margin:0 0 22px;font-size:15px;color:var(--muted)}.room-ambience-title label{max-width:260px;font-size:14px}.room-audio-controls{display:flex;flex-wrap:wrap;align-items:end;gap:16px}.room-audio-controls>label:not(.check-label):not(.room-volume){display:grid;gap:6px;font-size:14px}.room-audio-controls select{min-width:190px;font-size:15px}.room-volume{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:14px;min-width:160px;flex:1}.room-volume input{grid-column:1/-1;height:44px}.room-audio-status{font-size:13px;line-height:1.5;max-width:220px;align-self:center;color:var(--muted)}.room-audio-controls .check-label{flex-basis:100%;font-size:14px}.room-audio-controls>.muted{flex-basis:100%;margin:0}.room-local-audio{flex-basis:100%;border-top:1px solid var(--line);padding-top:16px;font-size:14px}.room-local-audio p{margin:10px 0}.room-local-audio input[type=file]{max-width:230px;min-height:0;font-size:13px;border:0;padding:0;margin-left:10px}.room-local-audio>span{display:block;margin-top:8px;color:var(--muted)}.room-focus-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.room-focus-toolbar>span{color:var(--muted);font-size:14px}.room-focus-toolbar h2{margin:0}.room-focus-toolbar p{font-size:14px;margin:6px 0}.room-preview-dialog{width:min(1100px,96vw);padding:20px}.room-study-companion{border:1px solid var(--line);padding:14px;border-radius:8px;min-width:0}.room-study-companion>summary{font-weight:600;margin-bottom:12px;cursor:pointer}.room-study-companion>div:not(.room-scene){display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.room-study-companion>p{font-size:12px;color:var(--muted);margin-bottom:0}.room-study-companion .room-scene{pointer-events:none}.room-small .room-wall-award:nth-child(n+4){display:none}.milestone-section{margin-top:44px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:20px}.section-title h2{margin:0 0 10px}.section-title p{font-size:15px;color:var(--muted)}.milestone-policy{font-size:14px;color:var(--muted);max-width:100ch;margin:0 0 24px}.milestone-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:18px}.milestone-card-copy{min-width:0;overflow-wrap:anywhere}.milestone-card{display:grid;grid-template-columns:84px minmax(0,1fr);gap:20px;border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:24px;align-items:start}.milestone-emblem{width:84px}.milestone-emblem svg{width:100%;height:auto}.milestone-emblem.unearned{opacity:.55;filter:grayscale(.65)}.milestone-card h3{margin:0 0 8px}.milestone-card p{margin:0 0 14px;font-size:14px;color:var(--muted)}.milestone-card strong{font-size:14px}.milestone-card progress{display:block;width:100%;height:7px;margin:12px 0;accent-color:var(--accent)}.milestone-card dl{margin:14px 0;font-size:13px}.milestone-card dl>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;padding:5px 0;border-bottom:1px solid var(--line)}.milestone-card dd{margin:0;white-space:nowrap}.milestone-card dt{color:var(--muted)}.milestone-card details{font-size:13px}.milestone-stage-list{padding-left:22px}.milestone-stage-list li{margin:12px 0}.milestone-stage-list span{display:block;color:var(--muted)}.legacy-badges{margin:26px 0;font-size:14px}.legacy-badges p{color:var(--muted)}.legacy-badge-list{display:flex;gap:10px;flex-wrap:wrap}.legacy-badge-list span{border:1px solid var(--line);padding:6px 10px;border-radius:6px;background:var(--panel)}
@keyframes room-breathe{0%,100%{transform:scaleX(var(--item-flip)) rotate(-1deg)}50%{transform:scaleX(var(--item-flip)) rotate(1deg)}}
@media(max-width:1260px){.room-board.with-inspector{grid-template-columns:1fr}.room-inspector{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.room-inspector>h2,.room-inspector>p,.room-inspector>hr,.room-inspector>small,.room-selection-panel{grid-column:1/-1}.room-inspector>label{align-self:start}.room-selection-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.room-selection-panel>h3,.room-move-buttons{grid-column:1/-1}.room-heading{flex-direction:column}.milestone-card{grid-template-columns:64px minmax(0,1fr);padding:20px;gap:14px}.milestone-emblem{width:64px}}
@media(max-width:740px){.milestone-grid{grid-template-columns:1fr}.room-ambience-title,.section-title{align-items:start;flex-direction:column}.room-ambience-title label{max-width:none;margin-bottom:18px}.room-caption{flex-direction:column;gap:4px}.room-edit-status{align-items:start;flex-direction:column}.room-audio-controls{gap:12px}.room-volume{min-width:160px}.room-audio-status{max-width:none;flex-basis:100%}.room-focus-toolbar>span{display:none}.room-preview-dialog{padding:12px}.room-scene{border-radius:7px}.room-local-audio label.btn{display:grid;gap:8px;justify-content:start}.room-local-audio input[type=file]{margin:0;width:220px}.room-heading-actions{width:100%}.room-heading-actions .btn{flex:1;padding:8px;font-size:14px}.room-inspector{padding:16px}.room-inspector>label,.room-selection-panel>label{grid-column:1/-1}.room-board.with-inspector{gap:8px}}
/* v16.1 recovered scene treatment: layered CSS illustration, not scanned artwork. */
.room-scene{border-radius:16px;box-shadow:0 18px 40px #00000010,inset 0 0 100px #fff4;--wall:#e9dfd1;--floor:#c8b097}
.room-wall{background:linear-gradient(105deg,#ffffff40,transparent 18%,transparent 78%,#ffffff24),var(--wall)}
.room-wall-light{position:absolute;inset:0 0 16%;background:radial-gradient(circle at 24% 18%,#fff5,transparent 38%),radial-gradient(circle at 76% 14%,#fff5,transparent 32%);pointer-events:none;mix-blend-mode:screen}
.room-rug{position:absolute;left:25%;right:24%;top:85%;height:11%;border-radius:50%;background:radial-gradient(ellipse,#a7bcb6,#6f8781);opacity:.25}
.room-desktop{background:linear-gradient(180deg,#fff3,transparent 30%,#0001),repeating-linear-gradient(0deg,transparent 0,transparent 20%,#65472d0d 24%,transparent 30%),var(--desktop)}
.room-drawers{background:linear-gradient(180deg,#fff1,#0001),var(--desktop)}
.room-chair>span{background:linear-gradient(155deg,#a5bbb4,#7c9894);border-radius:44% 44% 24% 24%;box-shadow:inset 0 .7cqw 1.1cqw #fcfff525}
.room-shelf{background:linear-gradient(180deg,#c69d78,#a97856);border-top:.28cqw solid #e0bf97;box-shadow:0 1cqw 1.1cqw #6d64511c}
.room-window{border-radius:48% 48% 1.2% 1.2%;box-shadow:0 1.4cqw 2.7cqw #53605715,inset 0 0 0 .32cqw #cdbfa9}
.room-window-sky{border-radius:48% 48% 0 0}.room-window::after{border-radius:.6cqw}
.room-cloud{position:absolute;height:7%;background:#ffffff9a;border-radius:999px;filter:blur(.03cqw)}
.room-cloud::before,.room-cloud::after{content:"";position:absolute;border-radius:999px;background:inherit}
.room-cloud::before{width:40%;height:140%;left:18%;bottom:20%}.room-cloud::after{width:32%;height:120%;right:16%;bottom:10%}
.cloud-a{left:10%;top:18%;width:24%}.cloud-b{left:42%;top:12%;width:18%;opacity:.7}
.room-scene[data-window-time=dawn] .room-window-sky{background:linear-gradient(#c9b1c8,#efd7be 48%,#e0e5d1)}
.room-scene[data-window-time=day] .room-window-sky{background:linear-gradient(#bdd6de,#eef2e8)}
.room-scene[data-window-time=golden] .room-window-sky{background:linear-gradient(#d6d0d8,#f6d29e 42%,#d7d9c7)}
.room-scene[data-window-time=golden] .room-moon{background:#ffcb7a;box-shadow:0 0 3.5cqw #ffcb7a55}
.room-scene[data-window-time=dusk] .room-window-sky{background:linear-gradient(#6b6f98,#efb17b 48%,#a2a79d)}
.room-scene[data-window-time=night] .room-window-sky{background:radial-gradient(circle at 20% 25%,#fff 0 .1cqw,transparent .16cqw),radial-gradient(circle at 62% 13%,#fff 0 .08cqw,transparent .14cqw),linear-gradient(#203248,#425c73)}
.room-scene[data-window-time=night] .room-moon{background:#fff3d3;box-shadow:inset -.4cqw -.2cqw #d5d5c8,0 0 3cqw #fff3d340}
.room-scene[data-window-time=night] .room-hills{background:#49686a;box-shadow:-1cqw -2cqw #698587}
.room-scene[data-window-time=night] .room-cloud{opacity:.2}
.room-audio-controls>label:not(.room-volume){min-width:0;max-width:100%}.room-audio-controls select{min-width:0;width:min(100%,310px)}
.room-focus-dialog[open]{box-sizing:border-box;position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:var(--bg)}
.room-focus-dialog .room-focus-toolbar{padding:12px 20px;margin:0;flex-wrap:wrap;background:var(--panel);z-index:2}.room-focus-toolbar .button-row{display:flex;gap:10px;flex-wrap:wrap}
.room-focus-canvas{position:relative;min-width:0;min-height:0;overflow:hidden;display:grid;place-items:center;container-type:size;background:var(--bg)}
.room-focus-dialog .room-focus-canvas .room-scene{width:min(100cqw,160cqh);height:auto;min-width:0;min-height:0;max-width:100%;max-height:100%;border:0;border-radius:0;aspect-ratio:16/10;margin:0;flex-shrink:1}
.room-focus-dialog .room-audio-controls{max-width:none;margin:0;padding:10px 20px;background:var(--panel);gap:10px;max-height:min(35dvh,260px);overflow:auto;min-height:0;overscroll-behavior:contain}.room-focus-dialog .room-audio-status{max-width:240px;font-size:12px}
.room-study-dialog{width:min(620px,94vw);padding:24px;box-sizing:border-box}.room-study-dialog label{display:grid;gap:8px}.room-study-dialog .field-input{width:100%}.room-focus-dialog::backdrop,.room-study-dialog::backdrop{background:#101a23d9}
@media(max-width:740px){.room-focus-dialog .room-focus-toolbar{padding:10px 12px}.room-focus-dialog .room-audio-controls{padding:10px 12px}.room-focus-dialog .room-audio-status{display:none}}
@media(prefers-reduced-motion:reduce){.room-pet:not(button)>svg{animation:none}}

/* Wallpaper patterns are local vector tiles, shared by scene and shop preview. */
.room-scene[data-wallpaper="wallpaper-cats"],.wallpaper-sample[data-wallpaper="wallpaper-cats"]{--wall-pattern:url("/room-wallpapers/cats.svg");}
.room-scene[data-wallpaper="wallpaper-dogs"],.wallpaper-sample[data-wallpaper="wallpaper-dogs"]{--wall-pattern:url("/room-wallpapers/dogs.svg");}
.room-scene[data-wallpaper="wallpaper-aquarium"],.wallpaper-sample[data-wallpaper="wallpaper-aquarium"]{--wall-pattern:url("/room-wallpapers/aquarium.svg");}
.room-scene[data-wallpaper="wallpaper-dots-sage"],.wallpaper-sample[data-wallpaper="wallpaper-dots-sage"]{--wall-pattern:url("/room-wallpapers/dots-sage.svg");}
.room-scene[data-wallpaper="wallpaper-dots-ink"],.wallpaper-sample[data-wallpaper="wallpaper-dots-ink"]{--wall-pattern:url("/room-wallpapers/dots-ink.svg");}
.room-scene[data-wallpaper="wallpaper-dots-rose"],.wallpaper-sample[data-wallpaper="wallpaper-dots-rose"]{--wall-pattern:url("/room-wallpapers/dots-rose.svg");}
.room-scene[data-wallpaper="wallpaper-stripes-linen"],.wallpaper-sample[data-wallpaper="wallpaper-stripes-linen"]{--wall-pattern:url("/room-wallpapers/stripes-linen.svg");}
.room-scene[data-wallpaper="wallpaper-stripes-blue"],.wallpaper-sample[data-wallpaper="wallpaper-stripes-blue"]{--wall-pattern:url("/room-wallpapers/stripes-blue.svg");}
.room-scene[data-wallpaper="wallpaper-stripes-sage"],.wallpaper-sample[data-wallpaper="wallpaper-stripes-sage"]{--wall-pattern:url("/room-wallpapers/stripes-sage.svg");}
.room-scene[data-wallpaper="wallpaper-space"],.wallpaper-sample[data-wallpaper="wallpaper-space"]{--wall-pattern:url("/room-wallpapers/space.svg");}
.room-wall::after{background-image:var(--wall-pattern,none);background-repeat:repeat;background-size:24% auto}.wallpaper-sample[data-wallpaper]{background-image:var(--wall-pattern,none);background-repeat:repeat;background-size:70% auto}
.room-scene[data-wallpaper=wallpaper-space]{--wall:#2b4257;--wall-line:#345268;--floor:#9b9991}.room-scene[data-wallpaper=wallpaper-space] .room-wall-note{color:#e5e9db}.room-scene[data-wallpaper=wallpaper-aquarium]{--wall:#c6dddb}

/* Both crossbars share the sky coordinate system, so they meet the frame at every scale. */
.room-window-bar{position:absolute;display:block;background:#f7f2ea;z-index:2;pointer-events:none}.room-window-bar.vertical{left:50%;top:0;bottom:0;width:5%;transform:translateX(-50%)}.room-window-bar.horizontal{left:0;right:0;top:57%;height:3.8%;transform:translateY(-50%)}.room-scene[data-wallpaper=wallpaper-night] .room-window-bar{background:#d1cbbf}
/* Music library and account-backed custom playlist editor. */
.room-audio-controls>label,.room-playlist-controls>label{min-width:0;max-width:100%;flex:1 1 200px}
.room-audio-controls>label:first-child{flex:2 1 280px}.room-audio-controls select{min-width:0;width:100%;max-width:100%}
.room-playlist-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;width:100%;border-top:1px solid var(--line);padding-top:16px}
.room-playlist-controls>label{display:grid;gap:6px;flex:2 1 280px;font-size:14px}.room-music-shop-note{flex-basis:100%;margin:0;font-size:14px}
.room-music-directory{flex-basis:100%;font-size:15px;border-top:1px solid var(--line);padding-top:16px}.room-music-directory>summary{cursor:pointer;font-weight:600;padding:8px 0}.room-music-directory h3{font-size:18px;margin:26px 0 12px}
.room-music-directory ul{list-style:none;padding:0;margin:0}.room-music-directory li{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}.room-music-directory li>span{min-width:0;overflow-wrap:anywhere}.room-music-directory li>div{display:flex;flex-shrink:0;gap:8px}.room-music-directory small{display:block;font-size:13px;color:var(--muted);margin-top:5px}
.room-playlist-dialog{width:min(740px,calc(100vw - 24px));max-height:92dvh;padding:24px}.room-playlist-dialog::backdrop{background:#101c30b0}.room-playlist-dialog h2{margin:0}.room-playlist-dialog .playlist-name{display:grid;gap:6px}
.playlist-builder{display:flex;align-items:end;gap:12px;margin-top:20px;flex-wrap:wrap}.playlist-builder>label{display:grid;gap:6px;flex:1 1 240px;min-width:0}.playlist-builder select{width:100%;min-width:0}
.playlist-track-list{padding-left:28px}.playlist-track-list>li{padding:12px 0 12px 8px;border-bottom:1px solid var(--line)}.playlist-track-list>li>span{display:block;overflow-wrap:anywhere;margin-bottom:8px}.playlist-track-list>li>div{display:flex;gap:8px;flex-wrap:wrap}.playlist-editor-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:600px){.room-music-directory li{align-items:start;flex-direction:column}.room-playlist-dialog{padding:18px}.room-focus-dialog .room-audio-controls{max-height:36dvh;overflow:auto}}

/* Fit the complete room between the measured toolbar and controls, never crop it. */
.room-focus-dialog[data-music-collapsed="true"]>.room-audio-controls{display:none}
.room-focus-dialog[data-music-collapsed="true"]{grid-template-rows:auto minmax(0,1fr)}
.room-focus-dialog .room-focus-toolbar{min-width:0}.room-focus-dialog .room-focus-toolbar>.button-row{min-width:0}.room-focus-dialog .room-focus-toolbar .btn{white-space:normal}
@media(max-height:500px){.room-focus-dialog .room-focus-toolbar{padding:6px 10px;gap:6px}.room-focus-dialog .room-focus-toolbar .btn{padding:7px 10px;min-height:36px}.room-focus-dialog .room-audio-controls{max-height:34dvh}}

/* shop: canonical source module */
/* Browseable Ink catalogue. Existing owned editions and rewards share this gallery. */
.shop-balance{text-align:right;min-width:160px}.shop-balance>strong{font-size:34px;line-height:1.2;display:block;color:var(--accent)}.shop-balance>span{font-size:14px}.shop-balance>small{display:block;max-width:230px;font-size:12px;color:var(--muted);margin-top:8px}.shop-browser{display:grid;grid-template-columns:170px minmax(0,1fr);gap:26px;align-items:start}.shop-categories{display:grid;gap:4px;position:sticky;top:20px}.shop-category{padding:10px 13px;min-height:44px;text-align:left;border:0;border-radius:5px;background:none;color:var(--muted);font-size:14px;line-height:1.4}.shop-category[aria-current=true]{background:var(--accent-soft);color:var(--accent);font-weight:700}.shop-products{min-width:0}.shop-filterbar{display:grid;grid-template-columns:1fr 200px;gap:16px}.shop-filterbar label{display:grid;gap:6px;font-size:13px}.shop-filterbar input,.shop-filterbar select{width:100%;font-size:14px}.shop-result-count{font-size:13px;color:var(--muted);margin:18px 0}.shop-products .shop-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.shop-gallery .shop-card{padding:0;overflow:hidden;border:1px solid var(--line);background:var(--panel);border-radius:8px;display:flex;flex-direction:column;min-width:0}.shop-art{height:155px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--accent-soft);border-bottom:1px solid var(--line);padding:18px}.shop-art>svg{max-width:170px;max-height:130px;width:100%;height:100%}.shop-art .notebook-cover-preview{width:90px;min-width:0;max-height:130px;margin:0}.shop-art .celebration-swatch{width:100%;height:115px}.shop-art[data-kind=pet],.shop-art[data-kind=wall]{background:var(--paper)}.shop-product-info{padding:18px 18px 6px}.shop-product-info>small{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;display:block;color:var(--muted)}.shop-product-info h3{font-size:17px;margin:8px 0}.shop-product-info p{font-size:13px;line-height:1.6;margin:8px 0;color:var(--muted)}.shop-product-info small.shop-placement{font-size:12px;text-transform:none;letter-spacing:0;font-weight:400}.shop-actions{padding:12px 18px 18px;margin-top:auto;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}.shop-actions .btn{flex:1 1 100%;font-size:14px;padding:10px}.shop-actions .text-btn{font-size:13px;min-height:40px}.shop-earned-only{font-size:12px;color:var(--muted);padding:7px 0}.shop-show-more{margin:22px auto;display:flex}.room-personalization{grid-template-columns:1.4fr 1fr;gap:26px}.room-personalization .room-scene{width:100%}.wallpaper-sample{width:100%;height:120px;border:1px solid #b5a991;border-radius:7px;background:#e7decd;box-shadow:inset 0 -22px #c6ac91;position:relative;overflow:hidden}.wallpaper-sample::after{content:"";position:absolute;right:20%;top:15%;width:30%;height:60%;border-radius:40% 40% 0 0;background:linear-gradient(#b0c9ca,#e5ead8);border:6px solid #f8f2e5}.wallpaper-sample[data-art=sage]{background:#ccd8c9}.wallpaper-sample[data-art=rose]{background:#ddc5bf}.wallpaper-sample[data-art=night]{background:#253f53}.wallpaper-sample[data-art=blueprint]{background:repeating-linear-gradient(90deg,transparent 0 19px,#d5eeee20 20px),repeating-linear-gradient(0deg,transparent 0 19px,#d5eeee20 20px),#385c6e}.shop-symbol{font-size:30px;line-height:1.2;color:var(--accent);text-align:center}.shop-products .shop-art .room-sound-symbol{font-size:40px}
@media(max-width:1400px){.shop-products .shop-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-browser{grid-template-columns:150px minmax(0,1fr);gap:20px}}
@media(max-width:800px){.shop-browser{grid-template-columns:1fr}.shop-categories{display:flex;overflow:auto;position:static;padding-bottom:6px;gap:8px}.shop-category{white-space:nowrap;flex-shrink:0;border:1px solid var(--line)}.shop-balance{min-width:120px}.shop-balance>small{max-width:150px}.shop-filterbar{grid-template-columns:1fr 180px}}
@media(max-width:560px){.shop-filterbar{grid-template-columns:1fr}.shop-products .shop-gallery{grid-template-columns:1fr}.shop-art{height:180px}.shop-balance{min-width:90px}.shop-balance>small{display:none}.shop-product-info h3{font-size:19px}.shop-product-info p{font-size:14px}.room-personalization{grid-template-columns:1fr}.shop-categories{margin:0 -4px}.shop-actions .btn{font-size:16px}}

.wallpaper-sample{background-image:var(--wall-pattern,none);background-size:70% auto;background-repeat:repeat}

/* stem-map: canonical source module */
/* SVG atlas with native pan/scroll, keyboard nodes and an equivalent topic list. */
.atlas-summary{min-width:180px;max-width:235px;text-align:right}.atlas-summary strong{font-size:30px;color:var(--accent);display:block;line-height:1.3}.atlas-summary span,.atlas-summary small{display:block;color:var(--muted);font-size:13px;margin-top:5px}.atlas-panel{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--panel)}.atlas-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:14px;padding:18px;border-bottom:1px solid var(--line)}.atlas-toolbar label{font-size:13px;display:grid;gap:5px;flex:1;min-width:150px}.atlas-toolbar input,.atlas-toolbar select{width:100%;font-size:14px}.atlas-zoom{display:flex;align-items:center;gap:8px}.atlas-zoom output{min-width:40px;font-size:13px;text-align:center}.atlas-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px}.atlas-layout>div{min-width:0}.atlas-viewport{width:100%;height:590px;overflow:auto;background:#eef1eb;cursor:grab;scrollbar-width:thin;touch-action:pan-x pan-y}.atlas-viewport.is-panning{cursor:grabbing;user-select:none}.atlas-canvas{width:100%;line-height:0}.atlas-svg{display:block;width:100%;height:100%}.atlas-grid{color:#54776a;opacity:.28}.atlas-branches path{stroke:#93b5a7;stroke-width:3;fill:none;opacity:.65}.atlas-branches .atlas-trunk{stroke:#6e9d8a;stroke-width:6;opacity:.65}.atlas-prerequisites path{stroke:#68829b;stroke-width:1.5;stroke-dasharray:8 8;opacity:.3;fill:none}.atlas-root circle{fill:#365e54}.atlas-root .atlas-orbit{fill:none;stroke:#9bbbad;stroke-width:2;stroke-dasharray:5 12}.atlas-root text{font-family:system-ui,sans-serif;font-size:21px;font-weight:600;letter-spacing:.15em;fill:#e2eee2}.atlas-root text.atlas-root-title{font-family:Georgia,serif;font-size:42px;letter-spacing:.07em;fill:#fff}.atlas-root text.atlas-root-count{font-size:17px;font-weight:400;letter-spacing:0}.atlas-hub circle{fill:#6b9080;stroke:#eef1eb;stroke-width:6}.atlas-hub text{fill:#365f54;font-size:20px;letter-spacing:.1em;font-family:system-ui,sans-serif;font-weight:750;paint-order:stroke;stroke:#eef1eb;stroke-width:9px;stroke-linejoin:round}.atlas-hub text.atlas-hub-count{font-size:18px;letter-spacing:0;font-weight:500}.atlas-topic{cursor:pointer;outline:none;transition:opacity 140ms}.atlas-node-card{fill:#fffdf5;stroke:#b2c1b5;stroke-width:2}.atlas-node-title{font-family:system-ui,sans-serif;font-size:23px;font-weight:550;fill:#334a43}.atlas-node-count{font-family:system-ui,sans-serif;font-size:17px;fill:#60736a}.atlas-node-dot{fill:#afbab1}.atlas-node-progress{stroke:#588970;stroke-width:5;stroke-linecap:round;fill:none}.atlas-topic.stage-started .atlas-node-dot{fill:#be9552}.atlas-topic.stage-growing .atlas-node-dot{fill:#588970}.atlas-topic.stage-covered .atlas-node-dot{fill:#4473a1}.atlas-topic.stage-covered .atlas-node-card{fill:#e4eef0;stroke:#7498ae}.atlas-topic.stage-growing .atlas-node-card{fill:#e8f0e6;stroke:#88aa8f}.atlas-topic:hover .atlas-node-card{stroke:#245d4e;stroke-width:4}.atlas-topic:focus-visible .atlas-node-card,.atlas-topic.atlas-selected .atlas-node-card{stroke:#2c6653;stroke-width:6}.atlas-topic:focus-visible{outline:none}.atlas-topic.atlas-dim{opacity:.23}.atlas-topic.atlas-dim:focus-visible,.atlas-topic.atlas-dim:hover{opacity:1}.atlas-detail{padding:24px 20px;border-left:1px solid var(--line);background:var(--panel);font-size:14px;overflow-wrap:anywhere}.atlas-detail h2{font-size:23px;margin:0 0 16px}.atlas-detail p{color:var(--muted);font-size:13px}.atlas-detail dl{font-size:13px;margin:20px 0}.atlas-detail dl>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:7px 0}.atlas-detail dd{margin:0}.atlas-detail-number{font-size:34px;line-height:1.25;color:var(--accent)}.atlas-detail-number small{font-size:14px}.atlas-detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.atlas-detail-actions .btn{width:100%;font-size:14px}.atlas-detail details{font-size:13px}.atlas-skill-list{list-style:none;padding:0;margin:15px 0}.atlas-skill-list li{display:flex;gap:10px;margin:8px 0}.atlas-skill-list span{color:var(--accent)}.atlas-legend{padding:14px 18px 0;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12px;color:var(--muted)}.atlas-legend .stage-started{color:#96722f}.atlas-legend .stage-growing{color:var(--good)}.atlas-legend .stage-covered{color:#5176a0}.atlas-help{margin:10px 18px 18px;font-size:12px;color:var(--muted)}.atlas-accessible h2{margin-top:0}.atlas-accessible>p{font-size:14px;color:var(--muted)}.atlas-topic-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.atlas-list-item{display:grid;grid-template-columns:1fr auto;text-align:left;gap:12px;padding:14px;background:var(--bg);border:1px solid var(--line);border-radius:6px;color:var(--text);font-size:13px;align-items:center}.atlas-list-item strong{white-space:nowrap;font-size:12px;color:var(--accent)}.atlas-list-item progress{grid-column:1/-1;width:100%;height:5px;accent-color:var(--accent)}.atlas-disclosure{max-width:100ch}.atlas-panel [hidden]{display:none}
[data-theme=dark] .atlas-viewport{background:#263a3c}[data-theme=dark] .atlas-grid{color:#8aa89e;opacity:.24}[data-theme=dark] .atlas-branches path{stroke:#647f79}[data-theme=dark] .atlas-root circle{fill:#466e65}[data-theme=dark] .atlas-root .atlas-orbit{fill:none}[data-theme=dark] .atlas-hub text{fill:#c1d7ca;stroke:#263a3c}[data-theme=dark] .atlas-hub circle{stroke:#263a3c;fill:#a3c0ae}[data-theme=dark] .atlas-node-card{fill:#354c4c;stroke:#708a80}[data-theme=dark] .atlas-node-title{fill:#e6eee6}[data-theme=dark] .atlas-node-count{fill:#c1d3c7}[data-theme=dark] .atlas-topic.stage-growing .atlas-node-card{fill:#365c50;stroke:#90b19c}[data-theme=dark] .atlas-topic.stage-covered .atlas-node-card{fill:#36546b;stroke:#93b6c8}[data-theme=dark] .atlas-topic.atlas-selected .atlas-node-card,[data-theme=dark] .atlas-topic:focus-visible .atlas-node-card{stroke:#e1d49a}[data-theme=dark] .atlas-legend .stage-started{color:#dac087}[data-theme=dark] .atlas-legend .stage-covered{color:#b5d3e7}
@media(max-width:1260px){.atlas-layout{grid-template-columns:1fr}.atlas-detail{border-left:0;border-top:1px solid var(--line)}.atlas-detail-actions .btn{width:auto}.atlas-viewport{height:590px}.atlas-topic-list{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-detail dl{display:flex;gap:28px}.atlas-detail dl>div{gap:18px}.atlas-detail p{max-width:95ch}.atlas-detail h2{font-size:24px}}
@media(max-width:600px){.atlas-summary{min-width:105px;max-width:150px}.atlas-summary strong{font-size:23px}.atlas-summary span{font-size:11px}.atlas-summary small{display:none}.atlas-toolbar{padding:14px;gap:12px}.atlas-toolbar label{flex:1 1 100%}.atlas-viewport{height:470px}.atlas-canvas{min-width:0}.atlas-detail{padding:20px}.atlas-topic-list{grid-template-columns:1fr}.atlas-detail dl{display:block}.atlas-detail dl>div{justify-content:space-between}.atlas-zoom{width:100%}.atlas-zoom .btn:last-child{margin-left:auto}}
