:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;background:#000;color:#dce3d4;--paper:#e4e9d8;--line:#39413b}*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;flex-direction:column;overflow-x:hidden}.topline{height:58px;flex-shrink:0;display:flex;align-items:center;gap:20px;padding:0 24px;border-bottom:1px solid #202722;background:#000}.topline h1{font-size:17px;letter-spacing:-.4px;font-weight:500;margin:0}.topline p{font-size:12px;color:#919c93;margin:0 auto 0 0}.topline a{font:12px ui-monospace,monospace;color:#b6c0b4;text-underline-offset:5px}.topline a:hover{color:#fff}#stage{position:relative;flex:1;height:calc(100dvh - 170px);min-height:420px;overflow:hidden;background:#000}#scene{display:block;width:100%;height:100%}#dimensions,#page-links{position:absolute;inset:0;pointer-events:none}#dimensions span{position:absolute;left:0;top:0;font:10px ui-monospace,monospace;color:#b9c8bd;white-space:nowrap;will-change:transform}.corner-note{position:absolute;left:24px;bottom:17px;display:flex;flex-direction:column;gap:5px;font:11px ui-monospace,monospace;color:#939f95;pointer-events:none}.corner-note span:first-child{color:#dae0d7}#loading{position:absolute;inset:45% 0 auto;text-align:center;font:12px ui-monospace,monospace;background:#000;padding:16px}#page-links button{position:absolute;pointer-events:auto;color:transparent;background:transparent;border:0;min-height:24px;padding:0;cursor:pointer}#page-links button:hover{border-bottom:1px solid #e4e9d8;background:#ffffff06}#page-links button:focus-visible{outline:1px solid #e4e9d8;outline-offset:3px}.transport{padding:12px 24px 14px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1.1fr auto;gap:15px 28px;align-items:center;background:#000;flex-shrink:0;min-height:112px}.transport-title{font:12px ui-monospace,monospace;display:grid;grid-template-columns:1fr auto;gap:8px 14px;min-width:205px}.hint{grid-column:1/-1;color:#768279;font-size:11px}.scrubber{display:flex;align-items:center;gap:12px;font:12px ui-monospace,monospace;min-width:0}.scrubber>span:last-child{font-variant-numeric:tabular-nums;width:42px}.scrubber input{width:100%;min-width:50px;accent-color:#d7dfcf;cursor:ew-resize;height:18px}.buttons{display:flex;gap:7px;flex-wrap:wrap}button{font:12px Arial,sans-serif;color:#dce3d4;background:#000;border:1px solid #485449;border-radius:0;padding:9px 12px;min-height:34px;cursor:pointer}button:hover{background:#dfe6d6;color:#000}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid #ccdcbf;outline-offset:4px}dialog{width:min(980px,calc(100% - 28px));max-height:90dvh;background:#040605;color:#e4e9d8;border:1px solid #68715f;padding:24px;overflow:auto}dialog::backdrop{background:#000c;backdrop-filter:blur(7px)}dialog form{display:flex;justify-content:flex-end}#reading-content{max-width:810px;margin:0 auto;padding:10px 12px 30px}#reading-content h2{font:normal clamp(40px,7vw,80px)/1.04 Georgia,serif;letter-spacing:-2px;margin:24px 0}#reading-content p{font-size:16px;line-height:1.7;max-width:64ch}#reading-content .botanical{width:min(100%,480px);float:right;margin:0 -20px 0 20px}#reading-content h3{font-size:24px;font-weight:400;margin:26px 0 5px}#reading-content .case{padding:15px 0;border-top:1px solid #485449;clear:both}#reading-content .case small{font:12px ui-monospace,monospace;color:#bbc6ae}#reading-content .note{font:12px/1.6 ui-monospace,monospace;color:#a2af9b;clear:both;padding-top:30px}.methods{max-width:850px;margin:0 auto;padding:32px 24px}.methods h1{font:42px Georgia}.methods p,.methods li{font-size:16px;line-height:1.7}.methods a{color:#d4e0c8}@media(min-width:1600px){#stage{min-height:570px}.transport{padding-top:18px;padding-bottom:18px}}@media(max-width:1050px){.transport{grid-template-columns:1fr 1fr;gap:12px}.buttons{grid-column:1/-1;justify-content:center}.transport-title{min-width:0}#stage{height:calc(100dvh - 216px);min-height:400px}.hint{display:none}}@media(max-width:620px){.topline{height:54px;padding:0 14px;gap:10px}.topline h1{font-size:15px}.topline p{font-size:11px}.topline a{font-size:11px}.transport{padding:12px 14px;grid-template-columns:1fr;gap:9px}.transport-title{display:flex;justify-content:space-between}.buttons{gap:5px;justify-content:space-between}.buttons button{flex:1;padding:8px 6px;font-size:12px;white-space:nowrap}.corner-note{left:14px;font-size:10px;bottom:10px}#stage{height:calc(100dvh - 220px);min-height:380px}.scrubber{gap:9px}.scrubber>span:first-child{display:none}#reading-content{padding:0}#reading-content .botanical{float:none;width:100%;margin:0;max-height:360px;object-fit:contain}dialog{padding:16px}#reading-content h2{font-size:42px}}

/* QA revision: an explicit viewport grid, stable transport, and a clear host-badge lane. */
body.workspace{height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
#stage{height:auto;min-height:0;min-width:0;contain:layout paint}
.transport{grid-template-columns:minmax(190px,.8fr) minmax(140px,1fr) auto;gap:12px 22px;min-height:0;padding:14px 24px calc(46px + env(safe-area-inset-bottom,0px));position:relative;z-index:3}
.transport-title{min-width:0;grid-template-columns:minmax(0,1fr) 6ch;font-variant-numeric:tabular-nums;line-height:16px}
#direction{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#percent{text-align:right;width:6ch}#fraction{flex:0 0 5ch}.scrubber{min-width:0}.scrubber input{flex:1;width:0}
.buttons{display:grid;grid-template-columns:112px 86px 100px 108px;gap:7px;align-items:center;grid-column:auto;justify-content:start}
.buttons button{width:100%;white-space:nowrap;height:36px;padding:8px 6px;touch-action:manipulation}
#play{background:#dce3d4;color:#000}#play:hover{background:#fff}
@media(max-width:1150px){.transport{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 24px}.buttons{grid-column:1/-1;justify-content:center}.transport-title{display:grid}.hint{display:none}}
@media(max-width:620px){.transport{grid-template-columns:minmax(0,1fr);padding:10px 14px calc(46px + env(safe-area-inset-bottom,0px));gap:9px}.buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;justify-content:stretch}.buttons button{flex:none;height:34px}.transport-title{display:grid}.topline{height:50px}.topline p{display:none}.topline a{margin-left:auto}.scrubber{height:22px}#stage{min-height:0}}
@media(max-height:540px) and (min-width:621px){.topline{height:40px}.transport{padding-top:8px;gap:6px 20px}.buttons button{height:32px;min-height:32px}}

/* Camera controls belong to the canvas, never to the toolbar or reading dialog. */
#scene{touch-action:none;cursor:grab}#scene:active{cursor:grabbing}#scene:focus-visible{outline:1px solid #dce3d4;outline-offset:-4px}
.view-tools{position:absolute;top:16px;left:24px;display:flex;gap:6px;z-index:2}.view-tools button{background:#000c;min-width:34px;height:34px;padding:7px 11px}.view-tools button:first-child{min-width:98px}.model-credit{position:absolute;top:26px;right:24px;font:11px Arial,sans-serif;color:#b8c3b6;text-underline-offset:4px;background:#000a;padding:4px}.explore-hint{position:absolute;top:61px;left:24px;font:11px Arial,sans-serif;color:#929e93;pointer-events:none}#loading.asset-loading{inset:auto 24px 60px auto;text-align:right;max-width:330px;font-size:11px;padding:10px;background:#000b}
@media(max-width:620px){.view-tools{left:14px;top:12px}.explore-hint{left:14px;top:55px;font-size:10px}.model-credit{left:14px;right:auto;top:76px;font-size:10px}.corner-note{max-width:90%;font-size:9px}#loading.asset-loading{right:14px;bottom:54px}}

/* Rose polish: the artwork stays primary; one coherent, quiet tool language. */
.icon-library{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.control-icon,.hint-icon{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.hint-icon{width:14px;height:14px;flex-basis:14px;opacity:.8}
button{transition:background-color .16s,color .16s,border-color .16s;min-height:44px;touch-action:manipulation}
button:active{border-color:#e4e9d8}
button:focus-visible{outline:2px solid #e4e9d8;outline-offset:3px}
.view-tools{gap:0;border:1px solid #39413b;background:#000d;top:16px;left:24px}
.view-tools button{height:44px;min-height:44px;min-width:44px;border:0;border-right:1px solid #30382f;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;background:transparent}
.view-tools button:first-child{min-width:120px}
.view-tools button:last-child{border-right:0}
.view-tools button:hover{background:#20271f;color:#fff}
.view-tools button[aria-pressed="true"]{background:#e4e9d8;color:#10130e}
.view-tools #zoom-in,.view-tools #zoom-out{padding:0;width:44px}
.view-tools #ascii-toggle{min-width:94px}
.explore-hint{top:73px;display:flex;align-items:center;gap:7px;line-height:16px;color:#a5afa4}
.model-credit{top:28px;font-size:11px;line-height:16px}
.transport{padding-top:16px;padding-bottom:calc(48px + env(safe-area-inset-bottom,0px));gap:14px 24px}
.transport-title{font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:17px}
#percent,#fraction{font-family:ui-monospace,monospace;color:#a5afa4}
.hint{font-family:Arial,Helvetica,sans-serif;color:#a5afa4}
.scrubber{gap:10px;color:#a5afa4}.scrubber input{height:30px;accent-color:#e4e9d8}
.buttons{grid-template-columns:116px 116px 132px 120px;gap:0;border:1px solid #39413b}
.buttons button{height:44px;min-height:44px;border:0;border-right:1px solid #39413b;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:8px;background:#000;color:#dce3d4;font-size:12px}
.buttons button:last-child{border-right:0}
.buttons button:hover{background:#20271f;color:#fff}
.buttons #play{background:#e4e9d8;color:#10130e}
.buttons #play:hover{background:#fff}.buttons #play[aria-pressed="true"]{background:#bdcbb2}
.corner-note{line-height:1.5;color:#a5afa4}
@media(max-width:1250px){.transport{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 24px}.buttons{grid-column:1/-1;justify-content:center;width:max-content;justify-self:center}.hint{display:none}}
@media(max-width:720px){.model-credit{top:102px;left:24px;right:auto;font-size:10px}}
@media(max-width:620px){.view-tools{left:14px;top:12px}.view-tools button{padding:0 10px}.view-tools button:first-child{min-width:108px}.view-tools #ascii-toggle{min-width:84px}.explore-hint{left:14px;top:67px;font-size:10px}.model-credit{left:14px;top:90px}.transport{grid-template-columns:minmax(0,1fr);padding:10px 14px calc(48px + env(safe-area-inset-bottom,0px));gap:7px}.buttons{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;justify-self:stretch;gap:0}.buttons button{height:44px;min-height:44px;font-size:12px}.buttons button:nth-child(2){border-right:0}.buttons button:nth-child(-n+2){border-bottom:1px solid #39413b}.transport-title{font-size:12px}.scrubber{height:26px}.topline h1{font-size:16px}}
@media(max-height:540px) and (min-width:621px){.transport{padding-top:8px;gap:6px 20px}.buttons button{height:44px;min-height:44px}.view-tools{top:10px}.explore-hint{top:62px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
/* Three-form study: same workspace, direct changes rather than a play-through. */
.transport-title{grid-template-columns:minmax(0,1fr) 10ch}#percent{width:10ch;white-space:nowrap}
.buttons{grid-template-columns:136px 108px 100px}.buttons #randomize{background:#e4e9d8;color:#10130e}.buttons #randomize:hover{background:#fff}.buttons #play{background:#000;color:#dce3d4}.buttons #play:hover{background:#20271f;color:#fff}.buttons #play[aria-pressed="true"]{background:#20271f;color:#e4e9d8}
button:disabled{cursor:wait;opacity:.52}.buttons #randomize:disabled{background:#7d8976;color:#10130e}
.process-track{display:grid;grid-template-columns:minmax(0,1fr) 9ch;gap:8px 12px;align-items:center;font:11px Arial,sans-serif;color:#a5afa4;min-width:0}.process-track #phase-caption{grid-column:1/-1}.process-rail{height:2px;background:#263024;overflow:hidden}.process-rail span{display:block;height:100%;width:0;background:#e4e9d8;transition:width .1s linear}.process-track #fraction{font:10px ui-monospace,monospace;text-align:right;min-width:9ch}.corner-note{max-width:75%;font-family:Arial,Helvetica,sans-serif;font-size:11px;gap:4px}.corner-note span:first-child{font-size:13px}.transport .hint{line-height:1.5;max-width:38ch}
@media(max-width:620px){.buttons{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.85fr)}.buttons button{padding:0 8px;gap:6px}.buttons button:nth-child(-n+2){border-bottom:0}.buttons button:nth-child(2){border-right:1px solid #39413b}.process-track{gap:5px 10px}.process-track #phase-caption{font-size:10px}.corner-note{max-width:80%;font-size:10px}.corner-note span:first-child{font-size:12px}.model-credit{max-width:90%}}
@media(prefers-reduced-motion:reduce){.process-rail span{transition:none}}
#renderer-error{position:absolute;inset:18% max(20px,calc((100% - 620px)/2)) auto;z-index:9;background:#080b07;border:1px solid #77836e;padding:24px;color:#e4e9d8;max-height:75%;overflow:auto;box-shadow:0 0 0 100vmax #000b}#renderer-error strong{font-size:20px;font-weight:500}#renderer-error p{font-size:13px;line-height:1.6;max-width:55ch}#renderer-error summary{cursor:pointer;font-size:12px;margin:18px 0}#renderer-error pre{font:11px/1.5 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#bfcbb6}#renderer-error button{margin-top:12px;min-height:44px}

/* Final clearance correction: reserve a viewport-bottom lane for the host badge.
   This selector intentionally wins over every earlier responsive footer rule. */
body.workspace > .transport{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
