/* MuseGate reference: neutral paper, outlined navigation, generous upload tiles.
   Final presentation layer; intentionally contains no capability/permission rules. */
:root{
 --l-bg:var(--yx-bg);--l-surface:var(--yx-surface);--l-surface-2:var(--yx-surface-strong);--l-ink:var(--yx-text);--l-muted:var(--yx-text-2);--l-line:var(--yx-hairline);--l-accent:var(--yx-accent);--l-accent-ink:var(--yx-accent-text);
 --bg:var(--yx-bg);--bg-2:var(--yx-bg-raise);--bg-3:var(--yx-bg-deep);--surface:var(--yx-surface);--surface-2:var(--yx-surface-strong);--surface-3:var(--yx-surface-hover);--ink:var(--yx-text);--ink-2:var(--yx-text-2);--muted:var(--yx-text-2);--muted-2:var(--yx-text-3);--line:var(--yx-hairline);--line-soft:var(--yx-hairline);--line-strong:var(--yx-hairline-strong);
 --blue:var(--yx-accent);--blue-2:var(--yx-accent-hover);--blue-3:var(--yx-accent-text);--blue-tint-solid:var(--yx-accent-surface);--blue-tint:var(--yx-accent-soft);--l-sh-mini:0 1px 3px var(--yx-shadow);--l-sh-card:0 8px 24px var(--yx-shadow);
}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6;background:var(--bg);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit;letter-spacing:0}button{font-weight:400;transition:background .16s,border-color .16s,color .16s}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}button:hover:not(:disabled){box-shadow:none;transform:none}input,select,textarea{font-size:14px;border-radius:12px!important;min-width:0}select{padding-right:34px!important}textarea{line-height:1.7}label{font-size:14px;font-weight:500;color:var(--ink)}h1,h2,h3{letter-spacing:0}p{overflow-wrap:anywhere}.muted,.r-caption{color:var(--yx-text-3)}
.layout{grid-template-columns:256px minmax(0,1fr);align-items:start}.sidebar{background:linear-gradient(90deg,var(--yx-bg-raise),var(--yx-bg-raise))!important;border-right:1px solid var(--yx-hairline-strong)!important;padding:22px 14px;gap:8px;height:100dvh;scrollbar-width:thin;scrollbar-color:var(--yx-hairline-strong) transparent}
.sidebar .brand{font-size:24px;font-weight:650;letter-spacing:2px;margin:0 12px 32px;min-height:42px;display:flex;align-items:center;gap:8px}.sidebar .brand>span{font-weight:400;font-size:32px;color:var(--ink)}
.sidebar .nav{display:flex;align-items:center;gap:16px;min-height:52px;width:100%;padding:12px 16px;border:1px solid transparent!important;border-radius:16px;font-size:16px;font-weight:400!important;color:var(--yx-text)!important;text-align:left;box-shadow:none!important;white-space:normal;line-height:1.5}.sidebar .nav.active{background:var(--yx-accent-soft)!important;border:1px solid var(--yx-hairline-strong)!important;color:var(--yx-text)!important;box-shadow:none!important}.sidebar .nav.active::before{display:none}.sidebar .nav:hover:not(:disabled){background:var(--yx-bg-raise)!important;color:var(--yx-danger)!important}.m-nav-icon{width:21px;height:21px;flex:0 0 21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.m-nav-label{min-width:0}.r-nav-advanced{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}.r-nav-advanced summary{font-size:13px;color:var(--yx-text-2);padding:8px 16px}.r-nav-advanced .nav{font-size:15px}.r-help{font-size:12px}.sidebar #adminNav{margin-top:12px}
main.content{max-width:none;width:100%;padding:0 32px 32px!important;margin:0!important;min-width:0}
main.content>.top{min-height:84px;position:sticky;top:0;margin:0 -32px 0;padding:16px 32px;background:var(--yx-bg-raise);border-bottom:1px solid var(--yx-hairline-strong);backdrop-filter:blur(12px);gap:16px;flex-wrap:nowrap;z-index:60}.top .eyebrow,.top>div:first-child>p{display:none}#pageTitle{font-size:24px;font-weight:650;line-height:1.5}.top-account{gap:20px}.top .pill{font-size:13px;padding:8px 0;background:transparent!important;box-shadow:none!important;border:0}.top .pill::before{content:'◉';font-size:20px;margin-right:9px;color:var(--blue)}.top .pill b{font-size:21px;letter-spacing:.5px;font-weight:600}.avatar{width:36px;height:36px;background:var(--yx-surface-strong);color:var(--yx-accent-text)}.top-avatar{border-radius:50%}
.m-creative-tabs{display:flex;gap:20px;align-items:center;min-height:64px;margin:0 0 24px;overflow-x:auto;scrollbar-width:none}.m-creative-tab{position:relative;flex-shrink:0;border:0;border-radius:0;background:transparent;padding:18px 16px 16px;font-size:16px;color:var(--yx-text);white-space:nowrap}.m-creative-tab:hover:not(:disabled){background:transparent;color:var(--blue)}.m-creative-tab.active{color:var(--blue)}.m-creative-tab.active::after{content:'';position:absolute;height:3px;bottom:0;left:0;right:0;background:var(--blue)}
.card,.r-card,.balance-card,.notice,.video-task{border:1px solid var(--line)!important;box-shadow:none!important;border-radius:20px!important}.card:hover{box-shadow:none!important}.primary{border-color:var(--blue);border-radius:11px;font-weight:500}.primary:disabled{opacity:.5}.toast{font-size:14px;max-width:min(620px,90vw)}#avatarMenu{font-size:14px}dialog{box-shadow:0 20px 80px var(--yx-shadow)!important}
.m-creative-tabs{position:sticky;top:84px;z-index:50;background:var(--bg)}
#imageStudio .fi-option select{white-space:nowrap}
@media(max-width:420px){#imageStudio .fi-tools .fi-option{flex:1 1 100%}#imageStudio .fi-tools .fi-option select{flex:1;max-width:none;width:100%;font-size:13px!important}}
#imageStudio .fi-hero h2{font-family:inherit;font-size:18px;font-weight:500;text-align:left;margin:0 0 4px}
@media(max-width:700px){.m-creative-tabs{top:70px}#imageStudio .fi-hero h2{font-size:17px}}
/* Restaurant workspace: the editor scrolls independently, the quote remains visible. */
.r-intro{margin:0 0 16px;max-width:none}.r-intro h2{font-size:18px;font-weight:500;margin:0 0 4px}.r-intro p{font-size:13px}.r-alert{background:var(--yx-surface-strong);border:1px solid var(--line);border-radius:10px;font-size:12px;padding:10px 14px;margin-bottom:16px}
.r-layout{grid-template-columns:minmax(0,1.12fr) minmax(300px,1fr);gap:24px}.r-card{padding:20px;background:var(--yx-surface-strong)}.r-card h3{font-size:17px;font-weight:600;margin-bottom:14px}.r-card label{font-size:14px;margin-top:16px}.r-card input,.r-card select{min-height:44px}.r-grid{gap:0 14px}#rDescription,#rSpeech{min-height:98px;padding:16px;border-radius:16px!important}.mat-ai-heading button{font-size:13px;padding:7px 12px;border-radius:9px}.mat-ai-note{font-size:12px;line-height:1.7}.mat-inline-style{margin:16px 0}.r-actions button{font-size:13px;padding:9px 13px}.r-summary{top:108px;background:var(--yx-surface-strong)}.r-summary ul{padding:18px 0 18px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0;font-size:14px}.r-summary li{margin-bottom:12px}.r-price{font-size:30px;font-weight:600}.r-submit{min-height:48px;font-size:15px}.r-note{font-size:12px;background:var(--yx-surface-strong);border-radius:12px}.r-inline-check{font-size:13px!important;font-weight:400;line-height:1.7}.r-inline-check input{min-height:0;accent-color:var(--blue)}
/* Each upload category is a distinct reference card, with a usable large upload target. */
#rMaterials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.mat-group{background:var(--yx-surface-strong);border:1px solid var(--yx-hairline-strong);border-radius:18px;padding:18px;margin:0;box-shadow:0 0 0 1px var(--yx-highlight);min-width:0}.mat-heading{gap:8px}.mat-heading h3{font-size:16px;font-weight:600;margin:0}.mat-count{font-size:12px;color:var(--yx-text)}.mat-group>.r-caption{font-size:12px;line-height:1.65;margin:8px 0 14px}.mat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}.mat-grid:empty{display:none}.mat-thumb img{height:85px;border-radius:10px;object-fit:contain;background:var(--yx-surface-strong)}.mat-thumb{gap:4px;font-size:11px}.mat-thumb .mat-btn{font-size:11px;padding:3px 7px;min-height:26px}.mat-group>.mat-btn:has(+input[type=file]){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;min-height:116px;background:var(--yx-field);border:1px dashed var(--yx-hairline-strong);border-radius:15px;padding:18px 10px;font-size:14px;font-weight:400}.mat-group>.mat-btn:has(+input[type=file])::before{content:'＋' / '';font-size:32px;font-weight:300;line-height:1;color:var(--yx-text)}.mat-group>.mat-btn:has(+input[type=file]):hover:not(:disabled){background:var(--yx-field);border-color:var(--blue)}.mat-group[data-material=person_asset_id]{grid-column:1/-1}.mat-group>.mat-btn{font-size:12px;padding:8px 12px;border-radius:10px;background:var(--yx-surface-strong)}.mat-person-list{gap:10px;margin:14px 0}.mat-person{flex-basis:90px;min-width:0}.mat-person>button:first-child{width:90px;background:var(--yx-surface-strong);border-radius:12px;padding:5px;line-height:1.5}.mat-person img{height:88px;width:78px;object-fit:contain;background:var(--yx-surface-strong)}.mat-person span{max-height:36px;overflow:hidden;font-size:11px}.mat-group>input:not([hidden]){font-size:13px}.mat-group[data-material=person_asset_id]>.mat-btn:has(+input[type=file]){min-height:90px;flex-direction:row;margin-top:8px}.mat-person .selected{border-color:var(--blue)!important;box-shadow:0 0 0 1px var(--blue)}
/* Image workspace, with the original gallery, history, editor and controls intact. */
#imageStudio{max-width:none}.m-image-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:24px;align-items:start}.m-image-editor,.m-image-results{min-width:0}.m-image-editor{background:var(--yx-surface-strong);border:1px solid var(--yx-hairline-strong);border-radius:24px;padding:18px;box-shadow:0 0 0 1px var(--yx-highlight)}.fi-hero{padding:0;text-align:left}.fi-hero h2{font-family:inherit;font-size:18px;font-weight:500;text-align:left;margin:0 0 4px;line-height:1.5}.fi-hero p{font-size:13px;text-align:left;margin:0 0 20px}.m-image-results{background:var(--yx-surface-strong);border:1px solid var(--yx-hairline-strong);border-radius:20px;overflow:hidden;min-height:660px}.fi-gallery-head{margin:0;padding:18px 20px;border-bottom:1px solid var(--line);gap:12px;align-items:center}.fi-gallery-head h2{font-size:17px;font-weight:500}.fi-gallery-head p{font-size:12px;margin-top:4px}.fi-gallery-head button{font-size:13px;border-radius:999px;padding:10px 16px;background:transparent}.fi-gallery{padding:20px;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fi-gallery .empty{grid-column:1/-1;min-height:400px}.fi-work{min-width:0;overflow:hidden;border-radius:14px!important}.fi-work img{width:100%;height:230px;object-fit:contain;background:var(--yx-surface-strong)}.fi-work-info{padding:14px}.fi-work-info p{font-size:13px}.fi-work-actions{flex-wrap:wrap;gap:8px}.fi-work-actions button,.fi-work-actions a{font-size:12px}.light-history{margin:12px 20px 20px;border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--yx-surface-strong)}.light-history-top h2{font-size:12px;letter-spacing:0}.light-history-list{grid-template-columns:1fr;max-height:160px}.light-history-item time{font-size:11px}.light-history-toggle{background:var(--yx-surface-strong)}
#imageStudio .fi-composer{max-width:none;margin:0;background:var(--yx-surface-strong)!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
#imageStudio .fi-composer .ref-panel{background:var(--yx-surface-strong);border:1px solid var(--yx-hairline-strong);border-radius:18px;padding:18px;margin-bottom:20px;display:flex;flex-direction:column}#imageStudio .ref-heading{display:flex;flex-direction:column;align-items:stretch;gap:16px}#imageStudio .ref-heading strong{font-size:16px;font-weight:600;color:var(--yx-text);order:0}#imageStudio #refAdd-image{order:1;width:100%;height:138px;min-height:138px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:14px!important;background:var(--yx-surface-strong);border:1px dashed var(--yx-hairline-strong);border-radius:15px;color:var(--ink);padding:12px}#imageStudio #refAdd-image::after{content:none}#imageStudio #refAdd-image::before{content:'＋' / '';font-size:32px;font-weight:300;line-height:1}#imageStudio .ref-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;padding-top:14px;gap:10px}#imageStudio .ref-grid:empty{display:none}#imageStudio .ref-item{min-width:0;width:auto}#imageStudio .ref-item img{height:90px;object-fit:contain;background:var(--yx-surface-strong)}#imageStudio .ref-info{font-size:12px;margin-top:10px}
#imageStudio .fi-composer>label{position:static;width:auto;height:auto;clip-path:none;overflow:visible;display:block;font-size:14px;margin:0 0 8px}#imageStudio #fiPrompt{border:1px solid var(--line)!important;border-radius:18px 18px 0 0!important;background:var(--yx-surface-strong)!important;font-size:15px;padding:18px;min-height:110px;max-height:260px;height:110px;resize:vertical;display:block}#imageStudio .fi-tools{padding:14px 12px;margin-top:0;border:1px solid var(--line);border-top:0;border-radius:0 0 18px 18px;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;background:var(--yx-surface-strong)}#imageStudio .fi-option{display:flex;align-items:center;gap:6px;border-radius:10px!important;border:1px solid var(--yx-hairline-strong)!important;background:var(--yx-surface-strong)!important;padding:5px 8px!important;margin:0!important;min-width:0;height:auto;min-height:38px;flex:0 1 auto}#imageStudio .fi-option>span{font-size:11px;color:var(--yx-text-2)}#imageStudio .fi-option select{font-size:12px!important;font-weight:400!important;background-color:transparent!important;border:0!important;box-shadow:none!important;padding:2px 24px 2px 0!important;min-height:26px;width:auto;max-width:155px}#fiCount{font-size:11px;flex-basis:100%}.fi-output-count{font-size:12px}
#fiGenerate::after{content:none}#imageStudio .ref-help{font-size:11px;line-height:1.7;margin:12px 0;color:var(--yx-text-2)}.fi-fineprint{font-size:11px;max-width:none;margin:12px 0}.fi-presets{margin:16px 0 0;justify-content:flex-start;gap:7px}.fi-presets button{padding:6px 10px;font-size:12px;border-radius:999px;background:var(--yx-surface-strong)}.fi-status{font-size:13px;margin-top:12px}
#studio .workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:24px}#studio .workspace>.card{min-width:0}#studio .ref-panel{padding:18px;background:var(--yx-surface-strong);border-radius:18px;border:1px solid var(--line)}#studio .ref-heading{align-items:center;gap:12px;flex-wrap:wrap}#studio #refAdd-video{font-size:14px;border:1px dashed var(--yx-hairline-strong);border-radius:14px;background:var(--yx-surface-strong);min-height:100px;width:100%;margin-top:10px}#studio #refAdd-video::before{content:'＋' / '';font-size:26px;margin-right:10px}#studio .ref-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#studio .ref-item img{object-fit:contain;background:var(--yx-surface-strong)}#studio .empty{min-height:420px}#studio textarea{min-height:140px}
.r-works{gap:20px}.r-work h3{font-size:16px}.balance-card strong{font-weight:550}.template-card{box-shadow:none!important}.w-card{box-shadow:none!important}.w-tabs button{font-size:14px}
@media(min-width:1600px){.layout{grid-template-columns:284px minmax(0,1fr)}main.content{padding-left:42px!important;padding-right:42px!important}main.content>.top{margin-left:-42px;margin-right:-42px;padding-left:42px;padding-right:42px}.sidebar .nav{font-size:18px}.m-creative-tab{font-size:18px;padding-left:20px;padding-right:20px}.r-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}.mat-heading h3{font-size:18px}}
@media(min-width:1101px){#rForm{max-height:calc(100dvh - 318px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--yx-hairline-strong) transparent;scrollbar-gutter:stable}.r-summary{max-height:calc(100dvh - 318px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--yx-hairline-strong) transparent}.m-image-results{max-height:calc(100dvh - 200px);min-height:calc(100dvh - 200px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--yx-hairline-strong) transparent}}
@media(min-width:701px) and (max-width:1100px){.layout{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:18px 10px}.sidebar .nav{font-size:14px;gap:10px;padding:11px}.sidebar .brand{font-size:23px}main.content{padding:0 22px 24px!important}main.content>.top{padding:16px 22px;margin-left:-22px;margin-right:-22px}.m-creative-tabs{gap:4px}.m-creative-tab{font-size:14px;padding-left:12px;padding-right:12px}.r-layout,.m-image-layout,#studio .workspace{grid-template-columns:minmax(0,1fr)}.r-summary{position:static}.m-image-results{min-height:420px}#pageTitle{font-size:21px}.top .pill b{font-size:17px}.top-account{gap:8px}}
@media(max-width:700px){.layout{grid-template-columns:minmax(0,1fr)}.sidebar{position:static;height:auto;overflow:visible;padding:12px;gap:5px;flex-direction:row;flex-wrap:wrap;border-right:0!important;border-bottom:1px solid var(--line)}.sidebar .brand{width:100%;font-size:22px;margin:0 8px 8px;min-height:30px}.sidebar .brand>span{font-size:27px}.sidebar .nav{width:auto;min-height:40px;padding:8px 10px;font-size:12px!important;gap:7px;border-radius:11px}.m-nav-icon{width:16px;height:16px;flex-basis:16px}.r-nav-advanced{margin:0;padding:0;border:0}.r-nav-advanced summary{font-size:12px;padding:8px}.r-nav-advanced[open]{flex-basis:100%}.r-nav-advanced .nav{display:inline-flex}.sidebar #adminNav{margin:0}main.content{padding:0 14px 24px!important}main.content>.top{padding:12px 14px;margin:0 -14px;min-height:70px;gap:8px}#pageTitle{font-size:18px;letter-spacing:0}.top-account{gap:6px}.top .pill{font-size:10px;line-height:1.4}.top .pill::before{display:none}.top .pill b{font-size:14px;display:block;margin:0}.top-avatar{padding:3px}.avatar{width:30px;height:30px}.m-creative-tabs{gap:3px;min-height:52px;margin-bottom:16px}.m-creative-tab{font-size:13px;padding:14px 11px}.r-intro h2{font-size:17px}.r-intro p{font-size:12px}.r-layout,.m-image-layout,#studio .workspace{grid-template-columns:minmax(0,1fr);gap:16px}.r-card{padding:16px}.r-summary{position:static}.r-card h3{font-size:16px}#rMaterials{gap:12px;grid-template-columns:minmax(0,1fr)}.mat-group{padding:16px}.mat-group[data-material=person_asset_id]{grid-column:auto}.mat-group>.mat-btn:has(+input[type=file]){min-height:110px}.mat-thumb img{height:88px}.r-grid{grid-template-columns:minmax(0,1fr)}.m-image-editor{padding:16px;border-radius:20px}.m-image-results{min-height:360px}.fi-gallery{padding:14px;grid-template-columns:minmax(0,1fr)}.fi-gallery-head{padding:16px;flex-wrap:wrap}.fi-work img{height:260px}.fi-hero h2{font-size:17px;margin:0 0 4px}.fi-hero p{font-size:13px;margin-bottom:16px}#imageStudio .fi-composer{padding:0!important}#imageStudio .fi-tools{padding:10px;gap:6px}#imageStudio .fi-option{flex:1 1 42%;padding:4px 7px!important}#imageStudio .fi-option select{max-width:140px;min-width:0;font-size:12px!important}.light-history{margin:10px 14px 14px}.fi-presets{flex-wrap:wrap}.r-summary ul{font-size:13px}.r-inline-check{font-size:12px!important}.card{padding:18px}.fi-work{padding:0}.r-work{padding:0}.template-dialog,.r-legal{max-width:calc(100vw - 24px)}input,select,textarea{font-size:16px}}
/* Command 57: image composer uses the same centered input card language. */
#imageStudio .m-image-editor{max-width:760px;margin:0 auto;background:var(--yx-card-matte);border-radius:24px;padding:24px;box-shadow:var(--ds-shadow)}
#imageStudio .fi-hero{text-align:center;padding:12px 12px 24px}
#imageStudio .fi-hero h2{font-size:34px;letter-spacing:-.6px;text-align:center;margin:0 0 8px}
#imageStudio .fi-hero p{text-align:center;font-size:13px;margin:0;color:var(--muted)}
#imageStudio .fi-composer{border-radius:24px!important;background:var(--yx-card-matte)!important;padding:0!important}
#imageStudio #fiPrompt{min-height:150px;border-radius:18px 18px 0 0!important;background:var(--yx-field)!important}
#imageStudio .fi-tools{border-radius:0 0 18px 18px;align-items:center}


#imageStudio .m-image-results{max-width:960px;margin:24px auto 0}




/* 指令57C: 图片页生成键圆形化。真实容器是 .fi-tools（复数），用高特异性压掉历史 flex 规则 */
#imageStudio .m-image-editor .m-image-dock .fi-tools #fiGenerate{flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;border-radius:50%!important;font-size:0!important;position:static!important;margin-left:auto!important}
#imageStudio .m-image-editor .m-image-dock .fi-tools #fiGenerate::after{content:"\2191";font-size:20px;line-height:1}

/* ================================================================
   指令61M: 图片自由创作 + 视频工作台 1:1 设计稿
   结构：作品卡片流在上（5列）+ 底部通栏生成栏（输入+参考图+胶囊参数+价格+生成键）
   ================================================================ */

/* ---------- 通用：胶囊参数组（select 的表现层） ---------- */
.m-pill-group{display:flex;align-items:center;gap:8px;min-width:0;flex:0 0 auto}
.m-pill-label{font-size:11px;color:var(--yx-text-2);white-space:nowrap}
.m-pills{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.m-pills.is-disabled{opacity:.5;pointer-events:none}
.m-pill{border:1px solid var(--yx-hairline-strong)!important;border-radius:999px!important;background:var(--yx-surface-strong)!important;color:var(--yx-text)!important;font-size:12px!important;font-weight:500!important;padding:6px 13px!important;min-height:30px;white-space:nowrap;box-shadow:none!important}
.m-pill:hover:not(:disabled){border-color:var(--yx-accent)!important;color:var(--yx-accent-text)!important}
.m-pill.on{background:var(--yx-accent)!important;border-color:var(--yx-accent)!important;color:var(--yx-accent-ink,var(--yx-accent-text))!important}
/* 90D：时长快捷档（15/30/45/60）旁边的自定义秒数输入与就近下调提示 */
.yx-custom-duration{width:88px;min-height:30px;padding:0 10px;border:1px solid var(--yx-hairline-strong)!important;border-radius:999px!important;background:var(--yx-surface-strong)!important;color:var(--yx-text)!important;font-size:12px!important;text-align:center}
.yx-custom-duration::placeholder{color:var(--yx-text-2);font-size:11px}
.yx-custom-duration:focus{outline:2px solid var(--yx-accent);outline-offset:1px}
.yx-custom-hint{font-size:11px;color:var(--yx-text-2);white-space:nowrap}
.yx-custom-duration[hidden],.yx-custom-hint[hidden]{display:none!important}
.m-pill-row .yx-custom-duration,.m-pill-row .yx-custom-hint{margin-left:6px}
.m-pill-source{display:none!important}

/* ---------- 61U：胶囊下拉（1:1 参考图：浅灰胶囊 + 点击展开菜单；select/checkbox 仍是真实状态） ---------- */
.m-dd-group{position:relative;display:inline-flex;min-width:0;flex:0 0 auto}
.m-dd{display:inline-flex!important;align-items:center;gap:6px;height:36px;padding:0 12px 0 15px!important;border:0!important;border-radius:999px!important;background:color-mix(in srgb,var(--yx-text) 6%,var(--yx-field))!important;color:var(--yx-text)!important;font-size:13px!important;font-weight:500!important;line-height:1!important;white-space:nowrap;box-shadow:none!important;cursor:pointer}
.m-dd:hover:not(:disabled){background:color-mix(in srgb,var(--yx-text) 10%,var(--yx-field))!important}
.m-dd[aria-expanded="true"]{background:color-mix(in srgb,var(--yx-text) 12%,var(--yx-field))!important}
.m-dd:disabled{opacity:.45;cursor:not-allowed}
.m-dd-value{overflow:hidden;text-overflow:ellipsis;max-width:190px}
.m-dd-caret{width:12px;height:12px;flex:0 0 12px;color:var(--yx-text-2);opacity:.75;transition:transform .16s ease}
.m-dd[aria-expanded="true"] .m-dd-caret{transform:rotate(180deg)}
.m-dd-menu{position:fixed;z-index:9999;min-width:150px;max-width:min(320px,calc(100vw - 24px));max-height:min(340px,60vh);overflow:auto;padding:6px;border-radius:14px;background:var(--yx-surface-strong);box-shadow:0 16px 40px color-mix(in srgb,black 22%,transparent),0 0 0 1px color-mix(in srgb,var(--yx-text) 14%,transparent);animation:m-dd-in .14s ease}
@keyframes m-dd-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.m-dd-opt{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-height:36px;padding:9px 12px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--yx-text)!important;font-size:13px!important;font-weight:500!important;text-align:left;white-space:nowrap;box-shadow:none!important;cursor:pointer}
.m-dd-opt:hover{background:color-mix(in srgb,var(--yx-text) 8%,transparent)!important}
.m-dd-opt.on{color:var(--yx-accent-text)!important}
.m-dd-tick{font-size:12px;color:var(--yx-accent);line-height:1}
html #studio .m-video-scroll .m-pill-row .m-dd{height:34px!important}
html #restaurant .m-r-params .m-dd{height:34px!important}
/* 音频原勾选框收进下拉后彻底隐藏（优先级要压过 label.audio 的 display:inline-flex） */
html #studio .m-video-scroll .m-pill-row label.audio.m-pill-source{display:none!important}

/* ---------- 图片自由创作：竖排（标题 → 作品流 → 生成栏） ---------- */
#imageStudio .m-image-layout{display:block!important}
#imageStudio .m-image-layout>.fi-hero{display:flex!important;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:6px 2px 18px!important;text-align:left!important;margin:0!important}
#imageStudio .fi-hero .fi-eyebrow{font-size:11px;color:var(--yx-text-3);letter-spacing:.08em}
#imageStudio .m-image-layout>.fi-hero h2{font-size:26px!important;font-weight:650!important;text-align:left!important;letter-spacing:-.3px;margin:2px 0 4px!important}
#imageStudio .m-image-layout>.fi-hero p{font-size:12.5px!important;text-align:left!important;margin:0!important;color:var(--yx-text-2)!important}
.m-works-record{border:1px solid var(--yx-hairline-strong)!important;border-radius:999px!important;background:var(--yx-surface-strong)!important;color:var(--yx-text)!important;font-size:12px!important;padding:8px 16px!important;font-weight:500!important;white-space:nowrap}
.m-works-record:hover:not(:disabled){border-color:var(--yx-accent)!important}

/* 作品区（上） */
#imageStudio .m-image-results{background:transparent!important;border:0!important;border-radius:0!important;min-height:0!important;max-height:none!important;overflow:visible!important;box-shadow:none!important}
#imageStudio .fi-gallery-head{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap;padding:0 2px 12px!important;margin:0!important;border-bottom:1px solid var(--yx-hairline)!important}
#imageStudio .fi-gallery-head h2{font-size:15px!important;font-weight:600!important;margin:0!important;flex:0 0 auto}
.m-works-count{font-size:12px!important;font-weight:400!important;color:var(--yx-text-3)!important;margin-left:6px}
#imageStudio .fi-gallery-head p{display:none!important}
.m-works-all{margin-left:auto!important;border:1px solid var(--yx-hairline-strong)!important;border-radius:999px!important;background:var(--yx-surface-strong)!important;color:var(--yx-text)!important;font-size:12px!important;padding:6px 14px!important}
.m-works-all:hover:not(:disabled){border-color:var(--yx-accent)!important}
#imageStudio .fi-gallery{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important;padding:0!important;margin-top:14px!important}
#imageStudio .fi-work{border:1px solid var(--yx-hairline)!important;border-radius:14px!important;background:var(--yx-surface-strong)!important;overflow:hidden!important}
#imageStudio .fi-work>button{border-radius:0!important}
#imageStudio .fi-work img{width:100%!important;height:auto!important;aspect-ratio:4/5!important;object-fit:cover!important;background:var(--yx-field)!important}
#imageStudio .fi-work-info{padding:10px 12px 12px!important}
#imageStudio .fi-work-info>p:first-child{font-size:12.5px!important;font-weight:600!important;margin:0 0 4px!important;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.m-work-spec{font-size:11px!important;color:var(--yx-text-3)!important;margin:0 0 8px!important}
#imageStudio .fi-work-actions{gap:6px!important}
#imageStudio .fi-work-actions button,#imageStudio .fi-work-actions a{font-size:11px!important;padding:5px 8px!important;border-radius:8px!important}
#imageStudio .fi-gallery .fi-empty{grid-column:1/-1!important;min-height:200px!important;border:1px dashed var(--yx-hairline-strong)!important;border-radius:16px!important;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--yx-text-3)}
#imageStudio .light-history{margin:16px 0 0!important}

/* 生成栏（下）：通栏白卡 = 描述 + 参考图 + 参数 + 生成键 */
#imageStudio .m-composer-card{background:var(--yx-surface-strong)!important;border:1px solid var(--yx-hairline-strong)!important;border-radius:20px!important;padding:18px!important;margin-top:24px!important;box-shadow:0 0 0 1px var(--yx-highlight)}
#imageStudio .m-composer-card>label{font-size:12px!important;color:var(--yx-text-2)!important;margin:0 0 6px!important;font-weight:500!important}
#imageStudio .m-composer-card #fiPrompt{border:1px solid var(--yx-hairline)!important;border-radius:14px!important;background:var(--yx-field)!important;font-size:14.5px!important;padding:14px 16px!important;min-height:96px!important;max-height:220px!important;height:auto!important;resize:vertical!important;display:block!important;width:100%!important}
#imageStudio .m-composer-card .fi-tools{border:0!important;border-radius:0!important;padding:12px 0 0!important;margin:0!important;background:transparent!important;gap:10px 8px!important;align-items:center!important}
#imageStudio .m-composer-card #fiCount{font-size:11px!important;flex:0 0 auto!important;margin-right:auto!important;color:var(--yx-text-3)!important}
#imageStudio .m-composer-card .fi-output-count{font-size:12px!important;color:var(--yx-text-2)!important}
#imageStudio .m-composer-card .ref-panel{margin:14px 0 0!important;padding:12px!important;background:var(--yx-field)!important;border-radius:14px!important}
#imageStudio .m-composer-card #refAdd-image{min-height:64px!important;height:64px!important;width:auto!important;flex:0 0 92px!important;padding:8px!important;font-size:12px!important;border-radius:10px!important}
#imageStudio .m-composer-card #refAdd-image::before{font-size:20px!important}
#imageStudio .m-composer-card .ref-grid{grid-template-columns:repeat(8,minmax(0,72px))!important;padding-top:8px!important}
#imageStudio .m-composer-card .ref-item img{height:64px!important;border-radius:8px!important}
#imageStudio .m-composer-card .ref-help{margin:6px 0 0!important}
#imageStudio .m-composer-card .ref-heading strong{font-size:13px!important}
#imageStudio .m-composer-card .fi-fineprint{margin:12px 0 0!important}
#imageStudio .m-composer-card .fi-status{margin-top:10px!important}
#imageStudio .m-composer-card .fi-presets{margin:10px 0 0!important}
/* 生成键：橙红圆角实心 */
#imageStudio .m-composer-card .fi-tools #fiGenerate{flex:0 0 auto!important;width:auto!important;min-width:96px!important;height:40px!important;min-height:40px!important;padding:0 22px!important;border-radius:999px!important;font-size:13px!important;font-weight:600!important;margin-left:8px!important;position:static!important}
#imageStudio .m-composer-card .fi-tools #fiGenerate::after{content:none!important}

/* ---------- 视频工作台：竖排（作品流 → 生成栏 → 任务列表） ---------- */
#studio .workspace{display:block!important;max-width:none!important}
#studio .m-video-scroll{background:color-mix(in srgb,var(--yx-surface-strong) 72%,transparent)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--yx-hairline-strong)!important;border-radius:20px!important;padding:18px!important;box-shadow:0 0 0 1px var(--yx-highlight);margin-top:24px!important}
#studio .m-video-scroll .card-title{margin-bottom:12px!important}
#studio .m-video-scroll .card-title h2{font-size:15px!important;font-weight:600!important}
#studio .m-video-scroll>label{font-size:12px!important;color:var(--yx-text-2)!important;margin-top:14px!important}
#studio .m-video-scroll .prompt-wrap{margin:0 0 8px!important}
#studio .m-video-scroll #prompt{border:2px solid var(--yx-accent)!important;border-radius:14px!important;background:var(--yx-surface-strong)!important;font-size:14.5px!important;padding:14px 16px!important;min-height:96px!important;width:100%!important;display:block!important}
#studio .m-video-scroll .prompt-wrap .counter{font-size:11px!important;bottom:8px!important;right:14px!important;color:var(--yx-text-3)!important}
#studio .m-video-scroll .two{display:flex!important;flex-wrap:wrap;gap:12px 10px!important;align-items:center}
#studio .m-video-scroll .two>div{flex:0 0 auto!important;display:flex;align-items:center;gap:8px}
#studio .m-video-scroll .two>div>label{margin:0!important;font-size:11px!important;color:var(--yx-text-2)!important}
#studio .m-video-scroll .m-pill-group{margin-top:12px!important}
#studio .m-video-scroll .price{display:flex!important;align-items:center;gap:14px!important;flex-wrap:wrap;margin-top:16px!important;background:transparent!important;padding:0!important}
#studio .m-video-scroll .price strong{font-size:13px!important;font-weight:600!important;color:var(--yx-text)!important}
#studio .m-video-scroll .price .muted{font-size:11px!important}
#studio .m-video-scroll .notice,.m-video-scroll .muted[role="status"]{font-size:11px!important}
#studio #generateVideo{border-radius:999px!important;background:var(--yx-accent)!important;color:var(--yx-accent-ink,var(--yx-accent-text))!important;font-weight:600!important;font-size:13px!important;height:40px!important;min-height:40px!important;padding:0 24px!important;width:auto!important;margin-left:auto!important;display:inline-block!important}
#studio .m-video-scroll .ref-panel{margin:12px 0 0!important;padding:2px 0 0!important;background:transparent!important;border-radius:14px!important}
#studio .m-video-scroll #refAdd-video{min-height:64px!important;width:auto!important;flex:0 0 92px!important;font-size:12px!important;border-radius:10px!important;margin-top:0!important}
#studio .m-video-scroll #refAdd-video::before{font-size:20px!important;margin-right:6px!important}
#studio .m-video-scroll .ref-grid{grid-template-columns:repeat(8,minmax(0,72px))!important;padding-top:8px!important}
#studio .m-video-scroll .ref-item img{height:64px!important;border-radius:8px!important}
#studio .m-video-scroll .audio{font-size:12px!important;display:flex!important;align-items:center;gap:8px;margin-top:12px!important}

/* 视频页作品流（上） */
.m-works-gallery{margin:0 0 8px}
.m-works-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 2px 12px;border-bottom:1px solid var(--yx-hairline)}
.m-works-head h3{font-size:15px!important;font-weight:600!important;margin:0!important}
.m-works-all{margin-left:auto!important}
.m-works-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important;margin-top:14px!important}
.m-works-empty{grid-column:1/-1;min-height:160px!important;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--yx-text-3);border:1px dashed var(--yx-hairline-strong)!important;border-radius:16px!important}
.m-work-card{border:1px solid var(--yx-hairline)!important;border-radius:14px!important;background:var(--yx-surface-strong)!important;overflow:hidden;margin:0!important;padding:0!important}
.m-work-cover{position:relative;aspect-ratio:4/5;overflow:hidden;background:var(--yx-field)}
.m-work-cover img{width:100%;height:100%;object-fit:cover;display:block}
.m-work-cover-blank{background:linear-gradient(160deg,var(--yx-accent-soft),var(--yx-field))}
.m-work-badge{position:absolute;top:8px;left:8px;font-size:10px;font-weight:600;border-radius:999px;padding:3px 8px;background:var(--yx-accent)!important;color:var(--yx-accent-ink,var(--yx-accent-text))!important}
.m-work-badge.busy{background:var(--yx-accent-surface)!important;color:var(--yx-accent-text)!important}
.m-work-badge.bad{background:var(--yx-danger-surface,var(--yx-surface-strong))!important;color:var(--yx-danger-text,var(--yx-text))!important}
.m-work-title{font-size:12.5px!important;font-weight:600!important;color:var(--yx-text)!important;margin:0!important;padding:9px 11px 2px!important;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.m-work-card .m-work-spec{padding:0 11px 10px!important}

/* 中屏降列数 */
@media(max-width:1100px){
 #imageStudio .fi-gallery,.m-works-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:860px){
 #imageStudio .fi-gallery,.m-works-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
 #imageStudio .fi-gallery,.m-works-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #imageStudio .m-image-layout>.fi-hero h2{font-size:21px!important}
}

/* 胶囊化后的旧控件隐藏（压掉 polish-v3/design-system 的 !important 高特异性规则） */
html select[data-m-pills]{display:none!important}
html #imageStudio .fi-tools .fi-option.m-pill-source{display:none!important}
html #studio .m-video-scroll label.m-pill-source{display:none!important}
/* 视频任务列表限高滚动，避免长列表把页面撑爆 */
#studio #videoTasks{max-height:640px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--yx-hairline-strong) transparent;padding-right:4px}
/* 作品卡信息区：解除旧 aspect-ratio:1 方形裁切，恢复竖版封面+底部文字（1:1 设计稿） */
#imageStudio .fi-gallery>.fi-work{aspect-ratio:auto!important;display:block!important;width:100%!important;box-sizing:border-box!important}
#imageStudio .fi-gallery>.fi-work>.fi-work-info{display:block!important;padding:10px 12px 12px!important}
#imageStudio .fi-gallery>.fi-work>button{width:100%!important;box-sizing:border-box!important}
/* 解除 design-system 的生成卡内滚动+sticky 悬浮按钮（指令61M：生成栏随页面自然滚动） */
html #studio .workspace>.card.m-video-scroll{max-height:none!important;min-height:0!important;overflow:visible!important}
html #studio .m-video-scroll>#generateVideo{position:static!important}

/* ================================================================
   指令61N: 图片创作——作品记录一行 1:1 小方块(只显示最近,查看全部跳我的作品)、
   进板块视口锚定生成栏(上滑见记录)；视频工作台——隐藏任务历史卡、参数横排下拉
   ================================================================ */
/* ---- 图片页:作品记录单行小方块 ---- */
html #imageStudio .fi-gallery{display:flex!important;flex-wrap:nowrap!important;gap:12px!important;grid-template-columns:none!important;overflow-x:auto!important;margin:12px 0 0!important;padding:2px 2px 8px!important;scrollbar-width:thin}
html #imageStudio .fi-gallery>.fi-work{flex:0 0 132px!important;width:132px!important;aspect-ratio:auto!important;display:block!important}
html #imageStudio .fi-gallery>.fi-work.m-work-older{display:none!important}
html #imageStudio .fi-gallery>.fi-work>button{width:100%!important;box-sizing:border-box!important}
html #imageStudio .fi-gallery img{width:100%!important;height:132px!important;aspect-ratio:1/1!important;object-fit:cover!important}
html #imageStudio .fi-gallery>.fi-work>.fi-work-info{display:block!important;padding:7px 9px 8px!important}
html #imageStudio .fi-gallery>.fi-work-info>p:first-child{font-size:11.5px!important}
html #imageStudio .fi-gallery>.fi-work .m-work-spec{display:none!important}
html #imageStudio .fi-gallery>.fi-work .fi-work-actions{display:none!important}
html #imageStudio .fi-gallery .fi-empty{flex:1 1 auto!important}
html #imageStudio .m-image-results{margin:0!important}
html #imageStudio .fi-gallery-head{padding:0 2px 10px!important}
html #imageStudio .m-composer-card{scroll-margin-top:12px}
/* ---- 视频工作台:隐藏「我的视频任务」历史卡 ---- */
html #studio .workspace>.card.m-tasks-hidden{display:none!important}
/* ---- 视频工作台:参数横排原生下拉(模型/分辨率/时长/画幅一行),压缩纵向间距 ---- */
html #studio .m-video-scroll .m-param-row{display:flex!important;flex-wrap:wrap!important;gap:8px 16px!important;align-items:center!important;margin:12px 0 0!important}
html #studio .m-video-scroll .m-param{display:flex!important;align-items:center!important;gap:7px!important;min-width:0}
html #studio .m-video-scroll .m-param>label{margin:0!important;font-size:12px!important;color:var(--yx-text-2)!important;white-space:nowrap!important}
html #studio .m-video-scroll .m-param>select{display:inline-block!important;min-height:34px!important;padding:5px 10px!important;border:1px solid var(--yx-hairline-strong)!important;border-radius:10px!important;background:var(--yx-surface-strong)!important;color:var(--yx-text)!important;font-size:13px!important;font-weight:500!important;box-shadow:none!important;max-width:230px!important;cursor:pointer!important}
html #studio .m-video-scroll .m-param>select:hover:not(:disabled){border-color:var(--yx-accent)!important}
html #studio .m-video-scroll .m-param>select:disabled{opacity:.5!important}
/* 纵向间距整体收紧 */
html #studio .m-video-scroll .ref-panel{margin:12px 0 0!important}
html #studio .m-video-scroll .price{margin-top:12px!important}
/* 锚定支撑:生成栏卡撑满视口高度,保证进入板块时能滚到卡顶(记录区在上,上滑可见) */
html #imageStudio .m-composer-card{min-height:calc(100vh - 120px)!important;box-sizing:border-box!important}
/* 61N 微调:参考图上传按钮文字不换行 */
html #studio .m-video-scroll #refAdd-video{}

/* ================================================================
   指令61P: 图片创作/视频工作台 1:1 终版（对照图一探店模板 + 图二设计稿）
   图片页:作品一排5张竖版3:4卡片(名称+参数,操作hover浮现) + 底部生成栏
          (字数右下/参考图一行/胶囊参数/成本+红色圆生成键),撤销锚定
   视频台:参数改回胶囊组一行(图一),作品一排5张,预估费用行尾红色圆发送键
   ================================================================ */

/* ---- 图片页:作品一排竖版3:4卡片(覆盖61N的1:1小方块行) ---- */
html #imageStudio .fi-gallery{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;flex-wrap:wrap!important;overflow:visible!important;scrollbar-width:auto;margin:12px 0 0!important;padding:0 0 2px!important}
html #imageStudio .fi-gallery>.fi-work{flex:0 0 auto!important;width:auto!important;aspect-ratio:auto!important}
html #imageStudio .fi-gallery>.fi-work.m-work-older{display:none!important}
html #imageStudio .fi-gallery img{width:100%!important;height:auto!important;aspect-ratio:3/4!important;object-fit:cover!important}
html #imageStudio .fi-gallery>.fi-work-info{display:block!important;padding:10px 12px 12px!important}
html #imageStudio .fi-gallery>.fi-work .m-work-spec{display:block!important;font-size:11px!important;color:var(--yx-text-3)!important;margin:0 0 6px!important}
html #imageStudio .fi-gallery>.fi-work .fi-work-actions{display:flex!important;opacity:0;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease;margin:0!important}
html #imageStudio .fi-gallery>.fi-work:hover .fi-work-actions,
html #imageStudio .fi-gallery>.fi-work:focus-within .fi-work-actions{opacity:1;transform:none}
html #imageStudio .fi-gallery .fi-empty{grid-column:1/-1!important;flex:1 1 auto!important}

/* ---- 图片页:撤销61N生成栏撑高(整页一屏,作品在上生成栏在下) ---- */
html #imageStudio .m-composer-card{min-height:0!important;margin-top:20px!important}
html #imageStudio .m-image-results{margin:0!important}

/* ---- 图片页:字数计数悬浮到提示词行右上角(1:1图一「36 / 1200」) ----
   加载期有脚本会重排输入区,DOM 移动不可靠;fiCount 留在 fi-tools 里,
   靠 card 是 sticky 定位祖先,absolute 钉到提示词首行右上角 */
html #imageStudio .m-composer-card #fiCount{position:absolute!important;top:14px!important;right:22px!important;display:inline!important;text-align:right!important;font-size:11px!important;margin:0!important;color:var(--yx-text-3)!important;flex-basis:auto!important;z-index:2;pointer-events:none}

/* ---- 图片页:参考图一行排开(+按钮·缩略图·说明) ---- */
html #imageStudio .m-composer-card .ref-panel{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;flex-direction:row!important}
html #imageStudio .m-composer-card .ref-heading{display:contents!important}
html #imageStudio .m-composer-card .ref-grid{display:flex!important;grid-template-columns:none!important;gap:8px!important;padding-top:0!important;overflow-x:auto;scrollbar-width:thin}
html #imageStudio .m-composer-card .ref-item{flex:0 0 auto!important}
html #imageStudio .m-composer-card .ref-help{margin:0 0 0 auto!important;font-size:11px!important;}

/* ---- 图片页:参数行纯胶囊(1:1图一:无「试试这些」chips/无标签/无张数,组间留白) ---- */
html #imageStudio .m-composer-card .fi-presets{justify-content:flex-start!important;gap:12px 16px!important}
html #imageStudio .m-composer-card .fi-presets>.muted,
html #imageStudio .m-composer-card .fi-presets>button[data-fi-preset]{display:none!important}
html #imageStudio .m-composer-card .m-pill-label{display:none!important}
html #imageStudio .m-composer-card .m-pill-group+.m-pill-group{margin-left:14px!important}
html #imageStudio .m-composer-card .fi-output-count{display:none!important}

/* ---- 图片页:参数行(胶囊组)+成本+红色圆生成键 ---- */
html #imageStudio .m-composer-card .fi-tools{gap:10px 8px!important}
@media(max-width:900px){html #imageStudio .m-composer-card .fi-tools{min-width:0!important;flex-wrap:wrap!important}html #imageStudio .m-composer-card .fi-tools .m-pill-group{flex:0 1 auto!important;min-width:0!important;margin-left:0!important}html #imageStudio .m-composer-card .fi-tools .m-pills{flex-wrap:nowrap!important;max-width:100%;overflow-x:auto;scrollbar-width:thin}html #imageStudio .m-composer-card .fi-tools .m-pill-group+.m-pill-group{margin-left:0!important}}
@media(min-width:701px) and (max-width:900px){html #app.layout{grid-template-columns:164px minmax(0,1fr)!important;width:100%!important}html #app main.content{width:100%!important;min-width:0!important;box-sizing:border-box!important}html #app main.content>.view{min-width:0!important;width:100%!important}}
html #imageStudio .m-composer-card .fi-output-count{flex:0 0 auto!important;font-size:12px!important;color:var(--yx-text-2)!important}
html #imageStudio .m-composer-card .fi-tools .m-cost{margin-left:auto!important;font-size:13px!important;font-weight:600!important;color:var(--yx-danger,var(--yx-accent))!important;}
html #imageStudio .m-composer-card .fi-tools #fiGenerate{flex:0 0 48px!important;width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important;padding:0!important;border-radius:50%!important;font-size:0!important;margin-left:10px!important}
html #imageStudio .m-composer-card .fi-tools #fiGenerate::after{content:"➤"!important;font-size:19px!important;line-height:1!important;color:inherit!important}

/* ---- 视频台:参数胶囊组一行(1:1图三:无标签文字,组间纯留白分隔) ---- */
html #studio .m-video-scroll .m-pill-row{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px 10px!important;margin:4px 0 0!important;overflow-x:auto!important;scrollbar-width:thin}
html #studio .m-video-scroll .m-pill-row .m-pill-group{margin:0!important}
html #studio .m-video-scroll .m-pill-row .m-pill-label{display:none!important}
html #studio .m-video-scroll .m-pill-row{flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:thin}
/* 组内容纳:紧凑胶囊,保证 1600 宽下 模型+分辨率+时长+画幅+音频 尽量单行 */
html #studio .m-video-scroll .m-pill-row .m-pill{padding:3px 10px!important;font-size:12px!important;min-height:24px!important}
html #studio .m-video-scroll .m-pill-row .m-pills{gap:4px!important}
html #studio .m-video-scroll .m-pill-row .m-pill-group+.m-pill-group{margin-left:6px!important}
html #studio .m-video-scroll .m-pill-row label.audio{display:inline-flex!important;align-items:center!important;gap:7px!important;font-size:12px!important;color:var(--yx-text-2)!important;font-weight:500!important;;margin:0!important}
html #studio .m-video-scroll .m-pill-row label.audio input{min-height:0!important;accent-color:var(--yx-accent)}

/* ---- 视频台:预估费用行尾红色圆发送键(1:1图一) ---- */
html #studio .m-video-scroll .price{display:flex!important;align-items:center!important;gap:14px!important;flex-wrap:wrap!important;margin-top:16px!important}
html #studio .m-video-scroll .price .muted{flex:1 1 auto!important}
html #studio .m-video-scroll .price #generateVideo{flex:0 0 48px!important;width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important;padding:0!important;border-radius:50%!important;font-size:0!important;margin-left:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
html #studio .m-video-scroll .price #generateVideo::after{content:"➤"!important;font-size:19px!important;line-height:1!important}

/* ---- 视频台:参考图一行排开(与图片页同语言) ---- */
html #studio .m-video-scroll .ref-panel{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;flex-direction:row!important;margin-top:14px!important}
html #studio .m-video-scroll .ref-heading{display:contents!important}
html #studio .m-video-scroll .ref-grid{display:flex!important;grid-template-columns:none!important;gap:8px!important;padding-top:0!important;overflow-x:auto;scrollbar-width:thin}
html #studio .m-video-scroll .ref-item{flex:0 0 auto!important}
html #studio .m-video-scroll .ref-help{margin:0 0 0 auto!important;font-size:11px!important;}

/* ---- 视频台:作品一排5张已由61M网格承载;中屏降列同步(覆盖61N单行方块残留) ---- */
@media(max-width:1100px){
 html #imageStudio .fi-gallery{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:860px){
 html #imageStudio .fi-gallery{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* ---- 61P 收尾:生成栏贴视口底(1:1图一/图二「底部固定生成栏」),首屏容纳一排作品 ---- */
html #imageStudio .m-composer-card{position:sticky!important;bottom:12px!important;z-index:30;box-shadow:0 12px 40px var(--yx-shadow)!important;margin-top:28px!important}
html #imageStudio .m-image-layout>.fi-hero{padding:2px 2px 12px!important}
html #imageStudio .m-image-layout>.fi-hero h2{font-size:22px!important}
html #imageStudio .fi-gallery{max-width:1080px}
html #imageStudio .m-composer-card #fiPrompt{min-height:84px!important}
html #imageStudio .m-composer-card .ref-panel{padding:10px!important}
html #imageStudio .m-composer-card .fi-presets{margin:8px 0 0!important}
/* 视频台生成栏同步贴底,作品流在上 */
html #studio .m-video-scroll{position:sticky!important;bottom:12px!important;z-index:30;box-shadow:0 12px 40px var(--yx-shadow)!important}
html #studio .m-works-gallery{margin:0 0 16px}
/* 61R:sticky 贴底遮挡修复——内容区底部补 spacer(≈生成栏高度+余量),
   滚到底时最后一行作品能完整滚出生成栏遮罩区,不被压住 */
html #imageStudio .m-image-layout{padding-bottom:260px}
html #studio .m-works-gallery{padding-bottom:340px}
/* 61ZB：手机端生成栏不做贴底（#app 的 overflow-x:hidden 会让 sticky 失效），
   那条 340px 的「防遮挡占位」就变成滚到底时的一大片空白，只留一点呼吸位 */
@media(max-width:700px){html #studio .m-works-gallery.m-conversation{padding-bottom:8px!important}}
/* 61S: 生成栏瘦身 1:1 参考图——整栏 ~250px,一屏装下作品+生成栏,
   sticky 不再被顶起浮空遮挡作品 */
/* 关键:compact-workspace.css 给 .m-video-scroll 定高 calc(100dvh-210px)/min-height:390px
   (61P 把卡提为 #studio 直属子后,design-system 的 height:auto 救援选择器失配)——必须解除 */
html #studio>.m-video-scroll{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
/* 视频台:参考图收成一行(小按钮+拖拽提示,隐藏标题与长说明) */
html #studio .m-video-scroll{gap:4px!important;padding-top:6px!important;padding-bottom:6px!important}
html #studio .m-video-scroll .card-title{display:none!important}
html #studio .m-video-scroll>label:not(.audio):not(.m-pill-source){display:none!important}
html #studio .m-video-scroll .ref-panel{align-items:center!important;margin-top:0!important;padding:2px 10px!important;min-height:0!important}
html #studio .m-video-scroll .ref-heading strong{display:none!important}
html #studio .m-video-scroll .ref-help{display:none!important}
html #studio .m-video-scroll .ref-panel button{min-height:0!important;height:30px!important;padding:2px 12px!important;font-size:12px!important;border-radius:10px!important;white-space:nowrap!important}
html #studio .m-video-scroll .upload-drop-hint{margin:0 0 0 auto!important;font-size:11px!important;color:var(--yx-text-3)!important;white-space:nowrap!important}
/* 视频台:输入框收到 56px,隐藏「建议中文500字」提示行 */
html #studio .m-video-scroll .prompt-wrap{min-height:0!important}
html #studio .m-video-scroll #prompt{min-height:48px!important;height:48px!important}
html #studio .m-video-scroll>p.muted{display:none!important}
/* 视频台:费用说明单行省略,价格行收敛 */
html #studio .m-video-scroll .price{margin-top:4px!important;min-height:0!important}
html #studio .m-video-scroll .price .muted{flex:1 1 0!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:12px!important}
/* 图片页:输入框同步收到 56px */
html #imageStudio .m-composer-card #fiPrompt{min-height:56px!important}
/* 61S 图片页:生成栏同瘦身(隐藏label/输入框定高/参考图行收紧/间距压缩) */
html #imageStudio .m-composer-card{gap:4px!important;padding-top:10px!important;padding-bottom:10px!important}
html #imageStudio .m-composer-card>label{display:none!important}
html #imageStudio .m-composer-card #fiPrompt{height:56px!important}
html #imageStudio .m-composer-card .ref-panel{padding:2px 10px!important;min-height:0!important;align-items:center!important}
html #imageStudio .m-composer-card .ref-panel button{min-height:0!important;height:30px!important;padding:2px 12px!important;font-size:12px!important;white-space:nowrap!important}
html #imageStudio .m-composer-card .ref-heading strong{display:none!important}
/* 61S 图片页:作品卡图限高 176px(竖版3:4视觉中心裁剪),小窗口一屏容纳作品+生成栏 */
html #imageStudio .fi-gallery .fi-work>button img{height:176px!important;object-fit:cover!important}
/* 作品卡标题单行省略,信息区收敛 */
html #imageStudio .fi-gallery .fi-work-info>p:first-child{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* ===== 61T 批1(P0)：餐饮视频生成卡对齐探店模板——参数胶囊一行 + 费用行 + 实心生成键 ===== */
html #restaurant .m-r-dock{display:flex!important;flex-direction:column!important;gap:12px!important;padding:14px 16px!important;margin-top:12px!important}
html #restaurant .m-r-params{display:flex!important;align-items:center!important;gap:6px 14px!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:thin;min-height:34px}
html #restaurant .m-r-params .m-pill-group{margin:0!important;flex:0 0 auto}
html #restaurant .m-r-params .m-pills{flex-wrap:nowrap!important;gap:4px!important}
html #restaurant .m-r-params .m-pill{padding:3px 11px!important;font-size:12px!important;min-height:26px!important}
html #restaurant .m-r-params select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
html #restaurant .m-r-params label,html #restaurant .m-r-params .r-grid{display:none!important}
html #restaurant .m-r-params p.muted,html #restaurant .m-r-params .muted{display:none!important}
html #restaurant .m-r-meta{display:flex!important;align-items:center!important;gap:8px 16px!important;flex-wrap:wrap!important;font-size:12px;color:var(--yx-text-2,var(--muted))}
html #restaurant .m-r-meta .r-inline-check{display:flex!important;margin:0!important;font-size:12px!important;line-height:1.5!important;gap:7px!important;font-weight:400}
html #restaurant .m-r-meta #rBalance{font-size:12px;margin:0!important;white-space:nowrap}
html #restaurant .m-r-meta #rHelp{margin-left:auto!important;min-height:30px;padding:4px 12px!important;font-size:12px!important;border-radius:999px!important;background:transparent!important;border:1px solid var(--yx-hairline,var(--line))!important;color:var(--yx-text-2,var(--muted))!important}
html #restaurant .m-r-meta #rHelp:hover{color:var(--yx-accent-text,var(--accent))!important;border-color:var(--yx-accent,var(--accent))!important}
html #restaurant .m-r-actions-row{display:flex!important;align-items:center!important;gap:16px!important}
html #restaurant .m-r-price{display:flex!important;align-items:baseline!important;gap:12px!important;flex:1 1 auto;min-width:0}
html #restaurant .m-r-price #rPrice{font-size:24px!important;font-weight:700!important;margin:0!important;white-space:nowrap!important;color:var(--yx-accent-text,var(--accent))!important}
html #restaurant .m-r-price #rBlock{flex:1 1 auto;min-width:0;margin:0!important;font-size:12px!important;line-height:1.5!important;color:var(--yx-text-2,var(--muted))!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html #restaurant #rSubmit{flex:0 0 auto!important;min-width:210px!important;min-height:44px!important;margin:0!important;padding:8px 22px!important;border-radius:12px!important;font-size:14px!important;font-weight:600!important;background:var(--yx-accent,var(--accent))!important;color:var(--yx-accent-ink,var(--accent-ink))!important;border:1px solid transparent!important;box-shadow:0 6px 16px -6px color-mix(in srgb,var(--yx-accent) 55%,transparent)!important}
html #restaurant #rSubmit:disabled{background:var(--yx-field,var(--yx-surface))!important;color:var(--yx-text-3,var(--muted))!important;border:1px solid var(--yx-hairline,var(--line))!important;box-shadow:none!important;opacity:1!important}
/* 61T：高级设置、口播等滚动区内保持透气 */
html #restaurant .m-r-scroll{padding:2px 8px 14px 0}
/* 61T 补丁：确认按钮收拢为内容宽，参数胶囊允许换行防截断 */
html #restaurant #rSubmit{width:auto!important}
html #restaurant .m-r-params{flex-wrap:wrap!important;overflow-x:visible!important;row-gap:8px!important}

/* ===== 61T 批2(P1)：失败态与破图占位治理 ===== */
html #works .r-work>img{width:100%!important;aspect-ratio:16/10!important;object-fit:cover!important;border-radius:14px!important;background:var(--yx-field,var(--yx-surface))!important;display:block}
html .r-cover-fallback{width:100%;aspect-ratio:16/10;border-radius:14px;border:1.5px dashed var(--yx-hairline,var(--line));background:linear-gradient(150deg,var(--yx-accent-soft),var(--yx-field,var(--yx-surface)) 62%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--yx-text-2,var(--muted));font-size:12px;font-weight:500;box-sizing:border-box}
html .r-cover-fallback svg{width:30px;height:30px;opacity:.45}
html .r-cover-fallback.bad{color:var(--yx-danger,var(--danger));border-color:color-mix(in srgb,var(--yx-danger) 32%,transparent);background:linear-gradient(150deg,color-mix(in srgb,var(--yx-danger) 6%,var(--yx-field,var(--yx-surface))),var(--yx-field,var(--yx-surface)) 65%)}
html .m-work-cover{position:relative}
html .m-work-cover-blank::after{content:'暂无封面';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--yx-text-3,var(--muted))}
/* 119: 对话流与原生输入栏，所有颜色沿用主题令牌。 */
html #studio .m-conversation{padding-bottom:32px!important;max-width:1080px;margin-inline:auto}
.m-conversation-list{display:flex;flex-direction:column;gap:28px;margin-top:24px;padding:22px;background:color-mix(in srgb,var(--yx-surface-strong) 90%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--yx-hairline);border-radius:24px;box-shadow:0 1px 2px color-mix(in srgb,black 3%,transparent)}
.m-conversation-entry{min-width:0}
.m-conversation-request{margin-left:0;padding:16px 18px;background:color-mix(in srgb,var(--yx-bg-raise,var(--yx-surface-strong)) 96%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--yx-hairline);border-radius:16px;box-shadow:0 1px 3px color-mix(in srgb,black 4%,transparent)}
/* 61Y：提示词压两行，超出才出「展开」 */
.m-conversation-text{margin:0}
.m-conversation-body{margin:0;font-size:14px;line-height:1.75;color:var(--yx-text);white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.m-conversation-text.is-open .m-conversation-body{display:block;-webkit-line-clamp:unset;overflow:visible}
.m-conversation-more{display:block;margin:6px 0 0;padding:0;border:0;background:none;color:var(--yx-accent-text,var(--yx-accent));font-size:13px;font-weight:600;cursor:pointer;line-height:1.6}
.m-conversation-more:hover{text-decoration:underline;text-underline-offset:3px}
.m-conversation-more[hidden]{display:none!important}
.m-conversation-request .m-work-spec{margin:10px 0 0;font-size:11.5px;color:var(--yx-text-3);padding-top:10px;border-top:1px solid color-mix(in srgb,var(--yx-text) 7%,transparent)}
.m-conversation-source{font-size:11.5px;color:var(--yx-text-3);margin:0 0 8px;letter-spacing:.02em}
.m-conversation-description summary{cursor:pointer;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.7}
.m-conversation-description[open] summary{display:block;-webkit-line-clamp:unset}
.m-conversation-description[open]>p{display:none}
.m-conversation-result{padding:14px 2px 2px;display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center}
.m-conv-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;flex-basis:100%}
.m-conv-meta time{margin:0;font-size:12px;color:var(--yx-text-3)}
.m-conv-meta .muted{font-size:12px;margin:0}
/* 61Y：视频小卡片（点开弹大窗播完整视频） */
.m-conv-media-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:0 0 auto;max-width:100%}
.m-conv-media{position:relative;display:block;padding:0;margin:0;border:1px solid var(--yx-hairline);border-radius:16px;overflow:hidden;background:var(--yx-field);cursor:zoom-in;width:148px;max-width:100%;aspect-ratio:1/1;box-shadow:0 2px 10px color-mix(in srgb,black 8%,transparent);transition:transform .22s cubic-bezier(.22,1,.36,1),box-shadow .22s ease}
.m-conv-media img,.m-conv-media video{display:block;width:100%;height:100%;object-fit:cover}
.m-conv-media-tag{position:absolute;left:0;top:0;padding:3px 8px;background:color-mix(in srgb,black 78%,transparent);color:white;font-size:10.5px;letter-spacing:.02em;border-bottom-right-radius:10px;pointer-events:none}
.m-conv-play{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:color-mix(in srgb,black 42%,transparent);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;pointer-events:none;transition:background .2s ease,transform .2s ease}
.m-conv-play::after{content:'';width:0;height:0;margin-left:3px;border-style:solid;border-width:7px 0 7px 12px;border-color:transparent transparent transparent white}
.m-conv-media:hover{transform:translateY(-2px);box-shadow:0 16px 32px -18px color-mix(in srgb,black 55%,transparent)}
.m-conv-media:hover .m-conv-play{background:color-mix(in srgb,black 58%,transparent);transform:scale(1.06)}
.m-conv-media:focus-visible{outline:2px solid var(--yx-accent);outline-offset:3px}
.m-conv-download{font-size:12.5px;color:var(--yx-accent-text,var(--yx-accent));text-decoration:underline;text-underline-offset:3px;font-weight:500}
.m-conv-still{display:block;width:148px;max-width:100%;aspect-ratio:1/1;height:auto;border-radius:16px;object-fit:cover;background:var(--yx-field)}
.m-conversation-result>p{flex-basis:100%;margin:0}
.m-conversation-result .badge{background:var(--yx-surface-strong)!important;border:1px solid var(--yx-hairline)!important;border-radius:999px!important;padding:4px 12px!important;font-size:11.5px!important;font-weight:600!important;box-shadow:0 1px 2px color-mix(in srgb,black 3%,transparent)}
.m-conversation-result .badge.bad{background:var(--yx-danger-surface,var(--yx-surface-strong))!important;border-color:color-mix(in srgb,var(--yx-danger) 30%,transparent)!important}
.m-conversation-result .badge.busy{background:var(--yx-accent-surface,var(--yx-surface-strong))!important;border-color:color-mix(in srgb,var(--yx-accent) 35%,transparent)!important}
.m-conversation-result a[download]{font-size:12.5px;color:var(--yx-accent-text,var(--yx-accent));text-decoration:underline;text-underline-offset:3px;font-weight:500}
.m-conversation-result a[download]:hover{color:var(--yx-accent)}
.m-conversation-actions{display:flex;gap:10px;flex-wrap:wrap}
.m-conversation-actions button,.m-conversation-list>button{font-size:12px;padding:7px 13px;border:1px solid var(--line);border-radius:999px;background:var(--yx-surface-strong);color:var(--yx-text)}
.m-conversation-actions button:focus-visible,.m-conversation-description summary:focus-visible{outline:2px solid var(--yx-accent);outline-offset:3px}
.m-composer-unavailable{display:flex;flex-wrap:wrap;gap:16px;font-size:11px;color:var(--yx-text-3);padding:4px 10px}
html #studio>.m-video-scroll{max-width:1080px;margin-inline:auto!important;bottom:12px!important}
@media(max-width:700px){.m-conversation-request{margin-left:14px;padding:14px}.m-conversation-list{gap:20px}.m-conversation-result time{margin-left:0}html #studio>.m-video-scroll{bottom:0!important}}
@media(prefers-reduced-motion:reduce){.m-conversation *{scroll-behavior:auto!important;transition:none!important}}
/* 120: 本机分组、撤销和窄屏排布；不改变生成栏定位。 */
.m-studio-groups{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:12px 2px;align-items:center}
.m-studio-group-chip{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;padding:7px 14px;background:var(--yx-field);color:var(--yx-text)}
.m-studio-group-chip[aria-pressed=true]{background:var(--yx-accent);color:var(--yx-accent-ink);border-color:var(--yx-accent);font-weight:600}
.m-studio-group-note{font-size:12px;color:var(--yx-text-3);margin:0 0 12px}
.m-studio-group-editor,.m-studio-undo{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px;margin-top:12px;border:1px solid var(--line);border-radius:12px;background:var(--yx-field);color:var(--yx-text)}
.m-studio-group-editor label{flex:1 1 220px;min-width:0;font-size:12px}.m-studio-group-editor input{display:block;width:100%;box-sizing:border-box}.m-studio-group-editor select{max-width:100%}
.m-studio-undo button{margin-left:auto}.m-studio-group-chip:focus-visible{outline:2px solid var(--yx-accent);outline-offset:2px}
@media(max-width:640px){.m-conversation .m-conversation-actions{flex-wrap:wrap;gap:8px}.m-conversation .m-work-spec{white-space:normal;overflow-wrap:anywhere}.m-conversation .m-conversation-result>video{width:100%;min-width:0;max-width:100%}.m-studio-groups{overflow-x:auto;flex-wrap:nowrap;box-sizing:border-box}.m-studio-group-editor>*{min-width:0;max-width:100%}}

/* ================= 61V：输入区合并成一个整卡（1:1 参考图）=================
   上传方块 + 文字输入 + 参数胶囊 + 费用/发送，全部在同一个圆角框内，不再分成三个框 */
html #studio .m-video-scroll .m-composer-box{display:flex!important;flex-direction:column!important;gap:12px!important;margin:14px 0 0!important;padding:14px 16px 12px!important;border:1px solid var(--yx-hairline-strong)!important;border-radius:20px!important;background:var(--yx-surface-strong)!important;box-sizing:border-box!important}
/* 顶部主体：上传方块在左，文字输入从右侧开始 */
html #studio .m-composer-box .m-composer-main{display:flex!important;gap:16px!important;align-items:flex-start!important;width:100%!important;box-sizing:border-box!important}
html #studio .m-composer-box .m-composer-main>.ref-panel{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:8px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;min-height:0!important;flex:0 0 auto!important;max-width:46%!important}
html #studio .m-composer-box .ref-heading{display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important}
html #studio .m-composer-box .ref-heading strong{display:none!important}
html #studio .m-composer-box #refAdd-video{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;max-width:64px!important;max-height:64px!important;padding:0!important;margin:0!important;border:1px dashed var(--yx-hairline-strong)!important;border-radius:16px!important;background:color-mix(in srgb,var(--yx-accent) 9%,var(--yx-surface-strong))!important;font-size:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important;white-space:nowrap!important}
html #studio .m-composer-box #refAdd-video::before{content:'＋'!important;font-size:24px!important;font-weight:300!important;line-height:1!important;color:var(--yx-text-2)!important;margin:0!important}
html #studio .m-composer-box .ref-help{display:none!important}
html #studio .m-composer-box .ref-grid{margin:0!important;padding:0!important;gap:8px!important;display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important}
html #studio .m-composer-box .ref-item img{height:64px!important;width:64px!important;object-fit:cover!important;border-radius:12px!important}
html #studio .m-composer-box .upload-drop-hint{display:none!important}
html #studio .m-composer-box .ref-info{font-size:11.5px!important;color:var(--yx-text-2)!important;margin:0!important;flex-basis:100%!important;line-height:1.5!important}
html #studio .m-composer-box .ref-info:empty{display:none!important}
html #studio .m-composer-box .m-composer-main>.prompt-wrap{flex:1 1 auto!important;min-width:0!important;margin:2px 0 0!important;padding:0!important;text-align:left!important}
/* 暂未开放：弱化成一行小字，保留不删 */
html #studio .m-composer-box .m-composer-unavailable{margin:0!important;font-size:11.5px!important;color:var(--yx-text-3)!important;gap:10px!important}
/* 文字输入：融进同一张卡，去掉独立边框（用 #prompt 提高权重，盖过上方 2px 红框规则）
   61X：不再锁死 height（旧规则 height:auto!important 把 legacy 的自动增高压掉了，
   导致框永远 56px、多写字只能在里面滚动看不清）——只给起始高度，随内容自动长高 */
html #studio .m-composer-box .prompt-wrap{margin:0!important;padding:0!important}
html #studio .m-composer-box #prompt{min-height:132px!important;margin:0!important;padding:0 0 16px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:15px!important;line-height:1.7!important;resize:none!important;color:var(--yx-text)!important;width:100%!important;display:block!important;text-align:left!important}
html #studio .m-composer-box #prompt:focus{outline:none!important;box-shadow:none!important;border:0!important}
html #studio .m-composer-box .prompt-wrap .counter{right:0!important;bottom:2px!important;font-size:11px!important;color:var(--yx-text-3)!important}
/* 工具条：胶囊 + 费用 + 发送键 */
html #studio .m-composer-box .m-pill-row{margin:0!important;padding:10px 0 0!important;border-top:1px solid color-mix(in srgb,var(--yx-text) 8%,transparent)!important}
html #studio .m-composer-box .price{margin:0!important;padding:0!important}
/* 卡外旧的标签/说明隐藏（内容已并入卡内） */
html #studio .m-video-scroll>label[for="prompt"],html #studio .m-video-scroll>p.muted{display:none!important}
@media(max-width:640px){html #studio .m-composer-box{padding:12px!important;border-radius:16px!important}html #studio .m-composer-box #refAdd-video{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important}html #studio .m-composer-box .m-composer-main{flex-direction:column!important;gap:10px!important}html #studio .m-composer-box .m-composer-main>.ref-panel{max-width:100%!important;width:100%!important}html #studio .m-composer-box .m-composer-main>.prompt-wrap{width:100%!important;margin-top:0!important}
/* 费用条已在卡内，撤掉移动端「固定贴底」的老定位，否则会和胶囊行重叠 */
html #studio .m-composer-box .price{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:auto!important;min-height:0!important;padding:0!important;border-top:0!important;background:transparent!important;box-shadow:none!important;gap:10px!important}html #studio .m-composer-box #prompt{min-height:112px!important}}

/* ================= 61W：上传方块动效（对标大厂：悬停浮起 + 加号转向 + 拖拽脉冲 + 缩略图弹入）=================
   纯表现层：不改上传逻辑、不改文件校验、不碰计费 */
html #studio .m-composer-box #refAdd-video{
  position:relative!important;overflow:hidden!important;cursor:pointer!important;
  transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s cubic-bezier(.22,1,.36,1),border-color .22s ease,background-color .22s ease!important;
  will-change:transform;
}
/* 加号：悬停转 90°，像「+」变「×」那种轻盈感 */
html #studio .m-composer-box #refAdd-video::before{
  position:relative!important;z-index:2!important;
  transition:transform .38s cubic-bezier(.22,1,.36,1),color .22s ease!important;
}
/* 底部一层柔光晕，悬停时升起 */
html #studio .m-composer-box #refAdd-video::after{
  content:''!important;position:absolute!important;inset:0!important;z-index:0!important;
  border-radius:inherit!important;pointer-events:none!important;opacity:0!important;
  background:radial-gradient(circle at 50% 116%,color-mix(in srgb,var(--yx-accent) 32%,transparent),transparent 60%)!important;
  transition:opacity .32s ease!important;
}
html #studio .m-composer-box #refAdd-video:hover{
  transform:translateY(-2px) scale(1.05);
  border-color:var(--yx-accent)!important;border-style:solid!important;
  box-shadow:0 12px 26px -10px color-mix(in srgb,var(--yx-accent) 62%,transparent),0 0 0 1px color-mix(in srgb,var(--yx-accent) 30%,transparent)!important;
}
html #studio .m-composer-box #refAdd-video:hover::before{transform:rotate(180deg)!important;color:var(--yx-accent)!important}
html #studio .m-composer-box #refAdd-video:hover::after{opacity:1!important}
html #studio .m-composer-box #refAdd-video:active{transform:translateY(0) scale(.965);transition-duration:.09s!important}
html #studio .m-composer-box #refAdd-video:focus-visible{outline:2px solid var(--yx-accent)!important;outline-offset:3px!important;border-style:solid!important;border-color:var(--yx-accent)!important}
/* 拖拽到上传区：方块自己呼吸脉冲（.upload-drop-active 由 upload-drop.js 打在 .ref-panel 上） */
html #studio .m-composer-box .ref-panel.upload-drop-active #refAdd-video{
  border-style:solid!important;border-color:var(--yx-accent)!important;
  background:color-mix(in srgb,var(--yx-accent) 22%,var(--yx-surface-strong))!important;
  box-shadow:0 14px 28px -12px color-mix(in srgb,var(--yx-accent) 62%,transparent)!important;
  animation:m-ref-breathe 1.05s ease-in-out infinite!important;
}
html #studio .m-composer-box .ref-panel.upload-drop-active #refAdd-video::before{color:var(--yx-accent)!important;transform:rotate(180deg)!important}
html #studio .m-composer-box .ref-panel.upload-drop-active #refAdd-video::after{opacity:1!important}
@keyframes m-ref-breathe{
  0%,100%{transform:scale(1.03) translateY(-1px)}
  55%{transform:scale(1.07) translateY(-3px)}
}
/* 上传中的方块：柔光扫过，暗示正在处理 */
html #studio .m-composer-box #refAdd-video:disabled{
  cursor:progress!important;opacity:.75!important;
  background-image:linear-gradient(100deg,transparent 22%,color-mix(in srgb,var(--yx-accent) 26%,transparent) 48%,transparent 74%)!important;
  background-size:220% 100%!important;background-repeat:no-repeat!important;
  animation:m-ref-shimmer 1.15s linear infinite!important;
}
@keyframes m-ref-shimmer{0%{background-position:170% 0}100%{background-position:-70% 0}}
/* 缩略图逐个弹入（每次重渲染都轻弹一下，视觉上像「一张张落进框里」） */
html #studio .m-composer-box .ref-grid .ref-item{animation:m-ref-pop .44s cubic-bezier(.2,1.28,.42,1) both}
html #studio .m-composer-box .ref-grid .ref-item img{transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s ease!important}
html #studio .m-composer-box .ref-grid .ref-item:hover img{transform:translateY(-2px) scale(1.04);box-shadow:0 10px 22px -10px color-mix(in srgb,black 50%,transparent)}
@keyframes m-ref-pop{
  0%{opacity:0;transform:scale(.7) translateY(8px)}
  62%{opacity:1;transform:scale(1.05) translateY(0)}
  100%{opacity:1;transform:scale(1) translateY(0)}
}
/* 动作多了会晕的人：全部关掉 */
@media(prefers-reduced-motion:reduce){
  html #studio .m-composer-box #refAdd-video,
  html #studio .m-composer-box #refAdd-video::before,
  html #studio .m-composer-box #refAdd-video::after,
  html #studio .m-composer-box .ref-grid .ref-item,
  html #studio .m-composer-box .ref-grid .ref-item img{animation:none!important;transition:none!important;transform:none!important}
  html #studio .m-composer-box .ref-panel.upload-drop-active #refAdd-video{animation:none!important;transform:scale(1.03)!important}
}

/* ================= 61Y：视频大窗（对话里点小卡片，弹出看完整视频）================= */
.m-video-lightbox{position:fixed;inset:0;z-index:9998;display:flex;align-items:center;justify-content:center;padding:24px;background:color-mix(in srgb,black 84%,transparent);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.m-video-lightbox[hidden]{display:none!important}
.m-video-lightbox-inner{width:min(100%,600px);max-height:100%;display:flex;flex-direction:column;gap:10px}
.m-video-lightbox-head{display:flex;align-items:center;gap:12px;min-width:0}
.m-video-lightbox-title{margin:0;flex:1 1 auto;min-width:0;font-size:13px;color:white;opacity:.92;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-video-lightbox-download,.m-video-lightbox-close{flex:0 0 auto;font-size:12.5px;padding:6px 14px;border-radius:999px;border:1px solid color-mix(in srgb,white 30%,transparent);background:color-mix(in srgb,white 10%,transparent);color:white;cursor:pointer;text-decoration:none;line-height:1.5;transition:background .18s ease}
.m-video-lightbox-download:hover,.m-video-lightbox-close:hover{background:color-mix(in srgb,white 22%,transparent)}
.m-video-lightbox video{width:100%;max-height:calc(100vh - 150px);background:black;border-radius:14px;display:block}
/* 对话条目动作条：统一为更克制的胶囊 */
.m-conversation-actions{gap:8px}
.m-conversation-actions button{border-color:color-mix(in srgb,var(--yx-text) 12%,transparent);color:var(--yx-text-2);transition:border-color .18s ease,color .18s ease,background .18s ease}
.m-conversation-actions button:hover{border-color:color-mix(in srgb,var(--yx-accent) 45%,transparent);color:var(--yx-accent-text,var(--yx-accent));background:color-mix(in srgb,var(--yx-accent) 6%,var(--yx-surface-strong))}
@media(max-width:640px){
 .m-conv-media,.m-conv-still{width:124px}
 .m-conv-play{width:38px;height:38px;margin:-19px 0 0 -19px}
 .m-conv-play::after{border-width:6px 0 6px 10px}
 .m-video-lightbox{padding:0;align-items:stretch}
 .m-video-lightbox-inner{width:100%;max-height:100vh;justify-content:center;gap:0}
 .m-video-lightbox-head{padding:12px 14px}
 .m-video-lightbox video{border-radius:0;max-height:calc(100vh - 56px);margin:auto}
}
@media(prefers-reduced-motion:reduce){.m-conv-media,.m-conv-play{transition:none!important}}

/* ================= 61Z：对话里的参考素材（缩略图 + 点开看大图）================= */
.m-conv-refs{margin:12px 0 0}
.m-conv-refs-label{display:block;font-size:11px;letter-spacing:.02em;color:var(--yx-text-2);opacity:.76;margin:0 0 8px}
.m-conv-refs-strip{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 4px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.m-conv-ref{position:relative;flex:0 0 auto;width:66px;height:66px;padding:0;margin:0;appearance:none;font:inherit;border-radius:12px;overflow:hidden;cursor:zoom-in;border:1px solid color-mix(in srgb,var(--yx-text) 11%,transparent);background:color-mix(in srgb,var(--yx-text) 5%,transparent);transition:border-color .18s ease,box-shadow .22s ease,transform .22s ease}
.m-conv-ref img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .34s cubic-bezier(.22,1,.36,1)}
.m-conv-ref:hover{border-color:color-mix(in srgb,var(--yx-accent) 55%,transparent);box-shadow:0 8px 20px -10px color-mix(in srgb,var(--yx-accent) 60%,transparent);transform:translateY(-1px)}
.m-conv-ref:hover img{transform:scale(1.08)}
.m-conv-ref:focus-visible{outline:2px solid var(--yx-accent);outline-offset:2px}
.m-conv-ref-idx{position:absolute;left:5px;bottom:5px;min-width:16px;height:16px;padding:0 4px;border-radius:6px;background:color-mix(in srgb,black 56%,transparent);color:white;font-size:10px;line-height:16px;text-align:center;font-variant-numeric:tabular-nums;opacity:0;transition:opacity .16s ease}
@media(hover:hover){.m-conv-ref:hover .m-conv-ref-idx,.m-conv-ref:focus-visible .m-conv-ref-idx{opacity:1}}
.m-conv-ref.is-broken{cursor:not-allowed;opacity:.6;border-style:dashed}
.m-conv-ref.is-broken img{visibility:hidden}
.m-conv-ref.is-broken::after{content:'已过期';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:10.5px;color:var(--yx-text-2)}
/* 大图查看：遮罩 + 上一张/下一张 + 序号 */
.m-image-lightbox{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:24px;background:color-mix(in srgb,black 86%,transparent);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.m-image-lightbox[hidden]{display:none!important}
.m-image-lightbox-inner{width:min(100%,780px);max-height:100%;display:flex;flex-direction:column;gap:10px}
.m-image-lightbox-head{display:flex;align-items:center;gap:12px;min-width:0}
.m-image-lightbox-title{margin:0;flex:1 1 auto;min-width:0;font-size:13px;color:white;opacity:.92;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-image-lightbox-close{flex:0 0 auto;font-size:12.5px;padding:6px 14px;border-radius:999px;border:1px solid color-mix(in srgb,white 30%,transparent);background:color-mix(in srgb,white 10%,transparent);color:white;cursor:pointer;line-height:1.5;transition:background .18s ease}
.m-image-lightbox-close:hover{background:color-mix(in srgb,white 22%,transparent)}
.m-image-lightbox-stage{display:flex;align-items:center;gap:12px;min-height:0}
.m-image-lightbox-stage img{flex:1 1 auto;min-width:0;max-height:calc(100vh - 150px);object-fit:contain;border-radius:14px;display:block;margin:auto;box-shadow:0 24px 60px -28px color-mix(in srgb,black 80%,transparent)}
.m-image-lightbox-nav{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:1px solid color-mix(in srgb,white 28%,transparent);background:color-mix(in srgb,white 10%,transparent);color:white;cursor:pointer;font-size:0;display:flex;align-items:center;justify-content:center;transition:background .18s ease}
.m-image-lightbox-nav:hover{background:color-mix(in srgb,white 24%,transparent)}
.m-image-lightbox-nav::before{font-size:24px;line-height:1}
.m-image-lightbox-nav.is-prev::before{content:'‹'}
.m-image-lightbox-nav.is-next::before{content:'›'}
.m-image-lightbox-nav[hidden]{display:none!important}
@media(max-width:640px){
 .m-conv-ref{width:56px;height:56px;border-radius:10px}
 .m-image-lightbox{padding:12px}
 .m-image-lightbox-stage{gap:6px}
 .m-image-lightbox-nav{width:34px;height:34px}
 .m-image-lightbox-stage img{max-height:calc(100vh - 132px)}
}
@media(prefers-reduced-motion:reduce){
 .m-conv-ref,.m-conv-ref img{transition:none!important}
 .m-conv-ref:hover{transform:none!important}
 .m-conv-ref:hover img{transform:none!important}
}

/* ================= 61Z：输入卡折叠把手（收起后不挡视频，点一下还原）================= */
html #studio .m-composer-box{position:relative!important}
html #studio .m-composer-box .m-composer-toggle{
 position:absolute!important;top:-13px!important;left:50%!important;transform:translateX(-50%)!important;z-index:6!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
 height:26px!important;min-height:26px!important;padding:0 14px!important;margin:0!important;
 border-radius:999px!important;border:1px solid color-mix(in srgb,var(--yx-text) 15%,transparent)!important;
 background:color-mix(in srgb,var(--yx-surface-strong) 94%,transparent)!important;
 backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
 color:var(--yx-text-2)!important;font-size:11.5px!important;line-height:1!important;letter-spacing:.02em!important;
 cursor:pointer!important;box-shadow:0 6px 16px -10px color-mix(in srgb,black 55%,transparent)!important;
 transition:color .18s ease,border-color .18s ease,background .18s ease!important;
}
html #studio .m-composer-box .m-composer-toggle:hover{border-color:color-mix(in srgb,var(--yx-accent) 52%,transparent)!important;color:var(--yx-accent-text,var(--yx-accent))!important}
html #studio .m-composer-box .m-composer-toggle:focus-visible{outline:2px solid var(--yx-accent)!important;outline-offset:2px!important}
.m-composer-toggle-icon{flex:0 0 auto;width:0;height:0;border-left:4.5px solid transparent;border-right:4.5px solid transparent;border-top:5px solid currentColor;transition:transform .2s ease}
html #studio .m-composer-box.is-collapsed .m-composer-toggle-icon{border-top:0;border-bottom:5px solid currentColor}
/* 折叠态：整卡收成一条 28px 小胶囊，只剩把手本身（像「收起/展开」的小标签） */
html #studio .card.m-video-scroll{transition:padding .34s cubic-bezier(.22,1,.36,1),border-radius .34s cubic-bezier(.22,1,.36,1),background-color .3s ease,border-color .3s ease}
html #studio .card.m-video-scroll.is-composer-folded{padding:0!important;border-radius:999px!important;background:var(--yx-surface-strong)!important;overflow:hidden!important}
html #studio .card.m-video-scroll.is-composer-folded>.m-composer-box{margin:0!important}
html #studio .m-composer-box.is-collapsed{padding:0!important;gap:0!important;margin:14px 0 0!important;border-radius:999px!important;overflow:hidden!important;height:28px!important;border-color:transparent!important;background:transparent!important;box-shadow:none!important}
html #studio .m-composer-box.is-collapsed>.m-composer-main,
html #studio .m-composer-box.is-collapsed>.m-pill-row,
html #studio .m-composer-box.is-collapsed>.price,
html #studio .m-composer-box.is-collapsed .m-composer-unavailable{display:none!important}
html #studio .m-composer-box.is-collapsed>.m-composer-toggle{
 position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
 width:auto!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;
 transform:none!important;border:0!important;border-radius:999px!important;box-shadow:none!important;
 background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
@media(max-width:640px){
 html #studio .m-composer-box .m-composer-toggle{top:-12px!important;height:24px!important;min-height:24px!important;padding:0 12px!important;font-size:11px!important}
}

/* ================= 61ZA：折叠/展开动效（内容先淡出·卡片再收拢，展开时反着来）=================
   只做表现层：高度由 JS 逐帧过渡，内容用位移+淡变，避免「瞬间切换」的廉价感 */
html #studio .m-composer-box{transition:padding .34s cubic-bezier(.22,1,.36,1),margin .3s ease,border-radius .34s cubic-bezier(.22,1,.36,1),background-color .3s ease,border-color .3s ease,box-shadow .3s ease!important}
html #studio .m-composer-box .m-composer-toggle{transition:top .34s cubic-bezier(.22,1,.36,1),height .34s cubic-bezier(.22,1,.36,1),color .18s ease,border-color .18s ease,background .18s ease,box-shadow .3s ease!important}
html #studio .m-composer-box>.m-composer-main,
html #studio .m-composer-box>.m-pill-row,
html #studio .m-composer-box>.price{transition:opacity .2s ease,transform .32s cubic-bezier(.22,1,.36,1)!important;will-change:opacity,transform}
/* 收起第一步：内容轻微下沉淡出 */
html #studio .m-composer-box.is-folding>.m-composer-main,
html #studio .m-composer-box.is-folding>.m-pill-row,
html #studio .m-composer-box.is-folding>.price{opacity:0!important;transform:translateY(10px) scale(.985)!important;pointer-events:none!important}
/* 展开：内容从下方浮上来，和卡片长高同时进行 */
html #studio .m-composer-box.is-unfolding>.m-composer-main,
html #studio .m-composer-box.is-unfolding>.m-pill-row,
html #studio .m-composer-box.is-unfolding>.price{animation:m-composer-rise .15s cubic-bezier(.22,1,.36,1) both}
/* 过渡期间锁住溢出并开启高度过渡（高度由 JS 逐帧推，这里负责把变化变成动画） */
html #studio .m-composer-box.is-animating{overflow:hidden!important;transition:height .24s cubic-bezier(.22,1,.36,1),padding .24s ease,margin .24s ease,border-radius .24s ease,background-color .24s ease,border-color .24s ease,box-shadow .24s ease!important}
@keyframes m-composer-rise{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){
 .m-composer-toggle-icon{transition:none!important}
 html #studio .m-composer-box,
 html #studio .m-composer-box>.m-composer-main,
 html #studio .m-composer-box>.m-pill-row,
 html #studio .m-composer-box>.price{transition:none!important}
 html #studio .m-composer-box.is-unfolding>.m-composer-main,
 html #studio .m-composer-box.is-unfolding>.m-pill-row,
 html #studio .m-composer-box.is-unfolding>.price{animation:none!important}
}
/* 123: 图片对话流，保留原生成和查询控件。 */
html #imageStudio #fiGallery[hidden],html #imageStudio .fi-gallery-head[hidden],html #imageStudio .light-history[hidden]{display:none!important}
html #imageStudio .m-image-chat-layout{display:block!important;padding-bottom:32px!important;max-width:1080px;margin-inline:auto}
html #imageStudio .m-image-conversation{min-width:0;padding-bottom:24px}
html #imageStudio .m-image-conversation .m-conversation-list{max-height:none;overflow:visible}
html #imageStudio .m-image-conversation .m-works-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
html #imageStudio .m-image-conversation .m-works-head h3{font-size:18px;margin:12px 0}
html #imageStudio .m-image-conversation .m-works-count{font-size:12px;color:var(--yx-text-3);margin-left:10px}
html #imageStudio .m-image-pending:empty{display:none}
html #imageStudio .m-image-pending,html #imageStudio .m-image-load-error{font-size:13px;color:var(--yx-text-2)}
html #imageStudio .m-composer-card{position:sticky!important;bottom:12px!important;max-width:1080px;min-width:0;box-sizing:border-box}
html #imageStudio .m-image-composer-body{min-width:0;position:relative;max-height:40dvh;overflow:auto;scrollbar-width:thin}
html #imageStudio .m-image-conversation button,html #imageStudio .m-image-conversation a,html #imageStudio .m-image-conversation input{scroll-margin-top:150px;scroll-margin-bottom:calc(var(--m-sticky-height,320px) + 32px)}
html #imageStudio .m-image-composer-body[hidden]{display:none!important}
html #imageStudio .m-composer-toggle{display:block;position:static!important;margin:0 auto 8px;min-height:28px;padding:2px 16px;border:0;border-radius:999px;background:var(--yx-field);color:var(--yx-text-2);font-size:12px;cursor:pointer}
html #imageStudio .is-composer-folded{padding:4px 12px!important;margin-top:12px!important}
html #imageStudio .is-composer-folded .m-composer-toggle{margin:0 auto}
html #imageStudio .m-image-composer-body #fiPrompt{width:100%;box-sizing:border-box}
html #imageStudio .m-image-composer-body #fiQuery{margin-top:8px;font-size:12px}
html #imageStudio .m-conversation-actions{flex-wrap:wrap}
html #imageStudio .m-studio-group-editor{flex-wrap:wrap;max-width:100%;box-sizing:border-box}
html #imageStudio .m-studio-group-editor input{min-width:0;max-width:100%;box-sizing:border-box}
html #imageStudio .m-conversation button:focus-visible,html #imageStudio .m-composer-toggle:focus-visible{outline:2px solid var(--yx-accent);outline-offset:3px}
@media(max-width:700px){html #imageStudio .m-conversation-list{padding:12px;gap:20px}html #imageStudio .m-conversation-request{padding:12px}html #imageStudio .m-composer-card{bottom:calc(68px + env(safe-area-inset-bottom,0px))!important;padding:10px!important}html #imageStudio .m-image-composer-body .fi-tools{flex-wrap:wrap!important}html #imageStudio .m-image-composer-body .ref-grid{max-width:100%}html #imageStudio .m-studio-group-editor label{max-width:100%}}
@media(prefers-reduced-motion:reduce){html #imageStudio .m-conv-media{transition:none!important;scroll-behavior:auto}}
/* 视频工作台 AI 帮写：描述框右上角按钮（独立接口 /api/studio/ai-write） */
html #studio .m-composer-box .prompt-wrap{position:relative!important}
html #studio .m-aiwrite-btn{position:absolute!important;top:0!important;right:0!important;z-index:3!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
 min-height:30px!important;padding:5px 12px!important;border:1px solid var(--yx-accent)!important;
 border-radius:999px!important;background:var(--yx-surface-strong)!important;color:var(--yx-accent)!important;
 font-size:12px!important;font-weight:600!important;line-height:1!important;cursor:pointer!important;
 box-shadow:0 2px 8px color-mix(in srgb,var(--yx-text) 10%,transparent)!important;transition:transform .15s ease,background .15s ease!important}
html #studio .m-aiwrite-btn:hover:not(:disabled){background:var(--yx-accent-soft,var(--yx-field))!important;transform:translateY(-1px)!important}
html #studio .m-aiwrite-btn:active:not(:disabled){transform:translateY(0)!important}
html #studio .m-aiwrite-btn:disabled{opacity:.5!important;cursor:not-allowed!important}
html #studio .m-aiwrite-btn.is-busy{opacity:.8!important;cursor:progress!important}
html #studio .m-aiwrite-btn:focus-visible{outline:2px solid var(--yx-accent)!important;outline-offset:2px!important}
html #studio .m-aiwrite-status{margin:6px 0 0!important;font-size:12px!important;line-height:1.5!important;color:var(--yx-text-2)!important}
html #studio .m-aiwrite-status:empty{display:none!important}
@media(max-width:640px){html #studio .m-aiwrite-btn{min-height:28px!important;padding:4px 10px!important;font-size:11.5px!important}}
@media(prefers-reduced-motion:reduce){html #studio .m-aiwrite-btn{transition:none!important}}
