@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#23262d;background:#111216;font-synthesis:none;--gold:linear-gradient(100deg,#fff0a6 0%,#ffda65 35%,#efb737 72%,#c28a24 100%);--gold-light:#ffe08a;--dark:#141519;--muted:#858991;--side:324px;--rail:76px;--timeline:254px;--line:#e5e7ea;--second:17px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}button:disabled{cursor:default;opacity:.32}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #c39025;outline-offset:3px}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{transition:background .16s,color .16s,box-shadow .16s}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}span[data-icon]{display:inline-flex;align-items:center;justify-content:center}button[data-icon]>svg{pointer-events:none}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.editor{display:grid;grid-template-columns:var(--rail) var(--side) minmax(0,1fr);grid-template-rows:62px minmax(0,1fr);height:100dvh;min-height:650px;overflow:hidden}.topbar{grid-column:1/-1;display:flex;min-width:0;background:#fcfcfd;border-bottom:1px solid var(--line);z-index:20}.brand{width:calc(var(--rail) + var(--side));flex-shrink:0;background:#111216;display:flex;align-items:center;gap:11px;padding:0 24px;color:#f5f5f7;font-size:23px;font-weight:700;letter-spacing:-.9px;border-bottom:1px solid #292a2e}.studio-label{margin-left:auto;font-size:10px;letter-spacing:1.5px;color:#a2a3aa;font-weight:600;border:1px solid #343438;padding:4px 6px;border-radius:4px}.header-workspace{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 18px;flex:1;min-width:0}.project-switch{font-size:13px;font-weight:600;min-width:0;padding:9px 0;gap:10px}.project-switch>span#project-name{overflow:hidden;text-overflow:ellipsis;max-width:260px}.project-switch svg:last-child{width:14px}.cloud-icon{color:#5c6370;margin-right:2px}.header-center,.header-actions,.segmented{display:flex;align-items:center;gap:4px}.header-center{margin:auto}.header-actions{gap:12px}.icon-button{width:32px;height:32px;flex-shrink:0;border-radius:7px;color:#5a606b;padding:0}.icon-button svg{width:18px;height:18px}.icon-button:hover:not(:disabled){background:#eeeff1;color:#23262d}.icon-button.active{background:#fff0bc;color:#765419}.segmented{gap:2px}.zoom-label{padding:8px 6px;font-size:12px}.zoom-label svg{width:13px}.separator{height:18px;width:1px;display:inline-block;background:#e3e5e8;margin:0 8px;flex-shrink:0}.preview-badge{font-size:11px;color:#8c6b25;background:#fff8e6;border:1px solid #f0e2bf;border-radius:20px;padding:5px 9px;gap:6px}.preview-badge>span{width:5px;height:5px;background:#c49c44;border-radius:50%}.ai-header{font-size:12px;font-weight:600;gap:6px;padding:7px 5px}.ai-header svg{color:#ac7b22;width:17px}.avatar{font-size:13px;font-weight:600;width:30px;height:30px;border-radius:50%;background:#e9e2d5;color:#786343;border:3px solid #fff;box-shadow:0 0 0 1px #e9eaed}.gold-button{background:var(--gold);border:1px solid #d9b559;border-radius:8px;height:35px;padding:0 14px;color:#473411;font-size:13px;font-weight:700;box-shadow:0 1px 2px #0000000a,inset 0 1px 0 #ffffff5c}.gold-button:hover{filter:brightness(1.04);box-shadow:0 2px 8px #ac811f26}.gold-button svg{width:16px}.gold-button svg:last-child{width:12px}.tool-rail{grid-column:1;grid-row:2;background:#111216;border-right:1px solid #27282e;display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto;scrollbar-width:none;padding:10px 6px}.rail-button{display:flex;flex-direction:column;gap:5px;width:64px;height:60px;color:#8f929b;border-radius:10px;font-size:11px;line-height:1.1;position:relative}.rail-button svg{width:21px;height:21px}.rail-button:hover{background:#202127;color:#eee}.rail-button.active{background:#292820;color:#ffe297}.rail-button.active:before{position:absolute;content:'';left:-6px;top:18px;height:25px;width:2px;background:var(--gold);border-radius:0 2px 2px 0}.rail-bottom{border-top:1px solid #292a30;margin-top:15px;padding-top:5px}.rail-bottom .rail-button{height:48px;font-size:10px}.rail-bottom svg{width:18px;height:18px}.library{background:var(--dark);color:#e9eaee;grid-column:2;grid-row:2;min-height:0;display:flex;flex-direction:column;border-right:1px solid #292a2e}.library-heading{height:58px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 18px}.library-heading h1{font-size:17px;letter-spacing:-.2px;font-weight:600;margin:0}.dark{color:#898d98}.dark:hover:not(:disabled){background:#27282f;color:#fff}.panel-content{padding:0 17px 20px;overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:#34363e transparent}.library-footer{height:38px;flex-shrink:0;display:flex;align-items:center;padding:0 18px;gap:7px;border-top:1px solid #292a30;font-size:11px;color:#9598a1}.status-dot{height:5px;width:5px;border-radius:50%;background:#b6a06b}.footer-count{margin-left:auto;color:#676b75}.composer{background:linear-gradient(155deg,#24242a,#1e1f24);border:1px solid #35332c;border-radius:11px;padding:12px;margin:1px 0 20px;box-shadow:inset 0 1px 0 #ffffff05}.composer-title{display:flex;align-items:center;gap:7px;font-size:12px;color:#e3d8bd;margin-bottom:9px;font-weight:500}.composer-title svg{width:16px;color:var(--gold-light)}.composer textarea{width:100%;height:57px;resize:none;color:#f4f2ed;background:none;border:0;outline:none;line-height:1.55;font-size:13px;padding:0}.composer textarea::placeholder{color:#80848e}.composer-bottom{display:flex;align-items:center;gap:4px;margin-top:7px}.composer-bottom .icon-button{width:25px;height:25px}.composer-option{font-size:11px;color:#c8cad2;gap:5px;padding:3px 4px}.composer-option svg{width:12px}.compose-generate{margin-left:auto;width:29px;height:29px;border-radius:7px;background:var(--gold);color:#5c4518}.compose-generate svg{width:16px}.media-tabs{display:flex;gap:21px;align-items:center;border-bottom:1px solid #303138;margin-bottom:13px}.media-tab{padding:0 0 11px;font-size:13px;font-weight:500;color:#91959f;position:relative}.media-tab.active{color:#f6e2a7}.media-tab.active:after{position:absolute;content:'';height:2px;background:var(--gold);bottom:-1px;left:0;right:0}.media-tabs .icon-button{margin-left:auto;align-self:flex-start;height:22px}.media-search{height:33px;display:flex;align-items:center;gap:8px;background:#1e2026;border:1px solid #2a2c33;border-radius:7px;padding:0 9px;color:#777e89;margin-bottom:12px}.media-search svg{width:15px}.media-search input{background:none;border:0;color:#e9e9ee;outline:none;font-size:12px;min-width:0;width:100%}.media-search input::placeholder{color:#828793}.filter-chips{display:flex;align-items:center;gap:5px;margin-bottom:15px}.filter-chip{font-size:11px;border-radius:5px;color:#9297a3;padding:5px 11px}.filter-chip.active{background:#353025;color:#ffe0a0}.filter-chip:hover{background:#24262b}.media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 10px}.media-card{display:block;text-align:left;padding:0;min-width:0;position:relative}.media-visual{aspect-ratio:1.42;background:#272931;overflow:hidden;position:relative;border-radius:7px;border:1px solid #32343a}.media-visual img{height:100%;width:100%;object-fit:cover;transition:transform .35s;display:block}.media-card:hover img{transform:scale(1.06)}.media-card.selected .media-visual{border-color:#edc566;box-shadow:0 0 0 1px #edc566}.media-card.selected .selection-check{display:flex}.selection-check{position:absolute;top:6px;right:6px;width:17px;height:17px;background:var(--gold);color:#493716;border-radius:4px;display:none;align-items:center;justify-content:center}.selection-check svg{width:12px}.media-duration{position:absolute;left:5px;bottom:5px;padding:2px 4px;background:#111317c4;border-radius:3px;color:#eeedf0;font-size:10px;letter-spacing:.1px}.media-title{display:flex;align-items:center;gap:5px;padding-top:6px;font-size:11px;color:#bec1c9;overflow:hidden}.media-title>span:last-child{overflow:hidden;text-overflow:ellipsis}.media-title svg{width:12px;height:12px;color:#818792}.upload-card{height:100%;align-self:start}.upload-card .media-visual{border:1px dashed #494b51;background:#1d1f24;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#d0c29b}.upload-card .media-visual svg{width:23px;height:23px}.upload-card strong{font-size:12px;font-weight:500;color:#d5d6db}.upload-card small{font-size:10px;color:#747985}.upload-card:hover .media-visual{background:#26262a;border-color:#ba9849}.audio-art{height:100%;width:100%;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 100%,#1d4b45,#20282c 80%);color:#72bfad}.audio-art svg{width:30px;height:30px;stroke-width:1.3}.asset-caption{color:#747984;font-size:10px;margin:20px 0 0;display:flex;align-items:center;gap:5px}.asset-caption svg{width:12px}.empty-media{padding:25px 10px;color:#b9bdc5;font-size:12px;text-align:center;grid-column:1/-1}.workspace{grid-column:3;grid-row:2;display:grid;grid-template-rows:minmax(230px,1fr) 53px var(--timeline) 34px;min-width:0;min-height:0;background:#f5f6f8}.stage{position:relative;overflow:hidden;background:#edf0f2;background-image:radial-gradient(ellipse at 50% 38%,#f9fafb 0%,#edf0f2 70%)}.stage-top-left{position:absolute;top:19px;left:24px;z-index:3;display:flex;align-items:center;gap:15px}.floating-pill{padding:9px 12px;background:#fff;border:1px solid #e2e5e8;border-radius:8px;box-shadow:0 2px 4px #00000003;font-size:12px;color:#626976;gap:7px}.floating-pill svg{width:12px;height:12px}.ratio-icon{display:inline-block;height:15px;width:9px;border:1.4px solid #8c929b;border-radius:2px}.stage-label{color:#8c929c;font-size:11px}.preview-area{position:absolute;inset:20px 100px 36px;display:flex;align-items:center;justify-content:center;transition:padding .2s}.video-frame{height:100%;max-height:610px;max-width:100%;aspect-ratio:9/16;position:relative;background:#46321d;box-shadow:0 14px 36px #28301f24;transition:aspect-ratio .2s,transform .2s;isolation:isolate}.preview-image{height:100%;width:100%;object-fit:cover;display:block;transition:filter .2s;position:absolute;inset:0}.image-shade{position:absolute;inset:0;background:linear-gradient(180deg,#11170c32,transparent 28%,transparent 50%,#11170c80);pointer-events:none}.video-eyebrow{position:absolute;top:7%;left:0;right:0;text-align:center;font-size:8px;letter-spacing:3.5px;color:#f7f3e3;font-weight:600}.video-caption{position:absolute;bottom:11%;left:4%;right:4%;text-align:center;font-size:clamp(21px,2.15vw,38px);line-height:1.08;font-weight:600;letter-spacing:-1.2px;color:#fffdf4;text-shadow:0 1px 15px #17201033}.video-caption em{font-family:Georgia,'Times New Roman',serif;font-weight:400;color:#ffe4a1}.corner{position:absolute;width:7px;height:7px;background:#fff9e6;border:1px solid #cba752;z-index:4}.video-frame:after{position:absolute;content:'';inset:-1px;border:1px solid #d4b67399;pointer-events:none}.tl{left:-4px;top:-4px}.tr{right:-4px;top:-4px}.bl{left:-4px;bottom:-4px}.br{right:-4px;bottom:-4px}.quick-inspector{position:absolute;top:19px;right:20px;background:#ffffffed;border:1px solid #e4e7e9;box-shadow:0 6px 20px #33404a06;border-radius:11px;padding:6px;z-index:7}.quick-button{width:49px;height:60px;display:flex;flex-direction:column;gap:6px;border-radius:6px;color:#828896;font-size:10px}.quick-button svg{width:19px;height:19px}.quick-button.active{color:#98762c;background:#faf4e4}.quick-button:hover{background:#f4f4f3}.stage-bottom-left,.stage-bottom-right{position:absolute;bottom:13px;display:flex;align-items:center;gap:7px;color:#999fa8;font-size:10px}.stage-bottom-left{left:25px}.stage-bottom-right{right:25px}.stage-bottom-right svg{width:12px;height:12px}.tiny-dot{height:4px;width:4px;background:#a2a9af;border-radius:50%;display:inline-block}.mid-dot{color:#bdc1c7}.transport{display:flex;align-items:center;justify-content:space-between;min-width:0;gap:10px;padding:0 15px;background:#fff;border-bottom:1px solid var(--line);border-top:1px solid #e6e8e9;position:relative;z-index:8}.edit-tools,.playback,.timeline-tools{display:flex;align-items:center;gap:3px}.playback{position:absolute;left:50%;transform:translateX(-50%);gap:6px}.play-button{background:#25282e;color:#fff;width:29px;height:29px;border-radius:50%;box-shadow:0 1px 3px #0002;margin:0 1px}.play-button:hover{background:#483c23}.play-button svg{width:13px;height:13px;fill:currentColor;stroke-width:1.2}.skip{width:24px;color:#7c828c}.skip svg{width:13px;height:13px}.timecode,.duration{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;letter-spacing:-.6px}.timecode{margin-left:4px;color:#3a3f49;font-weight:600}.duration{color:#9a9faa;margin-left:2px}.timeline-tools{margin-left:auto}.timeline-tools .separator{margin:0 3px}.timeline-tools .icon-button{width:27px;height:29px}.timeline-tools .icon-button svg{width:17px}.timeline-tools input{width:65px;height:3px;accent-color:#c69a3d;margin:0 2px;cursor:pointer}.timeline{display:flex;overflow:hidden;background:#fbfcfd;min-width:0;min-height:0;border-bottom:1px solid #e6e8eb}.track-headers{width:96px;flex-shrink:0;background:#fafbfc;border-right:1px solid #e4e7eb;position:relative;z-index:4}.track-ruler-spacer{height:34px;display:flex;align-items:center;justify-content:flex-start;padding-left:14px}.track-ruler-spacer svg{width:16px;height:16px;color:#9197a1}.track-header{display:flex;align-items:center;position:relative;gap:7px;padding:0 12px;font-size:10px;color:#737a86;border-bottom:1px solid #e8ebee}.track-header>span[data-icon] svg{width:14px;height:14px;color:#949ca5}.captions-header{height:37px}.video-header{height:73px}.music-header,.voice-header{height:46px}.track-toggle{position:absolute;bottom:7px;left:11px;width:17px;height:17px;padding:0;color:#969da8}.track-toggle svg{width:12px;height:12px}.video-header .track-toggle{bottom:12px}.track-header:has(.track-toggle){padding-bottom:15px}.timeline-scroll{min-width:0;overflow-x:auto;overflow-y:hidden;flex:1;scrollbar-width:thin;scrollbar-color:#ced3db transparent}.timeline-content{position:relative;min-width:100%;height:100%;padding-right:0;background:#fbfcfd}.ruler{height:34px;position:relative;cursor:crosshair;background:linear-gradient(#dfe4e9,#dfe4e9) left bottom/100% 1px no-repeat;background-color:#fbfcfd}.ruler-tick{position:absolute;top:0;bottom:0;padding-left:5px;padding-top:12px;font-size:10px;color:#9ca5b1;font-family:ui-monospace,SFMono-Regular,monospace;border-left:1px solid #d4dbe3}.ruler:after{content:'';position:absolute;inset:0 0 auto 0;height:5px;background:repeating-linear-gradient(90deg,#dce2e8 0,#dce2e8 1px,transparent 1px,transparent var(--second));pointer-events:none}.track-row{position:relative;border-bottom:1px solid #e8ebee;background:linear-gradient(90deg,transparent calc(100% - 1px),#ecf0f3 0);background-size:calc(var(--second) * 10) 100%}.caption-track{height:37px;background-color:#f0f2f5}.video-track{height:73px;background-color:#f3f5f7}.audio-track{height:46px;background-color:#f0f4f5}.voice-track{background-color:#f3f3f7}.caption-clip{position:absolute;top:7px;height:24px;background:var(--gold);border:1px solid #d8ae4f;border-radius:5px;padding:0 7px;justify-content:flex-start;color:#78571d;gap:5px;overflow:hidden;font-size:10px;font-weight:500;white-space:nowrap}.caption-clip svg{width:11px;height:11px;flex-shrink:0}.caption-clip span:last-child{overflow:hidden;text-overflow:ellipsis}.video-clip{position:absolute;top:5px;height:63px;overflow:hidden;border-radius:5px;border:2px solid #fff;display:flex;justify-content:flex-start;padding:0;background:#747143;gap:0}.video-clip.selected{border-color:#ddae45;box-shadow:0 0 0 1px #ddae45;z-index:1}.video-clip>img{height:100%;width:51px;flex:1;min-width:30px;object-fit:cover;filter:var(--media-filter,none)}.video-clip>span{position:absolute;left:0;top:0;max-width:100%;background:#16201980;color:#fff;font-size:9px;padding:3px 6px;text-overflow:ellipsis;overflow:hidden}.audio-clip{position:absolute;top:4px;height:37px;background:#c3e4d8;border:1px solid #7fbcaa;border-radius:5px;overflow:hidden;display:block;padding:0}.audio-clip.voice{background:#e6dff3;border-color:#b8a4d4}.audio-clip>svg{position:absolute;left:0;bottom:1px;height:28px;width:100%;stroke:none;fill:#42a389;opacity:.63}.audio-clip.voice>svg{fill:#9c7cb8}.audio-clip>span{position:absolute;top:2px;left:7px;max-width:100%;font-size:10px;color:#326452;display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;background:#c3e4d8cc;padding:1px 3px 1px 0}.audio-clip.voice>span{color:#716084;background:#e6dff3cc}.audio-clip>span svg{width:11px;height:11px}.playhead{position:absolute;top:0;bottom:0;left:0;width:1.5px;background:#343942;z-index:5;pointer-events:none}.playhead-handle{position:absolute;width:10px;height:15px;top:0;left:-4.3px;clip-path:polygon(0 0,100% 0,100% 67%,50% 100%,0 67%);background:#3f4249;padding:0}.sequence-footer{background:#fff;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#959ca7;padding:0 13px}.sequence-footer>div{display:flex;align-items:center;gap:13px}.sequence-tab{font-size:10px;font-weight:600;color:#6f747e;background:#f4f5f7;height:24px;padding:0 9px;border-radius:5px;gap:6px}.sequence-tab svg{width:12px;height:12px}.sequence-tab .tiny-dot{background:#d1ac59;width:3px;height:3px;margin-left:4px}.sequence-info .icon-button{height:25px;width:25px}.sequence-info svg{width:14px}.sequence-info .mid-dot{margin:0 -6px}.inspector{position:absolute;right:90px;top:19px;width:245px;background:#fff;border:1px solid #e2e5e8;border-radius:10px;box-shadow:0 10px 45px #202d3f20;padding:17px;z-index:10}.inspector h2{font-size:14px;margin:0 0 20px;font-weight:600;display:flex;align-items:center;justify-content:space-between}.inspector h3{font-size:11px;font-weight:600;color:#737a85;margin:20px 0 12px}.inspector label{font-size:12px;color:#707683;display:block;margin:14px 0 7px}.inspector input[type=range]{width:100%;accent-color:#c39432}.field-row{display:flex;align-items:center;gap:10px}.field-row label{margin:0;display:flex;align-items:center;gap:8px;padding:6px 8px;background:#f4f5f7;border-radius:5px;min-width:0}.field-row input{width:48px;min-width:0;background:none;border:none;color:#353a44;font-size:12px;text-align:right}.inspector p{font-size:11px;color:#9a9faa;line-height:1.6}.inspector .close-inspector{height:21px;width:21px}.expand-panel{position:absolute;left:17px;top:71px;display:none;background:white;border:1px solid #ddd;z-index:5}.editor.panel-collapsed{--side:0px}.editor.panel-collapsed .library{display:none}.editor.panel-collapsed .brand{width:244px}.editor.panel-collapsed .expand-panel{display:flex}.editor.preview-expanded .workspace{grid-template-rows:minmax(230px,1fr) 53px 0 0}.editor.preview-expanded .sequence-footer{overflow:hidden}.editor.preview-expanded .timeline{border:0}.popover{position:fixed;z-index:70;background:white;border:1px solid #e1e4e8;box-shadow:0 10px 30px #1b2a3a1f;border-radius:9px;min-width:160px;padding:6px;color:#404652}.popover button{display:flex;justify-content:flex-start;gap:9px;width:100%;font-size:12px;padding:9px 10px;border-radius:5px}.popover button:hover{background:#f6f2e9}.popover button svg{width:15px}.popover small{display:block;color:#9ba0a9;font-size:10px;padding:7px 10px}.popover hr{border:0;border-top:1px solid #eef0f3;margin:4px 0}.toast{position:fixed;bottom:50px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#fff;color:#404652;border:1px solid #e1e4e8;padding:12px 18px;border-radius:8px;box-shadow:0 5px 30px #0002;font-size:12px;transition:all .2s;z-index:100;max-width:80vw}.toast.visible{transform:translate(-50%,0);opacity:1}dialog{background:#fff;color-scheme:light;padding:0;border:1px solid #e0e2e6;border-radius:15px;box-shadow:0 30px 110px #0004;max-width:440px;width:calc(100% - 40px);color:#333942}dialog::backdrop{background:#17191d69;backdrop-filter:blur(5px)}.dialog-header{padding:22px 25px 16px;display:flex;align-items:center;justify-content:space-between}.dialog-header h2{font-size:19px;margin:0;letter-spacing:-.5px}.dialog-body{padding:0 25px 22px}.dialog-body p{font-size:13px;line-height:1.7;color:#7d838e;margin:0 0 20px}.dialog-body label{font-size:12px;color:#666e7b;display:block;margin:16px 0 6px}.dialog-body select,.dialog-body input[type=text],.dialog-body input[type=url],.dialog-body input[type=password]{width:100%;border:1px solid #e0e3e8;border-radius:6px;background:#fafbfc;padding:10px 12px;font-size:13px;color:#3c424d}.dialog-body .gold-button{width:100%;height:40px;margin-top:22px}.dialog-body .gold-button:disabled{opacity:.55}.export-summary{display:flex;align-items:center;gap:12px;background:#f6f7f8;padding:12px;border-radius:9px;margin-bottom:18px}.export-summary img{width:35px;height:55px;object-fit:cover;border-radius:3px}.export-summary strong{font-size:12px;font-weight:600}.export-summary small{display:block;font-size:11px;color:#9a9faa;margin-top:4px}.dialog-note{font-size:11px!important;margin:13px 0 0!important;text-align:center}.keyboard-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee;padding:11px 0;font-size:12px}.keyboard-row kbd{font:11px ui-monospace,monospace;background:#f3f4f7;border:1px solid #e2e5e9;border-radius:4px;padding:3px 7px;color:#747b87}.panel-intro{font-size:12px;line-height:1.65;color:#9499a5;margin:0 0 19px}.section-label{font-size:11px;color:#737987;text-transform:uppercase;letter-spacing:1.2px;margin:21px 0 10px}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.preset-card{background:#22242b;border:1px solid #33363d;border-radius:9px;min-height:92px;display:flex;flex-direction:column;gap:7px;font-size:11px;color:#9197a3;padding:14px 6px;overflow:hidden}.preset-card strong{font-size:19px;font-weight:600;color:#f7f5ee;letter-spacing:-.7px}.preset-card.active{border-color:#c8a34e;background:#2d2921}.preset-card:hover{border-color:#756340}.preset-card em{font-family:Georgia,serif;color:#f8d689;font-size:21px}.preset-card span.highlight{background:var(--gold);color:#5f491b;padding:0 3px}.dark-button{background:#292b33;border:1px solid #3a3d46;border-radius:7px;padding:9px 12px;color:#dedfe3;font-size:12px;display:flex;width:100%;margin:12px 0}.dark-button:hover{background:#34343b}.panel-setting{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#b2b6c0;margin:20px 0}.switch{width:29px;height:17px;accent-color:#d4ae56}.color-swatches{display:flex;gap:10px;margin:15px 0}.color-swatches button{height:29px;width:29px;border-radius:50%;border:3px solid #191a1f;box-shadow:0 0 0 1px #51525b}.color-swatches button.active{box-shadow:0 0 0 1px #e0ba68}.audio-list-item{padding:13px 0;border-bottom:1px solid #30323a;display:flex;gap:11px;align-items:center}.audio-list-item .audio-icon{height:38px;width:38px;border-radius:7px;background:#283734;display:flex;align-items:center;justify-content:center;color:#8bbdad}.audio-list-item strong{font-size:12px;color:#d6d8dd;display:block;font-weight:500}.audio-list-item small{font-size:10px;color:#767e8c;display:block;margin-top:5px}.audio-list-item .icon-button{margin-left:auto}.ai-intro-icon{height:48px;width:48px;display:flex;align-items:center;justify-content:center;background:var(--gold);color:#7b5d1e;border-radius:14px;margin:20px auto 16px;box-shadow:0 3px 25px #c6a14b15}.ai-welcome{text-align:center;margin-bottom:25px}.ai-welcome h2{font-size:20px;letter-spacing:-.5px;color:#f1eddf;margin:0 0 9px;font-weight:500}.ai-welcome p{font-size:12px;color:#9a9fa9;line-height:1.7}.suggestion{display:flex;justify-content:flex-start;white-space:normal;line-height:1.5;font-size:12px;color:#bdc1ca;background:#202228;border:1px solid #34373e;border-radius:8px;padding:13px;text-align:left;width:100%;margin-bottom:9px}.suggestion svg{color:#bea365;width:16px;flex-shrink:0}.ai-input{width:100%;height:110px;resize:none;background:#22242b;border:1px solid #3b3c41;border-radius:9px;color:#e2e3e7;padding:13px;font-size:12px;line-height:1.6}.transcript-line{padding:13px 0;border-bottom:1px solid #2b2e35;display:flex;align-items:flex-start;gap:12px;white-space:normal;text-align:left;font-size:12px;line-height:1.75;width:100%;color:#c9cdd6}.transcript-line time{font:10px ui-monospace,monospace;color:#bca163;line-height:2.1}.notice-box{padding:13px;background:#23242a;border:1px solid #33353b;border-radius:8px;font-size:11px;line-height:1.7;color:#969ca7;margin-top:20px}.notice-box strong{color:#d5c08c;font-weight:500}.template-sample{height:160px;position:relative;background:#3b4133 url('assets/reishi-sample.webp') center/cover;border-radius:8px;display:flex;align-items:flex-end;padding:16px;color:#fff;overflow:hidden;margin-bottom:8px;text-align:left;width:100%}.template-sample:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#111a)}.template-sample>span{position:relative;z-index:2;font-size:20px;font-weight:600;line-height:1.2;letter-spacing:-.6px}.template-caption{display:flex;justify-content:space-between;font-size:11px;color:#989eaa;margin-bottom:20px}.filter-tile{height:80px;width:100%;object-fit:cover;border-radius:6px}.filter-preset{display:block;background:none;border:0;padding:0;text-align:left;color:#acb2bd;font-size:11px}.filter-preset span{display:block;padding:7px 0 9px}.filter-preset.active img{outline:2px solid #d6ae53;outline-offset:2px}.element-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.element-tile{height:78px;background:#24262e;border:1px solid #343741;border-radius:8px;color:#eed189}.element-tile svg{height:30px;width:30px}
@media(min-width:1700px){:root{--side:344px;--timeline:281px}.topbar{height:64px}.editor{grid-template-rows:64px minmax(0,1fr)}.library-heading{height:64px}.panel-content{padding-left:20px;padding-right:20px}.composer{padding:15px}.composer textarea{height:64px}.media-grid{gap:18px 12px}.media-visual{aspect-ratio:1.38}.media-title{font-size:12px}.rail-button{height:65px;font-size:12px}.rail-button svg{width:22px;height:22px}.video-eyebrow{font-size:10px}.video-caption{font-size:40px}.workspace{grid-template-rows:minmax(230px,1fr) 56px var(--timeline) 36px}.caption-track,.captions-header{height:40px}.video-track,.video-header{height:83px}.video-clip{height:73px}.audio-track,.music-header,.voice-header{height:51px}.audio-clip{height:42px}.audio-clip>svg{height:30px}.caption-clip{height:26px;top:7px}.track-header{font-size:11px}.track-ruler-spacer,.ruler{height:38px}.timecode,.duration{font-size:12px}.header-actions{gap:15px}.header-center{gap:7px}}
@media(max-width:1450px){:root{--side:290px;--rail:70px;--timeline:245px}.rail-button{width:58px;height:55px}.brand{padding:0 19px;font-size:22px}.studio-label{font-size:9px}.header-center{display:none}.header-workspace{padding:0 16px}.header-actions{gap:9px}.project-switch>span#project-name{max-width:230px}.library-heading{padding:0 16px}.panel-content{padding-left:14px;padding-right:14px}.media-visual{aspect-ratio:1.34}.transport{padding:0 10px}.edit-tools{gap:0}.timeline-tools .separator{margin:0 1px}.timeline-tools input{width:44px}.playback{gap:3px}.track-headers{width:82px}.track-header{padding-left:9px;gap:4px}.track-toggle{left:8px}.skip{display:none}.video-caption{font-size:29px}.preview-area{inset:20px 85px 36px}.header-more{display:none}.preview-badge{font-size:10px}}
@media(max-width:1180px){:root{--side:260px;--rail:64px}.brand{font-size:21px;gap:8px;padding:0 14px}.brand img{width:29px}.studio-label{display:none}.rail-button{width:52px;font-size:10px}.header-actions{gap:7px}.preview-badge{display:none}.ai-header{padding:6px 3px}.header-workspace{gap:8px}.project-switch>span#project-name{max-width:200px}.avatar{display:none}.stage-top-left{left:18px}.stage-label{display:none}.stage-bottom-right{display:none}.quick-inspector{right:12px;padding:4px}.quick-button{width:44px;height:54px}.timeline-tools #link-button,.timeline-tools .separator{display:none}.timeline-tools input{width:35px}.edit-tools .separator{margin:0 3px}.playback{left:47%}.stage-bottom-left{left:18px}.video-caption{font-size:25px}.media-grid{gap:12px 8px}.filter-chip{padding:4px 8px}.media-tabs{gap:16px}.composer{padding:10px}.composer-option{font-size:10px}.library-heading h1{font-size:16px}}
@media(max-width:950px){:root{--side:230px;--rail:60px;--timeline:242px}.editor{min-height:630px}.brand{width:290px;font-size:20px}.rail-button{width:48px}.header-workspace{padding:0 11px}.header-actions .ai-header{display:none}.gold-button{padding:0 11px;font-size:12px}.gold-button>span:last-child{display:none}.project-switch .cloud-icon{display:none}.project-switch>span#project-name{max-width:150px;font-size:12px}.media-search{margin-top:3px}.panel-content{padding-left:11px;padding-right:11px}.media-tabs{gap:12px}.media-tab{font-size:12px}.composer-title{font-size:11px}.composer textarea{font-size:12px}.media-title{font-size:10px}.stage-top-left{left:15px;top:15px}.preview-area{inset:20px 60px 34px 45px}.quick-inspector{right:7px;top:15px}.quick-button{width:36px;height:48px;font-size:9px}.quick-button svg{width:16px;height:16px}.transport .edit-tools .icon-button:nth-child(-n+2),.transport .edit-tools .separator{display:none}.timeline-tools #snap-button{display:none}.transport{padding:0 6px}.playback{left:43%}.timecode,.duration{font-size:10px}.timeline-tools input{width:30px}.timeline-tools .icon-button{width:22px}.track-headers{width:69px}.track-header{gap:3px;font-size:9px;padding-left:7px}.track-header>span[data-icon] svg{width:12px}.sequence-info>span{display:none}.video-caption{font-size:23px;letter-spacing:-.8px}.inspector{right:56px;width:210px}}
@media(max-width:720px){:root{--side:0px;--rail:54px;--timeline:226px}.editor{min-height:640px;grid-template-rows:54px minmax(0,1fr)}.brand{width:auto;padding:0 14px;font-size:19px;gap:7px}.brand img{width:27px}.header-workspace{padding-left:8px}.project-switch{display:none}.header-actions{margin-left:auto;gap:7px}.gold-button{height:31px}.header-center{display:none}.header-actions .ai-header{display:inline-flex}.ai-header>span:last-child{display:none}.tool-rail{padding:8px 4px}.rail-button{width:46px;height:52px;font-size:9px}.rail-button svg{width:18px;height:18px}.library{display:none;position:absolute;left:54px;top:54px;bottom:0;width:270px;z-index:30;box-shadow:12px 0 35px #1115}.editor.mobile-panel-open .library{display:flex}.stage-top-left{top:15px;left:16px}.preview-area{inset:17px 58px 32px 40px}.video-caption{font-size:25px}.quick-inspector{top:15px}.stage-bottom-left{font-size:9px;bottom:10px}.workspace{grid-template-rows:minmax(220px,1fr) 48px var(--timeline) 30px}.duration{display:none}.playback{left:46%;gap:5px}.timeline-tools input{width:35px}.transport .edit-tools button:last-child{display:none}.timeline-tools #full-screen{display:none}.sequence-footer{padding:0 9px}.sequence-footer>div{gap:9px}.track-headers{width:64px}.track-header{font-size:9px;gap:3px;padding-left:6px}.track-header>span[data-icon]{display:none}.track-toggle{left:7px}.track-ruler-spacer{padding-left:7px}.ruler,.track-ruler-spacer{height:30px}.caption-track,.captions-header{height:34px}.video-track,.video-header{height:66px}.video-clip{height:56px}.audio-track,.music-header,.voice-header{height:42px}.audio-clip{height:33px}.caption-clip{height:23px;top:5px}.inspector{width:215px;right:55px;top:15px}.editor.panel-collapsed .brand{width:auto}.expand-panel{display:none!important}.stage-label{display:none}.video-eyebrow{font-size:8px}.preview-badge{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

/* Selection feedback for the existing caption and audio clips. */
.caption-clip.selected,.audio-clip.selected{outline:2px solid #ddae45;outline-offset:-2px;z-index:1}
[data-timeline-clip]:focus-visible{outline:2px solid #ddae45;outline-offset:1px}
/* Edge handles add editing affordance without changing the accepted layout. */
[data-timeline-clip]{touch-action:none}
.trim-handle{position:absolute;top:0;bottom:0;width:8px;max-width:45%;z-index:3;cursor:ew-resize;touch-action:none;opacity:0;background:#ddae45c9}
.trim-start{left:0}.trim-end{right:0}
.trim-handle:after{content:'';position:absolute;left:50%;top:30%;bottom:30%;width:1px;background:#765517}
[data-timeline-clip]:hover>.trim-handle,[data-timeline-clip].selected>.trim-handle,[data-timeline-clip].trimming>.trim-handle{opacity:1}
.caption-clip>span{overflow:hidden;text-overflow:ellipsis}
.trimming-clip,.trimming-clip *{cursor:ew-resize!important;user-select:none!important}
.trim-tooltip{position:fixed;z-index:1000;pointer-events:none;border:1px solid #e4cf98;border-radius:5px;padding:5px 9px;background:#fff9e8;color:#78571d;font:11px/1.4 ui-monospace,monospace;white-space:nowrap;box-shadow:0 3px 12px #17232c12}

/* Functional controls within the accepted media-card and timeline layout. */
.media-item{position:relative;min-width:0}.media-item>.media-card{width:100%}.add-media{position:absolute;right:7px;top:7px;width:25px;height:25px;display:grid;place-items:center;padding:4px;border-radius:6px;border:1px solid #f8d76a;background:var(--gold);color:#352710;box-shadow:0 1px 5px #0005}.add-media svg{width:15px;height:15px}.add-media:focus-visible{outline:2px solid white;outline-offset:2px}
[data-timeline-clip]{cursor:grab}[data-timeline-clip] img{pointer-events:none}.moving-clip,.moving-clip *{cursor:grabbing!important}.moving{z-index:5;box-shadow:0 2px 8px #5b430044}.trim-tooltip{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.media-item .selection-check{right:38px}

/* Touching time intervals share an edge; no decorative empty strip at a cut. */
[data-timeline-clip]{min-width:0}
[data-timeline-clip][data-join-start="true"]{border-top-left-radius:0;border-bottom-left-radius:0}
[data-timeline-clip][data-join-end="true"]{border-top-right-radius:0;border-bottom-right-radius:0}
.video-clip[data-join-start="true"]{border-left-width:0}
.video-clip[data-join-end="true"]{border-right-width:0}

/* Export uses the existing dialog and palette; the editor layout is unchanged. */
#export-progress{display:block;width:100%;height:8px;margin:14px 0;accent-color:#d8aa36}
#export-progress[hidden],.export-actions [hidden]{display:none}
.export-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.export-actions .gold-button{text-decoration:none;justify-content:center}
.export-credits{font-size:11px;color:#858e9e}
#playhead{cursor:ew-resize;touch-action:none;pointer-events:auto}
.playhead-handle{cursor:ew-resize;touch-action:none}

/* Clip context menu: matches the requested light menu without moving the editor. */
.clip-context-menu{position:fixed;z-index:1200;width:272px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;padding:8px 0;border:1px solid #e0e3e8;border-radius:8px;background:#fff;color:#171c25;box-shadow:0 8px 28px #1b25301c;font-size:13px;outline:none}
.clip-context-menu>button{width:100%;height:36px;justify-content:flex-start;gap:10px;padding:0 16px;border-radius:0;text-align:left;font-weight:400}
.clip-context-menu>button>svg{width:18px;height:18px;stroke-width:1.8}
.clip-context-menu>button:hover:not(:disabled),.clip-context-menu>button:focus-visible{outline:none;background:#fff5d5;color:#533e11}
.clip-context-menu>button:disabled{opacity:1;color:#c3cad4}
.clip-menu-label{flex:1;white-space:nowrap}
.clip-menu-shortcut{display:flex;align-items:center;gap:4px;color:#919aa8;font-size:11px}
.clip-menu-shortcut kbd{font:inherit;border:1px solid #edf0f4;border-radius:3px;padding:1px 4px;line-height:16px}
.clip-menu-shortcut>svg{width:13px;height:13px}
.clip-context-menu>button:disabled .clip-menu-shortcut{color:#c8cfd9}
.clip-menu-separator{height:1px;background:#e5e8ed;margin:8px 0}

/* Canvas format menu and clip manipulation keep the accepted editor chrome. */
#popover[data-anchor="aspect-button"]{width:232px;padding:10px 12px;border:1px solid #e0e5eb;border-radius:9px;background:#fff;box-shadow:0 12px 35px #2222}
#popover[data-anchor="aspect-button"] button{display:flex;align-items:center;gap:13px;width:100%;min-height:48px;padding:9px 5px;color:#171b24;text-align:left;border-radius:5px}
#popover[data-anchor="aspect-button"] button:hover,#popover[data-anchor="aspect-button"] button:focus-visible{background:#f1f4f7;outline:2px solid #c9a853;outline-offset:-2px}
#popover[data-anchor="aspect-button"] hr{border:0;border-top:1px solid #e4e8ed;margin:8px 4px}
#popover .ratio-shape{display:block;width:18px;max-height:22px;flex-shrink:0;border:1.5px solid #b6c1cb;border-radius:3px;background:#f0f3f5}
#popover .ratio-shape.original{border-style:dashed}
#popover .ratio-copy{min-width:0;flex:1;line-height:1.4;font-size:13px;font-weight:500}
#popover .ratio-copy small{display:block;padding:2px 0 0;font-size:11px;color:#9aa9ba;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#popover[data-anchor="aspect-button"] svg{width:17px;height:17px;color:#00b9d0;flex-shrink:0}
#video-frame{flex:none;transition:none;overflow:visible}
#preview-canvas{object-fit:fill!important}
.canvas-selection{position:absolute;z-index:5;outline:1.5px solid #dbb958;touch-action:none;cursor:move;transform-origin:center;box-sizing:border-box}
.canvas-selection[hidden]{display:none}
.canvas-selection:focus-visible{outline:2px solid #e8c96c}
.canvas-handle{position:absolute;width:11px;height:11px;min-width:0;padding:0;background:#fff;border:1.5px solid #bd922c;border-radius:2px;box-shadow:0 1px 3px #0003;touch-action:none}
.canvas-handle.nw{left:-6px;top:-6px;cursor:nwse-resize}.canvas-handle.ne{right:-6px;top:-6px;cursor:nesw-resize}.canvas-handle.sw{left:-6px;bottom:-6px;cursor:nesw-resize}.canvas-handle.se{right:-6px;bottom:-6px;cursor:nwse-resize}
.canvas-editable{cursor:move;touch-action:none}.canvas-dragging,.canvas-dragging *{user-select:none}

/* Tracks stay in the document even while empty. All sound shares Audio rows. */
.timeline{overflow:clip}.track-headers{width:96px;overflow:hidden}
#track-header-rows{padding-bottom:8px}
.timeline-scroll{overflow-y:auto}.timeline-content{height:auto;min-height:100%}
.audio-header,.audio-track{height:52px}.audio-track{background-color:#f1f4f6}
.track-header{padding:0 23px 0 8px;gap:4px;font-size:10px}.track-header>span:first-child svg{width:13px;height:13px;color:#949ca5}
.add-track{position:absolute;right:4px;top:8px;width:19px;height:19px;padding:2px;border:0;border-radius:3px;background:transparent;color:#9aa1aa;display:grid;place-items:center}
.add-track svg{width:14px;height:14px}.add-track:hover{background:#e6e9ee;color:#586270}.add-track:focus-visible{outline:2px solid #c8a552;outline-offset:1px}
.track-toggle:disabled{opacity:.4;cursor:default}
@media(max-width:720px){.track-headers{width:82px}.track-header{font-size:9px;padding-left:6px;gap:3px}.track-header>span:first-child{display:none}.audio-header,.audio-track{height:44px}}

/* Extra-track removal and source-frame editing retain the existing chrome. */
.remove-track{position:absolute;right:4px;bottom:3px;width:19px;height:19px;padding:2px;color:#9aa1aa;border-radius:3px}
.remove-track svg{width:13px;height:13px}.remove-track:hover{background:#e6e9ee;color:#586270}.remove-track:focus-visible{outline:2px solid #c8a552}
.video-clip{background-repeat:repeat-x;background-size:auto 100%;background-position:left center}
.frame-grid{position:absolute;inset:0 -2px;pointer-events:none;overflow:hidden}.timeline-frame{position:absolute;top:0;bottom:0;border-left:1px solid #ffffffb3;background:#131b2426;font:10px ui-monospace,monospace;color:white;background-size:cover;background-position:center;text-shadow:0 1px 2px #000;overflow:hidden;white-space:nowrap}
.frame-position{font:11px ui-monospace,monospace;color:#707783;white-space:nowrap}.frame-detail .trim-handle{max-width:20%}
@media(max-width:1050px){.frame-position{display:none}}

.video-clip.frame-detail{background-image:none!important;background-color:#43545d}.timeline-frame>b{position:absolute;left:2px;bottom:3px;padding:1px 2px;border-radius:2px;background:#15212b9c;font:inherit}

/* Opt-in one-click frame isolation uses the existing gold selection language. */
.frame-selection-mode .video-clip.frame-detail .frame-grid{pointer-events:auto;cursor:crosshair}
.frame-selection-mode .video-clip.frame-detail .timeline-frame:hover{box-shadow:inset 0 0 0 2px #ffd65b;z-index:1}
.frame-selection-mode .video-clip.frame-detail .trim-handle{display:none}
.frame-selection-mode .video-clip.frame-detail>span{pointer-events:none}

/* Compact still-frame export matches the requested two-column menu. */
dialog.still-export-dialog{width:760px;max-width:calc(100vw - 32px);background:#fff;color:#333942;border:1px solid #e0e2e6;border-radius:9px;color-scheme:light}
.still-export-dialog .dialog-header{padding:13px 18px;border-bottom:1px solid #e3e5e8}
.still-export-dialog .dialog-header h2{font-size:14px;font-weight:500;letter-spacing:0}
.still-export-dialog .dialog-header button{color:#5a606b;width:24px;height:24px}
.still-export-dialog .dialog-body{padding:20px 18px 16px}
.still-export-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);gap:28px;align-items:start}
.frame-export-preview{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background:#f4f5f7;border:1px solid #e0e3e8;border-radius:6px;overflow:hidden}
.frame-export-preview img{display:block;width:100%;height:100%;max-height:240px;object-fit:contain}
.frame-export-preview img[hidden]{display:none}
.still-export-dialog #frame-export-summary{margin:8px 0 0;font-size:12px;color:#737a85;text-align:center;line-height:1.4}
.still-export-fields{display:grid;grid-template-columns:105px minmax(0,1fr);gap:12px 14px;align-items:center}
.still-export-dialog .still-export-fields label{font-size:13px;color:#666e7b;margin:0;line-height:1.4}
.still-export-dialog .still-export-fields input[type=text],.still-export-dialog .still-export-fields select{height:32px;min-width:0;padding:5px 9px;border:1px solid #e0e3e8;border-radius:4px;font-size:13px;color:#3c424d;background:#fafbfc}
.still-export-dialog #frame-export-name{background:#fafbfc}
.still-export-dialog input:focus-visible,.still-export-dialog select:focus-visible,.still-export-dialog button:focus-visible{outline:2px solid #c39025;outline-offset:2px}
.still-export-destination{display:flex;min-width:0;border-radius:4px;background:#fafbfc;overflow:hidden}
.still-export-dialog .still-export-destination input{flex:1;width:0;text-overflow:ellipsis}
.still-export-destination button{display:grid;place-items:center;width:32px;flex:none;color:#5a606b;background:#eeeff1;border:0;padding:6px;cursor:pointer}
.still-export-destination svg{width:20px;height:20px}
.still-export-switch{appearance:none;justify-self:end;position:relative;width:36px;height:20px;background:#c8cdd5;border:0;border-radius:20px;margin:3px 0;cursor:pointer;transition:background .15s}
.still-export-switch:checked{background:var(--gold)}
.still-export-switch:after{content:'';position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .15s}
.still-export-switch:checked:after{transform:translateX(16px)}
.still-export-dialog #frame-export-status{font-size:12px;line-height:1.5;min-height:18px;margin:14px 0 0;color:#737a85}
.still-export-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}
.still-export-dialog .still-export-actions button{margin:0;width:auto;min-width:82px;height:32px;padding:5px 16px;border-radius:5px;font-size:13px}
.still-export-dialog .still-export-actions .dark-button{background:#f4f5f7;color:#404652;border:1px solid #e0e3e8}
.still-export-dialog button:disabled,.still-export-dialog input:disabled,.still-export-dialog select:disabled{opacity:.55;cursor:default}
@media(max-width:640px){.still-export-layout{grid-template-columns:1fr;gap:18px}.still-export-fields{grid-template-columns:110px minmax(0,1fr)}.frame-export-preview{max-height:180px}.still-export-dialog{max-height:calc(100dvh - 24px);overflow:auto}}

/* Floating menus and dialogs share the light workspace; the sidebar stays dark. */
.popover,.clip-context-menu{color-scheme:light}
dialog .dark-button{background:#f4f5f7;color:#404652;border-color:#e0e3e8}
dialog .dark-button:hover:not(:disabled),.still-export-dialog .still-export-actions .dark-button:hover:not(:disabled),.still-export-destination button:hover:not(:disabled){background:#e9edf1;color:#23262d}
/* The sidebar now shares the existing light workspace theme. */
:root{background:#f5f6f8;color-scheme:light}
.brand,.tool-rail,.library,.panel-content{background:#fff;color:#23262d;border-color:#e5e7ea}
.studio-label,.rail-bottom,.library-footer{border-color:#e5e7ea;color:#687180}
.studio-label{color:#636c79}.rail-button{color:#687180}.rail-button:hover{background:#f0f2f5;color:#23262d}.rail-button.active{background:#fff1c5;color:#795718}
.panel-content{scrollbar-color:#cdd3dc transparent}.library-heading{border-bottom:1px solid #eef0f3;margin-bottom:16px}.library-footer{background:#fafbfc}.footer-count{color:#78818f}
.library .dark{color:#747c88}.library .dark:hover:not(:disabled){background:#edf0f3;color:#23262d}
.composer{background:#f4f6f8;border-color:#e1e5e9;box-shadow:none}.composer-title{color:#443c2a}.composer-title svg{color:#a97c22}.composer textarea,.media-search input,.ai-input{color:#343b47}.composer-option{color:#647083}
.media-tabs{border-color:#e5e7eb}.media-tab{color:#697487}.media-tab.active{color:#8c641b}.media-search{background:#f5f7f9;border-color:#e1e5e9}.filter-chip{color:#677385}.filter-chip.active{background:#fff1c5;color:#765419}.filter-chip:hover{background:#eef1f4}
.media-visual{background:#eef1f5;border-color:#e0e5eb}.media-title,.empty-media{color:#4c596c}.upload-card .media-visual{background:#f7f9fa;border-color:#c9d1db;color:#a37a28}.upload-card strong{color:#435064}.upload-card:hover .media-visual{background:#fff9e9;border-color:#c6a04e}.audio-art{background:linear-gradient(145deg,#eaf4f0,#d5e9e1);color:#458575}
.library .panel-intro,.library .panel-setting,.library .template-caption,.library .filter-preset{color:#667285}.library .preset-card{background:#f5f7f9;border-color:#e0e5ea;color:#637083}.library .preset-card strong{color:#28313f}.library .preset-card em{color:#98721e}.library .preset-card.active{background:#fffae9;border-color:#cda640}.library .preset-card:hover{border-color:#bd9440}
.library .notice-box{background:#f7f8fa;border-color:#e3e7ec;color:#687485}.library .notice-box strong{color:#8a681f}.library .color-swatches button{border-color:#fff;box-shadow:0 0 0 1px #cdd4de}.library .color-swatches button.active{box-shadow:0 0 0 2px #c49a39}
.audio-list-item{border-color:#e5e9ee}.audio-list-item strong{color:#344052}.audio-list-item .audio-icon{background:#e8f2ed;color:#548b73}.ai-welcome h2{color:#283443}.ai-welcome p{color:#718096}.suggestion,.ai-input{background:#f4f6f8;border-color:#dfe4e9;color:#59667b}.transcript-line{color:#566275;border-color:#e7ebef}.element-tile{background:#f5f7f9;border-color:#e0e5ea;color:#9c782e}
.caption-actions{display:flex;flex-direction:column;gap:14px}.caption-action{display:flex;flex-direction:column;gap:10px;width:100%;min-height:124px;white-space:normal;text-align:center;background:#f0f3f5;border:1px solid transparent;border-radius:12px;padding:20px 14px;color:#202c3b}.caption-action svg{width:22px;height:22px}.caption-action strong{font-size:14px;font-weight:700}.caption-action span{font-size:12px;line-height:1.5;color:#718099}.caption-action:hover{background:#e9eef2}.caption-action[aria-expanded=true]{border-color:#d8b554;background:#fff9e8}
.caption-options{padding:16px;border:1px solid #e4e8ed;border-radius:0 0 12px 12px;margin-top:-8px;background:#fff}.caption-options label{display:block;font-size:12px;color:#5b687b;margin:4px 0 8px}.caption-options select,.caption-options textarea,.caption-options input:not([type=checkbox]){width:100%;border:1px solid #dce2e8;background:#f7f9fa;border-radius:7px;padding:10px;font-size:13px;color:#344155}.caption-options p{font-size:12px;line-height:1.6;color:#738096;margin:12px 0}.caption-options .gold-button{width:100%;margin-top:8px}.caption-options .gold-button:disabled{opacity:.5}.caption-options textarea{resize:vertical;min-height:86px}.caption-styles-heading{margin:26px 0 14px;font-size:14px;font-weight:600;color:#334154}.caption-options .caption-row{display:flex;gap:10px}.caption-options .caption-row>*{min-width:0;flex:1}.caption-status{font-size:12px;line-height:1.6;color:#5b6a7e;margin-top:12px}.caption-progress{width:100%;accent-color:#c49735}.caption-cancel{font-size:12px;text-decoration:underline;padding:8px}.caption-edit-button{width:100%;margin:10px 0;padding:10px;border:1px solid #dce2e8;border-radius:8px;font-size:12px}.caption-edit-list{display:flex;flex-direction:column;gap:8px;max-height:220px;overflow:auto}.caption-edit-list button{text-align:left;justify-content:flex-start;white-space:normal;padding:9px;font-size:12px;border-radius:6px;background:#f4f6f8}.caption-edit-list time{font:10px monospace;color:#8a6d35}
.caption-dialog-text{width:100%;min-height:110px;resize:vertical;background:#fafbfc;border:1px solid #dce2e8;border-radius:7px;padding:10px;color:#344155;font:14px inherit}.dialog-body input[type=range]{width:100%;accent-color:#c49735}

.caption-status:empty{display:none}.caption-service-notice{padding:10px 12px;border:1px solid #ead7a9;border-radius:8px;background:#fff9eb;color:#765e29!important}.caption-options[aria-busy="true"] .caption-status{color:#8a681f}
/* Caption text editing keeps the existing light sidebar and gold selection. */
.caption-actions.compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;position:relative;margin-bottom:12px}.caption-actions.compact .caption-action-group{display:contents}.caption-actions.compact .caption-action{grid-row:1;min-height:43px;height:43px;padding:10px;border-radius:8px}.caption-actions.compact [data-caption-action=manual]{grid-column:1}.caption-actions.compact [data-caption-action=upload]{grid-column:2}.caption-actions.compact [data-caption-action=lyrics]{grid-column:3}.caption-actions.compact [data-caption-action=auto]{grid-column:4}.caption-actions.compact .caption-action svg{width:19px;height:19px}.caption-actions.compact .caption-action strong,.caption-actions.compact .caption-action span{display:none}.caption-actions.compact .caption-options{grid-column:1/-1;grid-row:2;position:relative;margin-top:0;border-radius:8px}

.caption-text-widget{margin-top:8px;border-top:1px solid #e7ebef;padding-top:15px}.caption-list-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 7px}.caption-list-heading h2{font-size:14px;margin:0;color:#283444}.caption-list-heading>span{font-size:11px;color:#8490a1}.caption-list-help{font-size:10px;line-height:1.55;color:#8893a2;margin:0 0 12px}.caption-cues{max-height:55vh;overflow:auto;scrollbar-width:thin;scrollbar-color:#d4dbe2 transparent;overscroll-behavior:contain;padding:2px 3px}.caption-cue{margin:0 0 9px;scroll-margin:5px}.caption-cue-card{border:1px solid transparent;border-radius:10px;padding:9px 9px 7px;position:relative;background:#fff}.caption-cue-card:hover{background:#f7f9fa}.caption-cue.selected .caption-cue-card{background:#fff7dc;border-color:#e8cd83}.caption-cue.at-playhead .caption-cue-card:before{content:'';position:absolute;left:0;top:12px;bottom:12px;width:2px;border-radius:2px;background:#c89e3c}.caption-cue-heading{display:flex;align-items:center;gap:3px}.caption-cue-time{font-variant-numeric:tabular-nums;font-size:9px;color:#8a96a6;white-space:nowrap;justify-content:flex-start;text-align:left;flex:1;padding:3px 0;min-width:0}.caption-cue.selected .caption-cue-time{color:#987122}.caption-cue-icon{width:23px;height:23px;flex-shrink:0;border-radius:4px;color:#677386}.caption-cue-icon svg{width:13px;height:13px}.caption-cue-icon:hover{background:#eadba9;color:#473613}.caption-cue-text{display:block;width:100%;min-height:36px;overflow:hidden;resize:none;border:0;border-radius:4px;background:transparent;color:#303b4b;font:12px/1.55 inherit;font-family:inherit;font-size:12px;line-height:1.55;padding:4px 0;outline:none;white-space:pre-wrap}.caption-cue-text:focus{box-shadow:0 1px 0 #c5a24c}.caption-cue-text[aria-invalid=true]{box-shadow:0 1px 0 #c95e4f}.caption-cue-tools{display:flex;gap:8px;margin:4px 8px 5px}.caption-cue-tools button{flex:1;gap:5px;padding:4px 7px;border:1px solid #e0d2aa;border-radius:7px;font-size:11px;color:#8c6c29;background:#fffdf6}.caption-cue-tools button svg{height:12px;width:12px}.caption-cue-tools button:disabled{color:#a3adb8;background:#fafbfc;border-color:#e3e8ed;cursor:not-allowed}.caption-cue-timing{display:block;font-size:10px;line-height:1.5;color:#907331;margin-top:5px}.caption-list-status{font-size:11px;line-height:1.5;color:#906120;margin:8px 0}.caption-list-status:empty{display:none}.caption-cue-tools[hidden],.caption-cue-timing[hidden],.caption-text-widget[hidden]{display:none}.caption-cue button:focus-visible{outline:2px solid #c69b35;outline-offset:1px}
/* Cue width depends only on time, even when its label cannot fit. */
.caption-clip{padding:0;border:0;box-shadow:inset 0 0 0 1px #d8ae4f}.caption-clip>svg{margin-left:7px}.caption-clip>span{padding-right:7px;min-width:0}

/* Caption editing starts with the text; generation stays available in one click. */
.quick-button[hidden],[data-caption-generation][hidden]{display:none}
.caption-text-view .caption-text-widget{border-top:0;margin-top:0;padding-top:0}.caption-text-view .caption-cues{max-height:none;overflow:visible}
.inspector[data-kind=Presets]{width:285px;max-width:calc(100% - 75px);max-height:calc(100% - 38px);overflow-y:auto;scrollbar-width:thin;color-scheme:light}
.inspector[data-kind=Presets] h2{margin-bottom:14px}.inspector .preset-scope-switch{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#465265;margin:12px 0 7px;font-size:12px}
.inspector .preset-scope-switch .switch{appearance:none;position:relative;flex:none;width:32px;height:18px;border-radius:12px;background:#cbd2db;cursor:pointer;margin:0}.inspector .preset-scope-switch .switch:checked{background:var(--gold)}.inspector .preset-scope-switch .switch:after{content:'';position:absolute;width:12px;height:12px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 2px #0002}.inspector .preset-scope-switch .switch:checked:after{transform:translateX(14px)}
.inspector [data-preset-scope]{margin:0 0 14px;color:#8290a2;font-size:10px;line-height:1.5}.inspector .preset-card{background:#f5f7f9;border-color:#e0e5ea;color:#637083;min-height:86px}.inspector .preset-card strong{color:#28313f;font-size:17px}.inspector .preset-card em{color:#98721e;font-size:19px}.inspector .preset-card.active{background:#fffae9;border-color:#cda640}.inspector .preset-card:hover{border-color:#bd9440}.inspector .color-swatches button{border-color:#fff;box-shadow:0 0 0 1px #cdd4de}.inspector .color-swatches button.active{box-shadow:0 0 0 2px #c49a39}.inspector[data-kind=Presets] h3{margin-top:15px}.inspector .caption-edit-button{color:#58677b;background:#fff}.inspector .caption-edit-button:disabled{opacity:.45;cursor:default}
.caption-action:focus-visible,.inspector[data-kind=Presets] button:focus-visible,.inspector[data-kind=Presets] input:focus-visible{outline:2px solid #c69b35;outline-offset:2px}
@media(max-width:950px){.inspector[data-kind=Presets]{right:56px;width:255px}}

/* Generation feedback stays visible while its settings are collapsed. */
.caption-generation-report{background:#f7f9fa;border:1px solid #e3e8ee;border-radius:8px;padding:11px 12px;margin:0 0 12px}.caption-generation-report .caption-status{margin:0}.caption-generation-report:has(.caption-status:empty),.caption-generation-report [hidden]{display:none}.caption-generation-report .caption-cancel{margin-top:5px;color:#84621e}
.caption-action-group>.caption-generation-reports{margin-top:10px}.caption-generation-report .caption-progress{display:block;height:5px;margin:10px 0 4px}.caption-generation-report .caption-progress[hidden]{display:none}
.caption-cue-speaker{display:block;color:#806326;font-size:10px;line-height:1.5;margin:2px 0}.caption-cue-speaker[hidden]{display:none}

/* OpenCut caption menu: header Import, one Language field, bottom action. */
.opencut-header-import,.opencut-import-fallback button{border:1px solid #dce1e7;border-radius:6px;background:#fff;color:#303b4b;font-size:13px;padding:6px 10px;gap:6px;margin-left:auto}
.opencut-header-import[hidden],.opencut-captions [hidden],.opencut-import-fallback[hidden]{display:none!important}
.opencut-import-fallback{display:flex;justify-content:flex-end;margin-bottom:16px}.opencut-import-fallback svg{width:15px;height:15px}
.opencut-captions{display:flex;flex-direction:column;min-height:100%;gap:12px}.opencut-generation{flex:1;display:flex;flex-direction:column;gap:16px;min-height:290px}
.opencut-language{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;align-items:center;padding-top:4px}.opencut-language label{font-size:14px;color:#5f6875}
.opencut-language select{width:100%;border:1px solid #dce1e7;border-radius:6px;padding:8px 28px 8px 10px;background:#fff;color:#273343;font:14px inherit;min-height:36px}
.opencut-generate{margin-top:auto;width:100%;padding:10px 12px;min-height:40px;border-radius:6px;background:#202b38;color:white;font-size:14px;font-weight:500}
.opencut-generate:disabled{opacity:.45;cursor:not-allowed}.opencut-feedback{padding:10px 12px;border:1px solid #e5d29b;background:#fff9e5;border-radius:6px;font-size:13px;line-height:1.5;color:#6b542a}
.opencut-feedback.error{background:#fdf0ef;color:#a13a32;border-color:#eccac7}.opencut-captions .caption-cancel{font-size:13px;color:#687484;align-self:center;padding:5px}
.caption-text-view .opencut-captions{min-height:auto;margin-bottom:12px}.panel-content:has(.opencut-captions):not(.caption-text-view){display:flex;flex-direction:column}
.panel-content:has(.opencut-captions):not(.caption-text-view)>.opencut-captions{flex:1}.opencut-captions button:focus-visible,.opencut-language select:focus-visible{outline:2px solid #bd9440;outline-offset:2px}
