:root{
  --reference-cyan:#12e7eb;
  --reference-black:#050505;
  --reference-line:#292929;
}

html,body{background:var(--reference-black);color:#fff}
body{min-width:1180px}
.app-shell{min-height:100vh;padding-top:78px;display:grid;grid-template-columns:minmax(520px,32.5vw) minmax(0,1fr);background:var(--reference-black)}
.topbar{position:fixed;inset:0 0 auto 0;z-index:70;height:78px;padding:0 32px;background:#fff;border:0;border-bottom:1px solid #d9d9d9;display:grid;grid-template-columns:auto minmax(320px,1fr) auto auto;gap:28px;align-items:center;color:#050505;box-shadow:none;backdrop-filter:none}
.brand{gap:12px;min-width:230px}.brand-mark{width:48px;height:48px;border-radius:0;background:transparent}.brand-mark img{width:100%;height:100%;object-fit:contain}.brand b{font-size:25px;letter-spacing:.04em;color:#e11}
.topbar-promise{font-size:18px;font-weight:1000;letter-spacing:.055em;white-space:nowrap;text-align:center}
.topbar-links{display:flex;align-items:center;gap:28px}.topbar-links button{padding:8px 0;border:0;background:transparent;color:#050505;font-size:17px;font-weight:1000;white-space:nowrap}
.top-actions{gap:7px;justify-content:flex-end}.top-actions .service-status,.top-actions .install-app-btn{display:none!important}.top-actions>button,.account-stat{border-radius:3px!important;box-shadow:none!important}.top-actions>button{padding:8px 10px;font-size:10px}.member-summary{gap:5px}.account-stat{min-width:74px!important;padding:5px 7px!important}.stat-dot{width:25px;height:25px;flex-basis:25px;border-radius:50%}.stat-copy b{max-width:54px;font-size:10px}

.lime-workbench{min-width:0;background:#050505;border-right:1px solid #292929;box-shadow:none;color:#fff}
.lime-inner{height:calc(100vh - 78px);padding:29px 32px 30px;overflow:auto;scrollbar-color:#444 #050505}
.hero-copy{padding:0 0 20px;border-bottom:1px solid #292929;display:grid;grid-template-columns:1fr auto;align-items:end;gap:12px}
.workbench-kicker{grid-column:1/-1;font-size:25px;font-weight:1000;letter-spacing:.12em}
.hero-copy h1{grid-column:2;margin:0;max-width:none!important;font-size:27px!important;line-height:1.1!important;letter-spacing:.04em!important;font-weight:1000;color:#fff;text-align:right}
.hero-copy p{display:none}

.lime-inner>.module-browser{padding:24px 0 0!important;background:none!important;border:0!important}
.module-heading{display:none!important}
.lime-inner>.module-browser .module-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.lime-inner>.module-browser .module-tabs button{min-height:64px!important;height:64px;padding:8px 10px!important;border:1px solid #303030!important;border-radius:15px!important;background:#050505!important;box-shadow:none!important;display:grid!important;grid-template-columns:1fr!important;place-items:center;color:#fff!important;text-align:center;transform:none!important;overflow:hidden}
.lime-inner>.module-browser .module-tabs button:hover,.lime-inner>.module-browser .module-tabs button:focus-visible{border-color:#797979!important;background:#111!important;outline:0}
.lime-inner>.module-browser .module-tabs button.active{border-color:var(--reference-cyan)!important;background:#111!important;color:#fff!important;box-shadow:inset 0 0 0 1px var(--reference-cyan)!important}
.module-tabs button:before,.module-icon,.module-tab-copy small,.module-tab-copy i,.module-selected{display:none!important}
.module-tab-copy{display:block!important;text-align:center}.module-tab-copy b{font-size:19px!important;line-height:1.12!important;letter-spacing:.045em!important;color:inherit!important;white-space:nowrap}
.module-context{display:none!important}

.template-detail{position:relative;margin:18px 0 0;padding:14px;border:1px solid var(--reference-cyan);background:#0b0d10;color:#fff}.template-detail-close{position:absolute;z-index:2;top:9px;right:9px;width:28px;height:28px;border:1px solid rgba(255,255,255,.32);border-radius:50%;background:#050505;color:#fff;font-size:18px;line-height:1}.template-detail-preview{height:190px;border:1px solid #343b42;background:#f2f5f6;overflow:hidden}.template-detail-preview svg{display:block;width:100%;height:100%}.template-detail-copy{padding:13px 2px 10px;border-bottom:1px solid #2d3339}.template-detail-copy>span{color:var(--reference-cyan);font-size:9px;font-weight:900;letter-spacing:.12em}.template-detail-copy h2{margin:4px 0 5px;color:#fff;font-size:20px}.template-detail-copy p{margin:0;color:#aeb7c0;font-size:11px;line-height:1.6}.template-detail-method{padding:12px 2px;border-bottom:1px solid #2d3339}.template-detail-method>b,.template-detail-prompt b{font-size:12px}.template-detail-method ol{margin:8px 0 0;padding-left:20px;color:#d6dce1;font-size:11px;line-height:1.75}.template-detail-prompt{padding:12px 2px 0}.template-detail-prompt>div{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.template-detail-prompt button{border:1px solid #4b555e;background:#11161b;color:#fff;padding:4px 10px;font-size:10px}.template-detail-prompt textarea{width:100%;min-height:176px;padding:11px;border:1px solid #343b42;border-radius:0;resize:vertical;background:#050505;color:#dce5eb;font-size:11px;line-height:1.65}.template-apply-btn{width:100%;height:42px;margin-top:10px;border:0;border-radius:999px;background:var(--reference-cyan);color:#050505;font-weight:1000}
.template-detail-preview img{display:block;width:100%;height:100%;object-fit:contain;background:#eef2f3}.template-thumb{position:relative}.template-thumb>img{display:block;width:100%;height:100%;object-fit:cover}.template-card.real-template>b{color:#006f76}
.template-detail-preview.clickable{position:relative;cursor:zoom-in;outline:0}.template-detail-preview.clickable:hover,.template-detail-preview.clickable:focus-visible{border-color:var(--reference-cyan);box-shadow:0 0 0 2px rgba(18,231,235,.2)}.template-preview-zoom{position:absolute;right:9px;bottom:9px;padding:5px 9px;border-radius:999px;background:rgba(5,12,18,.78);color:#fff;font-size:9px;font-weight:800}.template-focus-mode{height:100%;min-height:590px;padding:0!important}.template-focus-view{height:100%;min-height:590px;display:flex;flex-direction:column;background:#f2f5f6}.template-focus-view>header{min-height:70px;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #dce3e7;background:#fff}.template-focus-view>header span{color:#63717d;font-size:9px;font-weight:900;letter-spacing:.14em}.template-focus-view>header h3{margin:3px 0 0;font-size:20px}.template-focus-view>header button,.template-focus-view>footer button{height:36px;padding:0 18px;border:1px solid #cdd7dc;border-radius:999px;background:#fff;color:#14212a;font-weight:800;cursor:pointer}.template-focus-canvas{flex:1;min-height:0;padding:24px;display:grid;place-items:center;overflow:auto;background:#e9eef0}.template-focus-canvas img{display:block;max-width:100%;max-height:calc(100vh - 250px);object-fit:contain;background:#fff;box-shadow:0 12px 36px rgba(31,49,61,.18)}.template-focus-view>footer{min-height:64px;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #dce3e7;background:#fff;color:#65727d;font-size:11px}.template-focus-view>footer button{border:0;background:var(--reference-cyan);color:#071013}.template-apply-btn:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:760px){.template-focus-mode,.template-focus-view{min-height:500px}.template-focus-view>header{padding:12px 13px}.template-focus-canvas{padding:12px}.template-focus-canvas img{max-height:68vh}.template-focus-view>footer{align-items:flex-start;flex-direction:column}.template-focus-view>footer button{width:100%}}

.lime-inner>.upload-step{margin:18px 0 0!important;padding:16px 0 0!important;border-top:1px solid #292929!important}
.upload-step>.step-title{display:none}.upload-zone{height:64px!important;border:1px solid #343434!important;border-radius:0!important;background:#080808!important;background-image:none!important;box-shadow:none!important;color:#fff;display:flex;flex-direction:row;gap:9px;padding:10px 14px;justify-content:flex-start;transform:none!important}
.upload-zone:hover,.upload-zone.drag{border-color:var(--reference-cyan)!important;box-shadow:none!important}.upload-icon{width:31px;height:31px;margin:0;border:1px solid #4a4a4a;background:#111;color:var(--reference-cyan);font-size:18px}.upload-zone b{font-size:13px}.upload-zone small{margin:0 0 0 auto;color:#838383;font-size:9px}.mobile-upload-choices{margin-left:auto}
.asset-list{grid-template-columns:repeat(5,1fr);gap:6px;margin-top:8px}.asset{height:64px;border-color:#343434;border-radius:0}
.reference-upload-head{margin-top:8px;padding:9px 11px;border:1px solid #343434;border-radius:0;background:#080808;color:#fff}.reference-upload-head small{color:#858585}.reference-zone{height:54px!important;margin-top:6px}

.config-step{margin-top:12px!important;display:flex;flex-direction:column}.config-step>.step-title{display:none}.settings-grid{order:1;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px!important;margin-top:0!important}.setting-block{min-width:0;padding:9px 8px;border:1px solid #343434;background:#080808}.setting-block>label{margin-bottom:6px!important;color:#fff!important;font-size:10px!important}.number-choices,.pill-choices{gap:3px!important}.number-choices button,.pill-choices button{height:31px!important;min-width:0;padding:0 4px!important;border:1px solid #343434!important;border-radius:2px!important;background:#0c0c0c!important;color:#eee!important;font-size:10px!important;box-shadow:none!important;transform:none!important}.number-choices button.active,.pill-choices button.active{border-color:var(--reference-cyan)!important;background:var(--reference-cyan)!important;color:#050505!important}.field-block input,.dimension-input{height:36px;border-color:#343434!important;border-radius:0!important;background:#0c0c0c!important;color:#fff}.design-size-panel,.precision-panel{grid-column:1/-1}.materialPanel{grid-column:span 2}.dimension-fields{grid-template-columns:1fr auto 1fr}.print-spec-hint,.print-advanced{color:#aaa}.precision-panel{background:#080808!important;border-color:#343434!important}.precision-switch b{color:#fff}.precision-switch i{background:#111;border-color:#555}.precision-fields textarea{background:#0b0b0b;color:#fff;border-color:#3b3b3b}
.prompt-label{order:3;margin:12px 0 7px!important;color:#fff!important}.prompt-label>span{font-size:11px}.prompt-label>small{border:0!important;background:transparent!important;color:#d22!important;padding:0!important}
.prompt-box{order:4;border:1px solid #343434!important;border-radius:0!important;background:#050505!important;box-shadow:none!important;transform:none!important}.prompt-box textarea{min-height:132px;padding:16px;color:#fff!important;background:#050505!important;font-size:12px}.prompt-box textarea::placeholder{color:#747474}.prompt-box>small{padding:8px 14px;border-color:#292929!important;background:#050505!important;color:#aaa!important;text-align:right}.prompt-box>small:after{content:"";color:#e22;margin-left:4px}
.smart-create-bar{order:5;margin-top:8px}.smart-tool-button{border-color:#3a3a3a!important;background:#0a0a0a!important;color:#fff!important}.smart-tool-popover{background:#101010!important;border-color:#444!important}.smart-tool-popover button{color:#fff!important}
.wall-document-panel,.wall-analysis-panel,.clarification-card{order:2;background:#080808!important;border-color:#3a3a3a!important;color:#fff}.wall-document-drop{color:#fff!important}
.lime-inner>#generateBtn{position:relative!important;bottom:auto!important;height:47px!important;margin-top:16px!important;border:1px solid var(--reference-cyan)!important;border-radius:999px!important;background:var(--reference-cyan)!important;color:#050505!important;box-shadow:none!important;font-size:20px!important;letter-spacing:.08em;transform:none!important}.lime-inner>#generateBtn:hover{background:#42f5f6!important}.cost-hint{color:#8b8b8b}

.studio-stage{height:calc(100vh - 78px);min-width:0;overflow:auto;background:#050505;color:#fff}
.output-zone{padding:30px 46px 38px!important}.result-label{margin:0 0 15px!important}.result-label b{display:none!important}.result-label h2{color:#fff!important;font-size:23px!important;letter-spacing:.09em}
.output-toolbar{min-height:52px;padding:9px 18px;border-bottom:1px solid #dedede;background:#fff;color:#050505;display:flex;align-items:center;justify-content:space-between;gap:12px}.output-toolbar>span{font-size:12px;font-weight:900}.output-toolbar>div{display:flex;gap:7px}.output-toolbar button{height:31px;padding:0 14px;border:1px solid #cfd4d4;border-radius:999px;background:#fff;color:#050505;font-size:11px;font-weight:900}.output-toolbar button:hover{border-color:#050505}.output-toolbar button:last-child{border-color:var(--reference-cyan);background:var(--reference-cyan)}
.output-panel{min-height:590px;border:0!important;border-radius:0!important;background:#fff!important;background-image:none!important;box-shadow:none!important;color:#050505;overflow:hidden}
.empty-state,.progress-view{min-height:590px!important;background:#fff!important;color:#050505!important;padding:38px!important}.empty-showcase,.empty-badge,.empty-steps,.empty-foot{display:none!important}.empty-copy{max-width:720px}.empty-copy h2{margin:0 0 14px!important;color:#050505!important;font-family:"STKaiti","KaiTi","Microsoft YaHei",sans-serif;font-size:35px!important;font-weight:500;line-height:1.45;white-space:pre-line}.empty-copy h2:after{content:"\A在没有设计图的时候\A可否显示广告";white-space:pre;color:#050505}.empty-copy>p{display:none}.empty-copy>button{margin-top:72px;min-width:210px;height:43px;border:0;border-radius:999px;background:var(--reference-cyan);color:#050505;font-weight:1000}.empty-state.message-state .empty-copy h2:after,.empty-state.failure-state .empty-copy h2:after{display:none}.empty-retry-btn{border:1px solid #222;background:#fff}.progress-view h2,.results-head h2{color:#050505!important}.results-view{min-height:590px;background:#fff}.result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.result-card{border-radius:0;box-shadow:none}.result-actions a:first-child{background:#050505;color:var(--reference-cyan)}
.design-records{margin-top:28px}.design-records-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.design-records-head h2{margin:0;color:#fff;font-size:22px;letter-spacing:.08em}.design-records-head button{border:1px solid #3b3b3b;border-radius:999px;background:#050505;color:#fff;padding:7px 14px;font-size:10px}.design-record-strip{min-height:112px;padding:10px;background:#fff;display:flex;gap:9px;overflow-x:auto;color:#050505}.design-record-empty{margin:auto;color:#777;font-size:12px}.design-record-card{position:relative;flex:0 0 122px;height:90px;border:1px solid #e0e0e0;background:#f4f7f7;overflow:hidden;text-align:left;padding:0}.design-record-card img{width:100%;height:66px;display:block;object-fit:contain}.design-record-card span{display:block;padding:5px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#333}.design-record-card.no-image{display:grid;place-items:center;padding:8px;font-weight:900}.design-record-card.active{outline:2px solid var(--reference-cyan)}

.lime-inner *,.output-zone *{animation-duration:0s!important;transition-duration:0s!important}

@media(max-width:1540px){
  .topbar{grid-template-columns:auto minmax(240px,1fr) auto;gap:18px}.topbar-promise{font-size:14px}.topbar-links{display:none}.brand{min-width:170px}.top-actions .recharge-top-btn{display:none}
  .app-shell{grid-template-columns:minmax(500px,35vw) minmax(0,1fr)}.output-zone{padding-left:30px!important;padding-right:30px!important}
}

@media(max-width:1180px){body{min-width:0}.topbar-promise{display:none}.topbar{grid-template-columns:auto 1fr}.top-actions{min-width:0}.app-shell{grid-template-columns:460px minmax(0,1fr)}.lime-inner{padding-left:24px;padding-right:24px}.module-tab-copy b{font-size:15px!important}.output-panel,.empty-state,.progress-view,.results-view{min-height:510px!important}}

@media(max-width:760px){
  body{min-width:0;background:#050505}.app-shell{display:block;padding-top:0}.topbar{position:relative;inset:auto;height:auto;min-height:64px;padding:9px 14px;display:flex;gap:10px}.brand{min-width:0}.brand-mark{width:38px;height:38px}.brand b{font-size:20px}.top-actions{margin-left:auto}.top-actions .task-center-btn,.top-actions .account-switch,.member-summary{display:none!important}
  .lime-inner,.studio-stage{height:auto;overflow:visible}.lime-inner{padding:22px 16px 30px}.workbench-kicker{font-size:20px}.hero-copy h1{font-size:21px!important}.lime-inner>.module-browser .module-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lime-inner>.module-browser .module-tabs button{height:58px!important;min-height:58px!important}.module-tab-copy b{font-size:15px!important}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.design-size-panel,.precision-panel{grid-column:1/-1}.output-zone{padding:24px 16px 110px!important}.result-label h2{font-size:20px!important}.output-toolbar{align-items:flex-start;flex-direction:column}.output-toolbar>div{width:100%;overflow-x:auto}.output-panel,.empty-state,.progress-view,.results-view{min-height:380px!important}.empty-copy h2{font-size:24px!important}.empty-copy>button{margin-top:35px}.design-record-strip{min-height:104px}.mobile-dock{z-index:90}
}

/* Final copy and empty-canvas treatment. */
.prompt-box>small:after{content:""!important}
.empty-state:not(.message-state) .empty-copy h2{font-size:0!important}
.empty-state:not(.message-state) .empty-copy h2:after{content:"设计成品将在这里显示";font-size:35px;line-height:1.45}
@media(max-width:760px){.empty-state:not(.message-state) .empty-copy h2:after{font-size:24px}}

/* Beat legacy high-specificity glass-theme selectors from the production skin. */
html body .studio-stage>.topbar{position:fixed!important;inset:0 0 auto 0!important;width:100%!important;height:78px!important;padding:0 32px!important;background:#fff!important;color:#050505!important;border-bottom:1px solid #d9d9d9!important;display:grid!important;grid-template-columns:auto minmax(320px,1fr) auto auto!important;gap:28px!important;box-shadow:none!important;backdrop-filter:none!important}
html body .studio-stage>.topbar .topbar-promise,html body .studio-stage>.topbar .topbar-links button{color:#050505!important}
html body .studio-stage>.topbar .brand b{color:#e11!important}
html body .studio-stage>.topbar .top-actions>button,html body .studio-stage>.topbar .account-stat,html body .studio-stage>.topbar .stat-copy b,html body .studio-stage>.topbar .stat-copy small{color:#050505!important}
html body .studio-stage>.topbar .top-actions .account{background:#050505!important;color:#fff!important}
html body .lime-inner>.module-browser .module-tabs>button{grid-column:auto!important}
html body .lime-inner>.module-browser .module-tabs>button:nth-child(15){grid-column:1!important}
html body .lime-inner>.module-browser .module-tabs>button .module-tab-copy b{color:#fff!important}
html body .studio-stage>.output-zone .output-panel{min-height:590px!important;background:#fff!important;border:0!important;box-shadow:none!important;overflow:hidden!important}
html body .studio-stage>.output-zone .output-panel>.empty-state{min-height:590px!important;background:#fff!important;border:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:38px!important}
html body .studio-stage>.output-zone .output-panel>.empty-state .empty-copy{width:auto!important;max-width:720px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
html body .studio-stage>.output-zone #emptyBadge{display:none!important}
html body .studio-stage>.output-zone .empty-copy>button{background:var(--reference-cyan)!important;color:#050505!important;border:0!important;box-shadow:none!important}

/* Per-capability material gallery shown before a result exists. */
html body .studio-stage>.output-zone .output-panel>.empty-state.template-mode:not(.message-state){display:block!important;align-items:stretch!important;justify-content:flex-start!important;padding:0!important;overflow:auto!important}
.empty-state.template-mode:not(.message-state)>.empty-showcase,.empty-state.template-mode:not(.message-state)>.empty-copy,.empty-state.template-mode:not(.message-state)>.empty-steps,.empty-state.template-mode:not(.message-state)>.empty-foot{display:none!important}.empty-state.message-state>.template-gallery{display:none!important}
.template-gallery{display:block;width:100%;padding:20px 22px 28px;background:#fff;color:#101820}
.template-gallery-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:0 2px 16px;border-bottom:1px solid #e6ebee}.template-gallery-title span{display:block;margin-bottom:3px;color:#657688;font-size:9px;font-weight:900;letter-spacing:.16em}.template-gallery-title h3{margin:0;font-size:20px;line-height:1.2}.template-gallery-title small{color:#7a8793;font-size:11px}.template-search{display:flex;align-items:center;width:min(460px,48%);height:42px;padding:0 12px;border:1px solid #dce5e9;border-radius:11px;background:#f7f9fa;transition:.18s ease}.template-search:focus-within{border-color:#10bfc7;background:#fff;box-shadow:0 0 0 3px rgba(16,191,199,.12)}.template-search i{width:16px;height:16px;margin-right:9px;border:2px solid #738391;border-radius:50%;position:relative;flex:none}.template-search i:after{content:"";position:absolute;width:6px;height:2px;right:-5px;bottom:-2px;border-radius:2px;background:#738391;transform:rotate(45deg)}.template-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#172431;font:inherit;font-size:13px}.template-search input::placeholder{color:#98a5ae}.template-search button{width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#e6ecef;color:#667784;font-size:18px;line-height:22px;cursor:pointer}.template-search-category{display:block;margin-top:3px;overflow:hidden;color:#8a98a3;font-size:9px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.template-search-results .template-card:nth-child(n){display:block}.template-search-empty{display:grid;place-items:center;min-height:260px;color:#7b8994;text-align:center}.template-search-empty b{margin-bottom:-95px;color:#344451;font-size:15px}.template-search-empty span{font-size:12px}.template-search .hidden{display:none}
.template-section{padding:18px 0 2px}.template-section+.template-section{border-top:1px solid #eef1f3}.template-section header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.template-section h4{margin:0;font-size:14px;font-weight:900}.template-section header button{border:0;background:transparent;color:#111;font-size:11px;cursor:pointer}.template-section header button b{font-size:18px;line-height:0;vertical-align:-1px}
.template-grid{display:grid;grid-template-columns:repeat(9,minmax(82px,1fr));gap:12px}.template-card{min-width:0;padding:0;border:0;background:transparent;color:#17202a;cursor:pointer;text-align:center}.template-thumb{display:block;width:100%;aspect-ratio:1.28/1;border:1px solid #e7ecef;border-radius:10px;background:#eff3f5;overflow:hidden}.template-thumb svg{display:block;width:100%;height:100%}.template-card>b{display:block;margin-top:8px;overflow:hidden;color:#17202a;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.template-card:hover .template-thumb,.template-card:focus-visible .template-thumb{border-color:#13cbd2;box-shadow:0 0 0 2px rgba(18,231,235,.22)}.template-card.active .template-thumb{border-color:#00aeb7;box-shadow:0 0 0 3px rgba(18,231,235,.3)}.template-card.active>b{color:#007a82}.template-card:focus-visible{outline:0}
@media(max-width:1540px){.template-grid{grid-template-columns:repeat(6,minmax(84px,1fr))}.template-card:nth-child(n+7){display:none}.template-section.expanded .template-card{display:block}}
@media(max-width:1180px){.template-grid{grid-template-columns:repeat(4,minmax(84px,1fr))}.template-card:nth-child(n+5){display:none}.template-section.expanded .template-card{display:block}}

@media(max-width:1540px){html body .studio-stage>.topbar{grid-template-columns:auto minmax(240px,1fr) auto!important;gap:18px!important}}
@media(max-width:1180px){html body .studio-stage>.topbar{grid-template-columns:auto 1fr!important}}
@media(max-width:760px){html body .studio-stage>.topbar{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;min-height:64px!important;padding:9px 14px!important;display:flex!important;gap:10px!important}}
@media(max-width:760px){html body .lime-inner>.module-browser .module-tabs>button:nth-child(15){grid-column:auto!important}}
@media(max-width:760px){.template-gallery{padding:16px 13px 22px}.template-gallery-title{display:block}.template-gallery-title small{display:block;margin-top:6px}.template-search{width:100%;margin-top:13px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.template-card:nth-child(n){display:block}.template-thumb{aspect-ratio:1.35/1}}
.template-search-empty{display:flex;min-height:260px;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.template-search-empty b{margin-bottom:0}
@media(max-width:760px){.template-detail{margin-top:14px}.template-detail-preview{height:165px}.template-detail-prompt textarea{min-height:155px}}

/* Template-first workflow: legacy upload/request blocks disappear after a template is chosen. */
body.template-selected .lime-inner>.upload-step,
body.template-selected .lime-inner>.config-step,
body.template-library-active .lime-inner>.upload-step,
body.template-library-active .lime-inner>.config-step{display:none!important}
body.template-library-active:not(.template-selected) .lime-inner>#generateBtn,
body.template-library-active:not(.template-selected) .lime-inner>#costHint{display:none!important}
.template-edit-heading{margin-top:14px;padding:12px 2px 8px;border-top:1px solid #2d3339;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.template-edit-heading b{font-size:13px}.template-edit-heading small{color:#8d9aa5;font-size:9px}.template-settings-slot{display:grid;grid-template-columns:1fr;gap:8px}.template-settings-slot .setting-block{width:100%;padding:10px;border-color:#343b42;background:#080a0d}.template-settings-slot .number-choices{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}.template-settings-slot .number-choices button{min-width:0;padding:0}.template-settings-slot .pill-choices{display:flex;flex-wrap:wrap}.template-settings-slot .template-ratio{min-width:112px!important;border-color:var(--reference-cyan)!important}.template-settings-slot .design-size-panel{display:block!important}.template-settings-slot .dimension-fields{gap:8px}.template-actions-slot{display:grid;gap:9px;margin-top:9px}.template-actions-slot .smart-create-bar{order:0!important;width:100%!important;margin:0!important}.template-actions-slot .smart-tool-wrap{width:100%}.template-actions-slot .smart-ability-button{width:100%!important;min-height:42px!important}.template-actions-slot .generate-btn{position:static!important;width:100%!important;height:47px!important;margin:0!important;border:1px solid var(--reference-cyan)!important;border-radius:999px!important;background:var(--reference-cyan)!important;color:#050505!important;box-shadow:none!important;font-size:16px!important;font-weight:1000!important;transform:none!important}.template-actions-slot .cost-hint{margin:0;color:#8b969e;text-align:center;font-size:9px}
.output-professional-settings{border-bottom:1px solid #dfe4e7;background:#f7f9fa;color:#18242d}.output-professional-settings>summary{min-height:44px;padding:10px 18px;display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}.output-professional-settings>summary::-webkit-details-marker{display:none}.output-professional-settings>summary span{font-size:12px;font-weight:900}.output-professional-settings>summary small{color:#71808c;font-size:10px}.output-professional-settings>summary:after{content:"⌄";margin-left:auto;color:#54636f}.output-professional-settings[open]>summary:after{content:"⌃"}.output-professional-body{padding:0 18px 14px;display:flex;align-items:center;gap:14px}.output-professional-body label{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:800}.output-professional-body select{height:34px;padding:0 30px 0 10px;border:1px solid #cfd8dd;border-radius:7px;background:#fff;color:#17232c}.output-professional-body p{margin:0;color:#71808c;font-size:10px}
@media(max-width:760px){.template-edit-heading{align-items:flex-start;flex-direction:column}.template-settings-slot .number-choices{grid-template-columns:repeat(5,minmax(0,1fr))}.template-settings-slot .dimension-fields{grid-template-columns:1fr}.template-settings-slot .dimension-fields>b{display:none}.output-professional-body{align-items:flex-start;flex-direction:column}.output-professional-settings>summary small{display:none}}

/* One composer for every capability. Templates only preload a reference and prompt. */
.lime-inner>.upload-step,.lime-inner>.config-step,.lime-inner>#generateBtn,.lime-inner>#costHint{display:none!important}
.unified-composer{position:relative;margin-top:18px;border:1px solid #3b7cff;border-radius:16px;background:#fff;color:#14212a;box-shadow:0 12px 32px rgba(19,56,105,.13);overflow:visible}.composer-main{min-height:144px;padding:12px;display:flex;gap:10px}.composer-media-slot{flex:0 0 auto;display:flex;align-items:flex-start;gap:7px;max-width:152px;overflow-x:auto}.composer-prompt-slot{flex:1;min-width:0}.unified-composer .prompt-box{height:100%;border:0!important;background:#fff!important}.unified-composer .prompt-box textarea{min-height:116px!important;max-height:220px;padding:5px 8px!important;background:#fff!important;color:#17212a!important;font-size:12px;line-height:1.65;resize:vertical}.unified-composer .prompt-box textarea::placeholder{color:#aab2b9}.unified-composer .prompt-box>small{display:none}.unified-composer .upload-zone{flex:0 0 62px;width:62px!important;height:92px!important;min-height:92px!important;padding:0!important;display:grid!important;place-items:center!important;border:0!important;border-radius:10px!important;background:#eef3ff!important;color:#5973b4!important}.unified-composer .upload-zone b,.unified-composer .upload-zone small,.unified-composer .mobile-upload-choices{display:none!important}.unified-composer .upload-icon{width:34px;height:34px;margin:0;border:0;background:transparent;color:#6a7fae;font-size:0}.unified-composer .upload-icon:after{content:"＋";font-size:25px}.unified-composer .asset-list{display:flex;gap:6px;margin:0}.unified-composer .asset{flex:0 0 62px;width:62px;height:92px;border:1px solid #dce4ec;border-radius:9px}.unified-composer .asset-remove{width:20px;height:20px}.composer-template-reference{position:relative;flex:0 0 62px;width:62px;height:92px;padding:0;border:1px solid #8ab4ff;border-radius:9px;background:#edf3f7;overflow:hidden;cursor:zoom-in}.composer-template-reference img{width:100%;height:100%;display:block;object-fit:cover}.composer-template-reference span{position:absolute;inset:auto 2px 3px;padding:2px;border-radius:3px;background:rgba(8,20,31,.72);color:#fff;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer-template-reference i{position:absolute;top:3px;right:3px;padding:2px 4px;border-radius:4px;background:#15ccd5;color:#071114;font-size:7px;font-style:normal;font-weight:900}.composer-footer{min-height:50px;padding:7px 10px;display:flex;align-items:center;gap:7px;border-top:1px solid #e6ebf1;background:#f4f7ff;border-radius:0 0 15px 15px}.composer-recommend{font-size:10px;font-weight:900;white-space:nowrap}.composer-control{min-height:34px;padding:0 10px;display:flex;align-items:center;gap:5px;border:1px solid #e4e9f0;border-radius:999px;background:#fff;color:#2e485f;font-size:10px;white-space:nowrap;cursor:pointer}.composer-control>i{color:#9aa8b5;font-style:normal}.composer-model i{width:7px;height:7px;border-radius:50%;background:#20c978}.composer-popover-wrap{position:relative}.composer-settings-popover{position:absolute;z-index:50;left:0;bottom:calc(100% + 10px);width:360px;padding:12px;border:1px solid #e1e6eb;border-radius:13px;background:#fff;box-shadow:0 18px 46px rgba(27,42,56,.2);color:#17212a}.composer-count-popover{width:300px}.composer-settings-popover .setting-block{display:block!important;width:100%;padding:8px;border:0;background:#fff}.composer-settings-popover .setting-block>label{color:#17212a!important;font-size:11px!important}.composer-settings-popover .number-choices{grid-template-columns:repeat(5,1fr)!important}.composer-settings-popover .number-choices button,.composer-settings-popover .pill-choices button{height:36px!important;border:1px solid #e2e7ec!important;background:#f5f7fb!important;color:#203448!important}.composer-settings-popover .number-choices button.active,.composer-settings-popover .pill-choices button.active{border-color:#3185ff!important;background:#e7f2ff!important;color:#1767cf!important}.composer-settings-popover .design-size-panel{margin-top:8px!important;border-top:1px solid #edf0f2!important}.composer-settings-popover .dimension-input{background:#f7f9fb!important}.composer-generate-slot{margin-left:auto;display:flex;align-items:center;gap:7px}.composer-generate-slot .generate-btn{width:auto!important;min-width:78px;height:36px!important;margin:0!important;padding:0 14px!important;border:0!important;border-radius:999px!important;background:linear-gradient(110deg,#5377ef,#23b9dd)!important;color:#fff!important;box-shadow:none!important;font-size:0!important;transform:none!important}.composer-generate-slot .generate-btn:after{content:"生成 ➤";font-size:11px;font-weight:900}.composer-generate-slot .cost-hint{display:none}.composer-extra-slot:empty{display:none}.composer-extra-slot:not(:empty){padding:0 12px}.unified-composer .smart-create-bar{order:0!important;width:auto!important;max-width:none!important;margin:0!important}.unified-composer .smart-ability-button{min-width:96px!important;min-height:34px!important;border-radius:999px!important;background:#fff!important;color:#2e485f!important}.unified-composer .smart-ability-button>b{color:#2e485f!important}.unified-composer .smart-ability-button>span{color:#357eff!important}.unified-composer .smart-tool-popover{bottom:calc(100% + 9px);top:auto}.unified-composer .reference-section{position:absolute;z-index:40;left:12px;right:12px;top:calc(100% + 8px);padding:10px;border:1px solid #dce4ea;background:#fff;box-shadow:0 14px 36px rgba(22,42,60,.18)}
@media(max-width:760px){.unified-composer{margin-top:14px}.composer-main{min-height:132px;padding:9px}.composer-media-slot{max-width:72px}.composer-footer{align-items:stretch;flex-wrap:wrap}.composer-recommend{width:100%}.composer-control{flex:1;justify-content:center}.composer-model{max-width:155px}.composer-generate-slot{margin-left:0;flex:1}.composer-generate-slot .generate-btn{width:100%!important}.composer-settings-popover{position:fixed;left:12px;right:12px;bottom:78px;width:auto}.composer-count-popover{width:auto}.unified-composer .smart-tool-wrap{width:auto}.unified-composer .smart-ability-button{width:auto!important}.unified-composer .prompt-box textarea{font-size:11px}}

/* Compact sidebar fit and removal of legacy document intake. */
.unified-composer .wall-document-panel{display:none!important}.unified-composer .prompt-box>small{display:none!important}.unified-composer .upload-zone>*:not(input){display:none!important}.unified-composer .upload-zone:after{content:"＋";display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#e9efff;color:#6078b8;font-size:28px;font-weight:400}.composer-footer{flex-wrap:nowrap}.composer-recommend{display:none}.unified-composer .smart-ability-button{min-width:82px!important;padding:0 8px!important}.composer-model{max-width:101px;padding:0 8px}.composer-control{padding:0 8px}.composer-generate-slot .generate-btn{min-width:64px!important;padding:0 10px!important}.composer-extra-slot:has(.wall-analysis-panel:not(.hidden)),.composer-extra-slot:has(.clarification-card:not(.hidden)){display:block;padding:8px 12px}.composer-extra-slot:not(:has(.wall-analysis-panel:not(.hidden))):not(:has(.clarification-card:not(.hidden))){display:none}
@media(max-width:760px){.composer-footer{flex-wrap:wrap}.composer-recommend{display:none}.composer-model{max-width:none}.unified-composer .smart-ability-button{min-width:96px!important}}

/* Keep the original vertical workbench. Only the ability, model and ratio
   interactions borrow the compact reference controls. */
.lime-inner>.upload-step{display:block!important}
.lime-inner>.config-step,
body.template-selected .lime-inner>.config-step,
body.template-library-active .lime-inner>.config-step{display:flex!important}
body.template-selected .lime-inner>.upload-step,
body.template-library-active .lime-inner>.upload-step{display:block!important}
.lime-inner>#generateBtn,
.lime-inner>#costHint,
body.template-library-active:not(.template-selected) .lime-inner>#generateBtn,
body.template-library-active:not(.template-selected) .lime-inner>#costHint{display:block!important}
.config-step .smart-create-bar{order:0!important;width:100%!important;margin:0 0 10px!important;display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important}
.config-step .settings-grid{order:1!important}
.config-step .wall-document-panel{display:none!important}
.config-step .wall-analysis-panel,.config-step .clarification-card{order:2!important}
.config-step .prompt-label{order:3!important}
.config-step .prompt-box{order:4!important}
.smart-tool-wrap{position:relative}
.smart-tool-button{min-height:38px!important;padding:0 11px!important;border-radius:9px!important;display:flex!important;align-items:center!important;gap:6px!important;cursor:pointer}
.smart-tool-button b{font-size:10px!important;white-space:nowrap}.smart-tool-button i{color:#89939c;font-style:normal}
.smart-online-dot{width:8px;height:8px;border-radius:50%;background:#27d17f;box-shadow:0 0 0 3px rgba(39,209,127,.13)}
.smart-model-menu{width:270px!important}.smart-ratio-menu{width:410px!important;max-height:min(62vh,520px);padding:10px!important;overflow:auto}
.smart-model-menu button{display:grid!important;grid-template-columns:22px 1fr!important;grid-template-rows:auto auto!important;text-align:left!important}.smart-model-menu button>span{grid-row:1/3}.smart-model-menu button>small{grid-column:2;color:#8d99a3!important}
#smartRatioSlot{display:grid;gap:9px}.smart-ratio-menu .setting-block{display:block;width:100%;padding:9px;border-color:#343b42;background:#080a0d}.smart-ratio-menu .setting-block>label{color:#fff!important}.smart-ratio-menu .pill-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important}.smart-ratio-menu .pill-choices button{height:40px!important}.smart-ratio-menu .design-size-panel{grid-column:auto}.smart-ratio-menu .dimension-fields{gap:8px}
@media(max-width:760px){.smart-model-menu,.smart-ratio-menu{position:fixed!important;z-index:120!important;left:12px!important;right:12px!important;top:auto!important;bottom:78px!important;width:auto!important;max-height:68vh}.smart-ratio-menu .pill-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.config-step .smart-create-bar{gap:6px!important}.smart-tool-button{padding:0 9px!important}}
.capability-hidden{display:none!important}
[data-smart-action].active{border-color:#1fd6df!important;background:#10292d!important;color:#eaffff!important}
.composer-generate-slot .generate-btn:after{content:attr(data-action-label)}
.smart-model-auto{cursor:default!important;opacity:1!important;background:#f4f7f8!important;color:#24485b!important}.smart-model-auto i{color:#5f7784!important;font-size:8px!important}
.result-actions{display:block!important;padding:0 13px 14px!important}.result-tool-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.result-tool-heading b{color:#18384b!important;font-size:12px!important}.result-tool-heading small{color:#748895!important;font-size:9px!important}.result-continue-zone{padding:11px;border:1px solid #dce6e9;border-radius:12px;background:#f7fafb}.result-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.result-quick-actions button{min-height:39px;border:1px solid #b8ced5!important;border-radius:8px!important;background:#fff!important;color:#1f4859!important;font-size:11px!important;font-weight:900!important;cursor:pointer}.result-quick-actions button[data-local-edit]{border-color:#1aa9b5!important;background:#e9fbfc!important;color:#087480!important}.result-format-downloads{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}.result-format-download{min-width:0!important;min-height:48px!important;padding:8px 4px!important;border:1px solid #cbdde2!important;border-radius:8px!important;background:#fff!important;color:#24485b!important}.result-format-download b{display:block!important;color:#24485b!important}.result-format-download small{display:block!important;margin-top:3px;color:#6c8490!important}.result-format-download.psd-format{border-color:#72cfc4!important;background:#edfbf8!important}.background-download{display:flex!important;margin-top:9px!important;background:#fff!important;color:#24485b!important}
.result-actions{display:block!important;padding:0 13px 14px!important}.result-tool-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.result-tool-heading b{color:#18384b!important;font-size:12px!important}.result-tool-heading small{color:#748895!important;font-size:9px!important}.result-continue-zone{padding:11px;border:1px solid #dce6e9;border-radius:12px;background:#f7fafb}.result-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.result-quick-actions button{min-height:39px;border:1px solid #b8ced5!important;border-radius:8px!important;background:#fff!important;color:#1f4859!important;font-size:11px!important;font-weight:900!important;cursor:pointer}.result-quick-actions button[data-local-edit]{border-color:#1aa9b5!important;background:#e9fbfc!important;color:#087480!important}.result-format-downloads{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}.result-format-download{min-width:0!important;min-height:48px!important;padding:8px 4px!important;border:1px solid #cbdde2!important;border-radius:8px!important;background:#fff!important;color:#24485b!important}.result-format-download b{display:block!important;color:#24485b!important}.result-format-download small{display:block!important;margin-top:3px;color:#6c8490!important}.result-format-download.psd-format{border-color:#72cfc4!important;background:#edfbf8!important}.background-download{display:flex!important;margin-top:9px!important;background:#fff!important;color:#24485b!important}
@media(max-width:760px){.result-quick-actions{grid-template-columns:1fr 1fr}.result-quick-actions button:first-child{grid-column:1/-1}.result-format-downloads{grid-template-columns:repeat(2,minmax(0,1fr))!important}.result-tool-heading{align-items:flex-start;flex-direction:column;gap:3px}}
