/* VUMO Trial Provisioner — Operational (pointer-first) surface.
 *
 * Every colour here is a token from tokens.css. No raw hex appears in this
 * file; tests/no-raw-hex.test.js fails the build if one does.
 *
 * Geometry per DESIGN.md: radius 0 on every rectangle, circular only for
 * status dots and spinners. No shadows, no blur, no gradients — hierarchy is
 * 1px separator lines and the canvas -> surface step.
 */

/* Space Grotesk is a variable font (wght axis). One file, range-declared, so
 * 400/500/600/700 are real instances and 800/900 are unreachable. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/static/fonts/space-grotesk-variable.woff2') format('woff2-variations'),
       url('/static/fonts/space-grotesk-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-primary);
  font-family: var(--font-family);
  font-size: var(--type-body-md-size);
  font-weight: var(--type-body-md-weight);
  line-height: var(--type-body-md-line);
  letter-spacing: var(--type-body-md-tracking);
}

/* ---- focus: 2px accent outline, 2px offset, everywhere ------------------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---- top bar: 56px ink, white wordmark, 2px separator beneath ------------ */
.topbar {
  height: var(--nav-operational-height);
  background: var(--nav-operational-background-color);
  color: var(--nav-operational-text-color);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0 var(--space-page-x);
  border-bottom: 2px solid var(--color-separator);
}

.wordmark {
  font-size: var(--type-h4-size);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-white);
  text-decoration: none;
  /* Space Grotesk sits optically high: baked in once, never per instance. */
  padding-top: 2px;
}
.wordmark:hover { color: var(--color-accent); }

.topbar__spacer { flex: 1; }

.topbar__link {
  color: var(--color-white);
  font-size: var(--type-body-sm-size);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: var(--space-xs) 0;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--motion-micro) var(--ease-default);
}
.topbar__link:hover { color: var(--color-accent); }

/* ---- environment chip: neutral gray fill, ink text, label-caps ----------- */
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-none);
  padding: 5px var(--space-sm) 3px;
  font-size: var(--type-label-caps-size);
  font-weight: var(--type-label-caps-weight);
  line-height: var(--type-label-caps-line);
  letter-spacing: var(--type-label-caps-tracking);
  text-transform: uppercase;
  background: var(--color-gray);
  color: var(--color-primary);
  white-space: nowrap;
}
.chip--inline { margin-left: var(--space-sm); }

/* ---- page + surface island ---------------------------------------------- */
.page {
  padding: var(--space-page-y) var(--space-page-x) var(--space-3xl);
}
.page--narrow { max-width: 720px; margin: 0 auto; }
.page--wide { max-width: 1120px; margin: 0 auto; }

.island {
  background: var(--card-background-color);
  border: 1px solid var(--color-separator);
  border-radius: var(--radius-none);
  padding: var(--card-padding);
}
.island + .island { margin-top: var(--space-lg); }

.page-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg);
}

h1, h2, h3, h4 { margin: 0; }

h1 {
  font-size: var(--type-h1-size);
  font-weight: var(--type-h1-weight);
  line-height: var(--type-h1-line);
  letter-spacing: var(--type-h1-tracking);
}
h2 {
  font-size: var(--type-h2-size);
  font-weight: var(--type-h2-weight);
  line-height: var(--type-h2-line);
  letter-spacing: var(--type-h2-tracking);
}
h3 {
  font-size: var(--type-h3-size);
  font-weight: var(--type-h3-weight);
  line-height: var(--type-h3-line);
  letter-spacing: var(--type-h3-tracking);
}

.muted {
  color: var(--color-secondary);
  font-size: var(--type-body-sm-size);
  line-height: var(--type-body-sm-line);
}

.section-rule {
  border: 0;
  border-top: 1px solid var(--color-separator);
  margin: var(--space-xl) 0 var(--space-lg);
}

/* ---- forms --------------------------------------------------------------- */
.field { margin-bottom: var(--space-md); }

.label {
  display: block;
  font-size: var(--type-label-caps-size);
  font-weight: var(--type-label-caps-weight);
  line-height: var(--type-label-caps-line);
  letter-spacing: var(--type-label-caps-tracking);
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-xs);
}

.input, .select {
  width: 100%;
  height: var(--input-height);
  background: var(--input-background-color);
  color: var(--input-text-color);
  border: 1px solid transparent;   /* no resting border; reserved so focus never shifts layout */
  border-radius: var(--radius-none);
  padding: 0 var(--space-sm);
  font-family: inherit;
  font-size: var(--type-body-lg-size);
  font-weight: 400;
  letter-spacing: var(--type-body-lg-tracking);
  transition: border-color var(--motion-fast) var(--ease-default);
}
.input::placeholder { color: var(--color-secondary); font-weight: 400; }
.input:focus, .select:focus { border-color: var(--color-primary); }
.input[aria-invalid='true'], .select[aria-invalid='true'] { border-color: var(--color-error); }

.select {
  appearance: none;
  padding-right: var(--space-xl);
  /* Caret drawn with tokens, not an image: a 1px line chevron. */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-primary) 50%),
    linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
  background-position: right 18px center, right 12px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Error text occupies reserved space at all times — no layout shift. */
.field__error {
  display: block;
  min-height: 18px;
  margin-top: var(--space-xs);
  font-size: var(--type-body-sm-size);
  line-height: 1.4;
  color: var(--color-error);
}
.field__hint {
  display: block;
  min-height: 18px;
  margin-top: var(--space-xs);
  font-size: var(--type-body-sm-size);
  line-height: 1.4;
  color: var(--color-secondary);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--space-md); }
@media (max-width: 560px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* Checkbox + radio rows: square controls, 44px hit area. */
.check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 28px;
  cursor: pointer;
  font-size: var(--type-body-md-size);
}
.check input {
  width: 18px; height: 18px;
  accent-color: var(--color-primary);
  border-radius: var(--radius-none);
  margin: 0;
  flex: none;
}
.check-list { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 44px;
  border-top: 1px solid var(--color-separator);
  padding-top: var(--space-sm);
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--button-primary-height);
  padding: 2px var(--button-primary-padding) 0;
  border: 0;
  border-radius: var(--radius-none);
  font-family: inherit;
  font-size: var(--type-body-md-size);
  font-weight: 500;
  letter-spacing: var(--type-body-md-tracking);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--motion-micro) var(--ease-default),
              color var(--motion-micro) var(--ease-default);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn--primary {
  background: var(--button-primary-background-color);
  color: var(--button-primary-text-color);
}
.btn--primary:hover:not(:disabled) { background: var(--button-primary-hover-background-color); }

/* The single accent-filled element on the provision screen. Nothing else there
 * may be accent — see DESIGN.md "at most one accent-filled element". */
.btn--accent {
  background: var(--button-accent-background-color);
  color: var(--button-accent-text-color);
}
.btn--accent:hover:not(:disabled) { background: var(--button-accent-hover-background-color); }

.btn--gray {
  background: var(--button-gray-background-color);
  color: var(--button-gray-text-color);
}
.btn--gray:hover:not(:disabled) { background: var(--color-line); }

.btn--ghost {
  background: var(--button-ghost-background-color);
  color: var(--button-ghost-text-color);
  border: 1px solid var(--color-line);
}
.btn--ghost:hover:not(:disabled) { color: var(--color-primary); }

.btn-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ---- pills: square outline + circular status dot ------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-none);
  padding: 4px var(--space-sm) 3px;
  font-size: var(--type-label-caps-size);
  font-weight: var(--type-label-caps-weight);
  letter-spacing: var(--type-label-caps-tracking);
  text-transform: uppercase;
  color: var(--color-secondary);
  white-space: nowrap;
}
/* The dot is the one permitted circle. Status is ALSO carried by the text
 * label beside it — colour is never the only carrier. */
.pill__dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-line);
  flex: none;
}
.pill--running { border-color: var(--color-warning); color: var(--color-warning); }
.pill--running .pill__dot { background: var(--color-warning); animation: pulse 1.2s var(--ease-default) infinite; }
.pill--ok { border-color: var(--color-success); color: var(--color-success); }
.pill--ok .pill__dot { background: var(--color-success-fill); }
.pill--failed { border-color: var(--color-error); color: var(--color-error); }
.pill--failed .pill__dot { background: var(--color-error); }
.pill--unknown { border-color: var(--color-warning); color: var(--color-warning); }
.pill--unknown .pill__dot { background: var(--color-warning); }
.pill--skipped, .pill--pending, .pill--planned { color: var(--color-secondary); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---- step list ----------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-separator);
}
.step:first-child { border-top: 0; }
.step__n {
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--type-numeric-feature);
  color: var(--color-secondary);
  font-size: var(--type-body-sm-size);
}
.step__title { font-size: var(--type-body-md-size); font-weight: 500; }
.step__time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--type-numeric-feature);
  font-size: var(--type-body-sm-size);
  color: var(--color-secondary);
  min-width: 64px;
  text-align: right;
}
.step__detail {
  grid-column: 1 / -1;
  margin: var(--space-xs) 0 0;
  padding: var(--space-sm);
  background: var(--color-canvas);
  border-left: 2px solid var(--color-error);
  font-family: var(--font-mono);
  font-size: var(--type-body-sm-size);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.step__detail--plain { border-left-color: var(--color-line); }

/* ---- code / plan blocks -------------------------------------------------- */
.code {
  margin: 0;
  padding: var(--space-sm);
  background: var(--color-canvas);
  border: 1px solid var(--color-separator);
  font-family: var(--font-mono);
  font-size: var(--type-body-sm-size);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.plan-step { border-top: 1px solid var(--color-separator); padding: var(--space-md) 0; }
.plan-step:first-of-type { border-top: 0; padding-top: 0; }
.plan-step__head {
  display: flex; align-items: center; gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.method {
  font-size: var(--type-label-caps-size);
  font-weight: var(--type-label-caps-weight);
  letter-spacing: var(--type-label-caps-tracking);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3px var(--space-xs) 2px;
}

/* ---- result fields ------------------------------------------------------- */
.result-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-separator);
}
.result-field:first-of-type { border-top: 0; }
.result-field__value {
  font-family: var(--font-mono);
  font-size: var(--type-body-sm-size);
  word-break: break-all;
  color: var(--color-primary);
}
.result-field__label {
  font-size: var(--type-label-caps-size);
  font-weight: var(--type-label-caps-weight);
  letter-spacing: var(--type-label-caps-tracking);
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 2px;
}
.notice {
  border: 1px solid var(--color-line);
  border-left: 2px solid var(--color-warning);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--type-body-sm-size);
  margin-bottom: var(--space-lg);
}
.notice--error { border-left-color: var(--color-error); }
.notice--ok { border-left-color: var(--color-success); }

/* ---- tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
thead th {
  text-align: left;
  font-size: var(--type-label-caps-size);
  font-weight: var(--type-label-caps-weight);
  letter-spacing: var(--type-label-caps-tracking);
  text-transform: uppercase;
  color: var(--color-secondary);
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-separator);
  white-space: nowrap;
}
tbody td {
  font-size: var(--type-body-sm-size);
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-separator);
  vertical-align: middle;
}
/* No zebra stripes; row hover tints canvas. */
tbody tr { transition: background-color var(--motion-micro) var(--ease-default); }
tbody tr:hover { background: var(--color-canvas); }
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--type-numeric-feature);
  white-space: nowrap;
}
.mono { font-family: var(--font-mono); }

a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-md); margin-bottom: var(--space-lg); }
.filters .field { margin-bottom: 0; min-width: 180px; }
.filters .field__error, .filters .field__hint { display: none; }

/* ---- busy overlay: glass + spinner + a verb ------------------------------ */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--color-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.overlay[hidden] { display: none; }
.overlay__card {
  background: var(--color-surface);
  border: 1px solid var(--color-separator);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 356px;
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--color-gray);
  border-top-color: var(--color-accent);
  border-radius: var(--radius-full);
  animation: spin 700ms linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay__verb { font-size: var(--type-body-md-size); font-weight: 500; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- reduced motion: degrade to opacity swaps ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .spinner { animation: none; border-top-color: var(--color-accent); opacity: 0.6; }
  .pill--running .pill__dot { animation: none; }
}

/* Lets a <form> wrapper disappear from layout so its button sits in the flex
 * row directly. A class, not an inline style: the CSP forbids inline styles. */
.contents { display: contents; }

/* ---- derived, read-only values ------------------------------------------- */
/* Not inputs: these are computed from the company name and enforced
 * server-side. Rendered on canvas so they read as output, not as a control the
 * operator can type into. */
.derived {
  background: var(--color-canvas);
  border: 1px solid var(--color-separator);
  padding: var(--space-md);
}
.derived__heading {
  font-size: var(--type-label-caps-size);
  font-weight: var(--type-label-caps-weight);
  line-height: var(--type-label-caps-line);
  letter-spacing: var(--type-label-caps-tracking);
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 var(--space-sm);
}
.derived__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--space-md);
  align-items: baseline;
  padding: var(--space-xs) 0;
  border-top: 1px solid var(--color-separator);
}
.derived__row:first-of-type { border-top: 0; }
.derived__label {
  font-size: var(--type-body-sm-size);
  color: var(--color-secondary);
}
.derived__value {
  font-family: var(--font-mono);
  font-size: var(--type-body-sm-size);
  color: var(--color-primary);
  word-break: break-all;
}
@media (max-width: 560px) {
  .derived__row { grid-template-columns: 1fr; gap: 0; }
}

/* ---- photo dropzone ------------------------------------------------------ */
/* A 1px dashed separator, not a shadowed card: hierarchy stays line-based.
 * Square, per the radius-0 rule. */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 96px;
  padding: var(--space-lg);
  background: var(--color-canvas);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-none);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--motion-fast) var(--ease-default),
              background-color var(--motion-fast) var(--ease-default);
}
.dropzone:hover { border-color: var(--color-primary); }
/* Drag-over is the one moment the zone is the active target, so it takes the
 * accent — the submit button is not on screen focus at that point. */
.dropzone--active {
  border-color: var(--color-accent);
  border-style: solid;
  background: var(--color-surface);
}
.dropzone__title {
  font-size: var(--type-body-md-size);
  font-weight: 500;
}
.dropzone__hint {
  font-size: var(--type-body-sm-size);
  color: var(--color-secondary);
}

.photo-list { list-style: none; margin: var(--space-sm) 0 0; padding: 0; }
.photo-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto auto;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-separator);
}
.photo-row:first-child { border-top: 0; }
.photo-row__name {
  font-size: var(--type-body-sm-size);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-row__size {
  font-size: var(--type-body-sm-size);
  color: var(--color-secondary);
}
.photo-row__remove { height: 32px; padding: 0 var(--space-sm); font-size: var(--type-body-sm-size); }
@media (max-width: 560px) {
  .photo-row { grid-template-columns: 56px 1fr auto; }
}

/* ---- photo thumbnails + enlarged preview --------------------------------- */
/* Square, 1px separator border, no radius and no shadow — a thumbnail is a
 * surface step, not a floating card. */
.photo-row__thumb {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-separator);
  border-radius: var(--radius-none);
  background: var(--color-canvas);
  cursor: zoom-in;
  overflow: hidden;
  display: block;
  transition: border-color var(--motion-micro) var(--ease-default);
}
.photo-row__thumb:hover { border-color: var(--color-primary); }
.photo-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay__card--preview {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: min(900px, 92vw);
  padding: 0;
}
.preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  /* 2px separator under a modal header, per DESIGN.md. */
  border-bottom: 2px solid var(--color-separator);
}
.preview__name {
  font-size: var(--type-body-sm-size);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview__close { height: 32px; padding: 0 var(--space-md); font-size: var(--type-body-sm-size); }
.preview__image {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: var(--color-canvas);
}

/* ---- uploaded photo grid on the job page --------------------------------- */
.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-md);
}
.photo-grid__item { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.photo-grid__image,
.photo-grid__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-separator);
  border-radius: var(--radius-none);
  background: var(--color-canvas);
  object-fit: cover;
  display: block;
}
/* Shown when the bytes are gone: the run succeeded and they were discarded. */
.photo-grid__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--type-label-caps-size);
  font-weight: var(--type-label-caps-weight);
  letter-spacing: var(--type-label-caps-tracking);
  text-transform: uppercase;
  color: var(--color-secondary);
}
.photo-grid__name {
  font-size: var(--type-body-sm-size);
  color: var(--color-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- stats: hero figures ------------------------------------------------- */
/* DESIGN.md "Stats": display-role numerals, label-caps captions. */
.stat { display: flex; flex-direction: column; gap: var(--space-xs); }
.stat__value {
  font-size: var(--type-display-size);
  font-weight: var(--type-display-weight);
  line-height: var(--type-display-line);
  letter-spacing: var(--type-display-tracking);
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--type-numeric-feature);
}
.stat__value--sm { font-size: var(--type-h2-size); font-weight: var(--type-h2-weight); }
.stat__caption {
  font-size: var(--type-label-caps-size);
  font-weight: var(--type-label-caps-weight);
  letter-spacing: var(--type-label-caps-tracking);
  text-transform: uppercase;
  color: var(--color-secondary);
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-separator);
}

/* ---- charts -------------------------------------------------------------- */
/* Every colour is a token: no fill or stroke attribute carries a literal. */
.chart { position: relative; }
.chart__svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Grid and axes are pale and recessive — DESIGN.md gives `pale` exactly this
 * job: "diagrams, scan grids, chart axes, inactive data lines". */
.chart__grid { stroke: var(--color-pale); stroke-width: 1; }
.chart__axis-label {
  fill: var(--color-secondary);
  font-size: 11px;
  font-family: var(--font-family);
  font-variant-numeric: tabular-nums;
}

/* The one active path. This is the single accent element on the stats screen. */
.chart__line { stroke: var(--color-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--color-accent); }

.chart__crosshair { stroke: var(--color-line); stroke-width: 1; pointer-events: none; }
.chart__crosshair[hidden] { display: none; }
.chart__hit { fill: transparent; cursor: crosshair; }

.chart__tooltip {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 6px var(--space-sm) 4px;
  font-size: var(--type-body-sm-size);
  white-space: nowrap;
  pointer-events: none;
  border-radius: var(--radius-none);
}
.chart__tooltip[hidden] { display: none; }

/* Bars: magnitude by length. One neutral ink for every bar — colour carries no
 * information here, so it must not vary. */
.chart__bar { fill: var(--color-primary); }
.chart__bar-label,
.chart__bar-value {
  font-family: var(--font-family);
  font-size: 12px;
  fill: var(--color-primary);
}
.chart__bar-label { fill: var(--color-secondary); }
.chart__bar-value { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .chart__hit { cursor: default; }
}

/* The still-accumulating final period: dashed segment, hollow dot. Reading it
 * as a drop would be wrong, so it is drawn as visibly unfinished. */
.chart__line--partial { stroke-dasharray: 4 3; }
.chart__dot--partial { fill: var(--color-surface); stroke: var(--color-accent); stroke-width: 2; }
