/* HEIOS Mail Light Executive — base theme, default light; explicit dark opt-out */
:root[data-heios-theme="light"]{color-scheme:light;--bg:#f3f7fc;--surface:#ffffff;--panel:#f8fbff;--border:#d8e4ef;--text:#12233e;--muted:#5e748e;--accent:#1588ed;--warning:#ab671f}
html[data-heios-theme="light"],html[data-heios-theme="light"] body{background:#f4f8fc!important;color:#152744!important}
html[data-heios-theme="light"] .top{background:#ffffff!important;border-color:#dce7f1!important;box-shadow:0 3px 17px #1837550d!important}
html[data-heios-theme="light"] .top .logo,html[data-heios-theme="light"] .top .brand-block,html[data-heios-theme="light"] .top-tab,html[data-heios-theme="light"] .intro h1,html[data-heios-theme="light"] h1,html[data-heios-theme="light"] h2,html[data-heios-theme="light"] h3{color:#132640!important}
html[data-heios-theme="light"] .top-tab.chosen{background:#eaf5ff!important;color:#1277c9!important;border-bottom-color:#279bec!important}
html[data-heios-theme="light"] .top-tab:hover:not(.chosen){background:#f0f6fc!important;color:#1569ac!important}
html[data-heios-theme="light"] .top small,html[data-heios-theme="light"] .intro p,html[data-heios-theme="light"] .overview-hint{color:#64819d!important}
html[data-heios-theme="light"] .top-search,html[data-heios-theme="light"] input,html[data-heios-theme="light"] select,html[data-heios-theme="light"] textarea{background:#f7faff!important;border-color:#d4e2ee!important;color:#203957!important}
html[data-heios-theme="light"] .top-actions #connect,html[data-heios-theme="light"] .top-actions #technicalSettings,html[data-heios-theme="light"] .theme-toggle{background:#f8fbff!important;color:#1f466c!important;border-color:#d1e0ec!important}
html[data-heios-theme="light"] .top-actions #sync{background:#258fe8!important;color:white!important;border-color:#258fe8!important}
html[data-heios-theme="light"] .shared-sidebar,html[data-heios-theme="light"] .mobile-drawer{background:#fff!important;border-color:#dce6ef!important;box-shadow:0 5px 24px #1134520a!important}
html[data-heios-theme="light"] .shared-sidebar .sidebar-heading,html[data-heios-theme="light"] .sidebar-heading{color:#6a829d!important}
html[data-heios-theme="light"] .shared-sidebar button,html[data-heios-theme="light"] .mobile-drawer button{color:#385774!important}
html[data-heios-theme="light"] .shared-sidebar .folder-entry.selected,html[data-heios-theme="light"] .mobile-drawer .selected{background:#e3f2ff!important;border-color:#8bc7fa!important;color:#1264a6!important}
html[data-heios-theme="light"] .shared-sidebar button:hover{background:#eef7ff!important}
html[data-heios-theme="light"] .stats .stat{background:#fff!important;border-color:#dce7f0!important;box-shadow:0 3px 16px #284f780b!important}
html[data-heios-theme="light"] .stat b{color:#192a46!important}
html[data-heios-theme="light"] .stat small{color:#57728c!important}
html[data-heios-theme="light"] .overview-intro{border-color:#dae6ef!important}
html[data-heios-theme="light"] .overview-intro-copy{color:#6b829b!important}
html[data-heios-theme="light"] .overview-card,html[data-heios-theme="light"] .overview-grid>section,html[data-heios-theme="light"] #auditView,html[data-heios-theme="light"] .detail,html[data-heios-theme="light"] .rows,html[data-heios-theme="light"] .move-toolbar{background:#fff!important;border-color:#d9e5ef!important;box-shadow:0 4px 18px #294d700b!important}
html[data-heios-theme="light"] .overview-card.now{background:#fff9f8!important}
html[data-heios-theme="light"] .overview-card.later{background:#fffcf6!important}
html[data-heios-theme="light"] .overview-card.unclear{background:#faf8ff!important}
html[data-heios-theme="light"] .overview-case{border-color:#e3edf5!important;color:#18314d!important}
html[data-heios-theme="light"] .overview-case:hover{background:#f2f8fe!important}
html[data-heios-theme="light"] .overview-case span,html[data-heios-theme="light"] .overview-bar-label,html[data-heios-theme="light"] .overview-hint{color:#627e98!important}
html[data-heios-theme="light"] .overview-track{background:#edf2f7!important}
html[data-heios-theme="light"] .quickfilters button{background:#fff!important;color:#456782!important;border-color:#d8e4ef!important}
html[data-heios-theme="light"] .quickfilters button.chosen{background:#e0f1ff!important;color:#0669b1!important;border-color:#91c9f4!important}
html[data-heios-theme="light"] .mail-entry,html[data-heios-theme="light"] .case-event{background:#fff!important;border-color:#e0eaf2!important;color:#18314e!important}
html[data-heios-theme="light"] .mail-entry:hover{background:#f4faff!important}
html[data-heios-theme="light"] .mail-entry:has(.mail.active){background:#e8f4ff!important}
html[data-heios-theme="light"] .mail strong,html[data-heios-theme="light"] .case-event strong{color:#162c49!important}
html[data-heios-theme="light"] .mail p,html[data-heios-theme="light"] .mail small,html[data-heios-theme="light"] .case-event small,html[data-heios-theme="light"] .detail p{color:#627e98!important}
html[data-heios-theme="light"] .analysis-status{background:#fff9f2!important;border-color:#e8d1b5!important;color:#784315!important}
html[data-heios-theme="light"] .case-event:nth-child(even){background:#f8fbfe!important}
html[data-heios-theme="light"] .audit-group,html[data-heios-theme="light"] .audit-group summary{background:#f5f9fd!important;border-color:#d8e5ef!important;color:#153351!important}
html[data-heios-theme="light"] .audit-group .audit-event,html[data-heios-theme="light"] .audit-group .audit-event:nth-child(even){background:#fff!important;border-color:#dfeaf2!important;color:#23435f!important}
html[data-heios-theme="light"] .audit-group summary:hover{background:#ebf5ff!important}
html[data-heios-theme="light"] .status-transfer,html[data-heios-theme="light"] .selection-hint,html[data-heios-theme="light"] .footnote{color:#64819b!important}
html[data-heios-theme="light"] .detail-welcome,html[data-heios-theme="light"] .welcome-steps>div{background:#f6faff!important;border-color:#d8e6f1!important;color:#375977!important}
html[data-heios-theme="light"] .action-dialog,html[data-heios-theme="light"] dialog{background:#fff!important;color:#142b45!important;border-color:#a2bed5!important}
html[data-heios-theme="light"] dialog p,html[data-heios-theme="light"] dialog small{color:#5f7993!important}
html[data-heios-theme="light"] .folder-empty{background:#fff5f4!important;color:#af3944!important}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;min-height:38px;padding:8px 11px;background:#102c43;border:1px solid #35546d;color:#d1eafd;font-weight:650;font-size:12px;white-space:nowrap}
.theme-toggle svg{width:17px;height:17px;flex-shrink:0}
.theme-toggle:focus-visible{outline:2px solid #3297ed;outline-offset:3px}
@media(max-width:850px){.top-actions #themeToggle{min-width:36px!important;width:36px!important;padding:0!important}.top-actions #themeToggle .theme-text{display:none}.theme-toggle{font-size:11px}html[data-heios-theme="light"] .top{background:#fff!important}}

/* v5.17.3: readable, understated Outlook connection indicator */
html[data-heios-theme="light"] .intro #mode{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 background:#eef7ff!important;color:#1263a3!important;border:1px solid #bcdff9!important;
 border-radius:999px!important;padding:8px 13px!important;min-height:33px!important;
 font-size:12px!important;font-weight:650!important;letter-spacing:0!important;
 white-space:nowrap!important;box-shadow:none!important;
}
html[data-heios-theme="light"] .intro #mode::before{
 content:"";width:7px;height:7px;background:#1aab78;border-radius:50%;margin-right:8px;flex-shrink:0;
}
html[data-heios-theme="light"] .intro #mode:not([data-connected="true"])::before{background:#92a4b9}
