:root {
  --theme-bg: #f4f6fa;
  --theme-surface: #ffffff;
  --theme-surface-soft: #f8fafc;
  --theme-border: #dde4ee;
  --theme-text: #1f2a3d;
  --theme-muted: #748198;
}

.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  padding: 0 13px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 2px 7px rgba(15, 23, 42, .05);
  color: #526074;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover { border-color: #c7d2fe; background: #eef2ff; color: #4f46e5; transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 3px solid rgba(99, 102, 241, .22); outline-offset: 2px; }
.theme-toggle-mobile { width: 38px; min-height: 38px; padding: 0; }
.theme-toggle-login { position: fixed; z-index: 8; top: 22px; right: 24px; }

html[data-theme="dark"] {
  --theme-bg: #0b1120;
  --theme-surface: #111827;
  --theme-surface-soft: #172033;
  --theme-border: #2a374b;
  --theme-text: #e7edf7;
  --theme-muted: #98a6bb;
  color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .content-wrap,
html[data-theme="dark"] .tab-view { background: var(--theme-bg); color: var(--theme-text); }

html[data-theme="dark"] .page-header {
  border-bottom-color: var(--theme-border);
  background: rgba(11, 17, 32, .9);
}

html[data-theme="dark"] .mobile-bar { border-color: var(--theme-border); background: rgba(11, 17, 32, .92); }
html[data-theme="dark"] .mobile-brand { color: var(--theme-text); }
html[data-theme="dark"] .mobile-nav .nav-item { color: #94a3b8; }
html[data-theme="dark"] .mobile-nav .nav-item:hover,
html[data-theme="dark"] .mobile-nav .nav-item.active { border-color: #354258; background: #172033; color: #a5b4fc; }
html[data-theme="dark"] .mobile-logout { border-color: var(--theme-border); background: #172033; color: #aeb9ca; }

html[data-theme="dark"] .page-title,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .panel-title,
html[data-theme="dark"] .modal-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 { color: var(--theme-text); }

html[data-theme="dark"] .page-subtitle,
html[data-theme="dark"] .section-copy,
html[data-theme="dark"] .modal-copy,
html[data-theme="dark"] .panel-copy,
html[data-theme="dark"] .form-help,
html[data-theme="dark"] small { color: var(--theme-muted); }

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .notification-bell {
  border-color: var(--theme-border);
  background: #172033;
  color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .icon-button:hover { border-color: #4f5f78; background: #202b40; color: #a5b4fc; }

html[data-theme="dark"] .panel,
html[data-theme="dark"] .table-panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .settings-navigation,
html[data-theme="dark"] .settings-workspace-card,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .required-password-card {
  border-color: var(--theme-border);
  background: var(--theme-surface);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .control,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .login-input,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  border-color: #334155;
  background: #0f172a;
  color: var(--theme-text);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #69778c; }

html[data-theme="dark"] .control:hover,
html[data-theme="dark"] .form-control:hover,
html[data-theme="dark"] .login-input:hover { border-color: #4b5a70; }

html[data-theme="dark"] .control:focus,
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .login-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .18);
}

html[data-theme="dark"] .form-label,
html[data-theme="dark"] label { color: #cbd5e1; }

html[data-theme="dark"] .data-table,
html[data-theme="dark"] .data-table tbody,
html[data-theme="dark"] .data-table tr { background: transparent; }
html[data-theme="dark"] .data-table thead,
html[data-theme="dark"] .data-table th { background: #172033; color: #9eabc0; }
html[data-theme="dark"] .data-table td { border-bottom-color: #253247; color: #dbe3ef; }
html[data-theme="dark"] .data-table tbody tr:hover { background: rgba(99, 102, 241, .09); }
html[data-theme="dark"] .data-table th[data-sortable="true"]:hover,
html[data-theme="dark"] .data-table th[data-sortable="true"].is-sorted { background: #202b40; color: #a5b4fc; }

html[data-theme="dark"] .modal-actions {
  border-top-color: var(--theme-border);
  background: rgba(17, 24, 39, .94);
}
html[data-theme="dark"] .modal-close { color: #9aa7ba; }
html[data-theme="dark"] .modal-close:hover { border-color: #475569; background: #202b40; color: #fff; }

html[data-theme="dark"] .settings-navigation-modern { background: linear-gradient(180deg, #111827, #0f172a); }
html[data-theme="dark"] .settings-navigation-head { border-bottom-color: var(--theme-border); }
html[data-theme="dark"] .settings-navigation-head span,
html[data-theme="dark"] .settings-navigation-modern .settings-nav-item strong,
html[data-theme="dark"] .settings-nav-group-toggle > span { color: #c7d0dd; }
html[data-theme="dark"] .settings-nav-group.open { border-color: #303d50; background: #141d2d; }
html[data-theme="dark"] .settings-nav-group.has-active { border-color: #3e4776; background: #191f3a; }
html[data-theme="dark"] .settings-navigation-modern .settings-nav-icon { background: #202b40; color: #9ca9bc; }
html[data-theme="dark"] .settings-navigation-modern button.settings-nav-item:hover,
html[data-theme="dark"] .settings-navigation-modern button.settings-nav-item.active { border-color: #414b79; background: #202747; }
html[data-theme="dark"] .settings-navigation-modern .settings-nav-item.active strong { color: #c7d2fe; }
html[data-theme="dark"] .settings-navigation-note,
html[data-theme="dark"] .settings-secret-status { border-color: var(--theme-border); background: #172033; }
html[data-theme="dark"] .settings-overview article,
html[data-theme="dark"] .settings-feature-toggle { border-color: var(--theme-border); background: #151e2e; }
html[data-theme="dark"] .settings-overview strong,
html[data-theme="dark"] .settings-feature-toggle strong,
html[data-theme="dark"] .settings-save-state strong { color: #dce4ef; }
html[data-theme="dark"] .settings-save-bar { border-color: var(--theme-border); background: rgba(17, 24, 39, .95); box-shadow: 0 20px 50px rgba(0, 0, 0, .32); }
html[data-theme="dark"] .settings-input-suffix > span,
html[data-theme="dark"] .settings-feature-state { background: #263247; color: #bac5d4; }

html[data-theme="dark"] .user-management-hero,
html[data-theme="dark"] .user-management-panel,
html[data-theme="dark"] .user-management-overview-card,
html[data-theme="dark"] .user-management-toolbar,
html[data-theme="dark"] .user-management-table-panel,
html[data-theme="dark"] .user-management-role-note,
html[data-theme="dark"] .user-row-action-menu {
  border-color: var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
}
html[data-theme="dark"] .user-management-view { --um-ink: #e7edf7; --um-muted: #98a6bb; --um-border: #2a374b; }
html[data-theme="dark"] .user-management-table thead,
html[data-theme="dark"] .user-management-table th { background: #172033; }
html[data-theme="dark"] .user-management-table td { border-color: #253247; }
html[data-theme="dark"] .user-management-table tbody tr:hover { background: #151f32; }
html[data-theme="dark"] .user-management-panel-heading,
html[data-theme="dark"] .user-management-overview-card > header { border-color: var(--theme-border); background: #151e2e; }
html[data-theme="dark"] .user-management-stats article { border-color: var(--theme-border); background: #172033; }
html[data-theme="dark"] .user-management-attention-item,
html[data-theme="dark"] .user-management-role-row,
html[data-theme="dark"] .user-row-action-menu-head { border-color: #2a374b; }
html[data-theme="dark"] .user-management-attention-item:hover { background: #172033; }
html[data-theme="dark"] .user-row-action-menu > button { color: #ccd5e2; }
html[data-theme="dark"] .user-row-action-menu > button:hover { background: #202b40; color: #fff; }
html[data-theme="dark"] .user-action-menu-trigger { border-color: var(--theme-border); background: #172033; color: #aeb9ca; }
html[data-theme="dark"] .user-action-menu-trigger:hover,
html[data-theme="dark"] .user-action-menu-trigger[aria-expanded="true"] { border-color: #545d99; background: #242a4a; color: #c7d2fe; }

html[data-theme="dark"] .team-module-header,
html[data-theme="dark"] .team-subnav,
html[data-theme="dark"] .team-panel,
html[data-theme="dark"] .team-calendar,
html[data-theme="dark"] .team-calendar-agenda,
html[data-theme="dark"] .team-event,
html[data-theme="dark"] .team-task,
html[data-theme="dark"] .team-chat-sidebar,
html[data-theme="dark"] .team-chat-main,
html[data-theme="dark"] .team-chat-compose,
html[data-theme="dark"] .team-tool-dialog,
html[data-theme="dark"] .team-calendar-day {
  border-color: var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
}
html[data-theme="dark"] .team-calendar-day:hover,
html[data-theme="dark"] .team-subnav button:hover,
html[data-theme="dark"] .team-subnav button.active { background: #202b40; }
html[data-theme="dark"] .team-live-chat .team-chat-form,
html[data-theme="dark"] .team-chat-compose-shell,
html[data-theme="dark"] .team-chat-compose-shell > footer,
html[data-theme="dark"] .team-live-chat .team-chat-form .team-chat-compose-shell > textarea,
html[data-theme="dark"] .team-customer-chat .team-chat-main > header,
html[data-theme="dark"] .team-customer-chat .team-chat-messages,
html[data-theme="dark"] .team-mention-suggestions > header,
html[data-theme="dark"] .team-event-attendees,
html[data-theme="dark"] #teamRealtimeModal form > label,
html[data-theme="dark"] .team-cancel-summary,
html[data-theme="dark"] .team-realtime-summary,
html[data-theme="dark"] .team-realtime-steps article,
html[data-theme="dark"] .team-realtime-setup-card,
html[data-theme="dark"] .team-realtime-facts > span,
html[data-theme="dark"] .team-realtime-plesk-path,
html[data-theme="dark"] .team-tool-check,
html[data-theme="dark"] .team-room-card { border-color: var(--theme-border); background: #151e2e; }
html[data-theme="dark"] .team-event-attendees label,
html[data-theme="dark"] .team-mention-button,
html[data-theme="dark"] .team-chat-compose-actions kbd { border-color: #354258; background: #172033; color: #ccd5e2; }
html[data-theme="dark"] .team-tool-dialog > header,
html[data-theme="dark"] .team-cancel-modal-card .modal-head { border-color: var(--theme-border); background: linear-gradient(135deg, #172033, #111827); }
html[data-theme="dark"] .team-cancel-modal-card .modal-actions { border-color: var(--theme-border); background: var(--theme-surface); }
html[data-theme="dark"] .team-live-chat .team-chat-message > div:has(.team-chat-poll),
html[data-theme="dark"] .team-chat-poll,
html[data-theme="dark"] .team-chat-poll .team-poll-option { border-color: #37445a !important; background: #172033 !important; color: #dbe4ef !important; }
html[data-theme="dark"] .team-chat-poll > header strong { color: #e7edf7 !important; }

html[data-theme="dark"] .key-rotation-panel,
html[data-theme="dark"] .key-rotation-card,
html[data-theme="dark"] .key-rotation-progress,
html[data-theme="dark"] .key-rotation-scope article,
html[data-theme="dark"] .product-overview article,
html[data-theme="dark"] .customer-hosting-card,
html[data-theme="dark"] .customer-hosting-details,
html[data-theme="dark"] .booking-steps,
html[data-theme="dark"] .booking-content,
html[data-theme="dark"] .booking-payment-grid label,
html[data-theme="dark"] .booking-payment-order,
html[data-theme="dark"] .booking-comparison-scroll,
html[data-theme="dark"] .booking-checkout > section,
html[data-theme="dark"] .booking-cart,
html[data-theme="dark"] .booking-provisioning,
html[data-theme="dark"] .admin-my-products-section,
html[data-theme="dark"] .admin-my-product-card > header,
html[data-theme="dark"] .product-provisioning-choice label,
html[data-theme="dark"] .ticket-stats article,
html[data-theme="dark"] .broadcast-audience,
html[data-theme="dark"] .broadcast-composer,
html[data-theme="dark"] .broadcast-review,
html[data-theme="dark"] .broadcast-layout-option,
html[data-theme="dark"] .broadcast-review-delivery article,
html[data-theme="dark"] .broadcast-all-options label > span,
html[data-theme="dark"] .ticket-message > div:last-child,
html[data-theme="dark"] .invoice-automation-panel,
html[data-theme="dark"] .template-studio,
html[data-theme="dark"] .invoice-template-manager,
html[data-theme="dark"] .software-update-install-phases article,
html[data-theme="dark"] .software-update-detail-grid > section,
html[data-theme="dark"] .software-update-detail-files,
html[data-theme="dark"] .system-analysis-summary article,
html[data-theme="dark"] .system-analysis-result-group,
html[data-theme="dark"] .system-analysis-report,
html[data-theme="dark"] .customer-record-content .customer-detail-stats article,
html[data-theme="dark"] .customer-record-content .customer-info-panel,
html[data-theme="dark"] .customer-record-content .customer-info-item,
html[data-theme="dark"] .customer-record-content > .customer-record-section:not(.customer-access-section),
html[data-theme="dark"] .customer-support-item,
html[data-theme="dark"] .customer-activity-tools,
html[data-theme="dark"] .customer-activity-item,
html[data-theme="dark"] .customer-activity-more,
html[data-theme="dark"] .plesk-ip-family {
  border-color: var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
}

html[data-theme="dark"] .broadcast-layout-option:has(input:checked) { border-color:#486c9e; background:#182842; }
html[data-theme="dark"] .broadcast-layout-option strong,
html[data-theme="dark"] .broadcast-review-delivery strong { color:var(--theme-text); }
html[data-theme="dark"] .broadcast-layout-option small,
html[data-theme="dark"] .broadcast-review-delivery small,
html[data-theme="dark"] .broadcast-review-delivery p { color:var(--theme-muted); }

html[data-theme="dark"] .key-rotation-progress li,
html[data-theme="dark"] .system-analysis-result-group > header,
html[data-theme="dark"] .software-update-detail-grid > section > header,
html[data-theme="dark"] .software-update-detail-files summary { border-color: #29364a; background: #172033; }

html[data-theme="dark"] .customer-files-toolbar,
html[data-theme="dark"] .customer-files-folder-form,
html[data-theme="dark"] .customer-file-preview { border-color: var(--theme-border); background: #151e2e; }
html[data-theme="dark"] .customer-files-header { border-color: var(--theme-border); }
html[data-theme="dark"] .customer-file-entry,
html[data-theme="dark"] .customer-files-search,
html[data-theme="dark"] .customer-file-preview-media { border-color: var(--theme-border); background: var(--theme-surface); }
html[data-theme="dark"] .customer-file-entry-copy strong,
html[data-theme="dark"] .customer-files-breadcrumbs button[aria-current="page"] { color: var(--theme-text); }
html[data-theme="dark"] .customer-file-entry:hover,
html[data-theme="dark"] .customer-file-entry.selected { border-color: #52659a; background: #18213a; }

html[data-theme="dark"] .notification-panel,
html[data-theme="dark"] .session-warning-card { border-color: var(--theme-border); background: var(--theme-surface); }

html[data-theme="dark"] .login-page { background: #0b1120; }
html[data-theme="dark"] .login-form-side { background: radial-gradient(circle at 70% 10%, #172554 0, #0b1120 44%, #080d18 100%); }
html[data-theme="dark"] .login-card { border-color: #2b384b; background: rgba(17, 24, 39, .96); box-shadow: 0 30px 80px rgba(0, 0, 0, .38); }
html[data-theme="dark"] .login-card > p,
html[data-theme="dark"] .login-card h1 + p { color: var(--theme-muted); }
html[data-theme="dark"] .login-username-recovery { color:#aebaff; }
html[data-theme="dark"] :is(#forgotPasswordRequest>h1,.forgot-password-success h1) { color:#f1f5fb; }
html[data-theme="dark"] :is(#forgotPasswordRequest>p,.forgot-password-success>p) { color:var(--theme-muted); }
html[data-theme="dark"] .login-forgot-action,
html[data-theme="dark"] .login-registration-cta > button,
html[data-theme="dark"] .login-passkey-button,
html[data-theme="dark"] .login-trust-device { border-color: #303d50; background: #151e2e; color: #cbd5e1; }
html[data-theme="dark"] .login-forgot-action strong,
html[data-theme="dark"] .login-registration-cta strong,
html[data-theme="dark"] .login-passkey-button strong { color: #dbe4f1; }
html[data-theme="dark"] .login-registration-divider::before,
html[data-theme="dark"] .login-registration-divider::after,
html[data-theme="dark"] .login-passkey-divider::before,
html[data-theme="dark"] .login-passkey-divider::after { background: #334155; }
html[data-theme="dark"] .public-legal-links a { color: #94a3b8; }

html[data-theme="dark"] .toast,
html[data-theme="dark"] .notification-panel,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] [role="menu"] { border-color: var(--theme-border); background: #172033; color: var(--theme-text); }

html[data-theme="dark"] .view-loading-overlay { background: rgba(11, 17, 32, .94); }
html[data-theme="dark"] .customer-referral-editor strong { color: var(--theme-text); }
html[data-theme="dark"] .customer-referral-editor p { color: var(--theme-muted); }
html[data-theme="dark"] .customer-referral-notice { border-color: var(--theme-border); background: #151e2e; color: var(--theme-muted); }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: #0f172a; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { border-color: #0f172a; background: #3a475a; }

@media (max-width: 860px) {
  .theme-toggle-header { display: none; }
  .theme-toggle-login { top: 14px; right: 14px; width: 40px; min-height: 40px; padding: 0; }
  .theme-toggle-login span { display: none; }
}

@media (max-width: 760px) {
  .theme-toggle-mobile { position: absolute; top: 11px; right: 101px; width: 34px; min-height: 34px; }
}

@media (min-width: 861px) {
  .theme-toggle-mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
}

/* Component audit pass: consistent dark hierarchy across every application area. */
html[data-theme="dark"] {
  --theme-bg: #09111f;
  --theme-surface: #111b2d;
  --theme-surface-soft: #172338;
  --theme-surface-raised: #1b2940;
  --theme-border: #2b3a52;
  --theme-text: #e8eef8;
  --theme-muted: #93a1b5;
  --line: #2b3a52;
  --muted: #93a1b5;
}

html[data-theme="dark"] body {
  background: radial-gradient(circle at 78% -10%, rgba(99, 102, 241, .14), transparent 34rem), #09111f;
}

html[data-theme="dark"] .main-content { background: transparent; }
html[data-theme="dark"] .tab-view { background: transparent; }
html[data-theme="dark"] .tab-view :is(h1,h2,h3,h4,h5,h6,strong,b) { color: var(--theme-text); }
html[data-theme="dark"] .tab-view :is(p,small) { color: var(--theme-muted); }
html[data-theme="dark"] .tab-view :is(.panel-kicker,.eyebrow,[class*="-kicker"],[class*="-badge"]) { color: #9aa7ff; }

/* Shared surfaces, navigation and filters */
html[data-theme="dark"] .tab-view :is(
  .panel,.table-panel,.settings-card,.settings-workspace-card,.account-workspace-card,
  .invoice-subview-panel,.product-subview-panel,.product-subscription-panel,
  .journal-panel,.audit-panel,.backup-panel,.backup-automation-card,.backup-restore-panel,
  .user-management-panel,.user-management-overview-card,.team-panel
) { border-color: var(--theme-border); background: var(--theme-surface); box-shadow: 0 14px 36px rgba(0,0,0,.2); }

html[data-theme="dark"] .tab-view :is(
  .toolbar,.toolbar-expenses,.toolbar-offers,.toolbar-tickets,.toolbar-audit,
  .customer-toolbar,.product-toolbar,.mail-journal-toolbar,.broadcast-toolbar,
  .table-pagination,.invoice-panel-heading,.product-section-heading
) { border-color: var(--theme-border); background: var(--theme-surface-soft); box-shadow: 0 10px 28px rgba(0,0,0,.16); }

html[data-theme="dark"] .tab-view :is(
  .invoice-navigation,.product-navigation,.journal-navigation,.user-management-navigation,
  .settings-navigation,.account-navigation-modern
) { border-color: var(--theme-border); background: linear-gradient(180deg,#111b2d,#0d1727); }

html[data-theme="dark"] .tab-view :is(.invoice-navigation,.product-navigation,.journal-navigation,.user-management-navigation,.settings-navigation,.account-navigation-modern) .settings-nav-item {
  color: #9ba9bd;
}
html[data-theme="dark"] .tab-view :is(.invoice-navigation,.product-navigation,.journal-navigation,.user-management-navigation,.settings-navigation,.account-navigation-modern) .settings-nav-item:hover {
  border-color: #394967; background: #1a2740; color: #cbd5ff;
}
html[data-theme="dark"] .tab-view :is(.invoice-navigation,.product-navigation,.journal-navigation,.user-management-navigation,.settings-navigation,.account-navigation-modern) .settings-nav-item.active {
  border-color: #515d91; background: linear-gradient(135deg,#282d55,#20294a); color: #d8dcff;
}
html[data-theme="dark"] .tab-view :is(.invoice-navigation,.product-navigation,.journal-navigation,.user-management-navigation,.settings-navigation,.account-navigation-modern) .settings-nav-item.active strong { color:#eef0ff; }
html[data-theme="dark"] .tab-view :is(.invoice-navigation,.product-navigation,.journal-navigation,.user-management-navigation,.settings-navigation,.account-navigation-modern) .settings-nav-icon,
html[data-theme="dark"] .tab-view .account-nav-icon { background:#202d43; color:#9eabc0; }

html[data-theme="dark"] .tab-view :is(.account-navigation-note,.settings-navigation-note,.user-management-role-note,.backup-security-note,.backup-exclusion-note,.credit-security-note) {
  border-color:#33445d; background:#152136; color:#9eabc0;
}

html[data-theme="dark"] .tab-view :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea,.control,.form-control) {
  border-color:#33445d; background:#0d1729; color:#e8eef8;
}
html[data-theme="dark"] .tab-view :is(input,textarea)::placeholder { color:#697b94; }
html[data-theme="dark"] .tab-view :is(input,select,textarea,.control,.form-control):focus { border-color:#7c86e9; background:#101b30; box-shadow:0 0 0 4px rgba(99,102,241,.16); }

html[data-theme="dark"] .data-table thead,
html[data-theme="dark"] .data-table th { border-color:#33445d; background:#19263c; color:#aebbd0; }
html[data-theme="dark"] .data-table td { border-color:#26364e; color:#d7dfeb; }
html[data-theme="dark"] .data-table tbody tr:hover { background:#16233a; }

/* Finance, customer and product views */
html[data-theme="dark"] .invoice-draft-summary,
html[data-theme="dark"] .invoice-draft-list,
html[data-theme="dark"] .invoice-draft-card,
html[data-theme="dark"] .invoice-automation-panel,
html[data-theme="dark"] .product-overview article,
html[data-theme="dark"] .ticket-stats article,
html[data-theme="dark"] .offer-summary article {
  border-color:var(--theme-border); background:var(--theme-surface); color:var(--theme-text);
}
html[data-theme="dark"] .product-overview article > span,
html[data-theme="dark"] .ticket-stats article > span { background:#202e47; }

/* Team Workspace */
html[data-theme="dark"] .team-view {
  --team-ink:#e8eef8; --team-muted:#93a1b5; --team-border:#2b3a52;
  --team-surface:#111b2d; --team-surface-soft:#152136; --team-shadow:0 18px 46px rgba(0,0,0,.2);
}
html[data-theme="dark"] .team-module-header { border-color:#374362; background:radial-gradient(circle at 87% 15%,rgba(99,91,246,.17),transparent 270px),linear-gradient(135deg,#131e32,#101929); }
html[data-theme="dark"] .team-realtime-state { border-color:#3a4961; background:#19263b; }
html[data-theme="dark"] .team-realtime-state.online { border-color:#27634f; background:#102c26; }
html[data-theme="dark"] .team-realtime-state.offline { border-color:#695331; background:#2c2415; }
html[data-theme="dark"] .team-subnav { border-color:var(--theme-border); background:#111b2d; }
html[data-theme="dark"] .team-subnav button { color:#94a3b8; }
html[data-theme="dark"] .team-subnav button:hover { background:#1a2740; color:#d7dfeb; }
html[data-theme="dark"] .team-subnav button.active { background:linear-gradient(135deg,#282d55,#20294a); color:#bfc4ff; box-shadow:inset 0 0 0 1px #505589; }
html[data-theme="dark"] .team-subnav :is(em,b) { background:#202d43; color:#c5c8ff; box-shadow:none; }
html[data-theme="dark"] .team-stats article,
html[data-theme="dark"] .team-calendar-toolbar,
html[data-theme="dark"] .team-calendar,
html[data-theme="dark"] .team-calendar-agenda,
html[data-theme="dark"] .team-knowledge { border-color:var(--theme-border); background:#111b2d; }
html[data-theme="dark"] .team-panel > header { border-color:#2a3951; background:#152136; }
html[data-theme="dark"] .team-task,
html[data-theme="dark"] .team-event { border-color:#26364e; background:transparent; }
html[data-theme="dark"] .team-task:hover,
html[data-theme="dark"] .team-event:hover { background:#16233a; }
html[data-theme="dark"] .team-task-check { border-color:#46566e; background:#18253a; }
html[data-theme="dark"] .team-live-chat { border-color:#33445d; background:#111b2d; box-shadow:0 20px 55px rgba(0,0,0,.24); }
html[data-theme="dark"] .team-channel-sidebar,
html[data-theme="dark"] .team-member-sidebar { border-color:#2a3951; background:#0f192a; }
html[data-theme="dark"] .team-channel-list > button:hover,
html[data-theme="dark"] .team-member-list article:hover { border-color:#33445d; background:#19263b; }
html[data-theme="dark"] .team-channel-list > button.active { border-color:#515789; background:#252a4e; color:#d1d4ff; }
html[data-theme="dark"] .team-channel-list > button > span { background:#202d43; box-shadow:none; }
html[data-theme="dark"] .team-chat-main,
html[data-theme="dark"] .team-chat-main > header,
html[data-theme="dark"] .team-live-chat .team-chat-messages,
html[data-theme="dark"] .team-live-chat .team-chat-form,
html[data-theme="dark"] .team-chat-compose-shell,
html[data-theme="dark"] .team-chat-compose-shell > footer,
html[data-theme="dark"] .team-live-chat .team-chat-form .team-chat-compose-shell > textarea { border-color:#2a3951; background:#111b2d; }
html[data-theme="dark"] .team-live-chat .team-chat-messages { background:radial-gradient(circle at 100% 0,rgba(92,83,235,.07),transparent 350px),#0c1626; }
html[data-theme="dark"] .team-live-chat .team-chat-message > div { border-color:#304059; background:#172338; box-shadow:none; }
html[data-theme="dark"] .team-live-chat .team-chat-message.mine > div { border-color:#4c5182; background:linear-gradient(135deg,#262b50,#202849); }
html[data-theme="dark"] .team-member-list article.guest { border-color:#47466e; background:#1f2340; }

/* Journal and audit */
html[data-theme="dark"] .journal-panel-heading,
html[data-theme="dark"] .backup-panel-heading,
html[data-theme="dark"] .settings-workspace-heading,
html[data-theme="dark"] .account-workspace-heading,
html[data-theme="dark"] .user-management-panel-heading { border-color:var(--theme-border); background:linear-gradient(145deg,#172338,#111b2d); }
html[data-theme="dark"] .journal-panel-body { background:#111b2d; }
html[data-theme="dark"] .audit-integrity-status { border-color:#34445c; background:#18253a; }
html[data-theme="dark"] .audit-integrity-status.is-valid { border-color:#27634f; background:#102c26; }
html[data-theme="dark"] .audit-integrity-status.is-invalid { border-color:#743849; background:#321721; }
html[data-theme="dark"] .audit-stats article,
html[data-theme="dark"] .audit-archive-section,
html[data-theme="dark"] .audit-archive-form,
html[data-theme="dark"] .audit-archive-card { border-color:var(--theme-border); background:#152136; }
html[data-theme="dark"] .audit-source-banner { border-color:#46518a; background:#202747; }
html[data-theme="dark"] .audit-source-banner > span { background:#30365f; }

/* Backups */
html[data-theme="dark"] .backup-summary-card:not(.backup-summary-primary),
html[data-theme="dark"] .backup-security-note,
html[data-theme="dark"] .backup-category-section,
html[data-theme="dark"] .backup-scheduler-note,
html[data-theme="dark"] .backup-remote-status,
html[data-theme="dark"] .backup-selected-summary,
html[data-theme="dark"] .backup-restore-section-heading {
  border-color:var(--theme-border); background:#152136; color:var(--theme-text);
}
html[data-theme="dark"] .backup-automation-card > :is(header,section,div) { border-color:#2b3a52; }

/* Software settings */
html[data-theme="dark"] .settings-health { border-color:#27634f; background:#102c26; }
html[data-theme="dark"] .settings-overview article { border-color:var(--theme-border); background:#172338; }
html[data-theme="dark"] .settings-navigation-modern { background:linear-gradient(180deg,#111b2d,#0d1727); }
html[data-theme="dark"] .settings-nav-group.open { border-color:#33445d; background:#152136; }
html[data-theme="dark"] .settings-nav-group.has-active { border-color:#4b527f; background:#202747; }
html[data-theme="dark"] .settings-workspace-card,
html[data-theme="dark"] .software-settings-panel { border-color:var(--theme-border); background:#111b2d; }
html[data-theme="dark"] .tab-view :is(
  .general-application-card,.general-compact-section,.general-maintenance-quick,
  .branding-identity-card,.branding-login-card,.mail-accounts-panel,.mail-routing-panel,
  .mail-templates-panel,.support-overview-card,.support-settings-panel,.plesk-enable-card,
  .plesk-config-card,.plesk-auth-card,.plesk-provisioning-card,.storage-settings-section,
  .payments-settings-panel,.affiliate-reward-config-card,.required-notice-editor-card,
  .required-notice-acceptances-card,.auditor-access-panel,.auditor-documentation-card,
  .key-rotation-card,.key-rotation-progress,.system-analysis-result-group,
  .software-update-panel,.software-update-review,.cron-jobs-panel
) { border-color:var(--theme-border); background:#152136; }
html[data-theme="dark"] .tab-view :is(
  .general-compact-heading,.account-combined-heading,.broadcast-section-heading,
  .mail-routing-intro,.software-update-wizard-header,.system-analysis-result-group>header
) { border-color:#2b3a52; background:#18253a; }
html[data-theme="dark"] .settings-feature-toggle,
html[data-theme="dark"] .storage-enable-row,
html[data-theme="dark"] .payments-enable-row,
html[data-theme="dark"] .affiliate-enable-row,
html[data-theme="dark"] .maintenance-status-control,
html[data-theme="dark"] .required-notice-explainer { border-color:#33445d; background:#172338; }
html[data-theme="dark"] .settings-save-bar { border-color:#33445d; background:rgba(17,27,45,.96); box-shadow:0 20px 50px rgba(0,0,0,.3); }

/* Account */
html[data-theme="dark"] .account-security-score { border-color:#27634f; background:#102c26; }
html[data-theme="dark"] .account-overview article { border-color:var(--theme-border); background:#172338; }
html[data-theme="dark"] .account-navigation-modern { background:linear-gradient(180deg,#111b2d,#0d1727); }
html[data-theme="dark"] .account-profile-hub { background:#111b2d; }
html[data-theme="dark"] .account-avatar-settings,
html[data-theme="dark"] .account-combined-section,
html[data-theme="dark"] .account-category-panel,
html[data-theme="dark"] .security-module,
html[data-theme="dark"] .passkey-management,
html[data-theme="dark"] .trusted-device-notice,
html[data-theme="dark"] .notification-preferences-intro,
html[data-theme="dark"] .credit-account-card { border-color:var(--theme-border); background:#152136; }
html[data-theme="dark"] .account-combined-heading { border-color:#2b3a52; background:#18253a; }
html[data-theme="dark"] .account-security-notice,
html[data-theme="dark"] .account-customer-notice { border-color:#46518a; background:#202747; color:#b9c2ff; }
html[data-theme="dark"] .account-save-bar { border-color:#33445d; background:rgba(17,27,45,.96); box-shadow:0 20px 50px rgba(0,0,0,.3); }

/* User management */
html[data-theme="dark"] .user-management-view { --um-ink:#e8eef8; --um-muted:#93a1b5; --um-border:#2b3a52; }
html[data-theme="dark"] .user-management-hero { border-color:var(--theme-border); background:radial-gradient(circle at 87% 5%,rgba(91,83,235,.14),transparent 240px),#111b2d; }
html[data-theme="dark"] .user-management-stats article,
html[data-theme="dark"] .user-management-overview-card > header { border-color:#2b3a52; background:#172338; }
html[data-theme="dark"] .user-management-attention-item:hover { background:#19263b; }
html[data-theme="dark"] .user-row-action-menu { border-color:#33445d; background:#172338; }

/* Semantic colors remain visible without bright white tiles. */
html[data-theme="dark"] :is(.tone-indigo,.settings-overview-icon.tone-indigo,.account-overview-icon.tone-indigo) { background:#292e55; color:#aeb4ff; }
html[data-theme="dark"] :is(.tone-blue,.settings-overview-icon.tone-blue,.account-overview-icon.tone-blue) { background:#142f4d; color:#7cc2ff; }
html[data-theme="dark"] :is(.tone-green,.settings-overview-icon.tone-green,.account-overview-icon.tone-green) { background:#12372e; color:#70d6b3; }
html[data-theme="dark"] :is(.tone-orange,.settings-overview-icon.tone-orange) { background:#3a2918; color:#f7b267; }
html[data-theme="dark"] :is(.tone-purple,.account-overview-icon.tone-purple) { background:#30254d; color:#c4a7ff; }

html[data-theme="dark"] .modal-card { border-color:var(--theme-border); background:#111b2d; }
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-actions { border-color:#2b3a52; background:#152136; }

@media (max-width:1023px) {
  html[data-theme="dark"] .theme-toggle-mobile { display:grid; }
}

/* Final contrast cleanup found during the browser review. */
html[data-theme="dark"] .invoice-staging,
html[data-theme="dark"] .invoice-draft-list,
html[data-theme="dark"] .invoice-draft-card {
  border-color:var(--theme-border); background:#152136; color:var(--theme-text);
}
html[data-theme="dark"] .invoice-staging-head { border-color:#2b3a52; background:#172338; }

html[data-theme="dark"] .backup-next-run { border-color:#33445d; background:#172338; }

html[data-theme="dark"] .general-application-card { border-color:var(--theme-border); background:#111b2d; }
html[data-theme="dark"] .general-application-card > header { border-color:#2b3a52; background:#172338; }
html[data-theme="dark"] .general-compact-section { border-color:#33445d; background:#152136; }
html[data-theme="dark"] .general-registration-toggle,
html[data-theme="dark"] .general-compact-section .general-registration-toggle { border-color:#33445d; background:#19263b; }
html[data-theme="dark"] .general-registration-toggle:hover { border-color:#4a5b75; background:#1c2a42; }
html[data-theme="dark"] .general-maintenance-quick { border-color:#4b527f; background:linear-gradient(145deg,#202747,#172038); box-shadow:none; }
html[data-theme="dark"] .general-maintenance-quick > label { border-color:#3b4962; background:#18253a; }

html[data-theme="dark"] :is(
  .settings-heading-icon,.account-heading-icon,.backup-summary-icon,
  .audit-integrity-status>span,.general-application-card>header>span,
  .general-compact-heading>span,.team-chat-main>header>div:first-child>span,
  .user-management-panel-heading>i
) { border-color:#424b78; background:#292e55; color:#aeb4ff; }

html[data-theme="dark"] :is(.state-pill,.panel-badge,.user-management-navigation .settings-nav-item>b,.team-subnav em,.team-subnav b) {
  border-color:#465077; background:#252c4e; color:#c6caff; box-shadow:none;
}

html[data-theme="dark"] .settings-toggle-visual { background:#4a586d; }
html[data-theme="dark"] .settings-toggle-visual span { background:#dce4ef; }

/* Dynamic view content: values and rows are rendered after the partial was loaded. */
html[data-theme="dark"] .metric-card {
  --metric-soft:#202d46;
  --metric-glow:rgba(129,140,248,.1);
}
html[data-theme="dark"] .metric-card.metric-blue { --metric-soft:#202b50; --metric-glow:rgba(79,102,246,.12); }
html[data-theme="dark"] .metric-card.metric-orange { --metric-soft:#352719; --metric-glow:rgba(213,107,29,.11); }
html[data-theme="dark"] .metric-card.metric-red { --metric-soft:#351e2a; --metric-glow:rgba(207,58,79,.1); }
html[data-theme="dark"] .metric-card.metric-green { --metric-soft:#15342e; --metric-glow:rgba(23,132,90,.11); }
html[data-theme="dark"] .metric-label { color:#a9b5c8; }
html[data-theme="dark"] .metric-value { color:#eef3fb; }
html[data-theme="dark"] .metric-note { color:#93a1b5; }

html[data-theme="dark"] .dash-status-bar,
html[data-theme="dark"] .results-bar {
  border-color:var(--theme-border);
  background:#152136;
  box-shadow:0 12px 30px rgba(0,0,0,.16);
  color:#a9b5c8;
}
html[data-theme="dark"] .dash-status-total { color:#93a1b5; }
html[data-theme="dark"] .dash-progress-bar { background:#26364e; }
html[data-theme="dark"] .results-bar strong { color:#eef3fb; }
html[data-theme="dark"] .results-sep { color:#65748a; }

html[data-theme="dark"] :is(
  .invoice-number,.customer-cell,.amount-cell,.entity-name,
  .ticket-subject,.ticket-assignee
) { color:#e1e8f3; }
html[data-theme="dark"] :is(.entity-meta,.subtle-cell,.ticket-message-count) { color:#93a1b5; }
html[data-theme="dark"] .entity-avatar { background:linear-gradient(145deg,#28355b,#202b4b); color:#aeb7ff; }
html[data-theme="dark"] .entity-avatar-dim { background:linear-gradient(145deg,#263348,#202b3d); color:#a4b0c2; }
html[data-theme="dark"] .ticket-stats strong { color:#eef3fb; }
html[data-theme="dark"] .ticket-row:hover td { background:#16233a; }

html[data-theme="dark"] .view-loading-overlay {
  background:radial-gradient(circle at 50% 42%,rgba(99,102,241,.12),transparent 27rem),rgba(9,16,29,.985);
}
html[data-theme="dark"] .view-loading-copy>small { color:#999cff; }
html[data-theme="dark"] .view-loading-copy>strong { color:#eef3fb; }
html[data-theme="dark"] .view-loading-copy>p { color:#9aa8bc; }
html[data-theme="dark"] .view-loading-visual>i {
  border-color:#414b79;
  background:linear-gradient(145deg,#202b46,#182239);
  box-shadow:0 14px 36px rgba(0,0,0,.3);
  color:#aeb4ff;
}

/* Text classes shared by the remaining dynamically rendered modules. */
html[data-theme="dark"] :is(
  .table-entity-link,.contact-link,
  .product-customer,.product-usage,.product-service-link,
  .booking-back,.booking-category-back,.booking-payment-order,.booking-payment-state,
  .booking-domain-field>span,.booking-review dd,.booking-order-facts dd,
  .booking-consent,.booking-coupon>label,.booking-cart-title,
  .broadcast-section-heading .text-button,.broadcast-role-options span,
  .customer-info-notes p,.service-suspension-invoices>div>span
) { color:#a9b5c8; }
html[data-theme="dark"] .booking-comparison :is(th,td) { border-color:#2b3a52; color:#cbd5e1; }
html[data-theme="dark"] .booking-comparison :is(thead th:first-child,tbody th,tfoot th) { color:#a9b5c8; }
html[data-theme="dark"] :is(.product-domain-cell>span,.booking-domain-options label>span) { color:#9aa8ff; }
html[data-theme="dark"] .credit-topup-terms-confirm { border-color:#6f86f7; color:#b9c4d6; }
html[data-theme="dark"] .credit-topup-terms-confirm a { color:#9cabff; }

html[data-theme="dark"] .invoice-list-row:hover td,html[data-theme="dark"] .customer-list-row:hover td { background:#16233a; }
html[data-theme="dark"] .invoice-detail-view { --invoice-detail-border:#2c3a50; --invoice-detail-muted:#94a2b6; color:#e5ebf5; }
html[data-theme="dark"] :is(.invoice-detail-header,.invoice-detail-stats article,.invoice-detail-card) { border-color:#2c3a50; background:#121e31; box-shadow:0 8px 24px rgba(0,0,0,.16); }
html[data-theme="dark"] .invoice-detail-header { background:radial-gradient(circle at 86% 0,rgba(113,105,255,.15),transparent 260px),#121e31; }
html[data-theme="dark"] :is(.invoice-detail-heading h2,.invoice-detail-stats strong,.invoice-detail-card h3,.invoice-detail-facts strong,.invoice-detail-states strong,.invoice-detail-empty>strong) { color:#edf2fa; }
html[data-theme="dark"] :is(.invoice-detail-card>header,.invoice-detail-states>div,.invoice-detail-totals>div) { border-color:#26354a; }
html[data-theme="dark"] .invoice-detail-card>header>span { background:#24294b; color:#aaa7ff; }
html[data-theme="dark"] .invoice-detail-items .data-table :is(th,td) { border-color:#29384d; }
html[data-theme="dark"] .invoice-detail-actions>button { color:#cbd5e2; }
html[data-theme="dark"] .invoice-detail-actions>button:hover { background:#202b40; }
html[data-theme="dark"] .invoice-detail-actions>button.primary { background:#28284e; color:#b8b5ff; }
html[data-theme="dark"] .invoice-detail-preview-title>span { background:#24294b; color:#aaa7ff; }
html[data-theme="dark"] .invoice-detail-preview-title p { color:#94a2b6; }
html[data-theme="dark"] .invoice-detail-document-tools :is(button,a) { border-color:#33445d; background:#172338; color:#cbd5e2; }
html[data-theme="dark"] .invoice-detail-document-tools :is(button,a):hover { border-color:#5b609c; background:#24294b; color:#b8b5ff; }
html[data-theme="dark"] .invoice-detail-document-tools :is(button,a).is-confirmed { border-color:#34785f; background:#173b31; color:#8cddbd; }
html[data-theme="dark"] .invoice-detail-view-switch { border-color:#2d3b51; background:#121c2d; box-shadow:none; }
html[data-theme="dark"] .invoice-detail-view-switch small { color:#8795aa; }
html[data-theme="dark"] .invoice-detail-view-switch strong { color:#e4eaf4; }
html[data-theme="dark"] .invoice-detail-preview-stage { background:#0c1524; }
html[data-theme="dark"] .invoice-detail-preview-stage iframe { border-color:#34445b; box-shadow:0 14px 38px rgba(0,0,0,.32); }
html[data-theme="dark"] .invoice-detail-preview-loading { background:#111d30; color:#a5b1c3; }
html[data-theme="dark"] .finance-analysis-view{color:#e5ebf5}html[data-theme="dark"] :is(.finance-analysis-header,.finance-analysis-summary article,.finance-analysis-panel){border-color:#2c3a50;background:#121e31;box-shadow:0 8px 24px rgba(0,0,0,.16)}html[data-theme="dark"] .finance-analysis-header{background:radial-gradient(circle at 88% 0,rgba(113,105,255,.15),transparent 300px),#121e31}html[data-theme="dark"] .finance-analysis-back{border-color:#34445b;background:#172338;color:#cbd5e2}html[data-theme="dark"] :is(.finance-analysis-heading h2,.finance-analysis-summary strong,.finance-analysis-panel h3,.finance-analysis-indicators strong){color:#edf2fa}html[data-theme="dark"] :is(.finance-analysis-panel>header,.finance-analysis-indicators>div){border-color:#26354a}html[data-theme="dark"] .finance-analysis-panel>header>small{background:#202b40;color:#a7b3c5}html[data-theme="dark"] .finance-forecast-ranges{border-color:#303b55;background:#162138}html[data-theme="dark"] .finance-forecast-ranges>div{border-color:#29354c}html[data-theme="dark"] .finance-forecast-ranges span{color:#c5cfdd}html[data-theme="dark"] .finance-forecast-ranges strong{color:#aaa7ff}html[data-theme="dark"] .finance-analysis-disclaimer{border-color:#354064;background:#1a2340;color:#b8b5ff}html[data-theme="dark"] .finance-analysis-disclaimer p{color:#a4afc1}html[data-theme="dark"] .finance-analysis-state{border-color:#3a4469;background:#202846;color:#b8b5ff}
html[data-theme="dark"] .finance-analysis-data-notice{border-color:#5d4b2d;background:#2a241a;color:#efbd69}html[data-theme="dark"] .finance-analysis-data-notice p{color:#c8af85}html[data-theme="dark"] .finance-undated-row td{background:#292319!important}html[data-theme="dark"] .finance-undated-row td:first-child strong{color:#efbd69}
html[data-theme="dark"] .dashboard-invoice-row:hover td,html[data-theme="dark"] .dashboard-invoice-row:focus-visible td{background:#16233a}
html[data-theme="dark"] .user-delete-card{border-color:#344157;background:#111c2e}html[data-theme="dark"] .user-delete-header{border-color:#2b394e;background:linear-gradient(135deg,#2a1b22,#111c2e 68%)}html[data-theme="dark"] .user-delete-header .modal-title{color:#f1f5fb}html[data-theme="dark"] .user-delete-target{border-color:#57323a;background:#251820}html[data-theme="dark"] .user-delete-target strong{color:#edf2fa}html[data-theme="dark"] .user-delete-target small{color:#c78d98}html[data-theme="dark"] .user-delete-target b{color:#cbd5e2}html[data-theme="dark"] .user-delete-customer{border-color:#334156}html[data-theme="dark"] .user-delete-customer>header{background:#172338}html[data-theme="dark"] .user-delete-customer header strong{color:#e5ebf5}html[data-theme="dark"] .user-delete-customer-option{border-color:#2d3a4e}html[data-theme="dark"] .user-delete-customer-option strong{color:#dbe3ef}html[data-theme="dark"] .user-delete-customer-option>span{border-color:#506078;background:#172338}html[data-theme="dark"] .user-delete-customer-unavailable{border-color:#2d3a4e;background:#152033;color:#a4afc1}html[data-theme="dark"] .user-delete-card>.modal-actions{border-color:#2b394e;background:#152033}
html[data-theme="dark"] .customer-identity-panel article{border-color:#263750;background:linear-gradient(145deg,#152238,#101c30);box-shadow:none}
html[data-theme="dark"] .customer-identity-panel strong{color:#edf3ff}html[data-theme="dark"] .customer-identity-panel small,html[data-theme="dark"] .customer-identity-panel p{color:#91a1ba}
html[data-theme="dark"] .customer-identity-icon{background:#20345d;color:#8fb0ff}html[data-theme="dark"] .customer-identity-icon.pin{background:#123c35;color:#70d8bd}
html[data-theme="dark"] .support-pin-value.is-revealed{color:#70d8bd}html[data-theme="dark"] .support-pin-toggle{border-color:#354761;background:#17243a;color:#d6e0ef}html[data-theme="dark"] .support-pin-toggle:hover{border-color:#617bb0;background:#1d2d47;color:#fff}
html[data-theme="dark"] .customer-user-topbar{border-color:#2b394f;background:rgba(15,25,42,.95);box-shadow:0 14px 38px rgba(0,0,0,.2)}html[data-theme="dark"] .customer-topbar-avatar{border-color:#35445c;background:linear-gradient(145deg,#223453,#17253d);color:#a8baff}html[data-theme="dark"] .customer-topbar-profile strong,html[data-theme="dark"] .customer-topbar-data strong{color:#edf3fb}html[data-theme="dark"] .customer-topbar-profile small,html[data-theme="dark"] .customer-topbar-profile em,html[data-theme="dark"] .customer-topbar-data small{color:#91a0b6}html[data-theme="dark"] .customer-topbar-data article{border-color:#2c3b51;background:#152238}html[data-theme="dark"] .customer-topbar-data article>span{background:#20345d;color:#9db2ff}html[data-theme="dark"] .customer-topbar-data .customer-topbar-pin>span{background:#123c35;color:#70d8bd}html[data-theme="dark"] .customer-topbar-pin button,html[data-theme="dark"] .customer-topbar-account{border-color:#374860;background:#1b2a43;color:#d6dfed}html[data-theme="dark"] .customer-topbar-pin button:hover,html[data-theme="dark"] .customer-topbar-account:hover{border-color:#6179aa;background:#243653;color:#fff}
html[data-theme="dark"] .workspace-topbar,html[data-theme="dark"] .workspace-customer-quick{border-color:#2b394f;background:rgba(15,25,42,.96);box-shadow:0 9px 28px rgba(0,0,0,.2)}html[data-theme="dark"] .workspace-topbar-title strong,html[data-theme="dark"] .workspace-customer-quick strong,html[data-theme="dark"] .workspace-user{color:#edf3fb}html[data-theme="dark"] .workspace-topbar-title span,html[data-theme="dark"] .workspace-customer-quick small,html[data-theme="dark"] .workspace-credit small,html[data-theme="dark"] .workspace-user-copy small,html[data-theme="dark"] .workspace-user-copy em{color:#91a0b6}html[data-theme="dark"] .workspace-customer-quick>div,html[data-theme="dark"] .workspace-theme-toggle,html[data-theme="dark"] .workspace-notification-bell,html[data-theme="dark"] .workspace-user,html[data-theme="dark"] .workspace-logout{border-color:#2d3c52;background:#152238}html[data-theme="dark"] .workspace-support-pin button{border-color:#374860;background:#1b2a43;color:#d6dfed}html[data-theme="dark"] .workspace-credit{border-color:#245744;background:#123429;color:#75d8b5}html[data-theme="dark"] .workspace-credit>span:first-child{background:#194735}html[data-theme="dark"] .workspace-user-avatar{background:linear-gradient(145deg,#26385a,#1b2944);color:#adbcff}html[data-theme="dark"] .workspace-user-avatar .status-dot{border-color:#152238}
html[data-theme="dark"] .workspace-user[aria-expanded="true"]{border-color:#526a9c;background:#1a2942;box-shadow:0 0 0 3px rgba(124,141,255,.09)}
html[data-theme="dark"] .workspace-user-menu{border-color:#2d3c52;background:#111d30;box-shadow:0 24px 64px rgba(0,0,0,.42)}html[data-theme="dark"] .workspace-user-menu-head span{color:#91a0b6}html[data-theme="dark"] .workspace-user-menu-head strong{color:#eef3fb}
html[data-theme="dark"] .workspace-user-facts article{border-color:#2c3b51;background:#152238}html[data-theme="dark"] .workspace-user-facts small,html[data-theme="dark"] .workspace-menu-credit small{color:#93a2b8}html[data-theme="dark"] .workspace-user-facts strong{color:#edf3fb}html[data-theme="dark"] .workspace-user-menu-icon{background:#20345d;color:#9db2ff}html[data-theme="dark"] .workspace-user-menu-icon.pin{background:#123c35;color:#70d8bd}html[data-theme="dark"] .workspace-user-pin>button{border-color:#374860;background:#1b2a43;color:#d6dfed}html[data-theme="dark"] .workspace-user-pin>button:hover{border-color:#6179aa;background:#243653;color:#fff}
html[data-theme="dark"] .workspace-menu-credit{border-color:#245744;background:#123429;color:#75d8b5}html[data-theme="dark"] .workspace-menu-credit>span:first-child{background:#194735}html[data-theme="dark"] .workspace-menu-credit:hover{border-color:#34745b;background:#173d31}
html[data-theme="dark"] .workspace-user-menu-actions{border-color:#2d3b50}html[data-theme="dark"] .workspace-user-menu-actions>button{border-color:#29384c;background:#152238;color:#e6edf7}html[data-theme="dark"] .workspace-user-menu-actions>button:hover{background:#1a2942}html[data-theme="dark"] .workspace-user-menu-actions>button>span:first-child{background:#20345d;color:#a8b9ff}html[data-theme="dark"] .workspace-user-menu-actions small{color:#93a1b5}
html[data-theme="dark"] .workspace-menu-logout{border-color:#54303a;background:#251920;color:#f0a4b1}html[data-theme="dark"] .workspace-menu-logout>span:first-child{background:#3a202a;color:#f19aaa}html[data-theme="dark"] .workspace-menu-logout small{color:#c08791}html[data-theme="dark"] .workspace-menu-logout:hover{border-color:#71404c;background:#301d25}
html[data-theme="dark"] .workspace-topbar-control{border-color:#2d3c52;background:#152238;color:#cbd6e6}html[data-theme="dark"] .workspace-topbar-control:hover{border-color:#536b9d;background:#1d2d47;color:#fff}html[data-theme="dark"] .workspace-topbar-control .notification-badge{border-color:#0f192a}
html[data-theme="dark"] .workspace-customer-access{border-color:#2c3b51;background:linear-gradient(145deg,#152238,#111d30)}html[data-theme="dark"] .workspace-customer-access>header,html[data-theme="dark"] .workspace-customer-number-row{border-color:#29384c}html[data-theme="dark"] .workspace-customer-access>header>span{background:#20345d;color:#a1b5ff}html[data-theme="dark"] .workspace-customer-access>header strong{color:#edf3fb}html[data-theme="dark"] .workspace-customer-access>header small,html[data-theme="dark"] .workspace-customer-number-row>span,html[data-theme="dark"] .workspace-customer-pin-row span{color:#93a2b8}html[data-theme="dark"] .workspace-customer-number-row>strong{color:#aebdff}html[data-theme="dark"] .workspace-customer-pin-row .support-pin-value{color:#edf3fb}html[data-theme="dark"] .workspace-customer-pin-row>button{border-color:#374860;background:#1b2a43;color:#d6dfed}html[data-theme="dark"] .workspace-customer-pin-row>button:hover{border-color:#6179aa;background:#243653;color:#fff}
