@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/archivo-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/archivo-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/archivo-narrow-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/archivo-narrow-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/archivo-narrow-latin-700-normal.woff2") format("woff2");
}
:root {
  color-scheme: dark;

  --font-display: Archivo, system-ui, sans-serif;
  --font-ui: Archivo, system-ui, sans-serif;
  --font-number: "Archivo Narrow", "Arial Narrow", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --r1: 8px;
  --r2: 14px;
  --measure: 1240px;

  --bg: #0c0e13;
  --surface: #141821;
  --sunken: #1b2030;
  --ink: #f1f3f7;
  --muted: #b8bfcc;
  --line: #262c3a;
  --line-strong: #414a5e;
  --accent: #f7843b;
  --accent-ink: #0c0e13;
  --focus: #ffd84a;
  --z0: #3a3f52;
  --z1: #4f46c8;
  --z2: #9b3fc4;
  --z3: #e0457b;
  --z4: #f7843b;
  --z5: #ffd84a;

  --ok: #30c85e;
  --warn: #f5c518;
  --bad: #e5484d;
  --na: #7c8597;

  --run: #d95926;
  --hyrox: #f7843b;
  --erg: #e0457b;
  --functional: #3987e5;
  --other: #7c8597;
  --swim: #3987e5;
  --bike: #199e70;
  --multi: #9085e9;

  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0f4;
  --surface: #ffffff;
  --sunken: #f3f5f9;
  --ink: #0f1320;
  --muted: #3d4557;
  --line: #dfe3ea;
  --line-strong: #a8afbd;
  --focus: #4f46c8;
  --ok: #1f9d46;
  --warn: #d9a800;
  --bad: #d7263d;
  --z0: #c9cdd8;
  --z1: #5b52d6;
  --z2: #9a3cc6;
  --z3: #d63a70;
  --z4: #e9711f;
  --z5: #d9a800;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: var(--s4);
  top: var(--s4);
  z-index: 10;
  background: var(--surface);
  padding: var(--s2) var(--s3);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--s3) var(--s5);
}
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
}
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.masthead-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

[role="tablist"] {
  display: flex;
  gap: var(--s1);
  overflow-x: auto;
  margin-top: var(--s3);
}
[role="tab"] {
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  padding: var(--s2) var(--s4);
  white-space: nowrap;
  cursor: pointer;
}
[role="tab"]:hover {
  color: var(--ink);
  background: none;
}
[role="tab"][aria-selected="true"] {
  color: var(--bg);
  background: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------- layout */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--s5) var(--s6);
  display: grid;
  gap: var(--s4);
}
main[aria-busy="true"] {
  opacity: 0.55;
  transition: opacity 120ms;
}

.status {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--s3) var(--s5) 0;
  min-height: 2.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.status:empty {
  min-height: var(--s4);
}
.status[data-kind="error"] {
  color: var(--bad);
  font-weight: 600;
}
.status[data-kind="success"] {
  color: var(--ok);
  font-weight: 600;
}

.card {
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background: var(--surface);
  min-width: 0;
}
.controls + .card,
.controls + .notice + .card {
  padding-top: var(--s5);
}
.card.inner {
  margin-top: var(--s4);
  padding: var(--s4) 0 0;
}

h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s3);
}
h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
}
p {
  margin: 0 0 var(--s3);
  max-width: 68ch;
}
.lede {
  color: var(--muted);
}

/* ---------------------------------------------------------------- forms */

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s3) var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.card .controls {
  border-bottom: 0;
  padding: var(--s3) 0 0;
}
.controls > button {
  margin-top: 1.375rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}
.field[hidden] {
  display: none;
}
.field small {
  font-size: 0.75rem;
  font-weight: 400;
}
input,
select,
button {
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  padding: 0.375rem 0.625rem;
  min-height: 2.125rem;
}
input:hover,
select:hover {
  border-color: var(--muted);
}
button {
  cursor: pointer;
  font-weight: 500;
  background: transparent;
}
button:hover {
  background: var(--sunken);
}
button[type="submit"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 600;
}
button[type="submit"]:hover {
  background: color-mix(in srgb, var(--ink) 85%, var(--bg));
}
button.link {
  border: 0;
  padding: 0;
  min-height: 0;
  background: none;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- figures & numbers */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--s5) var(--s5);
  margin: var(--s5) 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.stat-label {
  order: -1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-value {
  font-family: var(--font-number);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat-hint {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Status labels: a coloured square plus words, never colour alone. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 1px;
  background: var(--na);
  flex: none;
}
.badge-green::before {
  background: var(--ok);
}
.badge-amber::before {
  background: var(--warn);
}
.badge-red::before {
  background: var(--bad);
}

.verdict {
  display: grid;
  gap: var(--s2);
  margin-bottom: var(--s5);
}
.verdict-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.verdict-band {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.verdict-band::before {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 2px;
  background: var(--na);
}
.verdict-green::before {
  background: var(--ok);
}
.verdict-amber::before {
  background: var(--warn);
}
.verdict-red::before {
  background: var(--bad);
}
.verdict-summary {
  font-size: 1.0625rem;
  margin: 0;
}

/* ---------------------------------------------------------------- tables */

.table-wrap {
  overflow-x: auto;
  margin: var(--s4) 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  padding-bottom: var(--s2);
  color: var(--muted);
}
th,
td {
  text-align: left;
  padding: var(--s2) var(--s4) var(--s2) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
  white-space: nowrap;
}
th:last-child,
td:last-child {
  padding-right: 0;
}
td.num,
th.num {
  text-align: right;
}
tbody tr:hover {
  background: color-mix(in srgb, var(--sunken) 60%, transparent);
}
code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
code.json {
  display: block;
  max-width: 22rem;
  max-height: 6rem;
  overflow: auto;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}
.actions button,
.chip {
  font-size: 0.8125rem;
  padding: 0.125rem var(--s2);
  min-height: 1.75rem;
}
.chip {
  font-family: var(--font-mono);
}
.actions-label {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- text blocks */

.empty,
.rule,
.refs,
.disclaimer,
figcaption,
.card > small {
  color: var(--muted);
  font-size: 0.8125rem;
}
.rule {
  display: block;
  margin-top: var(--s1);
}
.notice {
  border-left: 2px solid var(--warn);
  padding: var(--s2) var(--s3);
  margin: var(--s4) 0;
  background: color-mix(in srgb, var(--warn) 8%, transparent);
}
.notice-error {
  border-left-color: var(--bad);
  background: color-mix(in srgb, var(--bad) 8%, transparent);
}

.insights {
  list-style: none;
  padding: 0;
  margin: 0;
}
.insights li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: var(--s1) var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}
.insights li:last-child {
  border-bottom: 0;
}
.insights .rule {
  grid-column: 2;
  margin: 0;
}

.caveats ul {
  margin: 0 0 var(--s4);
  padding-left: var(--s4);
  max-width: 80ch;
}
.caveats li {
  margin-bottom: var(--s2);
}
.caveats li::marker {
  color: var(--warn);
}

/* Readiness components: one row each, rationale first, evidence on demand. */
.components {
  border-top: 1px solid var(--line-strong);
}
.component {
  display: grid;
  grid-template-columns: 9rem 8.5rem minmax(0, 1fr);
  grid-template-areas:
    "name band text"
    ". . why";
  gap: var(--s1) var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.component h3 {
  grid-area: name;
}
.component > .badge {
  grid-area: band;
  align-self: start;
  margin-top: 0.15rem;
}
.component > p {
  grid-area: text;
  margin: 0;
}
.component > .why {
  grid-area: why;
}

details > summary {
  cursor: pointer;
  font-weight: 600;
  width: fit-content;
}
.why > summary {
  font-size: 0.8125rem;
  color: var(--muted);
}
.why[open] > summary {
  margin-bottom: var(--s2);
}
.why dl,
.trust dl,
.claim-result dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--s1) var(--s4);
  font-size: 0.8125rem;
  margin: 0;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rule-detail {
  margin: var(--s4) 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.rule-detail > summary {
  font-weight: 500;
}
.rule-detail p {
  margin: var(--s2) 0 0;
}

.trust {
  color: var(--muted);
  font-size: 0.875rem;
  padding: var(--s4) 0;
}
.trust > summary {
  font-weight: 500;
}
.trust[open] > summary {
  margin-bottom: var(--s3);
  color: var(--ink);
}
.trust ul {
  padding-left: var(--s4);
}

/* Audit groups */
.suspect-group {
  margin-top: var(--s5);
}
.suspect-group > summary,
.suspect-group > h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}
.suspect-group .count {
  color: var(--muted);
  font-weight: 400;
}
.suspect-group caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.suspect-group .table-wrap {
  margin-top: var(--s2);
}

/* ---------------------------------------------------------------- charts */

.figure {
  margin: var(--s5) 0;
}
.chart {
  width: 100%;
  height: auto;
  display: block;
}
.chart .axis {
  fill: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.chart .grid {
  stroke: var(--line);
  stroke-width: 1;
}
.chart .axis-line {
  stroke: var(--line-strong);
  stroke-width: 1;
}
.chart .gap {
  fill: color-mix(in srgb, var(--other) 14%, transparent);
}
.chart .peak {
  stroke: var(--ink);
  stroke-width: 2;
}
.seg-run {
  fill: var(--run);
}
.seg-erg_station {
  fill: var(--erg);
}
.seg-functional {
  fill: var(--functional);
}
.seg-other,
.seg-unknown {
  fill: var(--other);
}
.bar.c-run,
.key.c-run::before {
  fill: var(--run);
  background: var(--run);
}
.bar.c-hyrox,
.key.c-hyrox::before {
  fill: var(--hyrox);
  background: var(--hyrox);
}
.bar.c-swim,
.key.c-swim::before {
  fill: var(--swim);
  background: var(--swim);
}
.bar.c-bike,
.key.c-bike::before {
  fill: var(--bike);
  background: var(--bike);
}
.bar.c-multi,
.key.c-multi::before {
  fill: var(--multi);
  background: var(--multi);
}
.line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
}
.line-ctl {
  stroke: var(--run);
}
.line-atl {
  stroke: var(--hyrox);
}
.line-tsb {
  stroke: var(--bike);
  stroke-dasharray: 5 3;
}
figcaption {
  margin-top: var(--s2);
}
.key {
  margin-right: var(--s4);
  white-space: nowrap;
}
.key::before {
  content: "";
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.375rem;
  border-radius: 1px;
  vertical-align: -1px;
}
.key.line-ctl::before {
  background: var(--run);
}
.key.line-atl::before {
  background: var(--hyrox);
}
.key.line-tsb::before {
  background: var(--bike);
}

.shares {
  display: grid;
  gap: var(--s2);
  max-width: 32rem;
  margin: var(--s4) 0;
}
.share-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 10rem;
  gap: var(--s3);
  align-items: center;
}
.share-value {
  display: flex;
  gap: var(--s3);
  font-variant-numeric: tabular-nums;
}
.share-row meter {
  width: 100%;
}

.log-race {
  margin-top: var(--s5);
}
.log-race > summary {
  font-weight: 600;
}
.log-race form {
  margin-top: var(--s3);
}
.splits {
  border: 1px solid var(--line);
  border-radius: var(--r2);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: var(--s2);
  width: 100%;
  padding: var(--s3);
}
.splits legend {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0 var(--s1);
}

.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--s5) var(--s5) var(--s6);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.foot p {
  max-width: 80ch;
  margin: 0;
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 40rem) {
  :root {
    font-size: 14px;
  }
  .top-inner,
  main,
  .status,
  .foot {
    padding-left: var(--s4);
    padding-right: var(--s4);
  }
  [role="tablist"] {
    gap: var(--s4);
  }
  .component {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name band"
      "text text"
      "why why";
  }
  .insights li {
    grid-template-columns: minmax(0, 1fr);
  }
  .insights .rule {
    grid-column: 1;
  }
  .stat-value {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
dialog.save-review {
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: var(--s5);
  max-width: min(38rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
}
dialog.save-review::backdrop {
  background: rgb(0 0 0 / 55%);
}
.save-review p,
.save-review dl {
  margin-block: var(--s4);
}
.save-review dd {
  overflow-wrap: anywhere;
}
.today-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--s4);
  border-top: 1px solid var(--line);
  padding-block: var(--s4);
}
.today-value {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 40rem) {
  .today-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.refresh-bar {
  max-width: var(--measure);
  margin-inline: auto;
  padding: var(--s3) var(--s5) 0;
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.refresh-bar p,
.presets small {
  font-size: 0.8125rem;
  color: var(--muted);
}
.presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  flex-basis: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.release-mark {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-left: var(--s3);
}
.chart-grid {
  display: grid;
  gap: var(--s4);
  min-width: 0;
}
.today-charts {
  grid-template-columns: 320px minmax(0, 1fr);
}
.session-charts {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.training-charts {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.chart-grid > .card {
  margin: 0;
}
.compact-stats {
  grid-template-columns: 1fr 1fr;
}
.chart .ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 14;
}
.chart .ring-value {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}
.chart .ring-number {
  fill: var(--ink);
  font: 700 48px var(--font-number);
}
.chart .ring-verdict {
  fill: var(--ink);
  font: 700 27px var(--font-number);
}
.chart .chart-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.recovery-ring {
  max-width: 220px;
  margin: var(--s4) auto;
}
.segment-ring {
  max-width: 300px;
  margin: var(--s4) auto;
}
.readiness-ring {
  max-width: 320px;
  margin-inline: auto;
  grid-row: span 3;
}
.ring-value.band-green {
  stroke: var(--ok);
}
.ring-value.band-amber {
  stroke: var(--warn);
}
.ring-value.band-red {
  stroke: var(--bad);
}
.component-arc.band-green {
  fill: var(--ok);
}
.component-arc.band-amber {
  fill: var(--warn);
}
.component-arc.band-red {
  fill: var(--bad);
}
.component-arc.band-unknown,
.component-arc.band-not_applicable {
  fill: var(--na);
}
.intensity-0,
.key.intensity-0::before {
  fill: var(--z0);
  background: var(--z0);
}
.intensity-1,
.key.intensity-1::before {
  fill: var(--z1);
  background: var(--z1);
}
.intensity-2,
.key.intensity-2::before {
  fill: var(--z2);
  background: var(--z2);
}
.intensity-3,
.key.intensity-3::before {
  fill: var(--z3);
  background: var(--z3);
}
.intensity-4,
.key.intensity-4::before {
  fill: var(--z4);
  background: var(--z4);
}
.intensity-5,
.key.intensity-5::before {
  fill: var(--z5);
  background: var(--z5);
}
.recovery-fill-green {
  fill: var(--ok);
}
.recovery-fill-amber {
  fill: var(--warn);
}
.recovery-fill-red {
  fill: var(--bad);
}
.sleep-stage-0 {
  fill: var(--z1);
}
.sleep-stage-1 {
  fill: var(--z2);
}
.sleep-stage-2 {
  fill: var(--multi);
}
.history-band {
  fill: var(--z1);
  opacity: 0.18;
}
.vital-line {
  stroke: var(--ink);
}
.vital-dot {
  fill: var(--ink);
}
.chart-hit {
  fill: transparent;
  cursor: crosshair;
}
.crosshair {
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  pointer-events: none;
}
.chart-detail {
  color: var(--ink);
  min-height: 3rem;
  font-size: 0.8125rem;
}
.workout-bubble {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.8;
}
.workout-bubble.c-run {
  fill: var(--run);
}
.workout-bubble.c-swim {
  fill: var(--swim);
}
.workout-bubble.c-bike {
  fill: var(--bike);
}
.workout-bubble.c-hyrox {
  fill: var(--hyrox);
}
.workout-bubble.c-multi {
  fill: var(--multi);
}
.audit-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s3);
}
.audit-tile {
  display: grid;
  gap: var(--s2);
  text-align: left;
  padding: var(--s4);
  border-color: var(--warn);
  background: var(--sunken);
}
.audit-tile span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.verdict {
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  align-items: center;
}
.today-value,
.verdict-band {
  font-family: var(--font-number);
}
.figure {
  margin: var(--s3) 0;
}
.card .card {
  background: var(--bg);
}
.trust {
  padding: var(--s4);
}
.chart-grid .table-wrap {
  max-width: 100%;
}

@media (max-width: 980px) {
  .today-charts,
  .session-charts,
  .training-charts {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    padding: var(--s4);
  }
}
@media (max-width: 600px) {
  .verdict {
    grid-template-columns: minmax(0, 1fr);
  }
  .readiness-ring {
    grid-row: auto;
  }
  .refresh-bar {
    flex-wrap: wrap;
  }
  .header-actions {
    flex-wrap: wrap;
  }
  .controls input,
  .controls select {
    max-width: 100%;
    min-width: 0;
  }
  .field {
    min-width: 0;
  }
}
