:root{--ink:#18324c;--muted:#52667e;--line:#dce4ef;--green:#087c58;--violet:#6442ce;--light:#f3f6fb;--gold:#f7c94a;--white:#fff;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--light);line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,.button{cursor:pointer;border:1px solid #cbd5e4;background:#fff;color:var(--ink);padding:10px 14px;border-radius:10px;min-height:44px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}button:hover,.button:hover{border-color:var(--violet);background:#f4f0ff}button:disabled{opacity:.48;cursor:default}button.primary,.button.primary{background:var(--violet);border-color:var(--violet);color:#fff}button.primary:hover,.button.primary:hover{background:#4f31b1}button[aria-pressed=true]{background:#ede7ff;border-color:#8864e2;color:#4d2ba7}a{color:#5033a8}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e6a800;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:24px;line-height:1.2}h2{font-size:20px;line-height:1.3;margin-bottom:12px}h3{font-size:17px;line-height:1.35;margin-bottom:7px}.muted,.help{color:var(--muted);font-size:14px}.eyebrow{text-transform:uppercase;letter-spacing:1.6px;font-size:12px;font-weight:750;color:var(--green);margin-bottom:8px}.skip{position:fixed;left:12px;top:-80px;z-index:100;background:white;padding:12px}.skip:focus{top:10px}.app-header{height:78px;background:#fff;border-bottom:1px solid var(--line);padding:12px 26px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand-lockup{display:flex;align-items:center;gap:11px;color:#172c49;text-decoration:none;flex-shrink:0}.brand-icon{width:38px;height:38px;color:var(--green)}.brand-lockup strong{font-size:24px;letter-spacing:-.8px;line-height:1;display:block}.brand-lockup small{font-size:14px;letter-spacing:.7px;color:var(--muted)}.main-nav{display:flex;align-items:center;gap:5px}.main-nav a{display:flex;align-items:center;gap:7px;text-decoration:none;color:var(--muted);padding:10px 15px;border-radius:10px;font-weight:650;font-size:15px}.main-nav a[aria-current=page]{color:#5030b2;background:#eee8ff}.main-nav a:hover{background:#f1f4fa}.teacher-button{font-size:14px}.workspace{display:grid;grid-template-columns:244px minmax(300px,1fr) 334px;gap:18px;max-width:1880px;padding:20px;margin:auto;align-items:start}.library,.guide{background:#fff;border:1px solid var(--line);border-radius:16px;min-width:0;overflow:hidden}.library{padding:19px 15px;max-height:calc(100vh - 118px);overflow:auto;position:sticky;top:20px}.library h2{font-size:19px;margin:0 0 13px}.library input,.library select{width:100%;margin-bottom:12px}.search-label{font-size:14px;font-weight:650;display:block;margin-bottom:5px}input[type=search],input[type=text],input[type=number],textarea,select{border:1px solid #c5d0df;border-radius:9px;background:white;padding:10px;color:var(--ink);min-height:44px;max-width:100%}textarea{width:100%;resize:vertical}input[type=range]{accent-color:var(--violet);min-width:60px;max-width:100%}input[type=checkbox]{accent-color:var(--violet);width:17px;height:17px}.family-description{font-size:14px;color:var(--muted);margin-bottom:14px}.library-count{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin:16px 0 9px}.model-list{display:grid;gap:7px}.model-card{width:100%;text-align:left;justify-content:flex-start;padding:8px;gap:9px;font-weight:500;min-height:68px;line-height:1.25;border-color:#e2e7ef;border-radius:10px}.model-card svg,.model-card img{height:52px;width:52px;flex:0 0 52px;object-fit:contain}.model-card span{min-width:0;overflow-wrap:anywhere}.model-card strong{font-size:14px;font-weight:650;display:block}.model-card small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.model-card[aria-current=true]{border:2px solid var(--violet);background:#f7f4ff;padding:7px}.library-note{font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:13px;margin:18px 0 0}.workbench{min-width:0}.work-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;min-height:51px}.work-heading h1{margin:0 0 4px}.breadcrumb{font-size:13px;color:var(--muted);margin:0}.stage{position:relative;isolation:isolate;border-radius:16px;overflow:hidden;border:1px solid #bcd0e4;background:radial-gradient(ellipse at 48% 40%,#f2faff 0,#d8eaf8 60%,#c4daed 100%);height:clamp(340px,62vh,680px)}.stage:before{content:'';position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#8baed31b 1px,transparent 1px),linear-gradient(90deg,#8baed31b 1px,transparent 1px);background-size:28px 28px}.stage canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.stage>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.stage>svg .hit{pointer-events:all;cursor:pointer}.stage>svg text{font:12px Segoe UI,Arial,sans-serif;fill:#304d68;paint-order:stroke;stroke:#fff;stroke-width:3px;pointer-events:none}.model-caption{position:absolute;top:14px;left:14px;right:14px;font-size:14px;font-weight:650;pointer-events:none;display:none}.stage-hint{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);max-width:95%;padding:6px 13px;font-size:12px;color:#34516e;background:#ffffffd6;border:1px solid #fff;border-radius:30px;text-align:center;white-space:nowrap;pointer-events:none}.stage-badge{position:absolute;left:15px;top:15px;border-radius:20px;padding:5px 11px;background:#fff;color:#315b77;font-size:12px;font-weight:650;pointer-events:none}.bar,.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.view-tools{padding:12px 0;gap:7px}.view-tools button{font-size:14px;padding:7px 11px;min-height:40px}.toggle{display:inline-flex;align-items:center;gap:6px;font-size:14px;cursor:pointer}.fold-panel{padding:15px 18px;background:#fff;border:1px solid var(--line);border-radius:13px}.fold-panel input[type=range]{flex:1}.fold-panel output{width:45px;font-size:14px;text-align:right}.fold-panel label{font-size:14px;font-weight:650}.fold-panel .bar+.bar{margin-top:10px}.status{font-size:14px;background:#e6f3ee;border:1px solid #cce5d9;border-radius:10px;padding:11px 14px;margin-top:12px;color:#235841;min-height:45px}.status:empty{display:none}.badge{font-size:12px;border-radius:20px;padding:5px 10px;background:#e7eef7;color:#34516c}.guide{padding:21px;position:sticky;top:20px;max-height:calc(100vh - 118px);overflow:auto}.guide .full{width:100%}.guide .pill{display:inline-block;font-size:12px;padding:4px 8px;border-radius:7px;background:#f0ecff;color:#5f3aaf;margin:0 4px 5px 0}.question-box{border-radius:12px;background:#fff7d9;padding:16px;margin:19px 0}.question-box strong{display:block;font-size:14px;margin-bottom:5px}.question-box p{margin:0;font-size:16px}.explain{font-size:15px}.small-heading{font-size:14px;font-weight:700;margin:20px 0 9px}.parts-recipe{display:flex;gap:7px;flex-wrap:wrap}.part-chip{font-size:13px;background:#f0f4fa;padding:7px 9px;border-radius:8px;border:0;text-decoration:none;min-height:35px;display:inline-flex;align-items:center}.part-chip:hover{background:#e8e0ff}.connection-note{border-top:1px solid var(--line);padding-top:15px;margin-top:20px;font-size:14px;color:var(--muted)}.step-track{display:flex;gap:7px;margin:16px 0 20px}.step-track button{min-height:35px;width:35px;padding:0;border-radius:50%;font-size:14px}.step-track button[aria-current=step]{background:var(--violet);color:#fff;border-color:var(--violet)}.step-count{font-size:12px;letter-spacing:1px;color:var(--muted);text-transform:uppercase;margin-bottom:8px}.step-heading{font-size:22px;line-height:1.2;margin-bottom:13px}.lesson-section{min-height:270px}.lesson-section label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}.lesson-section .bar{margin:12px 0}.lesson-section .prediction-input{width:100%}.definition{display:grid;grid-template-columns:1fr;gap:8px;margin:13px 0}.definition div{font-size:14px;border-left:3px solid #c4b2f6;padding-left:11px}.definition strong{color:#4d2ca2}.counts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;margin:15px 0}.counts input{width:100%}.counts label{font-size:12px!important}.count-controls{display:flex;gap:5px}.count-controls button{font-size:13px;padding:8px;flex:1}.legend{font-size:13px;color:var(--muted);margin:14px 0}.feature-grid{display:none}.hint-box{background:#f1f5fb;border-radius:9px;padding:13px;margin:12px 0;font-size:14px}.step-footer{display:flex;gap:9px;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.step-footer button{flex:1}.hint-trigger{font-size:14px;min-height:38px;padding:7px 10px}.result{font-size:19px;font-weight:750;color:#5331af;padding:14px;background:#f0ebff;border-radius:10px;margin:12px 0}.comparison-table{width:100%;border-collapse:collapse;font-size:14px;margin:15px 0}.comparison-table th,.comparison-table td{padding:8px 5px;border-bottom:1px solid var(--line);text-align:right}.comparison-table th:first-child,.comparison-table td:first-child{text-align:left}.comparison-table button{border:0;padding:2px;background:none;font-size:13px;font-weight:600;text-align:left;justify-content:start;min-height:36px;color:#5537a9}.blank{color:var(--muted);text-align:left!important}.next-models{display:flex;gap:7px;flex-wrap:wrap}.next-models button{font-size:13px}.intro-strip{border:1px solid #e4dbfb;background:#faf8ff;padding:11px 14px;border-radius:10px;font-size:14px;margin-bottom:15px}.intro-strip strong{color:#5d39bb}.teacher-dialog{border:0;border-radius:18px;width:min(700px,calc(100vw - 30px));padding:0;box-shadow:0 20px 90px #162f5366;color:var(--ink);max-height:88vh}.teacher-dialog::backdrop{background:#112b4d88}.dialog-top{display:flex;justify-content:space-between;align-items:center;padding:21px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.dialog-top h2{margin:0}.dialog-content{padding:24px 25px}.dialog-content li{padding:5px 0}.dialog-content details{border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:15px}.dialog-content summary{cursor:pointer;font-weight:700}.teacher-answer{padding:14px;margin-top:12px;border:1px solid #dacdf9;border-radius:9px;background:#f4efff}.print-note{font-size:13px;color:var(--muted)}.footer{font-size:12px;color:#63768c;padding:0 22px 22px;max-width:1880px;margin:auto}.empty{padding:14px 0;font-size:14px;color:var(--muted)}.family-study{font-size:14px;background:#f4f0ff;padding:12px;border-radius:10px}.family-study a{font-size:13px}.mode-heading{font-size:13px;display:block;color:var(--muted)}.mobile-library-toggle{display:none}.stage-labels{position:absolute;inset:0;pointer-events:none}.stage-label{position:absolute;transform:translate(-50%,-50%);padding:4px 7px;background:#fffffff0;border-radius:7px;font-size:12px;font-weight:700}.machine-page .layout{display:grid;grid-template-columns:244px minmax(300px,1fr) 334px;gap:18px;padding:20px;max-width:1880px;margin:auto;align-items:start}.machine-page .layout>main{min-width:0}.machine-page .sidebar{padding:0;background:none;border:0;max-height:calc(100vh - 120px);overflow:auto;position:sticky;top:20px}.machine-page .card{border:1px solid var(--line);background:#fff;padding:19px;border-radius:14px;margin-bottom:14px}.machine-page .card h2{font-size:18px}.machine-page .field{display:block;font-size:14px;font-weight:600;margin-bottom:14px}.machine-page .field select{display:block;width:100%;font-weight:400;margin-top:5px}.machine-page .bar{margin:12px 0}.machine-page .readouts{display:flex;gap:20px}.machine-page .readouts strong{display:block;font-size:24px;color:#6242c7}.machine-page .readouts span{font-size:13px;color:var(--muted)}.machine-page .part-list{width:100%;border-collapse:collapse;font-size:14px}.machine-page .part-list td{padding:8px 4px;border-bottom:1px solid var(--line)}.machine-page .part-list td:last-child{text-align:right;font-weight:700}.machine-page .source{font-size:12px}.machine-page .note{font-size:14px;color:var(--muted)}.machine-page #caption{position:absolute;top:15px;left:15px;font-size:14px;font-weight:700;max-width:90%}.machine-page #mode-badge{display:none}.machine-page .stage canvas{height:100%!important}.machine-page .stage.rainbow-stage{height:clamp(340px,62vh,680px)}.machine-page .stage.rainbow-stage canvas{height:100%!important}.machine-page .side-controls{display:none}.machine-page .control-panel input[type=range]{flex:1}.machine-page .trace-table{width:100%;font-size:13px;border-collapse:collapse}.machine-page .trace-table td,.machine-page .trace-table th{padding:7px;border-bottom:1px solid var(--line);text-align:left}.machine-page .construction-link{display:block;font-size:14px;padding:8px 0}.machine-page #source{display:none}.prototype-note{padding:12px;border-radius:10px;background:#fff6db;font-size:14px}.machine-page .activity-picker{display:none}.teacher-summary{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
@media(min-width:1550px){.workspace,.machine-page .layout{grid-template-columns:270px minmax(300px,1fr) 370px;gap:22px;padding:24px}.guide{padding:25px}.stage,.machine-page .stage.rainbow-stage{height:67vh}}@media(max-width:1140px){.workspace,.machine-page .layout{grid-template-columns:205px minmax(280px,1fr) 292px;gap:12px;padding:14px}.app-header{padding:12px 16px}.main-nav a{padding:10px}.guide{padding:17px}.library{padding:16px 11px}.brand-lockup strong{font-size:21px}.teacher-button{padding:9px}}@media(max-width:960px){.workspace,.machine-page .layout{grid-template-columns:210px minmax(0,1fr)}.guide,.machine-page .sidebar{grid-column:2;position:static;max-height:none}.library{grid-row:1 / span 2}.app-header{height:auto;flex-wrap:wrap;gap:10px}.main-nav{order:3;flex-basis:100%;justify-content:center;border-top:1px solid var(--line);padding-top:8px}.guide .lesson-section{min-height:0}.stage,.machine-page .stage.rainbow-stage{height:48vh;min-height:320px}.step-track{justify-content:space-between}.step-track button{width:40px;height:40px}.model-card svg,.model-card img{height:44px;width:44px;flex-basis:44px}.work-heading h1{font-size:22px}}@media(max-width:650px){.app-header{padding:12px}.brand-lockup strong{font-size:20px}.brand-icon{width:31px;height:31px}.brand-lockup small{font-size:12px}.teacher-button{font-size:13px;min-height:40px}.main-nav a{padding:9px 12px;font-size:14px}.workspace,.machine-page .layout{display:flex;flex-direction:column;padding:12px;gap:14px}.library,.guide,.workbench,.machine-page .layout>main,.machine-page .sidebar{width:100%;position:static;max-height:none}.library{padding:13px}.library h2{font-size:17px}.model-list{max-height:230px;overflow:auto;grid-template-columns:1fr 1fr}.model-card{min-height:63px}.model-card strong{font-size:13px}.model-card small{font-size:12px}.family-description{margin-bottom:8px}.library-note{display:none}.library-count{margin-top:6px}.library select,.library input{margin-bottom:8px}.mobile-library-toggle{display:inline-flex}.library.collapsed .library-content{display:none}.library-top{display:flex;justify-content:space-between;align-items:center}.library-top h2{margin-bottom:0}.work-heading h1{font-size:23px}.stage,.machine-page .stage.rainbow-stage{height:390px;min-height:300px;max-height:60vh}.stage-hint{font-size:11px}.view-tools{gap:5px}.view-tools button{padding:7px 10px}.fold-panel{padding:13px}.guide{padding:20px}.teacher-dialog .dialog-content{padding:19px}.counts label{font-size:13px!important}.machine-page .sidebar{overflow:visible}.footer{padding:5px 16px 20px}.machine-page #caption{max-width:90%;font-size:13px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media print{.app-header,.library,.view-tools,.fold-panel,.step-track,.step-footer,.footer{display:none!important}.workspace{display:block}.guide{position:static;max-height:none}.teacher-dialog[open]{position:static;max-height:none;width:100%;box-shadow:none}body:has(.teacher-dialog[open])>*:not(.teacher-dialog){display:none!important}}

.machine-page #question{background:#fff7d9;color:#584a1e;border-radius:12px;padding:16px;font-size:16px;margin:15px 0}.drive-table,.system-table{font-size:14px;width:100%;border-collapse:collapse}.drive-table th,.drive-table td,.system-table th,.system-table td{padding:7px;border-bottom:1px solid var(--line);text-align:left}#lab-error,.alert{background:#fff0eb;border:1px solid #e9b4a3;color:#823a22;padding:15px;border-radius:10px;margin-top:12px}

/* The shared navigation includes the recovered Free Build workspace. */
.main-nav{flex-wrap:wrap}

#part-to-build{margin-bottom:9px}

.app-header{height:auto;min-height:78px}

/* Entry to the dedicated Sarrus workspace. */
.sarrus-link{display:block;margin:12px 0;padding:14px!important;border:1px solid #d7cbed;border-radius:10px;background:#f7f3ff;text-decoration:none}.sarrus-link strong,.sarrus-link small{display:block}.sarrus-link small{font-size:14px;font-weight:400;margin-top:4px}.sarrus-link:hover{background:#eee5ff}

.brand-wordmark{display:block;width:172px;height:38px;overflow:hidden}.brand-lockup small{line-height:1.1}.brand-lockup{min-width:172px}
@media(max-width:650px){.brand-wordmark{width:150px;height:33px}.brand-lockup{min-width:150px}}

.stage-hint{white-space:normal;width:max-content;max-width:95%}

/* Structure Smart leads; the original Lux Blox artwork stays as the endorsement. */
.app-header .structure-brand{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:220px;color:#18324c;line-height:1.1}.structure-wordmark{font-size:22px;font-weight:850;letter-spacing:.5px;white-space:nowrap}.structure-powered{display:flex;align-items:center;gap:7px;font-size:12px;letter-spacing:.2px;color:#52667e}.structure-powered .brand-wordmark{width:104px;height:23px}.app-header{height:auto;min-height:78px;flex-wrap:wrap}.app-header .main-nav{flex-wrap:wrap}
@media(max-width:650px){.app-header .structure-brand{min-width:190px}.structure-wordmark{font-size:19px}.structure-powered{font-size:11px}.structure-powered .brand-wordmark{width:94px;height:21px}}

.part-section-heading{grid-column:1/-1;margin:12px 0 2px;padding-top:8px;border-top:1px solid #dce3ed;font-size:14px;line-height:1.4;color:#405570}.part-section-heading:first-child{margin-top:0;border-top:0;padding-top:0}
