@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800&family=Roboto+Mono:wght@400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: radial-gradient(circle at 20% 20%, #1f2937 0, #0e1729 35%, #0b1321 65%, #0a0f1a 100%);
  min-height: 100vh;
  padding: 24px 20px;
  color: #e2e8f0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── HEADER ── */
.header {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.header h1 {
  font-size: 2.4em;
  font-weight: 800;
  background: linear-gradient(90deg, #00d4ff, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1em;
  color: #9ca3af;
  margin-bottom: 8px;
  font-weight: 400;
}

.period-legend {
  font-family: 'Roboto Mono', monospace;
  color: #34d399;
  font-size: 0.9em;
  margin-bottom: 6px;
  font-weight: 500;
}

.last-updated {
  font-size: 0.82em;
  color: #4b5563;
  font-family: 'Roboto Mono', monospace;
  letter-spacing: 0.04em;
}

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.08);
}

.stat-number {
  font-size: 1.8em;
  font-weight: 800;
  color: #00d4ff;
  margin-bottom: 4px;
  font-family: 'Roboto Mono', monospace;
  line-height: 1;
}

.stat-number.verde {
  color: #26a641;
}

.stat-number.amarillo {
  color: #fb923c;
}

.stat-number.rojo {
  color: #f87171;
}

.stat-label {
  font-size: 0.75em;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── INSIGHTS ── */
.insights-section {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.insights-section h2 {
  font-size: 1.05em;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 3px solid #a78bfa;
  padding-left: 12px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.insight-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.insight-card:hover {
  transform: translateY(-2px);
}

.insight-card.insight-positive { border-left: 3px solid #34d399; }
.insight-card.insight-warning  { border-left: 3px solid #fb923c; }
.insight-card.insight-neutral  { border-left: 3px solid #64748b; }

.insight-icon {
  font-size: 1.6em;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.insight-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insight-title {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.88em;
  font-weight: 700;
  color: #e2e8f0;
}

.insight-desc {
  font-size: 0.78em;
  color: #6b7280;
  line-height: 1.4;
}

/* ── RACHA RECIENTE ── */
.racha-section {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.racha-section h2 {
  font-size: 1.05em;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 3px solid #fb923c;
  padding-left: 12px;
}

.racha-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.racha-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 18px 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.racha-card:hover {
  border-color: rgba(251, 146, 60, 0.25);
  transform: translateY(-3px);
}

.racha-card-title {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8em;
  font-weight: 700;
  color: #fb923c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-align: center;
}

.racha-card-range {
  font-size: 0.72em;
  color: #64748b;
  text-align: center;
  margin-bottom: 14px;
}

.stat-unit {
  font-size: 0.55em;
  font-weight: 600;
  color: inherit;
  opacity: 0.7;
  margin-left: 1px;
  vertical-align: super;
}

.racha-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.racha-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.racha-metric-top {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.racha-metric-value {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.7em;
  font-weight: 800;
  line-height: 1;
}

.racha-metric-value.fill-pasos  { color: #34d399; }
.racha-metric-value.fill-fuerza { color: #a78bfa; }
.racha-metric-value.fill-cardio { color: #00d4ff; }

.racha-metric-total {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8em;
  color: #4b5563;
}

.racha-metric-pct {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75em;
  color: #6b7280;
  margin-left: auto;
}

.racha-metric-label {
  font-size: 0.72em;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.racha-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.racha-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ── CHARTS ── */
.charts-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-container {
  width: 100%;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s ease;
}

.chart-container:last-child {
  max-width: none;
  align-self: auto;
}

.chart-container.full-width {
  grid-column: 1 / -1;
}

.charts-row {
  display: flex;
  gap: 20px;
}

.charts-row .chart-container {
  flex: 1;
  min-width: 0;
}

.chart-container:hover {
  border-color: rgba(0, 212, 255, 0.18);
}

#trendChart {
  max-height: 180px;
}

.chart-container h2 {
  font-size: 1.05em;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 3px solid #00d4ff;
  padding-left: 12px;
}

canvas {
  max-height: 400px;
}

#trendChart {
  min-height: 300px;
}

/* ── HEATMAP ── */
#heatmap {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.25) transparent;
}

#heatmap::-webkit-scrollbar { height: 4px; }
#heatmap::-webkit-scrollbar-track { background: transparent; }
#heatmap::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.25); border-radius: 2px; }

.heatmap-months {
  display: flex;
  padding-left: 22px;
  margin-bottom: 4px;
  min-width: max-content;
}

.heatmap-months span {
  width: 18px;
  font-size: 10px;
  color: #6b7280;
  font-family: 'Roboto Mono', monospace;
  flex-shrink: 0;
}

.heatmap-grid-row {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  min-width: max-content;
}

.heatmap-day-labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.heatmap-day-labels span {
  font-size: 9px;
  color: #6b7280;
  font-family: 'Roboto Mono', monospace;
  height: 14px;
  line-height: 14px;
  width: 12px;
  text-align: right;
}

.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 14px);
  grid-auto-columns: 14px;
  grid-auto-flow: column;
  gap: 4px;
}

.heatmap-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.1s, outline 0.1s;
  border: 1px solid transparent;
}

.heatmap-cell.futuro {
  border-color: rgba(255, 255, 255, 0.08);
}

.heatmap-cell:hover {
  transform: scale(1.3);
  outline: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 1;
  position: relative;
}

/* ── HEATMAP TOOLTIP ── */
.heatmap-tooltip {
  position: fixed;
  background: rgba(10, 15, 30, 0.97);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8em;
  color: #cbd5e1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.heatmap-tooltip.visible { opacity: 1; }

.heatmap-tooltip .tt-date {
  color: #00d4ff;
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.95em;
}

.heatmap-tooltip .tt-row { margin-bottom: 3px; }
.heatmap-tooltip strong  { color: #e2e8f0; }

/* ── CHART LEGEND ── */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8em;
  color: #9ca3af;
}

.legend-item em {
  color: #6b7280;
  font-style: normal;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-dot.verde      { background: #26a641; }
.legend-dot.verde-bajo { background: #006d32; }
.legend-dot.gris       { background: #374151; border: 1px solid rgba(255,255,255,0.15); }

/* ── THIS WEEK PANEL ── */
.this-week-panel {
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.twp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.twp-title {
  font-weight: 700;
  font-size: 1em;
  color: #e2e8f0;
}

.twp-remaining {
  font-size: 0.8em;
  color: #64748b;
}

.twp-goals {
  display: flex;
  gap: 12px;
}

.goal-card {
  flex: 1;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.4);
}

.goal-card--ok        { border-color: rgba(52, 211, 153, 0.3); }
.goal-card--alcanzable { border-color: rgba(251, 191, 36, 0.3); }
.goal-card--imposible  { border-color: rgba(248, 113, 113, 0.3); }

.goal-card-title {
  font-size: 0.75em;
  color: #94a3b8;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.goal-card-progress {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 6px;
}

.goal-current { color: #e2e8f0; }
.goal-sep     { color: #475569; font-weight: 400; }

.goal-card-status { font-size: 0.8em; }
.goal-card--ok        .goal-card-status { color: #34d399; }
.goal-card--alcanzable .goal-card-status { color: #fbbf24; }
.goal-card--imposible  .goal-card-status { color: #f87171; }

/* ── WEEKLY SUMMARY ── */
.weekly-summary-section {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.weekly-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.weekly-summary-section h2 {
  font-size: 1.05em;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 3px solid #a78bfa;
  padding-left: 12px;
}

.weekly-goals-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wgl-item {
  font-size: 0.73em;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.wgl-fuerza { background: rgba(167, 139, 250, 0.12); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.28); }
.wgl-cardio { background: rgba(0, 212, 255, 0.08);  color: #00d4ff; border: 1px solid rgba(0, 212, 255, 0.22); }
.wgl-pasos  { background: rgba(52, 211, 153, 0.08); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.22); }

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

/* Current week spans full width */
.week-card--current {
  grid-column: 1 / -1;
}

.week-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.2s;
}

.week-card:hover { border-color: rgba(167, 139, 250, 0.25); }

.week-card--current {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.07);
}

.week-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.week-range {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85em;
  font-weight: 600;
  color: #e2e8f0;
}

.week-status {
  font-size: 0.68em;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-cumplida { background: rgba(52, 211, 153, 0.12); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.28); }
.status-encurso  { background: rgba(167, 139, 250, 0.12); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.28); }
.status-parcial  { background: rgba(251, 146, 60, 0.12);  color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.28); }
.status-fallida  { background: rgba(248, 113, 113, 0.08); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.22); }

.week-card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.progress-row {
  display: grid;
  grid-template-columns: 68px 1fr 36px;
  align-items: center;
  gap: 8px;
}

.progress-label {
  font-size: 0.75em;
  color: #6b7280;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.fill-fuerza { background: linear-gradient(90deg, #6d28d9, #a78bfa); }
.fill-cardio { background: linear-gradient(90deg, #0e7490, #00d4ff); }
.fill-pasos  { background: linear-gradient(90deg, #065f46, #34d399); }

.progress-value {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72em;
  color: #4b5563;
  text-align: right;
}

.progress-value.met { color: #34d399; }

/* Day dots */
.week-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.day-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.day-dot-color {
  width: 100%;
  max-width: 28px;
  height: 18px;
  border-radius: 4px;
  cursor: default;
  transition: transform 0.1s;
}

.day-dot-color:hover { transform: scale(1.15); }

.day-dot-label {
  font-size: 9px;
  color: #4b5563;
  font-family: 'Roboto Mono', monospace;
}

/* ── MONTHLY CARDS ── */
.monthly-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.monthly-section-title {
  font-size: 0.72em;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.monthly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.month-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.month-card:hover {
  border-color: rgba(167, 139, 250, 0.2);
  transform: translateY(-2px);
}

.month-card--record {
  border-color: rgba(38, 166, 65, 0.4);
  box-shadow: 0 0 16px rgba(38, 166, 65, 0.1);
}

.month-card--future {
  opacity: 0.3;
  filter: saturate(0.2);
  pointer-events: none;
}

.month-record-badge {
  font-size: 0.6em;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  background: rgba(38, 166, 65, 0.15);
  color: #26a641;
  border: 1px solid rgba(38, 166, 65, 0.3);
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 6px;
}

.month-card-title {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.78em;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.month-stats {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.month-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.month-stat-value {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.4em;
  font-weight: 800;
  line-height: 1;
}

.month-stat-value.fill-fuerza { color: #a78bfa; }
.month-stat-value.fill-cardio { color: #00d4ff; }
.month-stat-value.fill-pasos  { color: #34d399; }

.month-stat-label {
  font-size: 0.65em;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ── WEEK TABLE ── */
.stats-detail {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stats-detail h2 {
  font-size: 1.05em;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 3px solid #34d399;
  padding-left: 12px;
}

.week-table {
  width: 100%;
  border-collapse: collapse;
}

.week-table thead {
  background: rgba(15, 23, 42, 0.6);
}

.week-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78em;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.week-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.95em;
}

.week-table tr:hover td {
  background: rgba(0, 212, 255, 0.04);
  color: #e2e8f0;
}

.week-table tr:last-child td {
  border-bottom: none;
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  color: #4b5563;
  padding: 20px;
  font-size: 0.82em;
  font-family: 'Roboto Mono', monospace;
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.7em;
  }

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

  .racha-cards {
    grid-template-columns: 1fr;
  }

  .week-table {
    font-size: 0.85em;
  }

  .week-table th,
  .week-table td {
    padding: 8px 10px;
  }

  .weekly-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .weekly-grid {
    grid-template-columns: 1fr;
  }

  .week-card--current {
    grid-column: auto;
  }

  .charts-row {
    flex-direction: column;
  }

  .twp-goals {
    flex-direction: column;
  }
}

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