.theme-toggle{width:38px;height:38px;min-width:38px;border:1px solid #dce5ef;border-radius:12px;background:#f4f7fb;color:#12355b;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;padding:8px}
.theme-toggle:hover{background:#eaf1f9}
.theme-toolbar{display:flex;justify-content:flex-start;margin-bottom:12px}
.theme-dialog{width:min(390px,calc(100% - 28px));padding:22px;border:1px solid var(--ui-line);border-radius:24px;color:var(--ui-ink);background:var(--ui-surface);box-sizing:border-box;box-shadow:0 20px 70px #0003}
.theme-dialog::backdrop{background:#10243788;backdrop-filter:blur(4px)}
.theme-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}
.theme-dialog h2{font-size:1.15rem;line-height:1.6;margin:0}
.theme-dialog p{font-size:.8rem;color:var(--ui-muted);margin:4px 0 0}
.theme-close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;padding:0;line-height:1;border:0;border-radius:10px;background:var(--ui-soft);color:var(--ui-ink);font-size:1.3rem;cursor:pointer}
.theme-close svg{display:block;flex-shrink:0}
.theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.theme-choices button{display:flex;flex-direction:column;align-items:center;gap:12px;justify-content:center;min-height:90px;padding:12px 6px;border:1px solid var(--ui-line);border-radius:15px;background:var(--ui-surface);color:var(--ui-ink);font:inherit;font-size:.8rem;cursor:pointer}
.theme-choices button[aria-pressed=true]{border-color:#7199c7;background:var(--ui-soft);box-shadow:inset 0 0 0 1px #7199c7}
.theme-dialog .theme-note{margin-top:16px}
.theme-toggle:focus-visible,.theme-choices button:focus-visible,.theme-close:focus-visible{outline:2px solid #7199c7;outline-offset:3px}
.home-brand-strip .home-license{flex:1}
.home-brand-strip .home-animated-logo{order:2}
.home-brand-strip .theme-toggle{order:1}
[data-theme=dark]{--ui-ink:#e4edf8;--ui-muted:#a3b3c7;--ui-line:#304152;--ui-surface:#182431;--ui-soft:#202f40;--kp-navy:#e4edf8;--kp-muted:#a3b3c7;--kp-line:#304152;--kp-card:#182431;--kp-bg:#101923;--appilix-bg:#101923;--appilix-navy:#e4edf8}
html[data-theme=dark],html[data-theme=dark] body,html[data-theme=dark] :is(.public-shell,.home-landing,.app-shell){background:#101923;color:#e4edf8}
html[data-theme=dark] :is(.card,.request-card,.stat,.technician-choice-card,.home-service-card,.catalog-service-card,.quote,.khadoom-requests-intro,.technician-dashboard-hero,.kp-page-hero,.catalog-hero,.khadoom-customer-welcome,.home-hero.khadoom-welcome,.request-status-summary){background:#182431!important;border-color:#304152!important;color:#e4edf8;box-shadow:none}
html[data-theme=dark] :is(.topbar,.app-header-clean,.public-header,.home-brand-strip,.appilix-header,.bottom-nav,.mobile-more-menu){background:#14202c!important;border-color:#304152!important;box-shadow:none;color:#e4edf8;backdrop-filter:none}
html[data-theme=dark] :is(h1,h2,h3,h4,.card-title,.request-title,.stat-value,.tech-name,.user-name,.catalog-service-copy strong,.home-service-content h3,.appilix-page-title,.detail-value,.timeline-title){color:#e4edf8!important}
html[data-theme=dark] :is(.muted,.card-subtitle,.home-hero p,.khadoom-page-intro p,.home-eyebrow,.home-license,.home-service-content p,.catalog-service-copy small,.catalog-hero p,.detail-label,.stat-label,.request-meta,.site-footer,.tiny,.small.muted){color:#a3b3c7!important}
html[data-theme=dark] :is(.form-label,.ui-select-button,.comment-name,.request-no,.form-control,.check-row,.catalog-back,.home-service-cta,.catalog-service-cta){color:#dce8f7}
html[data-theme=dark] .home-service-card .home-service-cta{background:transparent;color:#dce8f7;border-top-color:#3a5067;box-shadow:none}
html[data-theme=dark] .home-service-card .home-service-cta span{background:#263b50;color:#dce8f7;border-color:#3a5067}
html[data-theme=dark] :is(.form-control,.ui-select-button,.registration-password-field,.work-gov-trigger){background:#101c28!important;border-color:#3a5067!important;color:#e4edf8!important}
html[data-theme=dark] :is(.form-control,.ui-select-button):focus{border-color:#7ea6d2!important;box-shadow:0 0 0 3px #7ea6d222}
html[data-theme=dark] .form-control::placeholder{color:#8399b0}
html[data-theme=dark] :is(.detail-item,.request-service-pair,.notification-guide,.empty,.registration-section,.inspection-fee-box,.tech-specialties,.account-retained-list,.account-summary-grid>div){background:#14202d!important;border-color:#304152!important;color:#a3b3c7}
html[data-theme=dark] :is(.btn-primary,.btn-gold,.btn-hero-light){background:#b4cff0!important;border-color:#b4cff0!important;color:#10283f!important;box-shadow:none!important}
html[data-theme=dark] :is(.btn-light,.btn-outline,.btn-light-mobile,.request-filter-button){background:#202f40!important;border-color:#3a5067!important;color:#e4edf8!important;box-shadow:none}
html[data-theme=dark] .btn-success{background:#123e36!important;border-color:#256c59!important;color:#b0ecd5!important}
html[data-theme=dark] .btn-danger{background:#482831!important;border-color:#79434d!important;color:#ffd2d6!important}
html[data-theme=dark] :is(.alert,.alert-info,.catalog-login-note){background:#193149;border-color:#355879;color:#c0daf3}
html[data-theme=dark] :is(.alert-error,.alert-danger){background:#42252e;border-color:#75414c;color:#ffd2d6}
html[data-theme=dark] .alert-success{background:#163a32;border-color:#2c6856;color:#b0ecd5}
html[data-theme=dark] .alert-warning{background:#3b3222;border-color:#6c5835;color:#f4d6a1}
html[data-theme=dark] :is(.badge,.status-new,.status-pending,.status-waiting){background:#2b3b50;color:#c5daf3;border-color:#405571}
html[data-theme=dark] :is(.status-progress,.status-agreed){background:#193f4b;color:#a8dfe9}
html[data-theme=dark] :is(.status-completed,.status-closed){background:#193d32;color:#b0ecd5}
html[data-theme=dark] :is(.ui-picker,.theme-dialog,.notification-guide-modal,.khadoom-goodbye-modal,.terms-modal-panel,.kp-confirm-modal,.loader-card){background:#182431!important;color:#e4edf8!important;border-color:#304152!important}
html[data-theme=dark] :is(.ui-picker-option,.theme-choices button){background:#182431;color:#e4edf8}
html[data-theme=dark] :is(.ui-picker-option[aria-selected=true],.ui-picker-option:hover,.theme-choices button[aria-pressed=true]){background:#2a405a;color:#edf5ff;border-color:#577da7}
html[data-theme=dark] :is(.ui-picker-head,.sep,.site-footer,.request-service-details[open]>summary){border-color:#304152}
html[data-theme=dark] :is(.ui-picker-close,.theme-close,.theme-toggle,.appilix-back,.appilix-bell,.appilix-exit,.user-avatar,.header-logout){background:#263b50;color:#dce8f7;border-color:#3a5067}
html[data-theme=dark] :is(.bottom-nav>a,.bottom-nav summary){color:#99b2d0!important}
html[data-theme=dark] :is(.bottom-nav>a.active,.bottom-nav>a[href$="/Requests/AddRequest.aspx"].active,.mobile-more.active summary,.mobile-more[open] summary){background:#293f5c!important;color:#e1edff!important}
html[data-theme=dark] .bottom-nav a:hover{background:#22364d!important;color:#e1edff!important}
html[data-theme=dark] .desktop-nav a{color:#c0d2e7}
html[data-theme=dark] .desktop-nav a.active{background:#293f5c;color:#edf5ff}
html[data-theme=dark] :is(.registration-password-toggle,.notification-open,.notification-reminder a,.support-links a,.footer-policy-links a,.request-service-details>summary){color:#b9d4f5}
html[data-theme=dark] :is(.home-kicker,.registration-choice-icon){background:#263b50!important;color:#dce8f7!important;border-color:#3a5067!important}
html[data-theme=dark] .loader-overlay{background:#101923f2}
html[data-theme=dark] .notification-unread{background:#20354b!important;border-inline-start-color:#9cbee8!important}
html[data-theme=dark] :is(.home-service-visual,.catalog-service-icon,.home-service-icon,.catalog-hero-icon){background:#fff;border-color:#fff}
html[data-theme=dark] :is(.brand img,.public-logo,.home-animated-logo img,.catalog-brand img,.appilix-account){background:#fff;border-radius:12px}
html[data-theme=dark] .public-brand-header.auth-brand-header .home-animated-logo{background:#fff!important;border:1px solid #dfe8f2;border-radius:14px;padding:6px;box-sizing:border-box}
html[data-theme=dark] :is(.khadoom-artwork,.khadoom-page-helper,.khadoom-welcome-art,.khadoom-state-art,.khadoom-confirmation-art,.khadoom-loading-art,.khadoom-goodbye-art,.home-hero.khadoom-welcome .home-hero-brand){background:transparent!important}
html[data-theme=dark] .notification-reminder{background:#182431;border-color:#304152}
@media print{.theme-toggle,.theme-toolbar{display:none!important}html[data-theme=dark] body{background:#fff!important;color:#111!important}}

.registration-top-row>a:last-of-type{order:2}.registration-top-row .theme-toggle{order:1}
@media(max-width:380px){.header-account-actions{gap:5px}.header-account-actions .user-name{max-width:75px}.theme-toggle{width:34px;min-width:34px;height:36px}}
html[data-theme=dark] :is(.home-service-content,.home-trust-strip,.home-step,.home-cta,.registration-section-title,.account-summary-card,.notification-reminder){background:#182431!important;border-color:#304152!important;color:#e4edf8}
html[data-theme=dark] .home-service-visual{background:transparent!important}
html[data-theme=dark] .premium-home .home-hero.khadoom-welcome .home-kicker{color:#dce8f7!important;background:#263b50!important}
html[data-theme=dark] .premium-home .home-registration-actions .btn{background:#182431!important;border-color:#3a5067!important;color:#e4edf8!important}
html[data-theme=dark] :is(.home-trust-item strong,.home-step strong,.home-cta strong,.account-summary-grid strong,.registration-section-title strong){color:#e4edf8!important}
html[data-theme=dark] :is(.home-trust-item small,.home-step p,.home-cta p,.home-cta span){color:#a3b3c7!important}
html[data-theme=dark] :is(table,thead,tbody,tr,td,th){border-color:#304152}
html[data-theme=dark] th{background:#202f40;color:#e4edf8}
html[data-theme=dark] td{background:#182431;color:#dce8f7}
html[data-theme=dark] .bottom-nav>a[href$="/Requests/AddRequest.aspx"]{background:#3c3423!important;color:#ffe3a1!important;border:1px solid #8b7448;box-shadow:none;font-weight:700}
html[data-theme=dark] .bottom-nav>a[href$="/Requests/AddRequest.aspx"].active{background:#f5d58c!important;color:#12355b!important;border-color:#c89b43;box-shadow:inset 0 0 0 1px #c89b43}
