@font-face{font-family:CatBrand;src:url('EngraversMT-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--ch-accent:#416f8d;--ch-bg:#f4f7fa;--ch-card:#fff;--ch-text:#293d4c;--ch-muted:#617380;--ch-line:#dce5ec;--ch-tint:#eaf1f7;--ch-title:inherit}
:root[data-theme=graphite]{--ch-accent:#58616b;--ch-bg:#f4f4f5;--ch-tint:#eceef0}
:root[data-theme=green]{--ch-accent:#416f55;--ch-bg:#f3f7f3;--ch-tint:#eaf2ec}
:root[data-theme=purple]{--ch-accent:#755b92;--ch-bg:#f7f5f9;--ch-tint:#f0ebf5}
:root[data-theme=sand]{--ch-accent:#806033;--ch-bg:#f8f5ef;--ch-card:#fffdf9;--ch-tint:#f3ecdf}
:root[data-theme=night]{--ch-accent:#95bad9;--ch-bg:#17212b;--ch-card:#222f3b;--ch-text:#e2eaf1;--ch-muted:#aabaca;--ch-line:#425360;--ch-tint:#2c4052}
:root[data-style=classic]{--ch-title:Georgia,'Songti SC',serif}
:root[data-style=editorial]{--ch-title:'Baskerville','Songti SC',serif}
:root[data-style=print]{--ch-title:'Courier New','Songti SC',serif}
body.next-admin.backstage-workbench-r1{background:var(--ch-bg);color:var(--ch-text)}
body.next-admin.backstage-workbench-r1 :is(h1,h2,h3){font-family:var(--ch-title);color:var(--ch-text)}
body.next-admin.backstage-workbench-r1 .bc-brand-name,.login-brand{font-family:CatBrand,Georgia,serif!important;font-size:14px!important;line-height:20px!important}
body.next-admin.backstage-workbench-r1 :is(.bc-sidebar,.store-card,.next-paper,.next-media-panel,.theme-settings,.login-card,.wb-order-card){background:var(--ch-card);border-color:var(--ch-line);color:var(--ch-text)}
body.next-admin.backstage-workbench-r1 :is(input,textarea,select,button){color:var(--ch-text);background-color:var(--ch-card);border-color:var(--ch-line)}
body.next-admin.backstage-workbench-r1 :is(button.primary,.store-button.primary){background:var(--ch-accent);border-color:var(--ch-accent);color:var(--ch-card)}
body.next-admin.backstage-workbench-r1 .bc-navigation a[aria-current=page]{background:var(--ch-tint);color:var(--ch-accent)}
.theme-settings{padding:28px;border:1px solid var(--ch-line);border-radius:10px}.theme-choices{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 30px}.theme-choices button{display:flex;align-items:center;gap:10px;padding:12px 20px!important}.theme-choices button span{width:18px;height:18px;border-radius:50%}.theme-choices button[aria-pressed=true]{outline:2px solid var(--ch-accent);outline-offset:2px}.theme-specimen{padding:28px;background:var(--ch-bg);border:1px solid var(--ch-line);border-radius:8px;line-height:1.8}.theme-specimen h2{font-size:28px!important}
body.next-admin.backstage-workbench-r1 .cathome-login{width:min(440px,100%);box-sizing:border-box;margin:7vh auto;padding:40px;border:1px solid var(--ch-line);border-radius:12px;box-shadow:0 16px 60px #1e354014}
.cathome-login .login-logo{width:68px;height:68px;object-fit:contain}.cathome-login h1{font-size:26px!important;line-height:1.4}.cathome-login>p{line-height:1.8}.cathome-login form{display:grid;gap:20px;margin-top:28px}.cathome-login label{display:grid;gap:8px}.cathome-login input{box-sizing:border-box;width:100%;padding:12px 14px;min-height:46px}.cathome-login button{min-height:46px}.cathome-login .error{padding:12px;background:#fff0ed;color:#a14335;border-radius:6px}

body.next-admin.backstage-workbench-r1 .bc-brand-name{font-size:11px!important;line-height:12px!important}body.next-admin.backstage-workbench-r1 .bc-brand-name>span{display:block}body.next-admin.backstage-workbench-r1 .bc-brand-copy{height:40px;gap:2px}body.next-admin.backstage-workbench-r1 .bc-brand-copy small{line-height:12px;font-size:10px}

body.next-admin.backstage-workbench-r1 :is(.next-overview>a,.next-shortcuts>a,.next-overview-panel,.account-panel,.account-purchase,.record-stat-card,.record-card,.bc-page-tile,.next-product-properties>section,.next-product-properties>details,.site-copy-block){background-color:var(--ch-card);color:var(--ch-text);border-color:var(--ch-line)}
body.next-admin.backstage-workbench-r1 :is(.admin-muted,.account-muted,.site-copy-block>label){color:var(--ch-muted)}
html[data-theme=night] body.next-admin.backstage-workbench-r1 :is(.spec-highlight-card,.manuscript-heading,.detail-render-panel,.spec-highlight-specs,.detail-render-empty,.file-section,.record-vault-content,.site-maintenance-editor,.next-product-commandbar,.bc-site-commandbar,.login-card,.theme-specimen){background-color:var(--ch-card)!important;color:var(--ch-text)!important;border-color:var(--ch-line)!important}
html[data-theme=night] body.next-admin.backstage-workbench-r1 :is(.bc-navigation a,.next-shortcuts strong,.next-overview strong,.next-overview span,.next-recent-row,.account-field,.site-maintenance-bar a,.bc-brand){color:var(--ch-text)}
html[data-style=editorial] body.next-admin.backstage-workbench-r1 :is(.admin-title h1,.theme-specimen h2){font-weight:500;letter-spacing:-.025em}
html[data-style=print] body.next-admin.backstage-workbench-r1 :is(.admin-title h1,.theme-specimen h2){letter-spacing:.04em}

/* Shared theme surfaces: legacy module colours must not override the palette. */
:root{--ch-on-accent:#fff;--ch-ui:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC',sans-serif}
:root[data-theme=graphite]{--ch-card:#fdfdfd;--ch-line:#dcdfe2}
:root[data-theme=green]{--ch-card:#fbfdfb;--ch-line:#d8e5dc}
:root[data-theme=purple]{--ch-card:#fdfbff;--ch-line:#e3ddeb}
:root[data-theme=sand]{--ch-line:#e7dfd1}
:root[data-theme=night]{color-scheme:dark;--ch-on-accent:#17212b}
:root[data-style=modern]{--ch-title:var(--ch-ui)}
body.next-admin.backstage-workbench-r1{--bc-bg:var(--ch-bg);--bc-surface:var(--ch-card);--bc-text:var(--ch-text);--bc-muted:var(--ch-muted);--bc-border:var(--ch-line);--bc-accent:var(--ch-accent);--next-line:var(--ch-line);--line:var(--ch-line);--ink:var(--ch-text);background:var(--ch-bg)!important;color:var(--ch-text)}
body.next-admin.backstage-workbench-r1 .bc-sidebar{background:var(--ch-bg)!important;border-color:var(--ch-line);font-family:var(--ch-title,var(--ch-ui))}
body.next-admin.backstage-workbench-r1 .bc-navigation a{color:var(--ch-text);font-family:inherit}
body.next-admin.backstage-workbench-r1 .bc-navigation a:hover{background:var(--ch-tint);color:var(--ch-accent)}
body.next-admin.backstage-workbench-r1 .bc-navigation a[aria-current=page]{background:var(--ch-tint);color:var(--ch-accent);box-shadow:inset 3px 0 var(--ch-accent)}
body.next-admin.backstage-workbench-r1 :is(.bc-nav-label,.bc-brand small){color:var(--ch-muted)}
body.next-admin.backstage-workbench-r1 .bc-brand{color:var(--ch-text)}
body.next-admin.backstage-workbench-r1 .bc-sidebar .admin-nav-logout{font-family:inherit;background:transparent;color:var(--ch-muted)}
body.next-admin.backstage-workbench-r1 :is(.email-admin-card,.payment-admin-section,.app-release-section,.detail-panel,.order-detail-panel,.template-edit-card,.files-card,.events-card,.retention-card,.status-control-card,.spec-highlight-card,.download-event-panel,.record-summary-card,.template-managed-group,.rules-panel,.account-panel,.email-template-card,.coupon-card,.app-release-card,.template-library-item,.filters,.template-library-filters,.template-download-filters,.account-filters,.analytics-card,.analytics-metrics article,.tools-library,.tools-detail,.catalog-tools,.catalog-card,.next-content-block,.next-product-commandbar,.bc-site-commandbar,.theme-settings,.bc-edit-card>form,.bc-edit-card>section){background:var(--ch-card)!important;color:var(--ch-text)!important;border-color:var(--ch-line)!important}
body.next-admin.backstage-workbench-r1 :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select,#product-title){background:var(--ch-card)!important;color:var(--ch-text)!important;border-color:var(--ch-line)!important;caret-color:var(--ch-accent)}
body.next-admin.backstage-workbench-r1 :is(.primary,.email-save-button){background:var(--ch-accent)!important;border-color:var(--ch-accent)!important;color:var(--ch-on-accent)!important}
body.next-admin.backstage-workbench-r1 .theme-settings{box-sizing:border-box;min-width:0;width:100%;padding:clamp(20px,3vw,32px);overflow-wrap:anywhere}
body.next-admin.backstage-workbench-r1 .theme-specimen{box-sizing:border-box;min-width:0;max-width:100%;background:var(--ch-bg)!important;color:var(--ch-text)!important;border-color:var(--ch-line)!important}
body.next-admin.backstage-workbench-r1 .theme-settings .store-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 0!important;padding:0;align-items:center}
body.next-admin.backstage-workbench-r1 .theme-settings #theme-feedback{margin:12px 0 0;min-height:1.5em;color:var(--ch-muted)}
body.next-admin.backstage-workbench-r1 .theme-choices button[aria-pressed=true]{outline:0;border-color:var(--ch-accent)!important;background:var(--ch-tint)!important;color:var(--ch-accent)!important}
body.next-admin.backstage-workbench-r1 .theme-choices button:focus-visible{outline:2px solid var(--ch-accent);outline-offset:3px}
html[data-theme] body.next-admin.backstage-workbench-r1 button:where(:not(.primary):not(.danger):not(.danger-button):not(.email-save-button):not([role=tab]):not([data-theme-choice]):not([data-style-choice]):not(.site-slot-upload):not(.media-open):not([data-image-slot])){color:var(--ch-text)!important;background-color:var(--ch-card)!important;border-color:var(--ch-line)!important}
body.next-admin.backstage-workbench-r1 .theme-choices button{background:var(--ch-card)!important;color:var(--ch-text)!important;border-color:var(--ch-line)!important}
body.next-admin.backstage-workbench-r1 .theme-choices button[aria-pressed=true]{background:var(--ch-tint)!important;color:var(--ch-accent)!important;border-color:var(--ch-accent)!important}
body.next-admin.backstage-workbench-r1 :is(.analytics-metrics strong,.analytics-card-heading h2,.payment-plan-group h3,.payment-plan-scope,.bc-edit-card summary,.account-field,.detail-fact-grid strong,.record-stat-card strong){color:var(--ch-text)}
body.next-admin.backstage-workbench-r1 :is(.analytics-metrics span,.analytics-metrics small,.payment-help,.bc-edit-label,.account-field-label){color:var(--ch-muted)}
html[data-theme] body.next-admin.backstage-workbench-r1 .bc-sidebar .admin-nav-logout{background:transparent!important;color:var(--ch-muted)!important;border:0!important}

/* Theme typography covers interface copy, data, filters and form controls. */
:root{--ch-font:var(--ch-ui)}
:root[data-style=classic],:root[data-style=editorial],:root[data-style=print]{--ch-font:var(--ch-title)}
html[data-style] body.next-admin.backstage-workbench-r1,
html[data-style] body.next-admin.backstage-workbench-r1 :where(.bc-main,.bc-sidebar),
html[data-style] body.next-admin.backstage-workbench-r1 :where(.bc-main,.bc-sidebar) :where(*):not(:where(svg,svg *,pre,pre *,code,code *,[contenteditable],[contenteditable] *,.next-content-block,.next-content-block *,#next-preview-content,#next-preview-content *,.word-document,.word-document *)){font-family:var(--ch-font)!important}
html[data-style] body.next-admin.backstage-workbench-r1 :is(.bc-brand-name,.bc-brand-name *,.login-brand){font-family:CatBrand,Georgia,serif!important}
html[data-style] body.next-admin.backstage-workbench-r1 :is(input,textarea)::placeholder{font-family:inherit}

/* Status colours retain meaning across palettes; night uses brighter equivalents. */
:root{--ch-success:#287549;--ch-info:#286ba7;--ch-attention:#b24242;--ch-track:#e3e9ed}
:root[data-theme=night]{--ch-success:#75c996;--ch-info:#82b6ec;--ch-attention:#f09595;--ch-track:#425360}
body.next-admin.backstage-workbench-r1 .next-status-bar{--status-color:var(--ch-muted);color:var(--ch-text)}
body.next-admin.backstage-workbench-r1 .next-status-bar[data-status="已完成订单"],body.next-admin.backstage-workbench-r1 .next-status-bar[data-status="已制作完成"]{--status-color:var(--ch-success)}
body.next-admin.backstage-workbench-r1 .next-status-bar[data-status="已确认，待生产"]{--status-color:var(--ch-info)}
body.next-admin.backstage-workbench-r1 .next-status-bar[data-status="待管理员确认文件"],body.next-admin.backstage-workbench-r1 .next-status-bar[data-status="待补件"]{--status-color:var(--ch-attention)}
body.next-admin.backstage-workbench-r1 .status-distribution-track{display:block;height:6px;margin:12px 0 20px;background:var(--ch-track);border-radius:3px;overflow:hidden}
body.next-admin.backstage-workbench-r1 .status-distribution-track>i{display:block;height:100%;background:var(--status-color)}
/* Shared navigation and data surfaces, including legacy active-state colours. */
body.next-admin.backstage-workbench-r1 :is(.status-filter-card,.wb-order-preview,.account-facts>div,.detail-fact-grid>div,.catalog-properties,.template-download-summary a){background:var(--ch-card)!important;border-color:var(--ch-line)!important;color:var(--ch-text)!important}
body.next-admin.backstage-workbench-r1 :is(.status-filter-card.is-active,.time-filter-link.is-active,.analytics-range a.is-active){background:var(--ch-tint)!important;border-color:var(--ch-accent)!important;color:var(--ch-accent)!important}
body.next-admin.backstage-workbench-r1 :is(.status-filter-card strong,.status-filter-card span,.time-filter-link,.wb-preview-caption,.wb-order-customer p,.wb-order-code,.catalog-card-title,.catalog-properties strong){color:var(--ch-text)!important}
body.next-admin.backstage-workbench-r1 :is(.status-filter-card.is-active strong,.status-filter-card.is-active span){color:var(--ch-accent)!important;background:transparent!important}
body.next-admin.backstage-workbench-r1 :is(.catalog-workbench,.account-workbench,.tools-workbench){--cw-text:var(--ch-text);--cw-muted:var(--ch-muted);--cw-line:var(--ch-line);--cw-blue:var(--ch-accent);--next-ink:var(--ch-text);--next-muted:var(--ch-muted);--next-blue:var(--ch-accent)}
:root{--ch-danger-bg:#fff1ef;--ch-danger:#a13d3d}
:root[data-theme=night]{--ch-danger-bg:#3b272b;--ch-danger:#f4aaaa}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(a.secondary,.payment-create-form,.template-upload-card,.email-status-card,.changelog-section,.real-editor-inspector,.tools-file-control,.tools-confirm){background:var(--ch-card)!important;border-color:var(--ch-line)!important;color:var(--ch-text)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.payment-fixed-meta,.payment-empty,.template-upload-progress,.email-variable-list,.email-log-labels,.real-editor-stage,.site-selected-image,.store-crop-viewport,.site-visual-stage,.tools-icon-frame,.tools-package,.tools-list-item){background:var(--ch-bg)!important;border-color:var(--ch-line)!important;color:var(--ch-text)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.payment-plan-scope,.record-section-help,.bc-store-status,.catalog-preview-note,.tools-message,details>summary b){background:var(--ch-tint)!important;color:var(--ch-text)!important;border-color:var(--ch-line)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 .template-upload-progress-track{background:var(--ch-track)}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.danger,.danger-button,.catalog-error,.admin-error,.delete-order-zone button,.retention-card button){background:var(--ch-danger-bg)!important;color:var(--ch-danger)!important;border-color:var(--ch-danger)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.next-media-actions,.next-library-card,.image-lightbox-dialog,.file-column,.detail-operation-form,.security-action-grid form,.related-order-list>a){background:var(--ch-card)!important;border-color:var(--ch-line)!important;color:var(--ch-text)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.next-library-card>a,.bc-drop-zone,.bc-device-switch){background:var(--ch-bg)!important;border-color:var(--ch-line)!important;color:var(--ch-text)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(a.back,.detail-back-link,strong.status-badge){background:var(--ch-tint)!important;color:var(--ch-accent)!important;border-color:var(--ch-line)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 .delete-order-zone{background:var(--ch-danger-bg)!important;color:var(--ch-danger)!important;border-color:var(--ch-danger)!important}
:root{--ch-module-purple-bg:#f0ebf5;--ch-module-purple:#755b92;--ch-module-green-bg:#eaf2ec;--ch-module-green:#416f55;--ch-module-warm-bg:#f3ecdf;--ch-module-warm:#806033;--ch-module-rose-bg:#f7edf1;--ch-module-rose:#92566f}
:root[data-theme=night]{--ch-module-purple-bg:#382e46;--ch-module-purple:#c9b1ed;--ch-module-green-bg:#253e31;--ch-module-green:#9dd9b2;--ch-module-warm-bg:#413625;--ch-module-warm:#e6c391;--ch-module-rose-bg:#432d37;--ch-module-rose:#e5b2c8}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.bc-page-symbol,.shortcut-icon,.site-symbol){background:var(--ch-tint)!important;color:var(--ch-accent)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.bc-page-symbol-records,.shortcut-records,.site-maintenance-index>a:nth-child(3n) .site-symbol){background:var(--ch-module-purple-bg)!important;color:var(--ch-module-purple)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.bc-page-symbol-cart,.site-maintenance-index>a:nth-child(3n+1) .site-symbol){background:var(--ch-module-green-bg)!important;color:var(--ch-module-green)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.bc-page-symbol-custom,.shortcut-custom){background:var(--ch-module-warm-bg)!important;color:var(--ch-module-warm)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 .bc-page-symbol-account{background:var(--ch-module-rose-bg)!important;color:var(--ch-module-rose)!important}
/* UI copy inherits theme ink rather than module-specific fixed grey/green. */
html[data-theme] body.next-admin.backstage-workbench-r1 :where(.bc-main,.bc-sidebar) :is(p,span,small,dt,dd,label,legend,summary,h1,h2,h3,h4,h5,h6,strong,b,em,time,a):not(:where([contenteditable],[contenteditable] *,.next-content-block,.next-content-block *,svg,svg *,pre,pre *,code,code *)){color:var(--ch-text)}
html[data-theme] body.next-admin.backstage-workbench-r1 :where(.bc-main,.bc-sidebar) :is(small,dt,time,.admin-muted,.bc-section-label,.tools-help,.email-help,.template-mapping-note){color:var(--ch-muted)}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(button.primary,a.primary) :is(span,strong){color:inherit!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.payment-state,.template-state,.record-status,.detail-status,.email-state,.audit-result,.audit-pill,.payment-order-status,.status,.order-kind,.tools-state,.bc-pill){background:var(--ch-tint)!important;color:var(--ch-info)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.record-status,.detail-status,.email-state,.payment-state,.template-state,.audit-result,.audit-pill,.payment-order-status):is(.is-active,.is-live,.is-enabled,.is-success,.is-fulfilled){background:var(--ch-module-green-bg)!important;color:var(--ch-success)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.record-status,.detail-status,.email-state,.payment-state,.template-state,.audit-result,.audit-pill):is(.is-off,.is-revoked,.is-error,.is-failed){background:var(--ch-danger-bg)!important;color:var(--ch-danger)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.record-status.is-expired,.detail-status.is-expired,.audio-list-status.is-blank,.next-used,.email-log-result.is-not_configured){background:var(--ch-module-warm-bg)!important;color:var(--ch-module-warm)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.bc-section-label,#next-product-status,.spec-empty,.template-upload-card p:not(.eyebrow),.template-upload-progress p){color:var(--ch-muted)!important}
html[data-theme] body.next-admin.backstage-workbench-r1 .license-duration-options label input:checked+span{background:var(--ch-tint)!important;color:var(--ch-accent)!important;border-color:var(--ch-accent)!important;box-shadow:none!important;border-radius:4px!important}

/* Compact option labels and counters share the same palette as their panels. */
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.payment-choice-option span,.license-duration-options span,.license-tools label span,.detail-choice label span){background:var(--ch-card)!important;color:var(--ch-text)!important;border-color:var(--ch-line)!important;border-radius:4px!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.payment-choice-option,.license-tools label,.detail-choice label) input:checked+span{background:var(--ch-tint)!important;color:var(--ch-accent)!important;border-color:var(--ch-accent)!important;box-shadow:none!important}
html[data-theme] body.next-admin.backstage-workbench-r1 :is(.template-managed-group-heading>span,.template-sort-number,.paid-order-summary-count,.payment-provider-badge,.spec-highlight-head>span,.catalog-status-tabs button span){background:var(--ch-tint)!important;color:var(--ch-accent)!important}
