/* Advantage Log Portal 4.3.0 RC3 · Light Theme Contrast Repair.
 * All declarations are scoped to light mode. Dark theme retains approved RC2 styling.
 * Orange highlights are for device identities; never override semantic severity hues.
 */
html[data-theme="light"] {
  --v433-ink:#13354b;
  --v433-sub:#365c73;
  --v433-label:#31576f;
  --v433-muted:#46697e;
  --v433-line:rgba(24,112,158,.25);
}
/* Analytics cards: the prior v43 sheet assigned near-white foreground to pale cards. */
html[data-theme="light"] .v43-analytic-card,
html[data-theme="light"] .v43-metric {
  color:var(--v433-ink);
  background:linear-gradient(144deg,#ffffff 0%,#f1f9fd 70%,#e9f5fc 100%);
  border-color:var(--v433-line);
  box-shadow:0 8px 25px rgba(14,83,124,.075);
}
html[data-theme="light"] .v43-metric-top,
html[data-theme="light"] .v43-metric-label,
html[data-theme="light"] .v43-kicker,
html[data-theme="light"] .v43-policy-label { color:var(--v433-label); }
html[data-theme="light"] .v43-metric-label {font-size:11px;letter-spacing:.075em}
html[data-theme="light"] .v43-metric-value,
html[data-theme="light"] .v43-card-head h3,
html[data-theme="light"] .v43-gauge-core strong,
html[data-theme="light"] .v43-donut-center strong,
html[data-theme="light"] .v43-hbar-number,
html[data-theme="light"] .v43-legend-item strong,
html[data-theme="light"] .v43-pulse-row-head strong { color:#103149; }
html[data-theme="light"] .v43-metric p,
html[data-theme="light"] .v43-note,
html[data-theme="light"] .v43-gauge-caption,
html[data-theme="light"] .v43-legend-item,
html[data-theme="light"] .v43-legend-name,
html[data-theme="light"] .v43-hbar-label,
html[data-theme="light"] .v43-pulse-row-head,
html[data-theme="light"] .v43-status-note,
html[data-theme="light"] .v43-policy-caption,
html[data-theme="light"] .v43-empty { color:var(--v433-sub); }
html[data-theme="light"] .v43-gauge-core span,
html[data-theme="light"] .v43-donut-center small,
html[data-theme="light"] .v43-legend-percent { color:var(--v433-muted); }
html[data-theme="light"] .v43-gauge-arc:before,
html[data-theme="light"] .v43-donut:before {
  background:linear-gradient(145deg,#fff 0%,#e8f3fb 100%);
  box-shadow:inset 0 0 0 1px rgba(35,116,165,.17),inset 0 2px 12px rgba(21,79,118,.07);
}
html[data-theme="light"] .v43-gauge-arc,
html[data-theme="light"] .v43-donut {filter:none;box-shadow:0 5px 18px rgba(19,92,139,.1),0 0 0 1px rgba(30,119,163,.15)}
html[data-theme="light"] .v43-hbar-track,
html[data-theme="light"] .v43-pulse-track {background:#d8eaf4;}
html[data-theme="light"] .v43-status-note--warn { color:#81520c; }
html[data-theme="light"] .v43-analytic-card .v43-status-pill {
  color:#08604d;
  border-color:rgba(21,128,101,.3);
  background:#e1f8ef;
}
/* Devices: preserve Advantage orange IPs, but make all other metadata dark. */
html[data-theme="light"] .v42-devices .source-card .metric-label,
html[data-theme="light"] .v42-devices .source-card .source-seen,
html[data-theme="light"] .v42-devices .source-card .metric-caption,
html[data-theme="light"] .v42-devices .source-card .source-label {
  color:var(--v433-label);
}
html[data-theme="light"] .v42-devices .source-card .source-seen strong,
html[data-theme="light"] .v42-devices .source-card .metric-value,
html[data-theme="light"] .v42-devices .source-card .source-name {
  color:var(--v433-ink);
}
html[data-theme="light"] .v42-device-profile .statistics-grid .stat-label,
html[data-theme="light"] .v42-device-profile .detail-row .detail-label,
html[data-theme="light"] .v42-device-profile .phone-item .phone-status-label,
html[data-theme="light"] .v42-device-profile .v42-profile-breadcrumb { color:var(--v433-label); }
html[data-theme="light"] .v42-device-profile .detail-row .detail-value,
html[data-theme="light"] .v42-device-profile .statistics-grid .stat-value,
html[data-theme="light"] .v42-device-profile .phone-item .phone-name { color:var(--v433-ink); }
/* The orange IP selector from v432-readability.css remains in force in both themes. */
html[data-theme="light"] .v42-system-health .health-summary .summary-label,
html[data-theme="light"] .v42-retention .retention-stat-label,
html[data-theme="light"] .v42-retention .v43-policy-caption,
html[data-theme="light"] .v42-email-alerts .v43-legend-item,
html[data-theme="light"] .v42-users .v43-legend-item,
html[data-theme="light"] .v42-blocked-ips .v43-legend-item { color:var(--v433-label); }
html[data-theme="light"] .v42-system-health .health-summary .summary-value,
html[data-theme="light"] .v42-retention .retention-stat-value {color:var(--v433-ink);}
html[data-theme="light"] .v42-retention .v43-policy-value { color:var(--v432-orange-strong); }
/* All statuses keep their semantic meaning. Increase contrast of pale pills only. */
html[data-theme="light"] .v42-page .status-online,
html[data-theme="light"] .v42-page .status-active,
html[data-theme="light"] .v42-page .status-on,
html[data-theme="light"] .v42-page .status-sent { color:#116247;background:#ddf6eb;border-color:#70c6ab; }
html[data-theme="light"] .v42-page .status-stale,
html[data-theme="light"] .v42-page .status-skipped { color:#79500b;background:#fff1cb;border-color:#e5bc61; }
html[data-theme="light"] .v42-page .status-offline,
html[data-theme="light"] .v42-page .status-inactive,
html[data-theme="light"] .v42-page .status-failed,
html[data-theme="light"] .v42-page .status-off { color:#9b2a41;background:#ffe7ed;border-color:#e9a1b2; }
/* Default foreground for common unstyled summary labels on pale surfaces. */
html[data-theme="light"] .v42-page .v42-section-line p,
html[data-theme="light"] .v42-page .v42-section-line .v42-overline {color:var(--v433-label);}
html[data-theme="light"] .v42-page .v43-snapshot {color:var(--v433-sub);}
html[data-theme="light"] .v42-page .v43-snapshot b {color:var(--v433-ink);}
@media(max-width:520px){
 html[data-theme="light"] .v43-metric-label{font-size:10px}
}
