.inspection-dashboard { min-width: 0; gap: 1rem; }
.dashboard-summary {
  display: grid;
  gap: .3rem;
  padding: clamp(1rem, 3vw, 1.65rem);
  border-radius: 1rem;
  color: #f4ffff;
  background: linear-gradient(113deg, #142c45, #15574f);
}
.dashboard-summary h3, .dashboard-summary p { color: inherit; margin: 0; }
.dashboard-summary h3 { font-size: clamp(1.3rem, 2.8vw, 1.85rem); }
.dashboard-summary p { color: #d3e8e8; }
:where(.inspection-dashboard-metrics li, .dashboard-status, .dashboard-legend li) { --accent:#355c79; --tint:#ecf3fa; }
[data-tone="blue"] { --accent:#215d9b; --tint:#eaf3ff; }
[data-tone="green"] { --accent:#0a6958; --tint:#e7f6ee; }
[data-tone="red"] { --accent:#a02840; --tint:#fff0f2; }
[data-tone="amber"] { --accent:#875000; --tint:#fff5df; }
[data-tone="violet"] { --accent:#5a4597; --tint:#f1edff; }
.inspection-dashboard-metrics { grid-template-columns: repeat(auto-fit,minmax(min(100%, 11rem),1fr)); }
.inspection-dashboard-metrics li {
  border-top: 3px solid var(--accent);
  background: linear-gradient(145deg,var(--tint),#fff 88%);
  border-radius: .85rem;
  padding: 1rem 1.1rem;
}
.inspection-dashboard-metrics li span { font-weight: 700; }
.inspection-dashboard-metrics strong { color: var(--accent); font-size: clamp(1.7rem,3vw,2.4rem); line-height: 1.15; }
.inspection-dashboard-metrics small, .dashboard-legend small { color: var(--muted); }
.dashboard-analysis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.dashboard-analysis > .executive-panel:last-child { grid-column:auto; }
.inspection-dashboard .executive-panel { min-width:0; overflow-wrap:anywhere; border-radius:.95rem; }
.inspection-dashboard .executive-panel > h3 { margin-top:0; }
.dashboard-distribution { display:flex; height:.85rem; border-radius:1rem; overflow:hidden; background:#edf2f6; gap:2px; }
.dashboard-distribution span { flex-basis:0; background:var(--accent); }
.dashboard-legend { display:grid; list-style:none; padding:0; margin:.8rem 0 0; gap:.4rem; }
.dashboard-legend li { display:grid; grid-template-columns:minmax(0,1fr) auto 4.25rem; gap:.55rem; padding:.45rem .65rem; border-left:3px solid var(--accent); border-radius:.4rem; background:var(--tint); }
.dashboard-legend small { text-align:right; }
.dashboard-status { display:inline-block; color:var(--accent); background:var(--tint); border-radius:.4rem; padding:.2rem .45rem; font-weight:700; white-space:nowrap; }
#workspace:has(.overview-hero) .executive-kpi { border-top:3px solid #307487; }
#workspace:has(.overview-hero) .executive-kpi[data-tone] { border-top-color:var(--accent); background:linear-gradient(140deg,var(--tint),#fff 84%); }
#workspace:has(.overview-hero) .executive-kpi[data-tone] strong { color:var(--accent); }
.swot-kpis .report-panel { border-top:3px solid #277888; background:linear-gradient(145deg,#eaf7fa,#fff 85%); }
.swot-matrix [data-quadrant] { border-top-width:4px; }
.dashboard-survey-summary { margin-block:.8rem; }
@media(max-width:850px) { .dashboard-analysis { grid-template-columns:minmax(0,1fr); } }
@media(max-width:520px) {
  .inspection-dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .inspection-dashboard-metrics li { padding:.7rem; }
  .inspection-dashboard-bars li { grid-template-columns:5rem minmax(1.5rem,1fr) auto; }
}
@media print {
  .dashboard-summary,.dashboard-status,.dashboard-distribution span,.dashboard-legend li { print-color-adjust:exact; }
  .dashboard-analysis { display:block; }
}

.dashboard-survey-counters:not([hidden]) { display:block; }
