/* Default is deliberately untouched. Alternative palettes only affect screen colors. */
.ct-theme-picker{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;font:500 12px/1.4 system-ui;color:inherit}
.ct-theme-picker select{font:inherit!important;width:112px!important;min-width:0!important;min-height:36px!important;padding:6px 8px!important;border:1px solid #cbd5df!important;border-radius:7px!important;background:#fff!important;color:#263749!important;cursor:pointer}
.ct-theme-picker select:focus-visible{outline:3px solid #259bb4;outline-offset:2px}
@media(max-width:640px){.ct-theme-picker>span{display:none}.ct-theme-picker select{width:100px!important}.ct-app .ct-topbar:has(.ct-theme-picker){flex-wrap:wrap}.ct-app .ct-top-right:has(.ct-theme-picker){max-width:100%;flex-wrap:wrap}.ce-header:has(.ct-theme-picker),.st-header:has(.ct-theme-picker),.ct-compact-topbar:has(.ct-theme-picker){flex-wrap:wrap}}
@media print{.ct-theme-picker{display:none!important}}
/* Important colors in this layer take precedence over legacy unlayered overrides. */
@layer ct-appearance{
@media screen{
html[data-ct-theme="dark"]{color-scheme:dark;--ap-bg:#0f1723;--ap-surface:#182435;--ap-soft:#202f42;--ap-hover:#2a3f55;--ap-ink:#e7eef7;--ap-muted:#b2c2d4;--ap-line:#43576e;--ap-accent:#83d9f2;--ap-primary:#116782;--ap-primary-text:#fff;--ap-head:#102e43;--ap-head-text:#f3f8fd;--ap-green:#7cddb0;--ap-danger:#ff9caa;--ap-warning:#f3ce78;--ap-focus:#83d9f2;--ap-good-bg:#153a31;--ap-bad-bg:#422632;--ap-warn-bg:#3c3324}
html[data-ct-theme="white"]{color-scheme:light;--ap-bg:#fff;--ap-surface:#fff;--ap-soft:#f3f5f8;--ap-hover:#e7edf3;--ap-ink:#243247;--ap-muted:#53637a;--ap-line:#cdd6e1;--ap-accent:#185e88;--ap-primary:#244962;--ap-primary-text:#fff;--ap-head:#edf1f6;--ap-head-text:#243247;--ap-green:#157347;--ap-danger:#b4233c;--ap-warning:#805813;--ap-focus:#087796;--ap-good-bg:#eaf6ef;--ap-bad-bg:#fff0f2;--ap-warn-bg:#fff7e4}
html[data-ct-theme="enterprise"]{color-scheme:light;--ap-bg:#edf3f7;--ap-surface:#fff;--ap-soft:#e7f0f5;--ap-hover:#d8eaf0;--ap-ink:#16344a;--ap-muted:#4e6879;--ap-line:#bdcfda;--ap-accent:#00647e;--ap-primary:#075b70;--ap-primary-text:#fff;--ap-head:#12354b;--ap-head-text:#fff;--ap-green:#157347;--ap-danger:#ad2940;--ap-warning:#805813;--ap-focus:#007e9c;--ap-good-bg:#e8f5ee;--ap-bad-bg:#fff0f2;--ap-warn-bg:#fff7e4}
html[data-ct-theme] body{--ct-ink:var(--ap-ink);--ct-muted:var(--ap-muted);--ct-bg:var(--ap-bg);--ct-border:var(--ap-line);--ct-green:var(--ap-accent);--ct-soft:var(--ap-soft);--accent:var(--ap-accent);--text-muted:var(--ap-muted);color:var(--ap-ink)!important;background:var(--ap-bg)!important}
html[data-ct-theme] body :is(h1,h2,h3,h4,h5,h6,label,legend,.normal,.title2,.title3,.ct-summary-metric,.ct-summary-metric strong,.ct-summary-expiry strong){color:var(--ap-ink)!important}
html[data-ct-theme] body :is(.ct-muted,.ct-note,.ct-eyebrow,.ct-statusline,.ct-footer,.ct-nav-label,.ct-stat-label,.ct-stat-description,.ct-summary-metric>span,.ct-summary-expiry>span,.ct-summary-expiry small,.ct-metric-percent,.ct-renewal-target p,.ct-renewal-target small,.ct-settings-intro,.cp-help,.st-hint,.ce-kicker,.form-hint){color:var(--ap-muted)!important}
html[data-ct-theme] body :is(.ct-sidebar,.ct-topbar,.ct-compact-topbar,.ct-panel,.ct-stat,.ct-quick,.ct-account-menu,.ct-command-dialog,.ct-module-location,.ct-admin-surface,.ct-manager-profile,.ct-records-scroll,.ct-renewal-target,.ct-subscriber-search,.list-toolbar,.ct-service-directory,.ct-online-directory,.ct-settings,.ct-settings-group,.ct-service-group,.ct-network-editor,.ct-user-panel,.ct-user-savebar,.mgr-perm-card,.mgr-edit-panel,.usr-summary-row,.usr-menu,.panel,.cu-card,.cu-wallet,.cu-shortcuts>a,.cu-profile-page,.cp-form,.cp-profile-group,.st-header,.st-panel,.st-message,.st-create,.st-reply,.ce-header,.ce-pane,.ce-form-section,.ce-service-card,.ce-signup-form,.ct-customer-bottom){background:var(--ap-surface)!important;color:var(--ap-ink)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body #ct-dashboard :is(.ct-summary-card,#ct-expiration-panel){background:var(--ap-surface)!important;color:var(--ap-ink)!important;border-color:var(--ap-line)!important;border-top-color:var(--ap-accent)!important}
html[data-ct-theme] body #ct-dashboard :is(.ct-summary-card h2,.ct-summary-metric>span,.ct-summary-expiry>span,.ct-summary-expiry small,.ct-metric-percent){color:var(--ap-muted)!important}
html[data-ct-theme] body #ct-dashboard :is(.ct-summary-metric strong,.ct-summary-expiry strong,#ct-expiration-heading){color:var(--ap-ink)!important}
html[data-ct-theme] body #ct-dashboard #ct-expiration-panel .ct-summary-expiry{background:var(--ap-soft)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(.ct-module-tabs,.ct-user-tabs,.tab,.ct-settings-field,.ct-setting-choice,.ct-gateway-option,.ct-notification-card,.ct-billing-value,.ct-avatar,.ct-workspace-icon,.ct-chip,.ct-stat-icon,.ct-action-icon,.cp-fact,.cp-advanced,.cu-profile-fields>div,.st-ticket-row,.st-detail,.st-profile,.st-mine,.ce-feature,.ce-language,.ct-table-tools,.ct-sales-summary,.ct-service-toolbar,.ct-online-filters,.ct-subscriber-tools){background:var(--ap-soft)!important;color:var(--ap-ink)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(p,small,dt,dd,.ct-workspace,.ct-breadcrumb,.ct-module-link,.ct-module-tab,.tablinks,.ctnet-tab-btn,.st-message-meta,.st-ticket-info,.ct-nav-group summary){color:var(--ap-muted)!important}
html[data-ct-theme] body :is(input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background:var(--ap-surface)!important;color:var(--ap-ink)!important;border-color:var(--ap-line)!important;accent-color:var(--ap-accent)}
html[data-ct-theme] body :is(input,textarea)::placeholder{color:var(--ap-muted)!important;opacity:1}
html[data-ct-theme] body :is(input,select,textarea):disabled{background:var(--ap-soft)!important;color:var(--ap-muted)!important}
html[data-ct-theme] body :is(input[type=checkbox],input[type=radio]){accent-color:var(--ap-primary)}
html[data-ct-theme] body :is(button,.ct-button,.ct-home,.ct-launcher,.ct-account-toggle,.tablinks,.ctnet-tab-btn){background:var(--ap-surface)!important;color:var(--ap-ink)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(a,.ct-text-link,.ct-customer-link,.cp-receipt-link){color:var(--ap-accent)!important}
html[data-ct-theme] body :is(.ct-module-link,.ct-module-tab,.ct-overview,.ct-user-tabs a,.cu-section-tabs a):is([aria-current],.active),html[data-ct-theme] body :is(.tablinks.active,.ctnet-tab-btn.active,button[aria-selected=true],a[aria-selected=true]){background:var(--ap-soft)!important;color:var(--ap-accent)!important;border-color:var(--ap-accent)!important}
html[data-ct-theme] body :is(.ct-primary,input[type=submit],button[type=submit],.ce-access-button,.cu-renew){background:var(--ap-primary)!important;color:var(--ap-primary-text)!important;border-color:var(--ap-primary)!important}
html[data-ct-theme] body :is(.ct-primary,button[type=submit],.ce-access-button) :is(span,small,strong){color:var(--ap-primary-text)!important}
html[data-ct-theme] body :is(.ct-button,button,.ct-account-menu a,.ct-module-link,.ct-module-tab,.ct-overview):hover{background:var(--ap-hover)!important;color:var(--ap-ink)!important}
html[data-ct-theme] body :is(.ct-primary,input[type=submit],button[type=submit],.ce-access-button):hover{background:var(--ap-primary)!important;color:var(--ap-primary-text)!important;filter:brightness(1.12)}
html[data-ct-theme] body :is(a,button,input,select,textarea,summary):focus-visible{outline-color:var(--ap-focus)!important}
html[data-ct-theme] body :is(.cu-plan-hero,.ce-story,.ct-stat-highlight){background:var(--ap-head)!important;color:var(--ap-head-text)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(.cu-plan-hero,.ce-story,.ct-stat-highlight) :is(h1,h2,h3,p,small,strong,span,.ct-stat-label,.ct-stat-description){color:var(--ap-head-text)!important}
/* Table selectors mirror the shared renderer so legacy nested headings stay legible. */
html[data-ct-theme] body table.ct-records-table> :is(thead,tbody,tfoot)>tr> :is(td,th){color:var(--ap-ink)!important;border-bottom-color:var(--ap-line)!important}
html[data-ct-theme] body table.ct-records-table tr.ct-records-row>td{background:var(--ap-surface)!important}
html[data-ct-theme] body table.ct-records-table tr.ct-records-row:nth-child(even)>td{background:var(--ap-soft)!important}
html[data-ct-theme] body table.ct-records-table tr.ct-records-row:is(:hover,:focus-within)>td{background:var(--ap-hover)!important}
html[data-ct-theme] body table.ct-records-table tr.ct-records-row>td :is(a,a:visited){color:var(--ap-accent)!important}
html[data-ct-theme] body :is(table.ct-records-table tr.ct-records-head>th,table.ct-records-table tr.ct-records-head>td,.ct-table thead th,.cp-records th,.ct-admin-data-table th){background:var(--ap-head)!important;color:var(--ap-head-text)!important;border-color:var(--ap-accent)!important}
html[data-ct-theme] body table.ct-records-table tr.ct-records-head> :is(td,th) :is(table,thead,tbody,tr,td,th,a,span,div,font,b,strong,button){background:transparent!important;color:var(--ap-head-text)!important;border-color:transparent!important}
html[data-ct-theme="white"] body table.ct-records-table tr.ct-records-head img{filter:none}
html[data-ct-theme] body table.ct-records-table>tfoot>tr> :is(td,th){background:var(--ap-soft)!important}
/* Preserve semantic money/status colors; dark mode uses lighter accessible shades. */
html[data-ct-theme] body .ct-money-positive,html[data-ct-theme] body .ct-money-positive :is(a,span,strong),html[data-ct-theme] body table.ct-records-table tr.ct-records-row>td.ct-money-positive,html[data-ct-theme] body table.ct-records-table tr.ct-records-row>td.ct-money-positive a,html[data-ct-theme] body.ct-admin .ct-topbar .ct-balance,html[data-ct-theme] body.ct-admin .ct-topbar .ct-balance :is(small,span,strong){color:var(--ap-green)!important}
html[data-ct-theme] body .ct-money-negative,html[data-ct-theme] body .ct-money-negative :is(a,span,strong),html[data-ct-theme] body table.ct-records-table tr.ct-records-row>td.ct-money-negative,html[data-ct-theme] body table.ct-records-table tr.ct-records-row>td.ct-money-negative a{color:var(--ap-danger)!important}
html[data-ct-theme] body .ct-money-zero,html[data-ct-theme] body .ct-money-zero :is(a,span,strong),html[data-ct-theme] body table.ct-records-table tr.ct-records-row>td.ct-money-zero,html[data-ct-theme] body table.ct-records-table tr.ct-records-row>td.ct-money-zero a{color:var(--ap-muted)!important}
html[data-ct-theme] body :is(.st-success,.st-resolved,.is-enabled){color:var(--ap-green)!important;background:var(--ap-good-bg)!important;border-color:var(--ap-green)!important}
html[data-ct-theme] body :is(.st-alert,.login-error,.cu-profile-alert,.is-disabled){color:var(--ap-danger)!important;background:var(--ap-bad-bg)!important;border-color:var(--ap-danger)!important}
html[data-ct-theme] body :is(.ct-notice,.st-waiting){color:var(--ap-warning)!important;background:var(--ap-warn-bg)!important;border-color:var(--ap-warning)!important}
html[data-ct-theme] body :is(.req-star,.required,.ct-account-signout){color:var(--ap-danger)!important}
html[data-ct-theme="dark"] body :is(.ct-real-brand,.ce-logo,.st-header>a:first-child){background:#fff;border-radius:6px}
html[data-ct-theme] body :is(.ct-workspace,.ct-sales-summary,.ct-sales-summary>a,.ct-summary-metric+.ct-summary-metric,.cu-facts>div,.ct-module-tabs,.ct-section-tabs,.ct-footer,hr){border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(.ct-settings>form,.ct-business-actions>a,.ct-command,.ce-main,.ce-contact,.mgr-new-panel,.mgr-edit-content,.ct-user-form,.ct-settings-save,.ct-service-editor-actions){background:var(--ap-surface)!important;color:var(--ap-ink)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(.ct-sales-summary>a>span,.ct-sales-native,.ct-business-actions small,.cp-field-row>td,.ct-settings-field>td,.ct-user-field,.ct-field-help,.ce-native-note,.cu-overline,.cu-facts dt){color:var(--ap-muted)!important}
html[data-ct-theme] body :is(.ct-business-actions svg,.ct-quick svg,.ct-stat-icon,.ct-action-icon){color:var(--ap-accent)!important}
html[data-ct-theme] body :is(.ct-nav-group a,.ct-quick>a,.ct-sales-native,.ct-settings-save,.ce-story-foot){border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(kbd,.ct-person>span:first-child){background:var(--ap-soft)!important;color:var(--ap-muted)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(.ct-skip,.ct-operations-help,.ct-traffic,.cu-graphs){background:var(--ap-surface)!important;color:var(--ap-ink)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(.ct-about,.ct-about summary,.ct-customer-nav-caption,.ct-customer-signature,.ct-traffic-status,.ct-traffic-readout,.ct-traffic-unit){color:var(--ap-muted)!important}
html[data-ct-theme] body :is(.ct-service-group-title,.ct-service-group-title>td){color:var(--ap-ink)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body font:is([color="#FF0000" i],[color="red" i]){color:var(--ap-danger)!important}
html[data-ct-theme] body .ct-operation-link svg{color:var(--ap-accent)!important}
html[data-ct-theme] body .ct-operation-link{border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(.mgr-edit-section,.mgr-permission-search,.mgr-edit-savebar,.mgr-edit-tabbar,.usr-new-panel,.usr-new-section){background:var(--ap-surface)!important;color:var(--ap-ink)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(.mgr-balance-current,.mgr-perm-grid>label:has(input:checked),.mgr-perm-grid>label:hover){background:var(--ap-soft)!important;color:var(--ap-ink)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body :is(.ct-settings em,.mgr-permission-search span,.usr-new-help){color:var(--ap-muted)!important}
html[data-ct-theme] body .mgr-edit-header{background:var(--ap-head)!important;color:var(--ap-head-text)!important}
html[data-ct-theme] body .mgr-edit-header .mgr-edit-identity{color:var(--ap-head-text)!important}
html[data-ct-theme] body #ctnetNewUserFields>tbody>.ct-create-card{background:var(--ap-surface)!important;color:var(--ap-ink)!important;border-color:var(--ap-line)!important}
html[data-ct-theme] body #ctnetNewUserFields .ct-create-card-grid>tbody>tr>td{color:var(--ap-muted)!important}
html[data-ct-theme] body #ctnetNewUserFields .ct-create-card-grid .ct-create-section{border-color:var(--ap-line)!important}
html[data-ct-theme] body .ct-traffic-metrics>div{background:var(--ap-soft)!important;border-color:var(--ap-accent)!important}
html[data-ct-theme] body .ct-traffic-metrics :is(span,small){color:var(--ap-muted)!important}
html[data-ct-theme] body .ct-traffic-plot svg text{fill:var(--ap-muted)!important}
html[data-ct-theme="enterprise"] body .ct-sidebar{background:#12354b!important;color:#e4edf5!important;--ap-surface:#12354b;--ap-soft:#1e485e;--ap-hover:#29566c;--ap-ink:#e4edf5;--ap-muted:#c0d3e1;--ap-line:#416275;--ap-accent:#85d9ee}
html[data-ct-theme="enterprise"] body .ct-sidebar .ct-real-brand{background:#fff;border-radius:6px}
}
}
