.explorer{padding-block:45px 68px}
.field-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,350px);align-items:end;gap:32px;margin:0 0 27px}
.field-intro h1{font-size:clamp(43px,5.6vw,78px);margin-top:14px}
.field-intro p{font-size:16px}
.workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,365px);gap:17px;align-items:start}
.field-stage{position:relative;border-radius:23px;overflow:hidden;min-height:590px;isolation:isolate;background:#0b2922}
#canvas-wrap{position:absolute;inset:0}
#canvas-wrap canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}
#canvas-wrap canvas:active{cursor:grabbing}
#canvas-wrap:focus-visible{outline-offset:-5px;z-index:2}
.stage-top{position:absolute;top:17px;left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:3;pointer-events:none;color:#c3d6c3}
.stage-top .eyebrow{font-size:10px}
.stage-hint{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px);z-index:3;display:flex;align-items:center;gap:8px;font-size:12px;background:#0b2922d9;color:var(--night-text);border:1px solid #bdcfc052;border-radius:999px;padding:7px 13px;pointer-events:none;text-align:center}
.drag-icon{font-size:17px;color:var(--mint);line-height:1}
.loading-overlay,.field-fallback{position:absolute;inset:0;z-index:4;background:#0b2922;display:grid;place-content:center;text-align:center;justify-items:center;gap:12px;padding:24px}
.loading-overlay.hidden{visibility:hidden;opacity:0;pointer-events:none;transition:visibility .22s,opacity .22s}
.loading-overlay .pulse{width:29px;height:29px;border:1px solid #bcdcc153;border-top-color:var(--mint);border-radius:50%;animation:revolve 1.4s linear infinite}
@keyframes revolve{to{transform:rotate(360deg)}}
.loading-overlay p{color:var(--night-text);font-size:14px}
.loading-overlay .sub{font-size:11px;color:var(--night-muted)}
.field-fallback img{width:min(100%,550px);max-height:calc(100% - 65px);object-fit:contain}
.field-fallback strong{color:var(--night-text)}
.field-fallback p{max-width:390px}
.css2d-label{font-family:var(--body);min-width:105px;text-align:center;white-space:nowrap;color:var(--night-text);font-variant-numeric:tabular-nums;text-shadow:0 1px 6px #091b14}
.css2d-label .title{font-size:12px;font-weight:700}
.css2d-label .pct{font-size:11px;color:#d4e0cc}
.css2d-label.low .title{color:#a3dbc9}.css2d-label.high .title{color:var(--mint)}
.field-controls{border:1px solid var(--line);border-radius:23px;background:#edf1e5;padding:19px 20px}
.controls-heading{margin-bottom:14px}
.controls-heading .eyebrow{color:var(--muted);font-size:10px}
.controls-heading h2{font-size:31px;margin-top:6px}
.fieldset{border:0;padding:0;margin:0;min-width:0;display:grid;gap:13px}
.fieldset:disabled{opacity:.62}
.control-group{min-width:0}
.control-label{font-size:13px;font-weight:700;display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:5px}
.control-label output{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}
.segments{display:flex;background:#e3eadc;padding:3px;border:1px solid #c3d0bf;border-radius:13px;gap:3px}
.segments button{flex:1;min-height:40px;background:transparent;border:1px solid transparent;border-radius:9px;font-size:12px;font-weight:600;line-height:1.15;padding:6px}
.segments button.active{background:var(--paper);border-color:#adbfab;box-shadow:0 1px 3px #102f2711}
.control-group input[type=range]{width:100%;margin:0;min-height:24px;accent-color:var(--ink);cursor:ew-resize}
.control-group input:disabled{cursor:not-allowed;opacity:.4}
.scale-notes{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted)}
.compare-hint{display:none;margin-top:-4px}
body.compare .compare-hint{display:block}
.camera-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.camera-controls button{border:1px solid #b0c0ad;border-radius:9px;background:var(--paper);padding:6px 3px;font-weight:650;font-size:11px;line-height:1.2;min-height:43px}
.camera-controls button[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}
.model-note{margin-top:13px;padding-top:10px;border-top:1px solid #c8d4c6}
.model-note p{font-size:12px;min-height:2.9em}
.readouts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0 0}
.readouts dt{font-size:10px;color:var(--muted)}
.readouts dd{margin:0;font-weight:700;font-size:12px;font-variant-numeric:tabular-nums}
.field-explain{display:grid;grid-template-columns:1.3fr 1fr;gap:36px;margin-top:40px;padding-top:31px;border-top:1px solid var(--line)}
.field-explain h2{font-size:clamp(27px,3.6vw,48px);margin:10px 0}
.field-explain p{font-size:15px}
.credits{background:var(--surface);border-radius:19px;padding:20px}
.credits p{margin-top:8px;font-size:13px}
.credits a{text-underline-offset:3px}
.credits .fine{font-size:11px}
.field-gate{display:grid;grid-template-columns:1fr minmax(225px,340px);align-items:center;gap:35px;border-radius:22px;background:var(--surface);padding:clamp(20px,4vw,44px)}
.field-gate h2{font-size:clamp(28px,4vw,53px);margin:9px 0}
.field-gate form{display:grid;gap:7px}
.field-gate label{font-size:13px;font-weight:650}
.field-gate label span{font-weight:400}
.field-gate input:not([type=hidden]){height:45px;padding:8px 12px;border:1px solid #aabcaa;border-radius:10px;background:var(--paper)}
.field-gate form button{justify-self:start;margin-top:7px}
.field-embed-credit{display:none}
html.hf-embed,html.hf-embed body{width:100%;height:100%;overflow:hidden;background:#0b2922;color:var(--night-text)}
html.hf-embed .field-chrome{display:none!important}
html.hf-embed .explorer{padding:0;width:100%;max-width:none;height:100%;position:relative}
html.hf-embed .workbench{display:block;height:100%}
html.hf-embed .field-stage{height:100%;min-height:0;border-radius:0}
html.hf-embed .field-embed-credit{position:absolute;z-index:5;top:15px;left:17px;right:17px;display:flex;justify-content:space-between;pointer-events:none;gap:5px;font-size:10px;color:var(--night-muted)}
html.hf-embed .field-embed-credit span{padding-top:7px}
#embed-pause{pointer-events:auto;border:1px solid #9fbcaa63;border-radius:999px;padding:4px 10px;min-height:32px;color:var(--night-text);background:#0b2922e8;font-size:11px}
#embed-pause:focus-visible{outline-color:var(--mint)}
html.hf-embed .stage-top{display:none}
@media(max-width:920px){.workbench{grid-template-columns:minmax(0,1fr) minmax(275px,320px)}.field-stage{min-height:570px}}
@media(max-width:700px){
  .explorer{padding-block:28px 44px}.field-intro{grid-template-columns:1fr;gap:12px;margin-bottom:19px}
  .field-intro h1{font-size:clamp(38px,8.6vw,58px)}
  .workbench,.field-explain,.field-gate{grid-template-columns:minmax(0,1fr);gap:14px}
  .field-stage{min-height:clamp(345px,108vw,500px)}
  .field-controls{padding:17px}
  .stage-top{top:10px;left:13px;right:13px}
  .stage-hint{font-size:10px}
  .css2d-label{min-width:82px}.css2d-label .title{font-size:10px}.css2d-label .pct{font-size:9px}
  .field-explain{margin-top:28px}
}
@media(max-width:700px) and (min-height:570px){
  html:not(.hf-embed):not(.hf-practice) .field-stage{position:sticky;top:7px;z-index:2;min-height:clamp(236px,39svh,350px)}
  .field-controls :is(button,input){scroll-margin-top:clamp(252px,42svh,367px)}
}

/* Homepage hero embed (?embed=hero): one heart, nothing but the model. Does not affect other modes. */
html.hf-hero,html.hf-hero body,html.hf-hero .field-stage{background:#163e36}
html.hf-hero .field-embed-credit,html.hf-hero .stage-hint,html.hf-hero .loading-overlay{display:none!important}
/* Homepage two-body embed: the parent page shows a subtle spinner; don't cover the tile with the explorer overlay. */
html.hf-embed:not(.hf-hero) .loading-overlay{display:none!important}

html.hf-hero #canvas-wrap canvas{touch-action:pan-y}
