/* Presentation-only themes. Keep component geometry and semantic status colors intact. */
/* The original palette remains unchanged; these aliases style the new picker only. */
html[data-site-theme="original-purple"] {
    --theme-accent: var(--purple-700);
    --theme-border: var(--hairline-strong);
    --theme-soft: var(--purple-100);
}

html[data-site-theme="gold-3d"] {
    --surface-canvas: #f8f5ec;
    --surface-shell: #eee6d4;
    --surface-core: #fffefa;
    --surface-soft: #fbf7ec;
    --ink-strong: #33270f;
    --ink: #4c402b;
    --ink-muted: #75664c;
    --purple-900: #49300d;
    --purple-800: #624416;
    --purple-700: #78571d;
    --purple-600: #896629;
    --purple-100: #f3e8c9;
    --gold-500: #bf8e31;
    --gold-300: #ffe5a0;
    --hairline: rgba(107, 79, 28, .17);
    --hairline-strong: rgba(107, 79, 28, .28);
    --focus-ring: 0 0 0 3px rgba(143, 102, 26, .24);
    --shadow-ambient: 0 2px 3px rgba(75, 51, 13, .04), 0 10px 24px rgba(75, 51, 13, .08);
    --shadow-raised: 0 3px 5px rgba(75, 51, 13, .06), 0 15px 34px rgba(75, 51, 13, .13);
    --shadow-floating: 0 16px 36px rgba(75, 51, 13, .17), 0 3px 8px rgba(75, 51, 13, .08);
    --theme-action-bg: linear-gradient(165deg, #ffedb4 0%, #e8bd60 48%, #d4a33e 100%);
    --theme-action-hover: linear-gradient(165deg, #fff3ce 0%, #f0ca77 48%, #dcb04f 100%);
    --theme-action-text: #3b2809;
    --theme-action-border: #b18535;
    --theme-action-shadow: inset 0 1px 0 #fff7dc, inset 0 -2px 1px rgba(111, 71, 11, .17), 0 3px 2px rgba(119, 80, 17, .23), 0 7px 14px rgba(119, 80, 17, .16);
    --theme-action-pressed-shadow: inset 0 2px 4px rgba(97, 64, 12, .22), 0 1px 2px rgba(119, 80, 17, .12);
    --theme-accent: #78571d;
    --theme-border: #d9c8a0;
    --theme-soft: #f3e8c9;
    --theme-hero-bg: linear-gradient(135deg, #6b4b19, #382509);
    --theme-hero-text: #fff5d9;
    --theme-hero-muted: #e9d9b4;
    --theme-page-bg: radial-gradient(ellipse at 12% 0, rgba(217, 175, 77, .12), transparent 36rem), #f8f5ec;
    --theme-surface-highlight: inset 0 1px 0 rgba(255, 255, 255, .95);
}

html[data-site-theme="blue-minimal"] {
    --surface-canvas: #f4f7fb;
    --surface-shell: #e9f0f8;
    --surface-core: #ffffff;
    --surface-soft: #f5f8fc;
    --ink-strong: #132c47;
    --ink: #30465d;
    --ink-muted: #5d7085;
    --purple-900: #143d68;
    --purple-800: #174f89;
    --purple-700: #195fa6;
    --purple-600: #2370b5;
    --purple-100: #e7f0fb;
    --gold-500: #5197d6;
    --gold-300: #f1f7ff;
    --hairline: rgba(31, 77, 122, .14);
    --hairline-strong: rgba(31, 77, 122, .25);
    --focus-ring: 0 0 0 3px rgba(35, 112, 181, .2);
    --shadow-ambient: 0 0 0 transparent;
    --shadow-raised: 0 3px 12px rgba(27, 66, 107, .06);
    --shadow-floating: 0 10px 26px rgba(27, 66, 107, .13);
    --theme-action-bg: #175fa8;
    --theme-action-hover: #124d8b;
    --theme-action-text: #ffffff;
    --theme-action-border: #175fa8;
    --theme-action-shadow: none;
    --theme-action-pressed-shadow: inset 0 1px 3px rgba(9, 41, 78, .22);
    --theme-accent: #175fa8;
    --theme-border: #c9d8e8;
    --theme-soft: #e7f0fb;
    --theme-hero-bg: #174f89;
    --theme-hero-text: #ffffff;
    --theme-hero-muted: #d5e6f7;
    --theme-page-bg: #f4f7fb;
    --theme-surface-highlight: inset 0 0 0 transparent;
}

html[data-site-theme="red-grand"] {
    --surface-canvas: #faf5f3;
    --surface-shell: #f0e5e2;
    --surface-core: #fffdfb;
    --surface-soft: #fcf5f3;
    --ink-strong: #3b1b22;
    --ink: #55383d;
    --ink-muted: #806269;
    --purple-900: #60162a;
    --purple-800: #811e35;
    --purple-700: #a0253f;
    --purple-600: #b6324e;
    --purple-100: #f7e5e5;
    --gold-500: #bc914e;
    --gold-300: #ffe8b9;
    --hairline: rgba(110, 31, 49, .14);
    --hairline-strong: rgba(110, 31, 49, .25);
    --focus-ring: 0 0 0 3px rgba(160, 37, 63, .19);
    --shadow-ambient: 0 2px 4px rgba(80, 22, 34, .025), 0 9px 24px rgba(80, 22, 34, .065);
    --shadow-raised: 0 3px 6px rgba(80, 22, 34, .04), 0 16px 34px rgba(80, 22, 34, .1);
    --shadow-floating: 0 15px 34px rgba(80, 22, 34, .15), 0 3px 8px rgba(80, 22, 34, .05);
    --theme-action-bg: linear-gradient(150deg, #b52c48, #781a30);
    --theme-action-hover: linear-gradient(150deg, #a6243e, #641327);
    --theme-action-text: #fff5e7;
    --theme-action-border: #8a2037;
    --theme-action-shadow: inset 0 1px 0 rgba(255, 231, 201, .22), 0 5px 12px rgba(115, 24, 45, .15);
    --theme-action-pressed-shadow: inset 0 2px 4px rgba(56, 8, 20, .26);
    --theme-accent: #9d243e;
    --theme-border: #dfc6c6;
    --theme-soft: #f7e5e5;
    --theme-hero-bg: linear-gradient(130deg, #9c233c, #541327);
    --theme-hero-text: #fff2d9;
    --theme-hero-muted: #efd4d3;
    --theme-page-bg: radial-gradient(ellipse at 90% 0, rgba(174, 62, 78, .055), transparent 38rem), #faf5f3;
    --theme-surface-highlight: inset 0 1px 0 rgba(255, 255, 255, .85);
}

/* Older page families use these semantic names instead of the shared palette. */
html[data-site-theme]:not([data-site-theme="original-purple"]) {
    --theme-detail-accent: var(--purple-800);
    --theme-detail-soft: var(--surface-soft);
    --theme-detail-border: var(--hairline);
    --theme-detail-highlight: var(--purple-100);
    --text-primary: var(--ink-strong);
    --text-secondary: var(--ink-muted);
    --text-muted: var(--ink-muted);
    --muted: var(--ink-muted);
    --border-color: var(--theme-border);
    color-scheme: light;
    background: var(--surface-canvas);
    scrollbar-color: var(--theme-border) var(--surface-canvas);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) body,
html[data-site-theme]:not([data-site-theme="original-purple"]) .admin-layout {
    color: var(--ink);
    background: var(--theme-page-bg);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) ::selection {
    color: var(--ink-strong);
    background: var(--theme-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(input, textarea) {
    caret-color: var(--theme-accent);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(input[type="checkbox"], input[type="radio"], progress) {
    accent-color: var(--theme-accent);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.header-bar, .admin-sidebar) {
    border-color: var(--hairline);
    background: var(--surface-core);
    box-shadow: var(--theme-surface-highlight), var(--shadow-ambient);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .site-brand-link::before {
    border-color: var(--theme-border);
    background: var(--theme-accent);
    box-shadow: 0 0 0 3px var(--theme-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .user-nav-btn:hover {
    border-color: var(--theme-border);
    box-shadow: var(--shadow-ambient);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .online-time-nav-value {
    color: var(--theme-accent);
}

/* Generic actions exclude destructive, status, VIP and external payment brands. */
html[data-site-theme]:not([data-site-theme="original-purple"]) .btn:not(.btn-outline):not(.btn-secondary):not(.btn-vip):not(.header-vip-button):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-wechat):not(.btn-alipay):not(.btn-paypal):not([data-payment-brand]):not(.btn-disabled):not(:disabled):not([aria-disabled="true"]),
html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.download-primary, .download-alternatives > button, [data-wait-button], [data-retry]):not(:disabled):not([aria-disabled="true"]) {
    color: var(--theme-action-text);
    border-color: var(--theme-action-border);
    background: var(--theme-action-bg);
    box-shadow: var(--theme-action-shadow);
    text-shadow: none;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .btn:not(.btn-outline):not(.btn-secondary):not(.btn-vip):not(.header-vip-button):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-wechat):not(.btn-alipay):not(.btn-paypal):not([data-payment-brand]):not(.btn-disabled):not(:disabled):not([aria-disabled="true"]):hover,
html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.download-primary, .download-alternatives > button, [data-retry]):not(:disabled):not([aria-disabled="true"]):hover {
    color: var(--theme-action-text);
    background: var(--theme-action-hover);
    box-shadow: var(--theme-action-shadow);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .btn:not(.btn-outline):not(.btn-secondary):not(.btn-vip):not(.header-vip-button):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-wechat):not(.btn-alipay):not(.btn-paypal):not([data-payment-brand]):not(.btn-disabled):not(:disabled):not([aria-disabled="true"]):active {
    box-shadow: var(--theme-action-pressed-shadow);
}

/* These controls already declare important colors in legacy page styles. */
html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.btn-outline, .btn-secondary):not(:disabled):not(.btn-disabled) {
    color: var(--purple-800) !important;
    border-color: var(--hairline-strong) !important;
    background: var(--surface-core) !important;
    box-shadow: var(--theme-surface-highlight) !important;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.btn-outline, .btn-secondary):not(:disabled):not(.btn-disabled):hover {
    color: var(--purple-900) !important;
    border-color: var(--theme-border) !important;
    background: var(--theme-soft) !important;
    box-shadow: var(--shadow-ambient) !important;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.btn-back, .site-footer-home) {
    color: var(--purple-800);
    border-color: var(--theme-border);
    background: var(--surface-core);
    box-shadow: var(--shadow-ambient);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.btn-back, .site-footer-home):hover {
    color: var(--purple-900);
    border-color: var(--theme-accent);
    background: var(--theme-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.btn, .btn-back, .site-footer-home, .user-nav-btn):focus-visible {
    outline: 2px solid var(--theme-accent);
    outline-offset: 3px;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.catalog-page-tabs, .home-resource-tabs-row) {
    border-color: var(--hairline);
    background: var(--surface-shell);
    box-shadow: var(--theme-surface-highlight);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.catalog-page-tab, .home-resource-tab, .home-resource-link) {
    color: var(--ink-muted);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.catalog-page-tab, .home-resource-tab).is-active {
    color: var(--theme-action-text);
    background: var(--theme-action-bg);
    box-shadow: var(--theme-action-shadow);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.catalog-page-tab, .home-resource-tab).is-active::after {
    background: currentColor;
    opacity: .55;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.media-card, .view-pack-card, .download-page) {
    border-color: var(--hairline);
    box-shadow: var(--shadow-ambient);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .media-card:hover {
    border-color: var(--theme-border);
    box-shadow: var(--shadow-raised);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .media-card-core {
    box-shadow: var(--theme-surface-highlight);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.media-detail-link, .media-gallery-preview-link, .media-favorite-button, .card-points, .download-site) {
    color: var(--theme-accent);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.media-detail-link:hover, .media-favorite-button:hover, .media-favorite-button.is-active) {
    color: var(--theme-accent);
    border-color: var(--theme-border);
    background: var(--theme-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.media-favorite-button.is-active .media-favorite-heart, .user-menu-favorite-heart, .profile-favorite-heart) {
    color: var(--theme-accent);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.media-detail-link, .media-favorite-button):focus-visible {
    outline-color: var(--theme-accent);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.input-field, .catalog-inline-search-input, .market-input, .admin-domain-switch select) {
    color: var(--ink-strong);
    border-color: var(--theme-border);
    background: var(--surface-core);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.input-field, .catalog-inline-search-input, .market-input, .admin-domain-switch select):focus {
    border-color: var(--theme-accent);
    outline-color: var(--theme-accent);
    box-shadow: var(--focus-ring);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.input-field, .market-input, .chat-input)::placeholder {
    color: var(--ink-muted);
}

/* Login alternatives and the CAPTCHA frame share the selected palette. */
html[data-site-theme]:not([data-site-theme="original-purple"]) .auth-login-alternatives {
    border-color: var(--hairline);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .auth-login-alternatives a {
    color: var(--purple-800);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .auth-login-alternatives a:hover {
    background: var(--theme-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .auth-login-alternatives a:focus-visible {
    outline-color: var(--theme-accent);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .video-playback-captcha-image {
    border-color: var(--theme-border);
    background: var(--surface-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .video-playback-captcha-input:not(:disabled) {
    color: var(--ink-strong);
    border-color: var(--theme-border);
    background: var(--surface-core);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .video-playback-captcha-input:focus {
    border-color: var(--theme-accent);
    box-shadow: var(--focus-ring);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .video-playback-captcha-refresh {
    color: var(--purple-800);
    border-color: var(--theme-border);
    background: var(--surface-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .video-playback-captcha-refresh:hover:not(:disabled) {
    background: var(--theme-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .video-playback-captcha-submit {
    color: var(--theme-action-text);
    background: var(--theme-action-bg);
    box-shadow: var(--theme-action-shadow);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .video-playback-captcha-submit:hover:not(:disabled) {
    background: var(--theme-action-hover);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.video-playback-captcha-submit, .video-playback-captcha-refresh):focus-visible {
    outline: 2px solid var(--theme-accent);
    outline-offset: 3px;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .video-playback-captcha-submit:disabled {
    box-shadow: none;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.search-history-tag, .catalog-inline-search-input):hover {
    border-color: var(--theme-border);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .search-history-tag:hover {
    box-shadow: var(--shadow-ambient);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.c-pg-btn, .c-pg-num, .c-pg-input, .c-pg-go) {
    color: var(--purple-800) !important;
    background: var(--surface-core) !important;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.c-pg-num.active, .c-pg-go) {
    color: var(--theme-action-text) !important;
    background: var(--theme-action-bg) !important;
    box-shadow: var(--theme-action-shadow) !important;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.c-pg-btn, .c-pg-num):hover:not(.disabled):not(.active) {
    background: var(--theme-soft) !important;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .c-pg-btn.disabled {
    color: var(--ink-muted) !important;
    background: var(--surface-shell) !important;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .c-pg-input:focus {
    border-color: var(--theme-accent) !important;
    outline-color: var(--theme-accent) !important;
}

/* Resource detail/gallery and member pages retain their existing white content areas. */
html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.view-gallery-header, .growth-page-heading, .profile-online-grid > div, .growth-progress-panel, .download-history-details > div) {
    border-color: var(--hairline);
    background: var(--surface-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.view-gallery-header h1, .growth-page-heading h1, .profile-online-grid strong, .growth-progress-title strong, .profile-online-head h2, .growth-card h2, .profile-online-reward-copy > strong, .profile-online-reward-stats strong, .profile-online-rules summary) {
    color: var(--purple-800);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.view-gallery-header p, .growth-page-heading p, .profile-online-grid span, .profile-online-reward-copy p, .profile-online-reward-stats span, .profile-online-reward-action small, .profile-online-rules, .growth-panel-rules, .growth-progress-panel p) {
    color: var(--ink-muted);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.profile-online-reward, .growth-progress-panel .growth-panel-vip-rule) {
    color: var(--purple-800);
    border-color: var(--theme-border);
    background: var(--surface-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.growth-checkin-total, .growth-panel-vip-rules) {
    border-color: var(--hairline);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .growth-progress-bar:not(.gold) {
    background: var(--surface-shell);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .growth-progress-bar:not(.gold) span {
    background: var(--theme-action-bg);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .card.growth-invite-card,
html[data-site-theme]:not([data-site-theme="original-purple"]) .card.growth-invite-card:hover,
html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.downloads-history-hero, .favorite-history-hero, .points-history-hero) {
    color: var(--theme-hero-text);
    border-color: var(--hairline-strong);
    background: var(--theme-hero-bg);
    box-shadow: var(--shadow-ambient);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .growth-invite-card h2 {
    color: var(--theme-hero-text);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .growth-copy-row .input-field {
    color: var(--ink-strong);
    border-color: var(--theme-border);
    background: var(--surface-core);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .growth-copy-row .input-field:focus {
    border-color: var(--theme-accent);
    box-shadow: var(--focus-ring);
}

/* Market and chat maintain their independent component styles through aliases. */
html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-catalog, .market-page, .market-admin) {
    --market-ink: var(--ink-strong);
    --market-muted: var(--ink-muted);
    --market-purple: var(--purple-800);
    --market-accent: var(--theme-accent);
    --market-gold: var(--gold-500);
    --market-line: var(--hairline);
    color: var(--ink-strong);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.chat-room, .chat-admin) {
    --chat-ink: var(--ink-strong);
    --chat-muted: var(--ink-muted);
    --chat-purple: var(--purple-800);
    --chat-line: var(--hairline);
    --chat-surface: var(--surface-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .market-button:not(.is-secondary):not(.is-danger):not(:disabled),
html[data-site-theme]:not([data-site-theme="original-purple"]) .market-catalog-toolbar .market-catalog-header .market-button:not(.is-secondary):not(:disabled) {
    color: var(--theme-action-text) !important;
    border-color: var(--theme-action-border);
    background: var(--theme-action-bg);
    box-shadow: var(--theme-action-shadow);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .market-button:not(.is-secondary):not(.is-danger):not(:disabled):hover,
html[data-site-theme]:not([data-site-theme="original-purple"]) .market-catalog-toolbar .market-catalog-header .market-button:not(.is-secondary):not(:disabled):hover {
    background: var(--theme-action-hover);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .market-button.is-secondary,
html[data-site-theme]:not([data-site-theme="original-purple"]) .market-catalog-toolbar .market-catalog-header .market-button.is-secondary {
    color: var(--purple-800) !important;
    border-color: var(--theme-border);
    background: var(--surface-core);
    box-shadow: none;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .market-button.is-secondary:hover,
html[data-site-theme]:not([data-site-theme="original-purple"]) .market-catalog-toolbar .market-catalog-header .market-button.is-secondary:hover {
    background: var(--theme-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-nav a, .market-account-menu, .market-workspace-header .market-account-links a, .market-catalog .market-catalog-tabs a) {
    color: var(--ink-muted);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-nav a.is-active, .market-nav a:hover, .market-account-links a:hover, .market-account-links a[aria-current="page"], .market-account-menu > summary:hover, .market-account-menu[open] > summary, .market-account-menu.is-active > summary, .market-catalog .market-catalog-tabs a.is-active, .market-catalog .market-catalog-tabs a:hover) {
    color: var(--purple-800);
    background: var(--theme-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-workspace-header, .market-card, .market-panel, .market-detail-info, .market-account-links, .chat-room, .chat-composer, .download-page) {
    border-color: var(--hairline);
    background: var(--surface-core);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-card, .market-panel) {
    box-shadow: var(--shadow-ambient);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .market-card-image {
    background: var(--surface-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .market-catalog .market-card:hover {
    border-color: var(--theme-border);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-chat-preview, .market-wallet, .market-home-actions .market-account-menu > summary, .chat-message.is-own, .chat-own, .chat-selection, .chat-resource-card:hover) {
    border-color: var(--theme-border);
    background: var(--surface-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-chat-preview-heading h2, .market-chat-join, .market-chat-preview-name, .market-catalog .market-catalog-detail, .market-catalog .market-catalog-heading > .market-catalog-icon, .market-catalog .market-catalog-amount strong, .market-card-foot strong, .market-card-foot a) {
    color: var(--purple-800);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-price, .market-back) {
    color: var(--theme-accent);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-chat-preview-messages a, .market-catalog .market-catalog-title a, .market-card h2 a) {
    color: var(--ink-strong);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-muted, .market-chat-preview-messages time, .market-chat-preview-empty, .market-catalog .market-catalog-intro p, .market-catalog .market-catalog-amount > span, .market-catalog .market-catalog-amount small, .market-catalog .market-catalog-own, .market-catalog .market-catalog-help) {
    color: var(--ink-muted);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-catalog .market-catalog-count, .market-empty) {
    color: var(--purple-800);
    background: var(--theme-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-page, .market-admin, .chat-room, .chat-admin, .football-page) :is(a, button, input, textarea, select, summary):focus-visible {
    outline-color: var(--theme-accent);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.market-page, .chat-room, .chat-admin) ::selection {
    color: var(--ink-strong);
    background: var(--theme-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .chat-stream {
    scrollbar-color: var(--theme-border) var(--surface-soft);
}

/* Admin component palettes: financial/status badges deliberately keep their own colors. */
html[data-site-theme]:not([data-site-theme="original-purple"]) .admin-nav-group.is-active {
    border-color: var(--hairline);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.admin-nav-group-title, .admin-nav-group-title::after, .admin-user-audit-table th) {
    color: var(--ink-muted);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .admin-user-audit-section-heading {
    background: var(--surface-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .admin-user-audit-stat {
    background: var(--surface-core);
    box-shadow: var(--shadow-ambient);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .admin-user-audit-table tbody tr:hover {
    background: var(--surface-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .admin-body .admin-main [data-admin-tone="primary"]:not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-wechat):not(.btn-alipay):not(.btn-paypal):not([data-payment-brand]) {
    color: var(--theme-action-text) !important;
    border-color: var(--theme-action-border) !important;
    background: var(--theme-action-bg) !important;
    box-shadow: var(--theme-action-shadow);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .admin-body .admin-main [data-admin-tone="primary"]:not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-wechat):not(.btn-alipay):not(.btn-paypal):not([data-payment-brand]):hover:not(:disabled) {
    background: var(--theme-action-hover) !important;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) .admin-body .admin-main [data-admin-tone="primary"]:disabled {
    color: #777 !important;
    border-color: #ddd !important;
    background: #eee !important;
    box-shadow: none;
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.torrent-page-tabs, .legacy-orders-tabs, .proxy-admin-tabs, .payment-state-tabs) {
    border-color: var(--hairline);
    background: var(--surface-soft);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.torrent-page-tabs, .legacy-orders-tabs, .proxy-admin-tabs, .payment-state-tabs) a {
    color: var(--purple-800);
}

html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.torrent-page-tabs, .legacy-orders-tabs, .proxy-admin-tabs, .payment-state-tabs) a.active {
    color: var(--theme-action-text);
    background: var(--theme-action-bg);
    box-shadow: var(--theme-action-shadow);
}

/* A quiet blue theme also removes inherited decorative lift and metallic highlights. */
html[data-site-theme="blue-minimal"] :is(.media-card, .btn, .user-nav-btn, .search-history-tag):hover {
    transform: none;
}

html[data-site-theme="blue-minimal"] :is(.card:not(.media-card), .media-card, .media-card-core, .header-bar, .search-container, .admin-sidebar, .market-card) {
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    html[data-site-theme]:not([data-site-theme="original-purple"]) :is(.btn, .media-card, .user-nav-btn, .search-history-tag) {
        transition: none;
    }
}
