@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Geist-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/Geist-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Geist-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/GeistMono-Medium.woff2") format("woff2");
}

:root {
  /* surface */
  --bg:           #14110d;
  --surface:      #1e1a14;
  --surface-elev: #2a241c;
  --border:       #3a3128;
  --hairline:     #2a241c;

  /* text */
  --text:         #f0e6d6;
  --text-2:       #a89784;
  --text-faint:   #6b5d50;

  /* accent */
  --accent:       #e89752;
  --accent-deep:  #c47a35;
  --accent-soft:  #e8975222;

  /* chart series */
  --pressure:     #e89752;
  --flow:         #7ba896;
  --weight:       #c9b890;
  --temperature:  #6b8caa;

  /* state */
  --success:      #7ba896;
  --warn:         #e8a23c;
  --danger:       #d96650;

  /* spacing rhythm */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* type */
  --font-sans: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

/* ─── reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;

  background-image:
    radial-gradient(ellipse 800px 600px at 20% -10%, #1e1a1488 0%, transparent 60%),
    radial-gradient(ellipse 600px 800px at 110% 50%, #1e1a1466 0%, transparent 60%);
}

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

/* ─── header ─── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-5) var(--s-7);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: var(--s-3); }
.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.brand-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand-name:hover { text-decoration: none; color: var(--accent); }
.site-nav { display: flex; gap: var(--s-6); }
.site-nav a {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current] { color: var(--accent); }

/* ─── eyebrow / labels ─── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-5);
}

/* ─── styleguide page ─── */
main.styleguide {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--s-9) var(--s-7);
}
.styleguide-hero { margin-bottom: var(--s-9); }
.styleguide-hero h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-5);
}
.styleguide-hero .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 56ch;
  margin: 0;
}
.sg-section {
  margin-bottom: var(--s-9);
  padding-top: var(--s-7);
  border-top: 1px solid var(--hairline);
}
.sg-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--s-5);
  align-items: baseline;
  margin-bottom: var(--s-7);
}
.sg-section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  grid-row: 1 / 3;
}
.sg-section-head h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.018em;
  margin: 0;
  line-height: 1;
}
.sg-section-desc {
  margin: var(--s-3) 0 0;
  color: var(--text-2);
  max-width: 56ch;
  font-size: 15px;
}
.sg-h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: var(--s-7) 0 var(--s-4);
}
.sg-h3:first-child { margin-top: 0; }

/* swatches */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-3);
}
.swatch {
  background: var(--c);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  padding: var(--s-5);
  height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.swatch[data-on-light] { color: var(--bg); }
.swatch[data-on-light] .swatch-name,
.swatch[data-on-light] .swatch-hex { color: var(--bg); }
.swatch-name { font-size: 12px; font-weight: 500; color: var(--text); }
.swatch-hex {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin-top: 2px;
}

/* type stack */
.type-stack > .type-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: baseline;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px dashed var(--hairline);
}
.type-stack > .type-row:last-child { border-bottom: none; }
.type-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.type-display { font-family: var(--font-sans); font-weight: 600; font-size: 64px; line-height: 1; letter-spacing: -0.025em; margin: 0; }
.type-h1      { font-family: var(--font-sans); font-weight: 500; font-size: 32px; line-height: 1.2; letter-spacing: -0.018em; margin: 0; }
.type-h2      { font-family: var(--font-sans); font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -0.012em; margin: 0; }
.type-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0; }
.type-body    { font-family: var(--font-sans); font-weight: 400; font-size: 16px; line-height: 1.6; margin: 0; color: var(--text); max-width: 60ch; }
.type-mono    { font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; color: var(--text); margin: 0; }

/* ─── shot card / thumb ─── */
.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.shot-card,
.thumb-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, transform 180ms ease;
}
.shot-card:hover,
.thumb-card:hover {
  border-color: var(--text-faint);
  text-decoration: none;
}
.shot-card svg,
.thumb-card svg { display: block; width: 100%; height: auto; }
.thumb-meta {
  padding: var(--s-3) var(--s-4) var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.thumb-profile {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.thumb-time {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* shot card with rating row */
.shot-card-body {
  padding: var(--s-3) var(--s-4) var(--s-4);
}
.shot-card-line-1 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-2);
}
.shot-card-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.shot-card-time {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.shot-card-line-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 14px;
}

/* ─── full chart card ─── */
.full-chart-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-6) var(--s-5);
  position: relative;
  overflow: hidden;
}
.full-chart-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #ffffff0c, transparent);
  pointer-events: none;
}
.chart-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-5);
}
.chart-card-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.012em;
  margin: 0;
}
.chart-card-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.full-chart-card svg.full-chart {
  display: block;
  width: 100%;
  height: auto;
}
.chart-legend {
  display: flex;
  gap: var(--s-6);
  padding-top: var(--s-4);
  margin-top: var(--s-3);
  border-top: 1px solid var(--hairline);
}
.chart-legend-item { display: flex; align-items: center; gap: var(--s-2); }
.chart-legend-dash {
  display: inline-block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
}
.chart-legend-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 500;
}

/* ─── form ─── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--s-6);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.form-row:last-of-type { margin-bottom: 0; }
.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.form-input,
.form-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: border-color 120ms ease, background 120ms ease;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: #1a1611;
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: var(--font-sans);
  line-height: 1.55;
}

/* rating dots — no stars */
.rating { display: inline-flex; gap: var(--s-2); }
.rating-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: inline-block;
}
.rating-dot.on {
  background: var(--accent);
  border-color: var(--accent);
}
.rating[data-readonly] .rating-dot { cursor: default; }

/* radio rating widget (CSS-only) */
.rating-input {
  display: inline-flex;
  gap: var(--s-2);
  direction: rtl;
}
.rating-input input { display: none; }
.rating-input label {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 120ms ease;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  background: var(--accent);
  border-color: var(--accent);
}

/* favorite glyph */
.favorite-glyph {
  width: 14px;
  height: 14px;
  display: inline-block;
  position: relative;
}
.favorite-glyph::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--text-faint);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.favorite-glyph.on::before { background: var(--accent); }

.favorite-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  cursor: pointer;
}
.favorite-toggle.on .favorite-glyph::before { background: var(--accent); }

/* ─── buttons ─── */
.btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: var(--s-3) var(--s-5);
  background: var(--accent);
  color: #1a0f04;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-faint);
  background: transparent;
}

/* meta dl */
.meta-dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: var(--s-3);
  column-gap: var(--s-5);
  margin: 0;
}
.meta-dl dt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  align-self: center;
}
.meta-dl dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

/* ─── index page (front page wall) ─── */
main.index {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--s-9) var(--s-7);
}
.index-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-5);
  margin-bottom: var(--s-9);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--hairline);
}
.index-title-block h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.028em;
  margin: 0;
}
.index-stats {
  display: flex;
  gap: var(--s-7);
  text-align: right;
  align-items: end;
}
.index-stat-block {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.index-stat-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 28px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.01em;
}
.index-stat-num .unit {
  font-size: 13px;
  color: var(--text-faint);
  margin-left: 2px;
}
.index-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: var(--s-2);
}

/* day section header — like a journal entry divider */
.day-divider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-5);
  margin: var(--s-8) 0 var(--s-5);
}
.day-divider:first-of-type { margin-top: 0; }
.day-divider-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.day-divider-line {
  height: 1px;
  background: var(--hairline);
}
.day-divider-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-4);
}

/* empty state */
.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-9) var(--s-7);
  text-align: center;
  color: var(--text-2);
  margin: var(--s-9) 0;
}
.empty-state h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 24px;
  color: var(--text);
  margin: 0 0 var(--s-3);
}
.empty-state p { margin: 0; max-width: 40ch; margin-inline: auto; }

/* ─── shot detail page ─── */
main.shot-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--s-9) var(--s-7);
}
.detail-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline);
}
.detail-title-block .eyebrow { margin-bottom: var(--s-3); }
.detail-title-block h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.022em;
  margin: 0;
}
.detail-meta-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: flex-end;
}
.detail-meta-mono .duration {
  font-size: 28px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  line-height: 1;
}
.detail-meta-mono .duration .unit {
  font-size: 13px;
  color: var(--text-faint);
  margin-left: 2px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-4);
}
.detail-back:hover { color: var(--text); text-decoration: none; }
.detail-back::before { content: "←"; font-size: 14px; }

/* stats strip below the chart */
.detail-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-5);
  margin: var(--s-6) 0 var(--s-7);
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: #18140f;
}
.detail-stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  border-right: 1px solid var(--hairline);
  padding-right: var(--s-5);
}
.detail-stat:last-child { border-right: none; padding-right: 0; }
.detail-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.detail-stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.detail-stat-value .unit {
  font-size: 12px;
  color: var(--text-faint);
  margin-left: 2px;
  font-weight: 400;
}

/* split: notes / form left, profile/dl right */
.detail-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  margin-top: var(--s-7);
}

.detail-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 var(--s-4);
}

.profile-snapshot {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--s-6);
}

/* detail single-column form (no profile snapshot) */
.detail-form-single {
  max-width: 640px;
  margin-top: var(--s-7);
}

/* spec grid (used on styleguide) */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
.spec-grid h3.sg-h3 { margin-top: 0; }

/* misc */
.fine { color: var(--text-faint); font-size: 13px; font-style: italic; }
.tabular { font-variant-numeric: tabular-nums; }

/* footer */
.site-footer {
  margin-top: var(--s-9);
  padding: var(--s-6) var(--s-7);
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.site-footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}

/* responsive */
@media (max-width: 720px) {
  .site-header { padding: var(--s-4) var(--s-5); }
  main.styleguide,
  main.index,
  main.shot-detail { padding: var(--s-7) var(--s-5); }
  .index-header,
  .detail-header { grid-template-columns: 1fr; }
  .index-stats { justify-content: flex-start; text-align: left; }
  .detail-meta-mono { text-align: left; align-items: flex-start; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .detail-stat { border-right: none; padding-right: 0; }
  .detail-split { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .thumb-row { grid-template-columns: 1fr; }
}

/* ─── interactive chart ─── */
.chart-wrap { position: relative; cursor: crosshair; }
.chart-wrap canvas { display: block; width: 100%; height: auto; }
.chart-wrap .crosshair {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--border); pointer-events: none; display: none;
}
.chart-wrap .hover-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid; background: var(--surface);
  transform: translate(-50%, -50%); pointer-events: none; display: none;
}
.chart-legend-bar {
  display: flex; gap: 28px; padding: 14px 24px 16px;
  border-top: 1px solid var(--hairline); flex-wrap: wrap;
}
.chart-legend-bar .leg-item { display: flex; align-items: center; gap: 8px; cursor: default; }
.chart-legend-bar .leg-swatch { width: 22px; height: 2px; border-radius: 1px; flex-shrink: 0; }
.chart-legend-bar .leg-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-2); font-weight: 500;
}
.chart-legend-bar .leg-item:hover .leg-label { color: var(--text); }
.chart-legend-bar .leg-val {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--text-faint); font-variant-numeric: tabular-nums;
  min-width: 60px; text-align: right;
}
.chart-legend-bar .leg-time {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; color: var(--text-faint); margin-left: auto;
  font-variant-numeric: tabular-nums;
}
