:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #e8e8e7; background: #101011; --line: #2b2b2e; --muted: #95959c; }
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select, .download { border: 1px solid var(--line); border-radius: 6px; background: #1c1c1f; }
button { cursor: pointer; }
button:hover, .download:hover { background: #29292d; }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #f23a1b; outline-offset: 3px; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line); }
.back, .source { color: #b8b8be; font-size: 12px; }
.brand { font-size: 16px; font-weight: 600; letter-spacing: -.03em; }
.brand span { font-size: 12px; font-weight: 400; margin-left: 12px; color: var(--muted); letter-spacing: 0; }
.workbench { display: grid; grid-template-columns: 256px minmax(0, 1fr); height: calc(100dvh - 64px); }
.library { border-right: 1px solid var(--line); padding: 28px 16px 14px; display: flex; flex-direction: column; min-height: 0; }
.library-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 20px; }
h1, h2, p { margin: 0; }
h1 { font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.library-heading span { font-size: 11px; color: var(--muted); }
.search-label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
#search { width: 100%; padding: 12px; border: 1px solid var(--line); background: #171719; border-radius: 6px; font-size: 12px; }
#search::placeholder { color: var(--muted); }
.effect-list { flex: 1; min-height: 0; overflow: auto; margin-top: 16px; scrollbar-width: thin; scrollbar-color: #36363b transparent; }
.effect-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; padding: 12px 10px; font-size: 12px; line-height: 1.4; }
.effect-item svg { width: 16px; height: 16px; color: #86868e; flex-shrink: 0; }
.effect-item[aria-pressed="true"] { background: #2b2b2f; color: #fff; }
.effect-item[aria-pressed="true"] svg { color: #f23a1b; }
.library-note { color: #93939a; font-size: 10px; padding: 16px 8px 0; line-height: 1.5; border-top: 1px solid var(--line); margin-top: 14px; }
.stage { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.effect-heading { display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; padding: 28px 32px 24px; border-bottom: 1px solid var(--line); }
h2 { font-size: 22px; font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
#description { color: #a2a2aa; font-size: 12px; line-height: 1.6; max-width: 650px; margin-top: 10px; text-wrap: pretty; }
.download { white-space: nowrap; font-size: 11px; padding: 12px 14px; display: flex; align-items: center; gap: 8px; }
.download svg { width: 16px; height: 16px; }
.download[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.viewport { position: relative; flex: 1; min-height: 0; background: #000; overflow: hidden; }
canvas { width: 100%; height: 100%; display: block; touch-action: none; }
#loading { position: absolute; z-index: 2; left: 50%; top: 46%; transform: translate(-50%, -50%); padding: 14px 20px; background: #18181be8; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; text-align: center; max-width: 80%; }
#loading[hidden] { display: none; }
.stage-actions { position: absolute; top: 20px; right: 24px; display: flex; align-items: center; gap: 16px; font-size: 11px; }
.stage-actions button { padding: 10px 12px; background: #161619d9; }
.stage-actions label { display: flex; align-items: center; gap: 6px; }
input[type="checkbox"] { accent-color: #f23a1b; }
.orbit-hint { position: absolute; bottom: 20px; right: 24px; font-size: 10px; color: #92929a; pointer-events: none; }
.transport { display: flex; align-items: center; gap: 18px; padding: 18px 28px; min-height: 80px; border-top: 1px solid var(--line); }
.play { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; }
.play svg { width: 18px; height: 18px; }
#time { font-variant-numeric: tabular-nums; color: #c3c3ca; font-size: 11px; white-space: nowrap; min-width: 92px; }
#scrub { flex: 1; min-width: 40px; accent-color: #f23a1b; height: 4px; cursor: pointer; }
.speed-label { color: var(--muted); font-size: 11px; }
#speed { padding: 10px 12px; font-size: 11px; }
.empty { color: var(--muted); font-size: 12px; padding: 14px 8px; }
@media(max-width: 900px) { .workbench { grid-template-columns: 210px minmax(0, 1fr); } .effect-heading { padding: 24px; } .effect-heading { flex-direction: column; gap: 16px; } .transport { gap: 12px; padding: 16px; } .speed-label { display: none; } }
@media(max-width: 620px) { .topbar { padding: 0 16px; gap: 12px; } .brand span, .source { display: none; } .workbench { grid-template-columns: 1fr; grid-template-rows: 180px minmax(0, 1fr); height: calc(100dvh - 64px); min-height: 740px; } .library { padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); } .library-heading { padding: 0 0 12px; } .library-note { display: none; } .effect-list { display: flex; flex: none; gap: 6px; overflow-x: auto; overflow-y: hidden; margin-top: 10px; min-height: 50px; } .effect-item { width: auto; flex-shrink: 0; padding: 12px; } .stage { min-height: 0; } .effect-heading { padding: 22px 20px; } .viewport { min-height: 260px; } #time { min-width: 84px; font-size: 10px; } .transport { flex-wrap: wrap; } .orbit-hint { right: 18px; } }
@media(prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
