/* SMITHSMM V24 — Two-mode Blue & White design system.
   Presentation only. Does not modify wallet, checkout, deposits, cron or vendor API.
   Loaded LAST to override V21–V23 hard-coded colors. */
html[data-smith-theme="dark"] {
  color-scheme:dark;
  --bw-bg:#08172c;--bw-sidebar:#0a1d34;--bw-card:#102b4c;--bw-card-alt:#18395d;
  --bw-field:#0b2441;--bw-row:#173757;--bw-text:#f3f8ff;--bw-muted:#b5cbe4;
  --bw-border:#375476;--bw-blue:#3989ff;--bw-blue-hover:#69a8ff;
  --bw-primary:#155de3;--bw-primary-deep:#1046a9;--bw-soft:#163d70;
  --bw-shadow:0 14px 38px #030d1e54;--bw-focus:#a2d1ff;--bw-onblue:#fff;
  --bg:var(--bw-bg);--side:var(--bw-sidebar);--surface:var(--bw-card);
  --surface2:var(--bw-card-alt);--line:var(--bw-border);--text:var(--bw-text);
  --muted:var(--bw-muted);--accent:var(--bw-blue-hover);--blue-bg:var(--bw-soft);
  --purple-bg:var(--bw-soft);--blue-text:#d0e4ff;--purple-text:#d0e4ff;
}
html[data-smith-theme="light"] {
  color-scheme:light;
  --bw-bg:#f2f7fe;--bw-sidebar:#fff;--bw-card:#fff;--bw-card-alt:#eaf3ff;
  --bw-field:#fff;--bw-row:#edf5ff;--bw-text:#142c4b;--bw-muted:#526c8a;
  --bw-border:#ccddf0;--bw-blue:#175bd5;--bw-blue-hover:#0b4cba;
  --bw-primary:#155de3;--bw-primary-deep:#1046a9;--bw-soft:#e3efff;
  --bw-shadow:0 12px 30px #1d4a8320;--bw-focus:#0c57bd;--bw-onblue:#fff;
  --bg:var(--bw-bg);--side:var(--bw-sidebar);--surface:var(--bw-card);
  --surface2:var(--bw-card-alt);--line:var(--bw-border);--text:var(--bw-text);
  --muted:var(--bw-muted);--accent:var(--bw-blue);--blue-bg:var(--bw-soft);
  --purple-bg:var(--bw-soft);--blue-text:#1554a5;--purple-text:#1554a5;
}
html[data-smith-theme] body.smm-v23-admin,
html[data-smith-theme] body.smm-v23-user {
  --bg:var(--bw-bg)!important;--side:var(--bw-sidebar)!important;
  --surface:var(--bw-card)!important;--surface2:var(--bw-card-alt)!important;
  --line:var(--bw-border)!important;--text:var(--bw-text)!important;
  --muted:var(--bw-muted)!important;--accent:var(--bw-blue)!important;
  color:var(--bw-text)!important;background:var(--bw-bg)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
}
html[data-smith-theme] body.smm-v23-admin .smm-admin-workspace,
html[data-smith-theme] body.smm-v23-user .workspace {background:transparent!important;color:var(--bw-text)!important}
html[data-smith-theme] body.smm-v23-admin .smm-admin-sidebar,
html[data-smith-theme] body.smm-v23-user .sidebar {
  background:var(--bw-sidebar)!important;border:0!important;box-shadow:none!important;
  color:var(--bw-text)!important;
}
html[data-smith-theme] body.smm-v23-admin .smm-admin-topbar,
html[data-smith-theme] body.smm-v23-user .topbar,
html[data-smith-theme] body.smm-v23-admin .smm-admin-footer,
html[data-smith-theme] body.smm-v23-user .footer {background:transparent!important;border:0!important;color:var(--bw-muted)!important}
html[data-smith-theme] body.smm-v23-admin .smm-admin-top-title strong,
html[data-smith-theme] body.smm-v23-user .account-name strong,
html[data-smith-theme] body.smm-v23-admin .smm-admin-brand,
html[data-smith-theme] body.smm-v23-user .brand,
html[data-smith-theme] body.smm-v23-admin .smm-admin-brand strong,
html[data-smith-theme] body.smm-v23-user .brand strong {color:var(--bw-text)!important}
html[data-smith-theme] body.smm-v23-admin .smm-admin-brand strong span,
html[data-smith-theme] body.smm-v23-user .brand .accent {color:var(--bw-blue)!important}
html[data-smith-theme] body.smm-v23-admin .smm-admin-headline h1,
html[data-smith-theme] body.smm-v23-user .v21-user-heading h1,
html[data-smith-theme] body.smm-v23-user .pagehead h1,
html[data-smith-theme] body.smm-v23-user .v21-section-head h2,
html[data-smith-theme] body.smm-v23-user .v21-user-quick h2,
html[data-smith-theme] body.smm-v23-user .v21-user-deposit h2,
html[data-smith-theme] body.smm-v23-admin .v21-panel-head h2,
html[data-smith-theme] body.smm-v23-admin .v21-panel h2,
html[data-smith-theme] body.smm-v23-user .panel h2,
html[data-smith-theme] body.smm-v23-user .panel h3 {color:var(--bw-text)!important}
html[data-smith-theme] body.smm-v23-admin .smm-admin-headline p,
html[data-smith-theme] body.smm-v23-user .v21-user-heading p,
html[data-smith-theme] body.smm-v23-user .pagehead p,
html[data-smith-theme] body.smm-v23-admin .v21-panel-head p,
html[data-smith-theme] body.smm-v23-user .v21-user-deposit p,
html[data-smith-theme] body.smm-v23-user .muted,
html[data-smith-theme] body.smm-v23-admin .muted {color:var(--bw-muted)!important}
html[data-smith-theme] body.smm-v23-admin .smm-admin-menu a,
html[data-smith-theme] body.smm-v23-user .smp-nav>a,
html[data-smith-theme] body.smm-v23-user .v22-nav-secondary summary,
html[data-smith-theme] body.smm-v23-user .v22-nav-secondary a {color:var(--bw-text)!important}
html[data-smith-theme] body.smm-v23-admin .smm-admin-menu-caption,
html[data-smith-theme] body.smm-v23-user .smp-nav-caption,
html[data-smith-theme] body.smm-v23-admin .smm-admin-top-title small {color:var(--bw-muted)!important}
html[data-smith-theme] body.smm-v23-admin .smm-admin-menu a:not(.is-current):hover,
html[data-smith-theme] body.smm-v23-user .smp-nav>a:not(.active):hover {background:var(--bw-card-alt)!important;color:var(--bw-text)!important}
html[data-smith-theme] body.smm-v23-admin .smm-admin-menu a.is-current,
html[data-smith-theme] body.smm-v23-user .smp-nav>a.active,
html[data-smith-theme] body.smm-v23-user .v21-mobile-bottom a[aria-current="page"],
html[data-smith-theme] body.smm-v23-user .v21-mobile-primary {background:linear-gradient(115deg,#1776f3,#1050bc)!important;color:#fff!important;box-shadow:0 9px 22px #135bd53b!important}
html[data-smith-theme] body.smm-v23-admin .smm-admin-logo,
html[data-smith-theme] body.smm-v23-user .brandmark,
html[data-smith-theme] body.smm-v23-user .v21-wallet-symbol {background:linear-gradient(135deg,#277fff,#1249b4)!important;color:#fff!important;box-shadow:0 8px 18px #135bd53b!important}
html[data-smith-theme] body.smm-v23-admin .v22-admin-provider-pill,
html[data-smith-theme] body.smm-v23-admin .v21-top-api,
html[data-smith-theme] body.smm-v23-user .wallet-chip,
html[data-smith-theme] body.smm-v23-user .v21-outline-link,
html[data-smith-theme] body.smm-v23-user .v22-nav-secondary,
html[data-smith-theme] body.smm-v23-admin .v21-outline-link {
  background:var(--bw-card-alt)!important;color:var(--bw-text)!important;border:0!important;
  box-shadow:none!important;
}
html[data-smith-theme] body.smm-v23-admin .smm-admin-sidebar-bottom,
html[data-smith-theme] body.smm-v23-user .side-bottom,
html[data-smith-theme] body.smm-v23-admin .v21-admin-more,
html[data-smith-theme] body.smm-v23-user .v22-nav-secondary {background:var(--bw-card-alt)!important;color:var(--bw-text)!important;border:0!important}
html[data-smith-theme] body.smm-v23-admin .smm-admin-sidebar-bottom small,
html[data-smith-theme] body.smm-v23-user .account-name small {color:var(--bw-muted)!important}
/* Uniform, soft, borderless surfaces across Admin/User, including auxiliary pages */
html[data-smith-theme] body.smm-v23-admin :is(.v21-panel,.panel,.accordion,.v21-health-list>div,.v21-bottom-grid>a),
html[data-smith-theme] body.smm-v23-user :is(.v21-glass-panel,.v21-user-quick,.v21-user-orders,.v21-user-deposit,.panel,.accordion,.order-main,.order-info .panel,.v22-other-services,.v22-order-filter,.smp-summary),
html[data-smith-theme] body.smm-v23-user .v21-user-quick,
html[data-smith-theme] body.smm-v23-user .v21-user-deposit {
  background:var(--bw-card)!important;color:var(--bw-text)!important;
  border:0!important;border-radius:18px!important;box-shadow:var(--bw-shadow)!important;
}
html[data-smith-theme] body.smm-v23-admin .v21-health-list>div,
html[data-smith-theme] body.smm-v23-admin .v21-bottom-grid>a {background:var(--bw-card-alt)!important}
html[data-smith-theme] body.smm-v23-admin .v21-panel p,
html[data-smith-theme] body.smm-v23-user .panel p,
html[data-smith-theme] body.smm-v23-user .v21-user-quick p,
html[data-smith-theme] body.smm-v23-admin .v21-rail-foot {color:var(--bw-muted)!important}
/* KPI cards and wallet: blue only, maintain white text in either theme. */
html[data-smith-theme] body.smm-v23-admin .v21-stat,
html[data-smith-theme] body.smm-v23-admin .v21-stat-blue,
html[data-smith-theme] body.smm-v23-admin .v21-stat-purple,
html[data-smith-theme] body.smm-v23-admin .v21-stat-indigo,
html[data-smith-theme] body.smm-v23-admin .v21-stat-teal {
  background:linear-gradient(128deg,#2276e9,#0d4fae 72%,#103c85)!important;
  color:#fff!important;border:0!important;box-shadow:0 13px 30px #1352aa35!important;
}
html[data-smith-theme] body.smm-v23-admin .v21-stat :is(strong,small,.v21-stat-top,.v21-stat-top span),
html[data-smith-theme] body.smm-v23-user .v21-user-balance :is(strong,span,small),
html[data-smith-theme] body.smm-v23-user .v21-user-balance a {color:#fff!important}
html[data-smith-theme] body.smm-v23-user .v21-user-balance {
  background:linear-gradient(130deg,#1b77ef,#0e49b4)!important;color:#fff!important;
  box-shadow:0 13px 30px #1c55ab33!important;
}
html[data-smith-theme] body.smm-v23-user .v21-user-balance::after,
html[data-smith-theme] body.smm-v23-admin .v21-stat::after {background:#ffffff13!important}
html[data-smith-theme] body.smm-v23-user .v23-user-metric,
html[data-smith-theme] body.smm-v23-user .v23-user-metric-blue,
html[data-smith-theme] body.smm-v23-user .v23-user-metric-green,
html[data-smith-theme] body.smm-v23-user .v23-user-metric-amber {
  background:linear-gradient(124deg,#1f6ace,#124b9f)!important;color:#fff!important;
  border:0!important;box-shadow:0 10px 23px #0a47972a!important;
}
html[data-smith-theme] body.smm-v23-user .v23-user-metric :is(strong,small,.v23-metric-icon) {color:#fff!important}
html[data-smith-theme] body.smm-v23-user .v23-order-fast,
html[data-smith-theme] body.smm-v23-admin .v23-side-promo {
  background:linear-gradient(120deg,#114ba4,#0e326d)!important;color:#fff!important;
  box-shadow:0 12px 28px #0d3e8130!important;
}
html[data-smith-theme] body.smm-v23-user .v23-order-fast :is(h2,p,.v23-fast-kicker),
html[data-smith-theme] body.smm-v23-admin .v23-side-promo :is(strong,p) {color:#fff!important}
html[data-smith-theme] body.smm-v23-user .v21-service-tile,
html[data-smith-theme] body.smm-v23-user .v21-service-tile:nth-child(n) {
  background:linear-gradient(140deg,#195cb6,#123f87)!important;color:#fff!important;
  border:0!important;box-shadow:0 10px 22px #0b418738!important;
}
html[data-smith-theme] body.smm-v23-user .v21-service-tile :is(strong,small,.v22-feature-copy span) {color:#fff!important}
/* Table rows must be legible in light AND dark — V23 uses fixed dark colors. */
html[data-smith-theme] body.smm-v23-admin .v21-orders-table,
html[data-smith-theme] body.smm-v23-user .v21-user-orders table,
html[data-smith-theme] body.smm-v23-user table,
html[data-smith-theme] body.smm-v23-admin table {color:var(--bw-text)!important}
html[data-smith-theme] body.smm-v23-admin .v21-orders-table :is(thead tr,th),
html[data-smith-theme] body.smm-v23-user .v21-user-orders :is(thead tr,th) {
  background:var(--bw-card-alt)!important;color:var(--bw-text)!important;border:0!important;
}
html[data-smith-theme] body.smm-v23-admin .v21-orders-table tbody tr,
html[data-smith-theme] body.smm-v23-admin .v21-orders-table tbody td,
html[data-smith-theme] body.smm-v23-user .v21-user-orders tbody tr,
html[data-smith-theme] body.smm-v23-user .v21-user-orders tbody td {
  background:var(--bw-row)!important;color:var(--bw-text)!important;border:0!important;
}
html[data-smith-theme] body.smm-v23-admin .v21-orders-table td small,
html[data-smith-theme] body.smm-v23-user .v21-user-orders td small {color:var(--bw-muted)!important}
html[data-smith-theme] body.smm-v23-admin :is(th,td,.smm-admin-main p,.smm-admin-main label),
html[data-smith-theme] body.smm-v23-user :is(th,td,label,.smp-summary) {color:var(--bw-text)}
/* Inputs, native selects, dropdowns and modal: no black-on-dark / white-on-white. */
html[data-smith-theme] body.smm-v23-admin :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
html[data-smith-theme] body.smm-v23-user :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
html[data-smith-theme] body.smm-v23-user .v21-user-search label,
html[data-smith-theme] body.smm-v23-admin .smm-admin-menu-search,
html[data-smith-theme] body.smm-v23-user .smp-service-choice {
  background:var(--bw-field)!important;color:var(--bw-text)!important;
  border:1px solid var(--bw-border)!important;box-shadow:none!important;
}
html[data-smith-theme] body.smm-v23-admin :is(input,textarea)::placeholder,
html[data-smith-theme] body.smm-v23-user :is(input,textarea)::placeholder {color:var(--bw-muted)!important;opacity:1!important}
html[data-smith-theme] body.smm-v23-admin select option,
html[data-smith-theme] body.smm-v23-user select option {background:var(--bw-card)!important;color:var(--bw-text)!important}
html[data-smith-theme] body.smm-v23-user :is(.order-modes,.comments-cost-summary,.quote,.smp-summary .details,.v22-order-total-summary),
html[data-smith-theme] body.smm-v23-admin :is(.admin-card,.admin-section,.v21-admin-more-links) {
  background:var(--bw-card-alt)!important;color:var(--bw-text)!important;
  border-color:var(--bw-border)!important;
}
html[data-smith-theme] body.smm-v23-user .smp-summary .details .kv {border-color:var(--bw-border)!important}
html[data-smith-theme] body.smm-v23-user .comments-cost-summary :is(strong,span),
html[data-smith-theme] body.smm-v23-user .quote :is(strong,span) {color:var(--bw-text)!important}
html[data-smith-theme] body.smm-v23-user .smith-checkout-dialog {
  background:var(--bw-card)!important;color:var(--bw-text)!important;
  border:0!important;box-shadow:0 28px 80px #020c246a!important;
}
html[data-smith-theme] body.smm-v23-user .smith-checkout-dialog :is(h2,p),
html[data-smith-theme] body.smm-v23-user .smith-modal-detail :is(strong,span),
html[data-smith-theme] body.smm-v23-user .smith-modal-hint {color:var(--bw-text)!important}
html[data-smith-theme] body.smm-v23-user .smith-modal-detail {background:var(--bw-card-alt)!important;border:0!important}
html[data-smith-theme] body.smm-v23-user .smith-modal-label {color:var(--bw-blue)!important}
html[data-smith-theme] body.smm-v23-user .smith-modal-icon {background:var(--bw-primary)!important;color:#fff!important;box-shadow:none!important}
html[data-smith-theme] body.smm-v23-user .smith-checkout-dialog::backdrop {background:#06172ac9}
/* Actions: white on vivid blue with consistent hover, no purple/pink/teal gradients. */
html[data-smith-theme] body.smm-v23-admin :is(.btn.primary,.v21-admin-actions a,.v21-top-api.is-current),
html[data-smith-theme] body.smm-v23-user :is(.btn.primary,.v21-gradient-button,.v21-user-search button,.v23-order-fast a,#order-submit,#bulk-preview-submit),
html[data-smith-theme] body.smm-v23-user .v21-user-quick nav a,
html[data-smith-theme] body.smm-v23-user .v21-user-quick nav a:nth-child(n),
html[data-smith-theme] body.smm-v23-admin .v21-admin-actions a:nth-child(n),
html[data-smith-theme] body.smm-v23-admin .v23-side-promo>a {
  background:linear-gradient(115deg,#1778ee,#1251be)!important;color:#fff!important;
  border:0!important;box-shadow:0 8px 18px #1356bb30!important;
}
html[data-smith-theme] body.smm-v23-admin :is(.btn.subtle,.btn.tiny),
html[data-smith-theme] body.smm-v23-user :is(.btn.subtle,.btn.tiny,.v21-deposit-presets a) {
  background:var(--bw-card-alt)!important;color:var(--bw-text)!important;border:1px solid var(--bw-border)!important;
}
html[data-smith-theme] body.smm-v23-user .v21-deposit-presets a:nth-child(n){box-shadow:none!important}
html[data-smith-theme] body.smm-v23-admin a:not([class]),
html[data-smith-theme] body.smm-v23-user a:not([class]) {color:var(--bw-blue)}
/* Don't paint arbitrary state as ONLINE. Existing PHP truth remains unchanged. */
html[data-smith-theme] body.smm-v23-user .v21-status-pill,
html[data-smith-theme] body.smm-v23-admin .v21-status-pill {font-weight:750}
html[data-smith-theme] body.smm-v23-user .v21-order-completed,
html[data-smith-theme] body.smm-v23-admin .v21-order-completed {background:#0f5aaa!important;color:#fff!important}
html[data-smith-theme] body.smm-v23-user .v21-order-queued,
html[data-smith-theme] body.smm-v23-admin .v21-order-queued {background:var(--bw-soft)!important;color:var(--bw-text)!important}
/* Blue/white-only overall palette, error still has distinguishable text label. */
html[data-smith-theme] body.smm-v23-admin .notice,
html[data-smith-theme] body.smm-v23-user .notice {background:var(--bw-card-alt)!important;color:var(--bw-text)!important;border-color:var(--bw-border)!important}
/* Theme switcher: same setting shared across Admin and User. */
.smm-theme-toggle {appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid var(--bw-border);border-radius:999px;padding:9px 13px;min-height:41px;
  background:var(--bw-card-alt);color:var(--bw-text);font-family:inherit;font-size:12px;font-weight:700;line-height:1.2;cursor:pointer;
  transition:background .2s ease,transform .2s ease;white-space:nowrap}
.smm-theme-toggle:hover{background:var(--bw-soft);transform:translateY(-1px)}
.smm-theme-toggle .smm-theme-symbol{font-size:19px;line-height:1}
html[data-smith-theme="dark"] .smm-theme-toggle .smm-theme-symbol::before{content:"☀"}
html[data-smith-theme="light"] .smm-theme-toggle .smm-theme-symbol::before{content:"☾"}
html[data-smith-theme] body.smm-v23-user #theme-toggle{color:var(--bw-text)!important;background:var(--bw-card-alt)!important;border:1px solid var(--bw-border)!important}
html[data-smith-theme] body.smm-v23-user #theme-toggle .ui-icon{color:var(--bw-blue)!important}
html[data-smith-theme] body.smm-v23-admin :focus-visible,
html[data-smith-theme] body.smm-v23-user :focus-visible {outline:3px solid var(--bw-focus)!important;outline-offset:3px!important}
/* Mobile nav also follows selected mode; no purple glow or fixed dark background. */
@media(max-width:760px){
  html[data-smith-theme] body.smm-v23-user .v21-mobile-bottom,
  html[data-smith-theme] body.smm-v23-admin .v21-admin-bottom-mobile {
    background:var(--bw-card)!important;color:var(--bw-text)!important;
    border-top:1px solid var(--bw-border)!important;box-shadow:0 -8px 25px #0c2d5b21!important;
  }
  html[data-smith-theme] body.smm-v23-admin .v21-admin-bottom-mobile a,
  html[data-smith-theme] body.smm-v23-user .v21-mobile-bottom a {color:var(--bw-text)!important}
  html[data-smith-theme] body.smm-v23-user .v21-mobile-bottom a[aria-current="page"] {color:#fff!important}
}
@media(max-width:600px){.smm-theme-toggle span:last-child{display:none}.smm-theme-toggle{min-width:43px;padding:9px}}
@media(prefers-reduced-motion:reduce){.smm-theme-toggle{transition:none}}
/* Readability fix: legacy Admin status labels were permanently pale blue (#e2eafd).
   On the white/light-blue card this would be nearly invisible. */
html[data-smith-theme] body.smm-v23-admin .v21-health-list :is(span,b),
html[data-smith-theme] body.smm-v23-admin .v21-panel :is(label,summary),
html[data-smith-theme] body.smm-v23-user .v21-user-orders :is(th,td),
html[data-smith-theme] body.smm-v23-user .v21-user-deposit :is(h2,p) {color:var(--bw-text)!important}
html[data-smith-theme] body.smm-v23-admin .v21-health-list span svg{color:var(--bw-blue)!important}
html[data-smith-theme] body.smm-v23-admin .v21-health-list .v21-good{color:var(--bw-blue)!important}
html[data-smith-theme] body.smm-v23-admin .v21-health-list .v21-warn{color:var(--bw-text)!important}
