.tm-studio{display:grid;grid-template-columns:180px minmax(220px,1fr) minmax(240px,300px);gap:14px;align-items:start}.tm-shot-rail{max-height:680px;overflow:auto;display:grid;gap:7px}.tm-shot-item,.tm-subtitle-item{border:1px solid #30333c;border-radius:10px;background:#181a20;color:#d9dde7;display:flex;gap:12px;text-align:left;padding:12px;cursor:pointer;min-width:0}.tm-shot-copy{min-width:0;display:block;line-height:1.5}.tm-shot-description{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tm-shot-item strong{flex-shrink:0}.tm-shot-item strong,.tm-subtitle-item strong{color:#8c94a8}.tm-shot-item small,.tm-subtitle-item small{display:block;color:#8f97ab;font-size:11px;margin-top:7px}.tm-shot-item.selected,.tm-clip.selected,.tm-subtitle-item.selected{border-color:#779bff;background:#202b43;box-shadow:inset 0 0 0 1px #779bff33}.tm-preview,.tm-inspector{min-width:0;background:#17191f;border:1px solid #2e323d;border-radius:13px;padding:16px}.tm-panel-title,.tm-track-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:13px;font-size:13px}.tm-panel-title span,.tm-track-heading span{color:#939bae;font-size:12px}.tm-monitor{background:#0c0d10;border-radius:8px;overflow:hidden}.tm-screen{aspect-ratio:var(--tm-ratio,16 / 9);position:relative;max-height:480px;min-height:160px;display:flex;justify-content:center}.tm-screen video,.tm-screen img{height:100%;width:100%;object-fit:contain}.tm-no-media{align-self:center;text-align:center;padding:25px;color:#808a9e;max-width:100%}.tm-no-media span{display:block;font-size:30px;margin-bottom:12px}.tm-no-media strong{display:block;color:#ced4df}.tm-no-media p{font-size:12px;line-height:1.6}.tm-caption{position:absolute;left:7%;right:7%;bottom:48px;color:#fff;background:#000b;padding:6px 10px;text-align:center;border-radius:4px;white-space:pre-wrap;pointer-events:none;font-size:clamp(12px,1.3vw,20px);text-shadow:0 1px 2px #000}.tm-caption[hidden]{display:none}.tm-media-actions,.tm-order-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:13px}.tm-media-actions small{color:#8993a6;margin-left:auto}.tm-order-actions{padding-top:13px;border-top:1px solid #2b303a}.tm-danger{color:#f6a8a8!important}.tm-inspector h3{margin:0 0 17px;font-size:15px;display:flex;justify-content:space-between}.tm-inspector h3 span{color:#8496c4}.tm-inspector label{display:grid;gap:7px;font-size:12px;color:#b2bacb;margin:12px 0}.tm-inspector textarea,.tm-inspector input:not([type=checkbox]){width:100%;min-width:0;background:#101218;color:#edf0f7;border:1px solid #343a48;border-radius:7px;padding:10px;box-sizing:border-box;font:inherit}.tm-inspector textarea{min-height:82px;resize:vertical;line-height:1.7}.tm-inspector textarea[name=description]{min-height:116px}.tm-inspector>.btn{width:100%;margin-top:12px}.tm-inspector small{font-size:11px;color:#929cb1;line-height:1.7}.tm-timeline{margin-top:16px;padding:15px;background:#15171d;border:1px solid #2e323d;border-radius:12px;min-width:0}.tm-track{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px}.tm-clip{flex-basis:80px;min-width:90px;max-width:250px;min-height:82px;padding:10px;border:1px solid #394251;border-radius:7px;background:#212938;color:#e5ebf5;cursor:pointer;text-align:left}.tm-clip span,.tm-clip small,.tm-clip i{display:block;white-space:nowrap;font-style:normal}.tm-clip small{font-size:10px;color:#98a6c0;margin-top:6px}.tm-clip i{font-size:10px;margin-top:7px;color:#b3a384}.tm-clip i.ready{color:#80c7af}.tm-scrub-label{display:grid;grid-template-columns:1fr auto;font-size:11px;gap:7px;color:#9ca8bd;margin-top:12px}.tm-scrub-label input{grid-column:1 / -1;width:100%;accent-color:#789bff;cursor:pointer;min-width:0}.tm-subtitle-layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(240px,320px);gap:16px;align-items:start}.tm-time-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tm-inspector label.tm-checkbox{display:flex;align-items:center;gap:8px}.tm-subtitle-list{display:grid;gap:8px;margin-top:18px}.tm-subtitle-item span{min-width:0;overflow-wrap:anywhere;line-height:1.6}.tm-subtitle-item{text-align:left;width:100%}.tm-export-panel{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;margin-top:24px;padding:20px;border:1px solid #333b4c;background:#1a202d;border-radius:12px}.tm-export-panel h3{margin:0 0 8px;font-size:16px}.tm-export-panel p,.tm-export-panel small{font-size:12px;color:#9da9bf}.tm-export-panel .actions{flex-wrap:wrap}.tm-studio+ .tm-timeline{margin-bottom:20px}.stage-3,.stage-4{max-width:1600px!important}.tm-studio button:focus-visible,.tm-subtitle-item:focus-visible,.tm-clip:focus-visible{outline:2px solid #aac1ff;outline-offset:2px}
@media(max-width:1250px){.tm-studio{grid-template-columns:minmax(210px,1fr) 280px}.tm-shot-rail{grid-column:1 / -1;display:flex;max-height:none;overflow-x:auto}.tm-shot-item{flex:0 0 160px;min-height:65px}.tm-shot-description{-webkit-line-clamp:1}}
@media(max-width:800px){.tm-studio,.tm-subtitle-layout{grid-template-columns:minmax(0,1fr)}.tm-studio .tm-inspector{grid-column:1}.tm-preview,.tm-inspector{padding:12px}.tm-shot-rail{max-width:100%}.tm-screen{max-height:380px}.tm-screen:has(video){min-height:190px}.tm-subtitle-list{gap:6px}.tm-export-panel{padding:14px}.tm-export-panel .actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.tm-export-panel .actions .btn{padding:10px 6px;font-size:12px;white-space:normal}.tm-caption{font-size:15px}.tm-timeline{padding:11px}.tm-inspector textarea{font-size:16px}.tm-inspector input:not([type=checkbox]){font-size:16px}.tm-inspector h3{margin-bottom:8px}.tm-order-actions .btn{flex:1 1 40%}}
.tm-inspector .tm-checkbox input[type=checkbox]{width:16px;height:16px;flex:0 0 16px;margin:0;accent-color:#789bff}.tm-inspector label.tm-checkbox{justify-content:flex-start;line-height:1.5}
@media(min-width:901px){.tago-main-links>a,.tago-main-links>button{max-width:none;white-space:nowrap}.tago-main-links{gap:16px}}@media(min-width:901px) and (max-width:1500px){.chrome-tip{display:none}}

.tm-auth-form{display:grid;gap:14px;text-align:left;margin:20px 0}.tm-auth-form label{display:grid;gap:8px;color:#aab4c8;font-size:13px}.tm-auth-form input{padding:12px;border:1px solid #394251;border-radius:8px;background:#11151d;color:white;width:100%;box-sizing:border-box;font-size:16px}.tm-guest-link{color:#89afff;font-size:12px}.guest-card .btn.ghost{margin-top:12px}

.tm-project-actions{position:absolute;bottom:12px;left:12px;display:flex;gap:6px;z-index:2}.tm-project-actions .btn{font-size:11px;padding:5px 8px}.tago-project-card:has(.tm-project-actions) .project-hit{padding-bottom:58px}.tm-management-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 20px}.tm-management-toolbar label{font-size:12px;color:#a6afbe;display:flex;align-items:center;gap:8px}.tm-management-toolbar select,.tm-management-toolbar input{background:#15181f;border:1px solid #353c49;color:#e4e9f2;border-radius:7px;padding:8px;min-width:0;max-width:100%}.tm-episode-manager{display:grid;gap:10px}.tm-episode-manager section{padding:14px;border:1px solid #343b48;border-radius:10px}.tm-episode-manager small{display:block;color:#a0aec4;margin:7px 0}.tm-episode-manager .actions{flex-wrap:wrap;gap:6px}.tm-export-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.tm-writing-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tm-writing-compare label{display:grid;gap:8px;color:#aebbd0}.tm-writing-compare textarea{width:100%;min-height:340px;box-sizing:border-box;background:#13171f;color:#ecf0f7;border:1px solid #394354;border-radius:8px;padding:12px;font:inherit;line-height:1.8;resize:vertical}.tm-text-drafts{display:flex;gap:8px;flex-wrap:wrap}.script-tools{flex-wrap:wrap;gap:10px}.workspace-actions{flex-wrap:wrap}.dialog-body .tm-export-links .btn{white-space:normal;text-align:center}.tm-episode-manager strong{overflow-wrap:anywhere}
@media(max-width:800px){.tm-writing-compare{grid-template-columns:minmax(0,1fr)}.tm-writing-compare textarea{min-height:210px;font-size:16px}.tm-export-links{grid-template-columns:minmax(0,1fr)}.workspace-actions .btn{padding:6px 9px;font-size:11px}.tm-management-toolbar input{flex:1;min-width:100px}.tm-management-toolbar select{font-size:16px}.tm-episode-manager .btn{flex:1 1 27%}.tm-project-actions .btn{padding:5px 6px}.tm-text-drafts{width:100%}}
.tago-project-card:has(.tm-project-actions){height:210px}.tago-project-card:has(.tm-project-actions) .project-hit>*{flex-shrink:0}.tm-management-toolbar label{white-space:nowrap}.tm-management-toolbar select{width:auto}.workspace-bar{flex-wrap:wrap}.workspace-actions{margin-left:auto}.stage-nav{min-width:0;max-width:100%}
.tago-projects .add-project{height:210px}.tago-projects .project-card-action{opacity:1}

/* Novel library, creation templates and text setting history. */
.story-page{max-width:1500px;margin:auto}.story-page .page-header{flex-wrap:wrap;gap:16px}.story-toolbar,.story-home-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0}.story-home-tools{justify-content:center}.story-toolbar input[type=number]{width:80px}.story-toolbar label{display:flex;align-items:center;gap:6px}.story-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.story-grid h2{font-size:20px}.story-grid .actions{margin-top:18px;flex-wrap:wrap}.story-grid p{min-height:42px;overflow-wrap:anywhere}.story-grid small{color:#8e9cae}.story-book-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:20px}.story-chapters{max-height:68vh;overflow:auto;background:#10151d;border:1px solid #293340;border-radius:12px;padding:8px}.story-chapter-row{display:grid;grid-template-columns:20px minmax(0,1fr);gap:4px;padding:8px;border-bottom:1px solid #293340}.story-chapter-row.active{background:#21344d;border-radius:8px}.story-chapter-row .btn{text-align:left;white-space:normal;overflow-wrap:anywhere;border:0;background:transparent}.story-chapter-row small{grid-column:2;color:#8e9cae}.story-chapter-row input{width:16px}.story-chapter-editor label{display:block;margin-bottom:12px}.story-chapter-editor input,.story-chapter-editor textarea{width:100%;margin-top:8px}.story-chapter-editor textarea{min-height:400px;line-height:1.8}.story-chapter-actions{margin-top:16px;flex-wrap:wrap}.story-import-list{max-height:220px;overflow:auto;line-height:1.9}.story-import-list small{color:#8e9cae;margin-left:10px}.story-history-list>div{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:10px 0}.story-version-list{display:flex;flex-wrap:wrap;gap:8px;max-height:140px;overflow:auto;margin-bottom:14px}.story-page input,.story-page select{max-width:100%}#story-template-form textarea,#story-import-form textarea{min-height:180px}#story-template-apply textarea{min-height:80px}
@media(max-width:760px){.story-book-layout{grid-template-columns:1fr}.story-chapters{max-height:240px}.story-chapter-editor textarea{min-height:350px}.story-page .page-header .actions{flex-wrap:wrap}.story-history-list>div{align-items:flex-start}.story-home-tools{padding:0 16px}.story-home-tools .btn{flex:1 1 auto}.story-page{padding:20px 14px}.story-grid{grid-template-columns:1fr}.story-page .editor-footer{flex-wrap:wrap;gap:10px}}

.delivery-panel{margin-top:24px}.delivery-track{padding:18px 0;border-top:1px solid var(--border,#ddd)}.delivery-track audio{max-width:100%;width:100%;margin:8px 0}.delivery-track .actions{margin-top:12px}.draft-recovery{display:flex;gap:8px;flex-wrap:wrap}.tago-announcement>span{display:block;text-align:center;padding:8px 12px}.story-page input,.story-page textarea,.story-page select,.delivery-panel input,.delivery-panel select{max-width:100%;box-sizing:border-box}
/* Media variants and multi-cue editing */
.asset-manager .asset-current-image{display:block;max-width:100%;max-height:280px;margin:12px auto;object-fit:contain}.image-variant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-top:20px}.image-variant-grid section,.cue-row{min-width:0;border:1px solid #343943;border-radius:12px;padding:14px;margin:12px 0}.image-variant-grid img{width:100%;height:180px;object-fit:contain}.asset-manager audio{width:100%}.asset-manager small{display:block;margin-top:12px;color:#a9b0c0}.asset-link-row{display:flex;gap:12px;padding:12px}.asset-link-row input{width:auto}.cue-row textarea{min-height:80px;width:100%}.cue-row input[type=checkbox]{width:auto}.cue-row label{display:block;margin:8px 0}.tm-inspector .actions{flex-wrap:wrap}#project-title label{display:block;margin:12px 0}#project-title input,#project-title select{width:100%}@media(max-width:600px){.image-variant-grid{grid-template-columns:1fr}.cue-row{padding:10px}.folder-sidebar .btn{max-width:100%}}

.tm-screen{container-type:inline-size}.tm-caption{font-size:clamp(12px,calc(var(--caption-size,32)*.5px),36px)}

/* Reference frames and generated versions */
.gen-reference-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:12px 0}.gen-reference-grid label{position:relative;display:flex;flex-direction:column;gap:6px}.gen-reference-grid input{position:absolute;left:8px;top:8px;width:18px;height:18px}.gen-reference-grid img{width:100%;height:100px;object-fit:cover;border-radius:8px}.gen-frames,.gen-version-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.gen-frames img,.gen-version-grid img,.gen-version-grid video{width:100%;max-height:220px;object-fit:contain;background:#171923;border-radius:8px}.gen-version-grid section{min-width:0;padding:12px;border:1px solid var(--border,#ddd);border-radius:10px}.tm-media-actions{flex-wrap:wrap}.gen-frames .actions{flex-wrap:wrap}@media(max-width:600px){.gen-frames,.gen-version-grid{grid-template-columns:1fr}.gen-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


#gen-settings .tm-checkbox{display:flex;align-items:center;gap:8px;margin:12px 0}#gen-settings .tm-checkbox input{width:18px;height:18px;margin:0}
.director-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#director-form label,#am-generation-form label{display:block;margin:12px 0}#director-form textarea,#am-generation-form textarea,#am-generation-form select{width:100%;box-sizing:border-box}#director-form textarea{min-height:80px}.prompt-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;padding:14px;background:#11151d;border:1px solid #343943;border-radius:8px;font:13px/1.7 sans-serif;color:#d0d6e0}#director-form summary{cursor:pointer;padding:10px 0}@media(max-width:600px){.director-fields{grid-template-columns:1fr}}

.asset-card.turnaround{grid-column:span 2}.asset-card.turnaround .asset-image>img,.gen-reference-grid img{object-fit:contain}@media(max-width:380px){.asset-card.turnaround{grid-column:span 1}}

.episode-pager{display:flex;gap:8px;align-items:center;justify-content:center;margin:12px 0}.episode-pager span{white-space:nowrap;color:#aaa;font-size:12px}.project-style-gallery{margin:14px 0}.project-style-gallery .style-grid{max-height:340px;overflow:auto;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));margin-top:12px}.style-gallery-controls{display:flex;gap:12px}.style-gallery-controls label{flex:1;min-width:0}.voice-library-list{display:grid;gap:10px;max-height:300px;overflow:auto}.voice-library-list section{padding:10px;border:1px solid #333;border-radius:8px}.voice-library-list input[type=radio]{width:18px;height:18px;display:inline-block;margin-right:8px}.voice-library-list audio{width:100%;max-width:100%;height:40px}[hidden]{display:none!important}

.appearance-panel{padding:16px;border:1px solid var(--border,#343844);border-radius:12px;margin-bottom:18px}.appearance-list{display:flex;gap:8px;flex-wrap:wrap}.appearance-list [aria-pressed=true]{outline:2px solid #ab86ff}.appearance-panel details{margin:12px 0}.gen-reference-grid section{min-width:0}.gen-reference-grid section select{width:100%}

[data-q-i18n]{display:contents}.ui-language{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}.ui-language select{width:auto;min-width:86px;padding:6px}.dialog-head .ui-language{margin-left:auto}.dialog-head{flex-wrap:wrap}.tago-account .ui-language{font-size:0}.tago-account .ui-language select{font-size:12px}.guest-header .ui-language{margin-left:auto}@media(max-width:600px){.ui-language{font-size:11px}.tago-account{gap:5px}.ui-language select{min-width:78px;padding:5px}.dialog-head h2{flex:1 1 100%}.dialog-head .ui-language{margin:0 auto 0 0}.guest-header{flex-wrap:wrap;gap:10px}}

.billing-page h2{margin-top:32px}.billing-page .notice{padding:16px;background:#2b273c;border-radius:12px}.billing-number{font-size:32px;line-height:1.6}.billing-page small{display:block;overflow-wrap:anywhere}.billing-page td{overflow-wrap:anywhere}.billing-payment-options{display:flex;flex-wrap:wrap;gap:12px}.billing-qr{display:grid;justify-items:center;gap:12px}.billing-qr img{background:white;border-radius:8px;max-width:100%}.billing-admin{margin-top:40px;padding-top:24px;border-top:1px solid #333}.billing-summary{margin:24px 0}.billing-page .settings-card{min-width:0}.billing-page .table-wrap{max-width:100%;overflow:auto}.billing-page td:first-child{max-width:320px}

.continuity-list{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.continuity-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}.continuity-compare section{min-width:0}.continuity-compare video,.continuity-compare img{display:block;width:100%;max-height:230px;object-fit:contain;background:#111;border-radius:12px}.continuity-compare h3{font-size:14px}#continuity-form textarea{min-height:72px;resize:vertical}@media(max-width:600px){.continuity-compare{grid-template-columns:1fr}.continuity-compare video{max-height:175px}}
.billing-readiness .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.billing-payment-options .btn{min-height:46px}.billing-qr .actions{justify-content:center;flex-wrap:wrap}.billing-qr [role=status]{min-height:24px}@media(max-width:600px){.billing-readiness .settings-grid{grid-template-columns:1fr}.billing-payment-options{flex-direction:column}.billing-payment-options .btn{width:100%}}
.dialog-body label.dub-checkbox{display:flex;align-items:center;gap:10px;margin:14px 0;line-height:1.5}.dialog-body .dub-checkbox input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0}.dub-workbench button:focus-visible,.dub-select:focus-within{outline:2px solid #8de1db;outline-offset:3px}.dub-select{min-height:32px;cursor:pointer}@media(max-width:600px){.dub-workbench .btn,.dub-profile .btn,.dub-versions .btn,#dub-line-form .btn,#dub-settings-form .btn{min-height:44px;white-space:normal}.dub-select,.dialog-body label.dub-checkbox{min-height:44px}.dub-profile select,.dub-profile input,#dub-line-form input:not([type=checkbox]),#dub-line-form select,#dub-line-form textarea,#dub-settings-form input:not([type=checkbox]){font-size:16px}}
dialog:has(#dub-line-form,#dub-settings-form,.dub-profile-grid,.dub-versions) .dialog-head{position:sticky;top:0;background:var(--panel);z-index:2}
.dub-workbench{margin:24px 0;padding:20px;border:1px solid var(--border,#33404c);background:#121c25;border-radius:16px}.dub-workbench>details>summary{display:flex;gap:16px;align-items:center;cursor:pointer;font-size:18px}.dub-workbench p{line-height:1.65;overflow-wrap:anywhere}.dub-shots{display:grid;gap:20px;margin-top:20px}.dub-shot{padding:16px;background:#17212b;border:1px solid #35414a;border-radius:12px;min-width:0}.dub-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.dub-line{margin-top:14px;padding:16px;border-left:3px solid #3eb8b0;background:#0e1720;border-radius:8px}.dub-line audio,.dub-profile audio,.dub-versions audio{display:block;width:100%;max-width:480px;margin:12px 0}.dub-select{display:flex!important;gap:10px;align-items:center}.dub-select input{width:auto!important}.dub-issue{color:#ffc079;font-size:13px}.dub-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.dub-profile{border:1px solid #35414a;padding:16px;border-radius:12px;min-width:0}.dub-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dub-versions article{padding:16px;border-bottom:1px solid #35414a}.dub-workbench small{color:#a6b8c6}.dub-workbench .actions{flex-wrap:wrap}.dub-profile input,.dub-profile select,.dub-fields input{max-width:100%;min-width:0}@media(max-width:600px){.dub-workbench{padding:12px}.dub-shot,.dub-line{padding:12px}.dub-heading{align-items:flex-start;flex-direction:column}.dub-fields{grid-template-columns:1fr}.dub-profile-grid{grid-template-columns:1fr}.dub-workbench>details>summary{font-size:16px;flex-wrap:wrap}}
