/* ==========================================================================
   SUSTEV — Ground Station
   An earth-observation console for Tanzanian carbon. Every number on screen
   belongs to a place and a date, so the interface is built like instrument
   panels over territory rather than like a document.

   Surface  deep ocean-night, the Indian Ocean after dark
   Series   miombo green, signal amber, mangrove teal — the brand, brightened
            to hold contrast against the dark base
   Type     Archivo throughout, using its width axis instead of a second face.
            Plex Mono appears only on registry identifiers, where telling a 0
            from an O in a certificate serial is the actual job.
   ========================================================================== */

/* --------------------------------------------------------------- themes ---
   Ground Station is a dark console by design, so dark is the default and
   light is an explicit choice the person makes. The toggle writes
   data-theme onto <html>; an inline script in the layout applies the stored
   choice before first paint so the page never flashes the wrong theme.

   Every colour below is a token. Nothing downstream hardcodes a hex, which
   is what makes a second theme a 40-line block rather than a rewrite.
   -------------------------------------------------------------------------- */

:root {
  /* --- geometry & rhythm: identical in both themes --- */
  --r-panel: 14px;
  --r-ctl:   9px;
  --r-pill:  999px;
  --rail: 236px;
  font-size: 16px;

  /* === DARK (default) ================================================== */
  color-scheme: dark;

  /* surfaces, deepest to raised */
  --abyss:     #041216;
  --base:      #06191F;
  --surface:   #0D2A30;
  --surface-2: #123840;
  --line:      #1C454E;
  --line-soft: rgba(226, 240, 236, 0.09);

  /* data series */
  --miombo:      #3FD695;
  --miombo-deep: #1E9C6A;
  --miombo-lift: #56E4A7;   /* hover state of a miombo fill */
  --signal:      #E8B92F;
  --signal-lift: #F5CB4B;
  --mangrove:    #35B6CE;
  --ember:       #FF7A63;
  --ember-lift:  #FF9483;

  /* text that sits on top of a filled accent */
  --on-miombo: #04231A;
  --on-signal: #2A1F02;
  --on-ember:  #2A0A05;

  /* text */
  --chalk:      #E6F0EC;
  --chalk-dim:  #A8C0BB;
  --chalk-mute: #779390;

  /* accent washes — the same hue at three strengths */
  --miombo-wash:   rgba(63, 214, 149, 0.045);
  --miombo-tint:   rgba(63, 214, 149, 0.12);
  --miombo-tint-2: rgba(63, 214, 149, 0.18);
  --miombo-glow:   rgba(63, 214, 149, 0.45);
  --signal-tint:   rgba(232, 185, 47, 0.14);
  --signal-tint-2: rgba(232, 185, 47, 0.4);
  --signal-glow:   rgba(232, 185, 47, 0.4);
  --mangrove-tint: rgba(53, 182, 206, 0.12);
  --mangrove-glow: rgba(53, 182, 206, 0.4);
  --ember-tint:    rgba(255, 122, 99, 0.12);
  --ember-tint-2:  rgba(255, 122, 99, 0.45);

  /* feedback text, readable on its own wash */
  --err-text:  #FFC2B7;
  --ok-text:   #A9EDCE;
  --info-text: #A7DDE8;

  /* chrome */
  --topbar-bg:  rgba(4, 18, 22, 0.86);
  --scrim:      rgba(4, 18, 22, 0.66);
  --scrim-deep: rgba(4, 18, 22, 0.72);
  --btn-hover:  #17454E;
  --grid-line:  rgba(63, 214, 149, 0.028);
  --tip-bg:     var(--abyss);
  --inverse-fg: var(--base);

  /* depth: dark UI reads depth from light, not from shadow */
  --lift: inset 0 1px 0 rgba(226, 240, 236, 0.06);
  --cast: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.28);
  --glow: 0 0 0 1px rgba(63, 214, 149, 0.4), 0 0 24px rgba(63, 214, 149, 0.18);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8C0BB' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* === LIGHT ==============================================================
   Not an inversion. Daylight is a field survey sheet: warm paper, ink that
   stays green-black rather than grey, and the three series darkened until
   each one carries text at 4.5:1 on white. Panels stay the lightest thing
   on the page, so the depth relationship survives the flip.
   ====================================================================== */

:root[data-theme="light"] {
  color-scheme: light;

  --abyss:     #DDE8E1;
  --base:      #EFF4F0;
  --surface:   #FFFFFF;
  --surface-2: #F1F6F2;
  --line:      #CCDCD2;
  --line-soft: rgba(10, 38, 32, 0.1);

  --miombo:      #0B7A50;
  --miombo-deep: #06603D;
  --miombo-lift: #096441;
  --signal:      #8A6408;
  --signal-lift: #6F5006;
  --mangrove:    #0E6F81;
  --ember:       #B5372A;
  --ember-lift:  #94291E;

  --on-miombo: #FFFFFF;
  --on-signal: #FFFFFF;
  --on-ember:  #FFFFFF;

  --chalk:      #0A2620;
  --chalk-dim:  #3C574F;
  --chalk-mute: #516C66;

  --miombo-wash:   rgba(11, 122, 80, 0.05);
  --miombo-tint:   rgba(11, 122, 80, 0.1);
  --miombo-tint-2: rgba(11, 122, 80, 0.16);
  --miombo-glow:   rgba(11, 122, 80, 0.3);
  --signal-tint:   rgba(138, 100, 8, 0.12);
  --signal-tint-2: rgba(138, 100, 8, 0.4);
  --signal-glow:   rgba(138, 100, 8, 0.28);
  --mangrove-tint: rgba(14, 111, 129, 0.11);
  --mangrove-glow: rgba(14, 111, 129, 0.3);
  --ember-tint:    rgba(181, 55, 42, 0.09);
  --ember-tint-2:  rgba(181, 55, 42, 0.45);

  --err-text:  #8E2A1F;
  --ok-text:   #0A5F3E;
  --info-text: #0C5A69;

  --topbar-bg:  rgba(255, 255, 255, 0.88);
  --scrim:      rgba(10, 38, 32, 0.4);
  --scrim-deep: rgba(10, 38, 32, 0.48);
  --btn-hover:  #E4EEE7;
  --grid-line:  rgba(11, 122, 80, 0.045);
  --tip-bg:     #0A2620;
  --inverse-fg: #FFFFFF;

  /* On paper, depth is a cast shadow again — but a soft, short one. */
  --lift: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --cast: 0 1px 2px rgba(10, 38, 32, 0.06), 0 8px 24px rgba(10, 38, 32, 0.07);
  --glow: 0 0 0 1px rgba(11, 122, 80, 0.45), 0 0 0 4px rgba(11, 122, 80, 0.12);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233C574F' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* The tooltip flips to a dark chip on paper, so its text must flip too. */
:root[data-theme="light"] .chart-tip { color: #FFFFFF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Archivo, 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--chalk);
  background-color: var(--base);
  /* A graticule — the faint lat/long grid of a chart. The only texture in the
     system, set far enough back to read as paper rather than as pattern. */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-attachment: fixed;
}

/* ---------------------------------------------------------------- type --- */

h1, h2, h3, h4 {
  margin: 0 0 6px;
  color: var(--chalk);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  line-height: 1.18;
  text-wrap: balance;
}
h1 { font-size: 1.85rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 10px; max-width: 74ch; }

a { color: var(--miombo); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--miombo-lift); }

.sub  { color: var(--chalk-dim); font-size: 0.92rem; margin: 0 0 16px; max-width: 74ch; }
.tiny { font-size: 0.8rem; color: var(--chalk-dim); }
.hint { font-size: 0.79rem; color: var(--chalk-mute); margin: -6px 0 12px; }
.hint-inline { font-weight: 400; color: var(--chalk-mute); font-size: 0.82rem; }

/* Section rules read as instrument dividers: a hairline with a lit segment at
   the start, rather than an all-caps eyebrow. */
.section-title {
  display: flex; align-items: center; gap: 10px;
  margin: 26px 0 12px;
  font-size: 0.92rem; font-weight: 600; color: var(--chalk);
  letter-spacing: -0.01em;
}
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--miombo), var(--line) 12%, var(--line));
}
.p-grp { font-size: 0.76rem; font-weight: 600; color: var(--chalk-mute); margin: 12px 0 6px; }

.serial, .ref, code, kbd, samp {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em; letter-spacing: -0.01em;
}
.serial { color: var(--signal); font-weight: 500; }

/* --------------------------------------------------------------- shell --- */

.shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 18px;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  color: var(--chalk);
}
.brand { display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; color: inherit; }
.brand-mark {
  font-size: 1.12rem; font-weight: 700; font-stretch: 125%;
  letter-spacing: 0.16em; color: var(--chalk);
}
.brand-mark::after {
  content: ''; display: inline-block; vertical-align: middle;
  width: 5px; height: 5px; margin: 0 0 2px 8px; border-radius: 50%;
  background: var(--miombo); box-shadow: 0 0 10px var(--miombo);
}
.brand-sub { font-size: 0.66rem; color: var(--chalk-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.top-right { display: flex; align-items: center; gap: 12px; }
.who { font-size: 0.84rem; color: var(--chalk-dim); }

.menu-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 4px; flex: none;
  width: 38px; height: 34px; padding: 8px 9px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--chalk); border-radius: var(--r-ctl); cursor: pointer;
}
.menu-btn span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.menu-btn:hover { border-color: var(--miombo-deep); }

.app-body { display: flex; flex: 1; align-items: stretch; min-height: 0; }
.app-body > * { min-width: 0; }

.sidebar {
  width: var(--rail); flex: 0 0 var(--rail);
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, var(--abyss), var(--base));
  border-right: 1px solid var(--line);
  transition: margin-left 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.hidden { margin-left: calc(var(--rail) * -1); }

.sidenav { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; }
.sidenav a {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--r-ctl);
  color: var(--chalk-dim); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.sidenav a .ic { width: 20px; text-align: center; opacity: 0.85; flex: none; }
.sidenav a:hover { background: var(--surface); color: var(--chalk); }
.sidenav a.active { background: var(--surface-2); color: var(--chalk); font-weight: 600; }
/* The active marker is a lit segment on the rail edge — a channel indicator. */
.sidenav a.active::before {
  content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--miombo);
  box-shadow: 0 0 12px var(--miombo);
}
.side-foot { padding: 14px; border-top: 1px solid var(--line-soft); }

.side-backdrop {
  position: fixed; inset: 0; z-index: 55; padding: 0; border: 0;
  background: var(--scrim); backdrop-filter: blur(2px);
  animation: fadeIn 0.16s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.content {
  flex: 1; min-width: 0; width: 100%;
  max-width: 1480px; margin: 0 auto;
  padding: 26px 26px 64px;
}
.foot {
  padding: 18px; text-align: center;
  font-size: 0.78rem; color: var(--chalk-mute);
  border-top: 1px solid var(--line);
}
.loading { padding: 64px; text-align: center; color: var(--chalk-mute); }

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

.card, .panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--lift), var(--cast);
}
.card { padding: 20px; }
.panel { overflow: hidden; }
.ph2 {
  padding: 12px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 0.88rem; font-weight: 600; color: var(--chalk);
}
.pc2 { padding: 14px 16px 18px; }

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid.kpi { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split > * { min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid > * { min-width: 0; }

/* ------------------------------------------------------------- metrics --- */
/* The reading is the object. The label sits quiet above it, the unit quiet
   below, and the series colour rides a lit bar on the panel edge instead of
   tinting the number — so four metrics still read as one instrument. */

.kpi-card { position: relative; overflow: hidden; padding: 18px 18px 16px; }
.kpi-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--miombo); opacity: 0.85;
}
.kpi-card.gold::before   { background: var(--signal); }
.kpi-card.ocean::before  { background: var(--mangrove); }
.kpi-card.danger::before { background: var(--ember); }

.k-lbl { font-size: 0.78rem; color: var(--chalk-mute); margin-bottom: 4px; }
.k-val {
  display: block;
  font-size: 2.15rem; font-weight: 600; font-stretch: 105%;
  letter-spacing: -0.03em; line-height: 1.05; color: var(--chalk);
  font-variant-numeric: tabular-nums;
}
.kpi-card.gold .k-val { color: var(--signal); }
.k-sub { font-size: 0.78rem; color: var(--chalk-dim); margin-top: 5px; }

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

table { width: 100%; border-collapse: collapse; font-size: 0.89rem; }
th {
  padding: 9px 12px; text-align: left; white-space: nowrap;
  font-size: 0.78rem; font-weight: 600; color: var(--chalk-mute);
  border-bottom: 1px solid var(--line);
}
td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); color: var(--chalk-dim); }
td strong, td b { color: var(--chalk); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--miombo-wash); }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------ controls --- */

label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--chalk-dim); }

input, select, textarea {
  width: 100%; margin: 6px 0 14px; padding: 11px 13px;
  font: inherit; font-size: 0.95rem; color: var(--chalk);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
input::placeholder, textarea::placeholder { color: var(--chalk-mute); }
input:hover, select:hover, textarea:hover { border-color: var(--miombo-deep); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--miombo); box-shadow: var(--glow);
}
select {
  appearance: none; padding-right: 36px;
  background-image: var(--arrow);
  background-repeat: no-repeat; background-position: right 13px center;
}
.field { margin-bottom: 4px; }

.row-input { display: flex; align-items: stretch; }
.row-input input { border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
.row-input .unit {
  display: flex; align-items: center; margin: 6px 0 14px; padding: 0 13px;
  background: var(--surface); border: 1px solid var(--line); border-left: none;
  border-radius: 0 var(--r-ctl) var(--r-ctl) 0;
  font-size: 0.82rem; color: var(--chalk-mute); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--miombo); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1;
  color: var(--chalk); background: var(--surface-2);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.08s ease;
}
.btn:hover { background: var(--btn-hover); border-color: var(--miombo-deep); color: var(--chalk); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn.primary, .btn.green { background: var(--miombo); border-color: var(--miombo); color: var(--on-miombo); }
.btn.primary:hover, .btn.green:hover { background: var(--miombo-lift); border-color: var(--miombo-lift); color: var(--on-miombo); }
.btn.gold { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn.gold:hover { background: var(--signal-lift); border-color: var(--signal-lift); color: var(--on-signal); }
.btn.light { background: var(--chalk); border-color: var(--chalk); color: var(--inverse-fg); }
.btn.light:hover { background: var(--chalk-dim); border-color: var(--chalk-dim); color: var(--inverse-fg); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--chalk); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--miombo-deep); }
.btn.danger {
  background: transparent; border-color: var(--ember-tint-2); color: var(--ember);
}
.btn.danger:hover { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.btn.danger.solid { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.btn.sm { padding: 7px 13px; font-size: 0.82rem; }
.btn.lg { padding: 14px 24px; font-size: 1rem; }
a.btn:hover { text-decoration: none; }
.btn .ic { width: 17px; height: 17px; flex: none; opacity: 0.9; }
.btn.lg .ic { width: 19px; height: 19px; }

/* -------------------------------------------------------- tags & status --- */

.tag, .pill, .status-chip, .filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.tag { background: var(--surface-2); color: var(--chalk-dim); margin-right: 6px; }
.tag.verified { background: var(--miombo-tint); color: var(--miombo); }
.tag.gold     { background: var(--signal-tint); color: var(--signal); }

.pill { background: var(--signal-tint); color: var(--signal); }
.pill.offline { background: var(--ember-tint); color: var(--ember); }

/* Status carries a lit dot: the state is a reading, not a label. */
.status-chip::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 8px currentColor;
}
.status-chip.verified   { background: var(--miombo-tint); color: var(--miombo); }
.status-chip.submitted  { background: var(--signal-tint); color: var(--signal); }
.status-chip.incomplete { background: var(--ember-tint); color: var(--ember); }

.filter-chip {
  background: var(--surface-2); color: var(--chalk-dim);
  border: 1px solid var(--line); cursor: pointer; margin: 0 4px 4px 0;
}
.filter-chip:hover { border-color: var(--miombo-deep); color: var(--chalk); }
.filter-chip.on { background: var(--miombo); border-color: var(--miombo); color: var(--on-miombo); }

/* ------------------------------------------------------------ feedback --- */

.err, .ok-msg, .note-blue {
  padding: 11px 14px; margin-bottom: 14px;
  border-radius: var(--r-ctl); border-left: 3px solid; font-size: 0.88rem;
}
.err       { background: var(--ember-tint);  border-color: var(--ember);    color: var(--err-text); }
.ok-msg    { background: var(--miombo-tint);  border-color: var(--miombo);   color: var(--ok-text); }
.note-blue { background: var(--mangrove-tint);  border-color: var(--mangrove); color: var(--info-text); margin-top: 14px; }

/* ------------------------------------------------ progress, bars, total --- */

.progress { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.progress > div {
  height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--miombo-deep), var(--miombo));
  box-shadow: 0 0 14px var(--miombo-glow);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.bars .bar {
  position: relative; flex: 1; min-width: 8px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--miombo), var(--miombo-deep));
}
.bars .bar span {
  position: absolute; bottom: -20px; left: 0; right: 0;
  text-align: center; font-size: 0.64rem; color: var(--chalk-mute);
}

/* The running total: a readout strip, not a coloured banner. */
.live-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 14px; padding: 13px 18px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--miombo); border-radius: var(--r-ctl);
}
.live-bar .lbl { font-size: 0.85rem; color: var(--chalk-dim); }
.live-bar .val {
  font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--miombo); font-variant-numeric: tabular-nums;
}
.live-bar.total { margin-top: 8px; border-left-color: var(--signal); }
.live-bar.total .val { color: var(--signal); }

/* ------------------------------------------------ steps, tabs, switcher --- */

.steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 150px;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: var(--r-ctl);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.84rem; color: var(--chalk-mute);
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); color: var(--chalk-mute);
  font-size: 0.74rem; font-weight: 700;
}
.step.done { color: var(--chalk-dim); }
.step.done .n { background: var(--miombo-tint-2); color: var(--miombo); }
.step.now { color: var(--chalk); font-weight: 600; border-color: var(--miombo); background: var(--miombo-wash); }
.step.now .n { background: var(--miombo); color: var(--on-miombo); }

.switcher {
  display: inline-flex; gap: 3px; padding: 3px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-ctl);
}
.switcher button {
  padding: 7px 15px; border: none; border-radius: 7px;
  background: transparent; color: var(--chalk-mute);
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.switcher button:hover { color: var(--chalk); }
.switcher button.on { background: var(--miombo); color: var(--on-miombo); }

.scope-tab, .scope-tabs { display: flex; gap: 10px; margin: 16px 0 8px; flex-wrap: wrap; }
.scope-tab button, .scope-tabs button {
  flex: 1; min-width: 160px; padding: 13px 15px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl);
  color: var(--chalk); font: inherit; font-size: 0.95rem; font-weight: 600;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.scope-tab button .s, .scope-tabs button .s {
  display: block; margin-top: 3px;
  font-size: 0.76rem; font-weight: 400; color: var(--chalk-mute);
}
.scope-tab button:hover, .scope-tabs button:hover { border-color: var(--miombo-deep); }
.scope-tab button.on, .scope-tabs button.on, .scope-tabs .active {
  background: var(--miombo-tint); border-color: var(--miombo); color: var(--chalk);
}
.scope-tab button.on .s, .scope-tabs button.on .s { color: var(--miombo); }

/* --------------------------------------------------------- marketplace --- */

.mkt-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.mkt-layout > * { min-width: 0; }
.mkt-side { display: flex; flex-direction: column; gap: 14px; }

.mlist-item {
  padding: 10px 6px; border-bottom: 1px solid var(--line-soft);
  border-radius: 6px; cursor: pointer;
}
.mlist-item:hover { background: var(--surface-2); }
.mlist-item .mn { font-size: 0.87rem; font-weight: 600; color: var(--chalk); }

.map-box {
  height: 520px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-panel);
  background: var(--abyss);
}
.leaflet-container { height: 100%; width: 100%; }
.tz-region { fill: var(--surface-2); stroke: var(--line); }

/* --------------------------------------------------------------- modal --- */

.modal-bg {
  position: fixed; inset: 0; z-index: 999; padding: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--scrim-deep); backdrop-filter: blur(4px);
  animation: fadeIn 0.16s ease;
}
.modal {
  width: 100%; max-width: 580px; max-height: 88vh; overflow: auto; padding: 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-panel); box-shadow: var(--cast);
}

/* --------------------------------------------------------- certificate --- */

.cert {
  padding: 22px; border-radius: var(--r-panel);
  background: linear-gradient(160deg, var(--signal-tint), transparent 60%), var(--surface);
  border: 1px solid var(--signal-tint-2);
}
.cert .serial { font-size: 1rem; }

/* ---------------------------------------------------------------- auth --- */

.auth-wrap {
  min-height: 100vh; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1100px 600px at 50% -10%, var(--miombo-tint), transparent 70%),
    radial-gradient(800px 500px at 90% 110%, var(--mangrove-tint), transparent 70%),
    var(--abyss);
}
.auth-card { width: 100%; max-width: 440px; padding: 30px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand .brand-mark { font-size: 1.45rem; color: var(--chalk); }

.pw-field { position: relative; }
.pw-field input { padding-right: 44px; }
.pw-toggle {
  position: absolute; top: 6px; right: 4px; height: calc(100% - 20px); width: 38px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--chalk-mute); border-radius: var(--r-ctl);
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--chalk); outline: none; }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle .eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .eye { display: none; }
.pw-toggle[aria-pressed="true"] .eye-off { display: block; }

/* --------------------------------------------------------- public home --- */

.home .content { padding-top: 24px; }
.hero {
  position: relative; overflow: hidden;
  margin-bottom: 20px; padding: 44px 36px;
  border: 1px solid var(--line); border-radius: var(--r-panel);
  background:
    radial-gradient(900px 420px at 12% -20%, var(--miombo-tint-2), transparent 68%),
    radial-gradient(700px 380px at 96% 120%, var(--mangrove-tint), transparent 66%),
    var(--surface);
  box-shadow: var(--lift), var(--cast);
}
.hero h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-stretch: 118%; max-width: 20ch; }
.hero p { color: var(--chalk-dim); max-width: 64ch; }
.hero .tiny { color: var(--chalk-mute); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* -------------------------------------------------------------- motion --- */
/* One orchestrated entrance per page load: panels arrive in reading order,
   then nothing moves again unless the person moves it. */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.content > * { animation: riseIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.content > *:nth-child(1) { animation-delay: 0.02s; }
.content > *:nth-child(2) { animation-delay: 0.07s; }
.content > *:nth-child(3) { animation-delay: 0.12s; }
.content > *:nth-child(4) { animation-delay: 0.17s; }
.content > *:nth-child(n+5) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1080px) { .mkt-layout { grid-template-columns: 1fr; } }
@media (max-width: 900px)  { .split { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .content { padding: 18px 16px 56px; }
  /* The public bar carries brand + theme + two CTAs, which will not fit on a
     phone in one row, so it is allowed to become two. */
  .topbar { height: auto; min-height: 60px; padding: 10px 14px; flex-wrap: wrap; }
  .top-right { gap: 8px; }
  .brand-sub, .who { display: none; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
    padding-top: 60px; box-shadow: var(--cast);
  }
  .sidebar.hidden { margin-left: 0; transform: translateX(-100%); }
  .hero { padding: 30px 22px; }

  /* Wide tables scroll inside their panel rather than widening the page. */
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table thead, table tbody { display: table; width: 100%; min-width: 520px; }
  table tr { display: table-row; }
  table th, table td { display: table-cell; }
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- print --- */

@media print {
  body { background: #fff; color: #000; }
  .topbar, .sidebar, .side-backdrop, .menu-btn, .foot, .no-print { display: none !important; }
  .content { max-width: none; padding: 0; }
  .card, .panel { border: 1px solid #ccc; box-shadow: none; background: #fff; color: #000; }
  .content > * { animation: none; }
}

/* -------------------------------------------------- shell helper classes --- */
/* Replacing the inline style attributes the layout used to carry. */
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.inline-form { margin: 0; }
.btn.block { width: 100%; }

/* ============================================================ dashboard === */

.page-head { margin-bottom: 20px; }
.stack-top { margin-top: 18px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.offset-line { font-size: 0.95rem; margin: 12px 0 14px; }
.progress.tall { height: 14px; }

.scope-row { margin-bottom: 14px; }
.scope-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 0.87rem; margin-bottom: 6px;
}
.scope-n { color: var(--chalk); font-weight: 600; }
.scope-meta b { font-variant-numeric: tabular-nums; }
.progress.scope-two   > div { background: linear-gradient(90deg, var(--mangrove), var(--mangrove)); box-shadow: 0 0 14px var(--mangrove-glow); }
.progress.scope-three > div { background: linear-gradient(90deg, var(--signal), var(--signal));   box-shadow: 0 0 14px var(--signal-tint-2); }

/* --- the cost-of-waiting panel --- */

.delay { margin-bottom: 18px; }
.delay-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 18px;
}
.delay-head .sub { margin-bottom: 0; }

.delay-readout {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-ctl); overflow: hidden; margin-bottom: 20px;
}
.readout { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; background: var(--surface); }
.r-lbl { font-size: 0.78rem; color: var(--chalk-mute); }
.r-val {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em;
  color: var(--chalk); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.r-sub { font-size: 0.78rem; color: var(--chalk-mute); font-variant-numeric: tabular-nums; }
/* The gap is the point of the panel, so it is the only lit cell. */
.readout.gap { background: var(--signal-tint); }
.readout.gap .r-val { color: var(--signal); }

.delay-chart { position: relative; margin: 0 0 8px; }
.delay-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.delay-chart figcaption { margin-top: 10px; }
.chart-tip {
  position: absolute; top: -6px; transform: translateX(-50%);
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--tip-bg); border: 1px solid var(--line);
  font-size: 0.78rem; color: var(--chalk); white-space: nowrap;
  pointer-events: none; font-variant-numeric: tabular-nums;
}
.chart-tip b { color: var(--signal); margin-right: 6px; }

.empty {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 26px; border: 1px dashed var(--line); border-radius: var(--r-ctl);
  color: var(--chalk-dim);
}
.empty p { margin: 0; }

@media (max-width: 760px) {
  .delay-readout { grid-template-columns: 1fr; }
}

/* ============================================================== reports === */

.stack-top-sm { margin-top: 12px; }

/* Framework picker: each option states what the report is and who asks for it,
   so the label needs to wrap — which a .btn deliberately never does. */
.fw-picker {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  margin-bottom: 4px;
}
.fw-option {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 13px 15px; text-align: left; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-ctl);
  color: var(--chalk); font: inherit;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.fw-option b { font-size: 0.9rem; font-weight: 600; }
.fw-option span { font-size: 0.76rem; color: var(--chalk-mute); line-height: 1.4; }
.fw-option:hover { border-color: var(--miombo-deep); }
.fw-option.on { background: var(--miombo-tint); border-color: var(--miombo); }
.fw-option.on span { color: var(--chalk-dim); }
.lede { color: var(--miombo); }

/* ========================================================= theme toggle === */
/* One button, two states. The icon shows the theme you would switch TO, which
   is the convention people already read correctly on every OS. */

.theme-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 34px; padding: 0;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-ctl); color: var(--chalk); cursor: pointer;
}
.theme-btn:hover { border-color: var(--miombo-deep); color: var(--miombo); }
.theme-btn svg { width: 17px; height: 17px; }
/* Both glyphs ship; the active theme decides which is shown. Dark shows the
   sun (what you'd switch to), light shows the moon. */
.theme-btn .icon-moon { display: none; }
:root[data-theme="light"] .theme-btn .icon-moon { display: block; }
:root[data-theme="light"] .theme-btn .icon-sun  { display: none; }

/* Colour changes are instant; only the surfaces ease, so the flip reads as a
   lighting change rather than as a page redraw. */
body, .card, .panel, .topbar, .sidebar, .btn, input, select, textarea {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  body, .card, .panel, .topbar, .sidebar { transition: none; }
}

/* On paper the graticule would read as graph paper, which is wrong for a
   survey sheet, so it steps back further. */
:root[data-theme="light"] body { background-size: 96px 96px, 96px 96px; }
.auth-theme { position: fixed; top: 18px; right: 18px; z-index: 5; }
.auth-foot { margin-top: 14px; text-align: center; }

/* =========================================================== public home === */

/* Copy and territory share the hero: the words carry the offer, the map
   carries the proof that there is something behind it. */
.hero-map {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 36px; align-items: center; padding: 40px;
}
.hero-copy h2 { max-width: 16ch; }
.hero-copy .sub, .hero-copy p { max-width: 52ch; }
.hero-note { margin-top: 14px; max-width: 46ch; }

.hero-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.map-stage {
  border: 1px solid var(--line); border-radius: var(--r-panel);
  overflow: hidden; background: var(--abyss);
}
.map-stage svg { display: block; width: 100%; height: auto; max-height: 460px; }
.tz-region { transition: fill 0.2s ease; }

/* The pins settle once, in place, as the page arrives — the single piece of
   non-user-triggered motion in the product. */
@keyframes pinDrop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
.map-stage .pin { transform-box: fill-box; transform-origin: center; animation: pinDrop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) backwards; }
.map-stage .pin:nth-child(3n)   { animation-delay: 0.10s; }
.map-stage .pin:nth-child(3n+1) { animation-delay: 0.20s; }
.map-stage .pin:nth-child(3n+2) { animation-delay: 0.30s; }

/* A numbered sequence, because the content genuinely is one. */
.steps-flow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: step;
}
.steps-flow li { counter-increment: step; position: relative; padding-top: 34px; }
.steps-flow li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--miombo-tint); color: var(--miombo);
  font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
/* A hairline runs between the steps, so they read as a path not four cards. */
.steps-flow li::after {
  content: ''; position: absolute; top: 13px; left: 34px; right: -22px; height: 1px;
  background: var(--line);
}
.steps-flow li:last-child::after { display: none; }
.steps-flow h3 { margin-bottom: 4px; }

@media (max-width: 1000px) {
  .hero-map { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; }
  .hero-copy h2 { max-width: none; }
  .map-stage svg { max-height: 380px; }
}
@media (max-width: 680px) {
  .steps-flow li::after { display: none; }
}

/* ======================================================== tabs & tables === */

.tabs {
  display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative; padding: 11px 16px; bottom: -1px;
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--chalk-mute); font: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--chalk); }
.tab.on { color: var(--chalk); border-bottom-color: var(--miombo); }

/* Table toolbar: find the row, then read it. */
.t-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
}
.t-search { flex: 1; min-width: 200px; max-width: 380px; margin: 0; }
.t-search input { margin: 0; }
.t-count { font-size: 0.8rem; color: var(--chalk-mute); font-variant-numeric: tabular-nums; }

.th-sort {
  display: inline-flex; align-items: center; gap: 6px; padding: 0;
  background: none; border: none; color: inherit; font: inherit; cursor: pointer;
}
.th-sort:hover { color: var(--chalk); }
.th-sort.on { color: var(--miombo); }
.th-sort span { font-size: 0.85em; }

th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
th.act, td.act { text-align: right; white-space: nowrap; }
td.act .btn + .btn { margin-left: 6px; }
.t-note { font-size: 0.78rem; color: var(--chalk-mute); }
.t-empty { padding: 32px 12px; text-align: center; color: var(--chalk-mute); }
.nowrap { white-space: nowrap; }

.t-pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 14px; font-size: 0.83rem; color: var(--chalk-mute);
  font-variant-numeric: tabular-nums;
}

.is-hidden { display: none !important; }

/* Visually hidden, still read aloud. */
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ======================================================= layout helpers === */

.card-slim { padding: 14px 18px; }
.stack-bot { margin-bottom: 16px; }
.stack-bot-sm { margin-bottom: 8px; }
.row-between {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.hint-tight { margin: 8px 0 0; }

/* Inputs living inside a table cell shed the block-level spacing. */
.cell-input { margin: 0; padding: 7px 9px; font-size: 0.88rem; }
.w-xs { width: 80px; }
.w-sm { width: 120px; }

/* A deliberately small utility set — only the patterns that repeated across
   pages. Anything used once stays in its own component block. */
.stack-top    { margin-top: 18px; }
.stack-top-md { margin-top: 14px; }
.stack-bot-md { margin-bottom: 14px; }
.stack-none   { margin: 0; }
.row      { display: flex; gap: 10px; flex-wrap: wrap; }
.row-tight{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scroll-y { max-height: 520px; overflow-y: auto; }
.scroll-y.short { max-height: 340px; }
.narrow   { max-width: 880px; margin: 0 auto; }
.block    { width: 100%; }
.fs-sm    { font-size: 0.86rem; }
.fs-md    { font-size: 0.95rem; }

/* The "locked / not yet allowed" callout — same shape as .note-blue but in
   the attention series rather than the information one. */
.note-warn {
  padding: 11px 14px; margin-bottom: 14px;
  border-radius: var(--r-ctl); border-left: 3px solid var(--signal);
  background: var(--signal-tint); color: var(--signal); font-size: 0.88rem;
}
.note-warn b, .note-warn strong { color: var(--chalk); }

.swatch {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none;
  border: 1px solid var(--line);
}
.legend-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.83rem; }
.cards-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-auto  { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

/* ========================================================== marketplace === */

.map-wrap { position: relative; }
.map-svg { display: block; width: 100%; height: auto; max-height: 560px; }
.map-tip {
  position: absolute; z-index: 20; max-width: 240px;
  padding: 7px 11px; border-radius: var(--r-ctl);
  background: var(--tip-bg); border: 1px solid var(--line);
  color: var(--chalk); font-size: 0.78rem; font-weight: 500;
  box-shadow: var(--cast); pointer-events: none;
}
:root[data-theme="light"] .map-tip { color: #FFFFFF; }
:root[data-theme="light"] .map-tip .lede { color: var(--miombo-lift); }
.map-tip .lede { color: var(--miombo); }
.pick { cursor: pointer; }
.tz-region { transition: fill-opacity 0.15s ease; }

/* ---------------------------------------------- monitoring: records --- */

.rec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rec-filters { margin: 4px 0 10px; }
.rec-filters .filter-chip { font-family: inherit; }
.rec-count { opacity: 0.7; font-weight: 500; }

.rec-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--line-soft);
}
.rec-row:last-child { border-bottom: none; }
.rec-main { min-width: 0; }
.rec-title { font-weight: 600; color: var(--chalk); }
.rec-main .tiny { overflow-wrap: anywhere; }

.rec-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.rec-icon svg { width: 18px; height: 18px; }
.tone-miombo   { background: var(--miombo-tint);   color: var(--miombo); }
.tone-signal   { background: var(--signal-tint);   color: var(--signal); }
.tone-ember    { background: var(--ember-tint);    color: var(--ember); }
.tone-mangrove { background: var(--mangrove-tint); color: var(--mangrove); }
.tone-muted    { background: var(--surface-2);     color: var(--chalk-dim); }

.rec-value { display: grid; justify-items: end; gap: 3px; min-width: 96px; }
.rec-value b { font-size: 1rem; color: var(--chalk); font-variant-numeric: tabular-nums; }
.rec-meter { width: 96px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.rec-meter span { display: block; height: 100%; border-radius: 3px; background: currentColor; }

.rec-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.rec-stats span {
  display: grid; padding: 4px 9px; border-radius: 8px;
  background: var(--mangrove-tint); color: var(--chalk); font-size: 0.8rem; font-weight: 600;
}
.rec-stats small { font-size: 0.68rem; font-weight: 500; color: var(--chalk-dim); }

.rec-empty { padding: 28px 8px; text-align: center; color: var(--chalk-dim); }

@media (max-width: 560px) {
  .rec-row { grid-template-columns: 36px minmax(0, 1fr); }
  .rec-row > .rec-value, .rec-row > .rec-stats { grid-column: 2; justify-items: start; justify-content: flex-start; }
}
