/* Shared merchant shell. Palette and navigation are based on the archived first release. */
:root{color-scheme:light;--blue:#205bd5;--blue-dark:#1742a6;--ink:#19233a;--text:#19233a;--muted:#526077;--line:#d8e0ed;--bg:#f5f7fb;--surface:#fff;--tint:#edf3ff;--shadow:none}
body{font:15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--ink)}
.workspace,.workspace main,.studio>*{min-width:0}.workspace main{max-width:1480px;margin-inline:auto;padding:clamp(16px,2.3vw,34px)}
.sidebar,.topbar{background:white}.sidebar{border-right:1px solid var(--line);padding:22px 14px 14px;overflow:auto}.nav-group{margin-top:21px}.nav-label{font-size:13px;color:var(--muted);letter-spacing:0;margin:0 12px 4px}.nav-link{min-height:38px;color:var(--ui-secondary, #505b55);font-size:15px;padding:7px 12px;border-radius:8px;margin:2px 0}.nav-link:is(.active,[aria-current=page]){color:var(--ui-link);background:var(--tint);box-shadow:none}.nav-link.active:after{background:#2464ec}.brand small,.breadcrumb,.breadcrumb strong,.environment,.account,.sidebar-foot{color:var(--muted);letter-spacing:0}.brand-mark{background:#2464ec;box-shadow:none}.topbar{height:62px;border-color:var(--line);backdrop-filter:none}.sidebar-foot{padding:12px}.site-preview-link{font-size:14px;color:var(--ui-link)}
h1,h2,h3,h4{color:var(--ink);letter-spacing:normal;scroll-margin-top:76px}h1,.desk-title h1,.page-heading h1{font-size:clamp(25px,2.15vw,34px);line-height:1.3;font-weight:700;letter-spacing:-.02em}.page-heading,.desk-title{margin:0 0 18px}.page-heading p{margin:4px 0 0}.subheading,.page-heading p,main .details,main small,.piece-meta,.piece-caption small,.card-bottom,.card-tags,.history-item small,.desk-facts,.form-group small,.reading-aid dd,.office-reference small{font-size:14px;line-height:1.55;color:var(--muted)}
main :where(h1,h2,h3,p,label,dd,summary,a){overflow-wrap:anywhere}.panel,.tools-panel,.stat{background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:none}.panel h2,.desk-section-title h2,.office-preview>h2,.screening h2{font-size:19px;margin:0 0 10px}.btn{border-radius:7px}.btn:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #3667c5;outline-offset:2px}
.desk-rail,.desk-recent,.home-films,#desk-history{margin-block:0 20px}.desk-quick-grid{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;margin:0}.desk-rail .desk-quick{display:flex;flex:1 1 205px;align-items:center;padding:12px 15px;gap:10px;border:1px solid #b9cae7;border-radius:8px;background:white;color:var(--ui-link);min-width:0;min-height:48px}.desk-rail .desk-quick.lead{background:var(--blue);color:white;border-color:var(--blue)}.desk-quick .desk-glyph,.desk-quick.lead .desk-glyph{background:transparent;color:inherit;width:21px;height:auto}.desk-rail .desk-quick>span:nth-child(2){min-width:0}.desk-quick strong{font-size:16px}.desk-quick small{color:var(--muted);display:block;overflow-wrap:anywhere}.desk-quick.lead small{color:#fff}.desk-quick>svg:last-child{margin-left:auto;width:16px}
.desk-recent,#desk-history,.home-films{background:white;border:1px solid var(--line);border-radius:10px;padding:clamp(14px,2vw,24px)}.desk-section-title{align-items:center;gap:10px}.folio-head,.file-index,.desk-facts{display:flex;gap:10px 20px;align-items:baseline;flex-wrap:wrap}.folio-head,.file-index span{color:var(--muted);font-size:14px}.folio-head time{margin-left:auto}.folio .desk-paper{border:0;background:#f7f9fd;border-radius:6px;margin-top:8px;padding:12px 16px}.folio .paper-body{max-height:8.5em}.desk-paper h3{font-size:19px}.file-index{padding:10px 0;border-top:1px solid var(--line);color:var(--ui-link)}.desk-link,.piece-actions a,.screen-controls a,.task-tools button,.section-index button{color:var(--ui-link);font-weight:600;min-height:42px;align-content:center}.piece-actions{display:flex;gap:8px;flex-wrap:wrap}.piece-actions a,.screen-controls a{display:inline-flex;align-items:center;padding:6px 13px;background:#fff;border:1px solid #acbddb;border-radius:6px}.piece-actions [download],.screen-controls a{color:var(--ui-link);background:var(--tint)}
.home-films .film-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px}.home-films .film-piece{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;background:#fff;border:0}.home-films .film-cover{min-height:0;height:100px}.home-films .piece-caption{padding:6px 12px}.film-time{color:white}
.office-studio{grid-template-columns:minmax(280px,.94fr) minmax(0,1.25fr);align-items:start;gap:18px}.office-compose,.office-preview{background:#fff;border:1px solid var(--line);border-radius:10px;padding:clamp(14px,1.8vw,24px)}.office-compose form>.form-group:first-child label{margin-top:0}.office-compose textarea{width:100%;min-height:70px}.task-tools,.studio-steps,.section-index{display:flex;gap:6px 12px;flex-wrap:wrap;margin:0 0 12px;background:white;border:0;border-radius:8px;padding:0}.task-tools button,.section-index button,.studio-steps button{display:inline-flex;align-items:center;padding:6px 9px;min-height:44px;background:var(--tint);border-radius:5px;font-size:14px;color:var(--ui-link)}.office-compose label{color:var(--ink)}.office-submit{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;scroll-margin-top:80px}.office-preview #generation-result{padding:0;border:0;scroll-margin-top:80px;min-height:0}.office-preview .desk-paper{border:0;background:#f7f9fd;padding:14px 16px;border-radius:5px}.office-preview .paper-body{font-size:16px;line-height:1.8}.reading-aid{border-top:1px solid var(--line);padding-top:14px;margin-top:20px}.reading-aid header span{color:var(--muted);font-size:14px;margin-right:10px}.reading-aid dl{margin:10px 0}.reading-aid dl div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;padding:6px 0}.reading-aid dt{font-weight:600}.reading-aid dd{margin:0;white-space:pre-wrap}.reading-aid .has-value{color:var(--ink)}
.cutting-room{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.8fr);align-items:start;gap:18px}.cutting-room>*{min-width:0}.video-compose{margin:0}.screening{position:sticky;top:76px;border:1px solid var(--line);border-radius:10px;background:white;padding:16px}.screening video{width:100%;height:clamp(220px,48vh,470px);display:block;background:#1a2330;object-fit:contain}.screen-controls{display:grid;justify-items:start;gap:8px;margin-top:12px}.screen-controls select{width:100%}.cutting-room .product-grid,.cutting-room .recipe-top{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-audition{color:var(--ui-link)!important;justify-self:start}.sample-feedback:empty{display:none}.sample-feedback{margin:4px 0;color:var(--muted)}
.model-family,.task-model-picker,.picker-list,.picker-option>span,.campaign-settings>*,.voice-row,.voice-select,.office-submit>*{max-width:100%;min-width:0}.task-model-picker>summary,.task-model-picker>summary strong,.picker-option span,.voice-picker summary,.campaign-combo>summary{white-space:normal;overflow-wrap:anywhere;word-break:normal;text-overflow:clip;line-height:1.5}.task-model-picker>summary,.voice-picker>summary{display:block;min-height:44px;padding:9px 12px;color:var(--ui-link);background:#f7faff;border:1px solid #a4b9da}.picker-option small,.picker-note,.voice-select small{color:var(--muted);font-size:14px}.picker-option,.voice-row button,.quick-audition{min-height:44px}.task-model-picker[open] .picker-list{position:static;width:100%;overflow:visible;max-height:none}.office-preview .notice{font-size:14px;color:var(--ui-secondary, #505b55)}.office-reference summary,.details summary{min-height:44px}.workspace .table-wrap{overflow:auto}.workspace table{font-variant-numeric:tabular-nums}.workspace th{color:var(--ui-text, #272c2a)}.business-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:20px}.business-directory section h3{margin:0}.business-directory section a{display:block;padding:6px 0;color:var(--ui-link);background:transparent;border:0;text-align:left}.business-directory section a:hover,.desk-link:hover,.file-index:hover{color:var(--ui-link, #186b50);text-decoration:underline}.customer-portal{background:#fff;border:1px solid var(--line);border-radius:10px;max-width:880px;margin:20px auto;padding:clamp(14px,3vw,30px)}.platform-card[aria-pressed=true]{outline:2px solid var(--blue)}.workspace .history-item{border-color:var(--line)}.workspace .tool-card{box-shadow:none}.workspace .tool-card:hover{transform:none}.workspace .eyebrow{display:none}body .notice{color:var(--ui-secondary, #505b55)}input::placeholder,textarea::placeholder{color:var(--ui-secondary, #505b55)}.workspace .picker-mark{flex-shrink:0}
@media(max-width:960px){.campaign-settings{grid-template-columns:1fr}.cutting-room .product-grid,.cutting-room .recipe-top{grid-template-columns:1fr}}
@media(max-width:800px){.office-studio,.cutting-room{display:flex;flex-direction:column;gap:14px}.office-studio>*,.cutting-room>*{width:100%}.screening{position:static}.screening video{height:min(54vh,390px)}.office-compose,.office-preview{padding:14px}.desk-quick-grid{display:grid;grid-template-columns:1fr}.desk-rail .desk-quick{padding:8px 12px}.desk-quick .desk-glyph{width:20px}.desk-quick strong{font-size:15px}.desk-quick small{font-size:13px}.desk-quick.resume small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.reading-aid dl div{grid-template-columns:68px minmax(0,1fr)}}
@media(max-width:650px){.workspace main{padding:16px 12px 32px}.workspace .topbar{gap:8px;padding:0 12px}.breadcrumb,.top-actions{gap:6px}.environment{font-size:11px;white-space:nowrap;padding:4px}.sidebar{padding:16px 12px}.nav-link,.menu-button,.workspace button:not([hidden]),.workspace summary,.workspace .btn,.desk-link,.piece-actions a,.screen-controls a{min-height:44px}.workspace main :is(button,summary,.btn){white-space:normal;overflow-wrap:anywhere}.workspace main :is(select,textarea,input:not([type=checkbox])){max-width:100%;font-size:16px}.office-submit .task-model-picker{width:100%}.studio-steps{gap:6px}.studio-steps button{font-size:14px}.support-global{min-height:44px;align-content:center}.office-compose textarea{min-height:66px}.task-tools{margin-bottom:8px}.page-heading h1,.desk-title h1{font-size:26px}.desk-section-title{flex-wrap:wrap}.desk-recent,#desk-history,.home-films{padding:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Workbench: one primary action, equal shortcuts and a shared activity list. */
.clear-home{max-width:1360px;margin:auto}
.work-heading,.work-register>header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.work-heading{margin:6px 0 25px}.work-heading h1,.work-register h2,.work-stats dd{margin:0}
.work-heading p{margin:6px 0 0;color:var(--muted)}.work-heading>.btn{flex:none;white-space:nowrap}
.work-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0}
.work-stats>div,.work-register{background:#fff;border:1px solid var(--line);border-radius:10px}
.work-stats>div{padding:16px 20px}.work-stats dt{font-size:14px;color:var(--muted)}.work-stats dd{margin-top:7px;font-size:26px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.35}.work-stats dd small{font-size:13px;font-weight:400;margin-left:6px}.work-stats a{color:var(--ink);text-decoration:underline;text-underline-offset:4px;text-decoration-color:#bcc6d6;font-size:22px}
.work-shortcuts{display:flex;align-items:center;gap:8px;margin:16px 0 22px}.work-shortcuts a{color:var(--ink);font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:7px 14px;background:white;border:1px solid #cbd5e2;border-radius:6px}.work-shortcuts a:hover,.work-links a:hover{background:#f0f4f9}.work-shortcuts svg,.work-symbol svg{width:18px;height:18px;flex:none;color:var(--ui-secondary, #505b55)}
.work-register{padding:18px 22px 6px}.work-register>header{padding:0 0 10px}.work-register h2{font-size:20px}.work-resume,.work-links a{font-size:14px;font-weight:550;color:var(--ui-secondary, #505b55)}.work-register ul{list-style:none;margin:0;padding:0}.work-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(120px,auto);align-items:center;gap:16px;border-top:1px solid #e2e8ef;padding:10px 0;min-height:64px}.work-name{min-width:0;display:flex;align-items:center;gap:12px;color:var(--ink)}.work-name>span:last-child{min-width:0}.work-name strong,.work-name small{display:block}.work-name strong{font-size:15px;line-height:1.45}.work-name small{font-weight:400;font-size:13px;color:var(--muted);margin-top:2px}.work-symbol,.work-thumb{width:36px;height:44px;flex:none;border-radius:4px}.work-symbol{display:grid;place-items:center;background:#f4f6fa}.work-thumb{object-fit:contain;background:#202a35}.work-tag{color:#206446;background:#eaf5ef;border-radius:4px;padding:3px 6px;font-size:13px}.work-links{display:flex;justify-content:flex-end;gap:6px}.work-links a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:4px 8px;border:1px solid #d5dde7;border-radius:5px;white-space:nowrap}.work-blank{margin:6px 0 16px;color:var(--muted)}
/* One sheet per task. Only fields, pickers and actionable controls have enclosing borders. */
.office-studio,.cutting-room{background:#fff;border:1px solid var(--line);border-radius:10px;padding:clamp(18px,2vw,30px);gap:clamp(20px,2.6vw,38px)}
.office-studio>.office-compose,.office-studio>.office-preview,.cutting-room>.video-compose,.cutting-room>.screening{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.office-studio .office-preview>.notice{border:0;border-left:3px solid #b3bfcf;border-radius:0;padding:4px 8px;background:transparent}
.office-studio .office-preview .desk-paper,.office-studio .office-preview .paper-blank,.office-studio .office-preview .empty{padding:0;margin:16px 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.office-preview .desk-paper h3,.office-preview .paper-blank strong{font-size:17px;line-height:1.5}.office-preview .paper-blank p{margin:5px 0 0}.office-preview .desk-paper .paper-body{margin-top:9px}
.office-studio .reading-aid{border:0;padding:0;margin-top:24px;background:transparent}.reading-aid header{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}.reading-aid header strong{font-size:17px}.reading-aid dl{margin-bottom:6px}
.office-compose .office-reference{border:0;padding:0}.office-compose .task-tools button,.studio-steps button{background:transparent;border:0;color:var(--ui-link, #186b50);text-decoration:underline;text-underline-offset:4px;text-decoration-color:#b8c7d9}.office-compose .task-tools button:first-child{padding-left:0}
.cutting-room .product-settings,.cutting-room #clip-recipe,.cutting-room .campaign-combo,.cutting-room .voice-slot,.cutting-room [data-batch-picker]{border:0;background:transparent;box-shadow:none;border-radius:0;padding:0}.cutting-room #clip-recipe{margin-top:22px}.cutting-room .campaign-combo>summary{width:fit-content;border:1px solid #b5c4d7;border-radius:6px;padding:8px 12px;min-height:44px}
.cutting-room .screening video{border-radius:6px}.cutting-room .campaign-settings{gap:12px}.office-studio .office-reference summary{color:var(--ui-secondary, #505b55)}
@media(max-width:800px){.work-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.work-row{column-gap:8px}.office-studio,.cutting-room{padding:16px;gap:24px}}
@media(max-width:600px){.work-heading{align-items:start;gap:8px;margin:0 0 16px}.work-heading h1{font-size:25px}.work-heading p{font-size:14px;line-height:1.5}.work-heading>.btn{padding-inline:9px}.work-heading>.btn svg{width:14px}.work-stats>div{padding:10px 12px}.work-stats dd,.work-stats a{font-size:21px}.work-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:12px 0 16px}.work-shortcuts a{font-size:13px;line-height:1.4;min-height:44px;padding:4px 2px;text-align:center}.work-shortcuts svg{display:none}.work-register{padding:12px 12px 2px}.work-register>header{gap:8px;padding:0 0 5px}.work-resume,.work-links a{min-height:44px;align-content:center}.work-row{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:10px 0}.work-name{grid-column:1/-1;gap:8px}.work-name strong{font-size:14px}.work-status{padding-left:44px}.work-links a{padding-inline:7px}.office-studio,.cutting-room{padding:13px}.work-blank{font-size:14px}}
