/* ---------------------------------------------------------------------
   FitTrack -- mobile-first, fuer Daumenbedienung im Gym ausgelegt.
   Aesthetik: dunkel, kontrastreich, "Hantelscheiben & Stoppuhr" statt
   freundliches SaaS-Pastell.
--------------------------------------------------------------------- */

:root {
  --bg: #121316;
  --bg-elevated: #1b1d22;
  --bg-card: #1f2228;
  --text: #f4f4f2;
  --text-muted: #8d929c;
  --accent: #c8ff3d;
  --accent-2: #5fb8ff;
  --accent-contrast: #0c0d0f;
  --danger: #ff5a4d;
  --success: #8fffb0;
  --border: #2a2d34;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Anton", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

a { color: var(--accent); }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  -webkit-tap-highlight-color: transparent;
  /* Verhindert, dass schnelles Doppel-Tippen (z.B. auf die +/- Stepper)
     vom Browser als "Doppel-Tap zum Zoomen" interpretiert wird. Erlaubt
     weiterhin normales Scrollen/Pinch-Zoom, blockt nur die Doppel-Tap-Geste. */
  touch-action: manipulation;
}

body {
  padding-bottom: env(safe-area-inset-bottom);
  min-height: 100vh;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px calc(40px + env(safe-area-inset-bottom));
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.5px; margin: 0; }

.text-muted { color: var(--text-muted); font-size: 14px; }
.link-muted { color: var(--text-muted); text-decoration: none; font-size: 14px; }

/* --- Branding ---------------------------------------------------------- */
.brand {
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}
.brand span { color: var(--accent); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--accent); color: var(--accent-contrast); }
.btn--secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn--ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); min-height: 40px; padding: 0 16px; }
.btn--danger { background: var(--danger); color: #1a0a08; }
.btn--block { width: 100%; }
.btn--xl { width: 100%; min-height: 64px; font-size: 19px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
}

/* --- Formulare ---------------------------------------------------------- */
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.2px; }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.16);
}
.field-error { display: block; color: var(--danger); font-size: 12px; margin-top: 4px; }

/* Selects bekommen einen eigenen, zum Theme passenden Pfeil statt des
   browser-eigenen (der auf Dark-Mode-Seiten meist deplatziert wirkt). */
select.field__input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-elevated);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c8ff3d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}
select.field__input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238d929c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
select.field__input:active { background-color: var(--bg-card); }

/* --- Flash-Meldungen ----------------------------------------------------- */
.flash-stack {
  position: fixed;
  /* Genug Abstand zur Kopfzeile (Logo/Burger-Button/Zurueck-Pfeil), damit
     eine Erfolgsmeldung (z.B. nach Login/Registrierung) diese nicht
     ueberlagert und Taps darauf blockiert. */
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  left: 12px;
  right: 12px;
  z-index: 50;
  pointer-events: none;
}
.flash {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
  transition: opacity 0.3s ease;
}
.flash--error { background: var(--danger); color: #1a0a08; }
.flash--success { background: var(--success); color: #062012; }
.flash--hide { opacity: 0; }

/* --- Auth-Screen ---------------------------------------------------------- */
.auth-screen { display: flex; flex-direction: column; gap: 28px; padding-top: 18vh; }
.auth-form { display: flex; flex-direction: column; }
.auth-switch { text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--accent); }

/* --- Dashboard ------------------------------------------------------------ */
.dashboard__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dashboard__cta { text-align: center; margin-bottom: 32px; }
.dashboard__hint { margin-top: 8px; }
.dashboard__section { margin-bottom: 28px; }
.dashboard__section h2 { font-size: 18px; margin-bottom: 10px; }

.session-list { display: flex; flex-direction: column; gap: 8px; }
.session-list__item {
  display: flex;
  justify-content: space-between;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.session-list__item:active { background: var(--border); }

/* --- Workout-Screen -------------------------------------------------------- */
.workout-screen__header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin-bottom: 18px;
  background: var(--bg);
  z-index: 10;
}
.workout-screen__timer { font-family: var(--font-display); font-size: 22px; color: var(--accent); }

.exercise-cards { display: flex; flex-direction: column; gap: 14px; }

.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.exercise-card__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  color: var(--text);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-mono);
}
.exercise-card__header:active { background: var(--bg-elevated); }
.exercise-card__title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.exercise-card__name { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.3px; }
.exercise-card__last { font-size: 12px; color: var(--text-muted); }
.exercise-card__chevron {
  font-size: 16px;
  color: var(--text-muted);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.exercise-card.is-expanded .exercise-card__chevron { transform: rotate(180deg); color: var(--accent); }
.exercise-card__body { padding: 0 16px 16px; }

.set-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
}
.set-row__number { color: var(--text-muted); }
.set-row__value { font-weight: 700; }
.set-row__delete {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 22px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.set-row__delete:active { background: rgba(255, 90, 77, 0.18); }

.set-input { display: flex; gap: 10px; margin-bottom: 14px; }
.set-input__group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.set-input__label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  padding: 4px;
}
.stepper__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg);
  color: var(--accent);
  font-size: 22px;
  font-family: var(--font-mono);
  cursor: pointer;
}
.stepper__btn:active { background: var(--accent); color: var(--accent-contrast); }
.stepper__value {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
}

/* --- Burger-Menü / Nav-Drawer -------------------------------------------- */
.icon-btn--ghost { background: transparent; border: 1px solid var(--border); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(78vw, 300px);
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer__link {
  display: block;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
}
.nav-drawer__link:active { background: var(--bg-card); }
.nav-drawer__link--muted { color: var(--text-muted); font-weight: 400; margin-top: 12px; }
.nav-drawer__link.is-current { color: var(--accent); background: var(--bg-card); }
.nav-drawer__divider { height: 1px; background: var(--border); margin: 12px 0; }

.header-actions { display: flex; gap: 8px; }

/* --- Dashboard: Split/Tag-Auswahl ---------------------------------------- */
.day-group__list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

/* --- Workout: Aktiver Split / Aktiver Tag -------------------------------- */
.active-context {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px 0 22px;
}
.active-context__box {
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  background: var(--bg-elevated);
}
.active-context__box--day {
  width: 84%;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  background: transparent;
}

.exercise-card__header--static { cursor: default; }
.exercise-card__header--static:active { background: none; }

.summary-date { text-align: center; margin: -8px 0 20px; font-size: 13px; }

/* --- Splits-Seite --------------------------------------------------------- */
.splits-new { margin-bottom: 28px; }
.splits-new h2 { font-size: 16px; color: var(--text-muted); margin-bottom: 10px; }
.splits-new__form { display: flex; gap: 8px; }
.splits-new__form .field__input { flex: 1; }

.splits-list { display: flex; flex-direction: column; gap: 18px; }

.split-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.split-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.split-card__toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text);
  padding: 6px 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-mono);
}
.split-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.split-card__chevron {
  font-size: 16px;
  color: var(--text-muted);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.split-card.is-expanded .split-card__chevron { transform: rotate(180deg); color: var(--accent); }
.split-card__body { margin-top: 14px; }
.split-card__days { display: flex; flex-direction: column; gap: 12px; }

.split-card__new-day { display: flex; gap: 8px; margin-top: 14px; }
.split-card__new-day .field__input { flex: 1; min-height: 44px; }
.split-card__new-day .btn { min-height: 44px; white-space: nowrap; }

.split-day {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.split-day__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.split-day__title { display: flex; align-items: center; gap: 4px; min-width: 0; }
.split-day__title h3 {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.split-day__exercises {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.split-day__exercise {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 14px;
}
.split-day__exercise-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.split-day__new-exercise { display: flex; gap: 8px; }
.split-day__new-exercise .field__input { flex: 1; min-height: 40px; font-size: 14px; }
.split-day__new-exercise .btn { min-height: 40px; font-size: 13px; white-space: nowrap; }

/* --- Drag zum Umsortieren (Splits/Tage, Tage/Uebungen) ------------------- */
.reorder-item { transition: transform 0.15s ease; }
.reorder-item.is-dragging {
  position: relative;
  z-index: 5;
  transition: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.reorder-handle {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  flex-shrink: 0;
}
.is-dragging .reorder-handle { cursor: grabbing; color: var(--accent); }


/* --- Dashboard: Statistik-Bereiche --------------------------------------- */
.stats-section { margin-bottom: 32px; }
.stats-section h2 { font-size: 16px; color: var(--text-muted); margin-bottom: 12px; }
.stats-section__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.stats-section__top h2 { margin-bottom: 0; }

.pill-toggle-group { display: flex; gap: 6px; }
.pill-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
}
.pill-toggle.is-active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); font-weight: 700; }

.stats-hint { text-align: center; margin-top: 10px; font-size: 13px; }

/* Besuchsfrequenz: reines CSS, keine SVG/Canvas-Mathematik noetig.
   Y-Achse links bleibt fix stehen, die Seiten daneben sind horizontal
   wischbar (eine Seite = ein Monat in Wochen-Ansicht, bzw. 4 Monate in
   Monats-Ansicht). Skala (max/mid/0) ist ueber ALLE Seiten gleich, damit
   Balkenhoehen beim Wischen vergleichbar bleiben (wie bei Apple Health). */
.freq-chart__plot { display: flex; gap: 8px; }

.freq-chart__axis {
  flex-shrink: 0;
  width: 26px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  font-size: 10px;
  color: var(--text-muted);
  padding: 2px 0;
}

.freq-chart__scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.freq-chart__scroll::-webkit-scrollbar { display: none; }

.freq-chart__pages { display: flex; }
.freq-chart__page {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.freq-chart__page-title {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 4px;
}
.freq-chart__page-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 10px;
  background-color: var(--bg-card);
  /* Leichtes Gitternetz (0% / 50% / 100%) -- bewusst dezent. */
  background-image: repeating-linear-gradient(
    to top,
    var(--border) 0,
    var(--border) 1px,
    transparent 1px,
    transparent 50%
  );
}
.freq-chart__col { flex: 1; display: flex; justify-content: center; align-items: flex-end; height: 100%; min-width: 0; }
.freq-chart__bar {
  width: 65%;
  min-width: 4px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
  transition: height 0.25s ease;
}
.freq-chart__page-labels { display: flex; gap: 6px; margin-top: 8px; }
.freq-chart__page-labels span {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Verlauf: Liniendiagramm per SVG (Skalierung pro Linie unabhaengig, siehe
   dashboard.js -- es geht um den Trend pro Kennzahl, nicht um absoluten
   Vergleich zwischen kg/Wdh./Saetzen auf derselben Achse). */
.stats-selectors { display: flex; gap: 10px; margin-bottom: 16px; }
.stats-selectors .field__input { flex: 1; min-height: 48px; font-size: 14px; }

.progress-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 100px;
}

.progress-mini-chart { margin-bottom: 18px; }
.progress-mini-chart:last-of-type { margin-bottom: 8px; }
.progress-mini-chart__title {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.progress-mini-chart__svg {
  width: 100%;
  height: 130px;
  display: block;
  border-radius: var(--radius-sm);
  /* Leichtes Gitternetz (0% / 50% / 100%) -- bewusst dezent, nur als
     Orientierungshilfe, keine harten Linien. */
  background-image: repeating-linear-gradient(
    to top,
    rgba(255, 255, 255, 0.07) 0,
    rgba(255, 255, 255, 0.07) 1px,
    transparent 1px,
    transparent 50%
  );
}

.progress-chart__labels {
  position: relative;
  height: 16px;
  margin-top: 4px;
}
.progress-chart__labels span {
  position: absolute;
  top: 0;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Datenschutz-/Rechtstext-Seite --------------------------------------- */
.legal-page { padding-bottom: 60px; }
.legal-page__header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.legal-page__title { font-size: 22px; margin: 4px 0 18px; color: var(--accent); }
.legal-page h3 { font-size: 16px; margin: 26px 0 8px; }
.legal-page p { line-height: 1.6; margin: 0 0 10px; font-size: 14px; }
.legal-page ul { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; font-size: 14px; }
.legal-page li { margin-bottom: 4px; }
.legal-page code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}
.legal-page__hint {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 24px;
}

.auth-legal-hint { font-size: 12px; color: var(--text-muted); text-align: center; margin: -4px 0 14px; }

/* --- Body-Bereich: Gewicht & Koerpermasse -------------------------------- */
/* Eigene Akzentfarbe (Blau statt Lime), damit sich der Bereich vom
   Workout/Splits-Teil der App abhebt, ohne ein neues System einzufuehren --
   gleiche Farbe wie die "Saetze"-Linie im Verlauf-Chart. */

.body-screen__title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent-2);
  margin: 4px 0 22px;
}

.body-form { margin-bottom: 36px; }

.field__input--body:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(95, 184, 255, 0.18);
}
select.field__input--body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235fb8ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Datumsfeld: natives Picker-Icon des Browsers an Dark Mode anpassen. */
input[type="date"].field__input { color-scheme: dark; }

.body-form__date { margin-bottom: 18px; }

.body-form__weight { margin-bottom: 22px; }
.body-form__weight-row,
.body-form__measure-row { position: relative; display: flex; align-items: center; }
.body-form__weight-input {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent-2);
  padding-right: 52px;
}
.body-form__weight-row .body-form__unit { right: 18px; font-size: 16px; }
.body-form__unit {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.body-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.btn--body { background: var(--accent-2); color: #07182a; }

.body-history__title { font-size: 16px; color: var(--text-muted); margin-bottom: 14px; }
.body-history__list { display: flex; flex-direction: column; gap: 10px; }

.body-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.body-entry__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.body-entry__date { font-family: var(--font-mono); font-weight: 700; font-size: 14px; }

.body-entry__values { display: flex; flex-wrap: wrap; gap: 8px; }
.body-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.body-chip--accent {
  background: rgba(95, 184, 255, 0.12);
  border-color: var(--accent-2);
  color: var(--accent-2);
  font-weight: 700;
}
