/* Readable, vivid materials; instructional detail appears on demand. */
:root{--bg:#f3f8fc;--paper:#fff;--ink:#17363d;--muted:#4d626b;--green:#006f5b;--green2:#007b67;--mint:#ddf7ec;--border:#cbdce2;--gold:#e89b0b;--blue:#2865d5;--rose:#cf4969;font-size:16px}
body{line-height:1.55}.sidebar{background:linear-gradient(165deg,#006d60,#004e54)}.nav-link{font-size:16px;min-height:48px;color:#d2ede8}.brand-caption,.nav-group-label,.sidebar-note{display:none}.sidebar .brand{margin:8px 0 28px}.topbar{padding:0 28px}.main-content{padding:28px;max-width:1680px}.breadcrumbs,.mode-switch button,.save-status{font-size:14px}.btn,.btn.small,.filter{font-size:15px;min-height:44px;padding:9px 15px}.icon-button{width:44px;height:44px}.avatar{width:36px;height:36px}.btn.primary{background:#007c66;border-color:#007c66}.btn.primary:hover{background:#00614f}.btn.soft{background:#d9f5e9}.eyebrow,.panel .eyebrow{font-size:12px;letter-spacing:1px}.page-title,.lab-heading h1{font-size:30px}.subtext,.lab-heading .subtext{font-size:16px}.back-link{font-size:14px}.hero{background:#ddf7ed;border-color:#b1dfce}.hero h1{color:#005d50}.hero p{font-size:18px;line-height:1.6}.hero-art{background:radial-gradient(ellipse,#ffffff,#ddf7ed00)}.hero-art .mini-tag{font-size:11px}.section-row h2{font-size:23px}.card-grid{gap:20px}.card-art{height:160px}.card-pill{font-size:12px;background:#fff}.card-body{padding:22px}.card-body h3{font-size:21px}.card-body p{font-size:16px;line-height:1.55;min-height:0}.card-footer{font-size:13px}.home-bottom p{font-size:16px}.footer-line{font-size:13px}.lab-layout{grid-template-columns:minmax(0,1fr) 300px;gap:22px}.lab-tools{padding-top:0}.studio{border-radius:16px;box-shadow:0 8px 30px #16404d08}.studio-bar{padding:14px 20px}.studio-label{font-size:13px}.live-badge{display:none}.canvas{background-color:#f9fcff;min-height:360px}.canvas-hint{font-size:14px;color:#294f58;background:#fffffff2;max-width:calc(100% - 24px);border:1px solid #cbdce2}.canvas>svg{min-height:360px}.canvas [data-transform-drag],.canvas [data-motif-handle],.canvas [data-pattern-piece]{cursor:grab;touch-action:none}.control-panel{padding:20px}.control-row{gap:18px}.control-group label,.helper,.note-label{font-size:14px;color:#4d626b}.control-group select,.catalog-toolbar select{font-size:16px}.control-group output{font-size:16px;color:#005f50}.control-group label{line-height:1.5}.point-editor{font-size:15px}.panel{padding:20px;border-radius:14px}.panel.task{background:#e6f8f0;border-color:#afdcc9}.panel h2{font-size:18px}.panel p,.step{font-size:15px;line-height:1.6}.task-title{font-size:21px}.step-list{gap:12px}.step>span{min-width:26px;height:26px;font-size:14px;background:#c0ead8;color:#005e4b}.panel summary{font-size:17px;font-weight:700;color:#006c59;cursor:pointer}.detail-body{padding-top:16px}.panel p.scope-note{font-size:14px}.inspector{gap:14px}.inspector>details.panel{grid-column:auto}.outcome-tag{font-size:13px;background:#e2f5ed;color:#006048;padding:5px 9px}.source-link{font-size:14px;line-height:1.6;display:inline-block;margin-top:12px}.linked-reps{padding:20px;gap:22px}.linked-reps h3{font-size:17px;color:#285358}.mini-table{font-size:15px}.mini-table th,.mini-table td{padding:10px}.metric strong{font-size:27px}.metric span{font-size:14px}.math-equation{font-size:25px}.feedback{font-size:15px;line-height:1.6}.operation-log{font-size:15px}.early-note{font-family:inherit;font-size:25px;font-weight:700}.early-foot{font-size:16px}.early-grid{gap:10px;padding:35px 20px}.early-cell{min-height:64px;border:2px dashed #9dbfc7;touch-action:none}.early-cell.small{font-size:13px}.early-cell.sample{background:#dcf4e9;opacity:1}.tile-choice{width:64px;height:64px;touch-action:none;border-width:2px}.early-cell,.tile-choice{cursor:grab}.early-cell small{font-size:13px}.copy-model{background:#e9f8ef}.algebra-sides{padding:24px 18px;grid-template-columns:1fr 30px 1fr}.algebra-side{background:#edf8ff;border:2px dashed #83afc0;gap:9px;min-height:180px}.side-summary{font-size:23px;color:#154a59}.algebra-tile{min-width:44px;height:44px;border:2px solid #08795e;background:#c0f0dd;color:#075541;font-size:18px;touch-action:none;cursor:grab}.algebra-tile.variable{min-width:48px;height:90px;background:#ffd15c;color:#5c3b00;border-color:#b37800}.algebra-tile.negative{color:#8b2645;background:#ffd9e2;border-color:#c5466c}.pending-tile{opacity:.35;outline:3px dashed #953770}.balance-tray{margin:0 18px 16px;padding:16px;border:2px dashed #687bc3;border-radius:14px;background:#eef0ff;text-align:center;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.balance-tray strong{font-size:18px}.balance-tray span{flex-basis:100%;font-size:16px}.direct-tray{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:18px;background:#e8f5ff;border-block:1px solid #c4deef}.direct-tray p{font-size:15px;color:#365968;flex:1;min-width:130px}.direct-tray .algebra-tile.variable{height:64px}.square-material{font-size:42px;line-height:1;background:white;border:2px solid #00866a;color:#006e59;border-radius:12px;padding:12px;touch-action:none}.square-material span{font-size:16px}.return-tray{border:2px dashed #9babbc;border-radius:12px;padding:12px;font-size:15px;color:#39566a;background:#fff}.return-tray small{font-size:14px}.drag-token{position:fixed;z-index:500;transform:translate(-50%,-65%);background:#fff;border:3px solid #00866a;border-radius:12px;padding:10px 18px;font-size:36px;color:#00725d;pointer-events:none;box-shadow:0 8px 24px #183e5133}.catalog-note{margin-top:15px;color:#46616a;font-size:15px}.catalog-note summary{cursor:pointer;color:#006b5b}.catalog-note p{max-width:850px;margin:10px 0}.catalog-toolbar{gap:14px}.catalog-toolbar input{font-size:17px}.list-meta,.pagination{font-size:15px}.outcome-list{gap:15px}.outcome-item{border-left:5px solid #279a85;padding:21px 24px;border-radius:12px}.outcome-item h3{font-size:18px;font-weight:600;line-height:1.55;color:#163e49}.outcome-item small{font-size:14px}.outcome-item .processes{font-size:16px}.outcome-item[open]{border-color:#68bfa9;background:#fafffc}.dialog{font-size:16px;max-height:85vh;overflow:auto}.dialog p{font-size:16px}.dialog h2{font-size:24px}.saved-content h3,.evidence-head h3{font-size:19px}.saved-content p,.evidence-head small,.rubric-row label,.stat-box p{font-size:14px}.evidence-card blockquote{font-size:17px}.empty p{font-size:16px}.toast{font-size:16px;line-height:1.5}
/* Fixed-height controls preserve object positions while selecting and dragging. */
.build-tool{min-width:62px;min-height:64px;font-size:13px;gap:6px;padding:8px}.build-tool svg{width:24px;height:24px}.build-toolbar{gap:5px;padding:12px}.build-tool.active{background:#007e65}.build-instruction{font-size:15px;color:#285a48;background:#dff7e9;min-height:48px}.build-instruction button{width:32px;height:32px;min-width:32px}.build-live-dot{background:#008e67}.material-tabs button{font-size:15px;min-height:42px;padding:8px 13px}.material-tabs>span{display:none}.material-tabs small{font-size:13px}.material-tabs button.active{background:#fff;color:#006b55;box-shadow:0 2px 6px #126e4820}.material-drawer{background:#e3f4ee}.shelf-items{min-height:100px;gap:10px;padding:8px 14px;align-items:stretch}.shelf-items .shelf-piece{min-width:105px;max-width:128px;min-height:82px;gap:5px}.shelf-items .shelf-piece svg{width:50px;height:50px}.shelf-items .shelf-piece span{font-size:13px;color:#335d50;white-space:normal;line-height:1.25;max-height:34px}.saved-material{flex-basis:120px;max-width:128px}.remove-material{width:27px;height:27px;font-size:20px;opacity:.8}.material-paint{min-height:36px;gap:10px}.material-paint>span{font-size:13px;color:#315a50}.paint-chip{width:29px;height:29px;min-width:29px;min-height:29px}.context-link{font-size:13px;min-height:36px}.build-options label{font-size:13px;color:#365a50;gap:6px}.build-options input{width:17px;height:17px}.build-context-actions .btn{font-size:13px;min-height:36px}.build-readout span{font-size:14px}.build-readout strong{font-size:16px;font-weight:600}.build-footnote{font-size:14px}.build-footnote{display:block}.construction-challenge label,.construction-challenge select{font-size:15px}.build-feedback{font-size:16px}.build-operation-status{font-size:14px;background:#fff;border-color:#b0d6c6;color:#235d48}.build-expanded .build-context{height:135px;flex:0 0 135px;padding:9px 14px}.build-expanded .build-options{overflow-x:auto}.build-expanded .build-context-actions .btn{min-height:36px}.build-context-actions{margin-top:7px!important}.build-expanded .build-instruction{font-size:15px}.construction-notice{font-size:16px;background:#e5f2ff;border-color:#a4cbea}.construction-notice strong{display:inline}.construction-notice a{display:inline-block;margin-left:10px}
@media(max-width:1180px){.main-content{padding:24px}.lab-layout{grid-template-columns:1fr}.inspector{display:grid;grid-template-columns:1fr 1fr}.inspector>.panel.task{grid-column:1/-1}.lab-heading{flex-wrap:wrap}.step-list{display:flex;gap:18px}.step{flex:1}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.main-content{padding:20px 14px 90px}.sidebar .brand{display:none}.nav-link{font-size:12px;padding:5px 4px;min-height:48px}.nav-link .icon{width:21px;height:21px}.hero-text{padding:25px}.hero p{font-size:17px}.hero h1{font-size:44px}.hero-actions{flex-wrap:wrap;gap:10px}.card-body{padding:18px}.card-body h3{font-size:21px}.card-grid{grid-template-columns:1fr}.card-art{height:145px}.filters{gap:4px}.filter{font-size:14px;padding:8px 10px}.section-row{flex-wrap:wrap;gap:14px}.home-bottom{flex-wrap:wrap}.lab-heading h1,.page-title{font-size:28px}.lab-tools{gap:8px}.btn,.btn.small{min-height:44px;font-size:14px;padding:8px 12px}.inspector{display:flex;flex-direction:column}.step-list{display:grid;gap:12px}.panel{padding:18px}.panel p,.step{font-size:16px}.canvas-hint{font-size:13px;left:8px;bottom:8px}.linked-reps{grid-template-columns:1fr;padding:18px}.control-panel{padding:18px}.point-editor{flex-wrap:wrap}.catalog-toolbar{display:grid;grid-template-columns:1fr 1fr}.search-box{grid-column:1/-1}.catalog-toolbar select{width:100%;font-size:15px;min-width:0}.catalog-toolbar .helper{grid-column:1/-1}.outcome-item{padding:17px 15px;border-left-width:4px}.outcome-item h3{font-size:17px}.outcome-item small{font-size:13px}.outcome-tag{font-size:13px}.list-meta span:last-child{display:none}.early-grid{grid-template-columns:repeat(4,1fr);gap:30px 10px;padding:28px 18px 40px}.early-cell{min-height:60px}.early-foot{display:none}.algebra-sides{grid-template-columns:1fr 22px 1fr;padding:20px 10px;gap:5px}.algebra-side{padding:8px;gap:6px}.algebra-tile{min-width:38px;height:38px;font-size:16px}.algebra-tile.variable{min-width:40px;height:76px}.direct-tray{padding:14px;gap:12px}.balance-tray{margin-inline:10px}.build-toolbar{gap:2px;padding:7px}.build-tool,.build-expanded .build-tool{min-width:47px;min-height:58px;font-size:11px;padding:6px 5px}.build-tool svg{width:22px;height:22px}.build-instruction,.build-expanded .build-instruction{font-size:13px;min-height:43px;padding:8px 10px}.material-tabs{gap:3px;padding:5px 7px}.material-tabs button{font-size:13px;min-height:39px;padding:8px 10px}.shelf-items{min-height:89px;padding:6px 8px;gap:6px}.shelf-items .shelf-piece{min-width:88px;min-height:76px;max-width:108px}.shelf-items .shelf-piece svg{width:43px;height:43px}.shelf-items .shelf-piece span{font-size:12px}.material-paint>span{font-size:12px}.material-paint{gap:9px}.paint-chip{width:27px;height:27px;min-width:27px}.build-expanded .build-context{height:139px;flex-basis:139px;padding:8px 10px}.build-options label,.build-expanded .build-options label{font-size:12px}.build-options{gap:10px}.build-context-actions .btn,.build-expanded .build-context-actions .btn{font-size:12px;min-height:38px}.build-operation-status{font-size:12px}.build-readout{grid-template-columns:1fr}.build-readout strong{font-size:15px}.build-context-actions{gap:7px}.construction-notice{font-size:15px}.construction-notice strong{display:none}.construction-notice a{margin:0}.dialog{padding:20px}.dialog h2{font-size:22px}}
@media(max-height:620px){.build-expanded .build-toolbar{flex-wrap:nowrap;overflow-x:auto}.build-expanded .build-tool{min-height:48px}.build-expanded .build-instruction{min-height:34px}.build-expanded .shelf-items{min-height:70px}.build-expanded .shelf-piece{min-height:58px}.build-expanded .shelf-piece svg{height:32px}.build-expanded .build-context{height:120px;flex-basis:120px}}
@media print{details.panel>summary{font-size:17px}.direct-tray,.balance-tray,.material-drawer,.build-toolbar,.build-context{display:none}.drag-token{display:none}.main-content{padding:0}.sidebar{display:none}}

.canvas-clean>.cell-palette{padding:16px 20px 0;display:flex;gap:12px;align-items:center;justify-content:center}.early-note{padding-top:20px}.early-grid{padding-top:24px}.copy-model{padding-bottom:4px}

.tile-choice svg{width:44px;height:44px}.saved-grid{gap:18px}@media(max-width:500px){.saved-grid{grid-template-columns:1fr}.saved-content h3{font-size:20px}}

.substitution{margin-bottom:14px}.substitution summary{cursor:pointer;font-size:16px;color:#006f5b;font-weight:600}.substitution .control-group{margin:16px 0}.substitution .math-equation{margin-top:12px}

@media(max-width:450px){.build-expanded .build-options{flex-wrap:wrap;overflow:visible;white-space:normal;gap:5px 12px}.build-expanded .build-context{height:155px;flex-basis:155px}.material-paint>span{display:none}.material-paint{gap:7px}.context-link{font-size:12px;padding:4px}.paint-divider{margin:0}.material-tabs{scrollbar-width:thin}.shelf-items{scrollbar-width:thin}}

/* One geometric mark, legible in both navigation layouts. */
.brand img{width:44px;height:44px;flex-shrink:0}.mobile-brand img{width:34px;height:34px;flex-shrink:0}.mobile-brand{gap:9px}
