:root{--accent:#292824;--brand-color:#957a62;--ink:#272622;--muted:#8b867d;--paper:#f8f7f4;--line:#e5e1da;--white:#fff;--soft:#f0eee8;font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button,a,label,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:1px solid var(--line);border-radius:3px;padding:9px 17px;background:transparent;transition:background .18s,border-color .18s}
button:hover{border-color:#b8afa2;background:#f0eee9}
button:disabled{opacity:.5;cursor:wait}
button.primary{background:var(--ink);color:#fff;border-color:var(--ink)}
button.primary:hover{background:#454139;border-color:#454139}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #9b8066;outline-offset:4px}
a{color:#6d5c4b;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:4px}
svg{display:block;flex-shrink:0}
h1,h2,h3,p{margin-top:0}
h1{font-family:"Songti SC","STSong","Noto Serif CJK SC",SimSun,serif;font-size:32px;font-weight:500;line-height:1.45;letter-spacing:.025em;margin-bottom:9px}
h2{font-size:16px;font-weight:550;letter-spacing:.02em;margin-bottom:18px}
h3{font-size:14px;font-weight:550;margin-bottom:12px}
small,.muted{color:var(--muted)}
small{font-size:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.studio-shell{min-height:100vh;display:flex;flex-direction:column}
.studio-header{height:76px;display:grid;grid-template-columns:1fr auto 1fr;gap:28px;align-items:center;padding:0 clamp(24px,3.4vw,64px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:13px;min-width:0}
.brand img{width:35px;height:35px;object-fit:contain}
.brand-mark{width:34px;height:40px;color:var(--brand-color)}
.brand-copy{display:flex;align-items:baseline;gap:11px;white-space:nowrap}
.brand-copy strong{font-size:16px;font-weight:550;letter-spacing:.09em}
.brand-copy span{font-size:12px;color:var(--muted);padding-left:11px;border-left:1px solid var(--line);letter-spacing:.08em}
.studio-nav{display:flex;align-self:stretch;gap:32px;white-space:nowrap}
.studio-nav button{position:relative;border:0;border-radius:0;padding:0 3px;color:#807a70;font-size:13px;letter-spacing:.035em}
.studio-nav button:hover{background:none;color:var(--ink)}
.studio-nav button.active{color:var(--ink);font-weight:550}
.studio-nav button.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--brand-color)}
.header-account{display:flex;align-items:center;justify-content:flex-end;gap:18px;font-size:12px;white-space:nowrap}
.mode-indicator{color:#8a8172;display:flex;align-items:center;gap:7px}
.mode-indicator:before{content:"";width:4px;height:4px;border-radius:50%;background:#a18a70}
.header-account #balance{padding-left:18px;border-left:1px solid var(--line);font-variant-numeric:tabular-nums}
.logout{border:0;border-left:1px solid var(--line);border-radius:0;padding:0 0 0 17px;font-size:12px;color:var(--muted)}
.logout:hover{background:none;color:var(--ink);border-color:var(--line)}
.studio-main{width:100%;max-width:1660px;margin:0 auto;padding:0 clamp(24px,3.4vw,64px);flex:1}
.studio-heading{padding:27px 0 24px}
.eyebrow{font-family:Georgia,"Times New Roman",serif;font-size:10px;font-weight:400;letter-spacing:.31em;color:#8f887e;margin-bottom:9px}
.studio-heading h1{font-size:clamp(30px,2.8vw,41px);line-height:1.4;margin-bottom:6px}
.studio-heading p{margin:0;font-size:13px;color:var(--muted);letter-spacing:.035em}
.studio-grid{display:grid;grid-template-columns:minmax(0,1fr) 384px;gap:20px;align-items:start}
.studio-panel{border:1px solid var(--line);border-radius:3px;background:#fff9;padding:19px}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}
.panel-heading h2{margin:0}
.panel-heading .spec{font-family:Georgia,"Times New Roman",serif;color:var(--muted);font-size:12px;letter-spacing:.06em}
.upload-trigger{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:400;padding:6px 13px;border:1px solid #b7afa2;border-radius:2px;cursor:pointer;white-space:nowrap;overflow:hidden}
.upload-trigger:hover{background:#f0eee8}
.upload-trigger:focus-within{outline:2px solid #9b8066;outline-offset:3px}
.upload-trigger .plus{font-size:19px;font-weight:300;line-height:1}
.file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.preview-canvas{position:relative;height:clamp(300px,calc(100vh - 449px),540px);min-height:300px;background:#eeece7;display:flex;align-items:center;justify-content:center;padding:17px 22px 41px;border-radius:2px;overflow:hidden}
.preview-canvas>img{max-width:100%;height:100%;object-fit:contain;display:block}
.canvas-caption{position:absolute;bottom:11px;left:16px;right:16px;font-size:11px;text-align:center;color:#81796d;letter-spacing:.05em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.canvas-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;color:#91897c}
.canvas-empty svg{width:82px;height:94px;color:#b0a38e;margin-bottom:3px}
.canvas-empty strong{font-family:"Songti SC",STSong,SimSun,serif;font-size:22px;font-weight:400;letter-spacing:.09em;color:#736b5e}
.canvas-empty span{font-size:12px;color:#a29a8e}
.asset-toolbar{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin:11px 0 13px;gap:14px}
.selection-count{color:#88745f;font-variant-numeric:tabular-nums}
.asset-strip{display:flex;gap:10px;align-items:stretch;overflow-x:auto;padding:2px 2px 4px;min-height:68px;scrollbar-width:thin}
.asset-thumb{position:relative;flex:0 0 59px;width:59px;height:74px;cursor:pointer;border:1px solid var(--line);border-radius:2px;overflow:hidden;background:#f3f1ed}
.asset-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.asset-thumb input{position:absolute;top:4px;left:4px;width:13px;height:13px;margin:0;accent-color:var(--ink)}
.asset-thumb:has(input:checked){border-color:#7b6852;outline:1px solid #7b6852;outline-offset:1px}
.asset-thumb:focus-within{outline:2px solid #9b8066;outline-offset:2px}
.add-asset{flex:0 0 59px;width:59px;height:74px;border:1px dashed #c4bdb1;padding:0;border-radius:2px;font-weight:200;font-size:29px;color:#8f8474}
.settings-panel{padding:19px 21px}
.settings-panel>.panel-heading{margin-bottom:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.setting-group{border-bottom:1px solid var(--line)}
.setting-group summary{display:flex;justify-content:space-between;align-items:center;gap:10px;list-style:none;cursor:pointer;min-height:49px;font-size:13px}
summary::-webkit-details-marker{display:none}
.setting-group summary .setting-label{font-weight:500;min-width:48px}
.setting-value{font-size:12px;color:#8b8275;margin-left:auto;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chevron{width:12px;height:12px;margin-left:7px;color:#8d867a;transition:transform .15s}
details[open]>summary .chevron{transform:rotate(180deg)}
.setting-body{padding:1px 0 17px;display:grid;gap:10px}
.setting-body .upload-trigger{justify-self:start}
.setting-body .muted{font-size:11px;line-height:1.7;margin:0}
label{display:block;font-size:13px;font-weight:450}
input[type=checkbox],input[type=radio]{accent-color:var(--ink);cursor:pointer}
.switch-label{display:flex;align-items:center;gap:8px;font-size:12px}
.switch-label input{margin:0}
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),textarea,select{display:block;width:100%;border:1px solid var(--line);border-radius:2px;padding:9px 11px;margin-top:7px;background:transparent;color:var(--ink);font-size:13px}
textarea{resize:vertical;min-height:95px;line-height:1.75}
textarea::placeholder,input::placeholder{color:#aaa397}
.setting-body select{margin:0}
.quality-section{padding-top:20px}
.section-label{font-size:13px;font-weight:500;display:block;margin-bottom:10px}
.quality{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.quality label{position:relative;cursor:pointer;border:1px solid var(--line);border-radius:2px;text-align:center;padding:10px 4px 9px;background:transparent;font-size:12px;font-weight:400;transition:background .18s,color .18s}
.quality label:has(input:checked){background:var(--ink);border-color:var(--ink);color:white}
.quality label:has(input:focus-visible){outline:2px solid #9b8066;outline-offset:3px}
.quality input{position:absolute;opacity:0;width:1px;height:1px}
.quality strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:14px;font-weight:400;line-height:1.4;margin-top:4px;font-variant-numeric:tabular-nums}
.setting-hint{font-size:10px;color:#9c9487;margin:8px 0 0}
.requirements-field{display:block;margin-top:20px}
.requirements-field textarea{min-height:83px;max-height:230px;font-size:12px;margin-top:10px;background:#ffffff40}
.price-line{display:flex;align-items:center;justify-content:space-between;margin-top:20px;padding:14px 0 9px;border-top:1px solid var(--line);font-size:13px}
.price-line strong{font-family:Georgia,"Times New Roman",serif;font-size:22px;font-weight:400;font-variant-numeric:tabular-nums}
.quote-trigger{display:flex;align-items:center;justify-content:center;gap:15px;width:100%;min-height:43px;border-radius:2px;letter-spacing:.06em;font-size:13px}
.quote-trigger span{font-size:19px;font-weight:300}
.button-note{text-align:center;font-size:10px;color:#9b9387;margin:9px 0 0}
.quote-panel{border-top:1px solid var(--line);padding-top:19px;margin-top:20px}
.quote-panel[hidden]{display:none}
.quote-panel h3{font-size:15px;margin:0 0 8px}
.quote-panel .summary{border:0;padding:0 0 10px}
.quote-panel>p{font-size:11px;color:var(--muted);margin-bottom:13px}
.quote-rules{margin:10px 0;background:#f2f0eb;border:1px solid var(--line);border-radius:2px}
.quote-rules summary{padding:10px 12px;cursor:pointer;font-size:12px;list-style:none}
.quote-rule-list{max-height:250px;overflow:auto;padding:0 12px 12px}
.quote-rule-list>p{font-size:11px;margin:10px 0 5px;color:var(--muted)}
.prompt{font-size:11px;white-space:pre-wrap;line-height:1.9;color:#6f6659}
.quote-confirm{display:flex;gap:7px;align-items:flex-start;font-size:11px;margin:15px 0}
.quote-confirm input{margin:3px 0 0}
#generate{width:100%;min-height:42px;font-size:13px}
.studio-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);font-size:10px;color:#9f978b;margin-top:20px;padding:11px 0 17px;letter-spacing:.02em}
.studio-footer a{color:#958b7d}
.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:40px 0 26px}
.hero p{color:var(--muted);margin:0;font-size:13px}
.card{border:1px solid var(--line);border-radius:3px;background:#fff9;padding:25px;margin-bottom:20px}
.row,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.actions{margin-top:12px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.stack{display:grid;gap:15px}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.badge{display:inline-block;padding:3px 9px;border:1px solid var(--line);border-radius:2px;color:#807461;font-size:11px;background:#f2efe8}
.badge.warn{background:#f4efe5;color:#8c7655;border-color:#e5dbca}
.empty{padding:65px 24px;text-align:center;font-size:13px;color:#999082}
.summary{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line)}
.summary strong{font:400 24px Georgia,serif}
.result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:22px}
.result{padding:0;overflow:hidden}
.result img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;background:#edeae4}
.result .details{padding:17px 19px 20px}
.result .details>strong{font-weight:450;font-size:13px;overflow-wrap:anywhere}
.result .details>p{font-size:11px;margin:6px 0 0}
.result .actions{font-size:12px}
.result button{padding:6px 11px;font-size:11px}
.task{display:grid;grid-template-columns:65px 1fr auto;align-items:center;gap:20px;padding:21px 0;border-bottom:1px solid var(--line)}
.task:first-child{padding-top:0}
.task:last-child{border:0;padding-bottom:0}
.task img{width:65px;height:86px;object-fit:contain;background:#eeebe5;border-radius:2px}
.task strong{font-weight:500}
.task p{margin:4px 0;font-size:12px}
.task small{font-size:11px}
.task .actions{margin-top:0}
.task .error{color:#94624a}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);background:#fff9}
.stat{padding:24px 28px;border-right:1px solid var(--line);font-size:12px;color:var(--muted)}
.stat:last-child{border:0}
.stat strong{display:block;margin-top:6px;font:400 32px/1.5 Georgia,"PingFang SC",sans-serif;color:var(--ink)}
.table-wrap{overflow-x:auto}
table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}
th,td{text-align:left;border-bottom:1px solid var(--line);padding:13px 14px;font-weight:400}
th{color:var(--muted);font-size:11px}
.notice{padding:12px 14px;background:#f1eee8;color:#90816e;font-size:12px;margin:14px 0;border-radius:2px}
.folder-list{display:grid;gap:5px;max-height:260px;overflow:auto;margin-top:15px}
.folder-list button{text-align:left}
.full{grid-column:1/-1}
.auth-wrap{max-width:485px;margin:10vh auto;padding:0 24px}
.auth-wrap .brand{margin-bottom:32px;font-size:16px;letter-spacing:.08em}
.auth-wrap .card{padding:34px;background:#ffffff70}
.auth-wrap h1{font-size:27px;margin-bottom:12px}
.auth-wrap .muted{font-size:12px;margin-bottom:25px}
.auth-wrap form{display:grid;gap:17px}
.auth-wrap button.primary{width:100%;margin-top:7px;min-height:44px}
.auth-wrap .notice{font-size:11px;margin-bottom:0}
.auth-wrap a{font-size:12px}
.auth-wrap textarea{min-height:210px}
.mark{width:34px;height:34px;display:grid;place-items:center;border:1px solid #b5a18c;color:#897158;font:400 21px "Songti SC",SimSun,serif}
#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:99;max-width:calc(100% - 32px);background:#302e28;color:#fff;padding:12px 22px;border:1px solid #555045;border-radius:3px;font-size:12px;display:none}
#toast.error{background:#76513e;border-color:#87634d}
[hidden]{display:none!important}
@media(min-width:1600px){.studio-grid{grid-template-columns:minmax(0,1fr) 420px}.studio-panel{padding:21px}.settings-panel{padding:21px 25px}}
@media(max-width:1120px){.brand-copy span{display:none}.studio-nav{gap:23px}.studio-header{gap:18px}.header-account{gap:12px}.studio-grid{grid-template-columns:minmax(0,1fr) 350px}}
@media(max-width:900px){.studio-header{grid-template-columns:1fr auto;height:auto;min-height:72px;padding-top:16px;gap:8px 18px}.studio-nav{grid-row:2;grid-column:1/-1;justify-content:center;height:48px;gap:40px;order:3}.brand-copy span{display:inline}.studio-grid{grid-template-columns:minmax(0,1fr) 325px;gap:14px}.settings-panel{padding:17px}.studio-heading h1{font-size:32px}.header-account{font-size:11px}.mode-indicator{display:none}}
@media(max-width:720px){.studio-main{padding:0 20px}.studio-header{padding:15px 20px 0}.brand-copy span{display:none}.brand-copy strong{font-size:14px}.brand-mark{width:27px;height:32px}.brand{gap:9px}.header-account{gap:10px}.header-account #balance{border:0;padding:0}.logout{padding-left:10px}.studio-nav{gap:0;justify-content:space-between;height:48px}.studio-nav button{font-size:12px;padding:0 9px}.studio-grid{grid-template-columns:1fr;gap:17px}.studio-heading{padding:27px 0 22px}.studio-heading h1{font-size:29px}.studio-heading p{font-size:12px}.preview-canvas{height:350px;min-height:280px}.studio-panel,.settings-panel{padding:17px}.settings-panel{padding-bottom:20px}.setting-group summary{min-height:51px}.quality label{padding:12px 7px}.requirements-field textarea{min-height:90px}.studio-footer{font-size:9px;gap:12px}.hero{padding:30px 0 23px;align-items:flex-start}.hero h1{font-size:29px}.card{padding:19px}.result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.result{padding:0}.result .details{padding:13px}.task{grid-template-columns:48px 1fr;gap:13px}.task img{width:48px;height:66px}.task .actions{grid-column:2}.stat-grid{grid-template-columns:1fr}.stat{border:0;border-bottom:1px solid var(--line)}.grid,.fields{grid-template-columns:1fr}.auth-wrap{margin:7vh auto}.auth-wrap .card{padding:27px}.eyebrow{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Production studio: one evidence group, one compact decision column. */
.creation-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:21px}
.creation-heading h1{font-size:34px}.text-button{border:0;padding:7px 0;border-radius:0;color:#81796c;font-size:12px}.text-button:hover{background:none;color:var(--ink)}
.production-top{display:flex;gap:38px;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:24px;min-height:63px}.category-tabs,.purpose-tabs{display:flex;gap:24px}.category-tabs button,.purpose-tabs button{border:0;border-radius:0;padding:18px 0;color:var(--muted);position:relative;font-size:13px;background:none}.category-tabs button{font-size:15px}.category-tabs .active,.purpose-tabs .active{color:var(--ink);font-weight:550}.category-tabs .active:after{content:'';height:2px;position:absolute;bottom:0;left:0;right:0;background:var(--ink)}.purpose-tabs{gap:23px;padding-left:32px;border-left:1px solid var(--line)}.production-spec{margin-left:auto;color:var(--muted);font-size:11px;letter-spacing:.12em}
.creation-grid{align-items:start;gap:24px}.creation-grid .panel-heading{margin-bottom:16px}.creation-grid .panel-heading h2,.plan-heading h2{font-family:Georgia,serif;font-size:16px;color:#a29889;margin:0}.creation-grid .panel-heading h2 span,.plan-heading h2 span{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-size:14px;color:var(--ink);margin-left:10px}.group-tag{font-size:10px;letter-spacing:.08em;color:#8c8272}.relationship-bar{display:flex;gap:7px;margin:0 0 19px;flex-wrap:wrap}.relationship-bar button{padding:7px 12px;border:1px solid transparent;border-radius:2px;color:var(--muted);font-size:12px}.relationship-bar .active{background:#eeebe4;color:var(--ink)}
.material-slots{display:grid;grid-template-columns:1fr 1fr;gap:18px}.material-slots.single{grid-template-columns:1fr}.material-slot{min-width:0}.slot-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px;line-height:1.6}.slot-top strong{font-size:12px;font-weight:550}.slot-top span{color:#a0988d;font-size:10px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:65%}.slot-photo{height:clamp(230px,30vw,390px);background:#eeebe5;display:flex;align-items:center;justify-content:center;overflow:hidden}.slot-photo img{width:100%;height:100%;object-fit:contain}.single .slot-photo{height:390px}.slot-empty{display:grid;text-align:center;gap:6px;color:#a39b8f;font-size:12px}.slot-empty strong{font-size:13px;font-weight:400;color:#8a8072}.slot-empty small{font-size:10px}.empty-plus{font:200 30px Georgia;line-height:1.9;color:#aea18c}.slot-actions{display:flex;gap:20px;align-items:center;margin-top:13px;font-size:12px;min-height:30px}.slot-actions .upload-trigger{font-size:12px;color:var(--ink)}.material-slot>p{font-size:10px;color:#a1988c;margin:7px 0 0}.group-explanation{border-top:1px solid var(--line);margin-top:24px;padding-top:18px;display:flex;gap:12px;align-items:flex-start}.group-dot{height:5px;width:5px;background:#a18c6c;margin-top:7px;border-radius:50%;flex-shrink:0}.group-explanation strong{font-size:12px;font-weight:500}.group-explanation p{color:#958d81;font-size:11px;margin:4px 0 0}.lock-note{font-size:11px;padding:11px 13px;background:#efeee7;color:#80775f;margin:-5px 0 15px}
.optional-material{margin-top:21px;border-top:1px solid var(--line);padding-top:14px}.optional-material summary{cursor:pointer;font-size:12px;color:#706a60}.optional-material summary span{float:right;color:#a29889;font-size:10px}.optional-row{display:grid;gap:12px;margin-top:18px}.compact-asset{display:flex;gap:12px;align-items:center;font-size:11px;color:var(--muted)}.compact-asset img{width:40px;height:48px;object-fit:cover}.compact-asset button{margin-left:auto;font-size:11px;padding:6px 9px}.setting-block{margin-bottom:18px}.setting-block>label,.setting-block h3{font-size:12px;display:block;margin-bottom:10px}.setting-block select,.setting-block>input{width:100%;padding:9px 10px;border:1px solid var(--line);background:transparent;border-radius:2px;font-size:12px}.setting-block>input{margin-top:9px}.choice-pair{display:grid;grid-template-columns:1fr 1fr;gap:9px}.choice-pair button{padding:12px 8px;text-align:left;border-radius:2px}.choice-pair strong{font-size:12px;font-weight:500;display:block}.choice-pair span{font-size:9px;color:var(--muted);display:block;margin-top:5px;white-space:nowrap}.choice-pair .active{border-color:#9f9382;background:#f3f0e9}.scene-pick{font-size:11px;margin-top:10px;width:100%}.source-options{display:flex;gap:6px}.source-options button{font-size:11px;padding:8px 9px;flex:1;white-space:nowrap;border-color:transparent}.source-options .active{background:#ece9e2;border-color:#e1dcd2;color:#4c463e}.settings-panel .setting-hint{font-size:10px;line-height:1.7}.settings-panel .setting-body input:not([type=checkbox]),.settings-panel .setting-body textarea{width:100%;margin-top:7px}.settings-panel .setting-body>label{font-size:11px}.settings-panel .setting-body label+label{margin-top:14px;display:block}.creation-grid .quality-section{margin-top:18px;padding-top:0}.creation-grid .quality label{padding:8px 5px}.creation-grid .quality strong{font-size:10px}
.studio-plans{margin-top:34px;scroll-margin-top:25px}.planning-placeholder{border-top:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:24px 0;color:#a09688}.planning-placeholder>span{font:28px Georgia;color:#c3b9aa}.planning-placeholder strong{font-size:13px;font-weight:400}.planning-placeholder p{font-size:11px;margin:4px 0 0;color:#a49a8c}.plan-heading{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:26px;margin-bottom:14px}.plan-heading .eyebrow{display:block;font-size:9px;margin-bottom:10px}.plan-heading>span{font-size:11px;color:var(--muted)}.plan-status{font-size:11px;color:#8d8476;padding:11px 0;margin:0 0 12px}.plan-status.stale{background:#f0e7d8;color:#8b673b;padding:12px}.plan-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.plan-cards.one{grid-template-columns:1fr}.plan-card{padding:20px;border:1px solid var(--line);background:#fff6;min-width:0}.plan-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.plan-card-top>span:first-child{font:20px Georgia;color:#c5b9a5}.source-tag{font-size:9px;color:#988a76}.plan-card h3{font-size:14px;margin:0 0 5px;font-weight:500}.plan-card>p{font-size:11px;color:#9d9385;margin:0 0 15px}.reference-strip{display:flex;gap:10px;margin-bottom:17px;flex-wrap:wrap}.reference-strip>span{display:grid;gap:4px;text-align:center}.reference-strip img{width:38px;height:47px;object-fit:cover}.reference-strip small{font-size:9px;color:#9c9284}.prompt-editor summary{font-size:11px;cursor:pointer;color:#867a68}.prompt-editor textarea{width:100%;min-height:240px;resize:vertical;border:1px solid var(--line);background:#faf9f5;font-size:11px;line-height:1.9;padding:12px;margin-top:12px}.plan-cards.one .prompt-editor textarea{min-height:200px}.prompt-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:7px}.prompt-actions small{font-size:9px}.prompt-actions button{border:0;font-size:10px;padding:5px 0}.plan-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px;flex-wrap:wrap}.save-presets{display:flex;gap:16px;flex-wrap:wrap}.save-presets button{border:0;padding:7px 0;font-size:11px;color:#8b7a63}.plan-confirmation{display:flex;align-items:center;gap:20px;font-size:11px}.plan-confirmation label{display:flex;align-items:center;gap:7px}.plan-confirmation button{font-size:12px;padding:10px 18px}.final-quote{display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;padding:24px 26px 45px;margin-top:23px;background:#eeebe4}.final-quote h3{font-size:15px;margin-bottom:8px}.final-quote p{font-size:12px;margin:0}.final-quote small{font-size:10px}.final-price{display:flex;align-items:center;gap:25px;flex-shrink:0}.final-price>strong{font:30px Georgia}.final-price button{font-size:12px}.final-quote .quote-expiry{position:absolute;bottom:12px;font-size:9px;color:#9c8e7b}
.studio-dialog{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:4px;padding:25px;width:min(740px,calc(100vw - 30px));max-height:85vh;overflow:auto;box-shadow:0 20px 100px #30281a22}.studio-dialog::backdrop{background:#29251d55;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px}.dialog-heading h2{margin:0;font-size:16px}.dialog-heading button{padding:2px 8px;font-size:21px;border:0}.studio-dialog .muted{font-size:12px}.dialog-upload{display:inline-block;margin-bottom:18px}.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.library-grid button{padding:0;text-align:left;overflow:hidden}.library-grid img{width:100%;height:160px;object-fit:contain;background:#eeebe5}.library-grid span{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:9px}.preset-tabs{display:flex;gap:12px;margin-bottom:20px}.preset-tabs button{font-size:12px;border-color:transparent}.preset-tabs .active{background:#eae5dc}.preset-list article{display:flex;gap:15px;align-items:center;border-top:1px solid var(--line);padding:17px 0}.preset-list article>div{flex:1}.preset-list strong{font-size:13px;font-weight:500}.preset-list small{display:block;font-size:10px}.preset-list button{font-size:11px}.studio-dialog form{display:grid;gap:18px}.studio-dialog form label{display:grid;gap:10px;font-size:12px}.studio-dialog form input{border:1px solid var(--line);padding:10px;background:transparent;width:100%}.studio-dialog form>button{justify-self:end}
@media(max-width:1120px){.creation-grid{grid-template-columns:minmax(0,1fr) 330px;gap:18px}.slot-actions{gap:12px}.slot-actions .text-button,.slot-actions .upload-trigger{font-size:10px}.source-options button{padding:8px 4px;font-size:10px}.plan-footer{align-items:flex-start;flex-direction:column}.slot-photo{height:300px}.production-top{gap:25px}.purpose-tabs{padding-left:25px;gap:18px}}
@media(max-width:900px){.creation-grid{grid-template-columns:1fr 300px;gap:15px}.slot-photo{height:240px}.material-slots{gap:12px}.slot-actions{gap:9px;flex-wrap:wrap}.slot-empty small{display:none}.plan-cards{grid-template-columns:1fr}.final-quote{align-items:flex-start}.final-price{flex-direction:column;gap:10px}.production-top{gap:20px}.purpose-tabs{gap:16px;padding-left:20px}.production-spec{display:none}}
@media(max-width:720px){.creation-heading{gap:15px}.creation-heading h1{font-size:26px}.creation-heading .text-button{font-size:10px;white-space:nowrap}.production-top{align-items:stretch;gap:14px;min-height:55px}.category-tabs{gap:17px}.category-tabs button{font-size:14px;padding:15px 0}.purpose-tabs{gap:15px;padding-left:14px;align-items:center}.purpose-tabs button{font-size:11px;padding:16px 0;white-space:nowrap}.creation-grid{grid-template-columns:1fr}.slot-photo{height:255px}.single .slot-photo{height:340px}.slot-top span{max-width:55%;font-size:8px}.slot-empty strong{font-size:12px}.material-slot>p{font-size:9px}.choice-pair button{padding:13px}.source-options button{font-size:12px;padding:10px 8px}.plan-confirmation{align-items:flex-start;flex-direction:column;gap:14px;width:100%}.plan-confirmation button{width:100%}.final-quote{flex-direction:column;padding:20px 18px 50px}.final-price{flex-direction:row;justify-content:space-between;width:100%}.final-quote .quote-expiry{max-width:85%}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.creation-heading p{font-size:11px}.plan-heading>span{font-size:9px}.plan-heading h2 span{font-size:13px}}
.reuse-edited{font-size:11px;margin:-3px 0 20px;border-color:#c5b18f;color:#8b673b;background:#f5efe2}
/* Clothing facts and staged review keep the existing studio frame. */
.clothing-head-actions{display:flex;gap:14px}.clothing-head-actions button{border:0;padding:5px 0;font-size:11px;color:#927e62}.clothing-facts-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:18px 0}.clothing-facts-head p{font-size:12px;color:var(--muted);margin:0}.clothing-facts-head button{font-size:11px;flex-shrink:0}.clothing-fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.clothing-fact-card{border:1px solid var(--line);padding:20px;background:#fff7}.clothing-fact-card h3{margin-bottom:15px}.clothing-fact-card fieldset{display:grid;grid-template-columns:1fr 1fr;gap:14px}.clothing-fact-card label:nth-child(n+3){grid-column:1/-1}#clothing-facts, #clothing-facts fieldset{margin:0;min-width:0;border:0;padding:0}#clothing-facts label{display:grid;gap:7px;font-size:11px;color:#7d7466}#clothing-facts input,#clothing-facts select,#clothing-facts textarea{width:100%;padding:9px 11px;font-size:12px;border:1px solid var(--line);border-radius:2px;background:#fbfaf7;color:var(--ink)}#clothing-facts textarea{min-height:76px;resize:vertical}#clothing-facts:disabled{opacity:.72}.clothing-wearing{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-top:18px}.clothing-wearing>fieldset{display:grid;grid-template-columns:1fr 1fr;gap:20px}.clothing-more{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}.clothing-more summary{font-size:12px;cursor:pointer;color:#807362}.clothing-extra-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:18px}.clothing-extra-grid>fieldset{display:grid;gap:16px}.clothing-confirm{display:flex;gap:9px;font-size:11px;color:#887966;align-items:center;margin:20px 0 28px}.clothing-stage{display:flex;align-items:center;gap:20px;justify-content:space-between;border-top:1px solid var(--line);padding-top:27px;margin-top:28px}.clothing-stage .eyebrow{font-size:9px}.clothing-stage h2{margin:8px 0 12px;font-size:16px}.clothing-stage>span{font-size:11px;color:#9a8b78}.clothing-stage button{font-size:11px}.clothing-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:15px 0 22px}.clothing-progress>span{border-top:2px solid #d7cfc0;padding:13px 10px;font-size:12px;color:#918674}.clothing-progress>span.done{border-color:#73816a;color:#59644f}.clothing-progress b{font:20px Georgia;margin-right:13px;color:#b9aa94}.clothing-progress small{display:block;margin:5px 0 0 38px;font-size:10px}.clothing-set-lock{margin:20px 0;font-size:12px;color:#82745f}.clothing-set-lock summary{cursor:pointer}.clothing-set-lock pre{font:11px/1.9 -apple-system,sans-serif;white-space:pre-wrap;border:1px solid var(--line);padding:15px;background:#f2efe7}.clothing-review{display:grid;grid-template-columns:minmax(180px,330px) 1fr;gap:28px;padding:24px;background:#f0ece4;border:1px solid var(--line);margin:24px 0}.clothing-review>img{width:100%;max-height:400px;object-fit:contain;background:#e7e2d8}.clothing-review h3{font-size:16px;margin:0 0 10px}.clothing-review p{font-size:12px}.review-checks{display:grid;gap:9px;font-size:12px;margin-bottom:15px}.review-checks label{display:flex;align-items:center;gap:8px}.clothing-review label{font-size:11px}.clothing-review textarea{display:block;width:100%;min-height:65px;border:1px solid #d8cfc0;background:#faf8f3;padding:10px;margin:7px 0 16px;resize:vertical}.clothing-review .actions button{font-size:11px}.clothing-fact-grid:has(.clothing-fact-card:only-child){grid-template-columns:1fr}
@media(max-width:720px){.clothing-head-actions{gap:12px}.clothing-head-actions button{font-size:9px}.clothing-facts-head{align-items:flex-start}.clothing-facts-head p{font-size:11px}.clothing-fact-grid{grid-template-columns:1fr;gap:13px}.clothing-fact-card{padding:16px}.clothing-wearing{grid-template-columns:1fr;gap:15px}.clothing-wearing>fieldset{gap:12px}.clothing-extra-grid{grid-template-columns:1fr}.clothing-confirm{align-items:flex-start}.clothing-stage{gap:12px;flex-wrap:wrap}.clothing-stage>span{font-size:10px}.clothing-progress{gap:7px}.clothing-progress>span{font-size:10px;padding:10px 3px}.clothing-progress b{font-size:16px;margin-right:7px}.clothing-progress small{margin-left:23px;font-size:9px}.clothing-review{grid-template-columns:1fr;padding:17px;gap:20px}.clothing-review>img{max-height:330px}.clothing-review .actions{flex-wrap:wrap}}

/* Batch creation: compact evidence cards, settings kept in the right column. */
.batch-grid{grid-template-columns:minmax(0,1fr) 370px;gap:24px}.batch-group{padding:0 0 22px;border-bottom:1px solid var(--line);margin-bottom:22px}.batch-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.batch-group-heading>strong{font-size:13px;font-weight:550}.batch-group-heading>div{display:flex;gap:16px}.batch-group-heading button{font-size:11px}.batch-group .relationship-bar{margin-bottom:15px}.batch-group .slot-photo,.batch-group .single .slot-photo{height:195px}.batch-upload{position:relative;cursor:pointer;border:1px dashed #d3cec4;border-radius:2px;transition:background .15s,border-color .15s}.batch-upload:hover{background:#e8e5dd;border-color:#a39886}.batch-upload:focus-visible{outline:2px solid var(--brand-color);outline-offset:3px}.batch-upload .file-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;clip:auto}.batch-upload img{pointer-events:none}.batch-group .slot-actions{margin-top:8px;min-height:20px}.batch-group .slot-actions button{font-size:10px}.batch-group .slot-empty{gap:4px}.batch-group .empty-plus{line-height:1.25;font-size:29px}.batch-group-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;font-size:10px;color:var(--muted)}.batch-group-bottom label{display:flex;align-items:center;gap:7px;white-space:nowrap}.batch-group-bottom select{font-size:10px;padding:5px;border:1px solid var(--line);background:transparent;max-width:115px}.batch-locked{font-size:10px;color:#687663;align-self:center}.batch-add{width:100%;padding:12px;font-size:12px;border-style:dashed}.batch-material-panel>.setting-hint{margin-bottom:0;font-size:10px}.batch-setting{padding:17px 0;border-bottom:1px solid var(--line)}.batch-setting:first-of-type{padding-top:0}.batch-setting h3{margin:0 0 11px;font-size:12px;font-weight:550;display:flex;justify-content:space-between;align-items:center}.batch-setting h3 small{font-size:10px;font-weight:400;color:var(--muted)}.batch-setting select,.batch-setting textarea{width:100%;background:transparent;border:1px solid var(--line);padding:8px 9px;font-size:11px;border-radius:2px}.batch-setting textarea{min-height:80px;margin:12px 0}.batch-person-row{display:flex;gap:12px;align-items:center;margin-top:10px}.batch-person-row>img{width:37px;height:48px;object-fit:cover;border-radius:2px}.upload-inline{display:inline-flex;align-items:center;position:relative;cursor:pointer;font-size:11px;padding:6px 0}.upload-inline .file-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;clip:auto;cursor:pointer}.batch-person-row+.setting-hint{margin:4px 0 0}.batch-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.scene-chip{cursor:pointer;position:relative;display:block}.scene-chip input{position:absolute;opacity:0}.scene-chip span{display:block;padding:9px 2px;text-align:center;border:1px solid var(--line);font-size:10px;color:var(--muted);border-radius:2px}.scene-chip input:checked+span{background:#eeeae1;border-color:#a99e8b;color:var(--ink)}.scene-chip input:focus-visible+span{outline:2px solid var(--brand-color)}.batch-special-scenes{display:flex;gap:15px;margin-top:13px;font-size:10px;color:var(--muted)}.batch-special-scenes label{display:flex;align-items:center;gap:4px}.batch-special-scenes input{margin:0}.batch-image-scenes>div{display:flex;gap:9px;align-items:center;margin-top:12px;font-size:10px}.batch-image-scenes img{width:45px;height:36px;object-fit:cover}.batch-image-scenes button{margin-left:auto;font-size:10px}.batch-setting>#batch-scene-library{font-size:10px;margin-left:14px}.batch-count{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.batch-count>button{padding:8px 10px;font-size:11px}.batch-count>button.active{background:#eeeae1;border-color:#a99e8b}.batch-count>label{display:flex;gap:6px;align-items:center;font-size:10px;margin-left:auto;color:var(--muted)}.batch-count input{width:51px;padding:8px 5px;font-size:11px;background:transparent;border:1px solid var(--line);border-radius:2px}.batch-quantity{border-bottom:0}.batch-grid .quality-section{border-bottom:1px solid var(--line);padding-bottom:17px}.batch-grid .price-line{margin-top:0}.batch-grid .price-line span{font-size:11px}.batch-grid #batch-count-error{font-size:11px;line-height:1.5;margin:0 0 10px}.batch-segment{border:1px solid var(--line);border-radius:3px;margin:18px 0;padding:20px}.batch-segment-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.batch-segment-heading h3{font-size:14px;margin:0;font-weight:550}.batch-segment-heading>span{font-size:11px;color:var(--muted)}.batch-reference-strip{display:flex;gap:12px;margin-bottom:15px}.batch-reference-strip>span{display:flex;align-items:center;gap:5px}.batch-reference-strip img{width:30px;height:40px;object-fit:contain;background:#efede7}.batch-reference-strip small{font-size:9px;color:var(--muted)}.batch-prompt-list{display:grid;gap:12px}.batch-prompt-card{border-top:1px solid var(--line);padding-top:14px}.batch-prompt-card .plan-card-top{margin:0 0 6px}.batch-prompt-card .plan-card-top strong{font-size:12px;font-weight:500}.batch-prompt-card .prompt-editor{border:0;padding:0}.batch-prompt-card textarea{min-height:230px;font-size:12px;line-height:1.85}.batch-prompt-card summary{font-size:11px;cursor:pointer;padding:5px 0 8px;color:var(--muted)}.batch-task-state{font-size:11px;line-height:1.7;margin:7px 0;color:#60725d}.batch-task-state.error{color:#a54b3c}.batch-history{display:grid;gap:10px}.batch-history button{text-align:left;padding:14px}.batch-history strong{display:block;font-size:12px}.batch-history span{display:block;font-size:10px;color:var(--muted);margin-top:5px}
@media(min-width:1600px){.batch-grid{grid-template-columns:minmax(0,1fr) 400px}}
@media(max-width:1120px){.batch-grid{grid-template-columns:minmax(0,1fr) 330px;gap:18px}.batch-group .slot-photo,.batch-group .single .slot-photo{height:180px}.batch-group-bottom{align-items:flex-start;flex-direction:column}.batch-group-heading>div{gap:10px}.batch-group-heading button{font-size:10px}.batch-scenes{gap:5px}.scene-chip span{font-size:9px}.batch-count>button{padding:8px}.batch-count>label{margin-left:0}}
@media(max-width:900px){.batch-grid{grid-template-columns:minmax(0,1fr) 310px}.batch-group .material-slots{gap:10px}.batch-group-heading{align-items:flex-start}.batch-group-heading>div{flex-direction:column;gap:5px}.batch-group .slot-photo,.batch-group .single .slot-photo{height:170px}}
@media(max-width:720px){.batch-grid{grid-template-columns:1fr}.batch-group .slot-photo,.batch-group .single .slot-photo{height:185px}.batch-group-heading>div{flex-direction:row;gap:15px}.batch-group-bottom{flex-direction:row;align-items:center}.batch-scenes{grid-template-columns:repeat(3,minmax(0,1fr))}.scene-chip span{font-size:11px}.batch-grid .source-options button{font-size:11px}.batch-segment{padding:14px}.batch-count>label{margin-left:auto}.batch-reference-strip{flex-wrap:wrap}}
.batch-left-column{min-width:0}.batch-left-column .studio-plans{margin-top:24px}.batch-left-column .plan-heading{align-items:flex-start;gap:10px;flex-wrap:wrap}.batch-left-column .plan-heading>span{font-size:10px}.batch-left-column .plan-footer{align-items:stretch;flex-direction:column;gap:15px}.batch-left-column .plan-confirmation{align-items:flex-start;flex-direction:column;gap:12px}.batch-left-column .final-quote{flex-direction:column;align-items:stretch;padding:20px;gap:15px}.batch-left-column .final-price{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.batch-left-column .prompt-actions{align-items:flex-start;gap:10px;flex-wrap:wrap}.batch-left-column .batch-segment{padding:17px}.batch-left-column .batch-prompt-card textarea{min-height:260px}.batch-left-column .save-presets{display:flex;flex-wrap:wrap;gap:12px}
/* Company edition: generation choice, stage guidance and transparent batch estimates. */
.generation-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.generation-option{position:relative;cursor:pointer;min-width:0}
.generation-option>input{position:absolute;width:1px;height:1px;opacity:0}
.generation-option>span{display:block;min-height:104px;padding:13px 11px;border:1px solid var(--line);border-radius:3px;background:#fbfaf7;transition:background .18s,border-color .18s}
.generation-option strong{display:block;font-size:12px;font-weight:550;line-height:1.5}
.generation-option small{display:block;margin-top:7px;font-size:10px;line-height:1.65;color:var(--muted)}
.generation-option:has(input:checked)>span{border-color:#8f806b;background:#eee9df;box-shadow:inset 0 0 0 1px #8f806b}
.generation-option>input:focus-visible+span{outline:2px solid #9b8066;outline-offset:3px}
.generation-stage{margin:10px 0 0;padding:10px 11px;border-left:2px solid #b5a58e;background:#f3f0e9;color:#807462;font-size:10px;line-height:1.75}
.batch-estimate-note{margin:0 0 10px;color:#8b8173;font-size:10px;line-height:1.75}
.batch-stage-hint{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 15px;padding:12px 14px;border:1px solid var(--line);background:#f5f2ec;font-size:11px;color:#8b8070}
.batch-stage-hint strong{font-size:11px;font-weight:550;color:var(--ink)}
.pilot-stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
.pilot-stage>span{padding:11px 10px;border-top:2px solid #ddd6ca;color:#958a7a;font-size:11px}
.pilot-stage>span.active{border-color:#9b8066;color:#6f5d47;background:#f3eee5}
.pilot-stage>span.done{border-color:#73816a;color:#607058}
.pilot-stage small{display:block;margin-top:4px;font-size:9px;color:var(--muted)}
.plan-confirmation>span{color:var(--muted);line-height:1.7}
.batch-result-preview{position:relative;display:block;margin:0 0 14px;overflow:hidden;border:1px solid var(--line);border-radius:2px;background:#eeebe5;text-decoration:none}
.batch-result-preview img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain}
.batch-result-preview span{position:absolute;right:10px;bottom:10px;padding:5px 9px;background:#272622dc;color:#fff;font-size:10px;border-radius:2px}
.batch-result-preview:hover{border-color:#9b8066}
@media(max-width:720px){.generation-option>span{min-height:96px;padding:12px 10px}.pilot-stage{gap:7px}.pilot-stage>span{padding:10px 7px;font-size:10px}.batch-stage-hint{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:380px){.generation-options{grid-template-columns:1fr}.generation-option>span{min-height:0}.pilot-stage{grid-template-columns:1fr}.pilot-stage>span{padding:9px 10px}.pilot-stage small{display:inline;margin-left:7px}}
