/*
 * TV display. Designed for a 16:9 screen viewed from a distance: everything scales with the
 * viewport (1vw ≈ 19px on a 1920px-wide TV), so the same page fills a 32" or a 65" screen.
 *
 * Visual language: quiet and premium. Neutral paper background, white cards with hairline
 * borders, ink-coloured numbers, one accent (indigo) for data. Status colour is used only in
 * small doses (a dot, a badge, a progress bar), never to paint whole numbers or cards:
 *   good = on track, warn = watch, bad = at risk.
 */
:root {
  --bg: #f4f4f1;
  --panel: #ffffff;
  --panel-2: #fafaf8;
  --line: #e8e6e1;
  --line-strong: #dad7d0;
  --text: #15171c;
  --text-2: #3a3e47;
  --muted: #858a94;
  --accent: #3f51d8;
  --accent-2: #3f51d8;
  --accent-soft: #eef0fc;
  --ink: #15171c;

  --good: #1f9d6a;
  --good-text: #17784f;
  --good-soft: #e9f6ef;
  --warn: #d99a1e;
  --warn-text: #9a6a0c;
  --warn-soft: #fbf3e2;
  --bad: #d64b45;
  --bad-text: #a8352f;
  --bad-soft: #fbecea;
  --gold: #b58612;
  --gold-soft: #fbf5e6;
  --gold-line: #efe2bf;
  --track: #efede8;
  --bar-muted: #dedbd4;
  --grid: #eeece7;

  --shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 0.3vw 1.2vw rgba(21, 23, 28, 0.035);
  --gap: 0.9vw;
  --radius: 0.75vw;
  font-family:
    Inter,
    'SF Pro Display',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    sans-serif;
  font-feature-settings:
    'tnum' 1,
    'cv11' 1,
    'ss01' 1;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/*
 * Dark theme (?theme=dark, or ?theme=auto outside office hours): less glare in a dim room and
 * less wear on the panel. --ink is the hero tile / primary button colour, so it becomes indigo.
 */
:root[data-theme='dark'] {
  --bg: #0d0f13;
  --panel: #161920;
  --panel-2: #1c2028;
  --line: #262a33;
  --line-strong: #353a46;
  --text: #eceef2;
  --text-2: #c3c7cf;
  --muted: #8d939e;
  --accent: #8b98f7;
  --accent-2: #8b98f7;
  --accent-soft: #22264a;
  --ink: #3b4bd0;

  --good: #34c08a;
  --good-text: #6fd8ab;
  --good-soft: rgba(52, 192, 138, 0.14);
  --warn: #e8b03e;
  --warn-text: #f0c56a;
  --warn-soft: rgba(232, 176, 62, 0.14);
  --bad: #ef6b64;
  --bad-text: #f39a94;
  --bad-soft: rgba(239, 107, 100, 0.14);
  --gold: #e3b341;
  --gold-soft: rgba(227, 179, 65, 0.14);
  --gold-line: rgba(227, 179, 65, 0.35);
  --track: #232731;
  --bar-muted: #343a47;
  --grid: #232731;

  --shadow: none;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
}

body {
  font-size: clamp(12px, 0.9vw, 28px);
  cursor: none;
}

body.pointer {
  cursor: default;
}

.hidden {
  display: none !important;
}

/* ---------- frame ---------- */

.screen {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--gap);
  padding: 1.2vw 1.5vw 0.8vw;
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1vw;
  padding-bottom: 0.2vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8vw;
}

.brand-mark {
  width: 2.5vw;
  height: 2.5vw;
  border-radius: 0.55vw;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9vw;
  letter-spacing: 0.02em;
}

.brand-title {
  font-size: 1.55vw;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-title span {
  color: var(--muted);
  font-weight: 500;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.9vw;
  margin-top: 0.1vw;
  letter-spacing: 0.01em;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 0.7vw;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45vw;
  padding: 0.35vw 0.85vw;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.9vw;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.pill .dot {
  width: 0.5vw;
  height: 0.5vw;
  border-radius: 50%;
  background: currentColor;
}

.pill.good .dot {
  background: var(--good);
  box-shadow: 0 0 0 0.18vw rgba(31, 157, 106, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

.pill.warn .dot {
  background: var(--warn);
}

.pill.bad .dot {
  background: var(--bad);
}

.pill.good,
.pill.warn,
.pill.bad {
  color: var(--text);
  letter-spacing: 0.06em;
  font-size: 0.85vw;
  font-weight: 700;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 0.32vw rgba(31, 157, 106, 0.04);
  }
}

.clock {
  text-align: right;
  padding-left: 0.4vw;
}

.clock-time {
  font-size: 1.5vw;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.clock-date {
  color: var(--muted);
  font-size: 0.9vw;
}

.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8vw;
  letter-spacing: 0.01em;
}

/* ---------- panels ---------- */

.board {
  display: grid;
  gap: var(--gap);
  min-height: 0;
  grid-template-rows: auto 1fr 1fr;
}

.row {
  display: grid;
  gap: var(--gap);
  min-height: 0;
}

.kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Disbursement shows five KPI cards. */
.kpis-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: 1.05fr 1.5fr 1fr;
}

.cols-3b {
  grid-template-columns: 1fr 1fr 1fr;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85vw 1.1vw;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6vw;
  margin-bottom: 0.5vw;
}

.panel-title {
  font-size: 1.1vw;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.tag {
  font-size: 0.75vw;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0.15vw 0.5vw;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.kpi-label {
  color: var(--muted);
  font-size: 0.8vw;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kpi-value {
  font-size: 2.15vw;
  font-weight: 650;
  margin-top: 0.45vw;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: var(--text);
}

.kpi-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25vw 0.5vw;
  color: var(--muted);
  font-size: 0.85vw;
  margin-top: auto;
  padding-top: 0.4vw;
  line-height: 1.35;
}

/* ---------- KPI tiles: neutral cards; the hero tile is ink ---------- */

.kpi {
  position: relative;
}

.kpi.accent {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0.4vw 1.4vw rgba(21, 23, 28, 0.18);
}

.kpi.accent .kpi-label {
  color: rgba(255, 255, 255, 0.55);
}

.kpi.accent .kpi-value {
  color: #fff;
}

.kpi.accent .kpi-sub {
  color: rgba(255, 255, 255, 0.6);
}

/* Status badge: a dot and a word, small and quiet (On track / Watch / At risk). */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3vw;
  font-size: 0.75vw;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 0.12vw 0.5vw 0.12vw 0.4vw;
  border-radius: 999px;
  white-space: nowrap;
}

.chip::before {
  content: '';
  width: 0.38vw;
  height: 0.38vw;
  border-radius: 50%;
  background: currentColor;
}

.chip.good {
  color: var(--good-text);
  background: var(--good-soft);
}

.chip.warn {
  color: var(--warn-text);
  background: var(--warn-soft);
}

.chip.bad {
  color: var(--bad-text);
  background: var(--bad-soft);
}

.kpi.accent .chip {
  background: rgba(255, 255, 255, 0.1);
}

.kpi.accent .chip.good {
  color: #7fdcb2;
}

.kpi.accent .chip.warn {
  color: #f2c86b;
}

.kpi.accent .chip.bad {
  color: #f19a95;
}

/* Status next to a figure outside tiles: a small dot before the value, the value stays ink. */
.line strong.tone-good::before,
.line strong.tone-warn::before,
.line strong.tone-bad::before {
  content: '';
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  margin-right: 0.45em;
  vertical-align: 0.15em;
}

.tone-good::before {
  background: var(--good);
}

.tone-warn::before {
  background: var(--warn);
}

.tone-bad::before {
  background: var(--bad);
}

.big {
  font-size: 2.7vw;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-top: 0.2vw;
}

.big.tone-good,
.big.tone-warn,
.big.tone-bad {
  color: var(--text);
}

.bar {
  flex: none;
  height: 0.4vw;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.45vw 0;
}

.bar > div {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.8s ease;
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 0.6vw;
  font-size: 0.9vw;
  color: var(--muted);
}

.split strong {
  color: var(--text);
  font-weight: 600;
}

.lines {
  display: flex;
  flex-direction: column;
  margin-top: 0.3vw;
}

.line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8vw;
  border-top: 1px solid var(--line);
  padding: 0.38vw 0;
  font-size: 0.95vw;
}

.line span {
  color: var(--text-2);
}

.line strong {
  font-size: 1.25vw;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.note {
  color: var(--muted);
  font-size: 0.8vw;
  margin-top: auto;
  padding-top: 0.5vw;
  line-height: 1.4;
}

.chart {
  flex: 1;
  min-height: 0;
  position: relative;
}

/* Drawn at the box's pixel size; absolute so the SVG never feeds back into the layout. */
.chart svg {
  position: absolute;
  inset: 0;
  display: block;
}

.chart .grid {
  stroke: var(--grid);
  stroke-dasharray: 3 4;
}

.chart .axis {
  fill: var(--muted);
}

.chart .axis.today {
  fill: var(--text);
  font-weight: 700;
}

.chart .col {
  fill: var(--bar-muted);
}

.chart .col.met {
  fill: var(--good);
  opacity: 0.55;
}

.chart .col.today {
  fill: var(--ink);
}

:root[data-theme='dark'] .chart .col.today {
  fill: var(--accent);
}

.chart .target {
  stroke: var(--good);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.chart .target-label {
  fill: var(--good-text);
  font-weight: 650;
  paint-order: stroke;
  stroke: var(--panel);
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* Context under a trend: yesterday, average day, best day. */
.stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.8vw;
  border-top: 1px solid var(--line);
  margin-top: 0.5vw;
  padding-top: 0.6vw;
}

.stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.stat span {
  color: var(--muted);
  font-size: 0.75vw;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat strong {
  font-size: 1.15vw;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-top: 0.15vw;
}

.sub-head {
  margin-top: auto;
  padding-top: 0.8vw;
}

/* Single-row views (team spotlight, trend) fill the screen. */
.board.single {
  grid-template-rows: minmax(0, 1fr);
}

.trend-view .stats {
  padding-top: 1vw;
}

.trend-view .stat span {
  font-size: 0.95vw;
}

.trend-view .stat strong {
  font-size: 2vw;
}

/* A figure that changed on the last refresh glows briefly. */
.changed {
  animation: changed 1.8s ease-out;
}

@keyframes changed {
  0%,
  25% {
    color: var(--good);
  }
}

.kpi.accent .kpi-value.changed {
  animation-name: changed-hero;
}

@keyframes changed-hero {
  0%,
  25% {
    color: #7fdcb2;
  }
}

/* ---------- celebration overlay ---------- */

.celebrate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(13, 15, 19, 0.55);
  animation: fade 0.5s ease;
  overflow: hidden;
}

.celebrate.out {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.celebrate-card {
  position: relative;
  text-align: center;
  background: var(--panel);
  color: var(--text);
  border-radius: 1.4vw;
  padding: 2.6vw 4vw;
  max-width: 60vw;
  box-shadow: 0 1vw 4vw rgba(0, 0, 0, 0.35);
  animation: pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.celebrate-mark {
  font-size: 4vw;
  line-height: 1;
  color: var(--gold);
}

.celebrate-title {
  font-size: 3.2vw;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0.8vw;
}

.celebrate-text {
  font-size: 1.4vw;
  color: var(--text-2);
  margin-top: 0.6vw;
}

.confetti i {
  position: absolute;
  top: -3vh;
  width: 0.7vw;
  height: 1.2vw;
  border-radius: 0.15vw;
  opacity: 0.9;
  animation: confetti 3.2s linear infinite;
}

.confetti i:nth-child(3n) {
  width: 0.9vw;
  height: 0.9vw;
  border-radius: 50%;
  animation-duration: 3.8s;
}

@keyframes confetti {
  to {
    transform: translateY(110vh) rotate(720deg);
  }
}

@keyframes pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .confetti {
    display: none;
  }
}

.bucket {
  margin-bottom: 0.7vw;
}

.bucket-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.95vw;
  color: var(--text-2);
}

.bucket-top strong {
  color: var(--text);
  font-weight: 600;
}

.bucket .bar {
  margin: 0.35vw 0 0;
  height: 0.35vw;
}

/* ---------- people ---------- */

.person {
  display: flex;
  align-items: center;
  gap: 0.8vw;
  padding: 0.5vw 0;
  border-bottom: 1px solid var(--line);
}

.person:last-of-type {
  border-bottom: 0;
}

.avatar {
  width: 2.5vw;
  height: 2.5vw;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 0.9vw;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  flex: none;
}

.avatar.star {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold);
  font-size: 1.2vw;
}

.avatar.rank {
  font-size: 0.85vw;
}

.top-performers {
  padding-top: 0.4vw;
}

.top-performers .person {
  padding: 0.3vw 0;
}

.top-performers .person:not(.top-1) .avatar {
  width: 2.2vw;
  height: 2.2vw;
  margin: 0 0.3vw;
}

.top-performers .person:not(.top-1) .person-name {
  font-size: 0.95vw;
}

.person-role {
  color: var(--muted);
  font-size: 0.78vw;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.person-name {
  font-size: 1.2vw;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-top: 0.1vw;
}

.person-name.placeholder {
  color: var(--muted);
  font-weight: 500;
  font-style: normal;
}

.person-meta {
  color: var(--muted);
  font-size: 0.85vw;
}

.leader {
  display: grid;
  grid-template-columns: 2vw 1fr auto;
  gap: 0.6vw;
  align-items: center;
  padding: 0.42vw 0;
  border-top: 1px solid var(--line);
  font-size: 1vw;
  color: var(--text-2);
}

.leader .rank {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9vw;
}

.leader:nth-of-type(1) .rank {
  color: var(--gold);
}

.leader strong {
  color: var(--text);
  font-weight: 600;
}

.empty {
  color: var(--muted);
  font-size: 1vw;
  margin: auto;
  text-align: center;
}

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

.generic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--gap);
  min-height: 0;
  overflow: hidden;
}

.generic-grid .kpi-value {
  font-size: 3.4vw;
  margin: 0.8vw 0;
}

.generic-grid .line strong {
  font-size: 1.4vw;
}

.generic-grid .kpi-label {
  font-size: 0.9vw;
}

/* ---------- full-screen states (pairing, errors) ---------- */

.center {
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4vw;
}

.center-card {
  max-width: 46vw;
}

.center h1 {
  font-size: 2.4vw;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 1.2vw 0 0.6vw;
}

.center p {
  color: var(--muted);
  font-size: 1vw;
  line-height: 1.55;
}

.code-input {
  font: inherit;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  font-size: 2.8vw;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
  padding: 1vw;
  margin-top: 1.4vw;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.code-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 0.25vw rgba(21, 23, 28, 0.08);
}

.btn {
  font: inherit;
  font-size: 1.05vw;
  font-weight: 600;
  margin-top: 1.2vw;
  padding: 0.8vw 2.4vw;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

/* Remote control: the focused button must be obvious from across the room. */
.btn:focus {
  outline: 0.25vw solid var(--ink);
  outline-offset: 0.3vw;
}

.btn:disabled {
  opacity: 0.45;
}

.error-text {
  color: var(--bad-text) !important;
  min-height: 1.5em;
}

.banner {
  position: fixed;
  left: 50%;
  bottom: 2.2vw;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.6vw 1.3vw;
  border-radius: 999px;
  font-size: 1vw;
  font-weight: 600;
  box-shadow: 0 0.4vw 1.4vw rgba(21, 23, 28, 0.2);
}

.fade-in {
  animation: fade 0.5s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Portrait or small screens (e.g. testing on a laptop window): allow scrolling. */
@media (max-aspect-ratio: 4/3) {
  html,
  body {
    overflow: auto;
  }
  body {
    font-size: 14px;
  }
  .screen {
    height: auto;
    min-height: 100vh;
  }
  .board {
    grid-template-rows: none;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cols-3,
  .cols-3b,
  .generic-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    min-height: 10rem;
  }
}

/* Generic tiles stretch to fill the screen; keep their content together, vertically centred. */
.generic-grid .panel {
  justify-content: center;
  padding: 1.6vw 1.8vw;
}

.generic-grid .kpi-sub {
  margin-top: 0.4vw;
  font-size: 0.9vw;
}

.center-card .brand {
  justify-content: center;
}

/* ---------- donut (fresh vs repeat) ---------- */

.donut-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 1.6vw;
}

.donut {
  position: relative;
  flex: none;
  height: 100%;
  max-height: 12vw;
  aspect-ratio: 1;
}

.donut svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-90deg); /* first segment starts at 12 o'clock */
}

.donut circle {
  fill: none;
  stroke-width: 13;
}

.donut .track {
  stroke: var(--track);
}

.donut .seg {
  transition:
    stroke-dasharray 0.8s ease,
    stroke-dashoffset 0.8s ease;
}

.seg-fresh {
  stroke: var(--ink);
}

.seg-repeat {
  stroke: var(--accent);
}

:root[data-theme='dark'] .seg-fresh {
  stroke: var(--accent);
}

:root[data-theme='dark'] .seg-repeat {
  stroke: var(--gold);
}

.donut-center {
  position: absolute;
  inset: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.donut-center strong {
  font-size: 2.3vw;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.donut-center span {
  color: var(--muted);
  font-size: 0.8vw;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3vw;
}

.legend {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9vw;
}

.legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.6vw;
  min-width: 0;
}

.swatch {
  width: 0.8vw;
  height: 0.8vw;
  border-radius: 0.2vw;
}

.swatch-fresh {
  background: var(--ink);
}

.swatch-repeat {
  background: var(--accent);
}

:root[data-theme='dark'] .swatch-fresh {
  background: var(--accent);
}

:root[data-theme='dark'] .swatch-repeat {
  background: var(--gold);
}

.legend-label {
  color: var(--text-2);
  font-size: 0.95vw;
}

.legend-item strong {
  font-size: 1.6vw;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.legend-share {
  grid-column: 2 / 4;
  color: var(--muted);
  font-size: 0.85vw;
}
