/* Blue-toned ink green / 蓝调墨绿. Accent text and filled controls have separate contrast roles.
   Legacy gold/brass token names remain aliases for older components. */
:root[data-brand="jade"] {
  color-scheme: dark;
  --brand-core: #123e42;
  --brand-bg: #07090a;
  --brand-panel: #101416;
  --brand-panel-alt: #171c1f;
  --brand-text: #f7f3ea;
  --brand-muted: #a1adae;
  --brand-line: rgba(161, 173, 174, .22);
  --brand-accent: #82b7ba;
  --brand-accent-rgb: 130, 183, 186;
  --brand-button: #326d72;
  --brand-button-hover: #3c7b80;
  --brand-on-button: #fff;
  --brand-soft: #183a3e;
  --brand-on-photo: #82b7ba;
  --sheet-accent: #123e42;
  --catalogue-brand-accent: #82b7ba;
  --catalogue-brand-line: #62888b;
  --arena-bg: var(--brand-bg);
  --arena-panel: var(--brand-panel);
  --arena-panel-2: var(--brand-panel-alt);
  --arena-text: var(--brand-text);
  --arena-muted: var(--brand-muted);
  --arena-line: var(--brand-line);
  --arena-line-hot: rgba(var(--brand-accent-rgb), .65);
  --arena-accent-rgb: var(--brand-accent-rgb);
  --arena-gold: var(--brand-accent);
  --arena-gold-deep: var(--brand-button);
  --arena-gold-fill: var(--brand-button);
  --arena-on-gold: var(--brand-on-button);
  --arena-live: #83ccd4;
  --arena-live-surface: #102b31;
  --arena-live-ink: #83ccd4;
  --arena-live-fill: #83ccd4;
  --arena-on-live: #07100b;
  --arena-on-warning: #171512;
  --ink: var(--brand-bg);
  --plum: var(--brand-panel);
  --plum-soft: var(--brand-panel-alt);
  --ivory: var(--brand-text);
  --ivory-dim: var(--brand-muted);
  --paper: var(--brand-text);
  --brass: var(--brand-accent);
  --brass-bright: var(--brand-accent);
  --wine: var(--brand-button);
}
:root[data-brand="jade"][data-theme="light"] {
  color-scheme: light;
  --brand-bg: #f3f0e9;
  --brand-panel: #fffdf9;
  --brand-panel-alt: #f6f3ec;
  --brand-text: #171512;
  --brand-muted: #606c6e;
  --brand-line: rgba(18, 62, 66, .18);
  --brand-accent: #123e42;
  --brand-accent-rgb: 18, 62, 66;
  --brand-button: #123e42;
  --brand-button-hover: #1b565b;
  --brand-soft: #e1ecec;
  --arena-live: #176f79;
  --arena-live-surface: #e4f1f2;
  --arena-live-ink: #176f79;
  --arena-live-fill: #176f79;
  --arena-on-live: #fff;
  --arena-on-warning: #fff;
}
:root[data-brand="jade"] .arena-brand-mark,
:root[data-brand="jade"] .brand-mark { background: var(--brand-core); filter: none; }
:root[data-brand="jade"] .home-stage-copy .arena-eyebrow { color: var(--brand-on-photo); }
:root[data-brand="jade"] .home-slide-art .home-slide-copy strong span { color: var(--brand-on-photo); }
:root[data-brand="jade"] .home-slide-art.is-hammer img { background: #030b0c; }
:root[data-brand="jade"] .surface-public .button-primary {
  background: var(--brand-button); border-color: var(--brand-button); color: var(--brand-on-button);
}
:root[data-brand="jade"] .surface-public :is(.button-primary,.arena-action-primary,.bid-onetap,#bid-submit,.sr-bid-btn,.sr-slide-confirm,.profile-button-primary):hover {
  background: var(--brand-button-hover); color: var(--brand-on-button); filter: none;
}
:root[data-brand="jade"] .route-live .fair-warning { color: var(--arena-on-warning); }

/* Account and consignor sheets define local palettes after the shared head. */
:root[data-brand="jade"] body.route-account {
  --account-bg: var(--brand-bg);
  --account-surface: var(--brand-panel);
  --account-soft: var(--brand-panel-alt);
  --account-ink: var(--brand-text);
  --account-muted: var(--brand-muted);
  --account-line: var(--brand-line);
  --account-accent: var(--brand-accent);
  --account-accent-bg: var(--brand-soft);
  --account-on-accent: var(--brand-on-button);
  --arena-line-hot: rgba(var(--brand-accent-rgb), .65);
  --arena-gold-fill: var(--brand-button);
}
:root[data-brand="jade"] .route-account .account-hub .profile-button-primary {
  background: var(--brand-button); border-color: var(--brand-button); color: var(--brand-on-button);
}
:root[data-brand="jade"] .route-account .account-hub .profile-button-primary:hover {
  background: var(--brand-button-hover); filter: none;
}
:root[data-brand="jade"] body:has(.consignor-workspace) { background: var(--brand-bg); }
:root[data-brand="jade"] body .consignor-workspace {
  --cp-bg: var(--brand-panel); --cp-soft: var(--brand-panel-alt);
  --cp-ink: var(--brand-text); --cp-muted: var(--brand-muted); --cp-line: var(--brand-line);
  --cp-accent: var(--brand-accent); --cp-on-accent: var(--brand-on-button);
}
:root[data-brand="jade"] .consignor-button.is-primary { background: var(--brand-button); border-color: var(--brand-button); }
:root[data-brand="jade"] .consignor-button.is-primary:hover { background: var(--brand-button-hover); }
:root[data-brand="jade"] body .seller-flow {
  --sf-border: var(--brand-line); --sf-paper: var(--brand-panel); --sf-ink: var(--brand-text);
  --sf-muted: var(--brand-muted); --sf-accent: var(--brand-accent);
}
:root[data-brand="jade"] .seller-flow .seller-primary { background: var(--brand-button); border-color: var(--brand-button); }
:root[data-brand="jade"] .seller-flow .seller-primary:hover { background: var(--brand-button-hover); filter: none; }
:root[data-brand="jade"] .seller-steps b { color: var(--brand-accent); }
:root[data-brand="jade"] .seller-notice { border-left-color: var(--brand-accent); }
:root[data-brand="jade"] .seller-flow :focus-visible { outline-color: var(--brand-accent); }
:root[data-brand="jade"] .bid-form-result.is-info { color: var(--brand-accent); }
:root[data-brand="jade"] .invoice-sheet :is(.status,.kicker,.invoice-label,.invoice-table th) { color: #123e42; }
:root[data-brand="jade"] .invoice-title-block .kicker::before { background: #123e42; }
:root[data-brand="jade"] :is(.invoice-payment,.sheet-payment) { border-left-color: #123e42; background: #e1ecec; }

/* Office controls keep their existing light workspace and semantic statuses. */
:root[data-brand="jade"] .console .btn-primary,
:root[data-brand="jade"] .sheet-btn-primary { background: var(--brand-core); border-color: var(--brand-core); color: #fff; }
:root[data-brand="jade"] .console .btn-primary:hover,
:root[data-brand="jade"] .sheet-btn-primary:hover { background: #1b565b; }
:root[data-brand="jade"] .side-link.is-active::before,
:root[data-brand="jade"] .dock-link.is-active::after { background: var(--brand-core); }
:root[data-brand="jade"] .sidebar[data-nav-preferences] :is(.side-link,.nav-group-toggle):focus-visible { outline-color: #82b7ba; }
:root[data-brand="jade"] .aw { --aw-accent: #123e42; --aw-accent-soft: #e1ecec; }
:root[data-brand="jade"] .aw .aw-catalogue-studio { border-color: #62888b; }
:root[data-brand="jade"] .aw :is(.aw-catalogue-studio .aw-kicker,.aw-catalogue-mini span) { color: #82b7ba; }
:root[data-brand="jade"] .aw .aw-catalogue-studio .aw-button { background: #326d72; border-color: #82b7ba; color: #fff; }
:root[data-brand="jade"] .aw .aw-catalogue-mini { background-image: url('/assets/catalogue/collectors-frame-blue-ink-v1.png'); }

/* The printed catalogue always uses its dark editorial cover. */
:root[data-brand="jade"] .catalogue-body { --catalogue-gold: #82b7ba; --catalogue-line: #3e5b5e; }
:root[data-brand="jade"] :is(.catalogue-edition,.catalogue-section-number,.catalogue-index strong) { color: #82b7ba; }
:root[data-brand="jade"] :is(.catalogue-cover-meta,.catalogue-section-head) { border-color: #62888b; }
:root[data-brand="jade"] .catalogue-toolbar .sheet-btn { background: #326d72; border-color: #82b7ba; color: #fff; }
:root[data-brand="jade"] .catalogue-toolbar .sheet-btn:hover { background: #3c7b80; }
:root[data-brand="jade"] .catalogue-photo-toggle.is-selected { background: #183a3e; }
