/* Scoped polish. Existing IDs, event handlers and workspace layout are retained. */
body.studio-pro-workspace{--panel-bg:#101722;--border:#283342;--accent:#74dfc5;--muted:#a1b0c0;color-scheme:dark;font-family:Inter,system-ui,sans-serif}
.studio-pro-workspace button,.studio-pro-workspace input,.studio-pro-workspace select{font-family:inherit}
.studio-pro-workspace button{font-weight:550;letter-spacing:.01em;transition:background-color .12s,border-color .12s}
.studio-pro-workspace button:disabled{opacity:.44;cursor:not-allowed}
.studio-pro-workspace :is(button,input,select,summary):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.studio-pro-workspace .btn,.studio-pro-workspace .export-actions button{border-radius:7px}
.studio-pro-workspace .timeline-tool-btn{min-width:30px;min-height:30px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:6px}
.studio-pro-workspace .studio-icon{width:16px;height:16px;stroke-width:1.7;flex-shrink:0}
.studio-pro-workspace #timeline-editor{border-top:1px solid var(--border)}
.studio-pro-workspace #timeline-scroll-area{overscroll-behavior:contain}
.studio-pro-workspace .nested-scenes-bar{min-height:36px;padding:5px 10px;gap:6px;background:#111924;font-size:12px}
.studio-pro-workspace .nested-scenes-bar button{padding:5px 9px;background:#1a2735;border-color:#344253;font-size:11px;line-height:1.25}
.studio-pro-workspace .nested-scenes-bar strong{font-size:11px;font-weight:600;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-pro-workspace .nested-scenes-bar [role=status]{flex:1;min-width:130px;font-size:11px}
.studio-pro-workspace .studio-nest-block{touch-action:none;user-select:none;font-size:11px;font-weight:550}
.studio-pro-workspace .studio-nest-block[aria-pressed=true]{outline-color:var(--accent)}
.studio-pro-workspace .nest-trim-edge{border-radius:3px;background:transparent}
.studio-pro-workspace .studio-nest-block:hover .nest-trim-edge{box-shadow:inset 2px 0 0 #d3ece37a}
.studio-pro-workspace .studio-nest-block:hover .nest-trim-edge.right{box-shadow:inset -2px 0 0 #d3ece37a}
.studio-pro-workspace #timeline-editor[data-tool=cut] .studio-nest-block,.studio-pro-workspace #timeline-editor[data-tool=cut] .nest-trim-edge{cursor:crosshair}
.studio-pro-workspace #timeline-time-snap-guide{pointer-events:none;background:var(--accent)}
.studio-pro-workspace #snap-guide-v,.studio-pro-workspace #snap-guide-h{pointer-events:none}
.studio-pro-workspace .export-box{width:min(560px,calc(100vw - 32px));max-height:90vh;border:1px solid #3c4b5d;border-radius:14px;box-shadow:0 16px 60px #0007}
.studio-pro-workspace .export-box h2{font-size:21px;letter-spacing:-.02em;font-weight:650}
.studio-pro-workspace .export-box small{display:block;line-height:1.55;color:var(--muted)}
.studio-pro-workspace .export-box label{font-size:12px;font-weight:600}
.studio-pro-workspace .export-box select{padding:9px;border-radius:6px;min-height:38px}
.studio-pro-workspace .native-key-panel[hidden]{display:none!important}
.studio-pro-workspace .native-key-panel{border:1px solid var(--border);border-radius:7px;margin:8px 0;font-size:12px}
.studio-pro-workspace .native-key-panel summary{cursor:pointer;padding:9px;font-weight:650}
.studio-pro-workspace .native-key-panel .inspector-body{padding:10px}
.studio-pro-workspace .native-key-panel label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.studio-pro-workspace .native-key-panel :is(input[type=number],input[type=color]){width:88px;min-width:0}
.studio-pro-workspace .native-key-panel input[type=checkbox]{width:auto}
.studio-pro-workspace .native-key-actions{display:flex;gap:8px;margin:10px 0}
.studio-pro-workspace .native-key-panel small,.studio-pro-workspace .native-effect-note{display:block;line-height:1.5;color:var(--muted);font-size:11px}
.studio-pro-workspace .native-effect-note{padding:8px}
.studio-pro-workspace .native-badge{font-size:9px;font-weight:550;text-transform:uppercase;letter-spacing:.04em;border:1px solid #34594d;border-radius:4px;padding:2px 4px;color:var(--accent);margin-left:5px}
.studio-pro-workspace ::-webkit-scrollbar{width:7px;height:7px}
.studio-pro-workspace ::-webkit-scrollbar-thumb{background:#465366;border:2px solid transparent;background-clip:padding-box;border-radius:8px}
@media(max-width:900px){.studio-pro-workspace .nested-scenes-bar [role=status]{flex-basis:100%}.studio-pro-workspace .export-box{padding:18px}}
@media(prefers-reduced-motion:reduce){.studio-pro-workspace *{transition:none!important;scroll-behavior:auto!important}}

/* Shared effect panels use the editor theme rather than native browser controls. */
#tab-video-fx,#tab-sound{font:12px/1.5 Inter,Segoe UI,sans-serif;color:#d7e4ef}
#tab-video-fx h3,#tab-sound h3{font-size:16px;margin:4px 0 20px}
#tab-video-fx label,#tab-sound label{font-size:12px;color:#afc4d7}
#tab-video-fx button,#tab-sound button{background:#203347;color:#dcebf6;border:1px solid #3b536b;border-radius:6px;padding:8px 10px;font:600 11px/1.3 Inter,Segoe UI,sans-serif;margin:3px 3px 3px 0;cursor:pointer}
#tab-video-fx button:hover,#tab-sound button:hover{background:#2b465d}
#tab-video-fx input:not([type=range]):not([type=checkbox]):not([type=color]),#tab-video-fx select,#tab-sound input[type=number]{background:#0b1723;color:#e3eef8;border:1px solid #354e63;border-radius:5px;padding:8px;font:12px Inter,Segoe UI,sans-serif}
#tab-video-fx input[type=checkbox],#tab-sound input[type=checkbox]{display:inline-block;width:auto;accent-color:var(--accent)}
#tab-video-fx input[type=range],#tab-sound input[type=range]{accent-color:var(--accent)}
#tab-video-fx input[type=color]{height:32px;padding:2px;border:1px solid #3b536b;border-radius:5px;background:#172635}
#tab-video-fx small,#tab-sound small{display:block;font-size:11px;line-height:1.6;color:#92a9be}
#tab-sound .audio-effects-panel{margin:0;padding:0;border:0}
#tab-sound .audio-tabs button.active{background:#17453f;border-color:var(--accent);color:#8aedd9}
#tab-video-fx [data-actions]{display:flex;flex-wrap:wrap;gap:4px;margin:12px 0}
