
  /* Dark theme */
  html[data-theme="dark"] {
    color-scheme: dark;
    --crm-locked-background: #0e0f13;
    --crm-auth-overlay-background: rgba(7,9,14,.36);
    --crm-auth-card-background: rgba(20,22,29,.97);
    --crm-auth-card-border: rgba(255,255,255,.13);
    --crm-auth-card-color: #f3f4f7;
    --crm-auth-card-shadow: 0 28px 80px rgba(0,0,0,.48);
    --crm-auth-muted: #969ba8;
    --crm-auth-label: #aeb2bd;
    --crm-auth-field-background: #111318;
    --crm-auth-field-border: #373b46;
    --crm-auth-field-color: #f1f2f5;
    --crm-auth-panel-background: #171a21;
    --crm-auth-panel-border: #30343e;
    --crm-auth-accent-color: #76e1d2;
    --crm-auth-error-color: #ff756b;
    --crm-auth-info-color: #d8f3ef;
    --crm-auth-recovery-color: #f3f4f7;
    --crm-auth-recovery-code: #ffd28f;
    --crm-auth-empty-color: #858b98;
    --crm-auth-secondary-color: #aeb2bd;
    --crm-auth-secondary-hover: #f3f4f7;
  }
  html[data-theme="dark"] body { background: #0e0f13; color: #e8e9ed; }
  html[data-theme="dark"] .sidebar { background: #121318; border-color: #252832; }
  html[data-theme="dark"] .sidebar-header { background: #121318; }
  html[data-theme="dark"] .sidebar-navigation-settings,
  html[data-theme="dark"] .desktop-sidebar-toggle { border-color: #30343e; background: #17191f; color: #a6a9b4; }
  html[data-theme="dark"] .sidebar-navigation-settings:hover,
  html[data-theme="dark"] .desktop-sidebar-toggle:hover { border-color: #444955; background: #1b1d24; color: #f2f3f5; }
  html[data-theme="dark"] .sidebar-navigation-settings[aria-pressed="true"] { border-color: #43b7a8; background: rgba(67,183,168,.14); color: #6bd3c4; }
  html[data-theme="dark"] .sidebar-navigation-settings::after,
  html[data-theme="dark"] .desktop-sidebar-toggle::after { border-color: #343842; background: #1b1d24; color: #eef0f4; box-shadow: 0 10px 28px rgba(0,0,0,.34); }
  html[data-theme="dark"] .mobile-menu-button { border-color: #2b2e38; background: rgba(21,23,29,.96); color: #eef0f4; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
  html[data-theme="dark"] .main { background: #0e0f13; }
  html[data-theme="dark"] .logo-mark { filter: invert(1); }
  html[data-theme="dark"] .logo-wordmark { color: #f2f3f5; }
  html[data-theme="dark"] .logo:hover { background: #1b1d24; }
  html[data-theme="dark"] .nav-section-title,
  html[data-theme="dark"] .page-sub,
  html[data-theme="dark"] .kpi-label,
  html[data-theme="dark"] .channel-card-count,
  html[data-theme="dark"] .filter-count,
  html[data-theme="dark"] .user-contact { color: #858997; }
  html[data-theme="dark"] .nav-item { color: #a6a9b4; }
  html[data-theme="dark"] .nav-item:hover { background: #1b1d24; color: #f5f5f6; }
  html[data-theme="dark"] .nav-item.active { background: #272a33; color: #6bd3c4; }
  html[data-theme="dark"] .sidebar-favorite { color: #696e7a; }
  html[data-theme="dark"] .sidebar-favorite:hover,
  html[data-theme="dark"] .sidebar-favorite.is-favorite { color: #f2ad29; }
  html[data-theme="dark"] .sidebar-favorite:hover { background: rgba(242,173,41,.1); }
  html[data-theme="dark"] .sidebar-nav-row.is-dragging { background: rgba(67,183,168,.11); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
  html[data-theme="dark"] .sidebar-nav-group.is-group-dragging { background: rgba(67,183,168,.1); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
  html[data-theme="dark"] .sidebar-group-drag-handle,
  html[data-theme="dark"] .sidebar-item-drag-handle,
  html[data-theme="dark"] .sidebar-visibility,
  html[data-theme="dark"] .sidebar-startup { color: #707581; }
  html[data-theme="dark"] .sidebar-group-drag-handle:hover,
  html[data-theme="dark"] .sidebar-item-drag-handle:hover,
  html[data-theme="dark"] .sidebar-visibility:hover,
  html[data-theme="dark"] .sidebar-startup:hover { background: #20232b; color: #c2c6cf; }
  html[data-theme="dark"] .sidebar-startup.is-startup { background: rgba(67,183,168,.14); color: #6bd3c4; }
  html[data-theme="dark"] .sidebar-visibility.is-hidden { color: #d97872; }
  html[data-theme="dark"] .sidebar-favorites-empty { color: #696e7a; }
  html[data-theme="dark"] .sidebar-nav-toggle { border-color: #2d3039; color: #747986; }
  html[data-theme="dark"] .sidebar-nav-toggle:hover { border-color: #414650; background: #1b1d24; color: #b7bbc5; }
  html[data-theme="dark"] .search input,
  html[data-theme="dark"] .icon-btn,
  html[data-theme="dark"] .user-chip,
  html[data-theme="dark"] .settings-menu,
  html[data-theme="dark"] .period-tabs,
  html[data-theme="dark"] .kpi-card,
  html[data-theme="dark"] .panel,
  html[data-theme="dark"] .funnel-select,
  html[data-theme="dark"] .channel-card,
  html[data-theme="dark"] .filter-btn,
  html[data-theme="dark"] .values-toggle,
  html[data-theme="dark"] .theme-toggle,
  html[data-theme="dark"] .pv-appearance-toggle,
  html[data-theme="dark"] .ads-table-wrap,
  html[data-theme="dark"] .custom-period-popover,
  html[data-theme="dark"] .pv-metric-card,
  html[data-theme="dark"] .pv-product-tab,
  html[data-theme="dark"] .journey-source,
  html[data-theme="dark"] .journey-kpi,
  html[data-theme="dark"] .journey-branch-tab,
  html[data-theme="dark"] .journey-route,
  html[data-theme="dark"] .journey-data-toggle,
  html[data-theme="dark"] .journey-endpoint-controls { background: #15171d; border-color: #282b35; color: #e8e9ed; }
  html[data-theme="dark"] .settings-divider { background: #282b35; }
  html[data-theme="dark"] .settings-link { color: #d6d8df; }
  html[data-theme="dark"] .settings-account:hover,
  html[data-theme="dark"] .settings-link:hover { background: #20232b; color: #fff; }
  html[data-theme="dark"] .settings-link-sub { color: #858997; }
  html[data-theme="dark"] .settings-logout { color: #ef6d65; }
  html[data-theme="dark"] .settings-logout:hover { background: rgba(239,109,101,.1); color: #ff827a; }
  html[data-theme="dark"] .crm-onboarding-callout { border-color: #343945; background: #171a21; color: #f1f3f6; box-shadow: 0 26px 76px rgba(0,0,0,.58); }
  html[data-theme="dark"] .crm-onboarding-copy { color: #a1a7b2; }
  html[data-theme="dark"] .crm-onboarding-close { color: #9298a4; }
  html[data-theme="dark"] .crm-onboarding-close:hover,
  html[data-theme="dark"] .crm-onboarding-skip-step:hover,
  html[data-theme="dark"] .crm-onboarding-skip:hover { border-color: #3a3e48; background: #2a2d35; color: #f2f3f6; }
  html[data-theme="dark"] .crm-onboarding-hint { border-color: rgba(98,211,196,.28); background: rgba(67,183,168,.1); color: #8bddd2; }
  html[data-theme="dark"] .crm-onboarding-skip-step,
  html[data-theme="dark"] .crm-onboarding-skip { border-color: #31353e; background: #22252c; color: #9298a4; }
  html[data-theme="dark"] .crm-online { border-color: rgba(70,197,153,.24); background: rgba(36,129,98,.12); }
  html[data-theme="dark"] .crm-online:hover { border-color: rgba(85,211,158,.48); background: rgba(36,129,98,.19); }
  html[data-theme="dark"] .crm-online-status { color: #a6bbb6; }
  html[data-theme="dark"] .crm-online-value { color: #55d39e; }
  html[data-theme="dark"] .crm-online.is-loading .crm-online-value { color: #77847f; }
  html[data-theme="dark"] .online-page-nav { border-color: #2c303b; background: #15171d; color: #b7bbc5; }
  html[data-theme="dark"] .online-page-nav:hover { border-color: rgba(85,211,158,.45); background: rgba(36,129,98,.16); color: #55d39e; }
  html[data-theme="dark"] .online-panel { border-color: #282b35; background: #15171d; }
  html[data-theme="dark"] .online-panel-head,
  html[data-theme="dark"] .online-history-table th,
  html[data-theme="dark"] .online-history-table td { border-color: #282b35; }
  html[data-theme="dark"] .online-panel-title,
  html[data-theme="dark"] .online-employee-name,
  html[data-theme="dark"] .online-history-table td { color: #e8e9ed; }
  html[data-theme="dark"] .online-panel-sub,
  html[data-theme="dark"] .online-employee-login,
  html[data-theme="dark"] .online-history-table th,
  html[data-theme="dark"] .online-empty { color: #858997; }
  html[data-theme="dark"] .online-panel-count { background: rgba(47,186,131,.12); color: #55d39e; }
  html[data-theme="dark"] .online-employee { border-color: #2a2d36; background: #111318; }
  html[data-theme="dark"] .online-avatar { background: rgba(47,186,131,.13); color: #55d39e; }
  html[data-theme="dark"] .online-history-table th { background: #111318; }
  html[data-theme="dark"] .online-history-row:hover { background: rgba(47,186,131,.08); }
  html[data-theme="dark"] .login-history-dialog { border-color: #30343f; background: #15171d; box-shadow: 0 28px 80px rgba(0,0,0,.55); }
  html[data-theme="dark"] .login-history-head,
  html[data-theme="dark"] .login-history-summary { border-color: #282b35; }
  html[data-theme="dark"] .login-history-summary,
  html[data-theme="dark"] .login-history-day,
  html[data-theme="dark"] .login-history-event,
  html[data-theme="dark"] .login-history-section-panel { background: #111318; }
  html[data-theme="dark"] .login-history-stat,
  html[data-theme="dark"] .login-history-day,
  html[data-theme="dark"] .login-history-event,
  html[data-theme="dark"] .login-history-section-panel { border-color: #2a2d36; }
  html[data-theme="dark"] .login-history-stat { background: #15171d; }
  html[data-theme="dark"] .login-history-stat-featured.is-active { border-color: rgba(85,211,158,.35); background: linear-gradient(135deg,rgba(36,129,98,.28),rgba(36,129,98,.12)); }
  html[data-theme="dark"] .login-history-stat-featured.is-idle { border-color: rgba(238,155,40,.38); background: linear-gradient(135deg,rgba(169,99,15,.28),rgba(169,99,15,.12)); }
  html[data-theme="dark"] .login-history-stat-featured.is-active .login-history-stat-label,
  html[data-theme="dark"] .login-history-stat-featured.is-active .login-history-stat-value { color: #55d39e; }
  html[data-theme="dark"] .login-history-stat-featured.is-idle .login-history-stat-label,
  html[data-theme="dark"] .login-history-stat-featured.is-idle .login-history-stat-value { color: #f0a741; }
  html[data-theme="dark"] .login-history-stat-note { color: #a5a9b4; }
  html[data-theme="dark"] .login-history-title,
  html[data-theme="dark"] .login-history-stat-value,
  html[data-theme="dark"] .login-history-event-label { color: #e8e9ed; }
  html[data-theme="dark"] .login-history-login,
  html[data-theme="dark"] .login-history-stat-label,
  html[data-theme="dark"] .login-history-state,
  html[data-theme="dark"] .login-history-section-copy span,
  html[data-theme="dark"] .login-history-section-note,
  html[data-theme="dark"] .login-history-section-empty { color: #858997; }
  html[data-theme="dark"] .login-history-sections-card:hover,
  html[data-theme="dark"] .login-history-day-sessions:hover { background: rgba(85,196,181,.08); }
  html[data-theme="dark"] .login-history-section-copy strong { color: #e8e9ed; }
  html[data-theme="dark"] .login-history-section-track { background: #252932; }
  html[data-theme="dark"] .login-history-section-panel-day { background: #13161b; }
  html[data-theme="dark"] .login-history-day-sections { border-color: rgba(85,196,181,.3); background: rgba(85,196,181,.1); color: #68cfc1; }
  html[data-theme="dark"] .login-history-day-sections:hover { border-color: rgba(85,196,181,.58); background: rgba(85,196,181,.16); }
  html[data-theme="dark"] .login-history-day-title { color: #c6c9d1; }
  html[data-theme="dark"] .login-history-day-chevron { color: #858997; }
  html[data-theme="dark"] .login-history-events { border-color: #282b35; }
  html[data-theme="dark"] .login-history-day-total.is-active { background: rgba(47,186,131,.15); color: #55d39e; }
  html[data-theme="dark"] .login-history-day-total.is-idle { background: rgba(238,155,40,.16); color: #f0a741; }
  html[data-theme="dark"] .login-history-recognition { border-color: rgba(238,155,40,.42); background: linear-gradient(135deg,rgba(169,99,15,.3),rgba(169,99,15,.14)); color: #f0a741; }
  html[data-theme="dark"] .login-history-recognition:hover { border-color: rgba(240,167,65,.68); background: linear-gradient(135deg,rgba(169,99,15,.4),rgba(169,99,15,.2)); }
  html[data-theme="dark"] .login-history-close { border-color: #343842; color: #c9ccd4; }
  html[data-theme="dark"] .login-history-close:hover { border-color: #55c4b5; background: rgba(36,129,98,.16); color: #68cfc1; }
  html[data-theme="dark"] .audit-toolbar,
  html[data-theme="dark"] .audit-table-wrap { border-color: #282b35; background: #15171d; }
  html[data-theme="dark"] .audit-table th { border-color: #282b35; background: #111318; color: #8f939f; }
  html[data-theme="dark"] .audit-table td { border-color: #282b35; color: #e5e7ec; }
  html[data-theme="dark"] .audit-actor-name,
  html[data-theme="dark"] .audit-action { color: #f0f1f4; }
  html[data-theme="dark"] .audit-actor-login,
  html[data-theme="dark"] .audit-details,
  html[data-theme="dark"] .audit-summary-copy,
  html[data-theme="dark"] .audit-empty { color: #858997; }
  html[data-theme="dark"] .audit-refresh { border-color: #343842; color: #c9ccd4; }
  html[data-theme="dark"] .audit-refresh:hover { border-color: #55c4b5; color: #68cfc1; }
  html[data-theme="dark"] .audit-avatar,
  html[data-theme="dark"] .audit-section { background: rgba(67,183,168,.14); color: #68cfc1; }
  html[data-theme="dark"] .audit-date { color: #a3a7b2; }
  html[data-theme="dark"] .user-stat-card { border-color: #282b35; background: #15171d; }
  html[data-theme="dark"] .user-stat-card:hover { border-color: color-mix(in srgb, var(--user-accent) 62%, #282b35); box-shadow: 0 12px 30px rgba(0,0,0,.26); }
  html[data-theme="dark"] .journey-user-filter-button { border-color: #343741; background: #15171d; color: #a7abb5; }
  html[data-theme="dark"] .journey-user-filter-button:hover { border-color: #398d83; color: #74d2c6; }
  html[data-theme="dark"] .journey-user-filter-button.active { border-color: #43b7a8; background: rgba(67,183,168,.16); color: #79d6ca; }
  html[data-theme="dark"] .user-stat-label { color: var(--user-accent); }
  html[data-theme="dark"] .user-stat-value { color: #f2f3f6; }
  html[data-theme="dark"] .users-message-dialog { background: #15171d; border-color: #30333e; color: #e8e9ed; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
  html[data-theme="dark"] .access-table-wrap { background: #15171d; border-color: #282b35; }
  html[data-theme="dark"] .access-page-tabs { border-color: #30343e; background: #111319; }
  html[data-theme="dark"] .access-page-tab { color: #969ca8; }
  html[data-theme="dark"] .access-page-tab.active { background: #242832; color: #64cabe; box-shadow: none; }
  html[data-theme="dark"] .access-ai-connections { border-color: #282b35; background: #15171d; }
  html[data-theme="dark"] .access-ai-connections-head h2 { color: #eceef3; }
  html[data-theme="dark"] .access-ai-connections-head p { color: #969ca8; }
  html[data-theme="dark"] .access-ai-refresh,
  html[data-theme="dark"] .access-ai-disconnect { border-color: #363a45; background: #1e2129; }
  html[data-theme="dark"] .access-ai-note { background: #24213a; color: #bcb2f5; }
  html[data-theme="dark"] .access-ai-table-wrap { border-color: #2a2e37; }
  html[data-theme="dark"] .access-ai-table th { background: #1d2027; color: #969ca8; }
  html[data-theme="dark"] .access-ai-table td { border-color: #2a2e37; color: #d9dce3; }
  html[data-theme="dark"] .access-table th { background: #111318; border-color: #2a2d36; color: #8f939f; }
  html[data-theme="dark"] .access-filter-trigger:hover,
  html[data-theme="dark"] .access-filter-trigger.active,
  html[data-theme="dark"] .access-sort-trigger:hover,
  html[data-theme="dark"] .access-sort-trigger.active { color: #68cfc1; }
  html[data-theme="dark"] .access-filter-popover { border-color: #30343e; background: #17191f; color: #e5e7ec; box-shadow: 0 18px 48px rgba(0,0,0,.45); }
  html[data-theme="dark"] .access-filter-option:hover,
  html[data-theme="dark"] .access-filter-action:hover { background: #22252d; }
  html[data-theme="dark"] .access-filter-option-label { color: #e5e7ec; }
  html[data-theme="dark"] .access-filter-actions { border-color: #30343e; }
  html[data-theme="dark"] .access-table td { border-color: #282b35; color: #e5e7ec; }
  html[data-theme="dark"] .access-table th:first-child { background: #111318; box-shadow: 8px 0 16px -11px rgba(0,0,0,.9); }
  html[data-theme="dark"] .access-table td:first-child { background: #15171d; box-shadow: 8px 0 16px -11px rgba(0,0,0,.85); }
  html[data-theme="dark"] .access-table tbody tr:hover { background: #1b1e25; }
  html[data-theme="dark"] .access-table tbody tr:hover td:first-child { background: #1b1e25; }
  html[data-theme="dark"] .access-avatar { background: #262a34; color: #d8dae1; }
  html[data-theme="dark"] .access-user-name-input,
  html[data-theme="dark"] .access-user-contact-input { color: #e5e7ec; }
  html[data-theme="dark"] .access-user-contact-input { color: #9297a5; }
  html[data-theme="dark"] .access-password-input { color: #9297a5; }
  html[data-theme="dark"] .access-password-input.revealed { color: #e1e4eb; }
  html[data-theme="dark"] .access-user-name-input:hover,
  html[data-theme="dark"] .access-user-contact-input:hover,
  html[data-theme="dark"] .access-skill-input:hover { border-color: #3a3f4a; }
  html[data-theme="dark"] .access-user-name-input:focus,
  html[data-theme="dark"] .access-user-contact-input:focus,
  html[data-theme="dark"] .access-skill-input:focus { border-color: #43b7a8; background: #101217; }
  html[data-theme="dark"] .access-role-select { background: #111318; border-color: #30343e; color: #e5e7ec; }
  html[data-theme="dark"] .access-role-select:disabled { color: #9b8cff; }
  html[data-theme="dark"] .access-role-trigger,
  html[data-theme="dark"] .access-role-menu { background: #111318; border-color: #30343e; color: #e5e7ec; }
  html[data-theme="dark"] [data-access-user][data-profile-confirmed="0"] .access-role-select,
  html[data-theme="dark"] [data-access-user][data-profile-confirmed="0"] .access-role-trigger,
  html[data-theme="dark"] [data-access-user][data-profile-confirmed="0"] .access-skill-input,
  html[data-theme="dark"] [data-access-user][data-profile-confirmed="0"] .access-role-select:disabled,
  html[data-theme="dark"] [data-access-user][data-profile-confirmed="0"] .access-role-trigger:disabled { border-color: #30343e; background: #111318; color: #f1f2f5; opacity: 1; }
  html[data-theme="dark"] [data-access-user][data-profile-confirmed="1"] .access-role-select,
  html[data-theme="dark"] [data-access-user][data-profile-confirmed="1"] .access-role-trigger,
  html[data-theme="dark"] [data-access-user][data-profile-confirmed="1"] .access-skill-input,
  html[data-theme="dark"] [data-access-user][data-profile-confirmed="1"] .access-role-select:disabled,
  html[data-theme="dark"] [data-access-user][data-profile-confirmed="1"] .access-role-trigger:disabled { border-color: rgba(85,211,158,.26); background: rgba(67,183,168,.13); color: #68cfc1; opacity: 1; }
  html[data-theme="dark"] .access-role-menu-choice { color: #e5e7ec; }
  html[data-theme="dark"] .access-role-menu-item:hover { background: #20232b; }
  html[data-theme="dark"] .access-role-delete { color: #f07169; }
  html[data-theme="dark"] .access-role-delete:hover { background: rgba(231,76,60,.12); }
  html[data-theme="dark"] .access-role-menu-divider { background: #30343e; }
  html[data-theme="dark"] .access-new-role-editor { border-color: #30343e; background: #111318; box-shadow: 0 10px 28px rgba(0,0,0,.34); }
  html[data-theme="dark"] .access-new-role-input { border-color: #3a3f4a; background: #171a20; color: #f0f1f5; }
  html[data-theme="dark"] .access-new-role-action { border-color: #3a3f4a; background: #20232b; color: #c7cad2; }
  html[data-theme="dark"] .access-new-role-action.primary { border-color: #43b7a8; background: #43b7a8; color: #071411; }
  html[data-theme="dark"] .access-skill-chip { background: rgba(67,183,168,.13); color: #68cfc1; }
  html[data-theme="dark"] .access-skill-input { background: rgba(67,183,168,.13); color: #68cfc1; }
  html[data-theme="dark"] .access-password-input:focus { border-color: #43b7a8; background: #101217; }
  html[data-theme="dark"] .access-user-new { background: rgba(67,183,168,.06); }
  html[data-theme="dark"] .access-user-new td:first-child { background: #14211f; }
  html[data-theme="dark"] .access-delete-user { border-color: #623b3b; color: #f07a6f; }
  html[data-theme="dark"] .access-delete-user:hover { background: rgba(231,76,60,.12); }
  html[data-theme="dark"] .access-admin-badge { background: rgba(139,114,255,.13); color: #aa9aff; }
  html[data-theme="dark"] .crm-permission-notice { border-color: rgba(255,107,95,.42); background: #2a1d1f; color: #ff8c82; box-shadow: 0 18px 46px rgba(0,0,0,.48); }
  html[data-theme="dark"] .users-message-action,
  html[data-theme="dark"] .users-message-text,
  html[data-theme="dark"] .users-message-schedule select,
  html[data-theme="dark"] .users-message-schedule input,
  html[data-theme="dark"] .users-value-filter-popover { background: #15171d; border-color: #30333e; color: #e8e9ed; box-shadow: 0 16px 40px rgba(0,0,0,.42); }
  html[data-theme="dark"] .users-goal-pair.active { border-color: color-mix(in srgb, var(--goal-color) 68%, #282b35); border-left-color: var(--goal-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--goal-color) 18%, transparent), 0 10px 28px rgba(0,0,0,.26); }
  html[data-theme="dark"] .user-message-button { background: #20242b; border-color: #343944; color: #55c4b5; }
  html[data-theme="dark"] .user-message-button:hover { background: rgba(67,183,168,.14); border-color: #43b7a8; color: #7bd6ca; }
  html[data-theme="dark"] .users-th-label-button:hover,
  html[data-theme="dark"] .users-th-label-button.active,
  html[data-theme="dark"] .users-th-action:hover,
  html[data-theme="dark"] .users-th-action.active { background: #242730; border-color: #343741; color: #fff; }
  html[data-theme="dark"] .users-value-filter-option { color: #c4c7cf; }
  html[data-theme="dark"] .subscription-progress-na { color: #b77ae5; }
  html[data-theme="dark"] .users-value-filter-option:hover,
  html[data-theme="dark"] .users-value-filter-action:hover { background: #242730; color: #fff; }
  html[data-theme="dark"] .users-value-filter-actions { border-color: #30333e; }
  html[data-theme="dark"] .icon-btn:hover,
  html[data-theme="dark"] .filter-btn:hover,
  html[data-theme="dark"] .values-toggle:hover { background: #1d2028; color: #fff; }
  html[data-theme="dark"] .avatar,
  html[data-theme="dark"] .user-avatar { background: #272a33; color: #d7d9df; }
  html[data-theme="dark"] .period-tab.active,
  html[data-theme="dark"] .filter-btn.active { background: #e7e8ec; border-color: #e7e8ec; color: #111318; }
  html[data-theme="dark"] .period-tab:hover,
  html[data-theme="dark"] .panel-action:hover { color: #fff; }
  html[data-theme="dark"] .custom-period-field input { background: #101116; border-color: #30333e; color: #e8e9ed; color-scheme: dark; }
  html[data-theme="dark"] .custom-period-action { border-color: #30333e; color: #a7aab4; }
  html[data-theme="dark"] .custom-period-action:hover { color: #fff; }
  html[data-theme="dark"] .custom-period-action.primary { background: #e7e8ec; border-color: #e7e8ec; color: #111318; }
  html[data-theme="dark"] .goal-row,
  html[data-theme="dark"] .path-item,
  html[data-theme="dark"] .table th,
  html[data-theme="dark"] .table td { border-color: #282b35; }
  html[data-theme="dark"] .goal-row:hover,
  html[data-theme="dark"] .path-item:hover,
  html[data-theme="dark"] .ads-table tbody tr:hover { background: #191b22; }
  html[data-theme="dark"] .path-step { background: #242730; color: #c3c6ce; }
  html[data-theme="dark"] .path-step.end { background: #e7e8ec; color: #111318; }
  html[data-theme="dark"] .path-conversion-modes { border-color: #30333e; background: #101218; }
  html[data-theme="dark"] .path-conversion-mode { color: #8e929e; }
  html[data-theme="dark"] .path-conversion-mode:hover,
  html[data-theme="dark"] .paths-list-sort:hover { color: #fff; }
  html[data-theme="dark"] .path-conversion-mode.active { background: #292c35; color: #fff; box-shadow: none; }
  html[data-theme="dark"] .main-path-radial-segment path,
  html[data-theme="dark"] .main-path-radial-root circle { stroke: #15171d; }
  html[data-theme="dark"] .main-path-radial-auto-note { border-color: rgba(67,183,168,.3); background: rgba(67,183,168,.1); color: #8fc9bf; }
  html[data-theme="dark"] .main-path-radial-segment:focus-visible path,
  html[data-theme="dark"] .main-path-radial-root:focus-visible circle { stroke: #f1f2f4; }
  html[data-theme="dark"] .main-path-radial-tooltip { border-color: #3a3d48; background: rgba(28,31,39,.97); color: #f1f2f4; box-shadow: 0 10px 28px rgba(0,0,0,.38); }
  html[data-theme="dark"] .main-path-radial-tooltip-label,
  html[data-theme="dark"] .main-path-radial-tooltip-value.neutral { color: #a4a8b2; }
  html[data-theme="dark"] .main-path-radial-tooltip-kdi { border-top-color: #3a3d48; }
  html[data-theme="dark"] .main-path-radial-drilldown { background: #15171d; box-shadow: 0 0 0 1px #30333e, 0 18px 48px rgba(0,0,0,.38); }
  html[data-theme="dark"] .main-path-radial-drilldown-close { border-color: #363a45; background: rgba(28,31,39,.94); color: #c7cad2; box-shadow: 0 4px 14px rgba(0,0,0,.28); }
  html[data-theme="dark"] .main-path-radial-drilldown-close:hover { background: #292c35; color: #fff; }
  html[data-theme="dark"] .progress-bar { background: #272a33; }
  html[data-theme="dark"] .tag-green { background: rgba(39,174,96,.14); }
  html[data-theme="dark"] .tag-amber { background: rgba(243,156,18,.14); }
  html[data-theme="dark"] .tag-blue { background: rgba(41,128,185,.16); }
  html[data-theme="dark"] .ads-table th,
  html[data-theme="dark"] .ads-table td { border-color: #282b35; }
  html[data-theme="dark"] .ads-table th { color: #7f8390; }
  html[data-theme="dark"] .export-dialog { border-color: #30343e; background: #15171e; box-shadow: 0 28px 80px rgba(0,0,0,.58); }
  html[data-theme="dark"] .export-dialog-head { border-color: #2a2d36; }
  html[data-theme="dark"] .export-dialog-title { color: #f0f1f4; }
  html[data-theme="dark"] .export-dialog-close:hover { background: #22252e; color: #fff; }
  html[data-theme="dark"] .export-format { border-color: #30343e; background: #101218; }
  html[data-theme="dark"] .export-format-button.active { background: #292c35; color: #fff; box-shadow: none; }
  html[data-theme="dark"] .export-period-summary { background: rgba(67,183,168,.09); }
  html[data-theme="dark"] .export-field input,
  html[data-theme="dark"] .export-field select,
  html[data-theme="dark"] .export-data-option { border-color: #30343e; background: #101218; color: #d9dbe1; color-scheme: dark; }
  html[data-theme="dark"] .export-data-option:has(input:checked) { border-color: rgba(67,183,168,.52); background: rgba(67,183,168,.11); color: #67d4c6; }
  html[data-theme="dark"] .badge-dot { border-color: #15171d; }
  html[data-theme="dark"] .pv-header-mark { background: rgba(107,85,189,.16); color: #a997ef; }
  html[data-theme="dark"] .pv-metric-card.crown { border-color: rgba(221,177,48,.28); background: linear-gradient(135deg, rgba(255,196,45,.07), #15171d 66%); }
  html[data-theme="dark"] .pv-metric-label,
  html[data-theme="dark"] .pv-metric-note,
  html[data-theme="dark"] .pv-detail-row,
  html[data-theme="dark"] .pv-series-toggle { color: #8e929e; }
  html[data-theme="dark"] .pv-detail-row strong,
  html[data-theme="dark"] .pv-series-toggle strong { color: #e0e2e7; }
  html[data-theme="dark"] .pv-metric-details,
  html[data-theme="dark"] .pv-payments-table th,
  html[data-theme="dark"] .pv-payments-table td { border-color: #282b35; }
  html[data-theme="dark"] .pv-chart-ranges { background: #101116; border-color: #282b35; }
  html[data-theme="dark"] .pv-chart-range.active,
  html[data-theme="dark"] .pv-product-tab.active { background: #e7e8ec; border-color: #e7e8ec; color: #111318; }
  html[data-theme="dark"] .pv-product-tab:hover { color: #fff; }
  html[data-theme="dark"] .pv-product-tab.active:hover { color: #111318; }
  html[data-theme="dark"] .pv-tab-badge { background: rgba(17,19,24,.14); }
  html[data-theme="dark"] .pv-payments-table tbody tr:hover { background: #191b22; }
  html[data-theme="dark"] .pv-payment-avatar { background: #272a33; color: #d7d9df; }
  html[data-theme="dark"] .pv-user-chip { border-color: #30333e; color: #8f93a0; }
  html[data-theme="dark"] .journey-branch-tab:hover { color: #fff; }
  html[data-theme="dark"] .journey-branch-tab.active { background: #e7e8ec; border-color: #e7e8ec; color: #111318; }
  html[data-theme="dark"] .journey-column { background: linear-gradient(180deg,#111218 0%,#0f1015 100%); border-color: #2d303a; }
  html[data-theme="dark"] .journey-column-label { background: #1a1c23; color: #a4a8b3; }
  html[data-theme="dark"] .journey-node { background: linear-gradient(135deg,color-mix(in srgb,var(--node-color) 7%,#191b22),#171920 62%); }
  html[data-theme="dark"] .journey-node.goal { background: rgba(230,153,49,.08); }
  html[data-theme="dark"] .journey-node-next,
  html[data-theme="dark"] .journey-route-length { color: #777c89; }
  html[data-theme="dark"] .journey-route:hover { background: #191b22; }
  html[data-theme="dark"] .journey-route-step { background: color-mix(in srgb, var(--step-color) 16%, #171920); color: color-mix(in srgb, var(--step-color) 72%, #fff); }
  html[data-theme="dark"] .journey-node-name { color: #f0f1f4; }
  html[data-theme="dark"] .journey-node-traffic { border-color: rgba(79,174,232,.18); background: rgba(79,174,232,.09); color: #72b8e8; }
  html[data-theme="dark"] .journey-node-output-total { border-color: rgba(39,174,96,.2); background: rgba(39,174,96,.09); color: #43c77b; }
  html[data-theme="dark"] .journey-next-item { border-color: color-mix(in srgb,var(--node-color) 18%,#2d303a); background: color-mix(in srgb,var(--node-color) 8%,#181a21); }
  html[data-theme="dark"] .journey-next-output,
  html[data-theme="dark"] .journey-route-step-output,
  html[data-theme="dark"] .journey-detail-link-output { color: #72b8e8; }
  html[data-theme="dark"] .journey-endpoint-controls { border-color: #30333e; background: #15171d; }
  html[data-theme="dark"] .journey-endpoint-label { color: #e5e7eb; }
  html[data-theme="dark"] .journey-detail-view { background: #0e0f13; }
  html[data-theme="dark"] .journey-detail-back,
  html[data-theme="dark"] .journey-detail-close,
  html[data-theme="dark"] .journey-detail-canvas { background: #15171d; border-color: #282b35; color: #d9dbe1; }
  html[data-theme="dark"] .journey-detail-stream { background: #101116; border-color: #2d303a; }
  html[data-theme="dark"] .journey-detail-transition-card { border-color: #30333d; background: #15171d; }
  html[data-theme="dark"] .journey-detail-transition-card h2 { color: #e7e9ed; }
  html[data-theme="dark"] .journey-detail-transition-list span { background: #252832; color: #c4c8d0; }
  html[data-theme="dark"] .journey-detail-transition-list strong { color: #f0f1f3; }
  html[data-theme="dark"] .journey-detail-stage { background: color-mix(in srgb, var(--stage-color) 13%, #171920); border-color: color-mix(in srgb, var(--stage-color) 38%, #30333e); }
  html[data-theme="dark"] .journey-detail-stage-name { color: color-mix(in srgb, var(--stage-color) 72%, #fff); }
  html[data-theme="dark"] .journey-detail-stage-traffic,
  html[data-theme="dark"] .journey-detail-goal-traffic { color: #72b8e8; }
  html[data-theme="dark"] .journey-detail-goal { background: color-mix(in srgb, var(--goal-color) 10%, #15171d); border-color: color-mix(in srgb, var(--goal-color) 55%, #30333e); }
  html[data-theme="dark"] .goal-pair { background: #15171d; border-color: #282b35; border-left-color: var(--goal-color); box-shadow: none; }
  html[data-theme="dark"] .goal-pair .kpi-card { background: color-mix(in srgb, var(--goal-color) 7%, #15171d); border-right-color: #282b35; }
  html[data-theme="dark"] .goal-pair .kpi-label,
  html[data-theme="dark"] .goal-chart-title { color: #f1f2f5; }
  html[data-theme="dark"] .chart-type-toggle { border-color: #30343e; background: rgba(17,19,24,.72); }
  html[data-theme="dark"] .chart-type-button { color: #747a87; }
  html[data-theme="dark"] .chart-type-button:hover { color: #d7dae1; }
  html[data-theme="dark"] .chart-type-button.active { background: #292d37; color: #62cbbd; box-shadow: 0 1px 5px rgba(0,0,0,.32); }
  html[data-theme="dark"] .period-compare-button { border-left-color: #30333d; color: #9196a2; }
  html[data-theme="dark"] .period-compare-button:hover { color: #f1f2f4; }
  html[data-theme="dark"] .period-compare-button.active { color: #50c8a8; background: rgba(67,183,168,.12); }
  html[data-theme="dark"] .period-preset-popover { border-color: #30333d; background: #17191f; box-shadow: 0 18px 42px rgba(0,0,0,.38); }
  html[data-theme="dark"] .period-preset-title { color: #f0f1f4; }
  html[data-theme="dark"] .period-preset-close:hover { background: #242730; color: #fff; }
  html[data-theme="dark"] .period-preset-option { border-color: #30333d; background: #111218; color: #dfe1e6; }
  html[data-theme="dark"] .period-preset-option:hover,
  html[data-theme="dark"] .period-preset-option.active { border-color: rgba(85,211,158,.48); background: rgba(47,186,131,.1); }
  html[data-theme="dark"] .period-preset-range { color: #858997; }
  html[data-theme="dark"] .period-compare-popover { border-color: #30333d; background: #17191f; box-shadow: 0 18px 42px rgba(0,0,0,.38); }
  html[data-theme="dark"] .period-compare-title { color: #f0f1f4; }
  html[data-theme="dark"] .period-compare-close:hover { background: #242730; color: #fff; }
  html[data-theme="dark"] .period-compare-modes { border-color: #30333d; background: #111218; }
  html[data-theme="dark"] .period-compare-mode.active { background: #2a2d36; color: #f2f3f5; box-shadow: none; }
  html[data-theme="dark"] .period-compare-preset-card { border-color: #30333d; background: #111218; }
  html[data-theme="dark"] .period-compare-preset-card strong { color: #dfe1e6; }
  html[data-theme="dark"] .period-compare-range .custom-period-field input { border-color: #343741; background: #111218; color: #eceef1; color-scheme: dark; }
  html[data-theme="dark"] .period-compare-actions { border-top-color: #2b2e37; }
  html[data-theme="dark"] .period-compare-apply { background: #43b7a8; color: #0d1816; }
  html[data-theme="dark"] .goal-chart-aggregation-select { color: #58b7a8; background-image: linear-gradient(45deg, transparent 50%, #7d828e 50%), linear-gradient(135deg, #7d828e 50%, transparent 50%); }
  html[data-theme="dark"] .goal-chart-aggregation-select:hover { color: #78d0c3; }
  html[data-theme="dark"] .pv2-status-card { border-color:#282b35; border-left-color:var(--user-accent); background:#15171d; box-shadow:none; }
  html[data-theme="dark"] .pv2-status-card-summary { border-right-color:#282b35; background:color-mix(in srgb,var(--user-accent) 7%,#15171d); }
  html[data-theme="dark"] .pv2-status-card .user-stat-label,
  html[data-theme="dark"] .pv2-status-chart-head,
  html[data-theme="dark"] .pv2-status-chart-head strong { color:#f1f2f5; }
  html[data-theme="dark"] .pv2-status-card .user-stat-value { color:color-mix(in srgb,var(--user-accent) 78%,#fff); }
  html[data-theme="dark"] .pv2-status-chart-period { color:#858a96; }
  html[data-theme="dark"] .pv2-status-card[aria-pressed="true"] { border-color:color-mix(in srgb,var(--user-accent) 64%,#282b35); border-left-color:var(--user-accent); box-shadow:0 0 0 2px color-mix(in srgb,var(--user-accent) 28%,transparent); }
  html[data-theme="dark"] .pv2-tabs,
  html[data-theme="dark"] .pv2-kpi,
  html[data-theme="dark"] .pv2-table-wrap { border-color:#2c3039; background:#15171d; }
  html[data-theme="dark"] .pv2-tab { color:#dce9f4; }
  html[data-theme="dark"] .pv2-tab:hover { background:#20232b; color:#fff; }
  html[data-theme="dark"] .pv2-tab.active { background:#eceef2; color:#111318; }
  html[data-theme="dark"] .pv2-kpi-label,
  html[data-theme="dark"] .pv2-kpi-note,
  html[data-theme="dark"] .pv2-section-sub,
  html[data-theme="dark"] .pv2-panel-note,
  html[data-theme="dark"] .pv2-funnel-step { color:#969ba7; }
  html[data-theme="dark"] .pv2-bars { border-color:#2c3039; }
  html[data-theme="dark"] .pv2-bar-value { color:#b8bbc4; }
  html[data-theme="dark"] .pv2-progress { background:#292c34; }
  html[data-theme="dark"] .pv2-cohort-table th,
  html[data-theme="dark"] .pv2-cohort-table td,
  html[data-theme="dark"] .pv2-table th,
  html[data-theme="dark"] .pv2-table td { border-color:#292c35; }
  html[data-theme="dark"] .pv2-participants-table th { border-color:#282b35; color:#999; }
  html[data-theme="dark"] .pv2-participants-table td { border-color:#282b35; color:#e8e9ed; }
  html[data-theme="dark"] .pv2-participants-table th,
  html[data-theme="dark"] .pv2-participants-table .pv2-sticky-column { background:#15171d; box-shadow:1px 0 0 #282b35; }
  html[data-theme="dark"] .pv2-participant-filter-trigger:hover,
  html[data-theme="dark"] .pv2-participant-filter-trigger.active,
  html[data-theme="dark"] .pv2-participant-sort:hover,
  html[data-theme="dark"] .pv2-participant-sort.active { border-color:#3a3e48; background:#22252d; color:#f0f1f4; }
  html[data-theme="dark"] .pv2-master-filter.active { border-color:#43b7a8; background:rgba(67,183,168,.14); color:#68cfc1; }
  html[data-theme="dark"] .pv2-global-filter-popover { border-color:#30343e; background:#17191f; color:#e8eaf0; box-shadow:0 24px 64px rgba(0,0,0,.5); }
  html[data-theme="dark"] .pv2-global-filter-head,
  html[data-theme="dark"] .pv2-global-filter-footer { border-color:#30343e; }
  html[data-theme="dark"] .pv2-global-filter-fields { border-color:#30343e; background:#111318; }
  html[data-theme="dark"] .pv2-global-filter-field { color:#9da2ae; }
  html[data-theme="dark"] .pv2-global-filter-field:hover { background:#20232b; color:#f0f1f4; }
  html[data-theme="dark"] .pv2-global-filter-field.active { background:rgba(67,183,168,.14); color:#68cfc1; }
  html[data-theme="dark"] .pv2-global-filter-close:hover,
  html[data-theme="dark"] .pv2-global-filter-option:hover { background:#23262e; color:#f0f1f4; }
  html[data-theme="dark"] .pv2-global-filter-search,
  html[data-theme="dark"] .pv2-global-filter-action { border-color:#343844; background:#111318; color:#e7e9ee; color-scheme:dark; }
  html[data-theme="dark"] .pv2-global-filter-option { color:#d3d6de; }
  html[data-theme="dark"] .pv2-global-filter-action.primary { border-color:#43b7a8; background:#43b7a8; color:#071411; }
  html[data-theme="dark"] .pv2-signal,
  html[data-theme="dark"] .pv2-bridge-item { border-color:#2c3039; background:#111318; color:#b7bbc5; }
  html[data-theme="dark"] .pv2-dashboard-group-title,
  html[data-theme="dark"] .pv2-hero-label,
  html[data-theme="dark"] .pv2-op-label,
  html[data-theme="dark"] .pv2-op-value,
  html[data-theme="dark"] .pv2-retention-stat strong { color:#f0f1f4; }
  html[data-theme="dark"] .pv2-hero-row,
  html[data-theme="dark"] .pv2-op-card { border-color:#2c3039; background:#15171d; }
  html[data-theme="dark"] .pv2-hero-summary { border-color:#2c3039; background:color-mix(in srgb,var(--pv2-accent) 10%,#15171d); }
  html[data-theme="dark"] .pv2-retention-stat { border-color:#2c3039; background:#111318; }
  html[data-theme="dark"] .pv2-engagement-card { border-color:color-mix(in srgb,var(--pv2-accent) 30%,#2c3039); background:color-mix(in srgb,var(--pv2-accent) 8%,#111318); }
  html[data-theme="dark"] .pv2-signal.emphasis { border-color:color-mix(in srgb,var(--signal) 34%,#2c3039); background:color-mix(in srgb,var(--signal) 8%,#111318); }
  html[data-theme="dark"] .pv2-dashboard-empty { border-color:#343844; background:#111318; color:#979ca8; }
  html[data-theme="dark"] .pv2-input,
  html[data-theme="dark"] .pv2-select,
  html[data-theme="dark"] .pv2-button { border-color:#30343e; background:#111318; color:#d7d9df; color-scheme:dark; }
  html[data-theme="dark"] .pv2-button.primary { border-color:#43b7a8; background:#43b7a8; color:#071411; }
  html[data-theme="dark"] .pv2-table tbody tr:hover { background:#1a1d24; }
  html[data-theme="dark"] .pv2-participants-table tbody tr:hover td:first-child { background:#1a1d24; }
  html[data-theme="dark"] .pv2-empty-note { border-color:#343844; color:#999eaa; }
  html[data-theme="dark"] .pv2-period-pill { color:#62cdbf; }
  html[data-theme="dark"] .pv2-finance-dashboard {
    --finance-surface:#15171d;
    --finance-surface-soft:#111318;
    --finance-surface-subtle:#1d2027;
    --finance-border:#2c3039;
    --finance-border-strong:#30343e;
    --finance-track:#292c34;
    --finance-heading:#f2f3f5;
    --finance-text:#f0f1f4;
    --finance-label:#aeb3be;
    --finance-muted:#9298a5;
    --finance-soft-text:#858c99;
    --finance-chart-text:#c0c4ce;
  }
  html[data-theme="dark"] .pv2-events-hero { border-color:#2d333d; background:linear-gradient(135deg,#14201f 0%,#1b1925 58%,#241e17 100%); }
  html[data-theme="dark"] .pv2-events-hero h2,
  html[data-theme="dark"] .pv2-events-hero-summary strong,
  html[data-theme="dark"] .pv2-events-module-title,
  html[data-theme="dark"] .pv2-events-calendar-period strong,
  html[data-theme="dark"] .pv2-events-event-main h4,
  html[data-theme="dark"] .pv2-events-event-stats strong,
  html[data-theme="dark"] .pv2-events-popular-card h4,
  html[data-theme="dark"] .pv2-events-funnel-step strong,
  html[data-theme="dark"] .pv2-events-recording-name strong { color:#eef0f4; }
  html[data-theme="dark"] .pv2-events-hero p,
  html[data-theme="dark"] .pv2-events-hero-summary span,
  html[data-theme="dark"] .pv2-events-module-note,
  html[data-theme="dark"] .pv2-events-calendar-period span,
  html[data-theme="dark"] .pv2-events-event-meta,
  html[data-theme="dark"] .pv2-events-event-stats,
  html[data-theme="dark"] .pv2-events-kpi span,
  html[data-theme="dark"] .pv2-events-kpi small,
  html[data-theme="dark"] .pv2-events-popular-card p,
  html[data-theme="dark"] .pv2-events-funnel-label,
  html[data-theme="dark"] .pv2-events-funnel-step small,
  html[data-theme="dark"] .pv2-events-funnel-summary,
  html[data-theme="dark"] .pv2-events-recording-name span { color:#9299a5; }
  html[data-theme="dark"] .pv2-events-hero-summary div { border-color:rgba(89,199,184,.18); background:rgba(17,19,24,.62); }
  html[data-theme="dark"] .pv2-events-notice { border-color:rgba(89,199,184,.32); background:rgba(67,183,168,.11); color:#72cfc3; }
  html[data-theme="dark"] .pv2-events-module { border-color:color-mix(in srgb,var(--events-accent) 26%,#2c3039); background:#15171d; }
  html[data-theme="dark"] .pv2-events-filter { border-color:#343844; background:#111318; color:#a1a6b0; }
  html[data-theme="dark"] .pv2-events-filter:hover { border-color:color-mix(in srgb,var(--events-accent) 58%,#343844); color:#f0f1f4; }
  html[data-theme="dark"] .pv2-events-filter.active { border-color:var(--events-accent); background:color-mix(in srgb,var(--events-accent) 14%,#111318); color:color-mix(in srgb,var(--events-accent) 78%,#eef0f4); }
  html[data-theme="dark"] .pv2-events-event-card { border-color:color-mix(in srgb,var(--event-type) 28%,#2c3039); background:color-mix(in srgb,var(--event-type) 7%,#111318); }
  html[data-theme="dark"] .pv2-events-event-date { background:color-mix(in srgb,var(--event-type) 13%,#171920); }
  html[data-theme="dark"] .pv2-events-event-date time,
  html[data-theme="dark"] .pv2-events-event-meta strong { color:#b2b7c0; }
  html[data-theme="dark"] .pv2-events-resource { border-color:color-mix(in srgb,var(--events-accent) 34%,#343844); background:#111318; color:color-mix(in srgb,var(--events-accent) 75%,#eef0f4); }
  html[data-theme="dark"] .pv2-events-resource:hover { border-color:var(--events-accent); background:color-mix(in srgb,var(--events-accent) 10%,#111318); }
  html[data-theme="dark"] .pv2-events-kpi,
  html[data-theme="dark"] .pv2-events-inline-callout,
  html[data-theme="dark"] .pv2-events-popular-card,
  html[data-theme="dark"] .pv2-events-funnel-step { border-color:color-mix(in srgb,var(--events-accent) 28%,#2c3039); background:color-mix(in srgb,var(--events-accent) 7%,#111318); }
  html[data-theme="dark"] .pv2-events-subpanel { border-color:#2d313a; background:#111318; }
  html[data-theme="dark"] .pv2-events-subpanel-head strong,
  html[data-theme="dark"] .pv2-events-bar-row strong,
  html[data-theme="dark"] .pv2-events-source strong,
  html[data-theme="dark"] .pv2-events-recording-row > strong { color:#c8cbd2; }
  html[data-theme="dark"] .pv2-events-subpanel-head span,
  html[data-theme="dark"] .pv2-events-bar-row,
  html[data-theme="dark"] .pv2-events-source { color:#9298a3; }
  html[data-theme="dark"] .pv2-events-source { background:#20232b; }
  html[data-theme="dark"] .pv2-events-module progress,
  html[data-theme="dark"] .pv2-events-module progress::-webkit-progress-bar { background:#292d35; }
  html[data-theme="dark"] .pv2-events-funnel-summary { border-color:#2d313a; }
  html[data-theme="dark"] .pv2-events-recordings-wrap { border-color:#30343e; }
  html[data-theme="dark"] .pv2-events-recording-row { border-color:#2b2f38; color:#b8bdc7; }
  html[data-theme="dark"] .pv2-events-recording-head { background:#111318; color:#9399a4; }
  html[data-theme="dark"] .pv2-passport-hero { border-color:#2d333d; background:linear-gradient(135deg,#14201f 0%,#171e28 52%,#241e17 100%); }
  html[data-theme="dark"] .pv2-passport-hero h2,
  html[data-theme="dark"] .pv2-passport-hero-meta strong,
  html[data-theme="dark"] .pv2-passport-module-title,
  html[data-theme="dark"] .pv2-passport-offer-lead strong,
  html[data-theme="dark"] .pv2-passport-tariff h4,
  html[data-theme="dark"] .pv2-passport-onboarding-step h4,
  html[data-theme="dark"] .pv2-passport-renewal-card h4,
  html[data-theme="dark"] .pv2-passport-journey-step h4 { color:#eef0f4; }
  html[data-theme="dark"] .pv2-passport-hero p,
  html[data-theme="dark"] .pv2-passport-hero-meta small,
  html[data-theme="dark"] .pv2-passport-module-note,
  html[data-theme="dark"] .pv2-passport-offer-fact dd,
  html[data-theme="dark"] .pv2-passport-check-list li,
  html[data-theme="dark"] .pv2-passport-tariff p,
  html[data-theme="dark"] .pv2-passport-onboarding-step p,
  html[data-theme="dark"] .pv2-passport-renewal-card p,
  html[data-theme="dark"] .pv2-passport-journey-step p,
  html[data-theme="dark"] .pv2-passport-hypothesis dd,
  html[data-theme="dark"] .pv2-passport-reference-note { color:#9299a5; }
  html[data-theme="dark"] .pv2-passport-module { border-color:color-mix(in srgb,var(--passport-accent) 26%,#2c3039); background:#15171d; }
  html[data-theme="dark"] .pv2-passport-offer-lead { background:color-mix(in srgb,var(--passport-accent) 9%,#111318); }
  html[data-theme="dark"] .pv2-passport-offer-fact { background:#111318; }
  html[data-theme="dark"] .pv2-passport-offer-bottom h4,
  html[data-theme="dark"] .pv2-passport-offer-callouts strong,
  html[data-theme="dark"] .pv2-passport-condition dd,
  html[data-theme="dark"] .pv2-passport-hypothesis-metrics strong { color:#c8cbd2; }
  html[data-theme="dark"] .pv2-passport-offer-callouts article { border-color:color-mix(in srgb,var(--passport-accent) 27%,#2c3039); background:color-mix(in srgb,var(--passport-accent) 6%,#111318); }
  html[data-theme="dark"] .pv2-passport-tariff { border-color:color-mix(in srgb,var(--tariff-color) 30%,#2c3039); background:color-mix(in srgb,var(--tariff-color) 7%,#111318); }
  html[data-theme="dark"] .pv2-passport-condition { background:#20232b; }
  html[data-theme="dark"] .pv2-passport-condition dt,
  html[data-theme="dark"] .pv2-passport-step-top small,
  html[data-theme="dark"] .pv2-passport-hypothesis dt,
  html[data-theme="dark"] .pv2-passport-hypothesis-metrics span { color:#9298a3; }
  html[data-theme="dark"] .pv2-passport-onboarding-step,
  html[data-theme="dark"] .pv2-passport-renewal-card,
  html[data-theme="dark"] .pv2-passport-journey-step,
  html[data-theme="dark"] .pv2-passport-hypothesis { border-color:color-mix(in srgb,var(--passport-accent) 28%,#2c3039); background:color-mix(in srgb,var(--passport-accent) 7%,#111318); }
  html[data-theme="dark"] .pv2-passport-hypothesis-head,
  html[data-theme="dark"] .pv2-passport-reference-note { border-color:#2d313a; }
  html[data-theme="dark"] .pv2-passport-hypothesis-metrics div { background:#20232b; }
  html[data-theme="dark"] .pv2-marketing-hero { border-color:#2d333d; background:linear-gradient(135deg,#14201f 0%,#171e28 48%,#241d16 100%); }
  html[data-theme="dark"] .pv2-marketing-hero h2,
  html[data-theme="dark"] .pv2-marketing-hero-kpis strong,
  html[data-theme="dark"] .pv2-marketing-module-title,
  html[data-theme="dark"] .pv2-marketing-source-head h4,
  html[data-theme="dark"] .pv2-marketing-funnel-stage h4,
  html[data-theme="dark"] .pv2-marketing-funnel-stage strong,
  html[data-theme="dark"] .pv2-marketing-table td:first-child,
  html[data-theme="dark"] .pv2-marketing-table td > strong { color:#eef0f4; }
  html[data-theme="dark"] .pv2-marketing-hero p,
  html[data-theme="dark"] .pv2-marketing-hero-kpis span,
  html[data-theme="dark"] .pv2-marketing-module-note,
  html[data-theme="dark"] .pv2-marketing-source-card > small,
  html[data-theme="dark"] .pv2-marketing-source-foot,
  html[data-theme="dark"] .pv2-marketing-funnel-stage small,
  html[data-theme="dark"] .pv2-marketing-funnel-summary,
  html[data-theme="dark"] .pv2-marketing-cost-card > small,
  html[data-theme="dark"] .pv2-marketing-conversion-card > p { color:#9299a5; }
  html[data-theme="dark"] .pv2-marketing-hero-period { border-color:rgba(89,199,184,.22); background:rgba(17,19,24,.62); color:#72cfc3; }
  html[data-theme="dark"] .pv2-marketing-hero-kpis div { border-color:rgba(89,199,184,.18); background:rgba(17,19,24,.62); }
  html[data-theme="dark"] .pv2-marketing-module { border-color:color-mix(in srgb,var(--marketing-accent) 28%,#2c3039); background:#15171d; }
  html[data-theme="dark"] .pv2-marketing-source-card { border-color:color-mix(in srgb,var(--marketing-source) 31%,#2c3039); background:color-mix(in srgb,var(--marketing-source) 8%,#111318); }
  html[data-theme="dark"] .pv2-marketing-module progress,
  html[data-theme="dark"] .pv2-marketing-module progress::-webkit-progress-bar { background:#292d35; }
  html[data-theme="dark"] .pv2-marketing-funnel-stage,
  html[data-theme="dark"] .pv2-marketing-conversion-card { border-color:color-mix(in srgb,var(--marketing-accent) 30%,#2c3039); background:color-mix(in srgb,var(--marketing-accent) 8%,#111318); }
  html[data-theme="dark"] .pv2-marketing-funnel-summary { border-color:#2d313a; }
  html[data-theme="dark"] .pv2-marketing-cost-card { border-color:color-mix(in srgb,var(--cost-color) 31%,#2c3039); background:color-mix(in srgb,var(--cost-color) 8%,#111318); }
  html[data-theme="dark"] .pv2-marketing-cost-card > span,
  html[data-theme="dark"] .pv2-marketing-conversion-card > div span,
  html[data-theme="dark"] .pv2-marketing-conversion-card > small { color:#b4b9c2; }
  html[data-theme="dark"] .pv2-marketing-formula-note { background:#20232b; color:#a1a7b1; }
  html[data-theme="dark"] .pv2-marketing-table-wrap { border-color:#30343e; }
  html[data-theme="dark"] .pv2-marketing-table th { background:#111318; color:#9399a4; }
  html[data-theme="dark"] .pv2-marketing-table th,
  html[data-theme="dark"] .pv2-marketing-table td { border-color:#2b2f38; }
  html[data-theme="dark"] .pv2-marketing-table td { color:#c0c4cc; }
  html[data-theme="dark"] .pv2-marketing-table tbody tr:hover { background:color-mix(in srgb,var(--marketing-source) 9%,#111318); }
  html[data-theme="dark"] .pv2-surveys-hero { border-color:#34303f; background:linear-gradient(135deg,#1d1929 0%,#14201f 50%,#241d16 100%); }
  html[data-theme="dark"] .pv2-surveys-hero h2,
  html[data-theme="dark"] .pv2-surveys-hero-kpis strong,
  html[data-theme="dark"] .pv2-surveys-module-title,
  html[data-theme="dark"] .pv2-surveys-subhead strong,
  html[data-theme="dark"] .pv2-surveys-nps-segment span,
  html[data-theme="dark"] .pv2-surveys-method-card h4,
  html[data-theme="dark"] .pv2-surveys-feedback-card h4,
  html[data-theme="dark"] .pv2-surveys-topic-card h4 { color:#eef0f4; }
  html[data-theme="dark"] .pv2-surveys-hero p,
  html[data-theme="dark"] .pv2-surveys-hero-kpis span,
  html[data-theme="dark"] .pv2-surveys-module-note,
  html[data-theme="dark"] .pv2-surveys-trend-item span,
  html[data-theme="dark"] .pv2-surveys-nps-segment small,
  html[data-theme="dark"] .pv2-surveys-method-card > small,
  html[data-theme="dark"] .pv2-surveys-method-card dt,
  html[data-theme="dark"] .pv2-surveys-feedback-card > div span,
  html[data-theme="dark"] .pv2-surveys-feedback-card p,
  html[data-theme="dark"] .pv2-surveys-topic-card > span,
  html[data-theme="dark"] .pv2-surveys-data-note { color:#9299a5; }
  html[data-theme="dark"] .pv2-surveys-hero-period { border-color:rgba(157,121,239,.28); background:rgba(17,19,24,.62); color:#b39af6; }
  html[data-theme="dark"] .pv2-surveys-hero-kpis div { border-color:rgba(157,121,239,.2); background:rgba(17,19,24,.62); }
  html[data-theme="dark"] .pv2-surveys-module { border-color:color-mix(in srgb,var(--surveys-accent) 29%,#2c3039); background:#15171d; }
  html[data-theme="dark"] .pv2-surveys-module progress,
  html[data-theme="dark"] .pv2-surveys-module progress::-webkit-progress-bar { background:#292d35; }
  html[data-theme="dark"] .pv2-surveys-trend { border-color:#3a344c; background:#111318; }
  html[data-theme="dark"] .pv2-surveys-nps-segment,
  html[data-theme="dark"] .pv2-surveys-method-card,
  html[data-theme="dark"] .pv2-surveys-feedback-card,
  html[data-theme="dark"] .pv2-surveys-topic-card { border-color:color-mix(in srgb,var(--surveys-card) 32%,#2c3039); background:color-mix(in srgb,var(--surveys-card) 8%,#111318); }
  html[data-theme="dark"] .pv2-surveys-nps-segment > strong { color:#d5d8de; }
  html[data-theme="dark"] .pv2-surveys-collection-summary { background:color-mix(in srgb,var(--surveys-accent) 10%,#111318); color:#a1a7b1; }
  html[data-theme="dark"] .pv2-surveys-method-card dl div { border-color:color-mix(in srgb,var(--surveys-card) 20%,#30343e); }
  html[data-theme="dark"] .pv2-surveys-method-card dd { color:#c1c5cd; }
  html[data-theme="dark"] .pv2-surveys-churn-row { background:color-mix(in srgb,var(--surveys-accent) 8%,#111318); }
  html[data-theme="dark"] .pv2-surveys-churn-row > span { color:#bec2ca; }
  html[data-theme="dark"] .pv2-surveys-churn-row > strong { color:#eef0f4; }

  @media (max-width:700px) {
    .pv2-global-filter-popover { width:calc(100vw - 16px); }
    .pv2-global-filter-body { grid-template-columns:1fr; height:min(560px,calc(100vh - 135px)); }
    .pv2-global-filter-fields { display:flex; gap:5px; overflow-x:auto; overflow-y:hidden; border-right:0; border-bottom:1px solid #e8eaee; }
    .pv2-global-filter-field { width:auto; flex:0 0 auto; white-space:nowrap; }
    html[data-theme="dark"] .pv2-global-filter-fields { border-color:#30343e; }
  }
