*{box-sizing:border-box} :root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#dde6ed;background:#10151b;font-size:16px}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit;border:1px solid #35414c;background:#202932;border-radius:7px;padding:9px 13px;font-size:14px}button:hover{background:#34424e}button:focus-visible,input:focus-visible,.window:focus-visible{outline:2px solid #9ff8d3;outline-offset:3px}header{height:72px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid #2b333c}.brand{font-weight:750;letter-spacing:2px;font-size:15px;display:flex;align-items:center;gap:10px}.logo{font-size:34px;color:#a4f6d4}.light{font-weight:350;color:#94a4b2}.tag{font-size:11px;letter-spacing:1px;border:1px solid #35414c;padding:5px 7px;margin-left:14px;color:#8597a7}main{flex:1;display:flex;min-height:0}#stage{flex:1;position:relative;overflow:hidden;background-color:#161e27;background-image:none;isolation:isolate}.stage-label{position:absolute;top:23px;left:26px;font-size:11px;letter-spacing:2px;color:#92a2b0}#count{margin-left:14px;color:#637785}.stage-help{position:absolute;bottom:24px;left:0;right:0;text-align:center;color:#a2b1bd;font-size:12px;pointer-events:none}aside{width:300px;flex:none;padding:26px 24px;overflow-y:auto;border-left:1px solid #2b333c;background:#111820}.eyebrow{font-size:11px;letter-spacing:2px;color:#8d9fab;font-weight:650}h1{font-size:29px;line-height:1.16;letter-spacing:-1px;margin:14px 0}.intro{font-size:14px;line-height:1.6;color:#9caebb;margin-bottom:23px}.modes{display:flex;background:#0b1117;border:1px solid #2e3a44;padding:4px;border-radius:9px;gap:4px}.modes button{flex:1;border:0;background:transparent}.modes button.active{background:#a5f1d1;color:#102d23}#tracker{height:122px;background:#0c131a;position:relative;margin-top:16px;border:1px solid #2a3842;border-radius:8px;overflow:hidden}.cross{position:absolute;background:#26333e}.horizontal{top:50%;width:100%;height:1px}.vertical{left:50%;height:100%;width:1px}#head-dot{position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px;border:2px solid #a5f1d1;border-radius:50%;background:#4f9b7e55;z-index:2;box-shadow:0 0 20px #9ff8d340}#tracker-label{position:absolute;bottom:8px;left:0;width:100%;text-align:center;font-size:9px;letter-spacing:2px;color:#718899;z-index:2}video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);opacity:.48}#status{font-size:12px;color:#a5b7c6;line-height:1.5;min-height:36px}.wide{width:100%;background:transparent}.control{display:block;font-size:14px;margin-top:22px}.control output{float:right;font-size:12px;color:#9ff8d3}input[type=range]{width:100%;accent-color:#9ff8d3;margin:12px 0 0;cursor:pointer}.check{font-size:13px;display:flex;align-items:center;gap:8px;margin-top:18px}.check input{accent-color:#9ff8d3}kbd{margin-left:auto;border:1px solid #37434d;border-radius:3px;padding:2px 4px;font:10px monospace;color:#92a4b3}.depth-section{border-top:1px solid #2b3741;margin-top:24px;padding-top:22px}.depth-legend{display:flex;justify-content:space-between;color:#708798;font-size:11px;margin:14px 0 8px}.depth-row{display:flex;align-items:center;gap:9px;margin:11px 0;font-size:12px}.depth-name{width:74px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:none;border:0;padding:0;text-align:left;font-size:12px}.depth-track{flex:1;height:3px;background:#34414e;position:relative}.depth-point{position:absolute;top:-3px;width:9px;height:9px;border-radius:50%;background:var(--accent)}.privacy{font-size:11px;color:#8195a6;line-height:1.6;margin-top:23px}footer{height:35px;display:flex;justify-content:space-between;align-items:center;padding:0 26px;font-size:10px;letter-spacing:1px;color:#8296a5;border-top:1px solid #2b333c;flex:none}footer i{display:inline-block;width:5px;height:5px;background:#a4f6d4;border-radius:50%;margin-right:6px}.window{position:absolute;left:50%;top:50%;border:1px solid #ffffff26;border-radius:10px;box-shadow:0 18px 60px #0006;overflow:hidden;transform-origin:0 0;background:#202c39;will-change:transform;min-width:220px;min-height:140px}.window.selected{border-color:var(--accent);box-shadow:0 20px 70px #0008,0 0 0 1px color-mix(in srgb,var(--accent) 30%,transparent)}.titlebar{height:39px;display:flex;align-items:center;gap:8px;background:#ffffff08;border-bottom:1px solid #ffffff16;padding:0 10px;cursor:grab;touch-action:none;user-select:none}.titlebar:active{cursor:grabbing}.win-dot{width:7px;height:7px;background:var(--accent);border-radius:2px}.title{font-size:12px;flex:1;font-weight:600;white-space:nowrap;overflow:hidden}.depth-value{font:10px monospace;color:#b4c0cb}.titlebar button{border:0;background:transparent;padding:3px 6px;font-size:16px;color:#b3c3d0}.titlebar button:hover{background:#ffffff20}.content{height:calc(100% - 39px);overflow:auto;padding:22px;font-size:14px;line-height:1.55}.content h2{font-size:26px;line-height:1.15;margin:7px 0 18px;letter-spacing:-.7px}.content .small{font-size:10px;letter-spacing:2px;color:var(--accent)}.content p{color:#b6c8d3}.resize{position:absolute;right:0;bottom:0;width:23px;height:23px;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg,transparent 60%,#ffffff30 61%,#ffffff30 66%,transparent 67%,transparent 77%,#ffffff50 78%,#ffffff50 83%,transparent 84%);border:0;border-radius:0;padding:0}.notes{background:#f0ecdb;color:#253b38}.notes .titlebar{background:#d8ddcf;border-bottom-color:#c3cbbd}.notes .titlebar button,.notes .depth-value{color:#49605b}.notes .content p{color:#51635d}.notes .content .small{color:#40755e}.notes ul{padding-left:18px;line-height:2}.code{background:#17242b}.code pre{font:13px/1.8 ui-monospace,monospace;color:#b6d4cf;margin:8px 0;white-space:pre-wrap}.code em{color:#83dbb7;font-style:normal}.bars{height:105px;display:flex;align-items:end;gap:10px;border-bottom:1px solid #4b6177;margin-top:20px}.bars b{flex:1;background:#8cbaf3;border-radius:4px 4px 0 0;opacity:.85}.stat{font-size:38px;font-weight:650;letter-spacing:-1px}.file{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #ffffff13;font-size:13px}.file span{color:#889caf}.audio-line{height:60px;display:flex;align-items:center;gap:4px;margin:15px 0}.audio-line b{width:6px;background:#d5b1f1;border-radius:3px}.music{background:#302740}.music p{margin:5px 0}.content hr{border:0;border-top:1px solid #ffffff20}#empty{position:absolute;top:50%;width:100%;text-align:center;color:#a4b4c2}@media(max-width:800px){aside{width:235px;padding:20px 15px}.tag{display:none}header{padding:0 16px}h1{font-size:24px}.stage-help{font-size:10px;padding:0 12px}footer>span:last-child{display:none}}@media(max-width:560px){body{height:auto;min-height:100dvh;overflow:auto}main{flex-direction:column}#stage{height:65dvh;min-height:390px;flex:none}aside{width:100%;border-left:0;display:block}h1{font-size:23px}h1 br{display:none}#tracker{height:90px}.intro{margin:8px 0 15px}.depth-section{display:none}footer{height:36px}.brand{font-size:12px}.window .content{padding:15px}}

#diagnostics{margin:12px 0;border:1px solid #40505e;border-radius:7px;padding:10px;font-size:12px}#diagnostics summary{cursor:pointer;color:#bdebd8;font-weight:600}.debug-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.debug-actions button{font-size:12px;padding:7px}#debug-message{line-height:1.5;color:#a5b7c6}#debug-report{width:100%;height:290px;resize:vertical;min-height:120px;background:#090f14;border:1px solid #354552;color:#d6e5ef;font:11px/1.5 ui-monospace,monospace;white-space:pre;overflow:auto;padding:9px}#status{overflow-wrap:anywhere}
.depth-note{font-size:11px;line-height:1.5;color:#97acbb}.depth-value{font-size:9px}.titlebar{gap:6px}.titlebar button{padding:3px 5px}

.toolbar{display:flex;gap:8px;flex-wrap:wrap}.spatial-controls{margin-top:22px;padding-top:20px;border-top:1px solid #2b3741}#toolbar-message{font-size:13px;background:#503b22;color:#ffe5bd;padding:0 20px}#toolbar-message:not(:empty){padding:10px 20px}#add-window{background:#a5f1d1;color:#102d23;border-color:#a5f1d1}:fullscreen{background:#10151b}@media(max-width:850px){header .tag{display:none}}@media(max-width:650px){header{height:auto;min-height:90px;gap:8px;flex-wrap:wrap;padding:12px 16px}.toolbar{gap:6px}.toolbar button{font-size:12px;padding:8px}.brand .logo{font-size:24px}}

.titlebar{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);gap:4px}.window-name{display:flex;align-items:center;gap:7px;min-width:0}.window-name .win-dot{flex:none}.window-name .title{overflow:hidden;text-overflow:ellipsis}.window-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px;min-width:0}.window-actions .depth-value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.titlebar .depth-handle{cursor:ns-resize;touch-action:none;border:1px solid #ffffff30;border-radius:5px;background:#ffffff0d;justify-self:center;width:34px;height:26px;line-height:20px;padding:0;font-size:20px;color:var(--accent)}.titlebar .depth-handle:hover,.adjusting-depth .titlebar .depth-handle{background:#ffffff25;border-color:var(--accent)}.notes .titlebar .depth-handle{color:#386650;border-color:#668c7b;background:#ffffff40}.immersive body{height:100dvh;overflow:hidden}.immersive header,.immersive aside,.immersive footer,.immersive .stage-label,.immersive .stage-help,.immersive #empty,.immersive #toolbar-message{display:none!important}.immersive main{height:100dvh;width:100vw;flex:1;min-height:0}.immersive #stage{width:100%;height:100%;min-height:0;flex:1}.immersive .window:focus{outline:none}

.window{contain:layout style}

.camera-primary,#enable-camera{background:#a5f1d1;color:#102d23;border-color:#a5f1d1}.camera-primary:hover,#enable-camera:hover{background:#c0ffe5}#camera-intro{color:#dde6ed;background:#17212a;border:1px solid #485d6b;border-radius:16px;max-width:480px;width:calc(100% - 40px);max-height:90dvh;overflow:auto;padding:32px;box-shadow:0 30px 100px #0008}#camera-intro::backdrop{background:#070d14c9;backdrop-filter:blur(6px)}#camera-intro h2{font-size:29px;line-height:1.15;letter-spacing:-.8px;margin:16px 0}#camera-intro p{font-size:16px;line-height:1.6;color:#b9cbd8}#camera-intro .camera-local{font-size:13px;color:#9fbdaf}#enable-camera{width:100%;padding:13px;font-size:16px;margin-top:12px}#camera-intro .camera-prompt-hint{font-size:12px;margin-bottom:0;color:#8fa5b5}
