/* Market Analytics v0.4.25.9 — unified Geography of Sales violet brand system.
   Dark is the default; the existing accessible light-mode toggle is retained.
   Financial success/warning/error colors intentionally remain semantic. */
:root {
  --brand:#7847dc;
  --brand-hover:#8b53f1;
  --brand-deep:#6532c5;
  --brand-soft:#f0eafe;
  --brand-ring:rgba(139,83,241,.25);
  --blue:#7847dc;
  --blue-soft:#f0eafe;
  --purple:#7847dc;
  --shadow:0 8px 28px rgba(33,23,65,.06);
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#0e1325;
  --surface:#1a2036;
  --text:#eff0fb;
  --muted:#aab4d0;
  --border:#353e5c;
  --brand:#a779fa;
  --brand-hover:#be98ff;
  --brand-deep:#8550e5;
  --brand-soft:#302645;
  --brand-ring:rgba(163,110,252,.27);
  --blue:#a779fa;
  --blue-soft:#302645;
  --purple:#a779fa;
  --shadow:0 9px 28px rgba(5,8,22,.25);
}
/* Application chrome: dashboard, admin and account match the Geography page. */
:root[data-theme="dark"] body:not(.privacy-page) {
  background:radial-gradient(ellipse 75% 45% at 51% -24%,#2a205c68,transparent),#0e1325;
}
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .admin-sidebar {
  background:linear-gradient(165deg,#191a34,#151a2d 55%,#11172a)!important;
  border-right:1px solid #303752;
}
:root[data-theme="dark"] .topbar {
  background:#141a2dc9;
  border-color:#323a55;
  backdrop-filter:blur(8px);
}
:root[data-theme="dark"] .page-content,
:root[data-theme="dark"] .admin-content {color:#edf0fa}
:root[data-theme="dark"] .kpi-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .admin-panel,
:root[data-theme="dark"] .admin-stat,
:root[data-theme="dark"] .account-card {
  background:linear-gradient(145deg,#1c233b,#181e34);
  border:1px solid #37405e;
  border-radius:14px;
  box-shadow:0 8px 24px #060a1926;
}
:root[data-theme="dark"] .workspace-switch,
:root[data-theme="dark"] .user-profile,
:root[data-theme="dark"] .admin-update-workspace,
:root[data-theme="dark"] .admin-update-status,
:root[data-theme="dark"] .admin-update-drop-panel {
  border-color:#3b4465;
}
:root[data-theme="dark"] .workspace-avatar,
:root[data-theme="dark"] .user-avatar,
:root[data-theme="dark"] .top-user,
:root[data-theme="dark"] .admin-icon,
:root[data-theme="dark"] .orders-top-icon {
  background:#392953;
  color:#d4b8ff;
}
.brand-mark,
:root[data-theme="dark"] .brand-mark,
.geo-mark,
.logo-mark,
.footer-brand-mark {
  background:linear-gradient(145deg,#a16cf9,#6339c6);
  color:white;
  box-shadow:0 5px 19px rgba(126,77,231,.28);
}
:root[data-theme="dark"] .nav-link,
:root[data-theme="dark"] .market-link {color:#c3c6de}
:root[data-theme="dark"] .nav-link:hover,
:root[data-theme="dark"] .market-link:hover {background:#292644;color:#fff}
.nav-link.active,
:root[data-theme="dark"] .nav-link.active,
:root[data-theme="dark"] .market-link.active {
  background:linear-gradient(110deg,#6b3dc2,#4f318c);
  color:#fff;
  box-shadow:0 5px 16px rgba(100,53,186,.25);
}
:root[data-theme="dark"] .nav-link.active>span {color:#f4eaff}
:root[data-theme="dark"] .nav-caption,
:root[data-theme="dark"] .breadcrumbs,
:root[data-theme="dark"] .eyebrow {color:#aaa6d4}
:root[data-theme="dark"] .page-heading h1,
:root[data-theme="dark"] .admin-section-heading h1,
:root[data-theme="dark"] .admin-section-heading h2 {color:#f7f3ff}
:root[data-theme="dark"] .sidebar-bottom,
:root[data-theme="dark"] .footer,
:root[data-theme="dark"] .admin-footer {border-color:#333b57;color:#a4adca}
.primary-button,
:root[data-theme="dark"] .primary-button,
:root[data-theme="dark"] .admin-primary-action {
  background:linear-gradient(115deg,#965df0,#6c3fca);
  border-color:#8c60ed;
  color:#fff;
  box-shadow:0 5px 16px #4c2b9f35;
}
.primary-button:hover,
:root[data-theme="dark"] .primary-button:hover {background:linear-gradient(115deg,#a675fa,#794dd9)}
:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .theme-toggle {
  background:#242c47;
  border:1px solid #465273;
  color:#d8d4f0;
}
:root[data-theme="dark"] .secondary-button:hover,
:root[data-theme="dark"] .theme-toggle:hover {background:#30294e;border-color:#8b61dc}
:root[data-theme="dark"] .segmented-control,
:root[data-theme="dark"] .auth-tabs {background:#171c30;border:1px solid #363b5a}
:root[data-theme="dark"] .segment,
:root[data-theme="dark"] .auth-tab {color:#c2bcd8}
:root[data-theme="dark"] .segment.active,
:root[data-theme="dark"] .auth-tab.active {
  background:linear-gradient(100deg,#7343ce,#52328d);
  color:#fff;
  border-color:#885bf1;
  box-shadow:0 4px 14px #331b7861;
}
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background:#141b2f;
  color:#eaf0fd;
  border-color:#465171;
}
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .account-card input {background:#111a2d!important;color:#edf2ff!important;border-color:#4a5277!important}
:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] textarea:focus {border-color:#af83ff!important;box-shadow:0 0 0 3px var(--brand-ring)!important}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {color:#8d99b6}
:root[data-theme="dark"] thead th {background:#252841;color:#c7c4e0;border-color:#3d4567}
:root[data-theme="dark"] tbody td {border-color:#343e5a;color:#d5d6e8}
:root[data-theme="dark"] .combined-products-table th:last-child {background:#252841;box-shadow:-1px 0 0 #465075}
:root[data-theme="dark"] .combined-products-table td:last-child {background:#1a2036;box-shadow:-1px 0 0 #465075}
:root[data-theme="dark"] .progress-track,
:root[data-theme="dark"] .orders-progress,
:root[data-theme="dark"] .expense-track {background:#37405b}
:root[data-theme="dark"] .revenue-dot,
:root[data-theme="dark"] .kpi-icon.blue {background:#392953;color:#d4b8ff}
:root[data-theme="dark"] .account-page {background:radial-gradient(circle at 15% 6%,#322155 0,transparent 38%),#0e1325}
:root[data-theme="dark"] .account-card,
:root[data-theme="dark"] .account-card .field {color:#e6e4f7}
:root[data-theme="dark"] .account-card .form-hint,
:root[data-theme="dark"] .account-disclaimer {color:#aab2ca}
:root[data-theme="dark"] .admin-back,
:root[data-theme="dark"] .admin-note a,
:root[data-theme="dark"] .admin-section a:not(.nav-link):not(.secondary-button):not(.primary-button) {color:#bea0ff}
:root[data-theme="dark"] .admin-stat>strong {color:#f4efff}
:root[data-theme="dark"] .admin-version-pill,
:root[data-theme="dark"] .admin-chip {background:#2a2442;border-color:#5b477f;color:#d7bdff}
:root[data-theme="dark"] .admin-dropzone,
:root[data-theme="dark"] .admin-update-dropzone {background:#1b2139;border-color:#7355b4;color:#ebe8ff}
:root[data-theme="dark"] .admin-dropzone.is-dragover,
:root[data-theme="dark"] .admin-update-dropzone.is-dragover {background:#322650;border-color:#b48aff}
:root[data-theme="dark"] .admin-usage-row,
:root[data-theme="dark"] .usage-kpi-panel {border-color:#3b4666}
:root[data-theme="dark"] .usage-chart-bar.landing {background:linear-gradient(#b37fff,#6938d1)}
:root[data-theme="dark"] .usage-chart-bar.cabinet {background:linear-gradient(#9faaff,#6169c5)}
:root[data-theme="dark"] .admin-update-page-mark {color:#b58aff}
/* Light mode keeps the same violet identity when intentionally selected. */
:root[data-theme="light"] .nav-link.active {background:#ede5ff;color:#6036bf}
:root[data-theme="light"] .primary-button {background:linear-gradient(110deg,#8d59e8,#683bc5);color:#fff}
:root[data-theme="light"] .segment.active {color:#673bbf;background:#f1ebff}
:root[data-theme="light"] .kpi-icon.blue {background:#efe8ff;color:#7246d6}
:root[data-theme="light"] .account-page {background:radial-gradient(circle at 15% 8%,#eee4ff 0,transparent 35%),#f8f7fc}
:root[data-theme="light"] .account-card {border-color:#e5ddf0}
/* Landing is already dark; align its light accents with Geography of Sales. */
body:not(.privacy-page) .logo-mark,
body:not(.privacy-page) .site-mark {background:linear-gradient(145deg,#a16cf9,#6339c6)}
body:not(.privacy-page) .preview-tab.active {background:#40305f;border-color:#8558db;color:#f1e8ff}
body:not(.privacy-page) .btn-primary {background:linear-gradient(115deg,#955def,#6d40cb);border-color:#8555e0}
/* Keep semantic green, yellow and red for authentic business states. */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:2px solid #b48bff;outline-offset:2px}
a[href="/privacy.html"] {color:var(--brand,#ac83ff);text-decoration:underline;text-underline-offset:3px}
.geo-footer a[href="/privacy.html"],.footer a[href="/privacy.html"] {color:#c2a3ff}
/* Clear, non-interruptive privacy notice page (no pop-up). */
.privacy-page {margin:0;min-height:100vh;background:radial-gradient(circle at 48% -25%,#33205e 0,transparent 45%),#0e1325;color:#edf0fb;font-family:Inter,system-ui,sans-serif;line-height:1.75}
.privacy-content {width:min(100% - 32px,800px);margin:0 auto;padding:48px 0 100px}
.privacy-back {color:#baa0fa;text-decoration:none;font-weight:650;font-size:14px}
.privacy-kicker {font-size:11px;letter-spacing:2px;color:#aa81fb;font-weight:800;margin:44px 0 4px}
.privacy-content h1 {font-size:clamp(32px,5vw,48px);line-height:1.2;letter-spacing:-1.4px;margin:4px 0 22px}
.privacy-content>p:not(.privacy-kicker) {color:#cbd0e2;font-size:16px}
.privacy-content section {padding:21px 24px;margin:18px 0;border-radius:14px;border:1px solid #384362;background:linear-gradient(145deg,#1c233b,#171e33)}
.privacy-content section h2 {font-size:18px;letter-spacing:-.3px;margin:0 0 6px}
.privacy-content section p {margin:0;color:#b7bfd8;font-size:14px}
@media(max-width:700px) { :root[data-theme="dark"] .page-content {padding-inline:16px}.privacy-content{padding-top:25px} }
@media(prefers-reduced-motion:reduce) {button,a{transition-duration:.01ms!important}}
/* Harmonize legacy WB finance tiles with the Geography panel surface. */
:root[data-theme="dark"] #overview .wb-finance-overview .kpi-grid-three>.kpi-card,
:root[data-theme="dark"] #overview .wb-finance-payout,
:root[data-theme="dark"] .orders-mini-card,
:root[data-theme="dark"] .orders-unknown-card {
  background:linear-gradient(140deg,#242940,#20263d)!important;
  border-color:#3b4565!important;
}
:root[data-theme="dark"] #overview .wb-finance-profit {
  background:linear-gradient(140deg,#29243e,#24253d)!important;
  border-color:#49416a!important;
}
:root[data-theme="dark"] #overview .wb-finance-tile-icon {background:#3b2b5c;color:#d0b7ff}
