:root{color:#f8f5fc;font-synthesis:none;text-rendering:optimizelegibility;--panel:#1c1426e6;--panel-strong:#21172e;--panel-soft:#171020;--line:#ffffff17;--line-strong:#ce9dff59;--muted:#a99db5;--purple:#b66cff;--purple-strong:#8d3fe0;--danger:#ff5d72;--success:#5ed6a7;--warning:#ffd18d;background:#0c0911;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:#0c0911;min-width:320px;min-height:100%}body{background:radial-gradient(circle at 12% 0,#9c4edc29,#0000 32rem),radial-gradient(circle at 92% 18%,#5b24941f,#0000 26rem),#0c0911;min-width:320px;min-height:100vh;margin:0}button,select,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}input,select,textarea{border:1px solid var(--line);color:#f8f5fc;background:#171020;border-radius:.65rem;outline:none;width:100%}input,select{min-height:2.35rem;padding:.55rem .68rem}textarea{resize:vertical;min-height:5.5rem;padding:.68rem}input:focus,select:focus,textarea:focus{border-color:#b66cffb8;box-shadow:0 0 0 3px #b66cff1f}input[type=range]{min-height:auto;accent-color:var(--purple);box-shadow:none;background:0 0;padding:0}input[type=color]{width:3rem;min-height:2.2rem;padding:.2rem}.app-shell{min-height:100vh}.app-header{z-index:40;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#0c0911e0;grid-template-columns:auto minmax(220px,420px) auto;align-items:center;gap:1rem;padding:.85rem 1rem;display:grid;position:sticky;top:0}.brand,.header-actions,.program-statuses,.capture-strip,.slider-row>span,.update-actions,.inspector-heading,.dock-heading,.lower-controls,.recording-card,.color-grid,.source-toggles,.source-actions,.row-actions{align-items:center;display:flex}.brand{gap:.75rem;min-width:0}.brand-mark{background:linear-gradient(145deg,#c27cff,#6d2baa);border:1px solid #ce9dff7a;border-radius:.88rem;flex:none;place-items:center;width:2.7rem;height:2.7rem;font-size:.9rem;font-weight:900;display:grid;box-shadow:0 10px 28px #742dac47}.brand h1,.brand p,.project-title label,.project-title span,.program-toolbar h2,.dock-heading h2,.inspector-heading h2,.mixer-card h3,.recording-card h3,.update-prompt p{margin:0}.brand h1{font-size:1rem}.brand p{color:var(--muted);margin-top:.14rem;font-size:.75rem}.project-title{grid-template-columns:auto minmax(120px,1fr) auto;align-items:center;gap:.5rem;display:grid}.project-title label{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:.7rem;font-weight:750}.project-title input{min-height:2.15rem}.project-title span{color:#91ebc8;white-space:nowrap;font-size:.68rem}.header-actions{justify-content:flex-end;gap:.45rem}.header-button,.icon-button,.row-actions button,.source-toggles button,.source-actions button,.inspector-heading button,.add-source-grid button{border:1px solid var(--line);color:#ded4e8;background:#ffffff09;border-radius:.55rem}.header-button{min-height:2.25rem;padding:.48rem .66rem;font-size:.72rem;font-weight:700}.header-button:hover,.icon-button:hover,.row-actions button:hover,.source-toggles button:hover,.source-actions button:hover,.inspector-heading button:hover,.add-source-grid button:hover{border-color:var(--line-strong);background:#b66cff1a}.header-status{border:1px solid var(--line);color:var(--muted);white-space:nowrap;background:#ffffff09;border-radius:999px;padding:.42rem .62rem;font-size:.7rem;font-weight:700}.header-status.good{color:#91ebc8;border-color:#5ed6a74d}.header-status.warning{color:var(--warning);border-color:#ffbd5d52}.error-banner{z-index:35;color:#ffd8de;background:#4f121ff2;border-bottom:1px solid #ff5d7247;justify-content:space-between;align-items:center;gap:1rem;padding:.72rem 1rem;font-size:.8rem;display:flex;position:sticky;top:4.5rem}.error-banner button{color:#fff;background:0 0;border:0;font-weight:800}.workspace{grid-template-columns:minmax(250px,300px) minmax(520px,1fr) minmax(250px,310px);gap:.85rem;width:min(1920px,100%);margin:0 auto;padding:.85rem;display:grid}.left-dock,.program-area,.inspector-panel{border:1px solid var(--line);background:var(--panel);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:1rem;min-width:0;box-shadow:0 18px 60px #00000038}.left-dock,.inspector-panel{align-self:start;overflow:hidden}.dock-section,.inspector-section{border-bottom:1px solid var(--line);padding:.85rem}.dock-section:last-child,.inspector-section:last-child{border-bottom:0}.dock-heading,.inspector-heading{justify-content:space-between;gap:.75rem;margin-bottom:.72rem}.eyebrow{color:#c592f6;letter-spacing:.13em;text-transform:uppercase;margin-bottom:.18rem;font-size:.61rem;font-weight:850;display:block}.dock-heading h2,.inspector-heading h2,.program-toolbar h2,.mixer-card h3,.recording-card h3{font-size:.92rem}.icon-button.add-button{width:2rem;height:2rem;font-size:1.1rem;font-weight:900}.scene-list,.source-list{gap:.42rem;display:grid}.scene-row,.source-row{background:#ffffff06;border:1px solid #0000;border-radius:.68rem;overflow:hidden}.scene-row.selected,.source-row.selected{background:#9145cc21;border-color:#b66cff80}.scene-select,.source-select{width:100%;color:inherit;text-align:left;background:0 0;border:0;align-items:center;display:flex}.scene-select{gap:.58rem;padding:.64rem;font-size:.78rem;font-weight:700}.scene-dot{background:#ffffff3d;border-radius:50%;width:.52rem;height:.52rem}.scene-row.selected .scene-dot{background:var(--purple);box-shadow:0 0 0 4px #b66cff21}.row-actions,.source-actions{gap:.35rem;padding:0 .55rem .5rem}.row-actions button,.source-actions button,.source-toggles button{min-height:1.72rem;padding:.3rem .45rem;font-size:.62rem;font-weight:750}.add-source-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;margin-bottom:.65rem;display:grid}.add-source-grid button{min-height:2rem;padding:.42rem;font-size:.68rem;font-weight:750}.source-row.hidden-source{opacity:.58}.source-select{gap:.58rem;padding:.58rem}.source-kind{color:#fff;background:#453153;border:1px solid #ffffff1a;border-radius:.5rem;flex:none;place-items:center;width:1.85rem;height:1.85rem;font-size:.7rem;font-weight:900;display:grid}.kind-screen{background:#6f3a9b}.kind-camera{background:#3b5f89}.kind-image{background:#3d765f}.kind-text{background:#865849}.source-copy{min-width:0}.source-copy strong,.source-copy small{display:block}.source-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;overflow:hidden}.source-copy small{color:var(--muted);margin-top:.12rem;font-size:.61rem}.source-toggles{gap:.35rem;padding:0 .55rem .5rem}.source-toggles button.enabled{color:#91ebc8;border-color:#5ed6a73d}.source-actions{border-top:1px solid #ffffff0d;flex-wrap:wrap;padding-top:.45rem}.empty-list,.empty-inspector{border:1px dashed var(--line);color:var(--muted);text-align:center;border-radius:.65rem;padding:.9rem;font-size:.72rem}.layer-note,.mixer-card p,.recording-card p,.empty-inspector p{color:var(--muted);margin:.58rem 0 0;font-size:.67rem;line-height:1.45}.program-area{padding:.85rem;overflow:hidden}.program-toolbar{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.7rem;display:flex}.program-statuses{flex-wrap:wrap;justify-content:flex-end;gap:.4rem}.status-pill{border:1px solid var(--line);color:var(--muted);background:#ffffff08;border-radius:999px;padding:.35rem .55rem;font-size:.64rem;font-weight:750}.status-pill.active{color:#91ebc8;border-color:#5ed6a74d}.status-pill.recording{color:#ff9baa;background:#ff5d7214;border-color:#ff5d7266}.capture-strip{border:1px solid var(--line);background:#ffffff06;border-radius:.75rem;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem;padding:.62rem}.profile-control{grid-template-columns:auto minmax(160px,1fr);align-items:center;gap:.5rem;min-width:230px;margin-left:auto;display:grid}.profile-control span{color:var(--muted);font-size:.66rem;font-weight:750}.profile-control select{min-height:2.2rem;font-size:.7rem}.button{color:#fff;border:1px solid #0000;border-radius:.65rem;min-height:2.3rem;padding:.55rem .78rem;font-weight:800}.button.compact{min-height:2.2rem;padding:.48rem .65rem;font-size:.7rem}.button.primary{background:linear-gradient(145deg,#b66cff,#8131cb);box-shadow:0 8px 20px #6f2da440}.button.secondary{background:#b66cff1a;border-color:#ce9dff40}.button.danger{background:#ff5d7224;border-color:#ff5d725c}.button.ghost{border-color:var(--line);color:var(--muted);background:0 0}.preview-frame{background:#050307;border:1px solid #ce9dff3d;border-radius:.9rem;overflow:hidden;box-shadow:0 12px 34px #00000059}.preview-editor{touch-action:none;-webkit-user-select:none;user-select:none;background:#050307;width:100%;position:relative;overflow:hidden}.preview-editor canvas{width:100%;height:100%;display:block}.source-video,.hidden-input{display:none}.selection-box{z-index:5;transform-origin:50%;touch-action:none;cursor:move;border:2px solid #c886ff;position:absolute;box-shadow:0 0 0 1px #0c0911d9,0 0 18px #b66cff40}.selection-box.locked{cursor:default;border-style:dashed;border-color:#ffd18d}.selection-label{color:#fff;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;background:#693094eb;border-radius:.36rem;max-width:100%;padding:.2rem .38rem;font-size:clamp(8px,1vw,11px);font-weight:800;position:absolute;bottom:calc(100% + 4px);left:-2px;overflow:hidden}.resize-handle,.rotation-handle{z-index:8;background:var(--purple);border:2px solid #fff;border-radius:50%;width:.85rem;height:.85rem;padding:0;position:absolute;box-shadow:0 0 0 1px #0c0911e6}.resize-handle{cursor:nwse-resize;bottom:-.45rem;right:-.45rem}.rotation-handle{cursor:grab;top:-1.7rem;left:50%;transform:translate(-50%)}.rotation-handle:after{content:"";background:#c886ff;width:2px;height:.78rem;position:absolute;top:100%;left:50%;transform:translate(-50%)}.lower-controls{align-items:stretch;gap:.65rem;margin-top:.75rem}.mixer-card,.recording-card{border:1px solid var(--line);background:#ffffff06;border-radius:.78rem;min-width:0}.mixer-card{flex:56%;padding:.72rem}.recording-card{flex:44%;justify-content:space-between;gap:.75rem;padding:.72rem}.slider-row{grid-template-columns:minmax(130px,190px) 1fr;align-items:center;gap:.65rem;margin-top:.58rem;display:grid}.slider-row>span{justify-content:space-between;gap:.5rem}.slider-row strong{font-size:.7rem}.slider-row small{color:var(--muted);font-size:.64rem}.output-button{flex:none;min-width:11rem}.stage-note{color:var(--muted);background:#b66cff0e;border-left:3px solid #b66cffb3;border-radius:.5rem;margin-top:.7rem;padding:.64rem .75rem;font-size:.68rem;line-height:1.45}.stage-note strong{color:#e5d6f2}.inspector-panel{max-height:calc(100vh - 6rem);overflow-y:auto}.field-label{color:var(--muted);margin:.65rem 0 .3rem;font-size:.68rem;font-weight:700;display:block}.inspector-heading button{min-height:1.85rem;padding:.32rem .5rem;font-size:.61rem;font-weight:750}.number-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.48rem;display:grid}.number-grid label>span,.color-grid label>span{color:var(--muted);margin-bottom:.25rem;font-size:.62rem;font-weight:700;display:block}.number-grid input,.number-grid select{min-height:2.05rem;padding:.42rem .5rem;font-size:.7rem}.crop-row{grid-template-columns:3.4rem 1fr 2.2rem;align-items:center;gap:.45rem;margin-top:.45rem;display:grid}.crop-row>span{color:#ded4e8;text-transform:capitalize;font-size:.66rem}.crop-row small{color:var(--muted);text-align:right;font-size:.62rem}.color-grid{align-items:end;gap:1rem;margin-top:.72rem}.color-grid label{align-items:center;gap:.5rem;display:flex}.color-grid label>span{margin:0}.update-prompt{z-index:50;background:#1a1124f7;border:1px solid #ce9dff4d;border-radius:.9rem;align-items:center;gap:1rem;width:min(440px,100vw - 2rem);padding:.85rem;display:flex;position:fixed;bottom:1rem;right:1rem;box-shadow:0 20px 60px #00000070}.update-prompt strong{font-size:.8rem}.update-prompt p{color:var(--muted);margin-top:.2rem;font-size:.68rem}.update-actions{flex:none;gap:.4rem}@media (width<=1320px){.app-header{grid-template-columns:auto 1fr}.project-title{grid-area:2/1/auto/-1}.workspace{grid-template-columns:minmax(230px,280px) minmax(480px,1fr)}.inspector-panel{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;display:grid}.inspector-section{border-right:1px solid var(--line);border-bottom:0}.inspector-section:nth-child(3n){border-right:0}}@media (width<=900px){.app-header{grid-template-columns:1fr;position:static}.header-actions{flex-wrap:wrap;justify-content:flex-start}.project-title{grid-area:auto;grid-template-columns:auto 1fr}.project-title span{grid-column:2}.workspace{grid-template-columns:1fr}.program-area{grid-row:1}.left-dock{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.dock-section{border-right:1px solid var(--line);border-bottom:0}.source-section{border-right:0}.inspector-panel{display:block}.inspector-section{border-right:0;border-bottom:1px solid var(--line)}.lower-controls{display:grid}.recording-card{align-items:flex-start}}@media (width<=620px){.workspace{padding:.5rem}.left-dock{display:block}.dock-section{border-right:0;border-bottom:1px solid var(--line)}.program-toolbar,.recording-card,.update-prompt{flex-direction:column;align-items:stretch}.program-statuses{justify-content:flex-start}.profile-control{width:100%;margin-left:0}.slider-row{grid-template-columns:1fr}.output-button{width:100%}.number-grid{grid-template-columns:1fr}}.header-actions{flex-wrap:wrap}.header-button:disabled{opacity:.38}.warning-banner{z-index:34;color:#ffe3b8;background:#4c3211f5;border-bottom:1px solid #ffd18d4d;justify-content:space-between;align-items:center;gap:1rem;padding:.72rem 1rem;font-size:.76rem;display:flex;position:sticky;top:4.5rem}.warning-banner button,.hotkey-panel>button{color:#fff;background:#ffffff0f;border:1px solid #ffffff24;border-radius:.5rem;padding:.38rem .58rem;font-weight:750}.hotkey-panel{z-index:48;background:#1a1124fa;border:1px solid #ce9dff57;border-radius:.9rem;align-items:flex-start;gap:1rem;width:min(520px,100vw - 2rem);padding:.9rem;display:flex;position:fixed;top:4.8rem;right:1rem;box-shadow:0 20px 60px #00000080}.hotkey-panel>div{flex:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem .8rem;display:grid}.hotkey-panel strong{grid-column:1/-1;margin-bottom:.15rem;font-size:.82rem}.hotkey-panel span{color:var(--muted);font-size:.68rem;line-height:1.35}.scene-select kbd{color:var(--muted);background:#ffffff0a;border:1px solid #ffffff1f;border-radius:.35rem;margin-left:auto;padding:.14rem .34rem;font-family:inherit;font-size:.58rem}.status-pill.warning{color:var(--warning);background:#ffd18d12;border-color:#ffd18d57}.status-pill.paused{color:#ffe0ad;background:#ffd18d17;border-color:#ffd18d6b}.stage3-capture-strip .profile-control{grid-template-columns:auto minmax(108px,1fr);min-width:178px;margin-left:0}.stage3-capture-strip .profile-control:first-of-type{min-width:230px;margin-left:auto}.stage3-capture-strip .transition-duration{min-width:155px}.stage3-lower-controls{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);display:grid}.stage3-mixer-card,.stage3-recording-card{display:block}.audio-channel{background:#08050c4d;border:1px solid #ffffff12;border-radius:.7rem;margin-top:.62rem;padding:.62rem}.audio-channel.muted{border-color:#ff5d7233}.audio-channel-heading{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.audio-channel-heading strong,.audio-channel-heading small{display:block}.audio-channel-heading strong{font-size:.74rem}.audio-channel-heading small{color:var(--muted);margin-top:.14rem;font-size:.61rem;line-height:1.35}.mute-button{color:#ddd2e8;background:#b66cff14;border:1px solid #ce9dff40;border-radius:.5rem;min-width:4.6rem;min-height:1.9rem;padding:.34rem .5rem;font-size:.64rem;font-weight:800}.mute-button.active{color:#ffb1bd;background:#ff5d721f;border-color:#ff5d725c}.meter{background:#00000073;border:1px solid #ffffff14;border-radius:999px;height:.58rem;margin-top:.55rem;overflow:hidden}.meter>span{border-radius:inherit;background:linear-gradient(90deg,#5ed6a7 0%,#b9db70 68%,#ffd18d 86%,#ff5d72 100%);height:100%;transition:width 80ms linear;display:block}.audio-channel .slider-row{grid-template-columns:minmax(90px,120px) 1fr;margin-top:.48rem}.recording-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-top:.7rem;display:grid}.recording-settings label>span{color:var(--muted);margin-bottom:.28rem;font-size:.64rem;font-weight:750;display:block}.recording-settings select{min-height:2.15rem;font-size:.68rem}.recording-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-top:.72rem;display:grid}.recording-actions .output-button{width:100%;min-width:0}.recording-card .recording-note{color:#d0b8e2}@media (width<=1500px){.app-header{grid-template-columns:auto minmax(210px,1fr)}.header-actions{grid-column:1/-1;justify-content:flex-start}}@media (width<=1080px){.stage3-lower-controls{grid-template-columns:1fr}.stage3-capture-strip .profile-control,.stage3-capture-strip .profile-control:first-of-type{margin-left:0}}@media (width<=620px){.warning-banner,.hotkey-panel{flex-direction:column;align-items:stretch}.hotkey-panel{top:1rem}.hotkey-panel>div,.recording-settings,.recording-actions{grid-template-columns:1fr}.stage3-capture-strip .profile-control,.stage3-capture-strip .profile-control:first-of-type{min-width:100%}}
