/* ============================
   INTERVALS DASHBOARD — STYLES
   ============================ */

/* --- Design Tokens --- */
:root {
  --bg: #0f0f0e;
  --bg2: #181816;
  --bg3: #1f1f1c;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --text: #e8e6df;
  --text2: #9a9890;
  --text3: #5a5955;
  --accent: #eab308;
  --accent2: #22c55e;
  --accent3: #3b82f6;
  --accent4: #ef4444;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
}

/* --- Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
}

/* --- Nav --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 15, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 48px;
  display: flex;
  align-items: center;
  height: 52px;
}

.nav-brand {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: auto;
}
.nav-brand span { color: var(--accent); }

nav a {
  font: 12px var(--mono);
  color: var(--text3);
  text-decoration: none;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  letter-spacing: 0.06em;
  transition: color 0.15s;
  border-bottom: 1.5px solid transparent;
}
nav a:hover { color: var(--text); }
nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* --- Layout --- */
.main { margin-top: 52px; }

section {
  padding: 60px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* --- Reusable: mono label (shared by card labels, stat labels, etc.) --- */
.card-label,
.pw-stat-label,
.pw-section-hdr,
.select-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pw-section-hdr { font-size: 10px; padding: 8px 0 4px; border-bottom: 0.5px solid var(--border); margin-bottom: 2px; }
.select-label { font-size: 10px; letter-spacing: 0.08em; }

/* --- RI Hero --- */
.ri-hero {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}
.ri-big { font-family: var(--mono); font-size: 56px; font-weight: 400; line-height: 1; }
.ri-right { flex: 1; }
.ri-sub { font-family: var(--mono); font-size: 12px; color: var(--text3); margin-bottom: 6px; }
.ri-bar-wrap { margin: 8px 0 6px; }
.ri-bar { height: 6px; border-radius: 3px; background: var(--bg3); overflow: hidden; }
.ri-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }
.ri-bar-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 3px;
}
.ri-rec { font-size: 13px; color: var(--text2); margin-top: 8px; }

/* --- Card Grid (shared: cards, dFRC summary, metab) --- */
.card-row,
.dfrc-summary,
.metab-cards {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}
.card-row    { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.dfrc-summary { grid-template-columns: repeat(4, 1fr); border-radius: 6px; margin: 10px 0 8px; }
.metab-cards  { grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; }

.card { background: var(--bg2); padding: 16px; }
.dfrc-summary .card { padding: 10px 14px; }
.metab-cards .card  { padding: 12px; }

.card-label { margin-bottom: 4px; }
.card-value { font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--text); }
.dfrc-summary .card-value { font-size: 16px; }
.metab-cards .card-value  { font-size: 18px; }
.card-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }

.card-value.green { color: var(--accent2); }
.card-value.amber { color: var(--accent); }
.card-value.red   { color: var(--accent4); }

/* --- Alert Blocks --- */
.alert {
  border-left: 3px solid var(--border2);
  padding: 10px 16px;
  margin: 12px 0;
  border-radius: 0 4px 4px 0;
  background: var(--bg2);
}
.alert-red   { border-color: var(--accent4); background: rgba(239, 68, 68, 0.06); }
.alert-amber { border-color: var(--accent);  background: rgba(234, 179, 8, 0.06); }
.alert-green { border-color: var(--accent2); background: rgba(34, 197, 94, 0.06); }
.alert-blue  { border-color: var(--accent3); background: rgba(59, 130, 246, 0.06); }
.alert p { font-size: 13px; color: var(--text2); line-height: 1.7; }
.alert strong { color: var(--text); font-weight: 400; }

/* --- Badges --- */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}
.badge-amber { background: rgba(234, 179, 8, 0.12); color: var(--accent);  border: 0.5px solid rgba(234, 179, 8, 0.25); }
.badge-green { background: rgba(34, 197, 94, 0.12); color: var(--accent2); border: 0.5px solid rgba(34, 197, 94, 0.25); }
.badge-blue  { background: rgba(59, 130, 246, 0.12); color: var(--accent3); border: 0.5px solid rgba(59, 130, 246, 0.25); }
.badge-red   { background: rgba(239, 68, 68, 0.12); color: var(--accent4); border: 0.5px solid rgba(239, 68, 68, 0.25); }
.badge-gray  { background: rgba(255, 255, 255, 0.06); color: var(--text2); border: 0.5px solid var(--border2); }

/* --- Metric Table --- */
.metric-table { margin-bottom: 24px; }
.m-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--border);
}
.m-row:last-child { border-bottom: none; }
.m-dot    { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.m-name   { font-size: 13px; color: var(--text2); flex: 1; }
.m-val    { font-family: var(--mono); font-size: 13px; color: var(--text); width: 80px; text-align: right; }
.m-z      { font-family: var(--mono); font-size: 11px; width: 65px; text-align: right; }
.m-trend  { font-size: 13px; width: 20px; text-align: center; color: var(--text3); }
.m-status { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-align: right; width: 110px; }

.dot-green { background: var(--accent2); }
.dot-amber { background: var(--accent); }
.dot-red   { background: var(--accent4); }

/* --- RI Trend Bars --- */
.ri-trend { margin-bottom: 24px; }
.ri-trend-row { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.ri-trend-date { font-family: var(--mono); font-size: 11px; color: var(--text3); width: 40px; flex-shrink: 0; }
.ri-trend-bar { height: 18px; border-radius: 3px; min-width: 4px; display: flex; align-items: center; padding-left: 6px; }
.ri-trend-val { font-family: var(--mono); font-size: 10px; color: var(--bg); font-weight: 500; }
.ri-trend-status { font-family: var(--mono); font-size: 10px; margin-left: 8px; width: 80px; }

/* --- Gauge Bars (shared: ACWR + VLaMax) --- */
.acwr-gauge,
.vlamax-bar-wrap { position: relative; margin-bottom: 24px; }
.vlamax-bar-wrap { margin: 12px 0 20px; }

.acwr-bar,
.vlamax-bar {
  height: 10px;
  border-radius: 5px;
  display: flex;
  position: relative;
  margin: 6px 0 4px;
}

.acwr-seg,
.vlamax-seg { height: 100%; position: relative; overflow: visible; }
.acwr-seg:first-child, .vlamax-seg:first-child { border-radius: 5px 0 0 5px; }
.acwr-seg:last-child,  .vlamax-seg:last-child  { border-radius: 0 5px 5px 0; }

.acwr-marker-wrap,
.vlamax-marker-wrap { position: relative; height: 0; }

.acwr-marker {
  position: absolute;
  top: -18px;
  width: 2px; height: 16px;
  background: var(--text);
  border-radius: 1px;
}

.acwr-labels,
.vlamax-labels {
  display: flex;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text3);
  letter-spacing: 0.04em;
}
.acwr-labels span { text-align: center; }
.vlamax-labels { justify-content: space-between; margin-top: 3px; }

.acwr-val { font-family: var(--mono); font-size: 13px; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }

/* Gauge tooltips */
.gauge-tip {
  display: none;
  position: fixed;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.acwr-seg:hover .gauge-tip,
.acwr-marker-wrap:hover .gauge-tip,
.vlamax-seg:hover .gauge-tip,
.vlamax-marker-wrap:hover .gauge-tip { display: none; }
.vlamax-zone { display: none; }

/* --- Chart Containers (shared) --- */
.chart-container,
.dfrc-chart-wrap,
.energy-chart-wrap,
.pdc-chart-wrap,
.swim-chart-wrap,
.pol-chart-wrap {
  position: relative;
  background: var(--bg2);
  border-radius: 8px;
  border: 0.5px solid var(--border);
  padding: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.chart-container { height: 260px; padding: 16px; margin-bottom: 24px; }
.dfrc-chart-wrap { height: 220px; border-radius: 6px; padding: 10px; margin-bottom: 4px; }
.energy-chart-wrap,
.pdc-chart-wrap { height: 260px; }
.swim-chart-wrap { height: 240px; border-radius: 6px; padding: 10px; margin-top: 8px; margin-bottom: 0; }
.pol-chart-wrap { height: 220px; }

/* --- Activity --- */
.activity-item { padding: 14px 0; border-bottom: 0.5px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-name { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.activity-meta { font-family: var(--mono); font-size: 11px; color: var(--text3); display: flex; gap: 14px; flex-wrap: wrap; }
.activity-extra { margin-top: 8px; }

/* Zone bars */
.zone-bar-container { display: flex; height: 18px; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.zone-seg { height: 100%; min-width: 1px; }

/* --- Swim Timeline --- */
.swim-timeline-wrap { margin-top: 8px; }
.swim-bars { display: flex; align-items: flex-end; gap: 1px; width: 100%; }
.swim-bar { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.swim-bar-fill {
  width: 100%; height: 28px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  gap: 6px; overflow: hidden; white-space: nowrap;
}
.swim-bar-dur,
.swim-bar-dist,
.swim-bar-pace { font-family: var(--mono); font-size: 9px; }
.swim-bar-dur  { color: var(--text); }
.swim-bar-dist,
.swim-bar-pace { color: var(--text2); }
.swim-bar-top {
  display: flex; flex-direction: column; align-items: center;
  gap: 0; margin-bottom: 2px; min-height: 28px; justify-content: flex-end;
}
.swim-bar-top span { font-family: var(--mono); font-size: 8px; line-height: 1.2; }
.swim-bar-zone  { color: var(--text3); letter-spacing: 0.06em; }
.swim-bar-inten { color: var(--accent2); }

/* --- Polarization --- */
.pol-hero { display: flex; align-items: flex-start; gap: 32px; margin-bottom: 12px; }
.pol-ring-mobile  { display: none; }
.pol-ring-desktop { width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.pol-pi { font-family: var(--mono); font-size: 36px; line-height: 1; }
.pol-pi.green { color: var(--accent2); }
.pol-pi.amber { color: var(--accent); }
.pol-pi.red   { color: var(--accent4); }

.pol-dist { flex: 1; }
.pol-dist-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pol-dist-label { font-family: var(--mono); font-size: 10px; color: var(--text3); width: 80px; flex-shrink: 0; }
.pol-dist-bar-wrap { flex: 1; height: 10px; background: var(--bg3); border-radius: 5px; overflow: hidden; }
.pol-dist-bar { height: 100%; border-radius: 5px; transition: width 0.4s; }
.pol-dist-pct { font-family: var(--mono); font-size: 12px; color: var(--text); width: 40px; text-align: right; }

/* --- Tables --- */
table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 24px; }
th {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text3); padding: 0 12px 8px 0;
  text-align: left; border-bottom: 0.5px solid var(--border2);
  font-weight: 400; user-select: none;
}
th:hover { color: var(--text2); }
.sort-arrow { font-size: 8px; color: var(--accent3); }
td { padding: 8px 12px 8px 0; border-bottom: 0.5px solid var(--border); color: var(--text); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.td-mono   { font-family: var(--mono); font-size: 12px; }
.td-accent { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.td-muted  { color: var(--text3); font-size: 12px; }

/* --- Utility --- */
hr.divider { border: none; border-top: 0.5px solid var(--border); margin: 32px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; min-width: 0; }
.two-col > * { min-width: 0; }
.select-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

/* --- Tabs / Inputs --- */
.tab-btn {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 20px; color: var(--text3);
  background: none; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer; transition: color 0.15s;
}
.tab-btn:hover  { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

#glossary-search {
  width: 100%; max-width: 380px;
  font-family: var(--mono); font-size: 13px;
  background: var(--bg2); border: 0.5px solid var(--border2);
  color: var(--text); border-radius: 6px; padding: 8px 14px;
}
#glossary-search::placeholder { color: var(--text3); }

.zone-input {
  width: 70px; font-family: var(--mono); font-size: 13px;
  background: var(--bg2); border: 0.5px solid var(--border2);
  color: var(--text); border-radius: 4px; padding: 5px 8px; margin-left: 6px;
}

.model-select {
  font-family: var(--mono); font-size: 11px;
  background: var(--bg3); color: var(--text);
  border: 0.5px solid var(--border2); border-radius: 4px;
  padding: 4px 10px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235a5955'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center;
  padding-right: 22px;
}
.model-select:hover { border-color: var(--accent); }

/* Scrollbar */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* --- Planned Workouts --- */
.pw-card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.pw-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; border-bottom: 0.5px solid var(--border); }
.pw-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.pw-title { font-size: 16px; font-weight: 400; }

.pw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 1px; background: var(--border); border-bottom: 0.5px solid var(--border); }
.pw-stat { background: var(--bg2); padding: 12px 16px; text-align: center; }
.pw-stat-label { margin-bottom: 2px; }
.pw-stat-val  { font-family: var(--mono); font-size: 18px; font-weight: 400; color: var(--text); }
.pw-stat-unit { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-left: 2px; }

.pw-chart-wrap { position: relative; height: 200px; padding: 12px 16px; overflow: hidden; }
.pw-tooltip {
  position: absolute; pointer-events: none;
  background: rgba(24, 24, 22, 0.95); border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px; padding: 8px 12px;
  font-family: var(--mono); font-size: 11px; color: var(--text);
  line-height: 1.5; white-space: nowrap; z-index: 10;
}
.pw-steps { padding: 16px 20px; }
.pw-step { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.pw-step-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pw-step-text { color: var(--text2); flex: 1; }
.pw-step-zone { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.pw-step.rest .pw-step-text { color: var(--text3); font-style: italic; }
.pw-text-block { padding: 16px 20px; font-size: 13px; color: var(--text2); line-height: 1.7; white-space: pre-line; }

/* --- Loading / Error / Stale --- */
.skeleton { position: relative; overflow: hidden; background: var(--bg3); border-radius: 6px; }
.skeleton::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { left: 100%; } }
.skeleton-line { height: 14px; margin: 8px 0; border-radius: 4px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }
.loading-wrap { padding: 20px 0; }

.error-banner { padding: 20px; text-align: center; border: 1px dashed var(--border2); border-radius: 8px; margin: 20px 0; }
.error-banner p { font-size: 13px; color: var(--text3); margin: 0; }
.error-banner code { font-family: var(--mono); font-size: 12px; color: var(--accent); background: var(--bg3); padding: 2px 8px; border-radius: 3px; }

.stale-badge { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 3px; display: inline-block; }
.stale-ok   { color: var(--text3); }
.stale-warn { color: var(--accent); background: rgba(234, 179, 8, 0.1); }
.stale-old  { color: var(--accent4); background: rgba(239, 68, 68, 0.1); }

/* --- Tooltips (glossary + PDC) --- */
.gloss { position: relative; border-bottom: 1px dotted var(--text3); cursor: help; }
.gloss-tip {
  display: none; position: fixed;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 6px;
  padding: 8px 12px; font-family: var(--mono); font-size: 11px; color: var(--text);
  z-index: 9999; pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.5; max-width: 320px; white-space: normal;
}
.gloss-tip strong { color: var(--accent); font-weight: 400; }
.gloss-tip em { color: var(--text2); font-style: normal; font-size: 10px; }

.pdc-tip {
  position: absolute; z-index: 9999;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 6px;
  padding: 10px 14px; font-family: var(--mono);
  width: 270px; max-width: calc(100vw - 16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: opacity 0.15s; pointer-events: none;
}
.pdc-tip-head { font-size: 13px; color: var(--text); font-weight: 400; margin-bottom: 8px; letter-spacing: 0.04em; }
.pdc-tip-bars { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.pdc-tip-bars span { display: block; height: 100%; }
.pdc-tip-pcts { display: flex; justify-content: space-between; font-size: 9px; margin-bottom: 8px; letter-spacing: 0.05em; }
.pdc-tip-dom { font-size: 11px; color: var(--accent); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.pdc-tip-explain { font-size: 11px; color: var(--text2); line-height: 1.6; margin-bottom: 6px; font-family: var(--sans); }
.pdc-tip-fuel { font-size: 10px; color: var(--text3); line-height: 1.4; }

/* ===== Responsive: tablet (<=680px) ===== */
@media (max-width: 680px) {
  section { padding: 40px 20px; }
  nav { padding: 0 20px; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { padding: 0 10px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }

  .ri-hero { flex-direction: column; gap: 16px; }
  .ri-big { font-size: 42px; }
  .ri-bar-labels { font-size: 7px; }
  .two-col { grid-template-columns: 1fr; }

  .pol-hero { flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: center; }
  .pol-ring-mobile { display: flex; flex-direction: column; align-items: center; margin-left: auto; }
  .pol-ring-desktop { display: none; }
  .pol-dist { width: 100%; }

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

  .chart-container { height: 200px; }
  .energy-chart-wrap, .pdc-chart-wrap, .pol-chart-wrap { height: 200px; }

  #glossary-table th:nth-child(2), #glossary-table td:nth-child(2),
  #glossary-table th:nth-child(4), #glossary-table td:nth-child(4) { display: none; }
  #glossary-table th:first-child { width: 60px; }

  #zone-table-swim th:nth-child(2), #zone-table-swim td:nth-child(2),
  #zone-table-bike th:nth-child(2), #zone-table-bike td:nth-child(2),
  #zone-table-run  th:nth-child(2), #zone-table-run  td:nth-child(2) { display: none; }

  .tab-btn { padding: 5px 8px !important; font-size: 10px; }
}

/* ===== Responsive: phone (<=440px) ===== */
@media (max-width: 440px) {
  section { padding: 28px 14px; }
  nav { padding: 0 10px; }
  .ri-big { font-size: 36px; }

  .m-status { display: none; }
  .m-val  { width: 60px; font-size: 12px; }
  .m-z    { width: 50px; font-size: 10px; }
  .m-name { font-size: 12px; }

  .card-row { grid-template-columns: repeat(2, 1fr); }
  .card-value { font-size: 18px; }

  .chart-container { height: 170px; }
  .energy-chart-wrap, .pdc-chart-wrap, .pol-chart-wrap { height: 170px; }
  .pw-chart-wrap { height: 150px; }
  .swim-chart-wrap { height: 180px; }
  .swim-bar-top span { font-size: 7px; }
  .swim-bar-fill { height: 22px; }
  .swim-bar-dur, .swim-bar-dist, .swim-bar-pace { font-size: 7px; }

  table { font-size: 12px; }
  th, td { padding: 6px 6px 6px 0; }
  .gloss { padding: 2px 0; }
}
