:root,:root[data-theme="navy"]{
  color-scheme:dark;
  --bg:#0b1a2c;--panel:#12263d;--text:#eaf2fc;--muted:#b2c3da;--border:#354e6b;
  --accent:#79b2ff;--accent2:#9ac6ff;--ok:#77e0bc;--warn:#ffd489;--danger:#ffacb8;
  --soft:#1a3657;--shadow:0 16px 38px rgba(2,9,20,.28);
  --button-bg:#1769e8;--button-hover:#1156c5;--button-ink:#fff;
  --success-bg:#143d35;--warning-bg:#46381f;--danger-bg:#482b37;--neutral-bg:#253b56;--violet:#c6afff;--violet-bg:#302a50;
}
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#edf3fb;--panel:#fff;--text:#142b4a;--muted:#52667e;--border:#cbd8e9;
  --accent:#175bd4;--accent2:#124bb4;--ok:#066349;--warn:#805000;--danger:#a72943;
  --soft:#eaf2ff;--shadow:0 14px 34px rgba(22,48,83,.09);
  --button-bg:#1769e8;--button-hover:#1156c5;--button-ink:#fff;
  --success-bg:#e5f5ed;--warning-bg:#fff3d9;--danger-bg:#fff0f3;--neutral-bg:#e9eef5;--violet:#6631a4;--violet-bg:#f2ecff;
}
:root{--hero-ink:#fff;--hero-muted:#dceaff;--voxfort-bg:var(--bg);--voxfort-panel:var(--panel);--voxfort-text:var(--text);--voxfort-muted:var(--muted);--voxfort-border:var(--border);--voxfort-soft:var(--soft);--voxfort-accent:var(--accent);--voxfort-accent2:var(--accent2);--voxfort-ok:var(--ok);--voxfort-warn:var(--warn);--voxfort-danger:var(--danger)}
@media print{ :root,:root[data-theme]{color-scheme:light;--bg:#fff;--panel:#fff;--text:#142b4a;--muted:#52667e;--border:#cbd8e9;--soft:#eaf2ff;--accent:#175bd4;--ok:#066349;--warn:#805000;--danger:#a72943;--violet:#6631a4;--success-bg:#e5f5ed;--warning-bg:#fff3d9;--danger-bg:#fff0f3;--violet-bg:#f2ecff} }
html body{background:var(--bg)!important;color:var(--text)!important}
/* Mode hues remain distinct, with enough depth for the small hero captions. */
:root body:is(.live-experience,.employee-call-review-page){--monitor-start:#103c87;--monitor-end:#104aa9}
:root body:is(.live-experience,.employee-call-review-page)[data-protection-mode=normal]{--monitor-start:#064e3b;--monitor-end:#065b45}
:root body:is(.live-experience,.employee-call-review-page)[data-protection-mode=attack]{--monitor-start:#64182b;--monitor-end:#992039}
:root body:is(.live-experience,.employee-call-review-page)[data-protection-mode=recovery]{--monitor-start:#432483;--monitor-end:#642ba6}
:root body .live-command-center[data-runtime=intelligence]{--live-mode-start:#103c87;--live-mode-end:#104aa9}
:root body .live-command-center[data-runtime=normal]{--live-mode-start:#064e3b;--live-mode-end:#065b45}
:root body .live-command-center[data-runtime=attack]{--live-mode-start:#64182b;--live-mode-end:#992039}
:root body .live-command-center[data-runtime=recovery]{--live-mode-start:#432483;--live-mode-end:#642ba6}
html body .topbar{position:sticky;top:0;z-index:90;width:100%;max-width:none;min-height:68px;padding-inline:clamp(14px,2vw,30px);background:var(--panel)!important;color:var(--text)!important;border-bottom:1px solid var(--border)!important;box-shadow:0 4px 18px rgba(10,31,57,.06)}
html body .brand-mark{display:grid;place-items:center;background:linear-gradient(145deg,#67b5ff,#2563eb)!important;color:#fff!important;border:1px solid rgba(255,255,255,.22);font-weight:950}
html body .brand strong,html body .brand-link,html body .top-actions{color:var(--text)!important}
html body .brand small{color:var(--muted)!important;letter-spacing:.08em}
html body .voxfort-theme-toggle{min-height:38px;padding:0 12px;border:1px solid var(--border);border-radius:11px;background:var(--panel);color:var(--text);font:inherit;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
html body .voxfort-theme-toggle:hover{border-color:var(--accent);color:var(--accent)}
html body .shell-app,html body .customer-shell{width:100%!important;max-width:none!important;margin:0!important;padding:18px clamp(9px,1.5vw,24px) 36px!important}
html body .app-workspace{display:block!important;width:100%;min-width:0}
html body .workspace-main,html body .customer-page-main{width:100%;max-width:none;min-width:0}
html body .sidebar-toggle{display:grid!important;place-items:center;width:40px;height:40px;border:1px solid var(--border);border-radius:11px;background:var(--panel);color:var(--text);cursor:pointer;z-index:95}
html body .app-sidebar{position:fixed!important;top:78px!important;bottom:14px!important;inset-inline-start:14px!important;z-index:120!important;width:min(300px,calc(100vw - 28px))!important;min-height:0!important;max-height:calc(100vh - 92px);overflow:auto!important;border:1px solid var(--border)!important;border-radius:18px!important;background:var(--panel)!important;color:var(--text)!important;box-shadow:0 24px 70px rgba(1,13,29,.32)!important;transform:translateX(-125%)!important;transition:transform .22s ease!important}
html[dir="rtl"] body .app-sidebar{transform:translateX(125%)!important}
html body.sidebar-open .app-sidebar{transform:translateX(0)!important}
html body .sidebar-scrim{display:block!important;position:fixed!important;inset:0!important;z-index:110!important;background:rgba(3,12,25,.54)!important;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
html body.sidebar-open .sidebar-scrim{opacity:1;visibility:visible}
html body .app-sidebar .sidebar-user,html body .app-sidebar .sidebar-footer{border-color:var(--border);color:var(--muted)}
html body .app-sidebar .sidebar-user strong{color:var(--text)}
html body .app-sidebar .side-nav-item{color:var(--muted);font-size:12px;min-height:42px}
html body .app-sidebar .side-nav-item:hover{background:var(--soft);color:var(--text)}
html body .app-sidebar .side-nav-item.active{background:var(--soft);color:var(--accent)}
html body .app-sidebar .nav-icon{background:color-mix(in srgb,var(--soft) 72%,var(--panel));color:var(--accent)}
html body .app-sidebar .sidebar-label{color:var(--muted)}
html body .panel,html body .customer-balance-card,html body .app-pane>.panel,html body .app-pane .panel{background:var(--panel);border-color:var(--border);color:var(--text);box-shadow:var(--shadow)}
html body .eyebrow,html body .hint,html body .section-heading p,html body .customer-page-head p{color:var(--muted)}
html body input,html body textarea,html body select{background:var(--panel)!important;border-color:var(--border)!important;color:var(--text)!important}
html body input::placeholder,html body textarea::placeholder{color:var(--muted)!important;opacity:1}
html body .secondary,html body .ghost,html body .lang{background:var(--panel);border-color:var(--border);color:var(--text)}
html body .table-wrap{width:100%;max-width:100%;border-color:var(--border)}
html body table{color:var(--text)}
html body table th{background:var(--soft)!important;color:var(--text)!important;font-size:11px;font-weight:850;line-height:1.45}
html body table td{color:var(--text);font-size:12px;line-height:1.5}
html body table tr:nth-child(even) td{background:color-mix(in srgb,var(--soft) 40%,var(--panel))}
html body .table-wrap th,html body .table-wrap td{border-color:var(--border)}
html body .error-seen-times{min-width:160px;font-variant-numeric:tabular-nums}
html body .error-seen-times small{display:block;margin-top:4px;color:var(--muted);font-size:10px;white-space:nowrap}
html body .live-call-actions-row>td{padding:9px 12px!important;background:var(--panel)!important;border-bottom:1px solid var(--border)!important}
html body .live-row-actions{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));align-items:center;gap:8px;min-width:0;flex-wrap:nowrap}
html body.live-experience #liveTableWorkspace .live-call-table .live-call-actions-row{display:table-row!important}
html body.live-experience #liveTableWorkspace .live-call-table .live-call-actions-row>td{display:table-cell!important;width:100%!important;min-width:0!important;padding:9px 12px!important;overflow:visible!important}
html body.live-experience #liveTableWorkspace .live-call-table .live-row-actions{width:100%;min-width:0;grid-template-columns:repeat(7,minmax(90px,1fr));flex-wrap:nowrap}
html body .live-row-actions :is(button,a){min-width:0;min-height:36px;width:100%;padding:6px 9px!important;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:var(--text);font:inherit;font-size:11px;font-weight:800;line-height:1.25;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}
html body .live-row-actions :is(button,a):hover{border-color:var(--accent);color:var(--accent);background:var(--soft)}
html body .live-row-actions .live-end-call{border-color:#bb455c;background:#9f2e48;color:#fff}
html body .live-row-actions .live-end-call:hover{background:#b93553;color:#fff}
html body .live-row-actions :is(button,a).is-working{opacity:.65;cursor:wait}
html body .live-row-actions-empty{display:block;padding:5px 8px;color:var(--muted);font-size:11px;text-align:start}
:root[data-theme="navy"] body.live-experience{background:var(--bg)!important;color:var(--text)!important}
:root[data-theme] body.live-experience #liveTableWorkspace .live-feed-panel{background:var(--panel)!important;color:var(--text)!important;border-color:var(--border)!important}
:root[data-theme] body.live-experience #liveTableWorkspace .live-call-table th{background:var(--soft)!important;color:var(--text)!important;border-color:var(--border)!important}
:root[data-theme] body.live-experience #liveTableWorkspace .live-call-table td{background:var(--panel)!important;color:var(--text)!important;border-color:var(--border)!important}
:root[data-theme="navy"] body.live-experience #liveTableWorkspace .live-call-row:hover td,:root[data-theme="navy"] body.live-experience #liveTableWorkspace .live-call-row:focus td{background:#1a3452!important}
:root[data-theme="navy"] body.live-experience #liveTableWorkspace .live-call-row.is-selected td{background:#1d3c60!important}
:root[data-theme="navy"] body .app-sidebar .nav-icon{background:#1c3858}
:root[data-theme="navy"] body .badge.muted{background:#253b56;color:#c1d0e2}
:root[data-theme="navy"] body .badge.success{background:#123b36;color:#68e0b8}
:root[data-theme="navy"] body .badge.warning{background:#46381f;color:#ffd27c}
:root[data-theme="navy"] body .alert.info{background:#172f4a;border-color:#2b4d72;color:#d3e4fb}
:root[data-theme="navy"] body .alert.error{background:#482b37;border-color:#704151;color:#ffd0d7}
:root[data-theme="navy"] body .alert.success{background:#163a36;border-color:#286458;color:#a5f3d7}
:root[data-theme="navy"] body .empty,:root[data-theme="navy"] body .empty-mini{color:var(--muted)}

/* Shared semantic surfaces: page styles may load after this file. Keep mode
   heroes, charts, QR codes and switch knobs in their own intentional colors. */
html[data-theme] body :is(label,legend){color:var(--text)}
html[data-theme] body :is(.company-feature-main,.customer-overview-workspace,.caller-lists-workspace,.number-search-page,.employee-call-review-page,.ss-main){color:var(--text);--cf-blue:var(--accent);--cf-border:var(--border)}
html[data-theme] body.employee-call-review-page{background:var(--bg)}
html[data-theme] body :is(
  .diagnostics-summary article,.cf-table-card,.cf-dialog,.cf-editor-footer,
  .company-feature-group,.cs-stat,.cs-section-nav,.cs-detail-card,
  .owner-api-providers-summary article,.twilio-checks-card,.twilio-checks-hero,
  .cl-panel,.onboarding-card,.onboarding-top,.ecr-stat,.ecr-queue,.ecr-sticky-tools,
  .pc-mandatory-setting,.pc-review-confirm,.pc-review-preferences,.pc-review-progress,
  .pc-review-preference-card,.pcs-number-rule,.ss-method,.ss-enrollment,.ss-recovery,
  .customer-overview-management>a,.customer-today-summary .pal-outcome-summary article
){background:var(--panel);color:var(--text);border-color:var(--border)}
html[data-theme] body .pal-protection-center :is(.pcp-section,.pcp-section-body>.panel){background:var(--panel);color:var(--text);border-color:var(--border)}
html[data-theme] body :is(
  .cf-dialog-head,.cf-tabs,.cf-search,.cf-avatar,.cf-chip,.cf-product-icon,
  .twilio-checks-fact,.twilio-checks-empty,.twilio-checks-note,.owner-api-providers-hero,
  .decision-engine-toggle,.ss-active-note,.ss-symbol,.pcs-number-policy-option,
  .pcs-number-type-grid label,.pc-review-precedence,.customer-management-link,
  .customer-management-icon,.customer-summary-icon,.cl-tabs button,.cl-tabs small,
  .team-access-page .rule-checks label,.staff-category-badge,.advanced-section,
  .advanced-settings,.launch-box,.duration-editor,.empty-card,.provider-pill
){background:var(--soft);color:var(--text);border-color:var(--border)}
html[data-theme] body .cf-option.cf-product{background:var(--soft)!important;border-color:var(--border)!important}
html[data-theme] body .pal-protection-center .pcp-section>summary{color:var(--text)}
html[data-theme] body .pal-protection-center .pcp-section[open]>summary,
html[data-theme] body .pal-protection-center .pcp-section>summary:hover{background:var(--soft);border-color:var(--border)}
html[data-theme] body :is(
  .cf-company-identity strong,.cf-dialog-head h2,.company-feature-group legend,
  .cs-balance,.cs-stat strong,.ecr-stat strong,.ecr-stat span,
  .pcs-number-rules h3,.ss-method h2,.ss-enrollment h2,.ss-recovery h2,
  .pc-review-confirm h2,.pc-review-progress h2,.pc-mandatory-setting,
  .onboarding-brand,.onboarding-section-heading h2,.launch-title,
  .advanced-section h4,.advanced-settings summary span,.check,.check-line-title
){color:var(--text)}
html[data-theme] body :is(
  .cf-company-identity small,.cf-company-identity p,.cf-option-copy small,
  .cf-editor-footer>small,.cf-toolbar-count,.cf-muted,.cf-notice,.cf-table-footer,
  .cf-features-heading p,.cs-stat span,.cs-panel .section-heading p,
  .owner-api-providers-summary span,.owner-api-providers-summary small,
  .owner-api-providers-hero p,.owner-api-providers-form small,
  .twilio-checks-workspace small,.twilio-checks-subtext,.twilio-checks-fact dt,
  .pal-protection-center .pcp-section-copy small,.pal-protection-center .pcp-chevron,
  .ss-method p,.ss-enrollment p,.ss-disable p,.ss-recovery p,.ss-method>small,
  .ss-active-note,.ss-active-note small,.ss-enrollment label,.ss-main .stack label,
  .pc-mandatory-setting p,.pc-review-confirm small,.pc-review-preferences>p,
  .pc-review-preference-card p,.pc-review-progress p,.ecr-primary-filters label>span,
  .customer-overview-management small,.pal-outcome-caption,.professional-form-grid small
){color:var(--muted)}
html[data-theme] body :is(.cf-button,.cf-close,.cf-tabs button,.cl-tabs button,.pc-review-close,.pc-review-add,.pc-review-card-actions>[data-review-settings],.pc-review-confirm-actions button,.pc-review-preferences footer button){background:var(--panel);color:var(--text);border-color:var(--border)}
html[data-theme] body .cf-settings{background:var(--soft)!important;border-color:var(--border)!important;color:var(--accent)}
html[data-theme] body :is(.cf-tabs button.active,.cl-tabs button[aria-selected=true],.cs-section-nav a:first-child){background:var(--soft);color:var(--accent);border-color:var(--accent)}
html[data-theme] body :is(.primary,.pcs-primary,.cf-dialog .cf-primary,.pc-review-confirm-actions .pc-review-confirm-button,.pc-review-preferences .pc-review-confirm-button){background:var(--button-bg);color:var(--button-ink);border-color:var(--button-bg)}
html[data-theme] body :is(.primary,.pcs-primary,.cf-primary,.pc-review-confirm-button):hover{background:var(--button-hover);color:var(--button-ink)}
html[data-theme] body :is(.diagnostic-status.healthy,.badge.success,.cf-status-active,.twilio-checks-status[data-state=healthy],.twilio-checks-status[data-state=authenticated],.wp-status[data-tone=safe]){background:var(--success-bg);color:var(--ok);border-color:var(--ok)}
html[data-theme] body :is(.diagnostic-status.warning,.badge.warning,.cf-status-pending,.twilio-checks-status[data-state=configured_unverified],.twilio-checks-status[data-state=pending_provisioning],.twilio-checks-status[data-state=degraded]){background:var(--warning-bg);color:var(--warn)}
html[data-theme] body :is(.diagnostic-status.broken,.cf-status-suspended,.cf-status-disabled,.cf-status-rejected,.twilio-checks-status[data-state=auth_failed],.twilio-checks-status[data-state=failed],.twilio-checks-status[data-state=quota],.wp-status[data-tone=danger]){background:var(--danger-bg);color:var(--danger)}
html[data-theme] body :is(.badge.muted,.cf-status:not(.cf-status-active,.cf-status-pending,.cf-status-suspended,.cf-status-disabled,.cf-status-rejected),.twilio-checks-status:not([data-state=healthy],[data-state=authenticated],[data-state=configured_unverified],[data-state=pending_provisioning],[data-state=degraded],[data-state=auth_failed],[data-state=failed],[data-state=quota])){background:var(--neutral-bg);color:var(--muted)}
html[data-theme] body .diagnostics-summary .healthy strong{color:var(--ok)}
html[data-theme] body .diagnostics-summary .warning strong{color:var(--warn)}
html[data-theme] body .diagnostics-summary .broken strong{color:var(--danger)}
html[data-theme] body :is(.cf-chip,.cf-permission-count,.cf-avatar,.cf-product-icon,.ss-symbol,.staff-category-badge){color:var(--accent)}
html[data-theme] body :is(.cf-option,.cf-products,.cf-editor-footer,.cf-dialog-head,.ecr-sticky-tools){border-color:var(--border)}
html[data-theme] body :is(input,textarea,select):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html[data-theme] body :is(.pal-page-hero,.customer-overview-hero,.ecr-hero,.cl-hero,.company-feature-hero,.number-search-head,.onboarding-hero) :is(label,.hint,.eyebrow){color:#e5efff}
html[data-theme] body :is(.number-search-card,.number-search-details,.number-search-kpis>div,.number-search-result>.empty-state,.company-subscription-dialog,.customer-admin-card,.cs-platform-settings,.cs-account-controls,.account-auth-panel){background:var(--panel);color:var(--text);border-color:var(--border)}
html[data-theme] body :is(.number-search-location-summary,.cs-dialog-head,.support-login-panel,.admin-inline-form){background:var(--soft);color:var(--text);border-color:var(--border)}
html[data-theme] body .number-search-page #numberSearchForm{background:var(--panel);border-color:var(--border)}
html[data-theme] body :is(.number-search-report-heading h2,.number-search-details h3,.number-search-details>summary,.number-search-fact dd,.number-search-identity [data-field=name] dd,.number-search-location-summary strong,.number-search-kpis strong,.cs-dialog-head h2,.cs-settings>summary,.customer-admin-head h3){color:var(--text)}
html[data-theme] body :is(.number-search-fact dt,.number-search-fact.is-unavailable dd,.number-search-location-summary small,.number-search-history>p,.number-search-signals,.number-search-kpis small,.cs-dialog-head small,.cs-account-controls p,.cs-account-controls>small,.cs-section-nav a,.customer-admin-head p,.auth-heading p){color:var(--muted)}
html[data-theme] body .company-subscription-dialog .support-login-note{background:var(--soft)!important;color:var(--muted)!important;border-color:var(--border)!important}
html[data-theme] body .company-subscription-dialog .support-login-note strong{color:var(--text)!important}
html[data-theme] .employee-call-review-page .ecr-whitepages-modal :is(.ecr-dialog,.ecr-quick-heading,#ecrQuickCheckBody,.ecr-quick-footer){background:var(--panel)!important;color:var(--text)!important;border-color:var(--border)}
html[data-theme] .employee-call-review-page .ecr-whitepages-modal :is(#ecrQuickCheckTitle,#ecrQuickCheckNumber){color:var(--text)!important}
html[data-theme] body .wp-result{color:var(--text)}
html[data-theme] body .wp-result :is(.wp-owner,.wp-fact){background:var(--soft);border-color:var(--border)}
html[data-theme] body .wp-result :is(h3,.wp-info-line strong,.wp-fact strong){color:var(--text)}
html[data-theme] body .wp-result :is(small,.wp-label,.wp-fact span,.wp-zip,.wp-info-icon){color:var(--muted)}
html[data-theme] body .wp-result .wp-blue{color:var(--accent)}
html[data-theme] body :is(.twilio-lookup-options label,.pc-review-question,.ss-manual code,.ss-codes code){background:var(--soft);color:var(--text);border-color:var(--border)}
html[data-theme] body :is(.twilio-lookup-engine,.twilio-result-dialog>section,.pc-review-choice){background:var(--panel);color:var(--text);border-color:var(--border)}
html[data-theme] body .twilio-checks-workspace button:not(.primary){background:var(--panel);color:var(--text);border-color:var(--border)}
html[data-theme] body .pc-review-choice:has(input:checked){background:var(--soft);color:var(--accent);border-color:var(--accent)}
html[data-theme] body .wp-result .wp-fact[data-tone=safe]{background:var(--success-bg);border-color:var(--ok);color:var(--ok)}
html[data-theme] body .wp-result .wp-fact[data-tone=danger]{background:var(--danger-bg);border-color:var(--danger);color:var(--danger)}
html[data-theme] body .wp-result .wp-fact:is([data-tone=safe],[data-tone=danger]) strong{color:inherit}
@media(max-width:760px){html body .topbar{min-height:60px;padding-inline:10px}html body .shell-app,html body .customer-shell{padding:10px 7px 28px!important}html body .top-actions{gap:6px}.voxfort-theme-toggle{font-size:10px!important;padding-inline:8px!important}html body .app-sidebar{top:66px!important;bottom:8px!important;inset-inline-start:8px!important;max-height:calc(100vh - 74px)}}
@media(max-width:760px){html body.live-experience #liveTableWorkspace .live-call-table .live-call-actions-row{display:block!important}html body.live-experience #liveTableWorkspace .live-call-table .live-call-actions-row>td{display:block!important;width:100%!important;min-width:100%!important;overflow-x:auto!important}html body.live-experience #liveTableWorkspace .live-call-table .live-row-actions{grid-template-columns:repeat(7,minmax(88px,1fr));width:max-content;min-width:616px;overflow:visible;flex-wrap:nowrap}}
@media(prefers-reduced-motion:reduce){html body .app-sidebar,html body .sidebar-scrim{transition:none!important}}
