/* Appearance is separate from the seller's brand/accent theme. */
:root{--ui-bg:#101012;--ui-surface:#19191c;--ui-subtle:#17171a;--ui-input:#111114;--ui-soft:#291820;--ui-line:#363138;--ui-text:#f5f3f2;--ui-muted:#aaa8ad;--ui-accent-text:#ff8396;color-scheme:dark;}
:root[data-color-mode="light"]{--ui-bg:#f6f3f5;--ui-surface:#fff;--ui-subtle:#faf7f9;--ui-input:#fcf9fb;--ui-soft:#fff0f3;--ui-line:#e5dce2;--ui-text:#291e27;--ui-muted:#766b74;--ui-accent-text:#b7233a;color-scheme:light;}
html[data-color-mode] body{--bg-primary:var(--ui-bg);--bg-secondary:var(--ui-subtle);--bg-main:var(--ui-bg);--bg-canvas:var(--ui-bg);--bg-panel:var(--ui-subtle);--bg-card:var(--ui-surface);--bg-card-hover:var(--ui-subtle);--bg-input:var(--ui-input);--text-primary:var(--ui-text);--text-secondary:var(--ui-muted);--text-muted:var(--ui-muted);--border-color:var(--ui-line);background:var(--ui-bg);color:var(--ui-text);}
.color-mode-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 12px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-surface);color:var(--ui-text);font:inherit;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;}
.color-mode-toggle:hover{border-color:var(--ui-accent-text);}
.color-mode-toggle:focus-visible{outline:2px solid var(--ui-accent-text);outline-offset:3px;}
body>.color-mode-toggle{position:fixed;right:18px;top:18px;z-index:100;}
html[data-color-mode] .hyper-workspace :is(.glass-card,.glass-panel,.account-navigation,.account-pane,.sidebar,.top-bar,.stat-card,.section-card,.modal-box):not(#modal-checkout *):not(.support-shell){background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-text);}
html[data-color-mode] :is(.inferno-header,.storefront-header,.sidebar,.top-bar){background:var(--ui-subtle)!important;border-color:var(--ui-line)!important;}
html[data-color-mode] .hyper-workspace :is(input,select,textarea):not(#modal-checkout *):not([type="checkbox"]):not([type="radio"]){background:var(--ui-input);color:var(--ui-text);border-color:var(--ui-line);}
html[data-color-mode="light"] .hyper-workspace :is(.hero-section,.product-card,.storefront-hero,.section-layout,.section-navigation,.section-nav,.account-navigation,.status-grid>*,.wallet-card-balance-box):not(#modal-checkout *){background:var(--ui-surface)!important;border-color:var(--ui-line)!important;color:var(--ui-text);}
html[data-color-mode="light"] .hyper-workspace :is(.brand-text,.nav-link,.hero-title,.product-title,h1,h2,h3,h4,.section-title,.logo,.nav-item,.sound-toggle,.btn-secondary,.account-navigation button):not(#modal-checkout *){color:var(--ui-text);}
html[data-color-mode="light"] .hyper-workspace :is(.hero-subtitle,.product-description,.section-description,.stat-label,.text-muted):not(#modal-checkout *){color:var(--ui-muted)!important;}
html[data-color-mode="light"] .hyper-workspace :is(th,td,.table-container,table,.plan-btn):not(#modal-checkout *){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line);}
html[data-color-mode] :is(.hyper-document,.hyper-form,.hyper-verification){--docs-bg:var(--ui-bg);--docs-card:var(--ui-surface);--docs-border:var(--ui-line);--docs-muted:var(--ui-muted);--docs-code-bg:var(--ui-input);--form-bg:var(--ui-bg);--form-card:var(--ui-surface);--form-border:var(--ui-line);--form-muted:var(--ui-muted);--bg:var(--ui-bg);--card-bg:var(--ui-surface);--card-border:var(--ui-line);background:var(--ui-bg);color:var(--ui-text);}
html[data-color-mode] :is(.docs-navbar,.docs-sidebar,.docs-title-header,.docs-body,.docs-toc-sidebar,.form-card-container,.hyper-verification .info-row){background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-text);}
/* Checkout retains its own light/red palette regardless of appearance. */
#modal-checkout{color-scheme:light;--text-primary:#172033;--text-secondary:#657185;--text-muted:#768195;--border-color:#eed6dd;}
html[data-color-mode] .hyper-workspace.seller-panel :is(.workspace-card,.project-card,.header,.restore-page-header,.restore-header-wrap,.workspace-topbar,.section-navigation,.table-header,.styled-table th){background:var(--ui-surface)!important;border-color:var(--ui-line)!important;color:var(--ui-text);}
html[data-color-mode] .hyper-workspace.seller-panel :is(input,select,textarea){background:var(--ui-input)!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important;}
html[data-color-mode] .hyper-workspace.seller-panel :is(.header p,label,.section-navigation button,.section-navigation p,.nav-item,.workspace-topbar a){color:var(--ui-muted);}
html[data-color-mode] .hyper-workspace.seller-panel :is(.nav-item.active,.section-navigation button:hover){background:var(--ui-soft);color:var(--ui-accent-text);}
html[data-color-mode] .hyper-workspace.seller-panel .styled-table tbody tr:hover{background:var(--ui-subtle);}
html[data-color-mode] .hyper-workspace.seller-panel :is(.btn-secondary,.restore-stat-card,.restore-terminal-box,.restore-nav-tabs,.login-box,.modal-content){background:var(--ui-surface)!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important;}
html[data-color-mode="light"] .hyper-workspace :is(.nav-tab-btn,.workspace-eyebrow,.user-menu-btn,.wallet-widget,.product-price,.hero-console){color:var(--ui-text);}
html[data-color-mode="light"] .hyper-workspace #modal-auth :is(.modal-box,.plan-selector){background:var(--ui-surface);border-color:var(--ui-line);}
html[data-color-mode="light"] .hyper-workspace :is(.price-amount,.nav-wallet-val,.wallet-balance-amount):not(#modal-checkout *){color:var(--ui-text)!important;}
/* Header has two real rows; display:contents used to place controls over navigation. */
.hyper-workspace .header-inner{display:flex;flex-direction:column;align-items:stretch;gap:0;}
.hyper-workspace .header-top-row{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;}
.hyper-workspace .user-menu-area{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;min-width:0;}
.hyper-workspace .nav-tabs{display:flex;flex-wrap:wrap;width:100%;min-width:0;}
html[data-color-mode] .hyper-workspace.seller-panel{--accent-primary:#e60023;--accent-hover:#ff7e91;--accent-glow:rgba(230,0,35,.25);--accent-subtle:rgba(230,0,35,.1);}
html[data-color-mode] .hyper-workspace.seller-panel :is(.section-navigation button,.section-navigation p,.workspace-eyebrow,.workspace-topbar b,.workspace-topbar a,.sound-toggle){color:var(--ui-muted);border-color:var(--ui-line);}
html[data-color-mode] .hyper-workspace.seller-panel .restore-stat-card.card-blue::before{background:var(--accent-primary);box-shadow:none;}
html[data-color-mode] .hyper-workspace.seller-panel .terminal-tag.tag-info{background:var(--ui-soft);color:var(--ui-accent-text);}
html[data-color-mode] .hyper-workspace.seller-panel .seller-discord-badge{background:var(--ui-subtle);border-color:var(--ui-line);color:var(--ui-muted);}
