.tcstudio{background:#101722;color:#e5edf8;padding:24px;border-radius:18px;font:15px/1.5 system-ui,sans-serif;max-width:1200px;margin:24px auto}.tcstudio *{box-sizing:border-box}.tcstudio h2,.tcstudio h3{color:#fff;margin:12px 0}.tcstudio header small{color:#5ee6af;letter-spacing:2px}.tcstudio header h2{font-size:32px}.tcgrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.tcgrid section{background:#192333;border:1px solid #344258;border-radius:14px;padding:18px;min-width:0}.tcstudio input:not([type=checkbox]),.tcstudio textarea,.tcstudio select{background:#0e1623;color:#fff;border:1px solid #435169;border-radius:7px;width:100%;padding:9px;margin:5px 0 12px}.tcstudio textarea{min-height:120px}.tcdrop{display:block;border:2px dashed #49667b;padding:16px;border-radius:10px}.tcstudio video,.tcstudio canvas{display:block;width:100%;max-height:420px;object-fit:contain;background:#080d15;border-radius:8px}.tcstudio [hidden]{display:none!important}.tcstudio button,.tcstudio a[data-k=download]{background:#30475d;color:#fff;border:0;padding:10px 14px;border-radius:8px;margin:6px 5px 6px 0;cursor:pointer;text-transform:none;line-height:1.4;display:inline-block}.tcstudio button.tcprimary{background:#36d399;color:#09241b;font-weight:bold}.tcstudio button:disabled{opacity:.45;cursor:not-allowed}.tcfields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tcstudio progress{width:100%;accent-color:#36d399}.tcstudio footer{color:#aab8ca;margin-top:16px;font-size:13px}@media(max-width:700px){.tcgrid{grid-template-columns:1fr}.tcstudio{padding:12px}.tcgrid section{padding:12px}}
.tcstudio{position:relative;overflow:hidden}.tcagents{display:flex;gap:12px;flex-wrap:wrap;background:#102d2b;padding:12px;border:1px solid #36d399;border-radius:9px;color:#8cf6cd}.tcursor{position:absolute;pointer-events:none;z-index:50;transition:top .6s cubic-bezier(.2,.7,.2,1),left .6s cubic-bezier(.2,.7,.2,1);font-size:11px;font-weight:700;background:#182634;color:#68e7ff;padding:4px 7px;border-radius:6px;box-shadow:0 0 15px currentColor;animation:tcpulse 1s infinite alternate}.tcursor1{color:#fda6ff}.tcursor2{color:#8bffba}.tcursor3{color:#ffd06a}@keyframes tcpulse{to{opacity:.65;transform:translate(4px,3px)}}.tctimeline,.tcextra{margin-top:16px;padding:14px;background:#192333;border-radius:12px;position:relative}.tctimeline [data-k=track]{display:flex;gap:4px;overflow:hidden;min-height:42px;background:#0b1420}.tctimeline [data-k=track] span{min-width:0;background:#126d91;padding:8px;overflow:hidden;white-space:nowrap;border-radius:4px}.tctimeline [data-k=playhead]{height:3px;background:#ffb04d;width:5px;position:relative;max-width:95%}.tctimeline [data-k=events]{font-size:12px;color:#b1c5db;max-height:150px;overflow:auto}.tctimeline [data-k=outputs] a{display:block;color:#61dfb0;padding:8px}@media(prefers-reduced-motion:reduce){.tcursor{animation:none;transition:none}}
.tcstudio{max-width:none;width:100%;margin:0;border-radius:0;padding:14px;background:#14161b;color:#e5e7eb;font-size:13px}.tcstudio.tcfullscreen{position:fixed;inset:0;z-index:999999;overflow:auto;height:100dvh;width:100vw}.tcstudio header{display:flex;align-items:center;gap:16px;border-bottom:1px solid #353840;margin-bottom:12px}.tcstudio header h2{font-size:19px;white-space:nowrap}.tcstudio header p{font-size:12px;color:#a1a1aa}.tcstudio .tcfull{margin-left:auto;order:5;white-space:nowrap}.tcgrid{grid-template-columns:minmax(200px,1fr) minmax(280px,2fr) minmax(220px,1fr);gap:8px}.tcgrid section{background:#202229;border:1px solid #34363e;border-radius:7px;padding:12px;max-height:55vh;overflow:auto}.tcpreview{display:flex;flex-direction:column;align-items:center;background:#090a0d!important}.tcpreview canvas{flex:1;min-height:0;max-height:42vh;object-fit:contain}.tcgrid video[data-k=video]{max-height:130px}.tcstudio textarea{min-height:75px}.tcstudio button.tcprimary{background:#00cdb4;color:#071b19}.tctimeline{background:#202229;margin-top:8px;border-radius:7px}.tcruler{color:#9ca3af;font-size:11px;padding:4px 0 8px 72px;border-bottom:1px solid #3d4049;background:repeating-linear-gradient(90deg,transparent 0 39px,#454851 40px)}.tcruler span{background:#202229;margin-left:12px}.tclanes{display:flex;gap:8px}.tclabels{width:64px;flex:none;font-size:10px;line-height:40px;color:#9ca3af}.tcrail{position:relative;flex:1;min-width:0}.tclane,.tctimeline [data-k=track]{display:flex;gap:3px;height:36px;min-height:36px;margin:4px 0;background:#111318;overflow:hidden}.tclane span,.tctimeline [data-k=track] span{min-width:0;overflow:hidden;white-space:nowrap;font-size:11px;padding:7px;border-radius:4px;background:#245a65;border:1px solid #337985}.tclane[data-k=texttrack] span{background:#72532d;border-color:#a77b3f}.tclane[data-k=audiotrack] span{background:repeating-linear-gradient(90deg,#244c43 0 4px,#316b5d 5px 7px);border-color:#43836d}.tctimeline [data-k=playhead]{position:absolute;top:0;bottom:0;height:auto;width:2px;background:#fff;pointer-events:none}.tcursor{box-shadow:none;background:#20252e;color:#65d9ff;animation:none;transition:top .7s ease-in-out,left .8s ease-in-out; border:1px solid currentColor;border-radius:3px;padding:2px 5px;font-size:10px}.tcursor1{color:#f0a3fc}.tcursor2{color:#7af1a9}.tcursor3{color:#ffd46c}.tcstudio .tcextra{background:#202229}.tcstudio [data-k=status]{color:#d1d5db;overflow-wrap:anywhere}@media(max-width:850px){.tcgrid{grid-template-columns:1fr}.tcgrid section{max-height:none}.tcstudio header{flex-wrap:wrap}.tcstudio header p{display:none}.tcpreview canvas{max-height:50vh}.tcstudio .tcfull{margin-left:0}}
.tcstudio .tcursor{box-shadow:none;animation:none;background:#263644;border-radius:3px;transition:left .35s ease,top .35s ease;pointer-events:none}.tcstudio [data-clip]{position:relative;cursor:pointer}.tcstudio .tcselected{outline:2px solid #00cdb4;outline-offset:-2px}.tcstudio .tctrim{position:absolute;top:0;bottom:0;width:12px;background:#ffffff55;cursor:ew-resize;touch-action:none;z-index:2}.tcstudio .tctrim.start{left:0}.tcstudio .tctrim.end{right:0}.tcstudio [data-k=track] span{padding-left:15px;padding-right:15px}.tcstudio .tcrail{cursor:crosshair}

.tcstudio .tcursor4{color:#a9e97b}.tcstudio .tcursor5{color:#ffbd72}.tcstudio .tcursor{z-index:99999;transition:left .35s cubic-bezier(.2,.7,.3,1),top .35s cubic-bezier(.2,.7,.3,1)}
.tcursor6{color:#ff9b9b}.tcursor7{color:#b1a4ff}.tcursor8{color:#f5df8c}.tcursor9{color:#91d7ff}.tcursor{box-shadow:none!important;animation:none!important}.tcstudio select[data-k=preset]{width:100%;max-width:100%}

.tcstudio .tcdirector{padding:12px;border:1px solid #355b60;border-radius:10px;background:#14262c;margin:8px 0}.tcstudio .tcdirector textarea{min-height:95px}.tcstudio [data-k=strategy]{white-space:pre-wrap;color:#9debdc;font-size:13px;line-height:1.5;margin-top:8px}.tcstudio .tcdirector label{display:block;margin:8px 0}

.tcstudio .tcadvanced{margin:12px 0;border:1px solid #344355;border-radius:10px;padding:10px}.tcstudio .tcadvanced summary{cursor:pointer;color:#b6c8dc;font-size:14px}.tcstudio label{display:block;margin:10px 0}.tcstudio label input[type=checkbox]{width:auto;display:inline-block;margin-right:7px}.tcstudio [data-a=auto]{display:block;width:100%;min-height:52px;font-size:18px;margin:14px 0}.tcstudio .tcconsent{font-size:13px;line-height:1.5}.tcstudio [data-k=status]{overflow-wrap:anywhere}.tcstudio [data-k=result]{width:100%;max-height:65vh}.tcstudio [data-k=events]{font-size:12px;max-height:100px;overflow:auto}@media(max-width:760px){.tcstudio .tcgrid{display:flex;flex-direction:column}.tcstudio .tcgrid section{max-height:none;overflow:visible}.tcstudio .tcpreview canvas{max-height:42vh}.tcstudio .tcgrid section:nth-child(3){order:2}}

.tcstudio [data-k="createfields"][hidden],.tcstudio [data-k="editfields"][hidden],.tcstudio [data-k="imagelabel"][hidden]{display:none!important}

.tcautolayer{display:flex;gap:8px;align-items:center}.tcautolayer>b{width:70px;flex-shrink:0;font-size:10px;color:#aab8c9}.tcautolayer>.tclane{flex:1;min-width:0}.tcautolayer span{background:#46406c;border-color:#8274af;cursor:pointer}.tcautolayer:nth-child(even) span{background:#31594d;border-color:#528d79}

.tceffectstore{display:grid;gap:12px;margin:16px 0;border:1px solid #3c4c65;border-radius:12px;padding:12px}
.tc-cursor-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:51}
.tc-edit-pointer{position:absolute;top:0;left:0;opacity:0;font-size:12px;font-weight:700;white-space:nowrap;text-shadow:0 1px 4px #050812,0 0 7px currentColor;will-change:transform,opacity}
@media(prefers-reduced-motion:reduce){.tc-cursor-layer{display:none}}

.tcstudio header .tcclicksound{flex:none;min-height:36px;white-space:nowrap}
@media(max-width:640px){.tcstudio header{flex-wrap:wrap;gap:8px}}

.tcstudio .tctimeline-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.tcstudio .tctimeline-scroll:focus-visible{outline:2px solid #5be4d1;outline-offset:-2px}
@media(max-width:760px){
 .tcstudio{width:100%;max-width:100%;padding:8px;font-size:15px;line-height:1.5}
 .tcstudio.tcfullscreen{width:100%;height:100dvh;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));overscroll-behavior-y:contain}
 .tcstudio header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;align-items:center;padding:4px 0 10px}
 .tcstudio header h2{grid-row:1;grid-column:1/-1;white-space:normal;margin:0;font-size:clamp(19px,5.4vw,25px)}
 .tcstudio header small{grid-column:1/-1;grid-row:2;font-size:11px;letter-spacing:.06em}
 .tcstudio header .tcclicksound{grid-column:1;justify-self:start}
 .tcstudio header .tcfull{grid-column:2;justify-self:end;margin:0}
 .tcstudio header button,.tcstudio button,.tcstudio [data-k=download]{min-height:44px;font-size:14px}
 .tcstudio :is(select,textarea,input:not([type=checkbox]):not([type=range])){box-sizing:border-box;width:100%;max-width:100%;min-height:44px;font-size:16px}
 .tcstudio input[type=checkbox]{width:20px;height:20px;vertical-align:middle}
 .tcstudio label:has(> input[type=checkbox]){min-height:44px;padding:7px 0;margin:4px 0}
 .tcstudio .tcgrid{gap:10px}
 .tcstudio .tcgrid>section,.tcstudio .tctimeline,.tcstudio .tcextra{min-width:0;width:100%;padding:10px;border-radius:10px}
 .tcstudio .tcdirector,.tcstudio .tcadvanced{min-width:0;padding:8px}
 .tcstudio .tcadvanced summary{min-height:36px;padding-block:6px}
 .tcstudio .tcfields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}
 .tcstudio .tcfields label{min-width:0}
 .tcstudio .tceffectstore{min-width:0}
 .tcstudio .tcdrop{padding:12px 8px;overflow-wrap:anywhere}
 .tcstudio .tcpreview canvas{flex:none;display:block;width:100%;max-width:100%;height:auto;max-height:56dvh;object-fit:contain}
 .tcstudio .tcgrid video[data-k=video]{width:100%;max-height:38dvh}
 .tcstudio [data-k=result]{max-height:68dvh}
 .tcstudio [data-k=download]:not([hidden]){display:flex;align-items:center;justify-content:center;width:100%;margin:8px 0;border-radius:8px;background:#00cdb4;color:#071b19;text-decoration:none;font-weight:700}
 .tcstudio .tctimeline-tracks{min-width:540px}
 .tcstudio .tcautolayer>b,.tcstudio .tclabels{width:64px}
 .tcstudio .tctimeline [data-k=playhead]{max-width:none}
 .tcstudio [data-k=clouditems]{overflow-wrap:anywhere}
}

.tc-product-fields{display:grid;gap:.65rem}
.tc-product-fields small{color:#a9bcd0;line-height:1.5}
.tcstudio [data-k=pointquote]{padding:.6rem .85rem;border-left:3px solid #61e4ce;color:#bbf7e9;background:#132a30;border-radius:.35rem}
.tc-edit-pointer{padding:1px 3px;border-radius:3px;background:#101721d4;line-height:1.15}
@media(max-width:680px){.tc-edit-pointer{font-size:10px;padding:0 1px}}
.tcstudio .tcagents:not([hidden]){position:sticky;top:4px;z-index:50;display:flex;flex-wrap:wrap;gap:.25rem .65rem;background:#142735;color:#effaff}
.tcstudio [data-k=crewstatus]{color:#85eadb}
.tc-cursor-layer .tc-edit-pointer{font-size:15px;text-shadow:0 1px 4px #000}
@media(prefers-reduced-motion:reduce){.tcstudio .tc-cursor-layer{display:block}}

.tcstudio .tc-cursor-layer{position:fixed;inset:0;z-index:1000000}
.tcstudio .tc-cursor-layer[hidden]{display:none}
@media(max-width:680px){.tcstudio .tc-edit-pointer{font-size:13px}}
