:root{color-scheme:light;--ink:#242116;--muted:#625b45;--accent:#ffd100;--accent-hover:#ebbc00;--accent-soft:#fff3b8;--accent-border:#d2aa08;--accent-ink:#654d00;--focus:#806400;--sidebar-bg:#252219;--line:#e5deca;--paper:#fffefa;--bg:#faf8ef;--surface-subtle:#f5f0df;--shadow:0 4px 12px #3b310c0c;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--bg)}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline-offset:3px}
:focus-visible{outline:2px solid var(--focus)}
.sidebar :focus-visible{outline-color:var(--accent)}
button{cursor:pointer}
button:disabled{opacity:.47;cursor:not-allowed}
a{color:inherit;text-decoration:none}
p{margin:0;line-height:1.6}
h1,h2,h3{margin:0;line-height:1.25}
h1{font-size:clamp(27px,3vw,46px);letter-spacing:-.035em}
h2{font-size:20px}
h3{font-size:17px}
img{display:block;max-width:100%}
video{display:block;width:100%;max-height:62vh;background:#201a16}
small{line-height:1.45}
.icon{width:21px;height:21px;flex:none;vertical-align:middle}
.sidebar{position:fixed;inset:0 auto 0 0;width:221px;background:var(--sidebar-bg);color:#f9eee4;padding:26px 12px;display:flex;flex-direction:column;z-index:3;overflow:hidden}
.brand{display:flex;align-items:center;gap:9px;padding:0 3px 25px;border-bottom:1px solid #ffffff1b;font-size:17px;font-weight:750;white-space:nowrap}
.brand>span{display:grid;place-items:center;width:35px;height:35px;color:var(--accent);background:#ffd10024;border-radius:11px}
.brand-name{display:inline-block}
.brand .icon{width:26px;height:26px}
nav{display:grid;gap:8px;margin-top:22px}
nav a{display:flex;align-items:center;gap:13px;border-radius:12px;padding:14px 17px;font-size:16px}
nav a:hover{background:#ffffff12}
nav a[aria-current]{color:var(--ink);background:var(--accent);font-weight:700;box-shadow:0 3px 12px #12070036}
.sidebar-account{display:none}
main{margin-left:221px;min-height:100vh;background:radial-gradient(ellipse 78% 350px at 90% 0%,#fff0a8 0%,#fff6d2 47%,transparent 83%),var(--bg)}
.top{min-height:60px;padding:10px 29px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);color:var(--muted);font-size:13px}
.top b{margin:0 5px;color:#9c8e59}
.top-actions{display:flex;align-items:center;gap:10px}
.store-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);background:#fffdf3b8;border-radius:11px;color:var(--ink);font-weight:650}
.store-chip{overflow-wrap:anywhere}
.store-chip .icon{width:17px;height:17px;color:var(--accent-ink)}
.content{max-width:1670px;margin:auto;padding:24px 27px 36px}
.heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:2px 0 25px}
.heading h1{font-size:clamp(25px,3vw,38px)}


.section-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
.section-label>span,.section-label>a{font-size:13px;color:var(--muted)}
.section-label>a:hover{color:var(--accent-ink)}

.tile,.panel{border:1px solid var(--line);background:var(--paper);border-radius:15px;box-shadow:var(--shadow);min-width:0}







.button,button.primary,button.outline,button.quiet{display:inline-flex;justify-content:center;align-items:center;gap:6px;padding:9px 13px;border-radius:9px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font-size:13px;font-weight:650;text-align:center;line-height:1.35}
.button:hover,button.quiet:hover{background:var(--accent-soft)}
.button.primary,button.primary{background:var(--accent);border-color:var(--accent-border);color:var(--ink)}
.button.primary:hover,button.primary:not(:disabled):hover{background:var(--accent-hover)}
button.outline{color:var(--accent-ink);border-color:var(--accent-border);background:#fffae4}
button.quiet{border-color:transparent;background:transparent;color:var(--muted);padding:6px 8px}
button.small{font-size:11px;padding:7px 8px;white-space:nowrap;border-radius:99px}
button.small .icon,.section-label .icon{width:14px;height:14px}
.danger,button.danger{color:#a52716}
.full{width:100%;margin-top:12px}
.button-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:13px}







.panel{padding:17px}
.recent p,.muted{color:var(--muted);font-size:13px}
.recent-row{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:10px 0}
.recent-row>span:first-child{flex:1}
.recent-row small{display:block;color:var(--muted);margin-top:3px}
.pill{display:inline-block;white-space:nowrap;border-radius:99px;background:var(--surface-subtle);color:var(--muted);padding:3px 8px;font-size:11px;font-weight:700}
.pill.confirmed{background:#e1f0de;color:#2c6b35}
.pill.running,.pill.review,.pill.success,.pill.simulation{background:var(--accent-soft);color:var(--accent-ink)}
.pill.failed{background:#fce5df;color:#a32c1a}
.simulation-banner{border:1px solid var(--accent-border);background:#fff6cc;color:var(--accent-ink);padding:8px 12px;border-radius:9px;margin-bottom:15px;font-size:12px}
.empty{min-height:85px;display:grid;justify-items:center;align-content:center;gap:8px;padding:12px;text-align:center}
.empty p{color:var(--muted);font-size:13px}

.toolbar,.bulk{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:13px}
.toolbar input[type=search]{min-width:130px;flex:1}
.tabs{display:flex;gap:5px;flex-wrap:wrap}
.tabs button{padding:8px 12px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--ink);font-size:13px}
.tabs button.selected{background:var(--accent-soft);border-color:var(--line)}
.bulk{justify-content:space-between;border-top:1px solid var(--line);padding:4px 0;font-size:13px;color:var(--muted)}



.asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.tile{overflow:hidden;position:relative;border-radius:12px}
.photo-button{padding:0;border:0;background:transparent;display:block;width:100%;overflow:hidden;text-align:left}
.tile .photo-button img,.history-thumb>img,.history-thumb>video{width:100%;aspect-ratio:1.7;object-fit:cover}
.pick{position:absolute;left:8px;top:8px;background:var(--paper);border-radius:6px;padding:3px;line-height:1}
input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:16px;height:16px;margin:1px;flex:none}
.tile-copy{padding:9px}
.tile-copy strong{display:block;overflow-wrap:anywhere;margin-bottom:5px}
.tile-copy p,.tile-copy small{color:var(--muted);font-size:12px}
.tile-copy .button-row{margin-top:8px}
.tile-copy .button{font-size:11px;padding:6px 8px}
.history-thumb{position:relative;background:var(--surface-subtle);min-height:90px;display:grid;place-items:center}
.history-thumb>span{display:grid;place-items:center;min-height:110px;color:#857648}
.history-thumb.group{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
.history-thumb.group img{aspect-ratio:1/2.3}
.history-badge{position:absolute;top:7px;left:7px}
.settings-grid,.editor-grid{display:grid;gap:15px;align-items:start}
.settings-grid{grid-template-columns:minmax(0,1.75fr) minmax(0,1fr)}
.settings-form h2,.store-preview h2{margin-bottom:12px}

.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.fields label,.stack label{font-size:13px;font-weight:650}
.fields b{color:#ad310c}
input:not([type=checkbox],[type=radio],[type=color]),select,textarea{border:1px solid var(--line);border-radius:8px;padding:8px 10px;min-width:0;color:var(--ink);background:var(--paper)}
textarea{resize:vertical}
.fields input:not([type=checkbox],[type=color]),.setting-file select,.stack input:not([type=checkbox],[type=radio]),.stack textarea,.stack select{display:block;width:100%;margin-top:5px}
.fields input[type=color]{display:block;width:58px;height:40px;margin:5px 0 7px;border:0;background:none}
hr{border:0;border-top:1px solid var(--line);margin:17px 0}
.setting-file{display:grid;gap:5px}
.setting-preview,.store-cover{background:var(--surface-subtle);display:grid;place-items:center;border-radius:9px;overflow:hidden;color:#857648;aspect-ratio:2}
.setting-preview img,.store-cover img{width:100%;height:100%;object-fit:cover}
.setting-preview .icon,.store-cover .icon{width:32px;height:32px}
.store-profile{display:flex;gap:12px;align-items:center;margin:13px 0}
.store-profile img,.store-profile>.icon{width:50px;height:50px;border-radius:9px;background:var(--surface-subtle);object-fit:cover;color:var(--accent-ink)}
.store-profile small{color:var(--muted)}
.info,.spec{font-size:12px;border-radius:8px;background:var(--surface-subtle);padding:10px 11px;color:var(--muted);line-height:1.55}
.file-label{position:relative;overflow:hidden;cursor:pointer}
.file-label input[type=file]{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}
.file-label:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
.editor-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px;font-size:13px}
.editor-meta input{margin-left:6px}
.mode-switch{display:flex;align-items:center;flex-wrap:wrap;gap:6px}

.active,button.active{border-color:var(--accent-border)!important;background:var(--accent-soft)!important}
.editor-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.42fr)}
.editor-left{display:grid;gap:13px;min-width:0}
.step h2{margin-bottom:11px}
.input-note{margin-top:8px;font-size:12px;color:var(--muted)}


.source-grid,.style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.source{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#faf7ed}
.source img{width:100%;aspect-ratio:1;object-fit:cover}
.source span{display:block;font-size:11px;padding:4px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.source div{display:flex;flex-wrap:wrap}
.source button.quiet{font-size:10px;padding:3px}
.style{border:1px solid var(--line);padding:4px;border-radius:8px;background:#faf7ed;color:var(--ink);min-width:0}
.style img{aspect-ratio:1.6;object-fit:cover;border-radius:5px}
.style.warm img{filter:sepia(.26) saturate(1.18)}
.style.clean img{filter:brightness(1.22) saturate(.8)}
.style strong,


.spec{margin-bottom:10px;padding:0 0 9px;background:transparent;border-bottom:1px solid var(--line);border-radius:0;color:var(--muted)}
.spec small{display:block}
.result-main{overflow:hidden;border-radius:9px;background:var(--surface-subtle)}
.result-main img{width:100%;max-height:53vh;object-fit:contain}
.result-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:11px;color:var(--muted);margin:7px 0 12px}
.result h3{font-size:14px;margin:8px 0}
.candidate-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.candidate{width:99px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:7px;padding:3px;font-size:10px;overflow:hidden}
.candidate img{width:100%;aspect-ratio:1.55;object-fit:cover;border-radius:4px}
.candidate span{display:block;margin-top:3px}
.comparison{border-top:1px solid var(--line);padding-top:7px}
.comparison .section-label{margin:0}
.compare-strip{display:flex;gap:6px;flex-wrap:wrap}
.compare-strip .photo-button{width:62px}
.compare-strip img{width:62px;height:45px;object-fit:cover;border-radius:5px}
.confirm-box{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.confirm-box .button-row{margin:0}
.check{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.4}
.copy-review{margin-top:7px}
.progress,.error-box{border-radius:8px;background:var(--accent-soft);color:var(--accent-ink);padding:8px;margin-bottom:8px;font-size:13px}
.progress span{display:inline-block;width:13px;height:13px;border:2px solid #e4d5a4;border-top-color:var(--focus);border-radius:50%;animation:spin 1s linear infinite;vertical-align:middle}
@keyframes spin{to{transform:rotate(1turn)}}
.error-box{background:#fce6e0;color:#a3251a}
.gallery-panel{margin-bottom:13px}
.positions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:8px}
.position{border:1px solid var(--line);border-radius:8px;padding:4px;text-align:center}
.position>button{width:100%;border:0;background:transparent;color:var(--ink);padding:0;font-size:10px}
.position>button>.icon{height:40px;color:#857648}
.position img{aspect-ratio:2;object-fit:cover;width:100%;border-radius:5px}
.position span{display:block;margin-top:4px}
.position-actions{display:flex;justify-content:center}
dialog{width:min(760px,calc(100% - 22px));max-height:88vh;overflow:auto;padding:0;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 22px 55px #25221950}
dialog::backdrop{background:#25221999}
.modal-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line)}
.modal-content{padding:15px}
.modal-head button{font-size:21px}
.stack{display:grid;gap:9px}
#upload-status{margin:0;padding-left:20px;font-size:12px}
#upload-status:empty{display:none}
.large-image{max-height:64vh;object-fit:contain;margin:auto}
.pick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.asset-option{border:1px solid var(--line);border-radius:8px;overflow:hidden}
.asset-option img{width:100%;aspect-ratio:1.6;object-fit:cover}
.asset-option span{display:flex;align-items:center;gap:4px;padding:5px;overflow-wrap:anywhere}
.comparison-modal{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.comparison-modal img{width:100%;max-height:55vh;object-fit:contain;margin-top:6px;background:var(--surface-subtle);border-radius:7px}
#notice{position:fixed;bottom:16px;right:16px;z-index:6;max-width:min(460px,calc(100vw - 32px));border-radius:10px;padding:10px 15px;color:#fff;background:var(--sidebar-bg);box-shadow:0 4px 15px #25221945;font-size:13px}
#notice[data-error=true]{background:#922b20}
dialog:modal:has(#upload-status) .danger{font-weight:650}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:1240px){.sidebar{width:184px}.brand{font-size:14px}.brand small{font-size:7px}main{margin-left:184px}.asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:950px){.content{padding:18px}.editor-grid,.settings-grid{grid-template-columns:1fr}}
@media(max-width:640px){
  .sidebar{inset:auto 0 0;width:auto;padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-top:1px solid #4b432e;overflow:visible}
  .sidebar .brand,.sidebar .workbench-types{display:none}
  .sidebar nav{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;margin:0}
  .sidebar nav a{flex-direction:column;justify-content:center;gap:3px;min-height:48px;padding:4px 2px;border-radius:8px;font-size:10px;text-align:center;white-space:nowrap}
  .sidebar nav .icon{width:18px;height:18px}
  .sidebar-account{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-bottom:9px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
  .sidebar-account button.quiet{font-size:12px;padding:5px 4px}
  main{margin-left:0}
  .top{display:none}
  .content{padding:calc(12px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) calc(78px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  .heading{margin:2px 0 14px;align-items:flex-start}.section-label>span,.section-label>a{font-size:10px}.section-label h2{font-size:16px}.panel{padding:10px}.panel h2{font-size:17px}.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.back-link{padding:6px;font-size:10px;white-space:nowrap}.back-link .icon{width:14px}.editor-meta{margin-bottom:8px}.source-grid,.style-grid{gap:5px}.toolbar{gap:5px}.position{padding:2px}.position-actions .quiet{padding:4px 5px}.pick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-cover{aspect-ratio:2.4}.confirm-box .button-row{margin-top:4px}#notice{bottom:calc(72px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.001ms!important}}

.member-panel{margin-top:16px}
.member-panel h2{margin-bottom:6px}
.member-form{margin:12px 0}
.member-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:9px 0;border-top:1px solid var(--line)}
.member-row strong{flex:1;overflow-wrap:anywhere}

.quota-panel{margin-bottom:14px}
.quota-details{display:grid;gap:10px;font-size:13px}
.quota-usage{display:grid;gap:4px}
.quota-label{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap}
.quota-label strong{font-variant-numeric:tabular-nums}
.quota-usage small{color:var(--muted)}
.quota-usage meter{appearance:none;width:100%;height:7px;border:0;border-radius:10px;background:var(--surface-subtle)}
.quota-usage meter::-webkit-meter-bar{border:0;border-radius:10px;background:var(--surface-subtle)}
.quota-usage meter::-webkit-meter-optimum-value{border-radius:10px;background:var(--accent)}
.quota-usage meter::-moz-meter-bar{border-radius:10px;background:var(--accent)}

.sidebar{overflow-y:auto}
.workbench-types{display:grid;gap:2px;margin:6px 0 4px 24px;padding-left:8px;border-left:1px solid #ffffff26}
.workbench-types button{display:flex;align-items:center;gap:8px;border:0;border-radius:7px;background:transparent;color:#eee8d6;text-align:left;padding:6px 8px;font:inherit;font-size:13px;white-space:nowrap}
.workbench-types button .icon{width:15px;height:15px}
.workbench-types button:hover,.workbench-types button:focus,.workbench-types button[aria-current]{background:#ffffff18;color:var(--accent)}
@media(max-width:640px){
  .workbench-types{margin:4px 0 3px 9px;padding-left:3px}
  .workbench-types button{width:100%;gap:3px;padding:5px 3px;font-size:11px;white-space:normal}
  .workbench-types button .icon{width:11px;height:11px}
  .heading{flex-wrap:wrap}
  .editor-meta label{max-width:100%}
  .editor-meta input{max-width:100%;margin-left:0}
  .fields{grid-template-columns:1fr}
}


/* Workbench home */
.studio-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:156px;padding:clamp(18px,2.7vw,36px);margin-bottom:20px;overflow:hidden;border-radius:13px;background:#272318;color:#fffae9}
.studio-hero h1{font-size:clamp(27px,3.1vw,46px);line-height:1.1}
.studio-hero-art{position:absolute;z-index:-1;inset:0 0 0 44%}
.studio-hero-art img{width:100%;height:100%;object-fit:cover;object-position:60% 58%}
.studio-hero-art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#272318,transparent 65%)}
.mobile-home{display:none}
@media(max-width:640px){.studio-hero{display:none}.mobile-home{display:block}}
.home-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}
.home-type>img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.home-type-footer{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:10px;flex-wrap:wrap}
.home-type-footer h2{display:flex;align-items:center;gap:5px;font-size:15px}
.home-type-footer h2 .icon{width:15px;height:15px;color:var(--accent-ink)}
.home-type-footer .upload-action{padding:5px 8px;font-size:12px;min-height:32px}
@media(max-width:1100px){.home-types{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.home-types{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-type-footer{padding:8px}.home-type-footer h2{font-size:13px}}
.studio-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:24px}
.studio-overview .panel{margin:0;box-shadow:none}
.studio-overview .section-label{flex-wrap:wrap}
.studio-recent-list{display:grid;column-gap:12px}
.studio-home .recent-row{padding:7px 2px}
.studio-home .recent-row strong{overflow-wrap:anywhere}
.studio-home .recent-row:hover{color:var(--accent-ink)}
@media(min-width:951px){.studio-recent-list:has(.recent-row:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  .studio-overview{grid-template-columns:1fr;gap:8px;margin-bottom:16px}
  .studio-recent-list .recent-row:nth-child(n+3){display:none}
}

.content:has(>.heading) :is(.panel,.tile),.admin .panel{box-shadow:none}
:is(.setting-preview,.store-cover):has(>.icon){aspect-ratio:auto;min-height:58px;background:var(--surface-subtle)}
:is(.setting-preview,.store-cover)>.icon{width:22px;height:22px}

.brand-picker{display:grid;gap:8px;margin-top:9px;justify-items:start}
.brand-sample{max-width:100%;padding:0;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:var(--surface-subtle);cursor:crosshair}
.brand-sample canvas{display:block;max-width:100%;width:auto;height:auto;max-height:120px;object-fit:contain}

.workbench-types .batch-nav-link{display:flex;flex-direction:row;align-items:center;gap:8px;padding:6px 8px;border-radius:7px;font-size:13px}
.workbench-types .batch-nav-link .icon{width:15px;height:15px}

.batch-page,.cover-page{max-width:1360px}
.batch-page .heading,.cover-page .heading{margin-bottom:16px}
.batch-workspace{display:grid;gap:12px}
.batch-workspace .panel,.cover-workspace .panel{box-shadow:none}
.batch-media,.batch-copy,.cover-group{padding:clamp(12px,2vw,24px)}
.batch-section-head,.cover-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.batch-section-head{align-items:center;margin-bottom:10px}
.batch-section-head label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;min-width:0}
.batch-section-head input{min-width:0;width:clamp(90px,15vw,220px)}
.batch-source{min-width:0}
.batch-source-title{display:flex;align-items:baseline;justify-content:space-between;gap:5px;margin-top:7px}
.batch-source-title h3{font-size:13px;overflow-wrap:anywhere}
.batch-source-title small,.cover-count{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
.batch-source .button-row{margin:2px 0 0;gap:5px}
.batch-source .button-row .quiet{padding:5px 0;font-size:12px;min-height:30px;text-align:left}
.upload-tile{display:flex;width:100%;min-width:0;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:10px;border:1px dashed #d6cbb0;border-radius:9px;background:#faf8ef;color:var(--accent-ink);font-size:13px;font-weight:700;text-align:center}
.cover-tile.upload-tile,.cover-tile .upload-tile{display:flex;background:#faf8ef}
.cover-tile .upload-tile{height:100%;border:0}
.upload-tile:hover,.upload-tile:focus-visible,.upload-tile:has(input:focus-visible){background:var(--accent-soft);border-color:var(--accent-border)}
.cover-tile.upload-tile:hover,.cover-tile .upload-tile:hover{background:var(--accent-soft)}
.file-label[aria-busy=true]::after{content:"上传中…";position:absolute;inset:0;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-ink);cursor:progress}
.upload-action .icon,.upload-tile .icon{width:17px;height:17px}
.upload-action{gap:6px}
.editor-upload-tile,.asset-upload-tile,.chooser-upload-tile{min-height:94px}
.asset-upload-tile{margin:12px 0}
.editor-upload-tile{margin-top:9px}
.setting-preview:has(.upload-tile){aspect-ratio:auto;background:none;overflow:visible}
.setting-preview .upload-tile{min-height:80px}
.setting-file:has(.setting-preview .upload-tile) .setting-replace{display:none}
.setting-replace .upload-action{width:100%;justify-content:center}
#upload-selection{overflow-wrap:anywhere}
#upload-selection:empty{display:none}
.batch-previews{padding:4px}
.batch-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:3px;width:100%;height:100%;min-height:0}
.batch-thumbs-many{grid-template-columns:repeat(3,minmax(0,1fr))}
.batch-thumb:only-child{grid-column:1/-1}
.batch-thumb{position:relative;min-height:0;overflow:hidden;border-radius:5px}
.batch-previews .batch-thumb img{width:100%;height:100%;object-fit:cover}
.batch-thumb button.quiet{position:absolute;top:2px;right:2px;padding:1px 5px;min-height:20px;background:var(--paper);color:var(--ink)}
.batch-copy .fields{margin:12px 0}
.batch-copy textarea{display:block;width:100%;margin-top:5px;min-height:64px;resize:vertical}
.batch-submit{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.batch-submit .primary{min-width:128px;justify-content:center}
.batch-results{margin-top:14px}
.batch-result-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;border-top:1px solid var(--line);padding:7px 0}
.batch-result-row:first-of-type{margin-top:8px}
.batch-result-row strong{flex:1}
.batch-result-row .pill{white-space:normal;overflow-wrap:anywhere}
.batch-copy [data-action="news-copy"],.step [data-action="news-copy"]{margin-top:7px}
.cover-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.cover-toolbar label{display:flex;align-items:center;gap:6px;font-size:13px}
.cover-workspace{display:grid;gap:12px}
.cover-workspace-large .cover-group{min-width:0}
.cover-group-upload{margin-top:12px;border:1px dashed #d6cbb0}
@media(min-width:1080px){
  .cover-workspace-large{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cover-workspace-large .cover-delivery-footer,.cover-workspace-large>.progress{grid-column:1/-1}
  .cover-workspace-large .cover-group-head{min-height:106px}
}
@media(max-width:1079px){.cover-group-upload{max-width:280px}}
.cover-group-head .muted{margin-top:3px}
.cover-count{display:inline-block;margin-left:5px}
.cover-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px;margin-top:14px}
.cover-grid-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.cover-position{min-width:0;font-size:13px}
.cover-position form{margin:0}
.cover-empty>strong{display:block;margin-top:6px;color:var(--muted);font-size:12px;font-weight:600}
.cover-tile{display:grid;place-items:center;aspect-ratio:var(--cover-ratio,4/3);overflow:hidden;border-radius:9px;background:var(--surface-subtle)}
.cover-empty .cover-tile{border:1px dashed #d6cbb0;background:#faf8ef;color:#8c805d}
.cover-tile>.icon{width:22px;height:22px}
.cover-tile img,.cover-tile video{width:100%;height:100%;object-fit:contain}
.cover-tile video{background:#29271f}
.cover-tile form{width:100%;height:100%}
.cover-file-label{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;margin-top:7px}
.cover-file-label small{color:var(--muted)}
.cover-position .button-row{gap:4px;margin-top:5px}
.cover-position .button-row .button,.cover-position .button-row .quiet,.cover-position .button-row .upload-action{font-size:11px;padding:4px 6px;min-height:29px}
.cover-delivery-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:4px 0}
.cover-spec{flex:1;min-width:120px;font-size:13px;color:var(--muted)}
.cover-spec summary{cursor:pointer;padding:8px 0}
@media(max-width:1060px){.cover-grid-five{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){
  .workbench-types .batch-nav-link{gap:3px;padding:5px 3px;font-size:11px}
  .workbench-types .batch-nav-link .icon{width:11px;height:11px}
  .batch-page .heading,.cover-page .heading{gap:8px}
  .batch-submit .primary{flex:1}
  .cover-grid-five{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .cover-toolbar label{flex-wrap:wrap}
  .cover-delivery-footer{gap:5px}
}
.cover-crop{position:relative;overflow:hidden;border-radius:8px;background:var(--panel)}
.cover-crop img{display:block;width:100%;height:100%;object-fit:cover}
.cover-crop::after{content:"";position:absolute;inset:10%;border:2px dashed #fff;box-shadow:0 0 0 1px #332b1d;pointer-events:none}
.compare-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:14px}
.proposal-stage-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.product-panel .fields{align-items:start}
.product-panel .fields label{display:grid;gap:5px;min-width:0}
.product-panel .fields input,.product-panel .fields select{width:100%;margin:0;min-height:40px}
.product-panel .fields label:last-child{grid-column:1/-1}
.recognition-note{margin:12px 0;padding:11px 13px;border:1px solid var(--line);border-left:3px solid var(--accent-border);border-radius:8px;background:#fcf8e8}
.recognition-note[data-level=attention]{border-left-color:#a44b2e;background:#fff5ee}
.recognition-note strong{font-size:12px}
.recognition-note p{margin:4px 0}
.recognition-note small{display:block;color:var(--muted)}
.recognition-note+.button-row{margin-bottom:12px}
.strategy-library>details>summary{font-size:17px;font-weight:700;cursor:pointer}
.strategy-library .admin-form{margin-top:12px}
.strategy-admin-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:14px;margin-top:14px}
.strategy-admin-grid>form{border:1px solid var(--line);border-radius:10px;padding:14px;min-width:0}
.strategy-admin-grid #strategy-test{background:#faf7ee;align-content:start}
.strategy-admin-grid textarea{min-height:225px;font-family:ui-monospace,monospace;font-size:12px;line-height:1.55}
.strategy-test-result{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;margin:0}
.strategy-test-result:not(:empty){padding:12px;border:1px solid var(--line);background:var(--paper);border-radius:8px}
#modal:has(.proposal-studio){width:min(1060px,calc(100% - 28px));max-height:min(90dvh,960px)}
#modal:has(.proposal-studio) .modal-head{position:sticky;top:0;z-index:2;background:var(--paper)}
#modal:has(.proposal-studio) .modal-content{padding:0}
.proposal-studio{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);align-items:start}
#proposal-form,.proposal-stage{min-width:0;padding:clamp(16px,2.5vw,26px)}
#proposal-form .fields label,#proposal-form .fields select{min-width:0}
.proposal-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.proposal-palette label{display:grid;gap:6px}
.proposal-palette input{width:100%;height:36px;padding:3px;border:1px solid var(--line);border-radius:7px;background:var(--paper);cursor:pointer}
.proposal-section{border:1px solid var(--line);border-radius:9px}
.proposal-section summary{padding:9px 11px;cursor:pointer;font-size:13px;font-weight:650}
.proposal-section-body{display:grid;gap:10px;padding:11px;border-top:1px solid var(--line)}
.proposal-section-body>.fields+.fields{padding-top:10px;border-top:1px solid var(--line)}
.proposal-form-actions{margin-top:3px}
.proposal-stage{position:sticky;top:55px;border-left:1px solid var(--line);background:#f4f0e4}
.proposal-stage-heading{margin-bottom:12px}
.proposal-empty,.proposal-canvas-frame{background:#e9e1cf;border:1px solid #dfd5bd;border-radius:12px;padding:clamp(10px,2vw,20px)}
.proposal-empty{display:grid;justify-items:center;gap:12px;color:var(--muted);text-align:center;font-size:12px}
.proposal-wire{display:grid;grid-template-rows:1.35fr repeat(5,1fr);gap:4px;width:min(100%,210px);aspect-ratio:3/4;padding:8px;background:#28231b;color:#f7ecd3;border:1px solid #4d412f}
.proposal-wire>div{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:6px;border:1px solid #a98a56;text-align:left;font-size:11px}
.proposal-wire>div>span:first-child{text-align:center;color:#e6c588;font-variant-numeric:tabular-nums}
#proposal-preview canvas{display:block;width:100%;height:auto;box-shadow:0 8px 20px #392a2220}
.proposal-exports{margin-top:12px}
.proposal-exports .primary{flex-basis:100%;text-align:center}
.proposal-exports .button{font-size:12px;min-height:36px}
.proposal-status{font-size:12px;margin-top:8px}
.proposal-status:empty{display:none}
@media(max-width:900px){.strategy-admin-grid{grid-template-columns:1fr}}
@media(max-width:760px){.proposal-studio{grid-template-columns:1fr}.proposal-stage{position:static;border-left:0;border-top:1px solid var(--line)}#proposal-preview{scroll-margin-top:60px}}
@media(prefers-reduced-motion:no-preference){
  .proposal-canvas-frame{animation:proposal-appear .2s ease-out both}
  .proposal-exports button{transition:background-color .15s ease,border-color .15s ease}
}
@keyframes proposal-appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.feedback-panel{margin-top:12px}.feedback-panel p{margin-top:5px}.feedback-panel dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 12px;margin:8px 0 0;font-size:13px}.feedback-panel dd{margin:0}.feedback-aspects{font-size:12px}.feedback-aspects summary{cursor:pointer}.feedback-aspects .button-row{margin:4px 0}

#modal .cover-upload>.upload-tile{min-height:110px}
