/* Visual adaptation of the user-supplied Downloads/index.html. Business controls retain their IDs and handlers. */
.workspace-loading{background:rgba(23,25,27,.9);border-color:#34383b;color:#d8dcdf}
.workspace-loading .loading-spinner{border-color:#d8dcdf35;border-top-color:#d8dcdf}
.workspace-loading button{background:#232628;border:1px solid #41474c;border-radius:999px;color:#e3e7e9;padding:6px 12px;font-size:11px}
:root,:root[data-theme=dark]{--bg:#050709;--card:#0d1012;--soft:#191d20;--input:#101518;--text:#f2f2f2;--muted:#888d92;--border:rgba(230,236,241,.10);--accent:#e3e7e9;--accent-soft:#20272c;--strong:#f2f2f2;--inverse:#111619;--shadow:none;--sidebar:208px;color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;background:#080b0d;color:var(--text)}
body{margin:8px;min-height:calc(100dvh - 16px);background:#050709;font-size:14px;letter-spacing:0;border:1px solid #353a3d;border-radius:5px;-webkit-font-smoothing:antialiased}
body::before,body::after{display:none}.cinematic-background,.background-toggle{display:none!important}
button,input,select,textarea{font-family:inherit}button:disabled{cursor:not-allowed}button,a,input,select,textarea{outline-color:#acb3b7}button:focus-visible,a:focus-visible{outline:2px solid #b6bcc0;outline-offset:3px}
.rail{position:fixed;inset:9px auto 9px 9px;width:var(--sidebar);border:0;border-right:1px solid rgba(230,236,241,.17);border-radius:0;box-shadow:none;background:radial-gradient(ellipse at 60% -10%,#131313 0,#070707 42%,#050505 80%);padding:30px 16px 25px;align-items:stretch;backdrop-filter:none;color:#aeb2b6;z-index:20}
.studio-brand{display:flex;flex-direction:column;gap:17px;padding-left:12px;color:#f2f2f2;font-weight:600;font-size:16px;white-space:nowrap}.studio-brand img{display:block;object-fit:contain}.studio-brand small{font-size:15px;font-weight:400;color:#b8bdc0}
.rail nav{display:flex;flex-direction:column;gap:12px;margin-top:53px}.nav-button{display:flex;flex-direction:row;justify-content:flex-start;gap:17px;height:48px;padding:0 20px;border-radius:999px;font-size:14px;border:1px solid transparent}.nav-button svg{width:20px;height:20px}.nav-button.selected{background:linear-gradient(120deg,#222426,#16191b);border-color:#ffffff10;color:#f6f6f6}.nav-button:hover{background:#ffffff09;color:#fff}.nav-button i{top:12px;right:15px}.rail-bottom{padding:20px 12px 0;gap:0}.studio-storage-note{font-size:9px;color:#697178;margin-top:16px}
.app-shell{margin-left:var(--sidebar);min-height:calc(100dvh - 18px);background:radial-gradient(ellipse 110% 600px at 65% -100px,rgba(58,62,65,.46),transparent 80%),linear-gradient(180deg,#0b0e10 0,#06090b 48%,#040709 100%)}
.app-header{height:44px;padding:6px 36px;border:0;justify-content:flex-end}.app-header>.wordmark{display:none}.header-right{background:none;border:0;box-shadow:none;backdrop-filter:none;padding:0;gap:14px;color:#77818a;font-size:10px}.save-status,.connection{font-size:10px}.header-right .icon-button{font-size:18px}
main{max-width:1900px;margin:auto;padding:18px 36px 25px;min-height:calc(100dvh - 62px);display:flex;flex-direction:column}.home-view{margin:0;max-width:none}.home-heading{margin:0 0 36px;align-items:center;gap:20px}.home-heading h1{font-size:36px;font-weight:400;letter-spacing:-1px;line-height:1.25;display:flex;align-items:center;gap:15px}#workspace-count{font-size:12px;border:1px solid #ffffff0b;background:#1c2023;color:#aeb4b8;border-radius:99px;padding:5px 9px;letter-spacing:0}.studio-lede{color:#888d92;font-size:12px;margin-top:13px}
.home-create,.generate-button,.h3-dialog .h3-primary{background:#f4f5f6;color:#111619;border:1px solid #e0e3e5;box-shadow:none;border-radius:999px;font-weight:500}.home-create{font-size:12px;padding:12px 23px;min-height:44px}.home-create:hover,.generate-button:hover{background:#fff;color:#111619}.quiet-button,.h3-account button{background:#111619;border:1px solid #2d3439;color:#bbc3c8;border-radius:999px;font-size:11px;padding:8px 14px;backdrop-filter:none}.quiet-button:hover{background:#1b2126;border-color:#66727b}.text-button{color:#a6b4bd}
.studio-workspace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:49px;margin-bottom:27px;border-bottom:1px solid #292f33}.studio-filter-tabs{display:flex;align-self:stretch;gap:27px}.studio-filter-tabs button{padding:0 0 12px;background:none;border:0;border-bottom:2px solid transparent;color:#8e959b;font-size:12px}.studio-filter-tabs button[aria-pressed=true]{border-color:#e3e7e9;color:#f0f2f3}.studio-workspace-tools{display:flex;align-items:center;gap:12px;padding-bottom:10px}.studio-search{display:flex;align-items:center;gap:10px;border:1px solid #31373c;border-radius:999px;padding:0 14px;height:36px;color:#8c969e;font-size:11px}.studio-search input{background:transparent;border:0;color:#e5e8eb;width:150px;min-width:0;outline:none}.studio-view-switch{display:flex;border:1px solid #343b40;padding:3px;border-radius:999px}.studio-view-switch button{font-size:11px;padding:5px 9px;border:0;border-radius:99px;background:none;color:#8c969e}.studio-view-switch button[aria-pressed=true]{color:#fff;background:#242b30}
.workspace-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 19px}.workspace-card{position:relative;border:1px solid #252b30;border-radius:10px;background:linear-gradient(140deg,rgba(17,21,24,.9),rgba(9,13,16,.75));overflow:visible;box-shadow:none;transition:border-color .2s,transform .2s}.workspace-card:hover{border-color:#626d75;transform:translateY(-2px);box-shadow:none}.workspace-card-open{display:block;width:100%;border:0;background:none;padding:0;text-align:left;border-radius:10px;overflow:hidden}.workspace-cover{aspect-ratio:2.24/1;min-height:0;height:auto;background:#11171b;border:0;border-radius:0;overflow:hidden}.workspace-cover video{width:100%;height:100%;object-fit:cover}.workspace-cover:before,.workspace-cover:after{display:none}.workspace-cover>svg{width:34px;height:34px;opacity:.45}.workspace-cover-number{font-size:13px;color:#5a6770}.workspace-card-info{padding:12px 47px 14px 14px;min-height:72px;background:none}.workspace-card-info h2{font-size:15px;font-weight:500;color:#e6eaed;letter-spacing:0}.workspace-card-info p{font-size:11px;color:#8d969d;margin-top:5px}.workspace-card-arrow{display:none}.workspace-type-badge{position:absolute;top:10px;right:10px;left:auto;background:#11171bd9;border:1px solid #ffffff20;border-radius:99px;color:#e0e4e7;font-size:11px;padding:5px 10px;z-index:2}.workspace-card-footer{display:none}.workspace-card-footer.studio-menu-open{display:flex;position:absolute;right:12px;bottom:48px;background:#1a2025;padding:8px;border:1px solid #414b52;border-radius:10px;z-index:8;min-width:140px;box-shadow:0 12px 35px #0009}.workspace-card-footer>span{display:none}.workspace-card-actions{display:flex;flex-direction:column;width:100%;gap:0}.workspace-card-actions button{padding:10px 14px;width:100%;text-align:left;border-radius:6px;font-size:12px}.workspace-card-actions button:hover{background:#ffffff09;text-decoration:none}.studio-card-menu{position:absolute;right:14px;bottom:20px;width:30px;height:30px;background:#1c2327;border:1px solid #ffffff08;border-radius:50%;color:#919da5;letter-spacing:2px;font-size:14px}.workspace-task-badge{left:8px;bottom:auto;top:10px;max-width:60%;font-size:10px}.workspace-completion-new{font-size:9px}.workspace-grid.studio-list-view{grid-template-columns:1fr}.studio-list-view .workspace-card-open{display:grid;grid-template-columns:170px 1fr;align-items:center}.studio-list-view .workspace-cover{height:86px;aspect-ratio:auto}.studio-list-view .workspace-type-badge{top:8px;left:8px;right:auto;font-size:9px}.studio-list-view .workspace-card-info{padding-left:22px}
#workspace-pages{display:flex;align-items:center;justify-content:center;gap:8px;margin:26px 0 10px;color:#77818a;font-size:11px}#workspace-pages button{min-width:29px;height:29px;border:1px solid transparent;border-radius:99px;background:none;color:#87939c}#workspace-pages button[aria-current=page]{background:#1c242a;border-color:#34404a;color:#e1e8ed}#workspace-pages button:disabled{opacity:.3}.studio-footer{margin-top:auto;display:flex;justify-content:space-between;gap:20px;padding-top:38px;color:#62717b;font-size:9px;line-height:1.8;letter-spacing:.2em}.community-heading{margin-top:35px}.community-heading h2{font-size:18px;font-weight:500}.community-grid{gap:19px}.community-card{background:#10161a;border-color:#263037}
.h3-account{padding:0;border:0;display:flex;gap:7px;flex-wrap:wrap}.h3-account>strong{margin:0 0 10px;padding:0 0 15px;border:0;border-bottom:1px solid #3c4145;border-radius:0;background:none;backdrop-filter:none;font-size:12px;font-weight:400;line-height:2;color:#d8dee2;white-space:normal;width:100%}.h3-account button{width:100%;font-size:11px;padding:7px 10px;text-align:left;white-space:normal}.h3-account .studio-profile{font-size:13px;padding:12px 10px;color:#e2e7eb;background:#1b2227}.h3-account .studio-account-extra{border:0;background:none;color:#89949c}.h3-notice{width:100%;padding:8px 0 0;font-size:10px;line-height:1.6;color:#7a8b97}.h3-guest-actions{width:100%;display:grid;gap:8px}
.workspace-return{margin:0 0 23px}.workspace-return button{font-size:11px;color:#8b959e}.page-heading{margin-bottom:22px;align-items:center}.page-heading h1{font-size:30px;font-weight:400;letter-spacing:-.7px}.breadcrumb{font-size:11px;color:#8b959e;margin-bottom:10px}.heading-actions{gap:10px}.shot-overview{margin-bottom:10px;font-size:12px;color:#8998a3}.studio-shot-columns{display:grid;grid-template-columns:minmax(240px,1fr) 170px 140px 120px 65px;align-items:center;min-height:42px;padding:0 12px;border-bottom:1px solid #31393f;font-size:10px;color:#8a949c}.studio-shot-columns>span:last-child{text-align:right}.shot-list{gap:0}.shot-section{position:relative;border:0;border-bottom:1px solid #20292f;border-radius:0;background:transparent;box-shadow:none;overflow:visible}.shot-section-header{display:grid;grid-template-columns:22px 88px minmax(110px,1fr) 170px 140px 120px 20px;gap:12px;min-height:84px;padding:13px 72px 13px 5px;width:100%;border:0;border-radius:0;background:transparent;text-align:left}.shot-section-header:hover{background:#ffffff06}.shot-section-number{font-size:10px;color:#697b87}.shot-cover{width:88px;height:50px;border-radius:5px;background:#191d20}.shot-cover video{width:100%;height:100%;object-fit:cover}.shot-section-title{min-width:0}.shot-section-name{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e6eaed}.shot-section-summary{font-size:10px;color:#70808b;margin-top:5px}.studio-shot-params,.studio-shot-date{font-size:10px;color:#94a0a8}.shot-section-status{font-size:10px;color:#93b3a1}.shot-section-status.working{color:#c9d9e4}.shot-delete{position:absolute;right:7px;top:25px;border:1px solid #29343b;border-radius:99px;padding:6px 10px;color:#8b9aa4;font-size:10px}.shot-completion-new{position:absolute;left:32px;top:7px;font-size:8px}.next-shot{border:1px dashed #2a353e;background:transparent;border-radius:9px;height:47px;color:#9cabb5;font-size:12px;margin-top:19px}.shot-section-body{background:transparent;padding:0}.shot-section.expanded{background:transparent;border:0}.studio-editor-nav{margin-bottom:16px}.studio-editor-nav button{font-size:11px}.shot-edit-tools{margin-bottom:22px;min-height:42px;padding:0}.shot-edit-tools>label{display:none}#shot-name{font-size:29px;font-weight:400;letter-spacing:-.5px;width:100%;max-width:100%;padding:0;border:0;background:none;color:#edf1f4}
.shot-editor .workspace{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);gap:26px;align-items:start}.shot-editor .compose-column{display:flex;flex-direction:column;gap:15px}.shot-editor .render-column{display:contents}.shot-editor .card{background:linear-gradient(145deg,rgba(28,33,37,.7),rgba(16,21,25,.75));border:1px solid #2b343b;border-radius:10px;box-shadow:none;padding:17px 16px 12px}.shot-editor .preview-card{grid-column:2;grid-row:1;background:transparent;border:0;padding:0}.preview-stage{aspect-ratio:16/10;border:1px solid #394753;background:#040607;border-radius:8px;min-height:230px}.preview-stage video{object-fit:contain;max-height:65vh}.preview-empty{color:#8095a5;font-size:12px}.preview-history{margin-top:15px;font-size:10px}.preview-history-controls button{border-radius:99px;background:#10191f;border-color:#343d43}.result-meta,.result-timing{font-size:10px;color:#718593}.shot-editor .preview-card>.section-heading{min-height:32px;margin-bottom:10px}.shot-editor .preview-card h2{font-weight:400;font-size:11px;color:#96a8b4}
.composer-top{flex-wrap:wrap;gap:9px}.composer-options{margin-left:auto}.segmented{background:#15191c;border:1px solid #343a3f;border-radius:99px;padding:3px}.segmented button{padding:6px 10px;border-radius:99px;font-size:10px}.segmented button.active{background:#292d30;box-shadow:none}.enhance-toggle{font-size:10px;gap:7px}.enhance-label{display:inline-flex;align-items:center;gap:4px}.enhance-label small{font-size:9px}.composer-options .pill{display:none}.prompt-heading{margin-top:15px}.section-heading>label,.section-heading h2,.reference-details>summary{font-size:11px;font-weight:500;color:#d2d9de}.shot-editor .composer .prompt-editor{height:298px;min-height:180px;line-height:1.85;font-size:12px;color:#b7c1c9}.prompt-tabs{gap:20px;border-color:#2b353d}.prompt-tabs button{font-size:10px}.prompt-footer{border-color:#2b353d}.prompt-tools{font-size:10px}.reference-tags{font-size:10px}.ref-mention{font-size:11px;background:#2a3033;border-color:#4c545a}.shot-editor .references{container-type:normal}.asset-library-entry{flex-wrap:wrap;gap:9px}.asset-library-entry>.muted{font-size:10px}.reference-actions{margin-left:auto;gap:6px}.reference-actions .quiet-button,#open-assets{font-size:10px;padding:7px 10px}.auto-assets-stack>.muted{font-size:10px}.asset-tabs{gap:15px;margin-bottom:12px}.asset-tabs button{font-size:10px}.asset-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.asset-slot{border-color:#343d43;border-radius:8px}.asset-help{font-size:10px;color:#8d969d}.shot-editor .settings-card{grid-column:1/-1;grid-row:2;margin-top:22px;padding:25px 0 8px;border:0;border-top:1px solid #303639;border-radius:0;background:transparent;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:20px}.generation-settings{min-width:0}.settings-summary{font-size:12px;gap:12px;flex-wrap:wrap}.settings-card .generation-footer{margin:0;padding:0;border:0;min-width:225px}.generation-summary{font-size:10px;min-height:17px;margin-bottom:7px}.generate-button{height:42px;min-height:42px;padding:0 20px;font-size:12px}.generation-fill{background:#a8beb6}.cancel-generation{margin-top:8px;border-radius:99px;font-size:11px}.form-error{font-size:11px}.settings-summary select,.settings-summary input,.settings-summary .quick-select{border-radius:99px;background:#111518;border-color:#343d43;font-size:11px}.settings-content{background:#111518;padding:15px;border:1px solid #303639;border-radius:10px;margin-top:12px}.card input,.card select{color:#d3dce3}.shot-editor .composer:focus-within{border-color:#657983}
.h3-dialog,dialog{background:#101619;color:#e3e8eb;border:1px solid #3a454d;border-radius:18px;box-shadow:0 25px 100px #0009}.h3-dialog input,.h3-dialog select,dialog input,dialog select{background:#0a1014;border-color:#303c45;color:#e3e8eb}.h3-dialog button{backdrop-filter:none}.asset-library-panel{background:#0e151a;border-color:#343a3f}.job-card{background:#111518;border-color:#343a3f}.h3-login-art{filter:saturate(.65)}
@media(min-width:1800px){main{padding-left:54px;padding-right:54px}.home-heading{margin-top:12px}.workspace-grid{gap:25px}.shot-editor .workspace{grid-template-columns:minmax(390px,.72fr) minmax(0,1.28fr)}}
@media(max-width:1200px){:root{--sidebar:180px}.rail{padding:24px 12px}.studio-brand{font-size:14px}.studio-brand small{font-size:13px}main{padding:18px 24px 24px}.app-header{padding:6px 24px}.studio-shot-columns{grid-template-columns:minmax(200px,1fr) 130px 100px 80px 60px}.shot-section-header{grid-template-columns:20px 65px minmax(100px,1fr) 130px 100px 80px 15px;gap:8px}.shot-cover{width:65px;height:43px}.shot-editor .workspace{grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);gap:18px}.studio-search input{width:115px}}
@media(max-width:980px){:root{--sidebar:155px}.studio-brand{padding-left:5px;font-size:13px}.studio-brand small{font-size:12px}.nav-button{padding:0 13px;gap:12px;font-size:12px}.rail-bottom{padding-left:4px;padding-right:4px}.workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-shot-columns{grid-template-columns:minmax(180px,1fr) 130px 80px 60px}.studio-shot-columns>span:nth-child(3),.studio-shot-date{display:none}.shot-section-header{grid-template-columns:18px 60px minmax(100px,1fr) 130px 80px 15px}.shot-cover{width:60px}.shot-editor .workspace{grid-template-columns:1fr}.shot-editor .render-column{display:flex;flex-direction:column}.shot-editor .preview-card{grid-column:auto;grid-row:auto}.shot-editor .settings-card{grid-column:auto;grid-row:auto}.shot-editor .composer .prompt-editor{height:240px}.asset-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:680px){body{margin:0;border:0;border-radius:0;padding-bottom:64px}.rail{position:fixed;inset:auto 0 0;width:100%;height:62px;flex-direction:row;padding:5px 10px;border:0;border-top:1px solid #303a41;background:#090f13f5;z-index:40}.studio-brand,.rail-bottom{display:none}.rail nav{margin:0;display:flex;flex-direction:row;justify-content:space-around;gap:4px}.nav-button{height:50px;flex:1;justify-content:center;flex-direction:column;gap:4px;padding:5px;font-size:9px;border-radius:12px}.nav-button svg{width:18px;height:18px}.app-shell{margin:0;min-height:calc(100dvh - 64px)}.app-header{height:38px;padding:4px 16px}.connection{display:none}main{padding:16px;min-height:calc(100dvh - 102px)}.home-heading{margin-bottom:26px;gap:10px}.home-heading h1{font-size:28px}.home-create{font-size:11px;padding:9px 13px;min-height:38px}.studio-lede{font-size:10px}.studio-workspace-toolbar{flex-wrap:wrap;gap:10px;padding-bottom:10px}.studio-filter-tabs{min-height:32px;gap:22px}.studio-workspace-tools{width:100%;padding:0;justify-content:space-between}.studio-search{flex:1}.studio-search input{width:100%}.workspace-grid{gap:13px}.workspace-card-info{padding:10px 30px 10px 10px;min-height:65px}.workspace-card-info h2{font-size:12px}.workspace-card-info p{font-size:9px;white-space:normal}.studio-card-menu{right:7px;bottom:17px;width:25px;height:25px}.workspace-type-badge{font-size:9px;top:6px;right:6px;padding:3px 7px}.studio-list-view .workspace-card-open{grid-template-columns:115px 1fr}.studio-footer{font-size:8px;padding-top:26px}.h3-account.studio-mobile-account{padding:10px 16px;display:flex;align-items:center;gap:6px;border-bottom:1px solid #252e34}.h3-account.studio-mobile-account>strong{font-size:10px;width:auto;border:0;padding:0;margin:0 auto 0 0}.h3-account.studio-mobile-account button{width:auto;font-size:10px;padding:5px 8px}.h3-account.studio-mobile-account .h3-notice{font-size:9px}.page-heading h1{font-size:25px}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.heading-actions button{font-size:10px;padding:7px 10px}.studio-shot-columns{grid-template-columns:1fr 70px 50px}.studio-shot-columns>span:nth-child(2){display:none}.shot-section-header{grid-template-columns:16px 57px minmax(60px,1fr) 65px 12px;padding-right:53px;gap:6px}.studio-shot-params{display:none}.shot-section-summary{font-size:9px}.shot-section-name{font-size:11px}.shot-cover{width:57px;height:39px}.shot-delete{right:0;font-size:9px;padding:5px 7px}.shot-section-status{font-size:9px}.shot-editor .settings-card{display:flex;flex-direction:column;gap:14px}.generation-settings,.settings-card .generation-footer{width:100%}.asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.preview-stage{min-height:190px}#shot-name{font-size:25px}.preview-stage video{max-height:50vh}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.workspace-card{transition:none}.workspace-card:hover{transform:none}}

/* User revision: supplied charcoal image, balanced editor, generation below preview. */
body,.app-shell{background:#080a0c url('/assets/studio-charcoal-background.png') center top/cover fixed no-repeat}
.app-header{background:transparent}
.workspace-cover{width:100%;display:flex}
.studio-search>span{white-space:nowrap;flex-shrink:0}
.home-heading h1{font-size:38px;font-weight:500;letter-spacing:-.025em}
.studio-lede{font-size:13px;line-height:1.65}
.quiet-button{height:34px;padding:0 15px;font-size:11px;font-weight:500;background:linear-gradient(130deg,#202326,#101315);border-color:rgba(230,236,241,.17)}
.home-create,.generate-button{background:linear-gradient(180deg,#fff,#f1f1f2);font-weight:500}
.shot-editor .workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px}
.shot-editor .render-column{display:flex;flex-direction:column;gap:0;min-width:0}
.shot-editor .preview-card{grid-column:auto;grid-row:auto}
.shot-editor .preview-stage{width:100%;height:auto;min-height:0;aspect-ratio:16/9;max-height:none}
.shot-editor .preview-stage video{width:100%;height:100%;max-height:none;object-fit:contain}
.shot-editor .settings-card{grid-column:auto;grid-row:auto;display:flex;flex-direction:column;align-items:stretch;gap:16px;margin-top:22px;padding-top:20px}
.shot-editor .settings-card .generation-footer{width:100%;min-width:0}
.shot-editor .settings-summary{gap:10px}
.shot-editor .composer,.shot-editor .references{background:linear-gradient(145deg,rgba(30,33,35,.78),rgba(17,20,23,.7));border-color:#2d3236}
.shot-editor .references{container-type:inline-size}
.shot-editor .references .asset-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.shot-editor .references .asset-grid.frames{grid-template-columns:repeat(2,minmax(0,1fr))}
.shot-editor .references .asset-grid[data-kind=videos],.shot-editor .references .asset-grid[data-kind=audios]{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:980px){.shot-editor .workspace{grid-template-columns:minmax(0,1fr)}}
@media(max-width:680px){.shot-editor .references .asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-heading h1{font-size:28px}}

/* Reference sidebar balance and profile; existing account actions live in its menu. */
#studio-account{position:relative}.h3-account{position:relative;display:flex;flex-direction:column;gap:0}
.h3-account .studio-balance{display:flex;flex-direction:column;gap:6px;padding:0 0 18px;border:0;border-bottom:1px solid #3c4145;border-radius:0;background:none;color:#f2f2f2;margin-bottom:22px;width:100%}
.studio-balance small{font-size:11px;color:#899096}.studio-balance strong{font-size:23px;line-height:1.4;font-weight:500;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.h3-account .studio-profile-trigger{display:flex;align-items:center;gap:12px;width:100%;padding:0;border:0;background:none;border-radius:0;font-size:12px;color:#aeb4b8}
.studio-avatar{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;border-radius:50%;background:linear-gradient(130deg,#505355,#393c3e);color:#f3f4f5;font-size:15px;font-weight:500}.studio-profile-chevron{margin-left:auto;color:#687179}
.studio-profile-menu{position:absolute;z-index:60;bottom:48px;left:0;min-width:190px;padding:7px;background:#191c1ef5;border:1px solid #454c50;border-radius:12px;box-shadow:0 15px 50px #0009}
.h3-account .studio-profile-menu button{border:0;border-radius:7px;padding:10px 12px;color:#b8c2ca;background:none;font-size:12px;text-align:left}.h3-account .studio-profile-menu button:hover{background:#2e3336}
#studio-account .h3-notice{display:none}
@media(max-width:680px){.h3-account.studio-mobile-account{flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.h3-account.studio-mobile-account .studio-balance{width:auto;margin:0;padding:0;border:0}.h3-account.studio-mobile-account .studio-profile-trigger{width:auto}.studio-profile-menu{top:65px;bottom:auto;left:auto;right:10px}.studio-mobile-account .h3-notice{display:none}}

/* Symmetric four-panel editor, matching the user's original editor structure. */
.h3-account .studio-balance strong{padding:0;margin:0;border:0;border-radius:0;background:none;backdrop-filter:none;line-height:1.4}
.shot-editor .workspace{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:stretch}
.shot-editor .compose-column,.shot-editor .render-column{display:contents}
.shot-editor .composer{grid-column:1;grid-row:1;display:flex;flex-direction:column;height:440px;min-height:0;min-width:0}
.shot-editor .composer>.composer-top,.shot-editor .composer>.section-heading,.shot-editor .composer>.prompt-tabs,.shot-editor .composer>.prompt-footer{flex-shrink:0}
.shot-editor .composer .prompt-editor{flex:1 1 0;min-height:0;height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;resize:none;border-radius:0}
.shot-editor .composer>.enhance-fx-host,#prompt-dialog>.enhance-fx-host{display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0}
.shot-editor .composer>.enhance-fx-host>.enhance-fx,#prompt-dialog>.enhance-fx-host>.enhance-fx{min-height:0}
.shot-editor .preview-card{grid-column:2;grid-row:1;display:flex;flex-direction:column;height:440px;min-height:0;padding:17px 16px 12px;background:linear-gradient(145deg,rgba(30,33,35,.78),rgba(17,20,23,.7));border:1px solid #2d3236;border-radius:10px}
.shot-editor .preview-card>.section-heading{min-height:24px;margin-bottom:12px}
.shot-editor .preview-stage{flex:1;aspect-ratio:auto;min-height:0;position:relative}
.shot-editor .preview-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.shot-editor .references{grid-column:1;grid-row:2;align-self:start}
.shot-editor .settings-card{grid-column:2;grid-row:2;align-self:start;margin:0;padding:17px 16px 16px;background:linear-gradient(145deg,rgba(30,33,35,.78),rgba(17,20,23,.7));border:1px solid #2d3236;border-radius:10px}
.shot-editor .settings-card .generation-footer{padding-top:12px;border-top:1px solid #2d3236}
.shot-editor .settings-card .settings-summary select,.shot-editor .settings-card .settings-summary input{border-radius:999px;background:#111518;border-color:#343d43;font-size:11px}
.shot-editor .references .asset-grid{grid-template-columns:repeat(9,minmax(0,1fr));gap:6px}
@container(max-width:600px){.shot-editor .references .asset-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@container(max-width:340px){.shot-editor .references .asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.shot-editor .workspace{grid-template-columns:minmax(0,1fr)}.shot-editor .composer,.shot-editor .preview-card,.shot-editor .references,.shot-editor .settings-card{grid-column:1;grid-row:auto}.shot-editor .compose-column,.shot-editor .render-column{display:flex;flex-direction:column;gap:20px}.shot-editor .composer{height:350px;flex-shrink:0}.shot-editor .preview-card{height:auto}.shot-editor .preview-stage{flex:none;aspect-ratio:16/9}}

.shot-editor #ratio,.shot-editor #duration,.shot-editor #resolution-preset{border-radius:999px;border-color:#343d43;background:#111518;font-size:11px}

/* Exact reference control treatment: transparent sidebar account controls and neutral chips. */
.h3-account .studio-balance,.h3-account .studio-balance:is(:hover,:active,:focus),.h3-account .studio-profile-trigger,.h3-account .studio-profile-trigger:is(:hover,:active,:focus){background:transparent;background-image:none;box-shadow:none;backdrop-filter:none}
.h3-account .studio-balance strong,.h3-account .studio-balance:hover strong{background:transparent;box-shadow:none}
.h3-account .studio-balance::before,.h3-account .studio-balance::after,.h3-account .studio-profile-trigger::before,.h3-account .studio-profile-trigger::after{display:none}
.studio-home-actions{display:flex;align-items:center;gap:20px}.studio-home-actions .studio-search{height:41px;width:260px;background:linear-gradient(105deg,rgba(15,18,20,.7),rgba(29,32,35,.35));padding:0 15px}.studio-search svg{width:16px;height:16px;flex-shrink:0}.studio-home-actions .studio-search input{width:100%;font-size:11px}
.studio-workspace-tools{gap:8px}.studio-type-chip{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 14px;font-size:11px;border-radius:999px;border:1px solid #252c31;background:transparent;color:#aeb5ba;white-space:nowrap}.studio-type-chip:hover{border-color:#596168}.studio-type-chip[aria-pressed=true]{border-color:#484f55;color:#eef0f2;background:linear-gradient(130deg,#25292d,#14181b)}
.studio-type-select{position:relative;display:inline-flex;align-items:center}.studio-type-select select{appearance:none;height:35px;border:1px solid #333a3f;border-radius:999px;color:#d1d6da;background:linear-gradient(130deg,#1a1e21,#0d1114);padding:0 31px 0 14px;cursor:pointer;font-size:11px}.studio-type-select>svg{position:absolute;right:11px;width:12px;height:12px;pointer-events:none;color:#a6b0b6}
.studio-view-switch{gap:3px;align-items:center;height:36px;padding:2px;margin-left:3px}.studio-view-switch button{width:31px;height:30px;padding:0;display:grid;place-items:center;border-radius:50%;background:transparent;color:#8c969e}.studio-view-switch button[aria-pressed=true]{color:#fff;background:#171c20;box-shadow:0 0 0 1px #41484d}.studio-view-switch svg{width:16px;height:16px}
.studio-editor-nav{display:none}.shot-section.expanded{border:1px solid #3c4247;border-radius:10px;margin:12px 0;background:rgba(12,15,17,.48);overflow:hidden}.shot-section.expanded>.shot-section-header{border-bottom:1px solid #2d3236;background:rgba(255,255,255,.025)}.shot-section.expanded>.shot-section-body{padding:20px}.shot-edit-tools{margin-bottom:18px;min-height:30px;gap:12px}.shot-edit-tools>label{display:block;font-size:11px;color:#888d92}.shot-edit-tools #shot-name{font-size:16px;font-weight:500;letter-spacing:0}
@media(max-width:1200px){.studio-home-actions{gap:12px}.studio-home-actions .studio-search{width:190px}}
@media(max-width:680px){.home-heading{flex-wrap:wrap}.studio-home-actions{width:100%}.studio-home-actions .studio-search{flex:1;width:auto}.studio-workspace-tools{justify-content:flex-end;flex-wrap:wrap}.studio-type-chip{padding:0 10px}.shot-section.expanded>.shot-section-body{padding:12px}.studio-home-actions .home-create{flex-shrink:0}}

.shot-edit-tools>label{white-space:nowrap;flex-shrink:0}

/* Reference dimensions and workspace detail composition. */
:root,:root[data-theme=dark]{--sidebar:208px;--bg:#050505}
.app-shell{position:relative}.app-header{position:absolute;right:0;top:0;height:36px;z-index:2}
main{padding:53px 36px 25px;min-height:calc(100dvh - 18px)}main:has(#create-view:not([hidden])){padding-top:32px}
.workspace-return{margin-bottom:26px}.home-heading{margin-top:0}
.h3-account .studio-balance strong{display:flex;align-items:center;gap:8px}.studio-balance strong svg{width:14px;height:14px;color:#9ca3a8;flex-shrink:0}
.studio-detail-heading{margin-bottom:0}.studio-detail-heading h1{font-size:33px;font-weight:500;letter-spacing:-.025em}.studio-detail-lede{font-size:12px;color:#8b9298;margin-top:10px}.studio-detail-heading .heading-actions{gap:12px;align-items:center}.studio-detail-heading .studio-search{height:41px;width:260px;background:linear-gradient(105deg,rgba(15,18,20,.7),rgba(29,32,35,.35))}.studio-detail-heading .studio-search input{width:100%;font-size:11px}
#create-view{--shot-columns:35px minmax(230px,38fr) minmax(65px,6fr) minmax(115px,15fr) minmax(120px,16fr) minmax(90px,15fr) 42px}
.studio-shot-columns,.shot-section-header{display:grid;grid-template-columns:var(--shot-columns);gap:0;padding:0 4px 0 5px}.studio-shot-columns{margin-top:34px;min-height:45px;font-size:11px}.studio-shot-columns>span{display:block}.studio-shot-columns>span:last-child{padding-right:8px}
.shot-section-header{min-height:83px}.studio-shot-identity{position:relative;display:flex;align-items:center;gap:17px;min-width:0;padding-right:12px}.shot-cover{width:96px;height:54px;flex-shrink:0;border-radius:6px;display:grid;place-items:center;background:#191d20}.shot-section-summary{font-size:10px;color:#64737e;margin-top:6px}.studio-shot-duration,.studio-shot-params,.studio-shot-date{display:block;font-size:12px;color:#9ba6ae}.shot-section-status{font-size:11px;color:#98a59c}.shot-section-header>.disclosure-arrow{display:none}.shot-section.expanded>.shot-section-header>.disclosure-arrow{display:block;text-align:center;color:#87939c;font-size:13px}
.shot-section>.shot-delete{display:none}.studio-shot-menu-toggle{position:absolute;right:4px;top:25px;width:33px;height:33px;padding:0;border-radius:50%;border:1px solid #ffffff0e;color:#d5dadd;background:linear-gradient(135deg,#25292c,#0f1315);font-size:14px;letter-spacing:1px}.studio-shot-menu-toggle:hover{background:#2a3035;border-color:#4b5359}.studio-shot-menu-open>.shot-delete{display:block;top:61px;right:4px;z-index:10;padding:10px 24px;border:1px solid #454c50;background:#191c1e;color:#b8c2ca;border-radius:8px;font-size:12px;box-shadow:0 12px 30px #0008}
.shot-section.expanded>.studio-shot-menu-toggle{right:4px}.shot-section.expanded>.shot-section-header>.disclosure-arrow{transform:none;font-size:0}.shot-completion-new{left:4px;top:0}
.studio-shots-footer{display:flex;align-items:center;justify-content:space-between;padding-top:23px;gap:16px;font-size:10px;color:#62727e}.studio-shots-footer>div{display:flex;gap:10px}
@media(min-width:1600px){:root,:root[data-theme=dark]{--sidebar:228px}main{padding-left:46px;padding-right:46px}.workspace-cover{max-height:192px}.workspace-card-info{min-height:79px}}
@media(max-width:1220px){:root,:root[data-theme=dark]{--sidebar:178px}.rail{padding-left:12px;padding-right:12px}.studio-brand{font-size:14px}.nav-button{padding:0 17px;gap:13px;font-size:13px}main{padding-left:27px;padding-right:27px}.studio-detail-heading .studio-search{width:215px}#create-view{--shot-columns:27px minmax(190px,38fr) 55px 105px minmax(88px,1fr) 75px 38px}.studio-shot-identity{gap:10px}.shot-cover{width:75px;height:46px}}
@media(max-width:980px){#create-view{--shot-columns:25px minmax(150px,1fr) 55px 95px 75px 38px}.studio-shot-columns>span:nth-child(5),.studio-shot-date{display:none}.studio-detail-heading{flex-wrap:wrap}.studio-detail-heading .heading-actions{margin-left:auto}}
@media(max-width:680px){main{padding:50px 16px 24px}.app-header{display:none}main:has(#create-view:not([hidden])){padding-top:18px}.studio-detail-heading .heading-actions{width:100%;margin-top:12px}.studio-detail-heading .studio-search{flex:1;width:auto}#create-view{--shot-columns:20px minmax(135px,1fr) 62px 35px}.studio-shot-columns>span:nth-child(3),.studio-shot-columns>span:nth-child(4),.studio-shot-duration,.studio-shot-params{display:none}.shot-cover{width:57px;height:39px}.studio-shot-identity{gap:7px}.shot-section-status{font-size:9px}.studio-shots-footer{align-items:flex-start}.studio-shots-footer>div{flex-wrap:wrap;justify-content:flex-end}.rail nav{margin:0}.nav-button{padding:5px;font-size:9px;gap:4px}}

/* Center the workspace action icon independently of font metrics and button padding. */
.studio-card-menu{display:flex;align-items:center;justify-content:center;padding:0;line-height:1;letter-spacing:0}
.studio-card-menu svg{display:block;width:16px;height:16px;flex:none;fill:currentColor;stroke:none}

/* Material actions and the secondary add-shot entry. */
.library-asset-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:8px}
.library-asset-actions>.text-button{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:32px;padding:6px 8px;font-size:12px;text-align:center;border-radius:7px}
.library-asset-actions>.text-button:disabled{opacity:.4}
#add-shot-bottom{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;margin:16px 0 24px;padding:14px 20px;background:transparent;color:var(--muted);border:1px solid var(--border);border-radius:12px;box-shadow:none;text-align:center;font:inherit;font-size:14px;font-weight:500;cursor:pointer;transition:color .18s,border-color .18s}
#add-shot-bottom:hover{background:transparent;color:var(--text);border-color:var(--muted);filter:none}
#add-shot-bottom:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#add-shot-bottom>span:first-child{font-size:20px;line-height:1}
