:root{font-family:Inter,system-ui,-apple-system,Arial,sans-serif;color:#e9f1f6;background:#080f19}*{box-sizing:border-box}body{margin:0}header{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid #233347;background:#101c2b}header>div{display:flex;align-items:center;gap:12px}.mark{display:grid;place-items:center;background:#14d6bb;color:#06151a;border-radius:9px;width:37px;height:37px;font-size:24px;font-weight:900}header strong{letter-spacing:1px}header em{font-style:normal;color:#16d5bd}header small{font-size:10px;color:#7c91a6;margin-left:12px}.status{font-size:13px;color:#a9b7c8}main{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;padding:22px;max-width:1700px;margin:auto}.stage{border:1px solid #26394e;background:#101b2a;border-radius:13px;overflow:hidden;align-self:start}.stage-head,.stage-foot{padding:15px 18px;display:flex;justify-content:space-between;gap:12px;font-size:12px;letter-spacing:1px;color:#c3d5e1}.stage-head small{color:#5d8197}#viewport{position:relative;background:#050a10;aspect-ratio:16/9;overflow:hidden}video{display:none}#scene,#overlay{position:absolute;inset:0;width:100%;height:100%}.hint{position:absolute;top:50%;width:100%;text-align:center;transform:translateY(-50%);color:#a8c2d4;pointer-events:none}.stage-foot{color:#17d4bb}aside{display:flex;flex-direction:column;gap:14px}.panel{background:#111e2e;border:1px solid #26394e;border-radius:12px;padding:17px}.panel h2{font-size:12px;letter-spacing:1.5px;color:#14d6bb;margin:0 0 16px}.panel p{font-size:12px;line-height:1.55;color:#a6b6c5}.panel p b{color:#edf8fc}button,select{width:100%;background:#1b3043;color:#ecf7ff;border:1px solid #34516b;border-radius:7px;padding:11px;margin:5px 0;cursor:pointer}button:hover{background:#29475c}button:disabled{opacity:.4;cursor:default}.primary{background:#0bc7a9;border-color:#0bc7a9;color:#04211e;font-weight:800}.primary:hover{background:#1ce5c3}label{display:block;color:#9fb4c4;font-size:12px;margin-top:13px}label select{margin-top:8px}input[type=range]{display:block;width:100%;margin:10px 0;accent-color:#16d5bd}.check{display:flex;align-items:center;gap:8px}.check input{accent-color:#16d5bd}output{float:right;color:#16d5bd}.muted{color:#7891a6!important}footer{text-align:center;color:#6d859a;font-size:12px;padding:18px}@media(max-width:950px){main{grid-template-columns:1fr}aside{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}header small{display:none}}@media(max-width:500px){header{padding:0 12px}header strong{font-size:11px}main{padding:10px;gap:10px}.stage-head small{display:none}}
.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.tools button{padding:9px 4px;font-size:12px;margin:0}
.tool.active{background:#0bc7a9;border-color:#0bc7a9;color:#04211e;font-weight:700}
.row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.shape-list{list-style:none;margin:12px 0 4px;padding:0;display:flex;flex-direction:column;gap:6px;max-height:220px;overflow:auto}
.shape-list li{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:8px;padding:7px 9px;border:1px solid #2b4259;border-radius:7px;font-size:12px;color:#c9d9e4;cursor:pointer}
.shape-list li.sel{border-color:#16d5bd;background:#14283a}
.shape-list .sw{width:12px;height:12px;border-radius:3px}
.shape-list small{color:#7c96aa;display:block}
.shape-list button{width:auto;margin:0;padding:4px 9px;font-size:12px}
#overlay{touch-action:none;cursor:crosshair}
#overlay.moving{cursor:grab}

.navlink{margin-left:18px;color:#04211e;background:#0bc7a9;text-decoration:none;font-size:12px;font-weight:700;padding:7px 12px;border-radius:7px}
.navlink:hover{background:#1ce5c3}
