.overview-top-controls{display:flex;align-items:center;gap:16px;margin-bottom:20px}.overview-top-controls .activation-status-bar{flex:1;margin:0}.overview-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-weight:600}.overview-theme-toggle:hover{border-color:var(--accent)}.overview-top-controls+.page-heading{margin-top:0}
:root[data-overview-theme="dark"]{color-scheme:dark;--ink:#e5edf7;--muted:#adbdd0;--line:#35465d;--surface:#101923;--blue:#8fc7ff;background:var(--surface);color:var(--ink)}
[data-overview-theme="dark"] body{background:var(--surface);color:var(--ink)}
[data-overview-theme="dark"] :is(.sidebar,.card,dialog,.overview-theme-toggle,.topbar){background:#192635;color:var(--ink);border-color:var(--line)}
[data-overview-theme="dark"] :is(th,td){border-color:var(--line);color:var(--ink)}
[data-overview-theme="dark"] thead th{background:#223348;color:#d8e6f7}
[data-overview-theme="dark"] :is(nav a,nav .sidebar-logout,.zscore-subtitle,.metric-label,.section-note,.comparison-scope,.zscore-data,.zscore-empty){color:var(--muted)}
[data-overview-theme="dark"] nav :is(a,.sidebar-logout):hover{background:#263b52}
[data-overview-theme="dark"] nav [aria-current]{background:#244666;color:#b3dcff}
[data-overview-theme="dark"] :is(.activation-status-bar,.score-chip,.tag,.comparison-own,.comparison-own th,.comparison-own td){background:#203b54;color:#c4e3ff;border-color:#486d90}
[data-overview-theme="dark"] :is(input,select,#strategic-analysis-form select){background:#132130;color:var(--ink);border-color:#536b85}
[data-overview-theme="dark"] :is(.comparison-info,.zscore-info){background:#294660;color:#c9e6ff;border-color:#6284a7}
[data-overview-theme="dark"] :is(.zscore-value,.card h2,.card h3,.text-link,.comparison-row-details summary){color:#b3d9ff}
[data-overview-theme="dark"] :is(.zscore-chart text,.checkup-chart text){fill:#c4d2e3}
[data-overview-theme="dark"] :is(.zscore-gridline,.checkup-chart-gridline){stroke:#405269}
[data-overview-theme="dark"] .zscore-card .zscore-negative{color:#ff8f94}
[data-overview-theme="dark"] .zscore-card .zscore-chart text.zscore-negative{fill:#ff8f94}
[data-overview-theme="dark"] :is(.risk-distress,.score-distress){color:#ff9298}
[data-overview-theme="dark"] :is(.risk-safe,.score-safe){color:#7de2b0}
[data-overview-theme="dark"] .sidebar .brand-logo{background:#fff;border-radius:6px}
@media(max-width:480px){.overview-top-controls{gap:8px;align-items:stretch}.overview-top-controls .activation-status-bar{font-size:12px}.overview-theme-toggle{padding:8px;font-size:12px}}
[data-overview-theme="dark"] .runway-card{background:#192635;border-color:var(--line)}[data-overview-theme="dark"] :is(.runway-eyebrow,.runway-caption){color:#b3d9ff}[data-overview-theme="dark"] .runway-value-low{color:#ff8f94}[data-overview-theme="dark"] .runway-scene{background:linear-gradient(#243c51,#314b60)}[data-overview-theme="dark"] .runway-edge-label{color:#e0ebf5}

/* Complete overview dark surfaces, chart contrast and the existing logo asset. */
[data-overview-theme="dark"] .sidebar .brand-logo{background:transparent;filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}
[data-overview-theme="dark"] .checkup-summary .score-visual{background:#192635;border-color:#405269}
[data-overview-theme="dark"] .checkup-summary .score-visual .score-distress{color:#ff9298}
[data-overview-theme="dark"] .checkup-summary .score-visual .score-safe{color:#7de2b0}
[data-overview-theme="dark"] .checkup-summary .score-visual :is(.score-grey,.score-unavailable){color:#c4d2e3}
[data-overview-theme="dark"] .checkup-summary :is(.score-visual span,.score-assessment p){color:#b8c9dc}
[data-overview-theme="dark"] .checkup-score-chart text{fill:#c4d2e3}
[data-overview-theme="dark"] .checkup-chart-background{fill:#223348}
[data-overview-theme="dark"] .checkup-chart-distress-zone{fill:#db5361;fill-opacity:.24}
[data-overview-theme="dark"] .checkup-chart-safe-zone{fill:#3da778;fill-opacity:.24}
[data-overview-theme="dark"] .checkup-score-line{stroke:#e4f2ff}
[data-overview-theme="dark"] .checkup-score-point{fill:#8fc7ff;stroke:#162534;stroke-width:1.5px}
[data-overview-theme="dark"] .checkup-zone-legend small{color:#b8c9dc}
[data-overview-theme="dark"] .zone-grey{background:#223348;border-color:#7c91ab}
[data-overview-theme="dark"] .zone-distress{background:#5a303f}
[data-overview-theme="dark"] .zone-safe{background:#284d45}
[data-overview-theme="dark"] :is(.comparison-table,.financial-history-table,.strategic-table,.zscore-data table){background:#192635;color:#e5edf7}
[data-overview-theme="dark"] :is(.comparison-table,.financial-history-table,.strategic-table,.zscore-data table) :is(th,td){color:#e5edf7;border-color:#35465d;background:transparent}
[data-overview-theme="dark"] :is(.comparison-table,.financial-history-table,.strategic-table,.zscore-data table) thead th{background:#263b52;color:#dcecff}
[data-overview-theme="dark"] :is(.comparison-table,.financial-history-table,.strategic-table,.zscore-data table) tbody tr:nth-child(even){background:#203044}
[data-overview-theme="dark"] .comparison-table :is(tr.comparison-own,tr.comparison-own th,tr.comparison-own td){background:#244461;color:#e5f2ff}
[data-overview-theme="dark"] .comparison-table a{color:#9aceff}
[data-overview-theme="dark"] :is(.checkup-summary,.checkup-zone-legend) .risk-distress{color:#ff9298!important}[data-overview-theme="dark"] :is(.checkup-summary,.checkup-zone-legend) .risk-safe{color:#7de2b0!important}[data-overview-theme="dark"] .checkup-chart-card .period{color:#b8c9dc}

/* Keep text and SVG close controls visible on dark dialog surfaces. */
html[data-overview-theme="dark"] dialog :is(.dialog-close,.strategic-insights-close),
html[data-overview-theme="dark"] dialog :is(.dialog-close,.strategic-insights-close):is(:hover,:focus,:active),
html[data-overview-theme="dark"] [data-benchmarking-dialog] .benchmark-dialog-header .dialog-close{color:#fff!important;background:transparent!important}
html[data-overview-theme="dark"] dialog :is(.dialog-close,.strategic-insights-close) svg{stroke:#fff!important;fill:none}

/* Page-specific layouts share the same theme palette. */
html[data-overview-theme="dark"] body{--ink:#e5edf7;--muted:#adbdd0;--line:#35465d;--surface:#101923;--accent:#8fc7ff;background:#101923!important;color:#e5edf7!important}
html[data-overview-theme="dark"] :is(.signup-card,.signin-card,.login-card,.auth-card,.checkup-panel,.igibs-coverage,.search-panel,.igibs-topbar,.document-sheet,.report-sheet),
html[data-overview-theme="dark"] :is(main>form,main>details,#results>details){background:#192635!important;color:#e5edf7;border-color:#35465d}
html[data-overview-theme="dark"] :is(input,select,textarea){background:#132130!important;color:#e5edf7!important;border-color:#536b85!important}
html[data-overview-theme="dark"] :is(input,select,textarea):disabled{background:#202f40!important;color:#a6b9cf!important}
html[data-overview-theme="dark"] :is(input,textarea)::placeholder{color:#9aacbf}
html[data-overview-theme="dark"] :is(.intro,.field-help,.checkup-panel-intro,.igibs-panel-intro,.igibs-eyebrow,label,legend){color:#bacde1}
html[data-overview-theme="dark"] :is(main,.signup-card,.signin-card,.login-card) a:not(.button):not(.igibs-topbar-button){color:#9aceff}
html[data-overview-theme="dark"] :is(.field,.checkup-panel,.signup-card) :is(h1,h2,h3){color:#e5edf7}
html[data-overview-theme="dark"] .igibs-page .metric>span{color:#b3d9ff}
html[data-overview-theme="dark"] :is(table,thead,tbody,tr,th,td){border-color:#35465d}
html[data-overview-theme="dark"] :is(.brand,.signin-brand) img{background:transparent;filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}
@media print{html[data-overview-theme="dark"] body{background:#fff!important;color:#000!important}}

html[data-overview-theme="dark"] :is(.action-document,.cards>article,.notice,.document-note,.document-metadata,.financial-dialog,.profile-dialog,.license-dialog){background:#192635!important;color:#e5edf7;border-color:#35465d}
html[data-overview-theme="dark"] :is(.action-document-page,.steward-page,.inputs-page,.new-checkup-page) :is(section,details,fieldset){border-color:#35465d}
html[data-overview-theme="dark"] :is(.signin-card,.signup-card) :is(.preferences,.welcome,.eyebrow){color:#b8c9dc}
html[data-overview-theme="dark"] :is(.cards>article,.notice,.document-note) :is(strong,span){color:#c4d2e3}
[data-overview-theme="dark"] .benchmark-dialog-header{background:#192635;color:#e5edf7}[data-overview-theme="dark"] .benchmark-dialog-header h2{color:#b3d9ff}

.benchmark-metric-tooltip{position:fixed;inset:auto;margin:0;width:340px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:14px 16px;border:1px solid #b9cde0;border-radius:8px;background:#fff;color:#20334b;font-size:13px;font-weight:400;line-height:1.6;box-shadow:0 8px 28px #10294330;text-align:left}
[data-overview-theme="dark"] .benchmark-metric-tooltip{background:#223348;color:#e5edf7;border-color:#6383a6}

/* Consistent normal-weight text for buttons and links styled as buttons. */
:is(button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"],.button,.btn,.igibs-topbar-button,.signup-button,.create-account){font-weight:400!important}
:is(button,[role="button"],.button,.btn,.igibs-topbar-button,.signup-button,.create-account) :is(span,strong,b){font-weight:inherit!important}

.zscore-dialog .zscore-dialog-close,.zscore-dialog .zscore-dialog-close:is(:hover,:focus,:active){position:absolute;top:12px;right:12px;display:grid;place-items:center;width:36px;height:36px;margin:0;padding:7px;background:transparent!important;background-image:none!important;border:0!important;border-radius:0;box-shadow:none!important;color:var(--ink)!important}
.zscore-dialog .zscore-dialog-close svg{width:22px;height:22px;stroke:currentColor;fill:none}
.zscore-dialog :is(h2,.tag){margin-right:32px}
html[data-overview-theme="dark"] .zscore-dialog .zscore-dialog-close,html[data-overview-theme="dark"] .zscore-dialog .zscore-dialog-close:is(:hover,:focus,:active){color:#fff!important}
