/* Model-first shell: one viewport, no permanent left/right rails. */
html.model-stage-layout,html.model-stage-layout body{height:100%;height:100dvh;overflow:hidden}
.model-stage-layout .engine-lab{display:flex;flex-direction:column;height:100%;height:100dvh;max-width:none;min-height:0;padding:10px;gap:7px;overflow:hidden}
.model-stage-layout .lab-heading{flex:none;min-height:44px;padding:0 3px 7px;gap:12px;flex-wrap:nowrap;align-items:center}
.model-stage-layout .lab-heading>div:first-child{min-width:0;flex:1}
.model-stage-layout .lab-kicker{font-size:7px;letter-spacing:.1em;line-height:1.2}.model-stage-layout .lab-kicker .brand-mark{width:18px;height:14px}
.model-stage-layout .lab-heading h1{font-size:19px;line-height:1.25;letter-spacing:-.5px;margin:3px 0 0}.model-stage-layout .lab-heading h1 span{display:inline;font-size:13px;margin:0 0 0 9px;letter-spacing:-.2px}
.model-stage-layout .lab-heading p,.model-stage-layout .stage-label{display:none}
.model-stage-layout .learn-mode{padding:3px;border-radius:10px}.model-stage-layout .learn-mode button{min-height:34px;padding:7px 12px;font-size:10px}.model-stage-layout .tour-badge{font-size:7px}
.model-stage-layout .lab-body{flex:1;min-height:0;margin:0;display:flex}
.model-stage-layout .workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px minmax(0,1fr) auto;gap:7px;flex:1;min-height:0;align-items:stretch;width:100%}
.model-stage-layout .parts{grid-row:1;padding:0;min-width:0;overflow:hidden}
.model-stage-layout .parts>.eyebrow,.model-stage-layout .parts>a{display:none}
.model-stage-layout .parts nav{display:flex;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;gap:6px;margin:0;padding:0 0 3px;height:44px;align-items:stretch}
.model-stage-layout .parts button{flex:0 0 auto;width:auto;min-height:38px;padding:6px 10px;gap:7px;font-size:10px;border:1px solid #d7e5e0;background:#fff;border-radius:9px;white-space:nowrap}
.model-stage-layout .parts button span{width:22px;height:22px;font-size:9px;border-radius:6px}
.model-stage-layout .stage-column{grid-row:2;display:flex;min-height:0;padding:0;position:relative}
.model-stage-layout .viewport{flex:1;width:100%;height:100%!important;min-height:0;aspect-ratio:auto;border-radius:16px;overflow:hidden}
.model-stage-layout .stage,.model-stage-layout .stage canvas{width:100%;height:100%}.model-stage-layout .canvas-caption{top:12px;left:16px;right:16px;font-size:7px}.model-stage-layout .zoom{top:38px;right:12px}.model-stage-layout .zoom button{height:35px;min-height:35px;width:35px}
.model-stage-layout .model-dock{grid-row:3;display:flex;align-items:center;gap:7px;min-width:0;min-height:44px;padding:4px;background:#fff;border:1px solid #d9e8e1;border-radius:12px}
.model-stage-layout .model-dock>button{min-height:36px;padding:8px 12px;font-size:10px;white-space:nowrap}
.model-stage-layout .model-info-toggle{max-width:230px;text-overflow:ellipsis;overflow:hidden;background:#e6f7ef;color:#17674d}
.model-stage-layout .model-dock .view-options{display:flex;flex:none;max-width:45%;overflow-x:auto;flex-wrap:nowrap;margin:0;padding:2px;gap:3px;border:0;min-width:0}
.model-stage-layout .model-dock .view-options button{flex:none;min-height:32px;padding:7px 10px;font-size:10px;white-space:nowrap}
.model-stage-layout .model-dock .explore-nav{display:flex;margin:0 0 0 auto;padding:0;gap:5px;border:0;flex:none}.model-stage-layout .explore-nav #next{min-height:36px;padding:8px 13px;font-size:10px;width:auto}.model-stage-layout .explore-nav #tour-start{display:none}
.model-stage-layout .model-dock .tour-nav{position:static;display:flex;align-items:center;gap:5px;flex:1;justify-content:flex-end;min-width:0;border:0;margin:0 0 0 auto;padding:0;background:transparent}.model-stage-layout .tour-nav button{min-height:34px;padding:6px 9px;font-size:10px}.model-stage-layout .tour-dots{display:flex;gap:4px;flex-wrap:nowrap;margin:0;overflow:auto;max-width:190px}.model-stage-layout .tour-dots button{width:17px;height:17px;min-height:17px;padding:0;border-radius:5px}.model-stage-layout .tour-nav #tour-exit{min-height:34px}
.model-stage-layout .model-panel{position:absolute;top:auto;height:auto;z-index:20;right:10px;bottom:60px;width:min(370px,calc(100% - 20px));max-height:calc(100% - 112px);padding:19px;border:1px solid #c9ddd4;border-radius:16px;background:#fffffff5;box-shadow:0 16px 60px #091f4940;overflow:auto;overscroll-behavior:contain;backdrop-filter:blur(16px)}
.model-stage-layout .inspector:before{display:none}.model-stage-layout .inspector>div:first-of-type{padding-top:0}.model-stage-layout .inspector h2{font-size:24px;margin:8px 0 12px}.model-stage-layout .inspector p{font-size:12px;line-height:1.7}.model-stage-layout .inspector .think{padding:12px;font-size:11px}.model-stage-layout .inspector .eyebrow{font-size:8px}.model-stage-layout .technical-notes{margin:12px 0}.model-stage-layout .model-panel-close{display:block;margin:0 0 12px auto;min-height:34px;padding:6px 10px}.model-stage-layout .model-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.model-stage-layout .model-panel-heading h2{font-size:20px}.model-stage-layout .model-settings .controls{display:flex;flex-wrap:wrap;padding:0;border:0;background:transparent;gap:10px}.model-stage-layout .model-settings .utility-options{margin:0;padding:0;border:0}.model-stage-layout .model-settings .effect-options{flex-wrap:wrap;margin:0}.model-stage-layout .model-settings .params{display:grid;grid-template-columns:1fr;padding:0;border:0;margin-top:12px}.model-stage-layout .readout{font-size:10px}.model-stage-layout .workspace>.diagram-note{display:none}
.model-stage-layout footer{flex:none;display:block;font-size:7px;line-height:1.2;margin:0;padding:0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-stage-layout footer>span+span{display:none}
.model-stage-layout .workspace:fullscreen,.model-stage-layout .workspace.is-expanded{height:100dvh;padding:10px;background:#eff6f3;grid-template-rows:44px minmax(0,1fr) auto}
@media(max-width:700px){.model-stage-layout .engine-lab{padding:6px;gap:5px}.model-stage-layout .lab-heading{gap:6px;padding-bottom:5px;min-height:42px}.model-stage-layout .lab-heading h1{font-size:15px}.model-stage-layout .lab-heading h1 span,.model-stage-layout .lab-kicker,.model-stage-layout .tour-badge{display:none}.model-stage-layout .learn-mode button{padding:7px 9px;font-size:9px;min-height:32px}.model-stage-layout .workspace{grid-template-rows:42px minmax(0,1fr) auto;gap:5px}.model-stage-layout .model-dock{flex-wrap:wrap;gap:4px;padding:4px}.model-stage-layout .model-dock .view-options{flex:1 0 100%;max-width:100%;order:0;padding:0}.model-stage-layout .model-dock>button{padding:7px 9px;font-size:9px;min-height:34px}.model-stage-layout .model-info-toggle{max-width:43%}.model-stage-layout .model-dock .explore-nav #next{font-size:9px;padding:7px 9px;min-height:34px}.model-stage-layout .tour-dots{display:none}.model-stage-layout .tour-nav button{font-size:9px;padding:7px;min-height:34px}.model-stage-layout .tour-nav #tour-exit{display:none}.model-stage-layout .model-panel{bottom:100px;max-height:calc(100% - 150px);right:5px;width:min(360px,calc(100% - 10px));padding:15px}.model-stage-layout .canvas-caption{font-size:6px;left:10px;right:10px}.model-stage-layout .canvas-caption>span:last-child{display:none}.model-stage-layout .viewport-hint{font-size:7px}.model-stage-layout footer{font-size:6px}.model-stage-layout .parts button{min-height:36px;font-size:9px;padding:5px 8px}}
@media(max-height:500px){.model-stage-layout .lab-heading{min-height:34px}.model-stage-layout .lab-kicker,.model-stage-layout footer{display:none}.model-stage-layout .model-panel{max-height:calc(100% - 70px)}}
