.cte.cte{position:fixed;z-index:9000;display:grid;grid-template-rows:44px minmax(0,1fr) 42px minmax(140px,.72fr) 22px;gap:0;width:80vw;height:75vh;min-width:640px;min-height:460px;max-width:98vw;max-height:96vh;margin:0;padding:0;box-sizing:border-box;border:1px solid #ffffff25;border-radius:10px;background:#202226;color:#e7e9ed;overflow:hidden;resize:both;font:12px/1.5 system-ui,sans-serif;box-shadow:0 10px 45px #0009}
.cte.cte *{box-sizing:border-box}.cte.cte>header{display:flex;align-items:center;gap:10px;min-height:0;padding:0 14px;background:#2a2c31;border-bottom:1px solid #ffffff0d;cursor:move;touch-action:none}.cte.cte>header strong{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cte.cte>header small{margin-left:auto;white-space:nowrap;color:#8f979f;font-size:11px}.cte.cte button{font:inherit;color:inherit;background:#32353b;border:1px solid #ffffff16;border-radius:4px;padding:4px 8px;cursor:pointer;min-height:0;min-width:0}.cte.cte button:hover{background-color:#42464e}.cte.cte button:disabled{opacity:.45;cursor:wait}.cte.cte .cte-primary{background:#176b9e;border:0}
.cte.cte .cte-main{display:grid;grid-template-columns:190px minmax(0,1fr) 210px;min-width:0;min-height:0;overflow:hidden}.cte.cte .cte-library{padding:10px;min-height:0;overflow:auto;border-right:1px solid #ffffff0e}.cte.cte .cte-library-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.cte.cte .cte-library-header button{border:0;background:transparent;color:#58cee0}.cte.cte .cte-material-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cte.cte .cte-material{position:relative;text-align:left;padding:0;background:#181a1e;border:1px solid #ffffff0d;border-radius:5px;cursor:grab;min-width:0}.cte.cte .cte-material-thumb{height:56px;background-size:contain;background-position:center;background-repeat:no-repeat;display:grid;place-items:center;font-size:22px;color:#8fa6b4}.cte.cte .cte-material>span{display:block;font-size:10px;padding:3px 5px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.cte.cte .cte-material small{display:block;font-size:9px;color:#a5adb6;padding:0 5px 3px}.cte.cte .cte-material>button{position:absolute;right:3px;top:3px;padding:0 5px;background:#171a20b0;border:0}.cte.cte .cte-library p{color:#9ca5af;font-size:11px;line-height:1.7}
.cte.cte .cte-viewer{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;padding:10px;gap:2px;background:#202226}.cte.cte .cte-screen{position:relative;flex:1;min-height:0;min-width:0;overflow:hidden;background:transparent;display:flex;align-items:center;justify-content:center}.cte.cte .cte-frame{position:relative;flex:none;overflow:hidden;background:#000}.cte.cte .cte-frame>video,.cte.cte .cte-frame>img{position:absolute!important;inset:0;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;object-fit:contain;transform-origin:center;display:none;margin:0!important;padding:0!important;border:0!important}.cte.cte .cte-play-controls{flex:none;height:28px;display:flex;justify-content:center;align-items:center;gap:12px}.cte.cte .cte-play-controls button{background:transparent;border:0}.cte.cte .cte-play-controls output{font-size:11px;color:#aeb6bf;font-variant-numeric:tabular-nums}.cte.cte select{font:inherit;background:#24272c;color:#dce1e6;border:1px solid #ffffff16;border-radius:4px;padding:4px}.cte.cte .cte-properties{min-height:0;overflow:auto;border-left:1px solid #ffffff0e;padding:10px;background:#24262b}.cte.cte .cte-properties h3{font-size:12px;margin:0 0 10px;overflow-wrap:anywhere}.cte.cte .cte-properties label{display:block;margin:9px 0;color:#adb6c0;font-size:11px}.cte.cte .cte-properties input,.cte.cte .cte-properties textarea,.cte.cte .cte-properties select{display:block;width:100%;margin-top:4px;min-height:0;padding:4px 7px;font:inherit;color:#e8edf2;border:1px solid #ffffff0e;border-radius:4px;background:#181b20}.cte.cte .cte-properties textarea{height:68px;resize:vertical}.cte.cte .cte-properties input[type=color]{height:28px}.cte.cte .cte-properties p,.cte.cte .cte-properties small{font-size:10px;color:#87929e;line-height:1.6}
.cte.cte .cte-toolbar{display:flex;gap:3px;align-items:center;min-height:0;padding:5px 10px;border-top:1px solid #ffffff0b;border-bottom:1px solid #ffffff0b;overflow-x:auto;white-space:nowrap}.cte.cte .cte-toolbar button{flex:none;border:0;background:transparent;padding:4px 6px;font-size:11px}.cte.cte .cte-toolbar select{font-size:11px}.cte.cte .cte-zoom-label{margin-left:auto;color:#949ea9;font-size:10px}.cte.cte .cte-toolbar input[type=range]{width:75px;flex:none;accent-color:#56bdcc;height:16px;padding:0;background:transparent}
.cte.cte .cte-timeline{position:relative;overflow:auto;min-height:0;min-width:0;background:#17191d;overscroll-behavior:contain}.cte.cte .cte-grid{position:relative;min-height:100%;padding-bottom:14px}.cte.cte .cte-ruler{height:28px;position:relative;margin-left:108px;cursor:ew-resize;touch-action:none;background:repeating-linear-gradient(90deg,#ffffff09 0 1px,transparent 1px 20px)}.cte.cte .cte-ruler span{position:absolute;top:5px;color:#858e99;font-size:10px;pointer-events:none}.cte.cte .cte-track{display:flex;height:58px;border-top:1px solid #ffffff08}.cte.cte .cte-track-name{position:sticky;left:0;z-index:20;width:108px;flex:none;padding:12px 6px;display:flex;align-items:center;gap:4px;background:#26292e;color:#8d9aa6}.cte.cte .cte-track-name input{font:inherit;font-size:10px;width:63px;min-width:0;border:0;background:transparent;color:#acb6c0;padding:3px 0}.cte.cte .cte-track-name button{padding:0 2px;border:0;background:transparent;color:#747e87}.cte.cte .cte-lane{flex:1;position:relative;touch-action:none;cursor:crosshair;background:repeating-linear-gradient(90deg,#ffffff03 0 1px,transparent 1px 80px)}.cte.cte .cte-track.drop-target .cte-lane{background-color:#3aafbd19}
.cte.cte .cte-clip{position:absolute;top:6px;height:46px;padding:0;overflow:hidden;border:1px solid #5f9cac55;border-radius:3px;background-color:#31585e;background-repeat:repeat-x;background-size:auto 46px;color:#ecf6f6;touch-action:none;cursor:grab;user-select:none;white-space:nowrap}.cte.cte .cte-clip.audio{height:38px;top:10px;background:#29443d;border-color:#5d9e7355}.cte.cte .cte-clip.subtitles{height:32px;top:13px;background:#453f51;border-color:#9e85b255}.cte.cte .cte-clip-title{display:block;position:absolute;top:0;left:0;right:0;text-align:left;padding:1px 7px;font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#142027b0;pointer-events:none}.cte.cte .cte-clip.selected{outline:1px solid #d7f4f5;border-color:#d7f4f5}.cte.cte .cte-trim{position:absolute;top:0;bottom:0;width:7px;background:#ffffff18;cursor:ew-resize}.cte.cte .cte-trim.left{left:0}.cte.cte .cte-trim.right{right:0}.cte.cte .cte-playhead{position:absolute;top:0;bottom:0;width:15px;margin-left:-7px;z-index:30;cursor:ew-resize;touch-action:none;background:transparent}.cte.cte .cte-playhead:before{content:'';position:absolute;top:0;bottom:0;left:7px;width:1px;background:#eee}.cte.cte .cte-playhead>i{position:absolute;top:1px;left:2px;width:11px;height:14px;background:#e6e8ec;clip-path:polygon(0 0,100% 0,100% 65%,50% 100%,0 65%)}.cte.cte .cte-empty-tracks{margin:25px 120px;color:#7e8791}.cte.cte .cte-status{height:22px;min-height:0;padding:3px 10px;font-size:10px;color:#8d9aa7;border-top:1px solid #ffffff08;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cte.cte .cte-status.error{color:#edaba5}
.cte.cte .cte-captions{position:absolute;inset:0;z-index:100;pointer-events:none}.cte.cte .cte-captions span{position:absolute;left:50%;transform:translateX(-50%);white-space:pre-wrap;text-align:center;width:max-content;max-width:90%;background:#0005;padding:2px 5px;line-height:1.25}.cte.cte .cte-captions [data-position=bottom]{bottom:8%}.cte.cte .cte-captions [data-position=top]{top:8%}.cte.cte .cte-captions [data-position=middle]{top:50%;transform:translate(-50%,-50%)}
.cte.cte.collapsed{height:44px!important;min-height:44px;resize:none;grid-template-rows:44px}.cte.cte.collapsed>:not(header){display:none}.cte.cte.collapsed>header{border:0}@media(max-width:850px){.cte.cte{min-width:580px}.cte.cte .cte-main{grid-template-columns:150px minmax(0,1fr) 170px}.cte.cte>header small{display:none}}
/* Compact controls, stable playback position and frame-accurate ruler. */
.cte.cte .cte-play-controls{height:24px;position:relative;justify-content:flex-end;gap:6px;padding:0 3px}
.cte.cte .cte-play-controls>button:first-child{position:absolute;left:50%;transform:translateX(-50%);width:26px;padding:1px}
.cte.cte .cte-play-controls>button[aria-label="循环播放"]{position:absolute;left:calc(50% + 24px);padding:1px 4px}
.cte.cte .cte-play-controls button[aria-pressed=true]{color:#62cbd9}
.cte.cte .cte-play-controls output{margin-right:3px;font-size:10px}
.cte.cte .cte-play-controls select{font-size:10px;border:0;padding:1px;background:transparent}
.cte.cte .cte-viewer:fullscreen{background:#202226;padding:14px;display:flex;width:100vw;height:100vh}
.cte.cte .cte-xy{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cte.cte .cte-slider-field{display:grid;grid-template-columns:1fr auto;gap:4px}
.cte.cte .cte-slider-field input{grid-column:1/-1;border:0;padding:0;background:transparent;height:15px}
.cte.cte input[type=range]{appearance:none;background:transparent;border:0}
.cte.cte input[type=range]::-webkit-slider-runnable-track{height:2px;border-radius:2px;background:#58616b}
.cte.cte input[type=range]::-webkit-slider-thumb{appearance:none;height:8px;width:8px;border-radius:50%;background:#60c7d7;margin-top:-3px}
.cte.cte .cte-toolbar{overflow:visible;position:relative;gap:2px;padding:3px 8px}
.cte.cte .cte-toolbar select{max-width:83px;padding:3px;font-size:10px}
.cte.cte .cte-toolbar select,.cte.cte .cte-toolbar button{height:26px;min-height:0}
.cte.cte .cte-play-controls select{height:22px;min-height:0}
.cte.cte .cte-toolbar button{font-size:12px}
.cte.cte .cte-range-panel{position:absolute;right:85px;top:100%;z-index:80;background:#2a2e34;border:1px solid #ffffff20;padding:10px;box-shadow:0 6px 20px #0006}
.cte.cte .cte-range-panel[hidden]{display:none}
.cte.cte .cte-range-panel label{display:inline-grid;font-size:10px;margin:0 6px}
.cte.cte .cte-range-panel input{width:75px;color:#e8edf2;background:#181b20;border:1px solid #ffffff20;padding:4px}
.cte.cte .cte-ruler{position:sticky;top:0;z-index:25;background:#202226}
.cte.cte .cte-ruler>i{position:absolute;bottom:0;width:1px;pointer-events:none}
.cte.cte .cte-ruler>i.minor{height:4px;background:#ffffff12}
.cte.cte .cte-ruler>i.major{height:11px;width:1.5px;background:#a2adb55a}
.cte.cte .cte-ruler span{top:2px;margin-left:4px}
.cte.cte .cte-export-band{position:absolute;top:0;height:2px;background:#62cbd9;pointer-events:none}
.cte.cte .cte-playhead:before{top:14px;background:#e6e8ecbb;width:.75px}
.cte.cte .cte-playhead>i{top:0}
.cte.cte .cte-track-name{gap:2px}
.cte.cte .cte-track-name input{width:59px;padding:1px}
.cte.cte .cte-track-name button{font-size:11px;flex:none}
.cte.cte .disabled-track .cte-clip{opacity:.35}
.cte.cte .cte-clip:hover{background-size:auto 46px;transform:none}
.cte.cte .cte-context{position:absolute;z-index:100;background:#2b2e35;border:1px solid #ffffff20;border-radius:5px;padding:4px;min-width:125px;box-shadow:0 5px 20px #0006}
.cte.cte .cte-context button{display:block;width:100%;text-align:left;border:0;background:transparent;font-size:11px;padding:5px 8px}
.cte.cte .cte-material.is-selected{border-color:#62cbd9}
.cte.cte .cte-folders{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}
.cte.cte .cte-folders button{font-size:10px;padding:2px 5px;background:transparent;border:0}
.cte.cte .cte-folders button.active{background:#62cbd920;color:#62cbd9}
.cte.cte .cte-folders input{width:90px;background:#181b20;color:#eee;border:1px solid #62cbd9;font:inherit}
.cte.cte .cte-cloud-picker{position:absolute;inset:45px 12px 30px;z-index:85;background:#24272c;border:1px solid #ffffff20;border-radius:6px;display:flex;flex-direction:column;padding:12px;gap:8px}
.cte.cte .cte-cloud-picker>header{display:flex;align-items:center;gap:8px}
.cte.cte .cte-cloud-picker>header input{flex:1;min-width:0;background:#181b20;border:1px solid #ffffff20;color:#eee;padding:4px}
.cte.cte .cte-cloud-picker>div{overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px;flex:1}
.cte.cte .cte-cloud-picker>div button{height:60px;overflow:hidden;word-break:break-all;font-size:11px}

/* Material explorer and independently floating cloud chooser. */
.cte.cte{outline:none!important;border-color:#ffffff16}
.cte.cte.maximized{left:8px!important;top:8px!important;width:calc(100vw - 16px)!important;height:calc(100vh - 16px)!important;max-width:none;max-height:none;resize:none}
.cte.cte svg{display:block;width:18px;height:18px;flex:none;pointer-events:none}
.cte.cte>header>button:not(.cte-primary){display:grid;place-items:center;width:27px;height:27px;padding:4px;border:0;background:transparent}
.cte.cte .cte-viewer{position:relative;isolation:isolate;z-index:0}
.cte.cte .cte-library{position:relative;user-select:none}
.cte.cte .cte-library-header{gap:3px}
.cte.cte .cte-library-header strong{margin-right:auto}
.cte.cte .cte-library-header button{padding:3px 4px;font-size:11px}
.cte.cte .cte-breadcrumb{display:flex;align-items:center;gap:5px;margin:0 0 8px;font-size:10px;color:#939da8}
.cte.cte .cte-breadcrumb button{font-size:10px;padding:2px 4px;border:0;background:#ffffff05}
.cte.cte .cte-folder-card{cursor:default}
.cte.cte .cte-folder-card .cte-material-thumb svg{width:35px;height:35px;color:#b6bfca;stroke-width:1.2}
.cte.cte .cte-folder-card.drop-target{border-color:#62cbd9;background:#62cbd91c}
.cte.cte .cte-folder-card input{width:100%;font:inherit;color:#ddd;background:#17191d;border:1px solid #62cbd9}
.cte.cte .cte-marquee{position:absolute;z-index:60;pointer-events:none;border:1px solid #62cbd970;background:#62cbd91c}
.cte.cte .pending-thumb{background:linear-gradient(135deg,#303b43,#202329);color:#8fa6b4}
.cte.cte .cte-material-thumb{transition:background-image .2s}
.cte.cte .cte-toolbar button{font-size:16px;padding:3px 5px}
.cte.cte .cte-toolbar button[aria-label="新建序列"]{font-size:18px}
.cte.cte .cte-toolbar>button:not([aria-label]),.cte.cte .cte-toolbar button[aria-label="分割"],.cte.cte .cte-toolbar button[aria-label="移除画面间隙"]{font-size:13px}
.cte.cte .cte-zoom-label svg{width:18px;height:18px;color:#acb5bf}
.cte.cte input[type=range]::-webkit-slider-runnable-track{height:3px;background:linear-gradient(to right,#60c7d7 0 var(--range-fill,0%),#515963 var(--range-fill,0%) 100%)}
.cte.cte input[type=range]::-webkit-slider-thumb{height:11px;width:7px;border-radius:2px;background:#cedbe0;margin-top:-4px;border:1px solid #91a8b0}
.cte.cte .cte-slider-field{display:grid!important;grid-template-columns:1fr auto;gap:4px}
.cte.cte .cte-slider-field output{color:#e0e4e8;font-variant-numeric:tabular-nums}
.cte.cte .cte-axis-scales summary{font-size:10px;color:#949fab;cursor:pointer}
.cte.cte .cte-track-name input{display:block!important;height:21px!important;min-height:0!important;max-width:64px!important;box-shadow:none!important;border:0!important;border-radius:3px!important;background:transparent!important;font-size:10px!important}
.cte.cte .cte-track-name input:focus{background:#ffffff06!important}
.cte.cte .cte-track-name button{height:20px;width:18px;padding:2px;display:grid;place-items:center}
.cte.cte .cte-track-name svg{width:14px;height:14px;stroke-width:1.5}
.cte.cte .cte-captions span{background:transparent;padding:0;text-shadow:0 1px 2px #0008;width:90%}
.cte.cte-cloud-window{z-index:9100;display:flex;flex-direction:column;width:min(780px,85vw);height:min(540px,78vh);min-width:400px;min-height:280px;max-width:96vw;max-height:92vh;resize:both;background:#25282e;padding:0;gap:0}
.cte.cte-cloud-window>header{height:43px;flex:none;padding:0 10px;gap:8px}
.cte.cte-cloud-window>header strong{font-size:12px;flex:none}
.cte.cte-cloud-window>header input{flex:1;min-width:60px;background:#181b20;border:1px solid #ffffff15;border-radius:4px;color:#e3e6ea;padding:5px;font:inherit}
.cte.cte-cloud-window>header button{font-size:11px}
.cte.cte-cloud-window .cte-cloud-grid{flex:1;min-height:0;overflow:auto;padding:10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(126px,1fr));grid-auto-rows:118px;gap:8px;align-content:start}
.cte.cte-cloud-window .cte-cloud-grid button{display:flex;flex-direction:column;padding:0;overflow:hidden;border:1px solid #ffffff0b;background:#1a1d21;text-align:left;height:118px}
.cte.cte-cloud-window .cte-cloud-grid button>span{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;padding:3px 5px}
.cte.cte-cloud-window .cte-cloud-grid button>small{font-size:9px;color:#929ba5;padding:0 5px}
.cte.cte-cloud-window .cte-cloud-cover{height:78px;width:100%;display:grid;place-items:center;font-size:22px;overflow:hidden}
.cte.cte-cloud-window .cte-cloud-cover img{width:100%;height:100%;object-fit:contain;transition:filter .3s,opacity .3s}
.cte.cte-cloud-window .cte-cloud-cover img.arriving{filter:blur(6px);opacity:.6}
.cte.cte-cloud-window>footer{display:flex;align-items:center;gap:8px;padding:7px 10px;border-top:1px solid #ffffff0b}
.cte.cte-cloud-window>footer small{flex:1;color:#a1adb8;font-size:10px}
.cte.cte-cloud-window>footer button{font-size:11px}

/* Scoped sizing avoids workbench form styles clipping the cloud chooser. */
.cte.cte-cloud-window>header{height:50px;padding:8px 10px;overflow:visible;flex-wrap:nowrap}
.cte.cte-cloud-window>header input{height:32px!important;min-height:0!important;max-height:32px!important;margin:0!important;padding:5px 8px!important;line-height:20px;box-shadow:none}
.cte.cte-cloud-window>header>button:not(.cte-primary){flex:none;width:auto;min-width:42px;height:30px;padding:4px 8px;white-space:nowrap;word-break:keep-all}
.cte.cte-cloud-window>header>button:last-child{min-width:27px;width:27px;padding:4px}
.cte.cte-cloud-window .cte-cloud-cover{flex:none}
.cte.cte-cloud-window .cte-cloud-cover img{position:static!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;margin:0!important;object-fit:contain!important;object-position:center!important}
.cte.cte input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right,#748f99 0 var(--range-fill,0%),#48515b var(--range-fill,0%) 100%)}
.cte.cte input[type=range]::-webkit-slider-thumb{background:#a9b8c1;border-color:#7f939e}
.cte.cte .cte-slider-field input.cte-number{grid-column:2;width:55px;height:23px;margin:0;padding:2px 4px;background:#1c2025;border:1px solid #ffffff10;border-radius:3px;font-size:11px;text-align:right}
.cte.cte .cte-slider-field input[type=range]{grid-column:1/-1}
.cte.cte .cte-zoom-number{width:47px;height:23px;min-height:0;padding:2px 3px;background:#1c2025;color:#c1cbd3;border:1px solid #ffffff10;border-radius:3px;font:10px system-ui}
.cte.cte .cte-material>span:has(input){overflow:visible;padding:2px 4px}
.cte.cte .cte-material>span>input{display:block;width:100%;height:23px;min-height:0;padding:1px 3px;font:10px system-ui;background:#17191d;color:#ddd;border:1px solid #748f9970;border-radius:3px}
.cte.cte .cte-breadcrumb select{flex:1;min-width:0;width:0;padding:2px;font-size:10px}
.cte.cte .cte-folder-picker{position:absolute;z-index:110;left:12px;top:85px;padding:12px;background:#2b2e35;border:1px solid #ffffff20;border-radius:5px;box-shadow:0 5px 20px #0006}
.cte.cte .cte-folder-picker label{display:grid;gap:6px;margin-bottom:8px}
.cte.cte .cte-folder-picker select{max-width:240px}
.cte.cte .cte-folder-picker button{margin-right:6px}
.cte.cte .cte-context{max-height:min(320px,60vh);overflow:auto}
.cte.cte .cte-context button svg{display:inline-block;vertical-align:middle}
.cte.cte .cte-range-region{position:absolute;top:0;bottom:0;z-index:5;background:#8fb7c411;box-shadow:inset 1px 0 #8fb7c435,inset -1px 0 #8fb7c435;pointer-events:none}

.cte.cte .cte-breadcrumb select{height:24px!important;min-height:0!important;max-height:24px!important;margin:0!important;line-height:18px;padding:2px 4px!important}
.cte.cte .cte-material>span,.cte.cte .cte-material>span:has(input){height:21px;padding:3px 5px;line-height:15px}
.cte.cte .cte-material>span>input{height:15px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;line-height:15px;font:inherit}
.cte.cte .cte-frame{border:0!important;padding:0!important;margin:0!important;outline:0!important;box-shadow:none!important}
.cte.cte .cte-subtitle-font{display:flex;align-items:center;gap:6px}
.cte.cte .cte-subtitle-font label{flex:1;display:flex;align-items:center;gap:6px;margin:5px 0;white-space:nowrap}
.cte.cte .cte-subtitle-font input{width:58px;margin:0;height:25px}
.cte.cte .cte-subtitle-font button{height:25px;padding:2px 8px}
.cte.cte .cte-inline-field{display:flex!important;align-items:center;gap:8px;margin:5px 0!important;white-space:nowrap}
.cte.cte .cte-inline-field input[type=color]{flex:1;width:auto;height:25px;margin:0;padding:2px}
.cte.cte .cte-subtitle-position{display:flex;align-items:center;gap:6px}
.cte.cte .cte-subtitle-position label{flex:1;min-width:0}
.cte.cte .cte-subtitle-position select{width:auto;margin:0;padding:2px;height:25px;font-size:10px}
.cte.cte .cte-properties button[aria-pressed=true]{background:#ffffff12}
.cte.cte .cte-export-band{height:3px;background:#7896a440}
.cte.cte .cte-export-band.is-exporting{background:linear-gradient(to right,#81bdcb 0 var(--export-percent,0%),#7896a440 var(--export-percent,0%) 100%);transition:background .2s}
.cte.cte .cte-export-band.is-complete{background:#81bdcb}
.cte.cte>header .cte-primary{position:relative;overflow:hidden}
.cte.cte.exporting>header .cte-primary:after{content:'';position:absolute;left:0;bottom:0;width:var(--export-percent,0%);height:2px;background:#a9dde6;transition:width .35s ease}
.cte.cte.exporting .cte-track-name input{pointer-events:none}
.cte.cte.exporting .cte-main,.cte.cte.exporting .cte-toolbar,.cte.cte.exporting .cte-timeline{pointer-events:none}
.cte.cte.exporting>header .cte-primary[data-export-stage=preparing]:after{width:20%;animation:cte-export-wait 1.8s ease-in-out infinite}
@keyframes cte-export-wait{0%,100%{opacity:.25}50%{opacity:.9}}
@media(prefers-reduced-motion:reduce){.cte.cte.exporting>header .cte-primary:after{animation:none!important;transition:none}}

/* Separate fixed track headers from the horizontally scrollable lanes. */
.cte.cte .cte-timeline-shell{display:grid;grid-template-columns:108px minmax(0,1fr);grid-template-rows:28px minmax(0,1fr);min-height:0;min-width:0;overflow:hidden;background:#26292e}
.cte.cte .cte-ruler-corner{grid-column:1;grid-row:1;background:#202226;color:#88939e;font-size:10px;padding:5px 8px;border-bottom:1px solid #ffffff08;z-index:35}
.cte.cte .cte-ruler-viewport{grid-column:2;grid-row:1;overflow:hidden;min-width:0;background:#202226;z-index:35}
.cte.cte .cte-ruler{position:relative;top:auto;margin-left:0;height:28px;overflow:hidden}
.cte.cte .cte-track-headers{grid-column:1;grid-row:2;overflow:hidden;min-height:0;align-self:start;overscroll-behavior:contain;background:#26292e}
.cte.cte .cte-track-headers .cte-track-name{position:relative;left:auto;height:58px;min-height:58px;border-top:1px solid #ffffff08;z-index:0}
.cte.cte .cte-timeline{grid-column:2;grid-row:2;min-height:0;overflow:auto;isolation:isolate}
.cte.cte .cte-grid{padding-bottom:0;min-height:100%}
.cte.cte .cte-lane{min-width:0}
.cte.cte .cte-playhead:before{top:0}
.cte.cte .cte-ruler-head{position:absolute;top:0;width:15px;height:28px;margin-left:-7px;cursor:ew-resize;touch-action:none;z-index:30}
.cte.cte .cte-ruler-head i{position:absolute;left:2px;top:0;width:11px;height:14px;background:#d4dce2;clip-path:polygon(0 0,100% 0,100% 65%,50% 100%,0 65%)}
.cte.cte .cte-timeline.is-panning,.cte.cte .cte-timeline.is-panning *{cursor:grabbing!important}
.cte.cte .cte-toolbar button.cte-zoom-label{margin-left:auto;padding:3px 5px}
.cte.cte.exporting .cte-timeline-shell{pointer-events:none}
.cte.cte .cte-folder-picker{width:182px;padding:10px;border-radius:7px;background:#282d34;border-color:#ffffff15;font-size:11px}
.cte.cte .cte-folder-picker label{font-size:11px;color:#c3ccd5;gap:7px;margin-bottom:9px}
.cte.cte .cte-folder-picker select{width:100%;height:28px!important;min-height:0!important;margin:0!important;padding:3px 6px!important;font-size:11px;background:#1c2026;border-color:#ffffff15}
.cte.cte .cte-folder-picker button{font-size:11px;height:25px;min-height:0;padding:2px 10px;border-color:#ffffff12}
.cte.cte .cte-folder-picker button:first-of-type{background:#345366}
.cte.cte .cte-folder-picker select:focus{outline:none!important;box-shadow:none!important;border-color:#7898ab80!important}
.cte.cte .cte-waveform{position:absolute!important;bottom:0!important;left:0!important;width:100%!important;height:14px!important;max-width:none!important;margin:0!important;padding:0!important;background:#132c30b8;pointer-events:none;z-index:1}
.cte.cte .cte-clip.audio .cte-waveform{height:22px!important;background:#12251e80}
.cte.cte .cte-clip.video.has-waveform{background-size:auto 32px;background-position:left top;background-color:#183237}
.cte.cte .cte-clip.video.has-waveform:hover{background-size:auto 32px}
.cte.cte .cte-clip-title{z-index:2}
.cte.cte .cte-track-name button[data-icon=speaker] svg{stroke-width:1.5}
.cte.cte .cte-track-name button[data-icon=text] svg{stroke-width:1.8}
.cte.cte .cte-ruler-corner{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:text}
.cte.cte .cte-ruler-corner input{width:100%;height:18px;min-height:0!important;margin:0!important;padding:0!important;background:transparent;border:0;border-radius:0;color:inherit;font:inherit}
.cte.cte .cte-toolbar{position:relative;overflow:visible}
.cte.cte .cte-sequence-picker{position:absolute;z-index:90;bottom:100%;left:8px;width:285px;max-height:310px;overflow:auto;display:grid;gap:9px;padding:12px;background:#282d34;border:1px solid #ffffff15;border-radius:7px;box-shadow:0 5px 20px #0006;font-size:11px}
.cte.cte .cte-sequence-picker>small{color:#a2adb7;line-height:1.5}
.cte.cte .cte-sequence-picker label{display:flex;align-items:center;gap:8px;margin:0;padding:6px 0}
.cte.cte .cte-sequence-picker label input{width:13px!important;height:13px!important;min-height:0!important;margin:0!important;accent-color:#7898ab}
.cte.cte .cte-sequence-picker label span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cte.cte .cte-sequence-actions{display:flex;gap:7px}
.cte.cte .cte-play-controls output{white-space:nowrap;flex:none}
.cte.cte .cte-play-controls.is-compact output{display:none}
.cte.cte .cte-play-controls.is-narrow{justify-content:center;gap:5px}
.cte.cte .cte-play-controls.is-narrow>button:first-child,.cte.cte .cte-play-controls.is-narrow>button[aria-label="循环播放"]{position:static;transform:none;flex:none}
.cte.cte .cte-toolbar>button[aria-label="将序列加入当前时间线"]{display:grid;place-items:center;padding:3px 5px;line-height:1}
.cte.cte .cte-toolbar>button[aria-label="将序列加入当前时间线"] svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor}
.cte.cte .cte-sequence-picker{position:absolute;bottom:auto;width:min(260px,calc(100% - 16px));max-height:290px;padding:11px;white-space:normal;font:11px/1.5 system-ui,sans-serif;overflow-x:hidden;overflow-y:auto;background:linear-gradient(135deg,#2b3037,#252a30);border-color:#ffffff14;border-radius:8px;gap:8px}
.cte.cte .cte-sequence-picker>strong{font-size:12px;line-height:1.5;font-weight:550}
.cte.cte .cte-sequence-picker>small{display:block;white-space:normal;font-size:10px;line-height:1.5}
.cte.cte .cte-sequence-picker .cte-sequence-list{min-width:0;max-height:160px;overflow:auto}
.cte.cte .cte-sequence-picker label{font-size:11px;line-height:18px;padding:5px 1px}
.cte.cte .cte-sequence-picker label small{font-size:10px;color:#8ba5b1;min-width:12px;text-align:right}
.cte.cte .cte-sequence-actions{justify-content:flex-end;gap:6px;padding-top:6px;border-top:1px solid #ffffff0a}
.cte.cte .cte-sequence-actions button{height:25px;padding:2px 9px;font:11px/19px system-ui,sans-serif;border:0;background:#ffffff06;border-radius:4px}
.cte.cte .cte-sequence-actions button:first-child{background:#365365;color:#deebf2}
.cte.cte .cte-lane,.cte.cte .cte-timeline,.cte.cte .cte-ruler{cursor:default}
.cte.cte .cte-timeline-marquee{position:absolute;z-index:60;pointer-events:none;background:#83b4c418;border:1px solid #83b4c470;border-radius:2px}
.cte.cte .cte-view-settings{display:flex;flex:none;justify-content:flex-end;align-items:center;gap:10px;min-height:24px;padding:0 3px;font-size:10px}
.cte.cte .cte-view-settings label{display:flex;align-items:center;gap:5px;white-space:nowrap}
.cte.cte .cte-view-settings select{height:22px;min-height:0;padding:1px 4px;font-size:10px}
.cte.cte>header>strong:first-child{flex:0 1 auto;max-width:32%;min-width:0;font-weight:600}
.cte.cte>header>small:last-of-type{margin-left:auto;flex:none}
.cte.cte>header .cte-menu-bar{display:flex;align-items:center;gap:2px;flex:none;min-width:0}
.cte.cte>header .cte-menu-bar>button{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:42px;height:27px;padding:3px 9px;border:0;background:transparent;color:inherit;border-radius:4px;white-space:nowrap;font-size:12px;line-height:21px}
.cte.cte>header .cte-menu-bar>button:hover{background:var(--studio-button-hover,#ffffff0c)}
.cte.cte .cte-limits-panel{max-height:calc(100% - 60px);overflow:auto;font-size:11px;line-height:1.65;padding:12px}
.cte.cte .cte-limits-panel p{margin:8px 0}
.cte.cte .cte-context{max-width:calc(100% - 16px);max-height:calc(100% - 60px);overflow:auto}
.cte.cte>header .cte-view-settings{height:27px;min-height:0;padding:0 6px;gap:10px;font-size:11px}
.cte.cte>header .cte-view-settings label{gap:5px;flex:none}
.cte.cte>header .cte-view-settings select{height:26px;min-height:0;margin:0;padding:2px 5px;width:auto;font-size:11px;line-height:20px;border:1px solid #8883;border-radius:4px;background:transparent;color:inherit}
.cte.cte .cte-limits-panel{width:250px;gap:10px}
.cte.cte .cte-limits-panel>label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;font-size:11px}
.cte.cte .cte-limits-panel>small{font-size:10px;opacity:.65}
.cte.cte .cte-help-panel{width:380px;max-width:calc(100% - 16px);max-height:calc(100% - 60px);overflow:auto;padding:14px;gap:10px;font-size:11px;line-height:1.65}
.cte.cte .cte-help-row{display:grid;grid-template-columns:62px minmax(0,1fr);gap:10px}
.cte.cte .cte-help-row>strong{font-size:11px;font-weight:500;opacity:.7}
.cte.cte .cte-help-row>p{margin:0;font-size:11px}
.cte.cte>header .cte-menu-bar button{height:27px;min-width:40px;width:auto;padding:3px 8px;font:12px/21px system-ui,sans-serif;background:transparent!important;border:0!important;border-radius:3px;box-shadow:none!important;color:inherit;white-space:nowrap}
.cte.cte>header .cte-menu-bar button:hover,.cte.cte>header .cte-menu-bar button:focus-visible{background:#8882!important;outline:none}
.cte.cte>header .cte-view-settings{padding:0;gap:2px}
.cte.cte>header .cte-menu-bar{gap:0}
.cte.cte .cte-menu-state{display:none!important}
.cte.cte .cte-limits-panel .cte-menu-choice-trigger{min-width:85px;font-size:11px;background:transparent;border:1px solid #8883;padding:4px 8px;text-align:left}
.cte.cte .cte-context{padding:4px;border-radius:5px;border-color:#8884;background:#25272b;box-shadow:0 5px 18px #0004}
.cte.cte .cte-context button{font-size:11px;line-height:20px;padding:3px 10px;border-radius:3px;box-shadow:none}
.cte.cte .cte-context button:hover,.cte.cte .cte-context button:focus-visible{background:#8882;outline:none}
.cte.cte .cte-context .cte-menu-choice:before{content:'';display:inline-block;width:18px;color:inherit}
.cte.cte .cte-context .cte-menu-choice[aria-checked=true]:before{content:'✓'}
[data-theme=light] .cte.cte .cte-context{background:#fafbfc;border-color:#26313b26;color:#26313b;box-shadow:0 5px 18px #16243520}
html:root body :is(#ccTimelineEditor,.cte).cte.cte>header .cte-menu-bar button,
html:root body :is(#ccTimelineEditor,.cte).cte.cte>header .cte-menu-bar button:is(:hover,:focus-visible){background:transparent!important;background-color:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
html:root body :is(#ccTimelineEditor,.cte).cte.cte>header .cte-menu-bar button:hover{text-decoration:underline;text-underline-offset:4px}
html:root body :is(#ccTimelineEditor,.cte).cte.cte>header .cte-menu-bar button:focus-visible{outline:1px dotted currentColor;outline-offset:-2px}
.cte.cte>header{gap:8px}.cte.cte>header strong{flex:1;min-width:0}.cte.cte>header small{margin-left:0}.cte.cte>header button{flex:none;white-space:nowrap}
.cte.cte .cte-source-details{display:block;width:min(300px,calc(100% - 24px));max-height:calc(100% - 60px);overflow:auto;padding:12px;border-radius:6px;font:11px/1.4 system-ui,sans-serif}
.cte.cte .cte-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;border-bottom:1px solid #8883}
.cte.cte .cte-detail-heading>strong{font-size:12px;font-weight:550}
.cte.cte .cte-detail-heading>button{display:grid;place-items:center;flex:none;width:22px;height:22px;padding:0;font:18px/1 system-ui;background:transparent!important;border:0!important;box-shadow:none!important;opacity:.65}
.cte.cte .cte-detail-heading>button:hover{opacity:1}
.cte.cte .cte-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;padding-top:10px}
.cte.cte .cte-detail-row{display:grid;gap:2px;min-width:0;margin:0}
.cte.cte .cte-detail-row:first-child{grid-column:1/-1;padding-bottom:7px;border-bottom:1px solid #8882}
.cte.cte .cte-detail-row>span:first-child{font-size:10px;opacity:.6}
.cte.cte .cte-detail-row>span:last-child{min-width:0;overflow-wrap:anywhere;text-align:left;font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}
.cte.cte>.cte-transfer-progress{position:absolute;inset:auto 0 0;width:100%;height:3px;margin:0;padding:0;z-index:120;background:#6699df16;overflow:hidden;pointer-events:none}
.cte.cte>.cte-transfer-progress[hidden]{display:none!important}
.cte.cte>.cte-transfer-progress.is-indeterminate i{width:24%;animation:cte-transfer-pending 1.3s ease-in-out infinite;transition:none}
@keyframes cte-transfer-pending{from{transform:translateX(-100%)}to{transform:translateX(420%)}}
.cte.cte>.cte-transfer-progress i{display:block;width:var(--transfer-progress,0%);height:100%;background:linear-gradient(90deg,#4387ff55,#6bafff,#a7d8ff);box-shadow:0 0 7px #6bafff88;transition:width .2s linear}
@media(prefers-reduced-motion:reduce){.cte.cte>.cte-transfer-progress i{transition:none}}
@media(prefers-reduced-motion:reduce){.cte.cte>.cte-transfer-progress.is-indeterminate i{animation:none;width:24%;opacity:.8}}
