:root {
  --navy: #0f2a44;
  --navy-light: #163a5c;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f1f5f9;
  --green: #16a34a;
  --yellow: #eab308;
  --red: #ef4444;
  --blue: #2563eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
  background: var(--bg);
  color: #1e293b;
}

.topbar {
  background: var(--navy);
  color: #fff;
  padding: 16px 0;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
}
.topbar h1 span {
  font-weight: 400;
  opacity: 0.75;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.last-updated {
  font-size: 12px;
  opacity: 0.75;
}
.refresh-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.4s ease, background 0.2s ease;
}
.refresh-btn:hover { background: rgba(255,255,255,0.2); }
.refresh-btn.spinning { transform: rotate(360deg); }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.section-heading h2 { margin: 0 0 2px; font-size: 17px; color: var(--navy); }
.section-heading p { margin: 0 0 14px; font-size: 12px; color: var(--muted); }

.dials-section { margin-bottom: 20px; }

.dials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.dial-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.dial-svg { width: 140px; height: 140px; }
.dial-track { fill: none; stroke: var(--border); stroke-width: 12; }
.dial-progress {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.dial-pct { font-size: 24px; font-weight: 700; fill: var(--navy); }
.dial-value { font-size: 9px; fill: var(--muted); }
.dial-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 6px;
}
.dial-pace-tick { stroke: #0f2a44; stroke-width: 3; }
.dial-pace { font-size: 10px; font-weight: 600; margin-top: 4px; }
.dial-pace.ahead { color: var(--green); }
.dial-pace.behind { color: var(--red); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card h2 { font-size: 15px; color: var(--navy); margin: 0 0 2px; }
.section-sub { font-size: 11px; color: var(--muted); margin: 0 0 4px; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr { background: var(--navy); color: #fff; }
th { padding: 9px 12px; text-align: left; font-size: 10px; text-transform: uppercase; font-weight: 600; }
td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }
td.num, th.num { text-align: right; }
.group-header { text-align: center !important; border-bottom: 1px solid rgba(255,255,255,0.25); }
.group-border { border-left: 1px solid var(--border); }
th.group-border { border-left: 1px solid rgba(255,255,255,0.25); }
.na { color: #cbd5e1; font-weight: 400; }
.pct { color: var(--muted); font-weight: 400; }

.rep-badge {
  display: inline-block;
  width: 24px; height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  line-height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

.stars { color: var(--yellow); letter-spacing: 1px; }
.star-empty { color: #d1d5db; }

.footer {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  padding: 20px 0;
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}
