.te-toolbar{display:flex;gap:8px;padding:10px;border-bottom:1px solid #303949;align-items:center;flex-wrap:wrap}.te-toolbar button{padding:5px 10px;background:#202a39;border:1px solid #354154;border-radius:6px}.te-work{display:grid;grid-template-columns:minmax(120px,20%) minmax(0,1fr) minmax(130px,22%);min-height:230px;flex:1;overflow:hidden}.te-library,.te-props{padding:12px;overflow:auto;font-size:12px;border-right:1px solid #303949}.te-library button{display:block;width:100%;text-align:left;padding:6px;margin-bottom:4px}.te-stage{position:relative;background:#000;aspect-ratio:16/9;max-height:100%;margin:auto;overflow:hidden;width:100%}.te-stage img,.te-stage video,.te-stage iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border:0}.te-stage p{position:absolute;bottom:7%;width:90%;left:5%;text-align:center;white-space:pre-wrap;text-shadow:1px 2px 3px #000;color:white;font-size:22px}.te-props label{display:block;margin:10px 0}.te-props input{width:100%;background:#1c2634;padding:5px}.te-timeline{height:320px;overflow:auto;border-top:1px solid #303949;flex-shrink:0}.te-row{height:52px;display:flex;border-bottom:1px solid #303949}.te-label{width:160px;flex-shrink:0;padding:6px;position:sticky;left:0;z-index:3;background:#17202c;font-size:11px}.te-lane{position:relative;flex-shrink:0}.te-clip{position:absolute;top:6px;height:38px;overflow:hidden;background:#154f58;border:1px solid #2e8391;color:#c8edf3;white-space:nowrap;text-overflow:ellipsis;text-align:left;font-size:10px;border-radius:5px;padding:4px}.te-trim{position:absolute;top:0;bottom:0;width:8px;cursor:ew-resize;background:#ffffff25;z-index:4;touch-action:none}.te-trim.left{left:0}.te-trim.right{right:0}.te-clip.sel{outline:2px solid #a593ff}.te-ruler{height:25px;background:#18202c;position:relative;margin-left:160px}.te-ruler span{position:absolute;font-size:10px;color:#96a3b5}.te-cursor{position:absolute;top:0;bottom:0;width:1px;background:#f2646a;pointer-events:none}.te-muted{opacity:.4}
/* Horizonte workspace: compact controls and independently scrolling panels. */
#editing-view-editor{--te-line:#283242;--te-muted:#8f9db1;--te-surface:#141b25;font:12px/1.4 Arial,sans-serif}#editing-view-editor *{box-sizing:border-box}#editing-view-editor button{font:inherit;cursor:pointer}#editing-view-editor button:focus-visible,#editing-view-editor input:focus-visible,#editing-view-editor select:focus-visible,#editing-view-editor textarea:focus-visible{outline:2px solid #8c7cff;outline-offset:2px}#editing-view-editor button:hover{background:#2c384b}#editing-view-editor button:disabled{opacity:.4;cursor:default}.te-toolbar{gap:4px;padding:5px 8px;min-height:36px;background:#141b25;flex-shrink:0}.te-toolbar button{padding:4px 7px;font-size:11px;border-radius:4px;line-height:18px}.te-toolbar [data-status]{margin-left:auto;color:#91a1b6;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}.te-work{grid-template-columns:180px minmax(0,1fr) 218px;min-height:150px}.te-library,.te-props{padding:8px;font-size:11px;scrollbar-width:thin;scrollbar-color:#35435a transparent;background:#141b25}.te-library{border-right:1px solid var(--te-line)}.te-library strong{display:block;text-transform:uppercase;font-size:10px;letter-spacing:.8px;color:#92a1b7;margin:3px 0 10px}.te-library button{padding:6px;border:1px solid #293446;background:#192331;color:#bdc9d9;border-radius:4px;font-size:10px}.te-props{border-right:0;border-left:1px solid var(--te-line)}.te-props>strong{display:block;overflow-wrap:anywhere;border-bottom:1px solid var(--te-line);padding:4px 0 9px}.te-props label{margin:7px 0;color:#93a4ba;font-size:10px}.te-props input,.te-props textarea,.te-props select{font:11px Arial,sans-serif;color:#e0e6ef;background:#1b2534;border:1px solid #303d50;border-radius:4px;width:100%;padding:5px;margin-top:3px}.te-props textarea{min-height:60px;resize:vertical;line-height:1.5}.te-props input[type=color]{height:28px;padding:2px}.te-props-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}.te-props h4{margin:14px 0 8px;color:#d8e0ed;font-size:11px}.te-empty{display:flex;flex-direction:column;gap:12px;padding:6px;color:var(--te-muted)}.te-empty b{color:#d7e1ef}.te-player{display:flex;flex-direction:column;min-width:0;min-height:0;background:#090d13}.te-preview-scroll{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:12px;background:radial-gradient(ellipse at center,#1e2633,#0a0e15 78%)}.te-stage{flex-shrink:0;max-width:100%;width:min(100%,960px);max-height:100%;transform-origin:center;box-shadow:0 6px 24px #0008}.te-player-controls{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;min-height:38px;padding:5px 8px;border-top:1px solid #232c39;background:#141b25;flex-shrink:0}.te-player-controls button,.te-player-controls select,.te-timeline-heading button{border:1px solid #303c4f;border-radius:4px;background:#1c2737;color:#d2dfef;padding:4px 7px;font-size:11px}.te-player-controls label{display:flex;align-items:center;gap:4px;color:#92a2b8;font-size:11px}.te-player-controls input{width:58px;accent-color:#8574f8;height:13px}.te-player-controls output{font-size:11px;font-variant-numeric:tabular-nums;min-width:90px;text-align:center;color:#dbe6f6}.te-timeline-divider{height:6px;cursor:ns-resize;flex-shrink:0;background:#283244;touch-action:none;position:relative}.te-timeline-divider:after{content:'';display:block;margin:2px auto;width:36px;height:2px;background:#73829a;border-radius:2px}.te-timeline-heading{display:flex;align-items:center;gap:8px;padding:4px 8px;background:#141b25;min-height:30px;flex-shrink:0;border-bottom:1px solid #2b3545}.te-timeline-heading strong{font-size:11px;margin-right:auto}.te-timeline-heading small{font-weight:400;color:#889ab2;font-size:10px;margin-left:6px}.te-timeline-heading label{display:flex;align-items:center;gap:6px;font-size:10px;color:#91a0b4}.te-timeline-heading input{width:100px;accent-color:#8574f8;height:13px}.te-timeline{height:260px;scrollbar-width:thin;scrollbar-color:#3c4a62 #10151e}.te-row{height:44px}.te-label{width:150px;padding:3px 7px;font-size:10px;line-height:17px;border-right:1px solid #303b50}.te-label button{font-size:9px!important;padding:0 4px;border:0;background:transparent;color:#93a5bd}.te-ruler{margin-left:150px;position:sticky;top:0;z-index:2;height:24px;border-bottom:1px solid #334055;background:#17202d}.te-ruler span{font:10px Arial,sans-serif;border-left:1px solid #4b5870;height:24px;padding:4px}.te-clip{height:32px;top:5px;padding:3px 10px;font-size:10px!important}.te-cursor{z-index:2;background:#fc6b7d}.editing-header{min-height:52px!important;padding:6px 10px!important;gap:8px!important;flex-wrap:wrap!important}.editing-header-left{flex:1!important;min-width:180px!important}.editing-header-title-box{min-width:0!important}.editing-title{font-size:13px!important}.editing-subtitle{font-size:10px!important;max-width:320px!important}.editing-header-icon{width:25px!important;height:25px!important;font-size:14px!important}.editing-header-right{gap:5px!important;flex-wrap:wrap}.editing-header-right button,.editing-tab-btn{padding:5px 8px!important;font-size:11px!important;white-space:nowrap!important}.editing-status-pill{font-size:10px!important;padding:4px 7px!important}.editing-header-tabs{flex-shrink:0}.editing-header-right #btn-top-editor-export{background:#6655e8;border-color:#8677ff;color:white}.editing-header-right #btn-editing-feedback{display:none}@media(max-width:1150px){.te-work{grid-template-columns:140px minmax(0,1fr) 190px}.editing-header-left{max-width:240px}.te-toolbar [data-status]{max-width:120px}.te-player-controls{gap:4px}.te-player-controls label input{width:42px}}@media(max-width:800px){.te-work{grid-template-columns:112px minmax(0,1fr) 170px}.te-toolbar [data-status]{display:none}.te-player-controls{justify-content:flex-start}.te-preview-scroll{padding:5px}.editing-status-pill{display:none!important}.editing-header-left{min-width:130px!important;max-width:190px}.te-timeline{height:220px}.te-player-controls output{min-width:75px}}@media(max-width:560px){.te-work{grid-template-columns:minmax(0,1fr) 150px}.te-library{display:none}.te-toolbar button{font-size:10px;padding:3px 5px}.te-timeline-heading label{font-size:0}.te-timeline-heading input{width:70px}.te-player-controls input{width:36px}.editing-header-right{width:100%}}
/* Reference editor skin: neutral panels, fine separators, amber active tabs. */
#editing-view-editor{--te-line:#303030;--te-muted:#858585;--te-surface:#1b1b1b;background:#181818!important;color:#bdbdbd!important;font-family:Arial,sans-serif}.te-toolbar{background:#1b1b1b;border-color:#303030;min-height:32px;padding:4px 8px;gap:3px}.te-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:transparent;border:1px solid transparent;border-radius:3px;color:#a8a8a8;font-size:10px;min-height:25px}.te-toolbar button[data-te=save] span,.te-toolbar button[data-te=undo] span,.te-toolbar button[data-te=redo] span,.te-toolbar button[data-te=cut] span,.te-toolbar button[data-te=delete] span,.te-toolbar button[data-te=up] span,.te-toolbar button[data-te=down] span,.te-toolbar button[data-te=duplicate] span{display:none}.te-toolbar button[data-te=save],.te-toolbar button[data-te=undo],.te-toolbar button[data-te=redo],.te-toolbar button[data-te=cut],.te-toolbar button[data-te=delete],.te-toolbar button[data-te=up],.te-toolbar button[data-te=down],.te-toolbar button[data-te=duplicate]{width:30px;padding:3px}.te-toolbar [data-status]{color:#747474;font-size:9px}.te-work{grid-template-columns:220px minmax(0,1fr) 240px}.te-library{padding:0;display:flex;flex-direction:column;background:#1b1b1b;border-color:#303030;overflow:hidden}.te-library-tabs{display:flex;flex-shrink:0;border-bottom:1px solid #303030;min-height:35px}.te-library .te-library-tabs button{display:block;width:auto;flex:1;white-space:nowrap;text-align:center;font-size:10px;color:#858585;background:transparent;border:0;border-radius:0;margin:0;padding:8px 3px;border-bottom:2px solid transparent}.te-library .te-library-tabs button[aria-selected=true]{color:#f5a524;border-bottom-color:#ff9d00}.te-library-title{display:flex;justify-content:space-between;color:#919191;font-size:10px;letter-spacing:.2px;padding:10px;border-bottom:1px solid #2c2c2c;flex-shrink:0}.te-library-title span{color:#686868}.te-media-filters{display:flex;gap:3px;padding:6px;border-bottom:1px solid #303030;flex-shrink:0}.te-library .te-media-filters button{width:auto;flex:1;border:0;background:transparent;color:#777;font-size:10px;margin:0;padding:4px;border-radius:3px;text-align:center}.te-library .te-media-filters button[aria-pressed=true]{color:#d6d6d6;background:#2c2c2c}.te-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:7px;overflow:auto;align-content:start;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#434343 transparent}.te-media-card{position:relative;display:block;min-width:0;overflow:hidden;background:#222;border:1px solid #303030;border-radius:4px;transition:border-color .12s}.te-library .te-media-card button.te-media-preview{display:block;border:0;border-radius:0;padding:0;margin:0;background:#111;width:100%;text-align:center}.te-media-card img,.te-media-placeholder{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#121212}.te-media-placeholder{display:flex;align-items:center;justify-content:center;font-size:23px;color:#727272;position:relative}.te-media-placeholder small{position:absolute;right:4px;bottom:3px;font-size:9px;color:#c1c1c1}.te-media-card>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:20px;padding:0 5px;color:#b5b5b5}.te-library .te-media-card button.te-media-add{position:absolute;right:4px;top:4px;width:20px;height:20px;margin:0;padding:0;background:#171717d9;color:#e3e3e3;border:1px solid #666;border-radius:3px;text-align:center;opacity:0;transition:opacity .12s}.te-media-card:hover,.te-media-card:focus-within{border-color:#b58a43}.te-media-card:hover .te-media-add,.te-media-card:focus-within .te-media-add{opacity:1}.te-library .te-add-empty{grid-column:1/-1;background:transparent;border:1px dashed #393939;color:#999;text-align:center;padding:10px;margin:0;font-size:10px}.te-panel-note{grid-column:1/-1;font-size:11px;color:#858585;line-height:1.6;margin:5px}.te-effect-list{display:block}.te-effect-row{padding:10px;border:1px solid #333;margin-bottom:7px;border-radius:4px;color:#b8b8b8;font-size:11px}.te-effect-row small{display:block;color:#777;overflow-wrap:anywhere;margin-top:4px}.te-preview-scroll{background:#101010;padding:12px}.te-stage{box-shadow:none;background:#000}.te-player,.te-player-controls{background:#111}.te-player-controls{background:#1b1b1b;border-color:#303030;justify-content:flex-start;gap:8px;min-height:40px}.te-player-controls button{display:flex;align-items:center;background:transparent;border-color:transparent;color:#a0a0a0;padding:3px 5px}.te-player-controls button span{display:none}.te-player-controls svg{width:14px;height:14px}.te-player-controls output{background:#222;border:1px solid #2e2e2e;border-radius:3px;padding:4px 12px;min-width:125px;margin-right:auto;font-family:monospace;letter-spacing:1px;color:#bbb}.te-player-controls select{background:#222;border-color:#363636;color:#aaa;padding:2px 4px;font-size:10px}.te-player-controls input,.te-timeline-heading input{accent-color:#a0a0a0}.te-player-controls label{color:#888}.te-props{background:#1b1b1b;border-color:#303030;padding:0 10px 10px}.te-inspector-heading{position:sticky;top:0;background:#1b1b1b;color:#ef9d21;border-bottom:2px solid #fa9b00;margin:0 -10px 10px;padding:11px 14px;font-size:10px;z-index:2}.te-props>strong{border-color:#333;color:#c2c2c2;font-size:10px;padding:4px 0 10px}.te-props label{color:#8e8e8e}.te-props input,.te-props textarea,.te-props select{background:#242424;border-color:#383838;color:#c7c7c7}.te-empty{align-items:center;text-align:center;justify-content:center;min-height:230px;padding:25px 12px;gap:12px;color:#686868;font-size:10px}.te-empty b{font-size:11px;font-weight:400;color:#777}.te-empty-icon{font-size:32px;color:#585858;margin-bottom:12px}.te-timeline-divider{background:#282828;height:4px}.te-timeline-divider:after{background:#555}.te-timeline-heading{background:#1b1b1b;border-color:#303030;color:#919191}.te-timeline-heading strong{font-weight:400;font-size:10px}.te-timeline-heading label,.te-timeline-heading small{color:#777}.te-timeline-heading button{background:transparent;border-color:#343434;color:#969696;font-size:10px;padding:2px 6px}.te-timeline{background:#171717;border-color:#333;scrollbar-color:#484848 #181818}.te-row{border-color:#292929;height:50px}.te-label{background:#1b1b1b;border-color:#303030;color:#bdbdbd;font-size:10px;padding:6px 7px;border-left:3px solid #438ded;line-height:17px}.te-label small{font-size:8px;letter-spacing:.5px;color:#686868}.te-label[data-type=audio]{border-left-color:#47a985}.te-label[data-type=legenda]{border-left-color:#aa6bd0}.te-label button{color:#8c8c8c!important}.te-ruler{background:#1d1d1d;border-color:#3b3b3b;height:25px}.te-ruler span{color:#818181;border-color:#454545;font-family:monospace;font-size:9px}.te-cursor{background:#ff9d00}.te-clip{top:6px;height:36px;border-color:#677776;color:#d2d2d2;filter:saturate(.55);font-size:9px!important}.te-clip.sel{outline-color:#ffab32}.te-trim{background:#ffffff18}#editing-view-editor button:hover{background-color:#303030;color:#e8b566}#editing-view-editor button:focus-visible,#editing-view-editor input:focus-visible,#editing-view-editor select:focus-visible,#editing-view-editor textarea:focus-visible{outline-color:#e6a53f}.editing-header{background:#1b1b1b!important;border-color:#333!important}.editing-header-right #btn-top-editor-export{background:#292929!important;border-color:#414141!important;color:#d1d1d1!important}.editing-tab-btn.active{background:#383025!important;color:#f4b64f!important;border-color:#a77932!important}.editing-header-right button{color:#aaa!important}.editing-title{color:#d1d1d1!important}.editing-status-pill{background:#252724!important;color:#929b91!important;border-color:#383d37!important}@media(max-width:1200px){.te-work{grid-template-columns:190px minmax(0,1fr) 205px}.te-toolbar{gap:1px}.te-toolbar button{font-size:9px}.te-toolbar [data-status]{display:none}}@media(max-width:900px){.te-work{grid-template-columns:165px minmax(0,1fr) 180px}.te-player-controls{gap:3px}.te-player-controls output{min-width:95px;padding:3px 5px}.te-library .te-library-tabs button{font-size:9px}.te-library-grid{gap:5px;padding:5px}}@media(max-width:650px){.te-work{grid-template-columns:135px minmax(0,1fr) 155px}.te-player-controls{flex-wrap:wrap}.te-player-controls output{margin-right:0}.te-library .te-library-tabs button{font-size:8px;padding:9px 1px}.te-media-filters{gap:0;padding:4px}.te-library .te-media-filters button{font-size:8px}}@media(max-width:560px){.te-work{grid-template-columns:minmax(0,1fr) 150px}.te-library{display:none}}
.te-focus{position:fixed!important;inset:0!important;z-index:1000!important;width:100vw!important;height:100vh!important}.te-toolbar button[data-te=focus]{margin-left:auto}.te-toolbar button[data-te=focus] span{display:none}.te-toolbar button[data-te=focus][aria-pressed=true]{color:#ffa629;background:#32291f}.te-focus .te-work{grid-template-columns:250px minmax(0,1fr) 265px}.te-focus .te-timeline{height:28vh}.te-focus .te-toolbar [data-status]{display:inline;color:#777}.te-focus .te-preview-scroll{padding:16px}.te-focus .te-library-grid{gap:7px;padding:7px}
.te-library-grid{grid-auto-rows:max-content}.te-media-card{min-height:82px;height:auto!important;align-self:start}.te-media-card img{height:auto;min-height:48px}.te-media-card>span{position:relative;background:#222}.te-library .te-media-card button.te-media-preview{min-height:48px}
.te-preview-layer{position:absolute;inset:0;transform-origin:center;touch-action:none;cursor:move}.te-preview-layer>img,.te-preview-layer>video{pointer-events:none}.te-preview-layer>iframe{width:1920px!important;height:1080px!important;max-width:none;transform-origin:top left;border:0}.te-preview-layer.is-selected{outline:1px solid #f5a431;outline-offset:-1px;z-index:auto}.te-preview-layer.is-selected:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(#ffb84a,#ffb84a) left top/5px 5px no-repeat,linear-gradient(#ffb84a,#ffb84a) right top/5px 5px no-repeat,linear-gradient(#ffb84a,#ffb84a) left bottom/5px 5px no-repeat,linear-gradient(#ffb84a,#ffb84a) right bottom/5px 5px no-repeat}.te-text-layer{inset:auto 5% 7%;width:90%;height:auto;min-height:14px}.te-text-layer p{position:relative!important;inset:auto!important;width:100%!important;margin:0;white-space:pre-wrap;pointer-events:none;user-select:none}.te-inline-editor{position:absolute;z-index:100;left:8%;top:28%;width:84%;min-height:90px;max-height:70%;resize:vertical;background:#161616f5;border:2px solid #efa43b;border-radius:4px;color:#fff;font:18px/1.4 Arial;padding:12px;box-shadow:0 4px 30px #000a}.te-model-thumb{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;min-height:48px;background:radial-gradient(#303030,#111)}.te-model-thumb iframe{position:absolute;top:0;left:0;width:1920px;height:1080px;border:0;transform-origin:top left;pointer-events:none}.te-effect-list h4{font-size:9px;color:#777;text-transform:uppercase;letter-spacing:.6px;margin:14px 0 7px}.te-library .te-effect-card{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:calc(50% - 4px);min-height:66px;margin:0 4px 5px 0;gap:8px;background:#242424;color:#ddd;border:1px solid #373737;font-size:20px}.te-effect-card span{font-size:10px;color:#999}.te-keyframe{border:1px solid #343434;border-radius:4px;margin:7px 0;padding:7px;background:#202020}.te-keyframe summary{font-size:10px;color:#ccc;cursor:pointer}.te-props .te-keyframe button,.te-props [data-te=keyframe],.te-props [data-format-node]{background:#2a2a2a;border:1px solid #414141;border-radius:3px;color:#bcbcbc;font-size:10px;padding:4px 6px;margin-top:4px}.te-props input[type=checkbox]{width:auto;vertical-align:middle;margin-right:5px}
.te-track-name{display:flex;align-items:center;gap:3px;overflow:hidden;white-space:nowrap;min-height:16px}.te-track-name>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;flex:1}.te-track-name>small{font-size:9px;color:#686868}.te-track-grip{display:inline-flex;cursor:grab;flex-shrink:0;color:#6d6d6d}.te-track-grip svg{width:9px;height:12px}.te-track-controls{display:flex;align-items:center;gap:1px;min-height:23px}.te-track-controls>small{font-size:7px;width:35px;flex-shrink:0;letter-spacing:.4px}.te-label .te-track-controls button{display:inline-flex;align-items:center;justify-content:center;width:18px;height:21px;padding:2px!important;border:1px solid transparent!important;background:transparent!important;border-radius:3px;flex-shrink:0}.te-track-controls button svg{width:12px;height:12px}.te-label .te-track-controls button:hover{background:#34302a!important;color:#eab363!important}.te-label .te-track-controls button[aria-pressed=true]{color:#f4b64f!important;background:#392d1f!important;border-color:#66502e!important}.te-label .te-track-controls button:disabled{opacity:.2!important}.te-track-selected>.te-label{border-left-color:#ffac38;background:#2b251d}.te-track-selected>.te-label .te-track-name{color:#ffd08a}.te-row.te-track-drop{box-shadow:inset 0 2px #f6a83b}.te-label[draggable=true]{cursor:grab}.te-label[draggable=false]{cursor:default}.te-layer-order{display:flex;align-items:center;gap:5px;color:#999;font-size:10px;max-width:270px}.te-layer-order select{background:#252525;color:#c0c0c0;border:1px solid #3b3b3b;border-radius:3px;font-size:10px;max-width:180px;padding:3px}.te-layer-order select:disabled{opacity:.5}.te-library .te-effect-card svg{width:25px;height:25px;color:#c9a866;transition:transform .12s,color .12s}.te-library .te-effect-card:hover svg{color:#ffc66c;transform:scale(1.12)}.te-library .te-effect-card[data-add-effect^=pan] svg{color:#8baed9}.te-library .te-effect-card[data-add-effect=shake] svg,.te-library .te-effect-card[data-add-effect=pulse] svg,.te-library .te-effect-card[data-add-effect=bounce] svg{color:#c994b5}.te-library .te-effect-card[data-add-effect=colorShift] svg{color:#9bcca5}.te-keyframe summary svg{display:inline-block;vertical-align:middle;margin-right:5px;width:13px;height:13px;color:#d7aa64}@media(max-width:900px){.te-layer-order{max-width:180px}.te-layer-order select{max-width:130px}}@media(max-width:650px){.te-layer-order{font-size:0;max-width:140px}.te-layer-order select{max-width:130px}}

/* ==========================================================================
   CAPCUT KARAOKE SUBTITLES & DYNAMIC PRESETS
   ========================================================================== */
.te-caption-wrap {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center;
}
.te-caption-wrap.te-pos-bottom { bottom: 10%; top: auto; }
.te-caption-wrap.te-pos-center { top: 50%; transform: translateY(-50%); bottom: auto; }
.te-caption-wrap.te-pos-top { top: 12%; bottom: auto; }

.te-karaoke-box {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.28em 0.48em;
  padding: 12px 32px;
  line-height: 1.25;
  text-align: center;
  user-select: none;
  max-width: 92%;
  margin: 0 auto;
  box-sizing: border-box;
  background: rgba(8, 12, 20, 0.72) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
}

.te-karaoke-word {
  display: inline-block;
  transition: transform 0.16s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.14s ease, opacity 0.14s ease, filter 0.14s ease, text-shadow 0.14s ease;
  will-change: transform, color, opacity;
  transform-origin: center bottom;
  paint-order: stroke fill !important;
  -webkit-text-stroke: 4px #000000;
  stroke: #000000;
  stroke-width: 4px;
  stroke-linejoin: round;
  color: var(--word-base-color, #FFFFFF);
  font-weight: 900 !important;
  text-shadow: 0 3px 0 #000, 0 5px 14px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.9);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.95));
}

/* Past words: fully legible */
.te-karaoke-word.is-past {
  opacity: 1;
  transform: scale(1);
  color: var(--word-base-color, #FFFFFF);
}

/* Future words: bright and fully readable anticipation */
.te-karaoke-word.is-future {
  opacity: 0.88;
  transform: scale(0.98);
  color: var(--word-base-color, #FFFFFF);
}

/* Active word: CapCut viral pop & intense highlight glow */
.te-karaoke-word.is-active {
  opacity: 1 !important;
  color: var(--te-hl, #FFE600) !important;
  transform: scale(1.22) translateY(-4px) !important;
  paint-order: stroke fill !important;
  filter: drop-shadow(0 0 16px var(--te-hl, #FFE600)) drop-shadow(0 5px 12px #000000) !important;
  text-shadow: 0 0 25px var(--te-hl, #FFE600), 0 5px 14px #000000, 0 2px 4px #000000 !important;
  z-index: 10;
  position: relative;
}

/* 1. CapCut Viral (Hormozi Yellow) */
.te-preset-capcut-viral {
  font-family: 'Montserrat', 'Impact', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

/* 2. Cyberpunk Neon */
.te-preset-cyberpunk-neon {
  font-family: 'Orbitron', 'Rajdhani', monospace, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #E0F7FA;
  -webkit-text-stroke: 2px #040814;
  text-shadow: 0 0 10px #00f0ff, 0 0 20px rgba(0,240,255,0.6);
}
.te-preset-cyberpunk-neon .te-karaoke-word.is-active {
  color: var(--te-hl, #00F0FF) !important;
  transform: scale(1.2) translateY(-2px);
  text-shadow: 0 0 14px var(--te-hl, #00F0FF), 0 0 30px var(--te-hl, #00F0FF), 0 2px 4px #000;
}

/* 3. Dark Lux (Reddit / Ouro) */
.te-preset-dark-lux {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: #F8FAFC;
  background: rgba(12, 15, 22, 0.78);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 8px 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.8), 0 0 18px rgba(245, 158, 11, 0.15);
}
.te-preset-dark-lux .te-karaoke-word.is-active {
  color: var(--te-hl, #F59E0B) !important;
  transform: scale(1.14);
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.75);
}

/* 4. Minimalist Clean */
.te-preset-minimal-clean {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  color: #F1F5F9;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 6px 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.te-preset-minimal-clean .te-karaoke-word.is-active {
  color: var(--te-hl, #34D399) !important;
  transform: scale(1.12);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* 5. Red Drama (Tensão & Clímax) */
.te-preset-red-drama {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: #FFFFFF;
  -webkit-text-stroke: 3px #000000;
  text-shadow: 0 3px 10px #000, 0 0 22px rgba(255, 51, 75, 0.75);
}
.te-preset-red-drama .te-karaoke-word.is-active {
  color: var(--te-hl, #FF334B) !important;
  transform: scale(1.24) rotate(-1deg);
  text-shadow: 0 4px 16px #000, 0 0 28px rgba(255, 51, 75, 0.95);
}

/* 6. Sticker Box (Adesivo) */
.te-preset-sticker-box {
  background: #FFE600;
  border: 3.5px solid #000000;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #000000;
  color: #000000;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  padding: 6px 16px;
}
.te-preset-sticker-box .te-karaoke-word.is-past {
  color: #000000;
}
.te-preset-sticker-box .te-karaoke-word.is-future {
  opacity: 0.6;
  color: #222222;
}
.te-preset-sticker-box .te-karaoke-word.is-active {
  background: #000000;
  color: #FFE600 !important;
  padding: 2px 8px;
  border-radius: 4px;
  transform: scale(1.14);
}

/* Animation Styles */
.te-anim-wave .te-karaoke-word.is-active {
  transform: translateY(-4px) scale(1.12);
}
.te-anim-glow .te-karaoke-word.is-active {
  filter: drop-shadow(0 0 12px var(--te-hl, #FFE600));
  transform: scale(1.16);
}
.te-anim-bounce .te-karaoke-word.is-active {
  animation: teCapCutBounce 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes teCapCutBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.25) translateY(-5px); }
  100% { transform: scale(1.18) translateY(-2px); }
}

/* ==========================================================================
   ELEMENTOS NARRATIVOS NATIVOS EM MOMENTOS MARCANTES (.story-moment-badge)
   ========================================================================== */
.te-element-native-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 85;
  display: block;
}

.te-element-native-layer .story-moment-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 14px;
  background: rgba(12, 16, 24, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #FFFFFF;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  pointer-events: auto;
  user-select: none;
  z-index: 90;
  bottom: auto !important;
  animation: teBadgePop 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes teBadgePop {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 1. Reddit Viral Badge */
.te-element-native-layer .story-moment-badge.reddit-badge {
  top: 5%;
  right: 4%;
  border: 1.5px solid rgba(255, 69, 0, 0.7);
  background: rgba(15, 18, 28, 0.94);
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.3), 0 12px 36px rgba(0, 0, 0, 0.85);
}
.te-element-native-layer .story-moment-badge.reddit-badge .badge-icon { font-size: 24px; color: #FF4500; }
.te-element-native-layer .story-moment-badge.reddit-badge .badge-meta { font-size: 11px; font-weight: 700; color: #FF4500; text-transform: uppercase; letter-spacing: 0.8px; }
.te-element-native-layer .story-moment-badge.reddit-badge .badge-title { font-size: 14px; font-weight: 800; color: #FFFFFF; margin-top: 2px; }

/* 2. Alert Humiliation Badge */
.te-element-native-layer .story-moment-badge.alert-badge {
  top: 5%;
  right: 4%;
  border: 1.5px solid rgba(239, 68, 68, 0.75);
  background: rgba(26, 10, 14, 0.94);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35), 0 12px 36px rgba(0, 0, 0, 0.85);
}
.te-element-native-layer .story-moment-badge.alert-badge .badge-icon { font-size: 24px; color: #EF4444; }
.te-element-native-layer .story-moment-badge.alert-badge .badge-meta { font-size: 11px; font-weight: 700; color: #F87171; text-transform: uppercase; letter-spacing: 0.8px; }
.te-element-native-layer .story-moment-badge.alert-badge .badge-title { font-size: 13px; font-weight: 800; color: #FFFFFF; font-style: italic; }

/* 3. Corporate Summons & Boardroom Badge */
.te-element-native-layer .story-moment-badge.corporate-badge {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  border: 1.5px solid rgba(56, 189, 248, 0.75);
  background: rgba(10, 18, 34, 0.95);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3), 0 12px 36px rgba(0, 0, 0, 0.85);
}
.te-element-native-layer .story-moment-badge.corporate-badge .badge-icon { font-size: 24px; color: #38BDF8; }
.te-element-native-layer .story-moment-badge.corporate-badge .badge-meta { font-size: 11px; font-weight: 700; color: #38BDF8; letter-spacing: 1px; text-transform: uppercase; }
.te-element-native-layer .story-moment-badge.corporate-badge .badge-title { font-size: 14px; font-weight: 800; color: #FFFFFF; }

/* 4. Reveal Twist Badge */
.te-element-native-layer .story-moment-badge.reveal-badge {
  top: 5%;
  right: 4%;
  border: 1.5px solid #F59E0B;
  background: linear-gradient(135deg, rgba(26, 20, 10, 0.96), rgba(42, 30, 12, 0.94));
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.5), 0 16px 40px rgba(0, 0, 0, 0.9);
}
.te-element-native-layer .story-moment-badge.reveal-badge .badge-icon { font-size: 26px; color: #FBBF24; }
.te-element-native-layer .story-moment-badge.reveal-badge .badge-meta { font-size: 11px; font-weight: 800; color: #FBBF24; letter-spacing: 1px; text-transform: uppercase; }
.te-element-native-layer .story-moment-badge.reveal-badge .badge-title { font-size: 14px; font-weight: 900; color: #FFFFFF; }

/* 5. Termination Stamp */
.te-element-native-layer .story-moment-badge.stamp-badge {
  top: 40%;
  left: 6%;
  transform: translateY(-50%) rotate(-5deg);
  border: 3.5px solid #DC2626;
  background: rgba(185, 28, 28, 0.28);
  backdrop-filter: blur(10px);
  padding: 14px 28px;
  border-radius: 10px;
  color: #EF4444;
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.4);
  animation: teStampImpact 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}
@keyframes teStampImpact {
  from { opacity: 0; transform: translateY(-50%) scale(1.3) rotate(8deg); }
  to { opacity: 1; transform: translateY(-50%) scale(1) rotate(-5deg); }
}
.te-element-native-layer .story-moment-badge.stamp-badge .stamp-title { font-size: 18px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: #EF4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
.te-element-native-layer .story-moment-badge.stamp-badge .stamp-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: #FCA5A5; margin-top: 3px; }

/* 6. Reddit Gold Moral Badge */
.te-element-native-layer .story-moment-badge.reddit-gold-badge {
  top: 5%;
  right: 4%;
  bottom: auto !important;
  border: 1.5px solid #F59E0B;
  background: rgba(16, 14, 24, 0.95);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.4), 0 14px 36px rgba(0, 0, 0, 0.85);
}
.te-element-native-layer .story-moment-badge.reddit-gold-badge .badge-icon { font-size: 24px; color: #F59E0B; }
.te-element-native-layer .story-moment-badge.reddit-gold-badge .badge-meta { font-size: 11px; font-weight: 800; color: #FBBF24; text-transform: uppercase; letter-spacing: 0.8px; }
.te-element-native-layer .story-moment-badge.reddit-gold-badge .badge-title { font-size: 13px; font-weight: 800; color: #FFFFFF; font-style: italic; }

/* ==========================================================================
   MODAL DE GERAÇÃO DE LEGENDAS (ESTILOS CAPCUT)
   ========================================================================== */
.te-caption-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.te-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.te-modal-card {
  position: relative;
  background: #181d26;
  border: 1px solid #334155;
  border-radius: 12px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  color: #e2e8f0;
  overflow: hidden;
  z-index: 1;
}
.te-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #283344;
  background: #151922;
}
.te-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.te-modal-icon {
  font-size: 24px;
}
.te-modal-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}
.te-modal-title p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #94a3b8;
}
.te-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.12s;
}
.te-modal-close:hover {
  background: #242c3d;
  color: #ffffff;
}
.te-modal-body {
  padding: 18px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b485d transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.te-modal-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.te-caption-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.te-preset-card {
  padding: 10px;
  background: #1c2432;
  border: 2px solid #2e3a4e;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.14s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.te-preset-card:hover {
  border-color: #f5a431;
  background: #232d3e;
}
.te-preset-card.is-selected {
  border-color: #f5a431;
  background: #29241c;
  box-shadow: 0 0 14px rgba(245, 164, 49, 0.28);
}
.te-preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.te-preset-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #121822;
  color: #94a3b8;
  letter-spacing: 0.3px;
}
.te-preset-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #475569;
  position: relative;
  display: inline-block;
}
.te-preset-card.is-selected .te-preset-radio {
  border-color: #f5a431;
  background: #f5a431;
}
.te-preset-preview {
  aspect-ratio: 16/9;
  background: #090c12;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  padding: 4px 6px;
  overflow: hidden;
  line-height: 1.2;
}
.te-preset-info strong {
  display: block;
  font-size: 11px;
  color: #f1f5f9;
}
.te-preset-info small {
  display: block;
  font-size: 9px;
  color: #8898aa;
  margin-top: 2px;
  line-height: 1.3;
}
.te-modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.te-modal-field label {
  display: block;
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 4px;
}
.te-field-hint {
  display: block;
  font-size: 9px;
  color: #8898aa;
  margin-top: 4px;
  line-height: 1.4;
}
.te-btn-group {
  display: flex;
  gap: 4px;
}
.te-btn-group button {
  flex: 1;
  padding: 7px 4px;
  background: #1c2432;
  border: 1px solid #334155;
  border-radius: 5px;
  color: #cbd5e1;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.12s;
  text-align: center;
}
.te-btn-group button:hover {
  background: #273346;
  border-color: #475569;
}
.te-btn-group button.active {
  background: #2f2518;
  border-color: #f5a431;
  color: #ffc25f;
  font-weight: 700;
}
.te-color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.te-color-picker-row input[type=color] {
  width: 42px;
  height: 32px;
  padding: 2px;
  border: 1px solid #334155;
  border-radius: 5px;
  background: #1c2432;
  cursor: pointer;
}
.te-color-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.te-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #334155;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s, border-color 0.12s;
}
.te-swatch:hover {
  transform: scale(1.15);
  border-color: #ffffff;
}
.te-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #283344;
  background: #151922;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.te-modal-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s;
}
.te-modal-btn.primary {
  background: linear-gradient(135deg, #f5a431, #df830c);
  color: #0b0f14;
  border: none;
}
.te-modal-btn.primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 14px rgba(245, 164, 49, 0.4);
}
.te-modal-btn.secondary {
  background: #202837;
  color: #cbd5e1;
  border: 1px solid #334155;
}
.te-modal-btn.secondary:hover {
  background: #2a3548;
  color: #ffffff;
}

/* Inspector Apply All button */
.te-btn-apply-all {
  display: block;
  width: 100%;
  padding: 7px 10px;
  margin-top: 10px;
  background: #2a241b !important;
  border: 1px solid #f5a431 !important;
  color: #f7b44d !important;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-size: 10px;
  transition: all 0.14s;
}
.te-btn-apply-all:hover {
  background: #392d1c !important;
  color: #ffd084 !important;
  box-shadow: 0 0 10px rgba(245, 164, 49, 0.3);
}

@media(max-width: 760px) {
  .te-caption-presets-grid { grid-template-columns: repeat(2, 1fr); }
  .te-modal-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Batch Layer Selection & Inspector Styles
   ========================================================= */
.te-clip.te-batch-selected {
  outline: 2px solid #f59e0b !important;
  outline-offset: -1px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45) !important;
}
.te-batch-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #283344;
}
.te-batch-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.te-batch-title h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}
.te-batch-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #2a241b;
  border: 1px solid #f59e0b;
  color: #fbbf24;
  white-space: nowrap;
}
.te-batch-section {
  background: #18202d;
  border: 1px solid #283548;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
}
.te-batch-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.te-number-quick-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.te-number-quick-row input[type=number] {
  flex: 1;
  padding: 5px 8px;
  background: #0f1520;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #f8fafc;
  font-weight: 700;
  font-size: 12px;
}
.te-chip {
  padding: 4px 7px;
  background: #1e2838;
  border: 1px solid #384860;
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
}
.te-chip:hover {
  background: #28374d;
  border-color: #f59e0b;
  color: #fbbf24;
}
.te-btn-batch-apply {
  padding: 5px 10px;
  background: #2a241b;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
}
.te-btn-batch-apply:hover {
  background: #3a2e1d;
  filter: brightness(1.1);
}
.te-batch-vis-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #131924;
  border: 1px solid #283548;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 11px;
  color: #cbd5e1;
}
.te-batch-vis-card label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}
.te-btn-select-layer-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  margin-top: 12px;
  background: linear-gradient(135deg, #242c3d, #1c2432) !important;
  border: 1px solid #3b4d66 !important;
  color: #f8fafc !important;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.14s;
}
.te-btn-select-layer-all:hover {
  background: #2c384d !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

/* MP4 export: scoped modal, independent of editor layout. */
.hd-export-modal{position:fixed;inset:0;background:#000a;z-index:100000;display:grid;place-items:center;padding:20px;color:#e5e8ed;font:13px/1.5 Arial,sans-serif}.hd-export-modal section{width:min(640px,100%);max-height:90vh;overflow:auto;background:#171d26;border:1px solid #36404e;border-radius:14px;padding:22px;box-shadow:0 24px 100px #000b}.hd-export-modal header,.hd-export-modal footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.hd-export-modal h2{font-size:18px;margin:0}.hd-export-modal button,.hd-export-modal a{border:1px solid #3a4655;border-radius:7px;padding:9px 14px;background:#26313e;color:#eaf1f6;text-decoration:none;cursor:pointer}.hd-export-modal button:disabled{opacity:.5;cursor:wait}.hd-export-modal [data-export-start],.hd-export-modal [data-export-download]{background:#0ca77e;border-color:#0ca77e;color:#fff}.hd-export-modal .hd-btn-open-folder{background:#2563eb;border-color:#3b82f6;color:#fff;font-weight:600}.hd-export-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.hd-export-grid label{display:grid;gap:6px}.hd-export-modal select{width:100%;background:#0e141b;color:#edf1f5;border:1px solid #36404e;border-radius:6px;padding:10px}.hd-export-note,.hd-export-modal [data-export-detail]{color:#98a7b8;font-size:12px}.hd-export-modal progress{width:100%;height:10px;accent-color:#0cb78b;margin:14px 0}.hd-export-modal footer{margin-top:20px;justify-content:flex-end}.hd-export-modal [hidden]{display:none!important}@media(max-width:540px){.hd-export-grid{grid-template-columns:1fr}}

.hd-export-destination{display:grid;gap:10px;margin:14px 0}.hd-export-destination label{display:grid;gap:6px}.hd-export-destination input{box-sizing:border-box;width:100%;min-width:0;background:#0e141b;color:#edf1f5;border:1px solid #36404e;border-radius:6px;padding:10px;font:13px Arial,sans-serif}.hd-export-folder-row{display:flex;gap:8px}.hd-export-folder-row input{flex:1}.hd-export-folder-row button{flex-shrink:0}.hd-export-destination p{margin:0;color:#98a7b8;font-size:12px}.hd-export-modal [data-export-saved-path]{word-break:break-word;color:#7edcc0;font-size:12px;margin-top:10px}.hd-export-modal footer{flex-wrap:wrap}@media(max-width:540px){.hd-export-folder-row{flex-direction:column}}

/* Caption catalogue: scoped to the editor, rendered with the export caption classes. */
.te-caption-gallery{display:flex!important;flex-direction:column;gap:10px;padding:10px!important}
.te-caption-gallery-heading{display:flex;flex-direction:column;gap:5px;color:#eee}.te-caption-gallery-heading small{font-size:10px;color:#a3a3a3}
.te-caption-cats{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:2px}
.te-library .te-caption-cats button.te-caption-cat-btn{width:auto!important;flex:0 0 auto;padding:4px 8px!important;margin:0!important;font-size:9.5px!important;border-radius:999px!important;background:#1e2229!important;border:1px solid #353c48!important;color:#aeb8c7!important;text-align:center!important}
.te-library .te-caption-cats button.te-caption-cat-btn[aria-pressed="true"]{background:#382e1e!important;border-color:#e8ac38!important;color:#ffd275!important;font-weight:700}
.te-caption-model{display:block;width:100%;padding:0!important;background:#222!important;border:1px solid #414141!important;border-radius:8px!important;overflow:hidden;text-align:left;cursor:pointer}
.te-caption-model:hover,.te-caption-model:focus-visible{border-color:#e8ac38!important;outline:2px solid #e8ac3855;outline-offset:1px}.te-caption-model.is-current{border-color:#bd923e!important}
.te-caption-model>span{display:flex;flex-direction:column;padding:8px 10px;gap:3px}.te-caption-model strong{font-size:11px;color:#eee}.te-caption-model small{font-size:9.5px;color:#c6ae7a;line-height:1.35}
.te-caption-model .te-caption-desc{font-size:9px;color:#939ba8;line-height:1.35;white-space:normal}
.te-caption-thumb{height:84px;position:relative;background:radial-gradient(ellipse at 60% 15%,#586b5c,#203332 55%,#101b22);overflow:hidden;pointer-events:none;display:flex;align-items:center;justify-content:center}
.te-caption-thumb .te-caption-wrap{position:relative!important;top:auto!important;bottom:auto!important;transform:none!important;padding:0 6px}
.te-caption-thumb .te-karaoke-box{padding:5px 10px;gap:3px 5px;border-radius:8px;max-width:96%}
.te-caption-segments{font-size:11px;color:#ccc}.te-caption-segments summary{padding:10px 0;cursor:pointer}.te-caption-segments button{display:block;text-align:left;width:100%;padding:8px;border-bottom:1px solid #383838;white-space:normal}.te-caption-segments small{color:#e1b55d}

/* Background & Alignment variants for captions (shared by preview, thumbnails, and MP4 export) */
.te-caption-wrap.te-align-left{justify-content:flex-start;padding-left:6%}
.te-caption-wrap.te-align-center{justify-content:center}
.te-caption-wrap.te-align-right{justify-content:flex-end;padding-right:6%}
.te-karaoke-box.te-bg-pill{background:var(--te-box-bg,rgba(8,12,20,0.72))!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:20px;border:1.5px solid rgba(255,255,255,0.18);box-shadow:0 14px 40px rgba(0,0,0,0.85)}
.te-karaoke-box.te-bg-none{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:0!important;box-shadow:none!important;padding:4px 12px}
.te-karaoke-box.te-bg-word-pill{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:0!important;box-shadow:none!important;padding:4px 12px}
.te-karaoke-box.te-bg-word-pill .te-karaoke-word.is-active{background:var(--te-word-pill-bg,#7C3AED)!important;padding:0.06em 0.34em!important;border-radius:0.26em!important;box-shadow:0 6px 18px rgba(0,0,0,0.72)!important}
.te-karaoke-box.te-bg-solid{background:var(--te-box-bg,rgba(8,12,20,0.94))!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:12px;border:1.5px solid rgba(255,255,255,0.2);box-shadow:0 12px 32px rgba(0,0,0,0.85)}
.te-karaoke-box.te-bg-sticker{background:var(--te-box-bg,#FFE600)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:3.5px solid #000000!important;border-radius:10px!important;box-shadow:4px 4px 0 #000000,0 12px 28px rgba(0,0,0,0.75)!important}
.te-karaoke-box.te-bg-sticker .te-karaoke-word.is-active{background:#000000;color:var(--te-hl,#FFE600)!important;padding:2px 8px;border-radius:4px}
.te-karaoke-box.te-bg-ribbon{background:var(--te-box-bg,rgba(9,13,22,0.94))!important;backdrop-filter:none!important;border-radius:6px!important;border:1px solid rgba(255,255,255,0.24)!important;padding:10px 28px;box-shadow:0 10px 30px rgba(0,0,0,0.85)}
.te-karaoke-box.te-bg-dossier{background:var(--te-box-bg,rgba(11,15,23,0.88))!important;border-radius:6px!important;border:1px solid rgba(255,255,255,0.14)!important;border-left:5px solid var(--te-hl,#EAB308)!important;box-shadow:0 12px 32px rgba(0,0,0,0.85)}
.te-karaoke-box.te-bg-glass{background:var(--te-box-bg,rgba(30,41,59,0.62))!important;backdrop-filter:blur(18px) saturate(140%)!important;-webkit-backdrop-filter:blur(18px) saturate(140%)!important;border:1.5px solid rgba(255,255,255,0.3)!important;border-radius:26px!important;box-shadow:0 12px 36px rgba(0,0,0,0.65)}
.te-anim-none .te-karaoke-word,.te-anim-none .te-karaoke-word.is-active{transform:none!important;animation:none!important;filter:drop-shadow(0 2px 3px #000)!important;text-shadow:0 2px 3px #000!important;opacity:1!important}
.te-preset-classic-subtitle .te-karaoke-word.is-active{color:var(--te-hl,var(--word-base-color,#fff))!important}
@media(prefers-reduced-motion:reduce){.te-caption-modal .te-karaoke-word{transition:none!important;animation:none!important;transform:none!important}}

/* ==========================================================================
   GUIA VISUAL & CATÁLOGO DE MODELOS NO EDITOR (◇ ELEMENTOS)
   ========================================================================== */
.te-plan-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #141922;
  border-bottom: 1px solid #2b3444;
  flex-shrink: 0;
}
.te-plan-swatches {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.te-plan-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
}
.te-plan-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.te-plan-meta strong {
  margin: 0 !important;
  font-size: 9px !important;
  color: #e8b566 !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.te-plan-meta small {
  font-size: 8.5px;
  color: #8c98a9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.te-catalog-search {
  padding: 6px 7px;
  border-bottom: 1px solid #2c2c2c;
  flex-shrink: 0;
}
.te-catalog-search input {
  width: 100%;
  background: #121212;
  border: 1px solid #383838;
  border-radius: 4px;
  padding: 5px 7px;
  color: #ddd;
  font-size: 10px;
}
.te-guia-model-card {
  position: relative;
  border-color: #343434;
}
.te-guia-model-card.is-selected {
  border-color: #f5a524 !important;
  box-shadow: 0 0 0 1px #f5a524;
}
.te-guia-model-card .te-media-preview {
  position: relative;
  overflow: hidden;
}
.te-model-role-badge {
  position: absolute;
  left: 3px;
  bottom: 3px;
  max-width: calc(100% - 6px);
  padding: 1px 4px;
  font-size: 7.5px;
  font-weight: 600;
  color: #f3e9d2;
  background: rgba(12, 16, 22, 0.86);
  border: 1px solid rgba(212, 163, 89, 0.45);
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.te-model-always-badge {
  position: absolute;
  left: 4px;
  top: 4px;
  font-size: 9px;
  color: #fbbf24;
  background: rgba(15, 18, 24, 0.85);
  padding: 1px 4px;
  border-radius: 3px;
  pointer-events: none;
}
.te-model-card-title {
  font-weight: 600;
  color: #d4d4d4 !important;
}
.te-caption-gallery>*{flex-shrink:0}.te-caption-gallery .te-caption-model{flex:0 0 auto;min-height:130px}.te-caption-gallery .te-caption-model strong{margin:0;letter-spacing:0;text-transform:none;font-size:11px}.te-caption-gallery .te-caption-thumb{height:82px}

/* ==========================================================================
   UPLOAD DE ÁUDIO PRÓPRIO & CAMADAS DE ÁUDIO (▣ MÍDIA > ÁUDIOS)
   ========================================================================== */
.te-audio-upload-box {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}
.te-library .te-audio-upload-cta,
.te-props .te-audio-upload-cta {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  background: linear-gradient(135deg, rgba(71, 169, 133, 0.2), rgba(32, 48, 42, 0.85)) !important;
  border: 1px dashed rgba(71, 169, 133, 0.65) !important;
  border-radius: 6px !important;
  color: #e6f7f1 !important;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.te-library .te-audio-upload-cta:hover,
.te-props .te-audio-upload-cta:hover {
  border-color: #47a985 !important;
  background: linear-gradient(135deg, rgba(71, 169, 133, 0.32), rgba(38, 58, 50, 0.95)) !important;
}
.te-audio-upload-cta svg {
  width: 18px;
  height: 18px;
  color: #5eead4;
  flex-shrink: 0;
}
.te-audio-upload-cta div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.te-audio-upload-cta strong {
  margin: 0 !important;
  font-size: 10.5px !important;
  color: #ecfdf5 !important;
  text-transform: none !important;
  letter-spacing: 0.1px !important;
}
.te-audio-upload-cta small {
  font-size: 8.5px;
  color: #99d5c4;
  line-height: 1.25;
}
.te-library .te-audio-layer-cta {
  width: 100%;
  padding: 6px 8px;
  background: #222826 !important;
  border: 1px solid #354741 !important;
  border-radius: 4px !important;
  color: #b4d6c9 !important;
  text-align: center !important;
  font-size: 9.5px !important;
}
.te-library .te-audio-layer-cta:hover {
  border-color: #47a985 !important;
  color: #ecfdf5 !important;
}
.te-user-audio-card {
  border-color: rgba(71, 169, 133, 0.45) !important;
}
.te-audio-badge {
  position: absolute;
  left: 4px;
  top: 4px;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 1.5px 5px;
  border-radius: 3px;
  pointer-events: none;
}
.te-audio-badge.is-user {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
}
.te-audio-badge.is-official {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}
.te-library .te-media-card button.te-media-add-layer {
  position: absolute;
  left: 4px;
  bottom: 24px;
  width: auto;
  height: 18px;
  margin: 0;
  padding: 0 5px;
  background: rgba(20, 34, 29, 0.92);
  color: #86efac;
  border: 1px solid #34d399;
  border-radius: 3px;
  font-size: 8px;
  line-height: 16px;
  opacity: 0;
  transition: opacity 0.12s;
}
.te-media-card:hover .te-media-add-layer,
.te-media-card:focus-within .te-media-add-layer {
  opacity: 1;
}
.te-library.te-drop-active {
  outline: 2px dashed #34d399;
  outline-offset: -4px;
  background: rgba(16, 185, 129, 0.06) !important;
}

/* ==========================================================================
   MODAIS DE PRÉVIA EDITÁVEL (LEGENDAS & ELEMENTOS VISUAIS)
   ========================================================================== */
.te-toolbar [data-status].is-unsaved {
  color: #fbbf24 !important;
  font-weight: 600;
}
.te-style-modal .te-modal-card,
.te-element-modal .te-modal-card {
  max-width: 980px;
  width: calc(100% - 24px);
  max-height: 92vh;
  background: #161a22;
  border: 1px solid #333e4f;
}
.te-style-modal .te-modal-header,
.te-element-modal .te-modal-header {
  padding: 12px 18px;
  background: #12161d;
  border-bottom: 1px solid #283140;
}
.te-style-modal h3,
.te-element-modal h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
}
.te-style-modal .te-modal-header p,
.te-element-modal .te-modal-header p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #94a3b8;
}
.te-preview-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.95fr);
  gap: 16px;
  padding: 16px 18px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
.te-preview-stage-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.te-style-screen,
.te-element-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: radial-gradient(ellipse at 60% 15%, #5c7464, #223837 55%, #0f1922);
  border: 1px solid #45505e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}
.te-screen-scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
.te-style-screen .te-caption-wrap {
  z-index: 5;
}
.te-element-screen-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  transform-origin: center;
  pointer-events: none;
}
.te-element-screen-layer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px !important;
  height: 1080px !important;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
}
.te-style-demo-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 15;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(10, 14, 22, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #e2e8f0;
  pointer-events: none;
}
.te-screen-scene-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 15;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(10, 14, 22, 0.82);
  border: 1px solid rgba(245, 165, 36, 0.4);
  font-size: 9px;
  color: #fcd34d;
  pointer-events: none;
}
.te-preview-controls-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 62vh;
  padding-right: 4px;
  scrollbar-width: thin;
}
.te-preview-fieldset {
  background: #1d232f;
  border: 1px solid #2d3748;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.te-preview-fieldset-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f5a524;
  margin: 0;
}
.te-preview-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.te-preview-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.te-preview-controls-col label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10.5px;
  color: #cbd5e1;
  margin: 0;
}
.te-preview-controls-col input[type="text"],
.te-preview-controls-col input[type="number"],
.te-preview-controls-col textarea,
.te-preview-controls-col select {
  width: 100%;
  padding: 6px 8px;
  background: #121721;
  border: 1px solid #384459;
  border-radius: 5px;
  color: #f1f5f9;
  font-size: 11px;
}
.te-preview-controls-col textarea {
  min-height: 44px;
  resize: vertical;
}
.te-preview-controls-col input[type="color"] {
  width: 100%;
  height: 30px;
  padding: 2px;
  background: #121721;
  border: 1px solid #384459;
  border-radius: 5px;
  cursor: pointer;
}
.te-preview-controls-col input[type="range"] {
  width: 100%;
  accent-color: #f5a524;
}
.te-locked-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(185, 28, 28, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 7px;
  color: #fecaca;
  font-size: 11px;
  line-height: 1.4;
}
.te-locked-banner button {
  flex-shrink: 0;
  padding: 5px 10px !important;
  background: #dc2626 !important;
  border: 1px solid #f87171 !important;
  border-radius: 5px !important;
  color: #fff !important;
  font-size: 10.5px !important;
  font-weight: 700;
}
.te-preview-target-box {
  padding: 8px 11px;
  background: #151c27;
  border: 1px solid #2b374b;
  border-radius: 7px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.45;
}
.te-preview-target-box strong {
  color: #fbbf24;
}
.te-category-rule-box {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(245, 165, 36, 0.4);
  border-radius: 6px;
  text-align: left;
}
.te-category-rule-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  cursor: pointer;
  margin: 0 !important;
  color: #e2e8f0 !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}
.te-category-rule-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: #f5a524;
  cursor: pointer;
}
.te-category-rule-label strong {
  color: #fbbf24;
}
.te-category-rule-label em {
  color: #38bdf8;
  font-style: normal;
}
.te-style-modal [role="alert"],
.te-element-modal [role="alert"] {
  color: #fca5a5;
  font-size: 11.5px;
  margin: 0;
}
.te-btn-open-element-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px !important;
  margin: 8px 0 !important;
  background: linear-gradient(135deg, rgba(245, 165, 36, 0.22), rgba(45, 35, 20, 0.9)) !important;
  border: 1px solid rgba(245, 165, 36, 0.65) !important;
  border-radius: 6px !important;
  color: #fde68a !important;
  font-size: 11px !important;
  font-weight: 700;
  cursor: pointer;
}
.te-btn-open-element-modal:hover {
  background: linear-gradient(135deg, rgba(245, 165, 36, 0.35), rgba(60, 45, 24, 0.95)) !important;
  border-color: #fbbf24 !important;
}
.te-library .te-media-card button.te-media-edit-el {
  position: absolute;
  left: 4px;
  top: 4px;
  width: auto;
  height: 20px;
  margin: 0;
  padding: 0 6px;
  background: rgba(20, 24, 33, 0.92);
  color: #fcd34d;
  border: 1px solid rgba(245, 165, 36, 0.65);
  border-radius: 3px;
  font-size: 8.5px;
  opacity: 0;
  transition: opacity 0.12s;
}
.te-media-card:hover .te-media-edit-el,
.te-media-card:focus-within .te-media-edit-el {
  opacity: 1;
}
@media (max-width: 860px) {
  .te-preview-modal-layout {
    grid-template-columns: 1fr;
  }
  .te-preview-controls-col {
    max-height: none;
  }
}

.te-var-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.te-props .te-var-grid{grid-template-columns:1fr}.te-var-check{flex-direction:row!important;align-items:center;gap:6px!important}.te-var-check input{width:auto!important}
.te-props .te-preview-fieldset{border:1px solid #333;border-radius:6px;padding:8px;margin:8px 0}.te-props .te-preview-fieldset-title{font-size:10px;font-weight:700;color:#f5a524;text-transform:uppercase}

.te-inspector-section {
  margin: 10px 0;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 165, 36, 0.35);
  border-radius: 6px;
}
.te-inspector-section h5 {
  margin: 0 0 6px 0;
  font-size: 11px;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.te-inspector-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}
.te-btn-apply-all-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(15, 118, 110, 0.25);
  border: 1px solid #14b8a6;
  border-radius: 4px;
  color: #5eead4;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.te-btn-apply-all-bg:hover {
  background: rgba(15, 118, 110, 0.45);
  color: #fff;
}

/* Room for every layer control, including lock and reversible removal. */
.te-label{width:200px;min-width:200px;box-sizing:border-box;padding:4px 7px;z-index:4;overflow:hidden}
.te-ruler{margin-left:200px}.te-row{min-height:52px;height:52px}
.te-track-name{height:18px;min-height:18px}.te-track-controls{height:24px;min-height:24px;gap:1px;white-space:nowrap}
.te-track-controls>small{width:29px;min-width:29px;letter-spacing:0;font-size:7px}
.te-label .te-track-controls button{width:20px;min-width:20px;height:22px;flex:0 0 20px;padding:3px!important;margin:0;line-height:1}
.te-track-controls button svg{display:block;width:13px;height:13px;flex-shrink:0}
.te-label .te-track-controls button[data-te=track-delete]:hover{color:#ff8989!important;background:#462323!important}

/* User typography overrides work identically in the player and export. */
.te-caption-wrap .te-karaoke-box .te-karaoke-word,.te-caption-wrap .te-karaoke-box .te-karaoke-word.is-active{font-weight:var(--caption-weight,900)!important;font-style:var(--caption-slant,normal)!important;text-decoration:var(--caption-decoration,none)!important;letter-spacing:var(--caption-spacing,0px)!important;text-shadow:var(--caption-shadow,0 3px 8px #000)!important;filter:none!important}
.te-caption-wrap .te-karaoke-box{line-height:var(--caption-leading,1.25)!important;border-radius:var(--caption-radius,20px)!important}

/* Background spacing in source pixels, scaled by the shared compositor. */
.te-caption-wrap .te-karaoke-box{padding:var(--caption-padding-y,12px) var(--caption-padding-x,32px)!important}
.te-caption-wrap .te-karaoke-box.te-bg-word-pill{padding:0!important}
.te-caption-wrap .te-karaoke-box.te-bg-word-pill .te-karaoke-word.is-active{padding:var(--caption-padding-y,4px) var(--caption-padding-x,10px)!important}
