:root {
  --navy: #0b2540;
  --navy-deep: #061527;
  --teal: #0d9488;
  --teal-light: #5eead4;
  --amber: #f59e0b;
  --red: #ef4444;
  --paper: #f4f7f9;
  --card: #ffffff;
  --ink: #14232f;
  --muted: #5b6b76;
  --line: #dce4e8;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.15);
}

.topbar h1 { margin: 0; font-size: 1.35rem; letter-spacing: 0.01em; }
.tagline { margin: 0.15rem 0 0; font-size: 0.85rem; color: #a9c3d4; }

.practice-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.75rem 2rem 3rem;
}

.context-banner {
  background: #fff7e6;
  border: 1px solid #f3d9a4;
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: #6b4c04;
}

.score-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.score-card, .stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.score-card h2 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--muted); }

.gauge-wrap { position: relative; display: flex; justify-content: center; }
.gauge { width: 100%; max-width: 220px; }
.gauge-track { fill: none; stroke: #e3ebee; stroke-width: 12; }
.gauge-fill {
  fill: none;
  stroke: var(--teal);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 173;
  stroke-dashoffset: 173;
  transition: stroke-dashoffset 0.6s ease, stroke 0.4s ease;
}
.gauge-label {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -35%);
  text-align: center;
}
.gauge-number { display: block; font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.gauge-sub { font-size: 0.72rem; color: var(--muted); }

.stat-card { display: flex; flex-direction: column; justify-content: center; }
.stat-value { font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.panel h2 { margin: 0; font-size: 1.05rem; }
.panel-hint { color: var(--muted); font-size: 0.82rem; margin: 0.4rem 0 1rem; }

.filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.checklist { display: flex; flex-direction: column; gap: 0.6rem; }

.check-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cat-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: #eef3f5;
  color: var(--muted);
  white-space: nowrap;
}

.req-text strong { display: block; font-size: 0.92rem; }
.req-text span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

.priority-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}
.priority-Critical { background: #fde2e2; color: #a51515; }
.priority-High { background: #ffe9cc; color: #93540a; }
.priority-Medium { background: #e5eefc; color: #1d4e89; }
.priority-Low { background: #e8f5e9; color: #2f6b33; }

.status-pill {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-Not-Started { background: #f1f3f5; color: #5b6b76; }
.status-In-Progress { background: #fff2cc; color: #8a6100; }
.status-Done { background: #d7f5e6; color: #146c43; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
}

.roadmap { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.roadmap li { font-size: 0.88rem; }
.roadmap li strong { color: var(--navy); }
.roadmap .meta { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.1rem; }
.roadmap .empty { color: var(--muted); font-style: italic; }

.vendor-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.vendor-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0.5rem;
}
.vendor-table td { padding: 0.55rem 0.5rem; border-bottom: 1px solid #eef1f3; }

.baa-badge, .risk-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.baa-good { background: #d7f5e6; color: #146c43; }
.baa-stale { background: #fff2cc; color: #8a6100; }
.baa-missing { background: #fde2e2; color: #a51515; }

.risk-Low { background: #d7f5e6; color: #146c43; }
.risk-Medium { background: #fff2cc; color: #8a6100; }
.risk-High { background: #fde2e2; color: #a51515; }

footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .score-row { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .score-row { grid-template-columns: 1fr; }
  .check-row { grid-template-columns: 1fr; }
  .topbar { padding: 1rem 1.25rem; }
  main { padding: 1.25rem 1rem 2.5rem; }
}
