:root{color-scheme:dark;font:16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;background:#10171e;color:#e5edf4;--muted:#a1b3c2;--edge:#324352;--accent:#9ddfff}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,input{color:inherit;background:#202e3a;border:1px solid #4c6071;border-radius:7px;min-height:36px}button{padding:7px 12px;cursor:pointer;line-height:1.25}button:hover:not(:disabled){background:#30495c;border-color:#9ddfff}button:disabled{opacity:.4;cursor:default}button[aria-pressed=true],button.selected{background:#244c60;border-color:#9ddfff;color:#e8f9ff}button.primary{background:#9ddfff;color:#102534;border-color:#9ddfff;font-weight:650}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #ffcf83;outline-offset:3px}input,select{padding:6px 9px;max-width:100%}select{cursor:pointer}h1,h2,h3,p{margin:0}h1{font-size:23px;letter-spacing:-.5px}h2{font-size:18px}h3{font-size:16px}.muted,.help{color:var(--muted);font-size:14px}.help{margin-top:10px}.topbar{display:flex;align-items:center;gap:22px;padding:14px 24px;border-bottom:1px solid var(--edge)}.entry{display:flex;gap:4px;margin:auto}.entry button{padding:10px 20px}.storage{font-size:14px;padding:7px 24px;color:var(--muted);background:#141f29}.storage.error{color:#ffce9b;background:#4b2922}.workspace{display:grid;grid-template-columns:260px minmax(400px,1fr) 285px;gap:16px;padding:16px 24px;max-width:1920px;margin:auto}.pane{background:#18232d;border:1px solid var(--edge);border-radius:12px;padding:16px}.library{max-height:calc(100vh - 195px);overflow:auto}.library h2{margin-bottom:8px}.work{min-width:0}.scene-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.scene-toolbar label{display:flex;align-items:center;gap:8px}.playback{display:flex;gap:6px;align-items:center;white-space:nowrap}.playback .muted{font-variant-numeric:tabular-nums;min-width:45px}.stage-wrap{position:relative;border:1px solid #425563;border-radius:12px;overflow:hidden;background:#101b25}#stage{display:block;width:100%;max-height:46vh;min-height:250px;touch-action:none}.scene-label{fill:#b9cddc;font:17px system-ui}.hit{fill:transparent;stroke:transparent;stroke-width:2;cursor:pointer}g[data-target]:hover .hit{fill:#9ddfff08;stroke:#647e91}g[data-target].selected .hit{stroke:#98d9ff;stroke-dasharray:6 4}#radius-handle{fill:#122735;stroke:#9ddfff;stroke-width:3;cursor:ew-resize;touch-action:none}#geometry[hidden]{display:none}.preview-status{position:absolute;left:10px;bottom:10px;background:#112d3e;border:1px solid #89ccec;border-radius:8px;padding:7px 12px;font-size:14px;pointer-events:none}.preview-status[hidden]{display:none}.history-toolbar{display:flex;gap:7px;align-items:center;margin:10px 0}.history-toolbar span{margin-left:auto;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-heading>.muted{max-width:65%;text-align:right}.object-list,.categories{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 16px}.object-list button{font-size:14px;flex:1 0 45%;text-align:left}.categories button{font-size:14px;flex:1 0 100%;text-align:left}.card{border:1px solid #425563;border-radius:9px;margin-top:12px;overflow:hidden;background:#111e28}.card.previewing{border-color:#b1e6ff}.card .card-title{display:flex;align-items:center;gap:10px;padding:10px 12px}.mini{width:74px;height:48px;flex-shrink:0;background:#0d1720;border-radius:6px}.card small{display:block;color:var(--muted);font-size:13px}.card-actions{display:flex;gap:6px;padding:0 10px 10px;flex-wrap:wrap}.card-actions button{font-size:14px;flex:1}.mini .orb{animation:orbit 2s linear infinite;transform-origin:37px 24px}.mini .pulse{animation:pulse 1.4s ease-in-out infinite}.mini .reveal{animation:reveal 2s ease-in-out infinite}@keyframes orbit{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.4}}@keyframes reveal{0%,100%{opacity:.15;transform:translateY(5px)}50%{opacity:1;transform:translateY(0)}}.step{display:grid;grid-template-columns:minmax(160px,1fr) auto;gap:10px;padding:10px;border:1px solid #405565;border-radius:8px;margin-top:8px}.step.selected{border-color:#a1dfff;background:#203947}.step-name{background:none;border:none;text-align:left;padding:0;min-height:30px;display:block;width:100%}.step small{color:var(--muted);font-size:13px}.step-actions{display:flex;align-items:center;gap:5px}.step-actions button{font-size:14px;padding:6px 8px}.composition{max-height:32vh;overflow:auto}.inspector{align-self:start;max-height:calc(100vh - 195px);overflow:auto}.inspector h2{margin-bottom:5px}.field{display:flex;flex-direction:column;gap:5px;margin-top:16px}.field span{font-size:14px}.field input,.field select{width:100%;min-width:0}.number{font-variant-numeric:tabular-nums}.number:hover{border-color:#9ddfff;background:#294252}.wheel-hint{font-size:13px;color:#b5c7d5;margin:14px 0 0}.savebar{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 24px;border-top:1px solid var(--edge);background:#141f29}.savebar>span{margin-right:auto;color:var(--muted);font-size:14px}.collection{position:fixed;right:20px;top:88px;bottom:80px;width:min(580px,calc(100vw - 40px));overflow:auto;z-index:10;box-shadow:0 15px 70px #000b;background:#1c2b36}.collection[hidden]{display:none}.recipe{padding:14px;border:1px solid #536b7e;border-radius:10px;margin:14px 0;display:grid;grid-template-columns:100px 1fr;gap:12px}.recipe svg{width:100px;height:70px;background:#101b25;border-radius:7px}.recipe input{width:100%;font-weight:600}.recipe .actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.recipe .meta{font-size:13px;color:var(--muted);margin-top:7px}.recipe select{width:100%;margin-top:8px;font-size:14px}#recipes>p{color:var(--muted)}[hidden]{display:none!important}
.workspace{height:calc(100dvh - 184px);min-height:0}.work{display:flex;flex-direction:column;min-height:0}.stage-wrap{flex:1;min-height:min(360px,42vh)}.library{max-height:none;height:100%}.inspector{max-height:100%}#stage{height:100%;max-height:none}.composition{flex:0 1 auto;min-height:110px;max-height:22vh}
.scene-label{font-size:22px}.button-label{font-size:24px}#save-hint.error{color:#ffce9b}
@media(min-width:1650px){.workspace{grid-template-columns:290px minmax(500px,1fr) 310px;gap:20px}.pane{padding:18px}.card-actions{flex-wrap:nowrap}}
@media(max-width:1190px){.workspace{grid-template-columns:220px minmax(360px,1fr);padding:12px;gap:12px;height:auto}.work{display:block}.inspector{grid-column:2;max-height:none}.library{grid-row:1 / span 2;max-height:none}.composition{max-height:none}.savebar{flex-wrap:wrap}.scene-toolbar{flex-wrap:wrap}#stage{height:auto;min-height:210px;max-height:none}.topbar{padding:12px;gap:10px}.entry button{padding:9px}}
@media(max-width:700px){.workspace{display:flex;flex-direction:column}.topbar{flex-wrap:wrap}.entry{order:3;width:100%}.entry button{flex:1}.library{max-height:400px}.savebar>span{width:100%}.step{grid-template-columns:1fr}.section-heading{flex-wrap:wrap}.section-heading>.muted{max-width:100%;text-align:left}}
