/* Overview only. Existing horizontal navigation and all other pages retain their styles. */
body[data-view=overview][data-overview-style=modern]{--overview-surface:var(--ui-surface);--overview-background:var(--ui-canvas);--overview-ink:var(--ui-card-ink);--overview-muted:var(--ui-muted);--overview-line:var(--ui-card-line);--overview-accent:var(--ui-accent);--overview-dark:var(--ui-accent-hover);--overview-soft:var(--ui-accent-soft);--overview-track:#eeecf4;background:var(--overview-background)!important}
body[data-view=overview][data-overview-style=modern][data-theme=dark]{--overview-surface:var(--ui-surface);--overview-background:var(--ui-canvas);--overview-ink:var(--ui-card-ink);--overview-muted:var(--ui-muted);--overview-line:var(--ui-card-line);--overview-accent:var(--ui-accent);--overview-dark:var(--ui-accent-hover);--overview-soft:var(--ui-accent-soft);--overview-track:#344155}
body[data-overview-style=modern] .app>main{padding:28px clamp(16px,2.5vw,40px) 36px!important;background:var(--overview-background)!important;color:var(--overview-ink)}
body[data-overview-style=modern] main>.toprow{margin-bottom:26px}
body[data-overview-style=modern] main>.toprow h1{font-size:clamp(28px,2.6vw,38px)!important;font-weight:750;letter-spacing:-.035em;color:var(--overview-ink)!important}
body[data-overview-style=modern] main>.toprow .sub{font-size:14px!important;line-height:1.6;color:var(--overview-muted)!important;max-width:900px}
body[data-overview-style=modern] .er-dashboard{display:grid;gap:22px}
body[data-overview-style=modern] .er-dashboard .card{min-width:0;margin:0}
body[data-overview-style=modern] .er-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
body[data-overview-style=modern] .er-summary{padding:16px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;align-content:center;min-height:78px;height:78px;background:var(--overview-surface)!important}
body[data-overview-style=modern] .er-summary-symbol{grid-row:auto}
body[data-overview-style=modern] .er-summary h3{font:650 13px/1.4 "Segoe UI",Arial,sans-serif!important;color:var(--overview-ink);margin:0}
body[data-overview-style=modern] .er-summary strong{font-size:28px;line-height:1.2;letter-spacing:-.03em;color:var(--overview-ink);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
body[data-overview-style=modern] .er-summary strong.er-summary-unavailable{font-size:14px;letter-spacing:0;color:var(--overview-muted)}
body[data-overview-style=modern] :is(.er-overview-chart-grid,.er-overview-bottom-grid,.er-overview-support-grid){display:grid;gap:20px;align-items:stretch;min-width:0}
body[data-overview-style=modern] :is(.er-overview-chart-grid,.er-overview-bottom-grid){grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-overview-style=modern] .er-overview-support-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-overview-style=modern] .er-dashboard-panel{padding:20px;display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
body[data-overview-style=modern] .er-panel-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 20px;min-width:0}
body[data-overview-style=modern] .er-panel-heading h3{flex:1;min-width:0;margin:0}
body[data-overview-style=modern] .er-panel-heading>a{font-size:11px;line-height:1.5;margin-left:auto}
body[data-overview-style=modern] .er-panel-symbol{flex:none}
body[data-overview-style=modern] .er-dashboard a{color:var(--overview-accent);text-decoration:none}
body[data-overview-style=modern] .er-dashboard a:hover{text-decoration:underline}
body[data-overview-style=modern] .er-dashboard a:focus-visible{outline:2px solid var(--overview-accent);outline-offset:4px}
body[data-overview-style=modern] :is(.er-dashboard-note,.er-timeline small,.er-next-steps small){font-size:12px;line-height:1.65;color:var(--overview-muted)}
body[data-overview-style=modern] .er-dashboard-note{margin:12px 0 0}
body[data-overview-style=modern] .er-dashboard-empty{font-size:13px;line-height:1.7;color:var(--overview-muted);padding:16px;background:var(--overview-soft);border-radius:10px;margin:10px 0}
body[data-overview-style=modern] .er-trend-empty{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:220px;padding:20px;background:linear-gradient(180deg,var(--overview-surface),var(--overview-soft));border:1px dashed var(--overview-line);border-radius:10px}
body[data-overview-style=modern] .er-trend-empty>span{display:grid;place-items:center;width:52px;height:52px;margin:0 0 15px;border-radius:14px;color:var(--overview-accent);background:var(--overview-soft)}
body[data-overview-style=modern] .er-trend-empty svg{width:28px;height:28px}
body[data-overview-style=modern] .er-trend-empty strong{font-size:14px;color:var(--overview-ink)}
body[data-overview-style=modern] .er-trend-empty .er-dashboard-empty{background:none;padding:0;margin-bottom:0}
body[data-overview-style=modern] .er-coverage-chart{display:flex;flex-direction:column;align-items:center;gap:18px}
body[data-overview-style=modern] .er-ring{position:relative;width:min(100%,200px);aspect-ratio:1}
body[data-overview-style=modern] .er-ring>svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
body[data-overview-style=modern] .er-ring circle{fill:none;stroke-width:17}
body[data-overview-style=modern] .er-ring-track{stroke:var(--overview-track)}
body[data-overview-style=modern] .er-ring-segment{stroke:var(--rating-color);transition:opacity .15s}
body[data-overview-style=modern] .er-ring-segment:hover{opacity:.7}
body[data-overview-style=modern] [data-rating=fully_effective]{--rating-color:#6d28d9}
body[data-overview-style=modern] [data-rating=partially_effective]{--rating-color:#a78bfa}
body[data-overview-style=modern] [data-rating=not_effective]{--rating-color:#c4b5fd}
body[data-overview-style=modern] [data-rating=not_assessed]{--rating-color:#e4dcfa}
body[data-overview-style=modern] .er-ring-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;color:var(--overview-ink)}
body[data-overview-style=modern] .er-ring-label strong{font-size:32px;letter-spacing:-.03em}
body[data-overview-style=modern] .er-ring-label span{font-size:12px;max-width:90px;line-height:1.4;margin-top:4px}
body[data-overview-style=modern] .er-chart-legend{list-style:none;padding:0;margin:0;width:100%;display:grid;gap:10px}
body[data-overview-style=modern] .er-chart-legend li{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--overview-ink)}
body[data-overview-style=modern] .er-chart-legend b{margin-left:auto;font-variant-numeric:tabular-nums}
body[data-overview-style=modern] .er-legend-dot{background:var(--rating-color);width:11px;height:11px;border-radius:3px;flex:none}
body[data-overview-style=modern] .er-framework-progress{margin:0 0 22px}
body[data-overview-style=modern] .er-framework-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:8px;color:var(--overview-ink)}
body[data-overview-style=modern] .er-chart-track{height:8px;border-radius:999px;overflow:hidden;background:var(--overview-track)}
body[data-overview-style=modern] .er-chart-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#6d28d9,#9333ea)}
body[data-overview-style=modern] .er-framework-progress>a{display:inline-block;margin-top:8px;font-size:12px}
body[data-overview-style=modern] :is(.er-timeline,.er-next-steps){padding:0;list-style:none;margin:0}
body[data-overview-style=modern] :is(.er-timeline,.er-next-steps) li{padding:13px 0;border-bottom:1px solid var(--overview-line);margin:0}
body[data-overview-style=modern] :is(.er-timeline,.er-next-steps) li:last-child{border:0}
body[data-overview-style=modern] :is(.er-timeline,.er-next-steps) a{font-size:13px;line-height:1.5;font-weight:600;color:var(--overview-ink)}
body[data-overview-style=modern] :is(.er-timeline,.er-next-steps) small{display:block;margin-top:5px}
body[data-overview-style=modern] .er-quick-actions{display:grid;gap:14px;padding:10px 0}
body[data-overview-style=modern] .er-quick-action{display:flex;align-items:center;gap:12px;min-height:58px;padding:14px;border:1px solid #ddd0fa;border-radius:10px;background:var(--overview-soft);font-size:13px;font-weight:650;color:var(--overview-dark)}
body[data-overview-style=modern] .er-quick-action svg{width:22px;height:22px;flex:none}
body[data-overview-style=modern] .er-quick-action svg:last-child{margin-left:auto;width:19px}
body[data-overview-style=modern] .er-quick-action.is-primary{background:linear-gradient(110deg,#7c3aed,#5b21b6);border-color:#6d28d9;color:#fff}
body[data-overview-style=modern] .er-quick-action:hover{filter:brightness(.97);text-decoration:none}
body[data-overview-style=modern] .er-register-counts{gap:10px;flex-wrap:wrap}
body[data-overview-style=modern] .er-register-counts a{padding:10px 14px;border:1px solid var(--overview-line);border-radius:8px;background:var(--overview-surface);font-size:12px}
@media(min-width:1700px){body[data-overview-style=modern] .er-coverage-chart{flex-direction:row}body[data-overview-style=modern] .er-coverage-chart .er-ring{flex:none;width:180px}}
@media(max-width:1250px){body[data-overview-style=modern] .er-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-overview-style=modern] :is(.er-overview-chart-grid,.er-overview-bottom-grid){grid-template-columns:repeat(2,minmax(0,1fr))}body[data-overview-style=modern] :is(.er-overview-chart-grid,.er-overview-bottom-grid)>.card:last-child{grid-column:1/-1}}
@media(max-width:700px){body[data-overview-style=modern] .er-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-overview-style=modern] :is(.er-overview-chart-grid,.er-overview-bottom-grid,.er-overview-support-grid){grid-template-columns:minmax(0,1fr)}body[data-overview-style=modern] .er-dashboard-panel{padding:18px}body[data-overview-style=modern] .er-summary-symbol{grid-row:auto}}
@media(max-width:380px){body[data-overview-style=modern] .er-summary-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){body[data-overview-style=modern] .er-ring-segment{transition:none}}
body[data-overview-style=modern] .er-overview-independent h2{font-size:18px;color:var(--overview-ink);margin:0 0 18px}
body[data-overview-style=modern] .er-overview-independent table{width:100%;border-collapse:collapse;font-size:12px}
body[data-overview-style=modern] .er-overview-independent :is(th,td){padding:10px;text-align:left;border-bottom:1px solid var(--overview-line);overflow-wrap:anywhere}
body[data-overview-style=modern] .er-overview-independent{overflow-x:auto}
@media(max-width:700px){body[data-overview-style=modern] .er-panel-heading h3{flex-basis:calc(100% - 48px)}body[data-overview-style=modern] .er-panel-heading>a{margin-left:48px}}

/* Keep each KPI horizontal; reduce columns before labels and values collide. */
@media(max-width:1400px){body[data-overview-style=modern] .er-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){body[data-overview-style=modern] .er-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body[data-overview-style=modern] .er-summary-grid{grid-template-columns:minmax(0,1fr)}}

/* Framework-neutral overview controls, scoped to this page. */
body[data-overview-style=modern] .er-coverage-select{display:grid;gap:8px;font-size:12px;color:var(--overview-muted);margin-bottom:16px}
body[data-overview-style=modern] .er-coverage-select select{width:100%;min-width:0;max-width:100%;height:auto;min-height:38px;padding:8px;border:1px solid var(--overview-line);border-radius:8px;background:var(--overview-surface);color:var(--overview-ink);white-space:normal}
body[data-overview-style=modern] [data-overview-coverage]>.er-dashboard-note{margin:0 0 16px}
body[data-overview-style=modern] .er-register-counts{display:flex}

body[data-overview-style=modern] .er-overview-collapse{width:28px;height:28px;min-width:28px;padding:0;margin-left:auto;font-size:18px;color:var(--overview-accent)}
body[data-overview-style=modern] .er-overview-card-body[hidden]{display:none}
@media(min-width:1400px){body[data-overview-style=modern] .er-coverage-chart{flex-direction:row;align-items:center}body[data-overview-style=modern] .er-coverage-chart .er-ring{flex:none;width:145px}body[data-overview-style=modern] .er-coverage-chart .er-chart-legend{min-width:0;flex:1}}

body[data-overview-style=modern] [data-known-vulnerabilities-kpi]{min-width:0}
body[data-overview-style=modern] .er-vulnerability-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
body[data-overview-style=modern] .er-vulnerability-counts div{padding:12px;border-radius:10px;background:var(--ui-accent-soft);min-width:0}
body[data-overview-style=modern] .er-vulnerability-counts dt{font-size:12px;color:var(--ui-muted);overflow-wrap:anywhere}
body[data-overview-style=modern] .er-vulnerability-counts dd{margin:6px 0 0;font-size:26px;font-weight:700;color:var(--ui-heading)}
