:root{color:#17203a;font-synthesis:none;--ink:#17203a;--deep:#151c34;--muted:#596176;--edge:#dcdce2;--paper:#fffefa;--peach:#f8ba85;background:#f6f4ef;font-family:system-ui,sans-serif}*{box-sizing:border-box}body{min-width:280px;margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.58}:focus-visible{outline-offset:3px;outline:3px solid #4563ad}input,select,textarea{accent-color:#293d74}input,select,textarea,output,.panel-meta,.transport{font-variant-numeric:tabular-nums}h1,h2,p{margin:0}p{max-width:62ch}h2{letter-spacing:-.025em;font-size:1.13rem}legend{padding:0;font-weight:650}fieldset{border:0;min-width:0;margin:0;padding:0}.masthead{background:var(--deep);color:#fffefa}.mast-inner{justify-content:space-between;align-items:center;gap:12px;max-width:1220px;margin:auto;padding:12px clamp(16px,4vw,44px);display:flex}.brand{letter-spacing:-.035em;align-items:center;gap:4px;font-size:1.27rem;font-weight:780;display:flex}.brand img{object-fit:cover}.status{color:#e0e3f4;align-items:center;gap:8px;font-size:.84rem;display:inline-flex}.status-dot{background:var(--peach);border-radius:50%;flex:0 0 8px;width:8px;height:8px}.status-dot.ready{background:#a8d8ac}main{max-width:1220px;margin:0 auto;padding:36px clamp(16px,4vw,44px) 110px}.intro{margin:0 0 26px}.intro h1{letter-spacing:-.065em;font-size:clamp(2rem,5.3vw,3.7rem);font-weight:780;line-height:1}.intro p{color:var(--muted);margin-top:12px;line-height:1.5}.compatibility{color:#533318;background:#f8e8d8;border-inline-start:3px solid #a56230;max-width:none;margin-bottom:20px;padding:12px 16px;line-height:1.45}.workspace{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:start;gap:20px;display:grid}.editing,.composition{gap:16px;min-width:0;display:grid}.panel{border:1px solid var(--edge);background:var(--paper);border-radius:18px;min-width:0;padding:18px}.panel-heading{justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:15px;display:flex}.panel-meta{color:var(--muted);text-align:end;font-size:.81rem}.muted{color:var(--muted);line-height:1.5}.panel>.muted{margin-bottom:14px}.source{background:#f5f5fb;border:1px dashed #babdcb;border-radius:10px;align-items:center;gap:12px;padding:14px;display:flex}.source-panel.dragging .source{background:#e8efff;border-color:#4563ad}.source-copy{overflow-wrap:anywhere;flex:1;gap:3px;min-width:0;display:grid}.source-copy span{color:var(--muted);font-size:.82rem}.source-mark{background:#e5e9f7;border-radius:50%;flex:0 0 40px;place-items:center;width:40px;height:40px;font-size:1.22rem;display:grid}.primary,.secondary,.play,.text-button{border-radius:9px;justify-content:center;align-items:center;gap:10px;min-height:48px;font-weight:680;text-decoration:none;display:inline-flex}.primary{background:var(--peach);color:var(--deep);border:1px solid #f0a66c;padding:0 17px}.primary:hover{background:#ffcba4}.secondary,.play{color:#293d74;background:#f5f6fc;border:1px solid #b5bfd9;padding:0 13px}.secondary:hover,.play:hover{background:#e9edfb}.text-button{color:#344c88;text-underline-offset:3px;background:0 0;border:0;padding:0 6px;font-size:.85rem;text-decoration:underline}.compact{font-size:.86rem}.stage{background:#e7e9f2;border-radius:9px;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;height:clamp(285px,36vw,420px);min-height:285px;display:grid;position:relative;overflow:hidden}.stage canvas{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:100%;display:block}.stage-label{color:var(--ink);background:#fffefa;border-radius:5px;padding:6px 9px;font-size:.77rem;position:absolute;bottom:12px;left:12px}.transport{color:var(--muted);grid-template-columns:auto 2.75ch minmax(0,1fr) 2.75ch;align-items:center;gap:11px;margin:9px 0 14px;font-size:.86rem;display:grid}.transport input{width:100%;min-height:36px}.play{border-radius:50%;width:48px;padding:0}.presets{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:7px;display:grid}.presets legend,.theme-group legend{margin-bottom:8px;font-size:.86rem}.preset{border:1px solid var(--edge);cursor:pointer;border-radius:9px;align-items:center;gap:7px;min-height:50px;padding:8px;display:flex;position:relative}:is(.preset:has(input:checked),.theme:has(input:checked)){background:#eef1fb;border-color:#5269a2}:is(.preset:has(input:focus-visible),.theme:has(input:focus-visible)){outline-offset:2px;outline:3px solid #4563ad}.preset input,.theme input{opacity:0;block-size:1px;inline-size:1px;margin:0;position:absolute}.preset strong{font-size:.84rem}.preset small{color:var(--muted);font-size:.7rem;display:block}.shape{border:1.5px solid #415685;border-radius:2px;flex:none;display:block}.shape-portrait{width:13px;height:20px}.shape-square{width:16px;height:16px}.shape-landscape{width:21px;height:13px}.theme-options,.color-controls,.style-options{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.theme{cursor:pointer;border:1px solid var(--edge);border-radius:9px;align-items:center;gap:6px;min-height:48px;padding:4px 9px;font-size:.85rem;display:inline-flex}.swatch{border-radius:5px;place-items:center;width:31px;height:26px;font-size:.8rem;display:grid}.color-controls label{border:1px solid var(--edge);border-radius:8px;align-items:center;gap:8px;min-height:48px;padding:0 8px;font-size:.83rem;display:flex}input[type=color]{background:0 0;border:0;width:37px;min-height:36px}.style-options label{flex:115px}.size-control span{justify-content:space-between;align-items:baseline;display:flex}.size-control input{width:100%;min-height:36px;margin:0}.cue{background:#f8f8fd;border:1px solid #e1e3ed;border-radius:10px;margin:0 0 12px;padding:12px}.cue-heading{justify-content:space-between;align-items:center;display:flex}.cue-times{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.cue>label,.split label,.time-field label,.style-options label,.size-control{color:var(--ink);gap:5px;font-size:.86rem;font-weight:640;display:grid}.cue>label{margin-bottom:9px}.cue>label .muted{font-weight:400;display:contents}input[type=number],textarea,select{width:100%;min-height:43px;color:var(--ink);background:#fff;border:1px solid #aeb7cf;border-radius:6px;padding:8px}textarea{resize:vertical;font-weight:400}input[aria-invalid=true]{border-color:#9c3040}.inline-error{color:#862334;margin-bottom:8px;font-size:.86rem}.inline-actions{flex-wrap:wrap;gap:8px;display:flex}.split{gap:8px;margin-top:10px;display:grid}.split button{justify-self:start}.export-panel .primary{justify-content:space-between;width:100%}.caption-toggle{align-items:center;gap:8px;min-height:48px;font-size:.9rem;display:flex}.caption-toggle input{width:18px;height:18px}.results video{background:var(--deep);border-radius:8px;width:100%;max-height:430px;margin-bottom:10px;display:block}.feedback{z-index:1;bottom:max(12px, env(safe-area-inset-bottom));right:max(12px, env(safe-area-inset-right));background:#f1f4ff;border:1px solid #aab4d0;border-radius:12px;width:min(390px,100% - 24px);padding:12px 14px;position:fixed;box-shadow:0 2px 5px #111a3024,0 10px 20px #111a301a}.feedback p{line-height:1.4}.feedback [role=alert]{color:#862334}.job{justify-content:space-between;align-items:center;gap:12px;display:flex}.job>div{flex:1;gap:6px;display:grid}.job progress{accent-color:#293d74;width:100%}@media (width<=760px){main{padding-top:26px}.workspace{grid-template-columns:1fr}.stage{height:340px}}@media (width<=370px){.source{flex-wrap:wrap}.source .secondary{width:100%}.stage{height:300px}.shape{display:none}}
