/* =====================================================================
   ViccoFitness — App shell + component library
   ---------------------------------------------------------------------
   Consumes tokens.css. Styles the authenticated product (dashboard,
   clients, exercise picker, session forms, templates, reports, login)
   to one cohesive, distinctive system. Mobile-first; bilingual-safe
   (no fixed widths that break on longer EN strings, compact for 中文).
   All behaviour, htmx/Alpine hooks and i18n strings are untouched — this
   is presentation only.
   ===================================================================== */

/* ---------- Reset & base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--vf-font-body);
  font-size: var(--vf-fs-base);
  line-height: var(--vf-lh-body);
  color: var(--vf-text);
  background:
    radial-gradient(1200px 520px at 100% -10%,
      rgba(196, 242, 58, 0.10), transparent 60%),
    radial-gradient(900px 480px at -5% 0%,
      rgba(45, 212, 191, 0.08), transparent 55%),
    var(--vf-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--vf-font-display);
  line-height: var(--vf-lh-snug);
  letter-spacing: var(--vf-tracking-tight);
  color: var(--vf-text);
  margin: 0 0 var(--vf-3);
  font-weight: 700;
}
h1 { font-size: var(--vf-fs-xl); }
h2 { font-size: var(--vf-fs-lg); margin-top: var(--vf-6); }
h3 { font-size: var(--vf-fs-md); margin-top: var(--vf-4); }
h4 { font-size: var(--vf-fs-base); }
p  { margin: 0 0 var(--vf-3); }

a { color: var(--vf-info); text-decoration: none; }
a:hover { text-decoration: underline; }

small { font-size: var(--vf-fs-xs); color: var(--vf-text-3); }

:focus-visible {
  outline: none;
  box-shadow: var(--vf-ring);
  border-radius: var(--vf-r-sm);
}

/* ---------- App chrome: header / nav ------------------------------- */
body > header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vf-3) var(--vf-5);
  padding: var(--vf-3) var(--vf-gutter);
  background: rgba(13, 19, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vf-ink-3);
  color: var(--vf-on-dark);
}
body > header > a:first-child {
  font-family: var(--vf-font-display);
  font-weight: 800;
  font-size: var(--vf-fs-md);
  letter-spacing: var(--vf-tracking-tight);
  color: var(--vf-on-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--vf-2);
}
/* Brand spark mark before the wordmark in the app header. */
body > header > a:first-child::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--vf-volt);
  border-radius: 4px;
  transform: rotate(45deg);
  box-shadow: var(--vf-shadow-volt);
}
body > header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vf-2) var(--vf-3);
  margin-left: auto;
  font-size: var(--vf-fs-sm);
}
body > header nav a {
  color: var(--vf-on-dark-2);
  padding: var(--vf-1) var(--vf-2);
  border-radius: var(--vf-r-sm);
  text-decoration: none;
  transition: color var(--vf-dur-fast) var(--vf-ease),
              background var(--vf-dur-fast) var(--vf-ease);
}
body > header nav a:hover {
  color: var(--vf-ink);
  background: var(--vf-volt);
  text-decoration: none;
}

/* ---------- Main layout ------------------------------------------- */
main {
  display: block;
  max-width: var(--vf-maxw);
  margin: 0 auto;
  padding: var(--vf-6) var(--vf-gutter) var(--vf-9);
}
main > h1:first-child,
main > p:first-child { margin-top: 0; }

section { margin-bottom: var(--vf-6); }

/* The page-top back link gets a subtle pill treatment. */
main > p > a[href^="/clients"]:only-child,
.report-link {
  font-weight: 600;
}

/* ---------- Cards & surfaces -------------------------------------- */
.vf-card,
section.quick-stats,
.chart-card,
.template-card,
.goal-card,
.photo-compare {
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-r-lg);
  padding: var(--vf-5);
  box-shadow: var(--vf-shadow-sm);
}
.chart-card { padding: var(--vf-4) var(--vf-5) var(--vf-5); }

/* Generic content sections inside main read as soft panels so the page
   has rhythm without every block looking like a heavy card. */
main > section {
  background: var(--vf-surface);
  border: 1px solid var(--vf-line-soft);
  border-radius: var(--vf-r-lg);
  padding: var(--vf-5);
  box-shadow: var(--vf-shadow-sm);
}
main > section > h2:first-child { margin-top: 0; }

/* ---------- Buttons ----------------------------------------------- */
button,
.cta,
.report-actions a,
input[type="submit"] {
  font-family: var(--vf-font-body);
  font-size: var(--vf-fs-sm);
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vf-2);
  padding: 0.7em 1.15em;
  min-height: 44px;            /* thumb-friendly tap target */
  border: 1px solid transparent;
  border-radius: var(--vf-r-md);
  background: var(--vf-ink);
  color: var(--vf-on-dark);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--vf-dur-fast) var(--vf-ease),
              background var(--vf-dur-fast) var(--vf-ease),
              box-shadow var(--vf-dur-fast) var(--vf-ease),
              border-color var(--vf-dur-fast) var(--vf-ease);
}
button:hover,
.cta:hover,
.report-actions a:hover {
  transform: translateY(-1px);
  box-shadow: var(--vf-shadow-md);
  text-decoration: none;
}
button:active, .cta:active { transform: translateY(0); }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Primary submit actions = high-voltage accent. */
form button[type="submit"],
button[type="submit"],
.cta,
.report-actions a {
  background: var(--vf-volt);
  color: var(--vf-on-volt);
  border-color: var(--vf-volt-deep);
}
form button[type="submit"]:hover,
button[type="submit"]:hover,
.cta:hover { box-shadow: var(--vf-shadow-volt); }

/* Secondary / utility buttons (non-submit) read as quiet outline. */
button[type="button"] {
  background: var(--vf-surface);
  color: var(--vf-text);
  border-color: var(--vf-line);
}
button[type="button"]:hover {
  border-color: var(--vf-ink);
  background: var(--vf-surface);
}

/* Destructive cues for delete forms. */
form[action$="/delete"] button,
button.danger {
  background: var(--vf-surface);
  color: var(--vf-danger);
  border-color: color-mix(in srgb, var(--vf-danger) 35%, var(--vf-line));
}
form[action$="/delete"] button:hover {
  background: var(--vf-danger);
  color: #fff;
  border-color: var(--vf-danger);
}

/* ---------- Forms ------------------------------------------------- */
label {
  display: block;
  margin: 0 0 var(--vf-3);
  font-size: var(--vf-fs-sm);
  font-weight: 600;
  color: var(--vf-text-2);
}
label small { display: block; font-weight: 400; margin-top: var(--vf-1); }

input, select, textarea {
  font-family: var(--vf-font-body);
  font-size: var(--vf-fs-base);
  width: 100%;
  margin-top: var(--vf-1);
  padding: 0.6em 0.75em;
  min-height: 44px;
  color: var(--vf-text);
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-r-md);
  transition: border-color var(--vf-dur-fast) var(--vf-ease),
              box-shadow var(--vf-dur-fast) var(--vf-ease);
}
textarea { min-height: 88px; resize: vertical; line-height: var(--vf-lh-body); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--vf-volt-deep);
  box-shadow: var(--vf-ring);
}
input[type="file"] { padding: 0.5em; }
input[type="hidden"] { display: none; }

fieldset {
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-r-md);
  padding: var(--vf-4);
  margin: 0 0 var(--vf-4);
}
legend {
  font-family: var(--vf-font-display);
  font-weight: 700;
  padding: 0 var(--vf-2);
  color: var(--vf-text);
}

/* Forms breathe in two columns where there's room. */
form { max-width: 60ch; }
.add-session form,
.add-measurement form,
#sessions form,
#progress form { max-width: none; }

/* ---------- Disclosure (<details>) -------------------------------- */
details {
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-r-md);
  background: var(--vf-surface);
  padding: 0;
  margin: 0 0 var(--vf-4);
  overflow: hidden;
}
details > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--vf-3) var(--vf-4);
  font-weight: 700;
  font-family: var(--vf-font-display);
  display: flex;
  align-items: center;
  gap: var(--vf-3);
  background: var(--vf-surface-2);
  transition: background var(--vf-dur-fast) var(--vf-ease);
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "+";
  font-size: 1.1em;
  line-height: 1;
  color: var(--vf-volt-deep);
  transition: transform var(--vf-dur) var(--vf-ease);
}
details[open] > summary::before { content: "\2212"; } /* minus */
details > summary:hover { background: var(--vf-line-soft); }
details > *:not(summary) { padding: var(--vf-4); }
details > form { padding: var(--vf-4); }

/* ---------- Chips / facets ---------------------------------------- */
.facets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vf-3);
  align-items: flex-end;
  margin: var(--vf-4) 0;
  padding: var(--vf-4);
  background: var(--vf-surface-2);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-r-lg);
}
.facets label { margin: 0; min-width: 9rem; flex: 1 1 9rem; }
.facets button { align-self: flex-end; }

.vf-chip,
.client-row .muted,
.count {
  display: inline-flex;
  align-items: center;
  gap: var(--vf-1);
  padding: 0.2em 0.7em;
  font-size: var(--vf-fs-xs);
  font-weight: 700;
  border-radius: var(--vf-r-pill);
  background: var(--vf-surface-2);
  color: var(--vf-text-2);
  border: 1px solid var(--vf-line);
}

/* Exercise result rows surface their facet meta as colour-coded chips. */
.exercise-results .muscles,
.exercise-results .equipment,
.exercise-results .pattern,
.exercise-results .level {
  display: inline-block;
  margin: var(--vf-1) var(--vf-1) 0 0;
  padding: 0.15em 0.6em;
  font-size: var(--vf-fs-xs);
  font-weight: 700;
  border-radius: var(--vf-r-pill);
  background: var(--vf-surface-2);
  border: 1px solid var(--vf-line);
  color: var(--vf-text-2);
}
.exercise-results .pattern  { background: rgba(45,212,191,.16);  border-color: rgba(45,212,191,.4);  color:#0c6b60; }
.exercise-results .level    { background: rgba(124,108,255,.14); border-color: rgba(124,108,255,.4); color:#473aa6; }
.exercise-results .equipment{ background: rgba(255,106,61,.12);  border-color: rgba(255,106,61,.35); color:#b53c17; }

/* ---------- Lists ------------------------------------------------- */
ul, ol { padding-left: 0; }
.exercise-results,
.session-list,
#client-list,
.location-results {
  list-style: none;
  display: grid;
  gap: var(--vf-3);
  padding: 0;
  margin: var(--vf-3) 0;
}
.exercise-results li,
.session-list li,
.client-row,
.location-results li {
  list-style: none;
  padding: var(--vf-3) var(--vf-4);
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-r-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vf-2) var(--vf-3);
  transition: border-color var(--vf-dur-fast) var(--vf-ease),
              box-shadow var(--vf-dur-fast) var(--vf-ease),
              transform var(--vf-dur-fast) var(--vf-ease);
}
.exercise-results li:hover,
.session-list li:hover,
.client-row:hover,
.location-results li:hover {
  border-color: var(--vf-volt-deep);
  box-shadow: var(--vf-shadow-sm);
  transform: translateX(2px);
}
.exercise-results li strong,
.client-row > a:first-child { font-size: var(--vf-fs-md); }
.exercise-results .desc { flex-basis: 100%; color: var(--vf-text-3); }
.client-row > a:first-child {
  font-family: var(--vf-font-display);
  font-weight: 700;
  margin-right: auto;
}
.client-row form { display: inline; margin: 0; }

/* ---------- KPI tiles --------------------------------------------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--vf-3);
  margin: var(--vf-4) 0 var(--vf-6);
}
.kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--vf-1);
  padding: var(--vf-4);
  background: linear-gradient(160deg, var(--vf-ink) 0%, var(--vf-ink-2) 100%);
  color: var(--vf-on-dark);
  border: 1px solid var(--vf-ink-3);
  border-radius: var(--vf-r-lg);
  overflow: hidden;
}
.kpi::after {                 /* volt corner accent */
  content: "";
  position: absolute;
  right: -28px; top: -28px;
  width: 64px; height: 64px;
  background: radial-gradient(circle at center,
              rgba(196,242,58,.55), transparent 70%);
}
.kpi-label {
  font-size: var(--vf-fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--vf-tracking-wide);
  color: var(--vf-on-dark-2);
}
.kpi-value {
  font-family: var(--vf-font-display);
  font-weight: 800;
  font-size: var(--vf-fs-xl);
  letter-spacing: var(--vf-tracking-tight);
  color: var(--vf-volt);
}

/* Dashboard quick stats + business headline echo the KPI treatment. */
.quick-stats { display: flex; flex-wrap: wrap; gap: var(--vf-4); align-items: center; }
.quick-stats strong { font-family: var(--vf-font-display); font-size: var(--vf-fs-lg); color: var(--vf-ember-deep); }

.headline-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--vf-4);
  padding: 0;
  margin: 0 0 var(--vf-6);
}
.headline-stats li {
  padding: var(--vf-5);
  background: linear-gradient(160deg, var(--vf-ink) 0%, var(--vf-ink-2) 100%);
  color: var(--vf-on-dark-2);
  border: 1px solid var(--vf-ink-3);
  border-radius: var(--vf-r-lg);
  font-size: var(--vf-fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--vf-tracking-wide);
  display: flex;
  flex-direction: column;
  gap: var(--vf-2);
}
.headline-stats li strong {
  font-family: var(--vf-font-display);
  font-size: var(--vf-fs-2xl);
  font-weight: 800;
  color: var(--vf-volt);
  letter-spacing: var(--vf-tracking-tight);
}

/* ---------- Tables ------------------------------------------------ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--vf-3) 0 var(--vf-5);
  font-size: var(--vf-fs-sm);
  background: var(--vf-surface);
  border-radius: var(--vf-r-md);
  overflow: hidden;
  border: 1px solid var(--vf-line);
}
thead th {
  text-align: left;
  font-family: var(--vf-font-display);
  font-size: var(--vf-fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--vf-tracking-wide);
  color: var(--vf-text-2);
  background: var(--vf-surface-2);
  padding: var(--vf-3) var(--vf-4);
  border-bottom: 1px solid var(--vf-line);
}
tbody td, tbody th {
  padding: var(--vf-3) var(--vf-4);
  border-bottom: 1px solid var(--vf-line-soft);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--vf-surface-2); }
.set-volume, .total-volume, .est-calories { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Wide tables scroll horizontally on small screens instead of overflowing. */
.per-client, .deltas, .prs { display: table; }
@media (max-width: 560px) {
  main > section { overflow-x: auto; }
}

/* ---------- Definition lists -------------------------------------- */
dl {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: var(--vf-2) var(--vf-4);
  margin: 0;
}
dt { font-weight: 700; color: var(--vf-text-2); }
dd { margin: 0; color: var(--vf-text); }

/* ---------- Banners / alerts -------------------------------------- */
.banner {
  display: flex;
  align-items: center;
  gap: var(--vf-3);
  padding: var(--vf-3) var(--vf-4);
  border-radius: var(--vf-r-md);
  font-size: var(--vf-fs-sm);
  font-weight: 600;
  border: 1px solid transparent;
  margin: 0 0 var(--vf-4);
}
.banner::before { content: "!"; font-weight: 800; }
.banner-error {
  background: color-mix(in srgb, var(--vf-danger) 12%, var(--vf-surface));
  color: var(--vf-danger);
  border-color: color-mix(in srgb, var(--vf-danger) 35%, transparent);
}
.error, p.error {
  color: var(--vf-danger);
  font-weight: 600;
}
.disclaimer {
  margin-top: var(--vf-6);
  padding-top: var(--vf-3);
  border-top: 1px solid var(--vf-line);
  color: var(--vf-text-3);
  font-size: var(--vf-fs-xs);
}

/* ---------- Clients ----------------------------------------------- */
.filter-links { font-weight: 600; display: flex; gap: var(--vf-2); align-items: center; flex-wrap: wrap; }
.inline-new {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--vf-4);
}
.inline-new label { margin: 0; flex: 1 1 14rem; }

/* ---------- Dashboard --------------------------------------------- */
.dash-links { margin: 0; font-weight: 600; }
.dash-grid {
  display: grid;
  gap: var(--vf-4);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
.dash-grid > section {
  margin-bottom: 0;
  background: var(--vf-surface);
  border: 1px solid var(--vf-line-soft);
  border-radius: var(--vf-r-lg);
  padding: var(--vf-5);
  box-shadow: var(--vf-shadow-sm);
}
.dash-grid > section > h2:first-child { margin-top: 0; }

/* ---------- Empty states ------------------------------------------ */
.empty {
  color: var(--vf-text-3);
  font-style: italic;
  padding: var(--vf-3) 0;
}
.vf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--vf-1);
  padding: var(--vf-4) 0;
}
.vf-empty .empty { padding: 0; }
.vf-empty-svg { opacity: 0.9; }

/* ---------- Charts ------------------------------------------------ */
.chart-card h3 { margin-top: 0; }
[id^="chart-"] { min-height: 60px; }

/* ---------- Photos ------------------------------------------------ */
.photo-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vf-3);
  margin: var(--vf-3) 0;
}
.photo-thumb, .photo-timeline figure { margin: 0; }
.photo-thumb img,
.profile-photo,
.compare-pair img {
  border-radius: var(--vf-r-md);
  border: 1px solid var(--vf-line);
  box-shadow: var(--vf-shadow-sm);
  display: block;
}
.photo-thumb figcaption,
.compare-pair figcaption {
  font-size: var(--vf-fs-xs);
  color: var(--vf-text-3);
  margin-top: var(--vf-1);
}
.compare-pair { display: flex; flex-wrap: wrap; gap: var(--vf-5); }
.compare-controls { display: flex; flex-wrap: wrap; gap: var(--vf-4); }
.storage-usage { font-size: var(--vf-fs-sm); color: var(--vf-text-2); }

/* Styled placeholder slot for real photos the owner adds later. */
.vf-photo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--vf-2);
  aspect-ratio: 4 / 5;
  width: 160px;
  border: 2px dashed var(--vf-line);
  border-radius: var(--vf-r-md);
  color: var(--vf-text-3);
  background:
    repeating-linear-gradient(45deg,
      var(--vf-surface-2) 0 10px, var(--vf-surface) 10px 20px);
  font-size: var(--vf-fs-xs);
  text-align: center;
}

/* ---------- Location picker --------------------------------------- */
.location-picker .saved-locations ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--vf-2);
  padding: 0;
  margin: var(--vf-2) 0;
}
.location-picker .saved-locations button { min-height: 38px; }
.leaflet-map { border-radius: var(--vf-r-md); overflow: hidden; border: 1px solid var(--vf-line); }
.location-results button {
  width: 100%;
  text-align: left;
  background: var(--vf-surface);
  color: var(--vf-text);
  border-color: var(--vf-line);
  flex-direction: column;
  align-items: flex-start;
}

/* ---------- Template builder -------------------------------------- */
.template-items { list-style: none; padding: 0; display: grid; gap: var(--vf-3); }
.template-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--vf-3);
  padding: var(--vf-3) var(--vf-4);
  background: var(--vf-surface-2);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-r-md);
}
.template-item .item-name {
  font-family: var(--vf-font-display);
  font-weight: 700;
  flex: 1 1 100%;
}
.template-item label { margin: 0; flex: 1 1 5rem; }

/* ---------- Session totals ---------------------------------------- */
.session-totals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vf-5);
  padding: var(--vf-4);
  margin-top: var(--vf-4);
  background: linear-gradient(160deg, var(--vf-ink) 0%, var(--vf-ink-2) 100%);
  color: var(--vf-on-dark);
  border-radius: var(--vf-r-lg);
}
.session-totals strong { color: var(--vf-on-dark-2); font-weight: 600; }
.session-totals .total-volume,
.session-totals .est-calories {
  font-family: var(--vf-font-display);
  font-size: var(--vf-fs-lg);
  color: var(--vf-volt);
}

/* ---------- Report period selector -------------------------------- */
.report-period, .report-actions { display: flex; align-items: flex-end; gap: var(--vf-4); flex-wrap: wrap; }
.report-period label { margin: 0; }
.report-period select { width: auto; min-width: 10rem; }
.subtitle { color: var(--vf-text-2); margin-top: calc(-1 * var(--vf-2)); }

/* ---------- Utility ----------------------------------------------- */
.muted { color: var(--vf-text-3); }
.vf-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Staggered entrance for primary content (respects reduced-motion). */
@keyframes vf-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
main > h1,
main > section { animation: vf-rise var(--vf-dur-slow) var(--vf-ease) both; }
main > section:nth-of-type(1) { animation-delay: 60ms; }
main > section:nth-of-type(2) { animation-delay: 120ms; }
main > section:nth-of-type(3) { animation-delay: 180ms; }
main > section:nth-of-type(4) { animation-delay: 240ms; }

/* ---------- Responsive -------------------------------------------- */
@media (min-width: 720px) {
  .add-session form,
  #progress .add-measurement form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--vf-4);
  }
  .add-session form > button,
  .add-session form fieldset,
  #progress .add-measurement form > button { grid-column: 1 / -1; }
}
