/* CRM black theme v1: approved palette. Dark mode only; no layout or behavior changes. */
body.crm-interface-v2.dark-theme {
  --ui-bg:#0c0c0e;--ui-card:#141416;--ui-text:#e6e6e9;--ui-muted:#a0a0a8;
  --ui-line:#2b2b30;--ui-blue:#609bff;--ui-tint:#242428;--ui-row:#1e1e22;
  --ui-green:#24d6a1;--ui-red:#ff657b;--ui-orange:#ffb52e;--ui-purple:#b383ff;
  --bg-main:#0c0c0e;--sidebar-bg:#0a0a0c;--sidebar-hover:#242428;
  --text-main:#e6e6e9;--text-muted:#a0a0a8;--border-light:#2b2b30;
  --card-bg:#141416;--card-dark:#141416;--input-bg:#1c1c1f;
  --table-head-bg:#171719;--row-acc-bg:#1e1e22;--row-adset-bg:#18181b;--hover-bg:#1f1f23;
}
body.dark-theme #page-stats .dark-summary-card {background:#141416;border-color:#2b2b30;box-shadow:0 7px 16px #0002}
body.dark-theme #page-stats .summary-title-main,body.dark-theme #page-stats .summary-item .label {color:#a0a0a8}
body.dark-theme #page-stats .summary-item .value {color:#e6e6e9}
body.dark-theme #page-stats .summary-item .value.accent {color:#609bff}
body.dark-theme #page-stats .summary-item .value.warning {color:#ffb52e}
body.dark-theme #page-stats .summary-big-value {color:#24d6a1}
body.dark-theme #page-stats th {background:#171719}
body.dark-theme #page-stats .row-account {background:#1e1e22;border-left-color:#54545e}
body.dark-theme #page-stats .row-account[data-expanded="1"] {background:#242428}
body.dark-theme #page-stats .row-campaign {background:#141416}
body.dark-theme #page-stats .row-campaign[data-expanded="1"] {background:#1c1c20}
body.dark-theme #page-stats .row-adset {background:#18181b}
body.dark-theme #page-stats .row-adset[data-expanded="1"] {background:#202024}
body.dark-theme #page-stats .row-ad {background:#141416}
body.dark-theme #page-stats tr.crm-v2-selected {background:#242429!important}
body.dark-theme #page-stats tr.crm-v2-selected td:first-child {box-shadow:inset 3px 0 #609bff}
body.dark-theme #page-stats tr.crm-v2-selected:hover {background:#29292f!important}
body.dark-theme #page-stats .bg-active {background:#1c3028}
body.dark-theme #page-stats .bg-paused {background:#342125}
body.dark-theme #page-stats .badge-bid,body.dark-theme #page-stats .badge-cbo {background:#292335;border-color:#44374f}
body.dark-theme #page-stats .badge-wl {background:#1c3028;border-color:#30463d}
body.dark-theme #page-stats .badge-abo,body.dark-theme #page-stats .geo-badge {background:#21242a;border-color:#353b49}
body.dark-theme #page-stats .agent-chip {background:#28282d}
body.dark-theme #page-stats input[type=checkbox] {accent-color:#609bff}
body.dark-theme .nav-item.active {background:#22252c;color:#609bff;box-shadow:inset 2px 0 #609bff}
body.dark-theme .nav-item {color:#a0a0a8}

/* Clear actions without isolated black button tiles. */
body.dark-theme #page-stats .action-btn {background:transparent!important;border-color:#38383e;box-shadow:none}
body.dark-theme #page-stats .action-btn.is-play {color:#24d6a1}
body.dark-theme #page-stats .action-btn.is-pause {color:#ff657b}
body.dark-theme #page-stats .action-btn.is-remod {color:#b383ff}
body.dark-theme #page-stats .action-btn:hover {background:#ffffff0a!important;border-color:#5c5c65}
body.dark-theme #page-stats .summary-item .value.orange {color:#ffb52e}

body.dark-theme #page-stats .action-btn.is-play svg {fill:#24d6a1}
body.dark-theme #page-stats .action-btn.is-pause svg {fill:#ff657b}
body.dark-theme #page-stats .action-btn.is-remod svg {stroke:#b383ff}

/* Equal numeric readability at campaign, ad set and ad levels. */
body.dark-theme #page-stats .row-ad > td:nth-child(n+4):nth-child(-n+16) {color:var(--ui-text)}
