/* Smith Digital V49 Black & White. Scoped to the optional "mono" color mode.
   Original logo files, layout dimensions, alerts, uploads and transactions are untouched. */
html[data-smith-color-mode="mono"] {
  color-scheme:dark;
  --bg:#080808;--side:#101010;--surface:#161616;--surface2:#202020;
  --line:#393939;--text:#f8f8f8;--muted:#bfbfbf;--accent:#fff;
  --bw-bg:#080808;--bw-sidebar:#101010;--bw-card:#171717;--bw-card-alt:#202020;
  --bw-field:#121212;--bw-row:#1c1c1c;--bw-text:#f8f8f8;--bw-muted:#c1c1c1;
  --bw-border:#383838;--bw-blue:#f8f8f8;--bw-blue-hover:#eee;
  --bw-primary:#f5f5f5;--bw-primary-deep:#ddd;--bw-soft:#292929;
  --bw-shadow:0 14px 36px #00000042;--bw-focus:#fff;--bw-onblue:#111;
  --b25-bg:#080808;--b25-text:#f7f7f7;--b25-muted:#c1c1c1;
  --sl-bg:#080808;--sl-text:#fafafa;--sl-sub:#c1c1c1;
  --sl-surface:#171717;--sl-soft:#222;--sl-stroke:#383838;
  --sl-primary:#f5f5f5;--sl-primarydark:#d7d7d7;--sl-tint:#242424;
  --sl-shadow:0 12px 30px #00000035;
}
html[data-smith-color-mode="mono"] body,
html[data-smith-color-mode="mono"] body.smith-landing,
html[data-smith-color-mode="mono"] body.smm-admin-body,
html[data-smith-color-mode="mono"] body.sdg-v58-page {background:#080808!important;background-image:none!important;color:#fafafa!important}
/* Common panels & layout surfaces: never set sizing or positioning. */
html[data-smith-color-mode="mono"] body :is(
  .smm-admin-sidebar,.sidebar,.smp-sidebar,.smm-admin-topbar,.topbar,
  .smm-admin-workspace,.workspace,.sdgpub-header,.sl-header,.smm-admin-footer,.footer
){background:#101010!important;background-image:none!important;color:#f5f5f5!important;border-color:#383838!important}
html[data-smith-color-mode="mono"] body :is(
  .panel,.v31-card,.v31-panel,.v21-panel,.v21-glass-panel,.v21-user-quick,.v21-user-orders,
  .v21-user-deposit,.smm-admin-data-card,.smm-admin-status,.smm-admin-metrics article,
  .smm-admin-shortcuts>a,.card,.accordion,.smp-summary,.order-main,.v22-other-services,
  .v22-order-filter,.b25-card,.b25-user-intro,.b25-user-kpis>*,.b25-admin-kpis>*,
  .smm-admin-welcome,.smm-admin-sidebar-bottom,.side-bottom,.v23-user-metric,
  .v21-stat,.v21-user-balance,.v23-order-fast,.v23-side-promo,.v21-service-tile,
  .sdgpub-dropdown,.sdgpub-links,.sd58-sidebar-box,.sd58-content,.sd58-section,
  .sl-service-card,.sl-feature,.sl-hero,.sl-dash,.v31-section,.v31-tile,.v21-card,
  .v23-user-balance,.v31-form,.smm-admin-shortcut,.v21-stat-blue,.v21-stat-purple
){background:#171717!important;background-image:none!important;border-color:#353535!important;color:#f6f6f6!important;box-shadow:0 8px 22px #00000030!important}
html[data-smith-color-mode="mono"] body :is(.v21-stat,.v23-user-metric,.v21-user-balance,.v23-order-fast,.v23-side-promo,.v21-service-tile){background:#222!important;background-image:none!important;border:1px solid #454545!important;color:#fff!important}
html[data-smith-color-mode="mono"] body :is(.v21-stat,.v23-user-metric,.v21-user-balance,.v23-order-fast,.v23-side-promo,.v21-service-tile) :is(strong,span,small,h2,p,a){color:#f5f5f5!important}
/* Selected menu and prominent actions: high contrast without altering click targets. */
html[data-smith-color-mode="mono"] body :is(.smm-admin-menu a.is-current,.smm-admin-menu a[aria-current="page"],.smp-nav>a.active,.nav>a.active,.sdgpub-links a[aria-current="page"],.v21-mobile-primary){background:#f5f5f5!important;background-image:none!important;color:#0e0e0e!important;box-shadow:none!important}
html[data-smith-color-mode="mono"] body :is(.smm-admin-menu a:hover,.smp-nav>a:hover,.nav>a:hover,.sdgpub-links a:hover){background:#292929!important;color:#fff!important}
/* Form and table readability. */
html[data-smith-color-mode="mono"] body :is(h1,h2,h3,h4,h5,h6,strong,th,label,.smm-admin-headline h1,.v31-card h2){color:#f8f8f8!important}
html[data-smith-color-mode="mono"] body :is(p,small,.muted,.smm-admin-eyebrow,.smm-admin-top-title small,.v31-muted,.b25-muted,.sdgpub-subtitle){color:#c2c2c2!important}
html[data-smith-color-mode="mono"] body :is(.smm-admin-menu a,.smp-nav>a,.nav>a,.sdgpub-links a,.sdgpub-brand,.sdgpub-name){color:#f2f2f2!important}
html[data-smith-color-mode="mono"] body :is(table,thead,tbody,tr,th,td){color:#f1f1f1!important;border-color:#373737!important}
html[data-smith-color-mode="mono"] body :is(thead,th,.v21-orders-table thead tr){background:#242424!important;background-image:none!important}
html[data-smith-color-mode="mono"] body :is(tbody tr,.v21-orders-table tbody tr,.v21-orders-table td){background:#181818!important;background-image:none!important}
html[data-smith-color-mode="mono"] body :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.smm-admin-menu-search){background:#131313!important;color:#f7f7f7!important;border-color:#4b4b4b!important;box-shadow:none!important}
html[data-smith-color-mode="mono"] body :is(input,textarea)::placeholder{color:#a3a3a3!important}
html[data-smith-color-mode="mono"] body :is(input,select,textarea,a,button):focus-visible{outline:2px solid #fff!important;outline-offset:2px}
html[data-smith-color-mode="mono"] body :is(.btn.primary,.btn-primary,.btn-main,.sl-button,.sdgpub-register,button[type="submit"].primary,.v31-card .btn.primary,.v21-primary):not(.danger):not(.error){background:#f4f4f4!important;background-image:none!important;color:#111!important;border-color:#f4f4f4!important;box-shadow:none!important}
html[data-smith-color-mode="mono"] body :is(.btn.subtle,.btn.secondary,.sl-button-outline,.sdgpub-login){background:#242424!important;background-image:none!important;color:#fafafa!important;border-color:#4c4c4c!important}
/* Public blog, catalog and informational pages */
html[data-smith-color-mode="mono"] body :is(.sdgpub-header,.sdgpub-inner,.sd58-hero,.sd58-main,.sd58-sidebar,.sl-platform-strip,.sl-section,.sl-hero){background-color:#101010!important}
html[data-smith-color-mode="mono"] body :is(.sdgpub-links.show,.sdgpub-backdrop:not([hidden])){background:#181818!important}
html[data-smith-color-mode="mono"] body :is(.sl-hero,.sd58-hero){background-image:none!important}
/* Two physical toggle positions, independent of whether each mode is "dark". */
html[data-smith-theme-position="0"] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle)::before{transform:translateX(0)!important}
html[data-smith-theme-position="1"] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle)::before{transform:translateX(40px)!important}
html[data-smith-color-mode="mono"] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle){--pill-active-bg:#eee!important;--pill-active-ink:#111!important}
html[data-smith-color-mode="mono"] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle)::before{background:#eee!important}
html[data-smith-theme-position="0"] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle) .sdg-theme-option:first-child,
html[data-smith-theme-position="1"] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle) .sdg-theme-option:last-child{color:var(--pill-active-ink)!important}
html[data-smith-color-mode="mono"][data-smith-theme-position="0"] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle) .sdg-theme-option:first-child,
html[data-smith-color-mode="mono"][data-smith-theme-position="1"] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle) .sdg-theme-option:last-child{color:#111!important}
/* Keep previous merayap radial transition; reduced-motion opt-out. */
html.smith-theme49-ripple::view-transition-old(root),html.smith-theme49-ripple::view-transition-new(root){animation:none!important;mix-blend-mode:normal!important}
html.smith-theme49-ripple::view-transition-old(root){z-index:0}
html.smith-theme49-ripple::view-transition-new(root){z-index:1}
.smith-theme49-flash{position:fixed;inset:0;z-index:2147480000;pointer-events:none;background:radial-gradient(circle at var(--sm49-x) var(--sm49-y),rgba(185,185,185,.15),transparent 70%);animation:sm49-flash .9s ease both}
@keyframes sm49-flash{0%{clip-path:circle(0px at var(--sm49-x) var(--sm49-y));opacity:1}100%{clip-path:circle(var(--sm49-radius) at var(--sm49-x) var(--sm49-y));opacity:0}}
@media (prefers-reduced-motion:reduce){.smith-theme49-flash{display:none!important}}
/* Preserve contrast inside white active items and monochrome primary buttons. */
html[data-smith-color-mode="mono"] body :is(.smm-admin-menu a.is-current,.smp-nav>a.active,.nav>a.active,.btn.primary,.btn-primary,.sl-button,.sdgpub-register) :is(strong,small,span,svg){color:#111!important}
html[data-smith-color-mode="mono"] body :is(.smm-admin-menu a.is-current,.smp-nav>a.active,.nav>a.active) :is(path,circle){stroke:currentColor}
/* High-specificity fixes for historical V21/V23 palette rules that also use !important. */
html[data-smith-color-mode="mono"][data-smith-theme="dark"] body.smm-v23-admin :is(
 .v21-stat,.v21-stat-blue,.v21-stat-purple,.v21-stat-indigo,.v21-stat-teal,
 .smm-admin-welcome,.smm-admin-metrics article,.smm-admin-shortcuts>a,.v23-side-promo,
 .v21-panel,.panel,.v21-health-list>div,.v21-bottom-grid>a
),
html[data-smith-color-mode="mono"][data-smith-theme="dark"] body.smm-v23-user :is(
 .v21-user-balance,.v23-user-metric,.v23-user-metric-blue,.v23-user-metric-green,
 .v23-user-metric-amber,.v21-service-tile,.v23-order-fast,.v21-user-quick,
 .v21-user-orders,.v21-user-deposit,.panel,.accordion,.v22-order-filter,.smp-summary
){background:#1a1a1a!important;background-image:none!important;border:1px solid #383838!important;color:#f6f6f6!important;box-shadow:0 8px 22px #00000033!important}
html[data-smith-color-mode="mono"][data-smith-theme="dark"] body.smm-v23-admin :is(.smm-admin-menu a.is-current,.smm-admin-menu a[aria-current="page"]),
html[data-smith-color-mode="mono"][data-smith-theme="dark"] body.smm-v23-user :is(.smp-nav>a.active,.v21-mobile-primary,.v21-mobile-bottom a[aria-current="page"]){background:#f5f5f5!important;background-image:none!important;color:#111!important;box-shadow:none!important}
html[data-smith-color-mode="mono"][data-smith-theme="dark"] body.smm-v23-admin :is(.smm-admin-sidebar,.smm-admin-topbar,.smm-admin-sidebar-bottom),
html[data-smith-color-mode="mono"][data-smith-theme="dark"] body.smm-v23-user :is(.sidebar,.topbar,.side-bottom){background:#101010!important;background-image:none!important;color:#f7f7f7!important;border-color:#383838!important}
html[data-smith-color-mode="mono"][data-smith-theme="dark"] body.smm-v23-admin .smm-admin-menu a.is-current :is(span,strong,svg),
html[data-smith-color-mode="mono"][data-smith-theme="dark"] body.smm-v23-user .smp-nav>a.active :is(span,strong,svg){color:#111!important}
html[data-smith-color-mode="mono"][data-landing-theme="dark"] body.smith-landing :is(.sdgpub-header,.sdgpub-links,.sl-hero,.sl-service-card,.sl-feature,.sl-section),
html[data-smith-color-mode="mono"][data-landing-theme="dark"] body.sdg-v58-page :is(.sdgpub-header,.sd58-hero,.sd58-section,.sd58-sidebar-box){background-color:#151515!important;background-image:none!important;color:#f7f7f7!important;border-color:#353535!important}

/* V49.2: align active disc and preserve contrast for both physical positions. */
html[data-smith-theme-position] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle) .sdg-theme-option{color:var(--pill-idle-ink)!important}
html[data-smith-theme-position="0"] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle) .sdg-theme-option:first-child,
html[data-smith-theme-position="1"] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle) .sdg-theme-option:last-child{color:var(--pill-active-ink)!important}
@media(max-width:430px){html[data-smith-theme-position="1"] button.sdg-theme-pill:is(#themeToggle,#sv31-theme-toggle,#theme-toggle,#smm-admin-theme-toggle)::before{transform:translateX(38px)!important}}
