/* Common merchant surface: keep the existing brand mark, accessible blue and real status colors. */
:root{--blue:#2059d1;--blue-dark:#163f97;--ink:#17253a;--muted:#526276;--line:#dce2e8;--bg:#f6f7f7;--shadow:none;--surface:#fff;--tint:#edf3ff;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
body{line-height:1.55}
.brand-mark,.panel,.btn,.tool-card,.stat,.tools-panel{box-shadow:none}
main{max-width:1510px;padding:clamp(16px,2.4vw,40px);min-width:0}
h1,h2,h3{color:var(--ink);text-wrap:pretty}
h1,.page-heading h1{font-size:clamp(25px,2.4vw,37px);letter-spacing:-.045em;line-height:1.25}
.page-heading{flex-wrap:wrap;justify-content:flex-start;gap:8px 12px;align-items:center}
.page-heading>div:first-child{flex:1 1 300px;min-width:0}.page-heading .subheading{max-width:65ch}
.subheading,.details,.form-group small{color:var(--muted);font-size:13px}
.panel,.tools-panel{border-radius:12px;border:1px solid var(--line)}
.btn,button,summary,a{touch-action:manipulation}
.btn,.platform-card,.picker-option,.desk-quick{transition:background-color .12s ease,border-color .12s ease,color .12s ease}
.btn{font-size:14px;min-height:42px;line-height:1.4;font-weight:600}
.btn.secondary{border:1px solid #cbd5df;color:var(--ui-text, #272c2a);background:#fff}
.btn.soft,.nav-link.active,.filter.active{background:var(--tint);color:var(--ui-link)}
.btn:hover:not(:disabled){filter:brightness(.97)}
:is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #5583e7;outline-offset:2px}
.form-group label,.office-compose form>label,.product-grid>label,.recipe-top>label{font-size:14px;font-weight:600;color:var(--ink)}
input:not([type]),input[type=text],input[type=email],input[type=password],input[type=number],input[type=datetime-local],select,textarea{max-width:100%;min-width:0;border:1px solid #bdc8d3;color:var(--ink);font-size:14px;border-radius:7px;background:white;padding:10px 12px}
input::placeholder,textarea::placeholder{color:var(--ui-secondary, #505b55);font-weight:400}
.market-start,.studio-steps,.piece-actions,.desk-facts{display:flex;flex-wrap:wrap;gap:8px 15px;align-items:center}
.market-start{padding:15px 0 22px}
.desk-title,.office-compose,.video-compose,.desk-home,.office-preview,.desk-paper,.desk-piece{min-width:0}
.desk-kicker{font-size:12px;line-height:1.55;font-weight:600;color:var(--muted);display:inline-flex;align-items:center;gap:6px}
.desk-kicker svg{width:15px;height:15px}
.desk-title h1{margin:6px 0}.desk-title p,.desk-empty p,.paper-blank p{color:var(--muted);margin:.35rem 0 1rem}
.desk-quick-grid,.piece-grid,.film-grid,.product-grid,.recipe-top,.office-studio,.presales-grid{display:grid;gap:14px}
.desk-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:22px 0 32px}
.desk-quick{display:flex;min-width:0;gap:14px;align-items:center;background:white;border:1px solid var(--line);border-radius:12px;padding:18px 16px}
.desk-quick.lead{background:var(--blue);color:white;border-color:var(--blue)}
.desk-quick .desk-glyph{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#edf2f7;color:var(--ink);flex-shrink:0}
.desk-quick.lead .desk-glyph{background:#ffffff24;color:white}
.desk-quick>span:nth-child(2){min-width:0;flex:1}
.desk-quick>svg{width:16px;height:16px}
.desk-quick strong,.desk-quick small{display:block}.desk-quick strong{font-size:clamp(16px,1.4vw,20px)}.desk-quick small{font-size:12px;color:var(--muted);margin-top:3px}.desk-quick.lead small{color:#f0f4ff}
.desk-quick:hover,.desk-piece:focus-within,.desk-quick:focus-visible{border-color:#7290ce}
.desk-section-title{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin:0 0 14px}
.desk-section-title h2{margin:2px 0 0;font-size:22px;font-weight:700;letter-spacing:-.025em}
.desk-link,.piece-actions a,.all-batches a{color:var(--ui-link);font-weight:600;background:transparent}
.desk-link,.piece-actions a{min-height:38px;display:inline-flex;align-items:center;padding:3px 0;font-size:13px}
.piece-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));margin-bottom:28px}
.film-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.desk-piece{border:1px solid var(--line);background:#fff;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.piece-cover{height:150px;display:block;position:relative;overflow:hidden}
.film-cover{background:#1c2a35;color:#fff;text-align:center}
.film-cover video{height:100%;width:100%;object-fit:contain;pointer-events:none;display:block}
.film-time,.film-play{position:absolute;bottom:10px;color:white;background:#162335df;border-radius:5px;padding:2px 7px;font-size:12px}
.film-time{right:9px}.film-play{left:9px}
.film-pending{display:grid;place-items:center;height:100%}
.document-cover{background:#e7edf4;padding:14px 17px 0}
.mini-paper,.desk-paper{background:#fff;color:var(--ink)}
.mini-paper{max-width:270px;min-height:100%;margin:auto;padding:12px 14px 8px;border-top:3px solid #32568f;overflow-wrap:anywhere}
.mini-paper span,.mini-paper b{display:block}.mini-paper span{color:var(--ui-secondary, #505b55);font-size:10px}.mini-paper b{font-size:12px;line-height:1.4;margin:5px 0}.mini-paper p{color:var(--ui-secondary, #505b55);font-size:10px;line-height:1.5;margin:0;white-space:pre-line}
.piece-caption{padding:12px 14px 5px;display:flex;flex-direction:column;flex:1;overflow-wrap:anywhere}
.piece-caption h3{font-size:16px;margin:4px 0;line-height:1.45}
.piece-caption small,.piece-meta{font-size:12px;color:var(--muted)}.piece-meta{font-weight:600}
.piece-actions{margin-top:auto;justify-content:space-between;gap:4px 10px}
.desk-empty,.paper-blank{display:block;padding:20px;border:1px dashed #b5c4d6;border-radius:8px;background:#fff}
.desk-facts{color:var(--muted);font-size:13px;border-top:1px solid var(--line);margin-top:20px;padding:16px 0}
#desk-history .history-item{background:white;padding:12px 16px}#desk-history,#desk-recent,#clip-library,#clip-product,#clip-recipe{scroll-margin-block-start:82px}
.office-studio,.presales-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:clamp(14px,2vw,28px)}
.office-compose,.office-preview,.video-compose{padding:clamp(16px,1.8vw,28px)}
.office-preview{border-radius:12px;border:1px solid var(--line);background:#edf1f5}
.office-preview>.notice{font-size:12px;padding:9px 12px;margin-bottom:12px}
.office-preview #generation-result{padding:0;border:0;background:transparent;overflow-wrap:anywhere}.office-preview .result{padding:16px;background:white;border:1px solid var(--line)}
.office-compose .form-group,.office-compose form>label{margin:0 0 12px;display:block}.office-compose textarea{min-height:68px}
.office-compose form>label select,.product-grid>label>*:not(span),.recipe-top>label>*{display:block;width:100%;margin-top:5px}
.office-reference,.all-batches{border-block-start:1px solid var(--line);padding:7px 0}
.office-reference summary,.all-batches summary{cursor:pointer;padding:8px 2px;color:var(--ui-text, #272c2a);font-size:14px;font-weight:600}
.office-submit{justify-content:flex-start;align-items:start}
.desk-paper{padding:clamp(14px,1.8vw,26px);border:1px solid #cad3de;border-top:3px solid #395c91;border-radius:2px;overflow-wrap:anywhere}
.desk-paper h3{margin:.5rem 0;line-height:1.5;font-size:18px}
.paper-body{white-space:pre-line;line-height:1.85;font-size:14px;max-height:32rem;overflow:auto}
.studio-steps{border-block:1px solid var(--line);padding:6px 0;margin-bottom:18px}
.studio-steps button{font-weight:600;color:var(--ui-text, #272c2a);background:transparent;min-height:44px;font-size:14px;padding:4px 7px}
.studio-steps b{font-variant-numeric:tabular-nums;color:var(--ui-link);margin-right:7px}
.video-compose form>fieldset,.presales-grid fieldset{border:0;margin:0;padding:0;min-width:0}
.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}.product-grid>label:last-child{grid-column:span 2}
.product-grid textarea{min-height:66px}.product-grid label{min-width:0}
#clip-recipe{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.recipe-top{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
.video-compose .campaign-combo{background:#f6f8fa;border:1px solid var(--line);border-radius:8px}
.campaign-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.task-model-picker>summary,.voice-picker>summary,.campaign-combo>summary{color:var(--ink);overflow-wrap:anywhere;white-space:normal}
.task-model-picker>summary,.voice-picker>summary{background:#fff;border-color:#aebecf}
.task-model-picker[open]>summary,.picker-option[aria-pressed=true],.voice-panel .voice-select[aria-pressed=true]{color:var(--ui-link);background:var(--tint);border-color:var(--blue)}
.task-model-picker .picker-list,.voice-panel{position:static;max-height:none;max-width:100%;width:100%;min-width:0;border-radius:7px;box-shadow:none;margin-top:5px;background:#fff}
.task-model-picker[open]{display:block;width:100%}
.office-submit:has(.task-model-picker[open]) .task-model-picker{flex-basis:100%}
.picker-option,.picker-option span,.model-family{overflow-wrap:anywhere;white-space:normal;min-width:0}
.task-model-picker .picker-list .picker-option{min-height:44px}.voice-slot,.voice-panel{border-color:var(--line)}
.video-compose #campaign-estimate{font-size:14px;color:var(--ui-secondary, #505b55);background:#f3f6fa;padding:10px 12px;border-radius:6px}
#clip-library{margin-top:24px}.all-batches{margin-top:16px}
.presales-grid{padding-top:8px}.presales-grid input:not([type=checkbox]),.presales-grid textarea{width:100%;display:block}.presales-grid label{display:block;margin:6px 0 12px}
.loading[role=status]{animation:desk-pulse 1.35s ease-in-out infinite alternate}
@keyframes desk-pulse{from{opacity:.72}to{opacity:1}}
@media(max-width:850px){.office-studio,.presales-grid{grid-template-columns:1fr}.desk-quick-grid{gap:8px}.desk-quick{gap:7px;padding:12px}.campaign-settings{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.page-heading>div:first-child{flex-basis:100%}.page-heading h1{font-size:26px}.page-heading .btn,.btn,.piece-actions a,.desk-link,summary,.nav-link{min-height:44px}.page-heading .btn,.btn{font-size:13px}
.desk-quick-grid{grid-template-columns:1fr;margin:14px 0 22px}.desk-quick{padding:10px 12px;gap:12px}.desk-quick small{margin:0}
main{padding:18px 12px 28px}.studio-steps{gap:2px;justify-content:space-between}.studio-steps button{font-size:13px;padding:4px}.studio-steps b{margin-right:4px}
.product-grid,.recipe-top,.campaign-settings,.campaign-combo .campaign-settings{grid-template-columns:minmax(0,1fr)}.product-grid>label:last-child{grid-column:auto}
.piece-grid,.film-grid{grid-template-columns:1fr}.desk-piece{display:grid;grid-template-columns:minmax(80px,31%) minmax(0,1fr)}.piece-cover{height:100%;min-height:135px}.document-cover{padding:9px 5px 0}.mini-paper{padding:8px 6px;max-height:145px}.piece-caption{padding:9px 9px 1px}
.piece-caption h3{font-size:15px}.desk-section-title h2{font-size:20px}.office-studio{gap:16px}.office-submit{display:grid;grid-template-columns:minmax(0,1fr)}.office-submit>*,.office-submit>.task-model-picker{width:100%}
.desk-paper{padding:12px}.voice-row{gap:4px}.voice-row button,.platform-card{min-height:44px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
.skip{left:12px;top:0;transform:translateY(-200%);max-width:calc(100vw - 24px)}.skip:focus{transform:translateY(0)}
@media(max-width:600px){.voice-picker .voice-panel{padding:.55rem}.desk-facts{gap:10px}.office-submit .task-model-picker[open],.office-submit .picker-list{min-width:0}}
