:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #0b1020, #111827);
  color: #e5e7eb;
}
a { color: #93c5fd; }
.link-inline { color: #bfdbfe; text-decoration: none; }
.link-inline:hover { text-decoration: underline; }
.muted { color: #94a3b8; font-size: .88rem; }
.shell { max-width: 1440px; margin: 0 auto; padding: 28px 20px 48px; }
.topbar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .01em;
}
.brand-tag {
  color: #93c5fd;
  font-size: .84rem;
  padding: 5px 10px;
  border: 1px solid rgba(147,197,253,.25);
  border-radius: 999px;
  background: rgba(30,41,59,.55);
}
.topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topnav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.03);
}
.topnav a:hover {
  border-color: rgba(147,197,253,.28);
  background: rgba(147,197,253,.08);
}
.topnav a.active {
  color: #eff6ff;
  border-color: rgba(56,189,248,.35);
  background: rgba(56,189,248,.15);
}
.hero.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
  align-items: stretch;
}
.hero-copy { min-width: 0; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-panel {
  display: grid;
  gap: 12px;
}
.panel-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
}
.panel-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  color: #f8fafc;
}
.panel-card p {
  margin: 6px 0 0;
  color: #cbd5e1;
  line-height: 1.5;
}
.section-subhead {
  margin: 18px 0 10px;
  color: #93c5fd;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mt-sm { margin-top: 12px; }
.table-compact { min-width: 1040px; }
.issue-grid { margin-bottom: 14px; }
.shell, .card, .hero, .table-wrap { min-width: 0; }
.hero, .card { background: rgba(17,24,39,.82); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero { display:flex; justify-content:space-between; align-items:center; gap:16px; padding: 24px; margin-bottom: 18px; }
.hero.compact { padding: 18px 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: #93c5fd; margin: 0 0 8px; }
h1,h2,p { margin-top: 0; }
h3 { margin: 0 0 10px; font-size: 1rem; color: #e2e8f0; }
.pill, .link, .status { display:inline-block; padding: 8px 12px; border-radius: 999px; text-decoration:none; }
.pill { background: #1f2937; color: #dbeafe; }
.status.good { background: rgba(34,197,94,.16); color: #86efac; }
.status.warn { background: rgba(245,158,11,.16); color: #fde68a; }
.status.bad { background: rgba(239,68,68,.16); color: #fca5a5; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.overview-card { margin-bottom: 18px; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.provider-link-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.provider-link-card {
  display:block;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: inherit;
  min-width: 0;
  overflow-wrap: anywhere;
}
.clickable-card,
.clickable-row { cursor: pointer; }
.clickable-card:hover {
  border-color: rgba(147,197,253,.45);
  background: rgba(147,197,253,.06);
}
.clickable-row:hover td {
  background: rgba(147,197,253,.05);
}
.provider-link-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 6px;
}
.provider-link-head .status { white-space: nowrap; flex-shrink: 0; }
.provider-link-head strong { min-width: 0; overflow-wrap: anywhere; }
.provider-link-meta {
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 12px;
  color: #cbd5e1;
  font-size: .92rem;
}
.provider-link-priority {
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  position: relative;
}
.card { padding: 18px; }
.card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.card-head > div { min-width: 0; }
.score-row { display:flex; justify-content:space-between; margin: 14px 0 8px; color:#cbd5e1; }
.bar { height: 10px; background:#1f2937; border-radius:999px; overflow:hidden; margin-bottom: 14px; }
.bar span { display:block; height:100%; background: linear-gradient(90deg, #22c55e, #38bdf8); border-radius:999px; }
.mini-metrics { padding-left: 18px; color:#cbd5e1; line-height:1.6; }
.section-copy { margin: 6px 0 0; color: #cbd5e1; line-height: 1.5; max-width: 70ch; }
.mt { margin-top: 18px; }
.split { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 4px;
}
table { width:100%; border-collapse: collapse; font-size: .95rem; table-layout: auto; min-width: 1000px; }
.dashboard-table { min-width: 1220px; }
th, td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); text-align:left; vertical-align: top; }
th { color: #cbd5e1; font-weight: 600; white-space: nowrap; }
td { line-height: 1.55; }
td, th { word-break: normal; overflow-wrap: break-word; }
.provider-col { min-width: 220px; }
.svg-chart { width: 100%; height: auto; display:block; }
.trend-meta { display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }
.chart { display:flex; align-items:flex-end; gap: 10px; min-height: 200px; }
.trend-bar { width: 12px; flex: 1; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #38bdf8, #2563eb); }
.finding-details { margin-top: 8px; }
.finding-details summary { cursor: pointer; color: #bfdbfe; }
.finding-details pre { white-space: pre-wrap; background: rgba(15,23,42,.65); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px; margin-top: 8px; max-height: 360px; overflow: auto; }
code { color:#c4b5fd; }
.search-row { display:flex; gap:10px; align-items:center; }
.search-row input {
  flex:1;
  min-width:220px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(15,23,42,.7);
  color:#e5e7eb;
}
.recommendation-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.recommendation-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(147,197,253,.08), rgba(15,23,42,.45));
}
.recommendation-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.recommendation-copy { color:#dbeafe; line-height:1.6; margin: 10px 0 0; }
.action-row { display:flex; flex-wrap:wrap; gap: 10px; margin-top: 14px; }
.section-action {
  margin-top: 20px;
  padding-top: 4px;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}
.button-primary { background: #38bdf8; color: #08111f; }
.button-secondary { background: rgba(255,255,255,.06); color: #e5e7eb; border: 1px solid rgba(255,255,255,.1); }
.priority-badge {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  text-transform: capitalize;
  color: #f8fafc;
}
.priority-high { background: rgba(239,68,68,.9); }
.priority-medium { background: rgba(245,158,11,.9); color: #1f2937; }
.priority-low { background: rgba(34,197,94,.9); color: #052e16; }
.priority-cell {
  position: relative;
  min-width: 128px;
}
.priority-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 2px);
  left: 0;
  width: min(320px, 80vw);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.35);
  background: #0f172a;
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}
.priority-popover p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.55;
  font-size: .92rem;
}
@media (max-width: 900px) {
  .topbar { padding: 14px 14px 0; flex-direction: column; align-items: flex-start; }
  .shell { padding: 20px 14px 32px; }
  .card-head { flex-direction: column; }
  .hero.dashboard-hero { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .search-row { flex-direction: column; align-items: stretch; }
  .search-row input { min-width: 0; width: 100%; }
  .provider-link-meta { gap: 6px; }
  .action-row { flex-direction: column; }
  .button { width: 100%; }
  table { min-width: 880px; }
  .dashboard-table { min-width: 980px; }
  th, td { padding: 10px 8px; font-size: .9rem; }
}

.validation-summary { padding: 12px; margin-top: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(15,23,42,.45); }

.validation-inputs { flex-direction: column; align-items: stretch; }
.validation-option { display:block; width:100%; font-weight:700; }
.validation-option input { margin-right: 8px; }

.compact-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.compact-grid .provider-link-card p {
  margin: 0;
  color: #cbd5e1;
}

.compact-grid .provider-link-card {
  padding: 18px;
}

.validation-inputs select,
.validation-inputs input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15,23,42,.7);
  color: #e5e7eb;
}
