.scene-editor{max-width:780px;background:#161916;color:#f4f3ed;border:1px solid #41473d;border-radius:14px;padding:clamp(12px,2vw,22px);white-space:normal}.scene-editor video{display:block;width:100%;max-height:35vh;background:#080908;border-radius:8px}.scene-editor h3{margin:0 0 .6em}.scene-editor canvas{width:100%;height:74px;display:block;background:#252922;border-radius:6px;cursor:pointer}.scene-editor .ends,.scene-editor .actions,.scene-editor .edit{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.scene-editor .actions,.scene-editor .edit{justify-content:flex-start}.scene-editor .primary{background:#cce7a6;color:#192014;font-weight:650}.scene-editor label{display:inline-flex;align-items:center;gap:5px}.scene-editor input[type=number]{width:5.5em}.scene-editor select,.scene-editor input{font:inherit}.scene-editor button,.scene-editor select{margin:2px}.scene-editor small{color:#bec8b6}.scene-editor output{display:block}.scene-editor summary{cursor:pointer}
.scene-editor .steps{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));margin:.7em 0}.scene-editor .steps button{padding:.35em 0;min-width:0}.scene-editor .steps button[aria-pressed=true]{background:#cce7a6;color:#182014}.scene-editor details{padding:.55em 0;border-top:1px solid #41473d}.scene-editor details[open]>:not(summary){animation:scene-in .35s ease}@keyframes scene-in{from{opacity:.2}to{opacity:1}}@media(max-width:550px){.scene-editor .steps{grid-template-columns:repeat(8,1fr)}}@media(prefers-reduced-motion:reduce){.scene-editor *{animation:none!important}}
.scene-editor fieldset{border:0;padding:0;margin:.8rem 0}.scene-editor legend{font-size:1.15rem;font-weight:650}.scene-editor canvas{margin:.6em 0}.scene-editor .sequence{display:flex;flex-wrap:wrap;gap:.45em;list-style:none;padding:0}.scene-editor .sequence li{border-left:3px solid #cadeab;padding:.35em;background:#20271e}
.scene-editor .scene-step{display:block;margin:1em 0 .4em;color:#cedfbf}.scene-editor input.start,.scene-editor input.end{width:9ch;box-sizing:content-box;padding:.4em .55em;font-variant-numeric:tabular-nums}.scene-editor input[aria-invalid=true]{outline:1px solid #e8a992}.scene-editor .cue-length{font-variant-numeric:tabular-nums;font-weight:600}.scene-editor .next{margin-top:.8em}
.scene-editor .digits{display:inline-flex;align-items:end;gap:.35em}.scene-editor .digits label{display:grid;gap:.15em;font-size:.78em;color:#ced1c9;text-align:center}.scene-editor .digits input{box-sizing:content-box;width:2.2ch;text-align:center;font:1.25em ui-monospace,monospace;padding:.28em}.scene-editor .digits input[maxlength="3"]{width:3.2ch}.scene-editor .tc-settings{margin:.6em 0}.scene-editor .tc-display{width:max-content;margin:0 0 .35em auto;background:#080a08;color:#daf2c6;padding:.2em .55em;border-radius:.3em;font: .9em ui-monospace,monospace;font-variant-numeric:tabular-nums}
.scene-editor .video-marks{display:flex;align-items:center;flex-wrap:wrap;gap:.45em;padding:.55em 0;border-bottom:1px solid #41473d}.scene-editor .video-marks small{font-variant-numeric:tabular-nums;margin-right:auto}.scene-editor .video-marks button{font-variant-numeric:tabular-nums}
.scene-editor .cue-rail{position:relative;flex:0 0 100%;height:18px;border-radius:4px;background:#333830;overflow:hidden}
.cue-rail i{position:absolute;top:0;bottom:0}
.cue-shade{left:var(--entry);right:calc(100% - var(--exit));background:#849d66}
.cue-in,.cue-out{width:3px;background:#d2efaa;z-index:2}
.cue-in{left:clamp(0px,var(--entry),calc(100% - 3px))}
.cue-out{right:clamp(0px,calc(100% - var(--exit)),calc(100% - 3px))}
.cue-in::after,.cue-out::after{content:"";position:absolute;top:0;border-top:7px solid #d2efaa}
.cue-in::after{left:2px;border-right:7px solid transparent}
.cue-out::after{right:2px;border-left:7px solid transparent}
.cue-head{width:1px;background:white;left:0}
.scene-editor label.scene-question{display:grid;gap:.25em;justify-items:start;margin:.8em 0}.scene-question select{min-width:min(17em,100%)}
.scene-editor .scene-mode{display:grid;text-align:left;gap:.2em;width:100%;margin:.5em 0;padding:.7em 1em}
