:root{color-scheme:dark;--bg:#090a0a;--panel:#101112;--border:#292a2c;--muted:#8a8b8d;--text:#e5e6e7;--pink:#f34a87;--code:#44d79c;--model:#db8c73;--you:#f0ca57;font-family:Consolas,'Cascadia Code','Courier New',monospace;font-size:12px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button,a,select,input{touch-action:manipulation}button,select{color:var(--text);background:#151618;border:1px solid var(--border);padding:8px 12px;cursor:pointer;border-radius:0}button:hover,select:hover{border-color:#737477}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,canvas:focus-visible{outline:2px solid var(--pink);outline-offset:4px}button.primary{background:var(--pink);border-color:var(--pink);color:#090a0a;font-weight:bold}a{color:var(--muted);text-decoration:none}a:hover{color:var(--pink)}button.quiet{border-color:transparent;background:transparent;color:var(--muted);padding:6px 8px}.topbar{height:62px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:0 28px}.wordmark{display:flex;align-items:center;gap:12px;letter-spacing:.8px;color:#eee;font-weight:bold;font-size:14px}.wordmark svg{width:25px;height:25px;fill:none;stroke:var(--pink);stroke-width:1.2}.wordmark span{color:#666;font-size:9px;font-weight:normal;border-left:1px solid var(--border);padding-left:14px}.top-actions{display:flex;align-items:center;gap:18px}.local{font-size:10px;color:var(--muted);letter-spacing:1px}.local i,.footnote i{display:inline-block;width:5px;height:5px;background:var(--code);margin-right:8px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;max-width:1700px;margin:auto;min-height:calc(100dvh - 62px)}.viewer{padding:13px 24px 18px;min-width:0;display:flex;flex-direction:column;align-items:center;border-right:1px solid var(--border)}.view-heading{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:1050px;color:var(--muted);font-size:9px;letter-spacing:.9px;padding-bottom:10px}.pink-dot{display:inline-block;width:5px;height:5px;margin-right:8px;background:var(--pink)}.view-heading button{font-size:10px;letter-spacing:0}.stage-host{height:calc(100dvh - 210px);min-height:380px;max-height:1350px;width:100%;display:flex;justify-content:center;align-items:center;gap:14px;overflow:hidden;background:#080909}#scene{display:block;max-width:100%;width:auto;height:100%;aspect-ratio:4/5;cursor:crosshair}.transport{width:100%;max-width:1050px;border-top:1px solid var(--border);padding-top:12px;margin-top:12px}.transport-top,.transport-bottom{display:flex;align-items:center;justify-content:space-between}.playback{display:flex;align-items:center;gap:10px}.playback button{font-size:11px;min-width:58px;padding:7px 12px}.time{color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}.playback label{font-size:10px;color:var(--muted)}.playback select{padding:5px 6px;font-size:11px}.check{display:flex;gap:5px;align-items:center}input[type=checkbox]{accent-color:var(--pink)}input[type=range]{accent-color:var(--pink);height:3px;cursor:pointer;margin:18px 0;width:100%;display:block}.transport-bottom{font-size:9px;color:#777;gap:10px}.transport-bottom b{font-weight:normal;padding:0 5px;color:#444}.inspector{padding:26px 24px;overflow:auto;max-height:calc(100dvh - 62px)}.eyebrow{font-size:9px;letter-spacing:1px;color:var(--pink)}h1{font-size:27px;line-height:1.5;letter-spacing:-1px;margin:17px 0 12px;font-weight:500}.panel-intro p{font-size:11px;line-height:1.9;color:var(--muted);margin-bottom:22px}.control-section{border-top:1px solid var(--border);padding-top:17px;margin-top:19px}.section-title{display:flex;justify-content:space-between;font-size:11px;letter-spacing:.6px;margin-bottom:14px}.section-title>span{color:#57595a;font-size:10px}.segmented{display:flex;border:1px solid var(--border);padding:3px;gap:3px}.segmented button{flex:1;background:none;border-color:transparent;padding:8px 2px;font-size:11px}.segmented button.active{background:#242125;color:var(--pink);border-color:#5c3042}.muted{color:var(--muted);font-size:10px;line-height:1.9}p.muted{margin:10px 0 0}.threshold-value{display:flex;justify-content:space-between;align-items:center}.threshold-value code{color:var(--code);font-size:22px;letter-spacing:-1px}.threshold-value>span{font-size:10px;color:var(--muted)}#threshold{accent-color:var(--code);margin-bottom:14px}.filters{display:flex;gap:5px}.filters button{padding:7px 9px;font-size:10px;flex:1;background:none}.filters button.active{border-color:#97999b;background:#202122}.filters i{display:inline-block;width:4px;height:4px;margin-right:5px}.code-dot{background:var(--code)}.model-dot{background:var(--model)}.you-dot{background:var(--you)}.selection{margin-top:14px;background:#111214;border-left:2px solid #404143;min-height:105px;padding:12px;display:flex;flex-direction:column;gap:5px}.selection strong{font-size:12px;font-weight:normal;line-height:1.7}.selection .selected-word{color:var(--pink);font-size:20px;word-break:break-word}.selection dl{margin:3px 0 0;display:grid;grid-template-columns:40px 1fr;gap:7px;font-size:10px}.selection dt{color:var(--muted)}.selection dd{margin:0}.export{width:100%;text-align:left;background:none;margin-top:18px;padding:11px 12px;font-size:11px}.export span{float:right;color:var(--pink)}.footnote{font-size:9px;line-height:2;color:#777;margin-top:16px}#promptEditor{margin-top:14px}#promptEditor>label{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}textarea{resize:vertical;max-height:350px;width:100%;background:#080909;border:1px solid var(--border);padding:10px;color:#ccc;font-size:11px;line-height:1.7}.editor-actions{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:10px;color:var(--muted)}.editor-actions button{font-size:10px}dialog{max-width:600px;width:calc(100% - 36px);border:1px solid #45464a;background:#111214;color:var(--text);padding:26px}dialog::backdrop{background:#000a;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding-bottom:14px}dialog h2{font-size:17px;font-weight:normal;margin:0}dialog p{font-size:12px;line-height:2;color:#b9babc;margin:17px 0}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#202122;border:1px solid #555;padding:12px 20px;font-size:11px;transition:.2s}#toast.visible{opacity:1;transform:translate(-50%,0)}body.zoom .stage-host{height:auto;max-height:none;overflow:visible}body.zoom #scene{width:100%;height:auto;max-width:1080px}body.immersive .topbar,body.immersive .inspector,body.immersive .view-heading,body.immersive .transport{display:none}body.immersive .workspace{display:block;height:100dvh;min-height:0}body.immersive .viewer{height:100%;padding:0;border:0}body.immersive .stage-host{height:100dvh;min-height:0;max-height:none}body.immersive #scene{height:100%;width:auto;max-width:100%}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-height:1000px){.inspector{padding-top:40px}.control-section{margin-top:27px}}@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 280px}.viewer{padding-left:14px;padding-right:14px}.inspector{padding:22px 18px}.wordmark span{display:none}.topbar{padding:0 18px}.view-heading>span{font-size:8px}}@media(max-width:720px){.topbar{height:52px;padding:0 14px}.wordmark{font-size:12px;gap:7px}.wordmark svg{width:21px}.top-actions{gap:8px}.top-actions .local{display:none}.workspace{display:block;min-height:0}.viewer{border-right:0;padding:10px 10px 16px}.stage-host{height:auto;min-height:0;max-height:none}#scene{width:100%;height:auto;max-width:700px}.inspector{max-height:none;border-top:1px solid var(--border);padding:25px 20px}.panel-intro h1 br{display:none}.panel-intro h1{font-size:24px}.view-heading{font-size:8px;letter-spacing:0}.view-heading button{font-size:9px;padding:6px}.transport-bottom{font-size:8px}.transport-bottom>span:first-child{max-width:65%}.playback{gap:7px}.time{font-size:9px}body.immersive #scene{width:100%;height:auto;max-height:100dvh;object-fit:contain}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
:root{--drawer-width:320px}
.workspace{display:block}
.viewer{border-right:0}
.inspector{position:fixed;z-index:50;top:62px;right:0;bottom:0;width:var(--drawer-width);height:calc(100dvh - 62px);max-height:none;padding:18px 24px 28px;background:var(--bg);border-left:1px solid var(--border);box-shadow:-16px 0 42px #0004;transform:translateX(100%);visibility:hidden;transition:transform 260ms cubic-bezier(.2,.8,.2,1),visibility 0s linear 260ms;overscroll-behavior:contain}
body.drawer-open .inspector{transform:translateX(0);visibility:visible;transition:transform 260ms cubic-bezier(.2,.8,.2,1),visibility 0s}
.drawer-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;margin-bottom:20px;border-bottom:1px solid var(--border);color:var(--muted);font-size:10px;letter-spacing:.8px}
.drawer-heading button{padding:4px}
.drawer-heading svg,.drawer-toggle svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.drawer-toggle{position:fixed;z-index:51;top:50%;right:0;width:34px;min-height:110px;padding:13px 6px;display:flex;align-items:center;justify-content:center;gap:12px;flex-direction:column;background:#121214;border:1px solid #454047;border-right:0;color:var(--pink);box-shadow:-5px 0 22px #0006;transform:translateY(-50%);transition:transform 260ms cubic-bezier(.2,.8,.2,1);font-size:10px}
.drawer-toggle span{writing-mode:vertical-rl;letter-spacing:3px}
.drawer-toggle:hover{background:#21181d;border-color:var(--pink)}
body.drawer-open .drawer-toggle{transform:translate(calc(-1 * var(--drawer-width)),-50%)}
body.drawer-open .drawer-toggle svg{transform:rotate(180deg)}
.drawer-backdrop{display:none;position:fixed;z-index:40;inset:52px 0 0;background:#0006}
body.immersive .drawer-toggle,body.immersive .drawer-backdrop{display:none}
@media(max-width:1050px){.workspace{display:block}.inspector{padding:18px 24px 28px}}
@media(max-width:720px){:root{--drawer-width:min(320px,calc(100vw - 52px))}.inspector{top:52px;bottom:0;height:calc(100dvh - 52px);border-top:0;padding:16px 20px 26px}.panel-intro h1 br{display:initial}.panel-intro h1{font-size:27px}.drawer-backdrop{display:block}.drawer-backdrop[hidden]{display:none}.drawer-toggle{width:32px;min-height:100px}}
.live-session .stage-host{background:var(--bg)}
.live-session .viewer,.live-session .transport,.live-session .view-heading{max-width:1700px;margin-left:auto;margin-right:auto}
.live-session[data-layout=landscape] #scene{max-width:100%;max-height:100%;width:100%;height:auto;object-fit:contain}
.live-session[data-layout=square] #scene{aspect-ratio:1/1}
.live-session .live-follow{border-color:var(--pink);color:var(--pink);white-space:nowrap}
.live-session .live-follow.active{background:color-mix(in srgb,var(--pink) 12%,var(--bg))}
.live-session button:disabled{opacity:.38;cursor:default}
.live-pagination{display:flex;align-items:center;justify-content:space-between;margin:13px 0;color:var(--muted);font-size:10px}
.live-pagination button{padding:5px 14px}
.live-form{display:grid;gap:9px}
.live-form>label,.live-route-input>label{font-size:10px;color:var(--muted)}
.live-form input:not([type=color]){min-width:0;width:100%;background:var(--bg);border:1px solid var(--border);color:var(--text);padding:9px;font-size:11px}
.live-form input[type=color]{width:34px;height:28px;padding:2px;background:transparent;border:1px solid var(--border);cursor:pointer}
.live-form select{width:100%;font-size:11px;padding:9px 6px}
.live-color-row{display:flex;justify-content:space-between;gap:10px;margin:4px 0}
.live-color-row>label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}
.live-route-input{display:grid;grid-template-columns:35px minmax(0,1fr) 34px;gap:8px;align-items:center}
.live-form>button{margin-top:5px}
.live-form #configResult{color:var(--muted);font-size:10px;line-height:1.6;overflow-wrap:anywhere}
.live-form textarea:disabled{opacity:.6}
.live-import{display:block;cursor:pointer;text-align:center;border:1px solid var(--border)}
.live-import:hover{border-color:var(--pink);color:var(--pink)}
.live-detail{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:10px;border-top:1px solid var(--border);padding-top:10px}
.live-session .selection dd{overflow-wrap:anywhere;min-width:0}
.live-session .selection{background:var(--panel)}
.live-session textarea,.live-session select{background:var(--panel);color:var(--text)}
#liveError{max-width:500px;border:1px solid var(--pink);padding:24px;line-height:2;color:var(--text)}
.live-session #scene:has(+ #liveError){display:none}
@media(max-width:720px){.live-session .transport-top{gap:14px;flex-wrap:wrap}.live-session .playback{flex-wrap:wrap}.live-session .stage-host #scene{width:100%;height:auto;max-height:none}.live-session .transport-bottom>span:first-child{max-width:55%}.live-session .panel-intro h1{font-size:24px}}

/* Network exploration stays next to the canvas; the original drawer stays intact. */
.explorer{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:0 0 12px;font-size:11px;max-width:1700px;margin:auto}
.explorer button{min-height:36px;padding:8px 12px;white-space:nowrap}
.explorer-views{display:flex;gap:2px}
.explorer-views button[aria-pressed=true]{color:var(--pink);border-color:var(--pink);background:#21131b}
.explorer-search{margin-left:auto;max-width:270px;flex:1;min-width:145px}
.explorer-search input{width:100%;min-height:36px;background:var(--panel);color:var(--text);border:1px solid var(--border);padding:8px 12px;font:inherit}
.explorer-search input::placeholder{color:#a5a3ab}
.explorer button:focus-visible,.explorer input:focus-visible{outline:2px solid var(--pink);outline-offset:3px}
.node-results{display:flex;flex-wrap:wrap;gap:7px;width:100%;padding:12px 0;border-top:1px solid var(--border)}
.node-results[hidden]{display:none}.node-results>span{width:100%;color:var(--muted)}
.node-results button{max-width:100%;overflow:hidden;text-overflow:ellipsis;text-align:left}
body.immersive .explorer{display:none}
@media(max-width:720px){.explorer{gap:7px}.explorer button{padding:8px}.explorer-search{order:3;flex-basis:100%;max-width:none}.explorer #snapshotBtn{margin-left:auto}}
.orbit-rotation{display:flex;gap:8px;align-items:center;color:var(--muted)}.orbit-rotation[hidden]{display:none}.orbit-rotation input{width:80px;accent-color:var(--pink)}
