/* Shared geometry, typography and components. Theme changes only presentation. */
.theme-toolbar{border-top:1px solid var(--line);background:inherit}
.theme-toolbar-inner{max-width:1560px;margin:auto;padding:5px 30px;display:flex;align-items:center;justify-content:flex-end;gap:12px}
.theme-label{font-size:11px;color:var(--muted)}
.theme-switch{display:flex;direction:ltr;gap:3px;border:1px solid var(--line);border-radius:8px;padding:3px;background:var(--bg)}
.theme-switch button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:29px;padding:3px 12px;border:0;border-radius:5px;background:transparent;color:var(--muted);font:600 12px Arial,sans-serif;cursor:pointer}
.theme-switch button.active{background:#fff;color:#18253d;box-shadow:0 1px 4px #18253d18}
.theme-switch img{width:17px;height:17px;object-fit:contain}
html[data-theme=dark]{--bg:#17191f;--ink:#f3f4f6;--muted:#abb4c3;--line:#373e48;--accent:#dfbb6a;--green:#dfbb6a;--surface:#24272e;--inset:#1d2026;color-scheme:dark}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] :is(.global-header,.site-footer,.mobile-nav,.price-band,.ticker-pause){background:#1d2026;border-color:var(--line);color:var(--muted)}
html[data-theme=dark] :is(.panel,.light-service,.light-metric,.mega-menu,.profile-menu,dialog,.service,.stat,.wallet-strip,.product-nav,.ecosystem-panel,.overview-card,.launcher-card,.deposit-address){background:var(--surface);border-color:var(--line);color:var(--ink);box-shadow:none}
html[data-theme=dark] :is(h1,h2,h3,.light-intro h1,.vector-wordmark,.top-link,.profile-trigger,.light-service strong,.light-metric strong,.light-footer-grid h3,.product-brand,.overview-label strong,.quick-field input,.quick-field output,.quick-field select){color:var(--ink)}
html[data-theme=dark] :is(.light-intro p,.light-greeting small,.light-greeting>span,.light-metric span,.light-service>span:last-child,.light-y,.light-dates,.swap-meta,.light-swap .swap-box>label,.installment-body small,.light-notice small,.light-shortcuts small,.dialog-top .eyebrow,.mega-services small,.trade-menu-grid small,.chart-y,.period-labels,.market-table th,.market-number small,.orders-empty,.wallet-equivalent,.quick-rate,.quick-fee,.notification-row small,.notification-row time,.deposit-address>span){color:var(--muted)}
html[data-theme=dark] :is(.light-head>a,.text-button,.top-link.active,.top-link:hover,.mobile-nav .nav-button.active,.light-trade,.outline-trade,.trade-shortcuts button,.favorite.on){color:var(--accent)}
html[data-theme=dark] :is(.mobile-nav .nav-button,.light-periods button){color:var(--muted)}
html[data-theme=dark] :is(.light-periods .selected,.light-market-tabs button.selected){color:var(--accent);border-bottom-color:var(--accent)}
html[data-theme=dark] .theme-switch button.active{background:#37332a;color:#f3cf80;box-shadow:inset 0 0 0 1px #7b6841}
html[data-theme=dark] .light-balance{background:linear-gradient(115deg,#292c33,#34332f);border-color:#65583d;color:#fff}
html[data-theme=dark] .balance-actions button{border-color:#75736c;color:#f3f4f6}
html[data-theme=dark] :is(.btn.primary,.balance-actions .gold-button,.wallet-actions button.primary){background:linear-gradient(135deg,#f3cf80,#d4ab52);border-color:#dfbb6a;color:#201d17;box-shadow:none}
html[data-theme=dark] :is(.btn:not(.primary),.light-trade,.outline-trade,.filter-fav){background:var(--inset);border-color:#60563e;color:#dfbb6a}
html[data-theme=dark] :is(input,select,textarea){background:var(--inset);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#9ba6b8}
html[data-theme=dark] :is(.global-search,.market-search,.swap-box,.light-swap .swap-box,.installment-body,.light-shortcuts button,.light-market-tabs button,.market-tabs button,.period-tabs button,.market-categories button,.orders-tabs button,.wallet-actions button,.support-actions button){background:var(--inset);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.global-search input,.market-search input,.light-swap .quick-field input,.light-swap .currency-select select,#newsletter-form input){background:transparent;color:var(--ink)}
html[data-theme=dark] option{background:var(--inset);color:var(--ink)}
html[data-theme=dark] :is(.light-swap .swap-reverse,.light-swap .currency-select){background:var(--surface);border-color:var(--line)}
html[data-theme=dark] :is(.market-tabs button.selected,.period-tabs button.selected,.market-categories button.selected,.orders-tabs button.selected,.filter-fav.selected){background:#3a3426;color:#f3cf80;border-color:#9d8147}
html[data-theme=dark] :is(.light-market th,.premium-market-table th,.open-orders th,thead){background:#2d323a;color:var(--muted)}
html[data-theme=dark] .light-market tr:nth-child(even){background:#21242b}
html[data-theme=dark] :is(td,.light-market td,.premium-market-table td,.market-table td,.open-orders td,.list-row,.light-notice,.notification-row,.light-footer-bottom,.ticker-item,.ticker-pause,#newsletter-form>div){border-color:var(--line)}
html[data-theme=dark] .light-service .exact-art{background:transparent}
html[data-theme=dark] :is(.light-service:hover,.service:hover){border-color:#b89751;box-shadow:0 4px 16px #0002}
html[data-theme=dark] :is(.mega-services a:hover,.trade-menu-grid button:hover,.ticker-pause:hover){background:#30343d}
html[data-theme=dark] .trade-menu-grid button{background:var(--surface);color:var(--ink)}
html[data-theme=dark] .positive{color:#55d6ae!important}
html[data-theme=dark] .negative{color:#f1828d!important}
html[data-theme=dark] :is(.change-badge,.status-pill){background:#183e35;color:#75dfbb}
html[data-theme=dark] .change-badge.down{background:#432932;color:#f794a1}
html[data-theme=dark] .change-badge.neutral{background:#333943;color:#bec6d2}
html[data-theme=dark] :is(.due-badge,.pending-chip){background:#493e26;color:#f3cf80}
html[data-theme=dark] .inline-error{background:#432932;color:#ffc1c7;border-color:#80505a}
html[data-theme=dark] .light-plot{background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(25% - 1px),#373c45 calc(25% - 1px),#373c45 25%),repeating-linear-gradient(to right,transparent 0,transparent calc(10% - 1px),#373c45 calc(10% - 1px),#373c45 10%)}
html[data-theme=dark] .price-chart{background:transparent;border-color:var(--line)}
html[data-theme=dark] .price-chart svg polyline{stroke:#dfbb6a}
html[data-theme=dark] .price-chart svg polygon{fill:#dfbb6a;fill-opacity:.12}
html[data-theme=dark] .price-chart svg path{stroke:#3a4049}
html[data-theme=dark] .plot-price{background:#dfbb6a;color:#201d17}
html[data-theme=dark] .donut{background:conic-gradient(#dfbb6a 0 52%,#9d834a 52% 70%,#56a692 70% 82%,#8c87b4 82% 92%,#74808e 92% 100%)}
html[data-theme=dark] .donut>div{background:var(--surface)}
html[data-theme=dark] .allocation-body li:nth-child(1) i{background:#dfbb6a!important}
html[data-theme=dark] .allocation-body li:nth-child(2) i{background:#9d834a!important}
html[data-theme=dark] .allocation-body li:nth-child(3) i{background:#56a692!important}
html[data-theme=dark] .allocation-body li:nth-child(4) i{background:#8c87b4!important}
html[data-theme=dark] .allocation-body li:nth-child(5) i{background:#74808e!important}
html[data-theme=dark] .art-banner{background:#24272e;border-color:var(--line)}
html[data-theme=dark] .banner-copy{background:linear-gradient(90deg,#24272ee8,#24272ee8 80%,#24272e00);color:#f3f4f6}
html[data-theme=dark] dialog::backdrop{background:#0009}
html[data-theme=dark] :is(button,a,input,select):focus-visible{outline-color:#f3cf80}
html[data-theme=dark] :is(.service,.product-page){--accent:#dfbb6a;--tint:#2d2c27}
html[data-theme=dark] :is(.field input,.field select,.filter-bar input,.filter-bar select,.swap-box select,.account-chip,.market-stat,.dialog-data,.dialog-top button,.list-icon,.filter-bar .tabs,.ownership-certificate,.certificate-preview,.gold-products>div){background:var(--inset);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.swap-box input,.swap-box output,.project-meta b,.funding-label>b,.date b){color:var(--ink)}
html[data-theme=dark] :is(.form-hint,.market-stat>span,.market-stat>small,.tabs button,.filter-bar label,td small,.table-note,.empty-state,.chart-label,.chart-label small,.chart-times,.market-legend,.book-head,.input-unit span,.swap-box label,.steps,.gold-products span,.ownership-certificate>span,.ownership-certificate p,.project-card>p:not(.subtext),.funding-label,.project-meta,.certificate-preview p,.nft-info>p,.loan-progress,.stat-label){color:var(--muted)}
html[data-theme=dark] :is(.tabs button.selected,.filter-bar .tabs button.selected,.nav-button.active){background:#3a3426;color:#f3cf80;border-color:#9d8147}
html[data-theme=dark] :is(.market-price,.ownership-certificate strong,.product-kicker){color:#dfbb6a}
html[data-theme=dark] :is(.installment,.risk){background:#493e26;color:#f3cf80}
html[data-theme=dark] :is(.success,.receipt-icon,.buy-btn){background:#183e35;color:#75dfbb;border-color:#305b4e}
html[data-theme=dark] :is(.sell-btn,.risk.high){background:#432932;color:#f794a1;border-color:#80505a}
html[data-theme=dark] .gold-button{background:linear-gradient(135deg,#f3cf80,#d4ab52)!important;border-color:#dfbb6a!important;color:#201d17}
html[data-theme=dark] .funding-progress{background:#3b3d47}
html[data-theme=dark] .price-chart svg polygon{opacity:1}
@media(max-width:560px){.theme-toolbar-inner{padding:4px 12px}.theme-switch button{min-height:30px;padding:3px 11px}}
