:root {
  color-scheme: dark;
  --bg: #0f1115;
  --card: #14181f;
  --elevated: #1b2028;
  --border: #262c36;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --faint: #6b7280;
  --accent: #f0c550;
  --blue: #6ea8d8;
  --lean: #6fbfb0;
  --loss: #e07a5f;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  min-height: 100dvh;
  scroll-behavior: smooth;
}

button,
input {
  font-family: var(--font);
  color: inherit;
}

.hidden {
  display: none !important;
}

#app {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(16px + var(--safe-top)) 20px calc(76px + var(--safe-bottom));
}

/* Header & Story Block matching weight.brianfaust.net */
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 2.05fr);
  gap: 18px 28px;
  padding: 6px 2px 18px;
  border-bottom: 1px solid var(--border);
}

.brand,
.story-block {
  min-width: 0;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

#streak-inline {
  color: var(--accent);
  font-weight: 600;
}

.unit-inline {
  -webkit-appearance: none;
  appearance: none;
  background: var(--elevated);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font: 600 12px var(--font);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.unit-inline:hover {
  border-color: var(--accent);
}

/* Date Selector Bar */
.date-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 8px;
  width: 100%;
  min-width: 0;
}

.date-nav-btn {
  flex: 0 0 32px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 30px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.date-nav-btn:hover {
  border-color: var(--accent);
}

.date-center {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.date-input {
  background: transparent;
  border: 0;
  color: var(--text);
  font: 600 13px var(--font);
  outline: none;
  cursor: pointer;
  min-width: 0;
}

.today-chip {
  background: #3a3420;
  border-color: rgba(240, 197, 80, 0.45);
}

/* Story Block & Stats Grid */
.story-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-card {
  background: linear-gradient(135deg, #1a1f28, #14181f);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}

.story-lead {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow-wrap: break-word;
}

.story-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: break-word;
}

.story-shot {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: break-word;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 0;
}

.stats div,
.rate-grid > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}

.stats dt,
.rate-grid dt {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats dd,
.rate-grid dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sticky Toolbar */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  background: #0f1115eb;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chart-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chart-nav button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.chart-nav button:hover {
  color: var(--text);
  background: var(--elevated);
}

.chart-nav button.active {
  color: var(--bg);
  background: var(--accent);
  font-weight: 600;
}

.range-bar {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.range-bar button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-right: 1px solid var(--border);
  padding: 6px 11px;
  font: 600 12px var(--font);
  cursor: pointer;
}

.range-bar button:last-child {
  border-right: 0;
}

.range-bar button:hover {
  color: var(--text);
  background: var(--elevated);
}

.range-bar button.active {
  background: #243044;
  color: var(--blue);
}

/* Panels & Grid Layout */
.main-content {
  padding-top: 14px;
  width: 100%;
  min-width: 0;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.tab-panel.active {
  display: flex;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.panel-head-row h3 {
  margin: 0;
}

.panel-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.panel-meta.goal-met {
  color: var(--lean);
  font-weight: 600;
}

/* Variation Chips — 4x2 grid so all 8 fit cleanly inside the card without horizontal overflow */
.variation-scroller {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
  width: 100%;
}

.chip {
  width: 100%;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font: 600 12px var(--font);
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip:hover {
  color: var(--text);
  background: var(--elevated);
}

.chip.active {
  background: #3a3420;
  border-color: rgba(240, 197, 80, 0.55);
  color: var(--accent);
}

/* Quick Add 6-Button Grid (Thumb Friendly) */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}

.quick-btn {
  width: 100%;
  min-width: 0;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #1b222d, #14181f);
  color: var(--blue);
  font: 700 17px var(--font);
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.15s ease;
}

.quick-btn:hover {
  border-color: var(--blue);
  background: #243044;
}

.quick-btn:active {
  transform: scale(0.96);
  background: #243044;
  border-color: var(--accent);
  color: var(--accent);
}

/* Custom Set Logger */
.custom-log-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  width: 100%;
  min-width: 0;
}

.stepper-row {
  display: grid;
  grid-template-columns: 42px 42px minmax(0, 1fr) 42px 42px;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.step-btn {
  height: 42px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: 600 14px var(--font);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.step-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.step-btn:active {
  transform: scale(0.95);
}

.custom-count-input {
  height: 42px;
  width: 100%;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font: 700 17px var(--font);
  color: var(--text);
}

.custom-submit-row {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.note-input {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  height: 42px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
}

.note-input::placeholder {
  color: var(--faint);
}

.primary-btn {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font: 600 13px var(--font);
  cursor: pointer;
  white-space: nowrap;
}

.primary-btn:hover {
  filter: brightness(1.06);
}

.primary-btn:active {
  transform: scale(0.97);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font: 600 13px var(--font);
  text-decoration: none;
  cursor: pointer;
}

.secondary-btn:hover {
  border-color: var(--accent);
}

.full-width {
  width: 100%;
}

/* Pacing Panel: Compact Ring + Mini Grid */
.pacing-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
  min-width: 0;
}

.ring-container {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--bg);
  stroke-width: 11;
}

.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 11;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-count {
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.hero-goal {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.pacing-mini-grid > div {
  background: var(--bg);
  padding: 7px 8px;
}

.rate-compare {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Goal Progress Bars */
.goal-bar-block {
  width: 100%;
  min-width: 0;
}

.goal-bar-block + .goal-bar-block {
  margin-top: 12px;
}

.goal-bar-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 5px;
}

.goal-bar-title {
  color: var(--muted);
  font-weight: 500;
}

.goal-bar-numbers {
  font-weight: 600;
  color: var(--text);
}

.progress-track {
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  width: 100%;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-fill.monthly {
  background: var(--blue);
}

.week-dots-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
  width: 100%;
}

.week-day-pill {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
}

.week-day-pill.today {
  border-color: var(--accent);
}

.week-day-pill.met {
  background: rgba(111, 191, 176, 0.14);
  border-color: rgba(111, 191, 176, 0.5);
}

.week-day-name {
  color: var(--muted);
  font-size: 10px;
}

.week-day-val {
  font-weight: 600;
  margin-top: 1px;
  color: var(--text);
  font-size: 11px;
}

/* DEXA-style Sets Table */
.dexa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dexa-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  padding: 0 6px 6px 0;
  border-bottom: 1px solid var(--border);
}

.dexa-table td {
  padding: 7px 6px 7px 0;
  border-bottom: 1px solid rgba(38, 44, 54, 0.6);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.dexa-table tr:last-child td {
  border-bottom: 0;
}

.rep-badge {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.var-tag {
  text-transform: capitalize;
  color: var(--blue);
  font-weight: 500;
  white-space: nowrap;
}

.delete-log-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--faint);
  padding: 2px 7px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.delete-log-btn:hover,
.delete-log-btn:active {
  color: var(--loss);
  border-color: rgba(224, 122, 95, 0.35);
  background: rgba(224, 122, 95, 0.1);
}

.empty-state {
  padding: 14px 4px;
  color: var(--faint);
  font-size: 13px;
}

/* Chart Card matching weight.brianfaust.net */
.chart-card {
  margin: 4px 0 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px 12px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.chart-head {
  padding: 0 4px 4px;
}

.chart-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chart-chrome {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.chart-tooltip-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: space-between;
  align-items: center;
}

.chart-container {
  width: 100%;
  height: 220px;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-bar {
  cursor: pointer;
}

.chart-bar:hover rect:last-child {
  filter: brightness(1.18);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-dot.met {
  background: var(--lean);
}

.legend-dot.partial {
  background: var(--blue);
}

.legend-line {
  width: 16px;
  height: 0;
}

.legend-line.ma-line {
  border-top: 2.5px solid var(--accent);
}

.legend-line.goal-line {
  border-top: 1.5px dashed rgba(232, 234, 237, 0.55);
}

/* 12-Week Heatmap */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
  width: 100%;
}

.heatmap-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.heat-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.heat-cell.level-0 {
  background: var(--bg);
}

.heat-cell.level-1 {
  background: rgba(110, 168, 216, 0.25);
}

.heat-cell.level-2 {
  background: rgba(110, 168, 216, 0.52);
}

.heat-cell.level-3 {
  background: rgba(110, 168, 216, 0.82);
}

.heat-cell.level-4 {
  background: var(--lean);
}

.heat-cell.today-outline {
  outline: 1.5px solid var(--accent);
  outline-offset: 1px;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

.heatmap-legend .heat-cell {
  width: 11px;
  height: 11px;
}

/* Variation List */
.variation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variation-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.variation-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

.variation-name {
  font-weight: 600;
  text-transform: capitalize;
  color: var(--text);
}

/* Goals & PIN Forms */
.goals-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.label-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.preset-row {
  display: flex;
  gap: 6px;
}

.preset-chip {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
}

.goals-form input {
  width: 100%;
  min-width: 0;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 11px;
  font: 600 14px var(--font);
  color: var(--text);
}

.goals-status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 16px 4px 0;
  color: var(--faint);
  font-size: 12.5px;
}

.debug-note {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
}

/* Mobile Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f1115eb;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  z-index: 40;
}

.bottom-nav .nav-tab {
  -webkit-appearance: none;
  appearance: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font: 600 12.5px var(--font);
  padding: 9px 0;
  border-radius: 999px;
  cursor: pointer;
}

.bottom-nav .nav-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: calc(68px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 420px;
  background: var(--elevated);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 60;
  font-size: 13px;
  font-weight: 500;
}

/* Auth PIN Lock Overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 340px;
  padding: 22px 18px;
  text-align: center;
}

.auth-heading {
  font-size: 24px;
  margin-bottom: 4px;
}

.auth-subtitle {
  margin-bottom: 14px;
}

.default-pin-banner {
  background: #3a3420;
  border: 1px solid rgba(240, 197, 80, 0.45);
  color: var(--accent);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.pin-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#pin-input {
  height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.35em;
  font-weight: 700;
}

.auth-error {
  color: var(--loss);
  font-size: 12px;
  font-weight: 600;
}

.numpad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.numpad-btn {
  height: 50px;
  border-radius: 10px;
  background: var(--elevated);
  border: 1px solid var(--border);
  font: 600 18px var(--font);
  cursor: pointer;
}

.numpad-btn:active {
  background: #243044;
  border-color: var(--blue);
}

.numpad-submit {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

/* Responsive Breakpoints matching weight.brianfaust.net */
@media (max-width: 960px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-row {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: 26px;
  }

  #app {
    padding: calc(12px + var(--safe-top)) 12px calc(78px + var(--safe-bottom));
  }

  .bottom-nav {
    display: grid;
  }
}

@media (max-width: 480px) {
  .pacing-top {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
  }

  .ring-container {
    width: 88px;
    height: 88px;
  }

  .pacing-mini-grid {
    gap: 6px;
  }

  .pacing-mini-grid > div {
    padding: 6px 6px;
  }

  .pacing-mini-grid dt {
    font-size: 10px;
  }

  .pacing-mini-grid dd {
    font-size: 13px;
  }
}
