.stats-body {
  min-height: 100vh;
  color: #1c1412;
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(46, 90, 54, 0.1), transparent 58%),
    radial-gradient(900px 420px at 100% 0%, rgba(212, 175, 55, 0.14), transparent 52%),
    var(--cream);
}
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(249, 246, 231, 0.9);
  border-bottom: 1px solid rgba(212, 175, 55, 0.32);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.stats-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stats-brand img { width: 36px; height: 36px; }
.stats-brand span {
  padding-left: 12px;
  border-left: 1px solid rgba(212, 175, 55, 0.55);
  line-height: 1;
}
.stats-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.stats-nav a, .stats-nav button {
  font: inherit;
  font-weight: 700;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.stats-nav a:hover { color: var(--green); }
.stats-nav button { color: var(--muted); }
.stats-nav button:hover { color: var(--ink); }
.stats-nav-authed {
  display: flex;
  align-items: center;
  gap: 22px;
}
.stats-nav-authed[hidden] { display: none; }
.stats-main {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 80px;
}
.stats-status {
  color: var(--muted);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 88px 0;
}

.stats-login,
.stats-gate {
  max-width: 420px;
  margin: 56px auto;
  background: rgba(255, 255, 255, 0.72);
  padding: 32px 28px;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 24px 60px rgba(95, 21, 19, 0.1);
}
.stats-gate { text-align: center; }
.stats-gate .stats-cta {
  display: inline-flex;
  justify-content: center;
  width: auto;
  margin-top: 8px;
  padding: 13px 22px;
}
.stats-kicker {
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.stats-h1 { margin: 0 0 8px; font-size: 34px; color: var(--ink); letter-spacing: -0.03em; }
.stats-lead { color: var(--muted); margin: 0 0 22px; max-width: 52ch; line-height: 1.5; }
.stats-login label { display: block; font-weight: 700; font-size: 13px; margin: 12px 0 6px; color: var(--ink); }
.stats-login input, .stats-field {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(95, 21, 19, 0.14);
  background: #fff;
}
.stats-login input:focus {
  outline: 2px solid rgba(46, 90, 54, 0.28);
  border-color: var(--green);
}
.stats-btn, .stats-login button[type="submit"] {
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  background: var(--ink);
  color: var(--cream);
}
.stats-login button[type="submit"] { width: 100%; margin-top: 18px; }
.stats-login button[type="submit"]:hover { background: #4a100f; }
.stats-text-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
}
.stats-text-btn:hover { text-decoration: underline; }
.stats-err { color: #b4452f; font-weight: 700; min-height: 1.2em; margin: 10px 0 0; }
.stats-err.ok { color: var(--green); }

.stats-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}
.stats-identity .stats-kicker { margin-bottom: 4px; }
.stats-identity h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stats-index {
  display: inline-block;
  margin: 8px 0 0;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46, 90, 54, 0.08);
  border: 1px solid rgba(46, 90, 54, 0.16);
}
.stats-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stats-pill {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(95, 21, 19, 0.12);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.stats-pill:hover { border-color: rgba(95, 21, 19, 0.28); }
.stats-pill:disabled { cursor: default; }
.stats-pill-ghost {
  background: none;
  border-color: transparent;
  color: var(--muted);
}

.stats-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 12px;
}
.stats-section-title {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.stats-section-title::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.stats-score-card,
.stats-board {
  border-radius: 22px;
  padding: 22px 24px 20px;
  background: linear-gradient(165deg, #14281c 0%, #1f3d28 42%, #2e5a36 100%);
  color: #f7f3ea;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: inset 0 1px 0 rgba(247, 243, 234, 0.12), 0 22px 48px rgba(20, 40, 28, 0.22);
}
.stats-board { margin-bottom: 0; }
.stats-board-grid {
  display: grid;
  grid-template-columns: minmax(160px, auto) minmax(110px, auto) 1fr;
  gap: 24px 32px;
  align-items: end;
}
.stats-board-hero .stats-score-num { font-size: 64px; }
.stats-score-num-sm { font-size: 36px; }
.stats-board-trend { min-width: 0; justify-self: end; text-align: right; }
.stats-board-trend .stats-spark { display: block; margin-left: auto; }
.stats-board-trend-lab {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(247, 243, 234, 0.78);
}
.stats-pips {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(247, 243, 234, 0.14);
}
.stats-pip {
  min-width: 42px;
  text-align: center;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(247, 243, 234, 0.08);
  color: rgba(247, 243, 234, 0.72);
}
.stats-pip.is-now {
  background: rgba(212, 175, 55, 0.24);
  color: #f7f3ea;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.45);
}
.stats-spark { display: block; overflow: visible; }

.stats-dash {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(250px, 0.85fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.stats-sg-panel { padding: 22px; }
.stats-sg-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.stats-sg-head .stats-kicker { margin-bottom: 6px; }
.stats-sg-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.stats-sg-axis {
  display: grid;
  grid-template-columns: 32px 90px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  padding: 0 10px 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats-sg-axis-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.stats-sg-axis-track span:first-child { text-align: left; }
.stats-sg-axis-track span:nth-child(2) { color: var(--gold); }
.stats-sg-axis-track span:last-child { text-align: right; }
.stats-sg-rows { display: flex; flex-direction: column; gap: 6px; }
.stats-sg-row {
  display: grid;
  grid-template-columns: 32px 90px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.stats-sg-row:hover {
  background: rgba(249, 246, 231, 0.8);
  border-color: rgba(212, 175, 55, 0.4);
}
.stats-sg-row.is-focus,
.stats-sg-row.is-on {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 8px 20px rgba(95, 21, 19, 0.08);
}
.stats-sg-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 90, 54, 0.12);
  color: var(--green);
  flex-shrink: 0;
}
.stats-sg-row-icon svg { width: 16px; height: 16px; display: block; }
.stats-sg-row.is-focus .stats-sg-row-icon,
.stats-sg-row.is-on .stats-sg-row-icon {
  background: rgba(95, 21, 19, 0.12);
  color: var(--ink);
}
.stats-sg-row-lab {
  font-size: 13px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}
.stats-sg-row-lab em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 900;
}
.stats-sg-row-track {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  align-items: center;
  height: 10px;
}
.stats-sg-row-neg,
.stats-sg-row-pos {
  height: 10px;
  background: rgba(95, 21, 19, 0.07);
  overflow: hidden;
  display: flex;
}
.stats-sg-row-neg { border-radius: 99px 0 0 99px; justify-content: flex-end; }
.stats-sg-row-pos { border-radius: 0 99px 99px 0; }
.stats-sg-row-zero {
  width: 2px;
  height: 14px;
  background: var(--gold);
  border-radius: 1px;
}
.stats-sg-row-val {
  font-size: 18px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.stats-rail { display: flex; flex-direction: column; gap: 12px; }
.stats-insight,
.stats-rail-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 16px 40px rgba(95, 21, 19, 0.05);
}
.stats-insight {
  background: linear-gradient(180deg, #fff 0%, rgba(249, 246, 231, 0.9) 100%);
  border-color: var(--ink);
}
.stats-insight h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stats-insight-val {
  margin: 8px 0 10px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stats-insight-val span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}
.stats-insight p { margin: 0 0 14px; color: #1c1412; font-weight: 600; line-height: 1.45; }
.stats-insight-go {
  display: inline-flex;
  font-weight: 800;
  color: var(--cream);
  background: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 14px;
}
.stats-insight-go:hover { background: #4a100f; }
.stats-rail .stats-recent-row {
  border-top: 1px solid rgba(95, 21, 19, 0.08);
}
.stats-rail .stats-recent-date { color: var(--muted); }
.stats-rail .stats-recent-score { color: var(--ink); }
.stats-ov-board {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 20px;
  padding: 14px 16px 12px;
  margin-bottom: 16px;
  box-shadow: 0 16px 40px rgba(95, 21, 19, 0.05);
}
.stats-ov-board .stats-ov-title {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.stats-ov-board .stats-sg-row { padding: 7px 8px; }
.stats-score-empty {
  color: rgba(247, 243, 234, 0.9);
  font-weight: 600;
  margin: 0 0 12px;
}
.stats-score-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.stats-score-block { min-width: 96px; }
.stats-score-num {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats-score-lab {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.9);
}
.stats-score-vs { margin-top: 4px; font-size: 12px; font-weight: 700; color: rgba(247, 243, 234, 0.85); }
.stats-score-div {
  width: 1px;
  align-self: stretch;
  background: rgba(212, 175, 55, 0.28);
  min-height: 48px;
}
.stats-trend { max-width: 240px; margin-left: auto; }
.stats-trend-sym { font-size: 26px; font-weight: 800; line-height: 1; color: var(--gold); }
.stats-trend-text { font-size: 13px; font-weight: 600; color: rgba(247, 243, 234, 0.88); margin-top: 4px; }
.stats-goal-line {
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(247, 243, 234, 0.9);
}
.stats-recent-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  padding: 12px 0 8px;
  background: none;
  border: 0;
  border-top: 1px solid rgba(247, 243, 234, 0.14);
  color: rgba(247, 243, 234, 0.92);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.stats-recent-list { padding: 4px 0 8px; }
.stats-recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(247, 243, 234, 0.1);
}
.stats-recent-course { font-weight: 700; }
.stats-recent-date { font-size: 12px; color: rgba(247, 243, 234, 0.68); }
.stats-recent-score { font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }

.stats-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 44px rgba(95, 21, 19, 0.06);
}
.stats-empty { color: var(--muted); font-weight: 600; margin: 0; }
.stats-windows {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}
.stats-windows-lab {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.stats-chip {
  min-width: 38px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(95, 21, 19, 0.12);
  background: rgba(249, 246, 231, 0.8);
  font: inherit;
  font-weight: 800;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}
.stats-chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.stats-sg-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
}
.stats-sg-hero-val {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats-sg-hero-lab {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.stats-sg-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.stats-sg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(249, 246, 231, 0.9);
  border: 1px solid rgba(95, 21, 19, 0.1);
  font-size: 12px;
  font-weight: 800;
  color: #1c1412;
}
.stats-sg-pill.up { background: rgba(46, 90, 54, 0.1); border-color: rgba(46, 90, 54, 0.18); color: #2e5a36; }
.stats-sg-pill.down { background: rgba(180, 69, 47, 0.1); border-color: rgba(180, 69, 47, 0.18); color: #b4452f; }
.stats-sg-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stats-sg-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(95, 21, 19, 0.1);
  background: rgba(249, 246, 231, 0.55);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  min-height: 176px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.stats-sg-col:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(95, 21, 19, 0.08);
}
.stats-sg-col.is-focus {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 28px rgba(95, 21, 19, 0.1);
}
.stats-focus-badge,
.stats-focus-spacer {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stats-focus-badge {
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 0 9px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.stats-sg-lab {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.stats-sg-icon,
.stats-ov-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 90, 54, 0.12);
  color: var(--green);
  flex-shrink: 0;
}
.stats-sg-icon svg,
.stats-ov-icon svg,
.stats-seg-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.stats-sg-col.is-focus .stats-sg-icon,
.stats-ov-cell.is-on .stats-ov-icon {
  background: rgba(95, 21, 19, 0.12);
  color: var(--ink);
}
.stats-ov-icon { width: 28px; height: 28px; margin: 0 auto 4px; }
.stats-ov-icon svg { width: 15px; height: 15px; }
.stats-seg-icon {
  display: inline-flex;
  color: currentColor;
}
.stats-seg-icon svg { width: 14px; height: 14px; }
.stats-sg-col.is-focus .stats-sg-lab { color: var(--ink); }
.stats-sg-meter {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  align-items: center;
  width: 100%;
  height: 8px;
}
.stats-sg-meter-neg,
.stats-sg-meter-pos {
  height: 8px;
  background: rgba(95, 21, 19, 0.08);
  overflow: hidden;
  display: flex;
}
.stats-sg-meter-neg {
  border-radius: 99px 0 0 99px;
  justify-content: flex-end;
}
.stats-sg-meter-pos { border-radius: 0 99px 99px 0; }
.stats-sg-meter-tick {
  width: 2px;
  height: 12px;
  background: var(--gold);
  opacity: 0.9;
  border-radius: 1px;
}
.stats-sg-meter-fill {
  display: block;
  height: 100%;
  min-width: 0;
}
.stats-sg-val {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stats-focus-line { margin: 18px 0 0; font-size: 15px; color: #1c1412; font-weight: 600; }
.stats-focus-line strong { color: var(--ink); font-weight: 900; }
.stats-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.5; }
.stats-improve {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(46, 90, 54, 0.08);
  border: 1px solid rgba(46, 90, 54, 0.14);
  font-weight: 800;
}
.stats-improve span { color: var(--green); font-size: 12px; font-weight: 700; }
.stats-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(95, 21, 19, 0.18);
}
.stats-cta:hover { background: #4a100f; }

.stats-seg {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}
.stats-seg a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 9px 8px;
  border-radius: 999px;
  border: 1px solid rgba(95, 21, 19, 0.12);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.stats-seg a:hover { border-color: rgba(212, 175, 55, 0.55); }
.stats-seg a.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.stats-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.stats-back:hover { color: var(--ink); }
.stats-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(95, 21, 19, 0.05);
}
.stats-ov-title {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}
.stats-ov-cell {
  text-align: center;
  padding: 10px 4px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
}
.stats-ov-cell.is-on { background: rgba(249, 246, 231, 0.95); box-shadow: inset 0 0 0 1px rgba(95, 21, 19, 0.12); }
.stats-ov-val { font-size: 20px; font-weight: 900; display: block; font-variant-numeric: tabular-nums; }
.stats-ov-lab { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }

.stats-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.stats-stat {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(95, 21, 19, 0.04);
}
.stats-stat-lab {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.stats-stat-val { font-size: 26px; font-weight: 900; margin-top: 6px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats-stat-sub { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }

.stats-h2 {
  margin: 20px 0 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.stats-bucket { padding: 16px; }
.stats-bucket-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.stats-bucket-row.is-hot {
  background: rgba(180, 69, 47, 0.08);
  border-radius: 8px;
  margin-left: -6px;
  margin-right: -6px;
  padding: 4px 6px;
}
.stats-bucket-lab { font-size: 12px; font-weight: 800; }
.stats-bucket-track {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: rgba(95, 21, 19, 0.08);
}
.stats-bucket-fill { height: 100%; border-radius: 99px; }
.stats-bucket-tick {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 12px;
  margin-left: -1px;
  background: var(--gold);
  border-radius: 1px;
}
.stats-bucket-n, .stats-bucket-pct { font-size: 12px; font-weight: 800; text-align: right; }
.stats-bucket-n { color: var(--muted); font-size: 10px; min-width: 58px; }
.stats-bucket-pct { min-width: 42px; font-weight: 900; }
.stats-opp {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 12px;
}

.stats-drive-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  align-items: stretch;
}
.stats-fir {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(95, 21, 19, 0.04);
}
.stats-fir-title {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 8px;
}
.stats-ring {
  position: relative;
  width: 132px;
  height: 132px;
}
.stats-ring svg { display: block; }
.stats-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stats-ring-val { font-size: 22px; font-weight: 900; }
.stats-ring-lab { font-size: 11px; font-weight: 700; color: var(--muted); }
.stats-side-col { display: flex; flex-direction: column; gap: 12px; }
.stats-side-col .stats-stat { flex: 1; }
.stats-club-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.stats-club-chip {
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 0;
  color: var(--ink);
}
.stats-club-meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.stats-club-bar { height: 8px; background: rgba(95, 21, 19, 0.08); border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.stats-club-fill { height: 100%; background: var(--green); }

.stats-plot {
  width: 100%;
  max-width: 640px;
  height: auto;
  aspect-ratio: 2 / 1;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
}
.stats-plot-wrap {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(95, 21, 19, 0.04);
}
.stats-plot-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.stats-plot-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.stats-club-filters { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.stats-lock {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(165deg, #5f1513, #3d0c0b);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.28);
  position: relative;
}
.stats-lock::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 14px;
  height: 12px;
  margin-left: -7px;
  border: 2px solid var(--cream);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.stats-lock::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: 18px;
  height: 14px;
  margin-left: -9px;
  background: var(--cream);
  border-radius: 3px;
}
.stats-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 18, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.stats-modal-card {
  background: var(--cream);
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  width: 180px;
  max-height: 70vh;
  overflow: auto;
  box-shadow: var(--shadow);
}
.stats-modal-title {
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 14px 12px 8px;
}
.stats-goal-opt {
  display: block;
  width: 100%;
  height: 44px;
  border: 0;
  border-top: 1px solid rgba(95, 21, 19, 0.08);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #1c1412;
}
.stats-goal-opt.is-on { background: rgba(46, 90, 54, 0.1); color: var(--green); font-weight: 900; }
.stats-miss-pad {
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  gap: 6px;
  padding: 8px 0;
}
.stats-miss-mid { display: flex; align-items: center; gap: 10px; }
.stats-miss-green {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
}
.stats-pos { color: var(--green); }
.stats-neg { color: #b4452f; }
.stats-ink { color: #1c1412; }

.stats-page-head { margin: 4px 0 22px; }
.stats-page-head h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stats-page-head .stats-lead { margin: 8px 0 0; }
.stats-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.stats-rail-head .stats-kicker { margin: 0; }
.stats-rail-all {
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
}
.stats-rail-all:hover { text-decoration: underline; }
a.stats-recent-row {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  margin: 0 -6px;
  padding: 9px 6px;
}
a.stats-recent-row:hover { background: rgba(212, 175, 55, 0.12); }

.rr-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rr-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(95, 21, 19, 0.04);
}
.rr-list-row:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}
.rr-list-course { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.rr-list-meta { margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.rr-list-right { text-align: right; }
.rr-list-score { font-size: 28px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rr-list-vs { font-size: 12px; font-weight: 800; color: var(--green); }

.rr-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  margin-bottom: 14px;
}
.rr-hero h1 { margin: 0; font-size: 30px; letter-spacing: -0.03em; }
.rr-hero-meta { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.rr-hero-score { text-align: right; }
.rr-hero-num { font-size: 52px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.rr-hero-vs { margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--green); }

.rr-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 14px;
  position: sticky;
  top: 58px;
  z-index: 8;
  background: linear-gradient(180deg, rgba(249,246,231,0.96), rgba(249,246,231,0.88));
  backdrop-filter: blur(12px);
}
.rr-chip {
  flex: 0 0 auto;
  width: 42px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(95, 21, 19, 0.1);
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}
.rr-chip-n { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.rr-chip-s { font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rr-chip.is-on { border-color: var(--ink); background: #fff; box-shadow: 0 6px 16px rgba(95, 21, 19, 0.1); }
.rr-chip.is-birdie, .rr-chip.is-eagle { background: rgba(46, 90, 54, 0.12); border-color: rgba(46, 90, 54, 0.28); }
.rr-chip.is-birdie .rr-chip-s, .rr-chip.is-eagle .rr-chip-s { color: var(--green); }
.rr-chip.is-eagle { box-shadow: inset 0 0 0 1px var(--gold); }
.rr-chip.is-bogey { background: rgba(180, 69, 47, 0.08); }
.rr-chip.is-worse { background: rgba(95, 21, 19, 0.1); }
.rr-chip.is-worse .rr-chip-s { color: var(--ink); }

.rr-hole-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 44px rgba(95, 21, 19, 0.06);
}
.rr-hole-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.rr-hole-head h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.rr-hole-score {
  min-width: 72px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(249, 246, 231, 0.9);
  border: 1px solid rgba(95, 21, 19, 0.1);
}
.rr-hole-score span { display: block; font-size: 32px; font-weight: 900; line-height: 1; }
.rr-hole-score small { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rr-hole-score.is-birdie, .rr-hole-score.is-eagle { background: rgba(46, 90, 54, 0.12); }
.rr-hole-score.is-bogey, .rr-hole-score.is-worse { background: rgba(180, 69, 47, 0.1); }
.rr-hole-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.rr-hole-kpis div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(249, 246, 231, 0.75);
  border: 1px solid rgba(95, 21, 19, 0.08);
}
.rr-hole-kpis span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rr-hole-kpis strong { display: block; margin-top: 4px; font-size: 20px; letter-spacing: -0.03em; }

.rr-empty {
  padding: 22px 8px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}
.rr-shots {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.rr-shots::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(212, 175, 55, 0.55);
}
.rr-shot {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.rr-shot-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  z-index: 1;
}
.rr-shot-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.rr-club { font-weight: 800; font-size: 16px; }
.rr-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rr-sg { margin-left: auto; font-weight: 900; font-variant-numeric: tabular-nums; }
.rr-shot-meta { margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rr-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.24);
}
.rr-pager a {
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(95, 21, 19, 0.12);
  background: rgba(249, 246, 231, 0.8);
}
.rr-pager a:hover { border-color: var(--ink); }

@media (max-width: 860px) {
  .stats-dash, .stats-board-grid { grid-template-columns: 1fr; }
  .stats-board-trend { justify-self: start; text-align: left; }
  .stats-board-trend .stats-spark { margin-left: 0; }
  .stats-sg-row, .stats-sg-axis { grid-template-columns: 32px 72px minmax(0, 1fr) 48px; }
}
@media (max-width: 720px) {
  .stats-sg-cols, .stats-overview, .stats-drive-top { grid-template-columns: 1fr 1fr; }
  .stats-sg-col { min-height: 148px; }
  .stats-sg-hero-val { font-size: 32px; }
  .stats-score-num, .stats-board-hero .stats-score-num { font-size: 44px; }
  .stats-trend { margin-left: 0; }
  .stats-identity h1 { font-size: 24px; }
}
@media (max-width: 520px) {
  .stats-stat-row { grid-template-columns: 1fr; }
  .stats-seg { flex-wrap: wrap; }
  .stats-brand span { display: none; }
  .stats-bar { padding: 10px 16px; }
  .rr-hero { flex-wrap: wrap; }
  .rr-hero-num { font-size: 40px; }
  .rr-page-head h1, .stats-page-head h1 { font-size: 26px; }
}
