/* Round2 two-mode palette: gold/white in light mode, gold/black in dark. */
:root,
html[data-theme="light"],
html:not([data-theme="dark"]) {
  color-scheme: light;
  --ink: #171717;
  --muted: #565656;
  --line: #ead9a0;
  --paper: #fff;
  --canvas: #ffffff;
  --surface: #fff;
  --surface-alt: #fff8d8;
  --soft-green: #fff8d8;
  --green: #d4af37;
  --green-dark: #7d6210;
  --orange: #a17e12;
  --blue: #fff7da;
  --yellow: #d4af37;
  --ds-yellow: #d4af37;
  --ds-green: #d4af37;
  --ds-orange: #a17e12;
  --street-accent: #d4af37;
  --street-accent-ink: #7d6210;
  --street-on-accent: #171717;
  --street-secondary: #d4af37;
  --street-tertiary: #a17e12;
  --street-soft: #fff8d8;
  --accent: #d4af37;
  --accent-strong: #7d6210;
  --accent-ink: #7d6210;
  --bg: #fff;
  --page: #fff;
  --panel: #ffffff;
  --focus-ring: #7d6210;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #d4af37;
  --muted: #f0d980;
  --line: #5c4b1a;
  --paper: #080808;
  --canvas: #000;
  --surface: #080808;
  --surface-alt: #111;
  --soft-green: #211b0b;
  --green: #d4af37;
  --green-dark: #b8941f;
  --orange: #d4af37;
  --blue: #d4af37;
  --yellow: #d4af37;
  --ds-yellow: #d4af37;
  --ds-green: #d4af37;
  --ds-orange: #d4af37;
  --street-accent: #d4af37;
  --street-accent-ink: #d4af37;
  --street-on-accent: #080808;
  --street-secondary: #d4af37;
  --street-tertiary: #d4af37;
  --street-soft: #211b0b;
  --accent: #d4af37;
  --accent-strong: #d4af37;
  --accent-ink: #d4af37;
  --bg: #000;
  --page: #000;
  --panel: #080808;
  --focus-ring: #d4af37;
}

body,
.main-area,
.site-header,
.legal-header,
.legal-footer,
.topbar,
.page-wrap,
.legal-main,
.plan-grid article,
.price-card,
.companion-card,
.modal {
  background-color: var(--canvas) !important;
  color: var(--ink);
}

.panel,
.card,
.stat-card,
.table-panel,
.store-product,
.modal,
.account-card,
.member-result-card,
.sg-platform,
.sg-result,
.legal-status,
.plan-coming,
.note,
.companion-card {
  background-color: var(--paper) !important;
  border-color: var(--line) !important;
}

.button-primary,
.button-lime,
.action,
.access-action,
.campaign-stamp,
.skip-link,
.skip,
.action-yellow,
.button-yellow,
.category-pill.active,
.filter-chip.selected,
.theme-toggle,
.theme-switch,
.theme-button,
.plan-grid article.featured,
.price-card.is-featured,
.payment-note,
.account-card .auth-submit {
  background-color: var(--yellow) !important;
  border-color: var(--yellow) !important;
  color: var(--street-on-accent) !important;
}

html:not([data-theme="dark"]) :is(.button-primary, .button-lime, .action, .access-action, .campaign-stamp, .skip-link, .skip, .action-yellow, .button-yellow,
  .category-pill.active, .filter-chip.selected, .plan-grid article.featured, .price-card.is-featured,
  .payment-note, .account-card .auth-submit) {
  color: #171717 !important;
}

html:not([data-theme="dark"]) :is(.help-card, .category-emoji, .stat-icon, .sales-kpi,
  .device-icon, .security-icon, .role-avatar, .role-tag, .insight-hero, .recommendation,
  .rec-dot, .code-box, .summary-chip, .filter-chip, .member-channel-row,
  .member-recommendation, .sg-recommendation, .research-note, .pill-green, .pill-blue,
  .pill-orange, .pill-grey) {
  background-color: var(--surface-alt) !important;
  color: var(--ink) !important;
}

html:not([data-theme="dark"]) :is(.online, .trend, .freshness b, .status-dot, .status-dot.orange,
  .status-dot.blue, .stock-low, .resale-signal-status, .recommendation *, .insight-hero *, .role-tag *) {
  color: var(--accent-strong) !important;
}

html:not([data-theme="dark"]) .shop-hero:after {
  background: radial-gradient(circle at 36% 34%, #fff 0 12%, #fff7da 13% 35%, #d4af37 36% 37%, #fff 38% 61%, #fff7da 62%);
}

.pill-green,
.pill-blue,
.pill-orange,
.pill-grey,
.online,
.status-dot,
.status-dot.orange,
.status-dot.blue,
.marketplace-vinted,
.marketplace-depop,
.marketplace-ebay,
.risk-badge,
.demand-badge {
  background-color: var(--surface-alt) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

.brand-dot,
.public-brand span,
.wordmark span,
.legal-brand span,
.shop-kicker,
.shop-hero h1 i,
.member-section-heading .op-kicker,
.op-kicker,
.nav-icon,
.text-button,
.link-accent {
  color: var(--accent-strong) !important;
}

html[data-theme="dark"] body { color: var(--ink); }

html[data-theme="dark"] body,
html[data-theme="dark"] .main-area,
html[data-theme="dark"] .shop-nav .main-area,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .table-panel,
html[data-theme="dark"] .store-product,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .member-result-card,
html[data-theme="dark"] .sg-platform,
html[data-theme="dark"] .legal-main,
html[data-theme="dark"] .legal-status,
html[data-theme="dark"] .plan-grid article,
html[data-theme="dark"] .companion-card,
html[data-theme="dark"] .modal {
  background-color: #080808 !important;
  color: var(--ink);
}

html[data-theme="dark"] p,
html[data-theme="dark"] small,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .page-subtitle,
html[data-theme="dark"] .panel-desc,
html[data-theme="dark"] .crumb,
html[data-theme="dark"] .legal-lede,
html[data-theme="dark"] .legal-copy p,
html[data-theme="dark"] .legal-copy li,
html[data-theme="dark"] .companion-copy {
  color: var(--muted) !important;
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .legal-header,
html[data-theme="dark"] .legal-footer,
html[data-theme="dark"] .plan-footer,
html[data-theme="dark"] .sidebar .workspace-switch,
html[data-theme="dark"] .sidebar .help-card,
html[data-theme="dark"] .sidebar .nav-link.active {
  background-color: #000 !important;
}

html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .button-lime,
html[data-theme="dark"] .action,
html[data-theme="dark"] .access-action,
html[data-theme="dark"] .campaign-stamp,
html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .skip,
html[data-theme="dark"] .action-yellow,
html[data-theme="dark"] .button-yellow,
html[data-theme="dark"] .category-pill.active,
html[data-theme="dark"] .filter-chip.selected,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .theme-switch,
html[data-theme="dark"] .theme-button,
html[data-theme="dark"] .plan-grid article.featured,
html[data-theme="dark"] .price-card.is-featured,
html[data-theme="dark"] .payment-note,
html[data-theme="dark"] .account-card .auth-submit {
  background-color: #d4af37 !important;
  border-color: #d4af37 !important;
  color: #080808 !important;
}

html[data-theme="dark"] a,
html[data-theme="dark"] button,
html[data-theme="dark"] label,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .brand,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .crumb b {
  color: var(--ink);
}

html[data-theme="dark"] :is(input, select, textarea) {
  background-color: #080808 !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

html[data-theme="dark"] :is(button, .button, .workspace-switch, .range-select, .date-pill,
  .search-box, .summary-chip, .filter-chip, .category-pill, .member-channel-row,
  .research-note, .insight-hero, .recommendation, .role-tag, .help-card, .category-emoji,
  .stat-icon, .sales-kpi, .device-icon, .security-icon, .role-avatar, .code-box,
  .pill-green, .pill-blue, .pill-orange, .pill-grey, .online, .resale-signal-status) {
  background-color: #080808 !important;
  color: var(--ink) !important;
}

html[data-theme="dark"] :is(.brand-mark, .nav-badge, .button-primary, .button-lime,
  .action, .access-action, .campaign-stamp, .skip-link, .skip, .action-yellow, .button-yellow, .category-pill.active, .filter-chip.selected,
  .plan-grid article.featured, .price-card.is-featured, .payment-note,
  .account-card .auth-submit, .member-save-state, .status-pill) {
  background-color: var(--yellow) !important;
  color: #080808 !important;
}

html[data-theme="dark"] .shop-hero:after {
  background: radial-gradient(circle at 36% 34%, #080808 0 12%, #111 13% 35%, #d4af37 36% 37%, #080808 38% 61%, #211b0b 62%);
}

html[data-theme="dark"] :is(.toast, .pc-hero, .opportunity-card, .shop-hero, .campaign-note) {
  background-color: #080808 !important;
  border-color: var(--yellow) !important;
  color: var(--yellow) !important;
}

html:not([data-theme="dark"]) :is(.sidebar, .topbar, .site-header, .legal-header, .legal-footer, .plan-footer) {
  background-color: #fff !important;
}

html:not([data-theme="dark"]) :is(.panel, .card, .stat-card, .table-panel, .store-product, .account-card, .member-result-card, .sg-platform, .sg-result, .companion-card, .modal) {
  background-color: #fff !important;
}

html:not([data-theme="dark"]) :is(.toast, .pc-hero, .opportunity-card, .shop-hero, .campaign-note) {
  background-color: #fff8d8 !important;
  border-color: #d4af37 !important;
  color: #171717 !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.companion-card h1 i { color: var(--accent-strong) !important; }
.companion-body .agent-status,
.companion-body .request-result { background-color: var(--surface-alt) !important; border-color: var(--line) !important; color: var(--ink) !important; }
.companion-body .pairing-result { border-color: var(--yellow) !important; }
.companion-body .request-result { border-left-color: var(--yellow) !important; }
html[data-theme="dark"] .companion-body { --soft: var(--surface-alt); --soft-orange: #211b0b; }

/* The home area tiles use intentional contrast by surface, not one forced ink color. */
.creative-area-grid .market-art { color: #fff !important; }
.creative-area-grid .market-art > span { color: #fff !important; }
.creative-area-grid .market-art > i { color: #171717 !important; }
.creative-area-grid .art-seal,
.creative-area-grid .member-ticket { color: #171717 !important; }
.creative-area-grid .research-art,
.creative-area-grid .research-art > span,
.creative-area-grid .research-art > i { color: #171717 !important; }
.creative-area-grid .tools-art,
.creative-area-grid .tools-art > span,
.creative-area-grid .tools-art > i,
.creative-area-grid .tools-art > b { color: #f0d34e !important; }
.creative-area-grid .area h3 > span { width: 44px; height: 44px; border-width: 1px; }
.creative-area-grid .area-market h3 > span {
  background: var(--paper) !important; color: var(--ink) !important; border-color: var(--line) !important;
}
.creative-area-grid :is(.area-research, .area-plans) h3 > span {
  background: var(--yellow) !important; color: #171717 !important; border-color: var(--yellow) !important;
}
html:not([data-theme="dark"]) .creative-area-grid .area-tools h3 > span {
  background: #171717 !important; color: #fff !important; border-color: #171717 !important;
}
html[data-theme="dark"] .creative-area-grid .area-tools h3 > span {
  background: var(--yellow) !important; color: #080808 !important; border-color: var(--yellow) !important;
}
