/* ─── VEKTORSTRONG Design System — Notebook UI ─────────── */
/* Backup: styles.backup.css                                */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Design Tokens ──────────────────────────────────── */
:root {
  /* Palette — Platinum Iron Gall Ink Series */
  --color-paper: #F6F3EA;
  --color-ink: #3D2409;          /* Khaki Black  — primary text */
  --color-ink-light: #7A5C3A;    /* Khaki Black light — muted text */
  --color-ink-border: #5C3317;   /* Sepia Black  — borders */
  --color-strength: #2C3D1A;     /* Forest Black — primary accent */
  --color-endurance: #4A3D5C;    /* Lavender Black — secondary accent */
  --color-efficiency: #7A6B1A;   /* Citrus Black — efficiency/warning */
  --color-highlight: #F7E27D;
  --color-error: #7A1F2E;        /* Cassis Black — error/danger */
  --color-success: #2C3D1A;      /* Forest Black — success */
  --color-warning: #7A6B1A;      /* Citrus Black — warning */
  --color-surface: rgba(255,255,255,0.4);
  --color-surface-hover: rgba(255,255,255,0.65);

  /* Semantic aliases kept for legacy JS inline styles */
  --bg: var(--color-paper);
  --bg-secondary: #EDE9DC;
  --surface: var(--color-surface);
  --surface-hover: var(--color-surface-hover);
  --border: var(--color-ink-border);
  --text: var(--color-ink);
  --text-muted: var(--color-ink-light);
  --accent: var(--color-strength);
  --accent-hover: #1E2D10;
  --success: var(--color-success);
  --warning: var(--color-warning);
  --danger: var(--color-error);
  --error: var(--color-error);
  --error-bg: rgba(122, 31, 46, 0.08);
  --warning-bg: rgba(122, 107, 26, 0.08);
  --radius: 12px;
  --font-heading: 'Special Elite', cursive;
  --font-body: 'Courier Prime', 'Courier New', monospace;
  --font: var(--font-body);

  /* Spacing scale: 4 8 16 24 32 48 64 80 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;

  /* Shadow */
  --shadow-paper: 2px 2px 0px rgba(0,0,0,0.15);
}

/* ─── Base ───────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background-color: var(--color-paper);
  color: var(--color-ink);
  display: flex;
  min-height: 100vh;
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 6px 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

/* ─── Component Library ──────────────────────────────── */

/* notebook-card */
.notebook-card,
.card,
.stat-card {
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

/* notebook-title */
.notebook-title,
.card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

/* notebook-section */
.notebook-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* metric-number */
.metric-number,
.stat-value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-ink);
  line-height: 1.1;
}

/* metric-label */
.metric-label,
.stat-label {
  font-size: 0.8rem;
  color: var(--color-ink-light);
  margin-top: var(--space-1);
}

/* hand-underline */
.hand-underline {
  border-bottom: 4px solid var(--color-strength);
  display: inline-block;
  padding-bottom: var(--space-1);
}

/* progress-bar / progress-fill */
.progress-bar {
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 8px;
  border-radius: 4px;
}

/* Semantic fill colors */
.progress-fill.strength,
.fill-strength { background: var(--color-strength); }
.progress-fill.endurance,
.fill-endurance { background: var(--color-endurance); }
.progress-fill.efficiency,
.fill-efficiency { background: var(--color-efficiency); }

/* ─── Sidebar ────────────────────────────────────────── */
.sidebar {
  width: 220px;
  background: rgba(255,255,255,0.55);
  border-right: 1px solid var(--color-ink-border);
  padding: var(--space-4) 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(4px);
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 104px;
  box-sizing: border-box;
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-ink-border);
  flex-shrink: 0;
}

.sidebar-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav-links {
  list-style: none;
  padding: var(--space-3) 0;
  flex: 1;
}

.nav-links li a {
  display: block;
  padding: 10px var(--space-3);
  color: var(--color-ink-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: all 200ms ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-ink);
  background: rgba(255,255,255,0.6);
  border-right: 3px solid var(--color-strength);
}

/* ─── Sidebar User Section ──────────────────────────── */
.sidebar-user {
  padding: var(--space-3);
  border-top: 1px solid var(--color-ink-border);
  margin-top: auto;
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-2) + 4px;
  margin-bottom: var(--space-2) + 4px;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius);
  transition: background 200ms ease;
  gap: 12px;
  margin-bottom: 12px;
}

.user-info:hover,
.user-info:focus-visible {
  background: rgba(255,255,255,0.6);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-ink-border);
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.75rem;
  color: var(--color-ink-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn,
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.4);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
  min-height: 44px;
  text-decoration: none;
}

.btn:hover,
.btn-logout:hover {
  background: rgba(255,255,255,0.7);
  box-shadow: var(--shadow-paper);
}

.btn-primary {
  background: var(--color-strength);
  border-color: var(--color-strength);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: rgba(255,255,255,0.4);
  border-color: var(--color-ink-border);
  color: var(--color-ink);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.7);
}

.btn-danger {
  border-color: var(--color-error);
  color: var(--color-error);
  background: transparent;
}

.btn-danger:hover {
  background: var(--color-error);
  color: #fff;
}

.btn-logout {
  width: 100%;
  justify-content: center;
}

.btn-logout:hover {
  background: var(--color-error);
  border-color: var(--color-error);
  color: #fff;
}

.btn-sm {
  padding: var(--space-1) 10px;
  font-size: 0.75rem;
  min-height: 32px;
}

.btn-compact {
  padding: var(--space-1) var(--space-2);
  min-height: 44px;
  font-size: 0.8rem;
}

/* ─── Content Layout ─────────────────────────────────── */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.topbar {
  height: 104px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 var(--space-5);
  border-bottom: 1px solid var(--color-ink-border);
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.topbar h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.topbar-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-ink-light);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.page-content {
  padding: var(--space-4) var(--space-5);
  flex: 1;
}

/* ─── Cards ──────────────────────────────────────────── */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

/* ─── Grid ───────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Equipment Ledger ─────────────────────────────────── */

.ledger-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  gap: var(--space-3);
  flex-wrap: wrap;
}

.ledger-count {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.equipment-ledger-card .ledger-table,
.ledger-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ledger-header,
.ledger-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(160px, 1fr);
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
}

.ledger-header {
  background: rgba(0,0,0,0.04);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.ledger-row {
  border-bottom: 1px dotted var(--border);
  background: rgba(255,255,255,0.5);
}

.ledger-row:last-child {
  border-bottom: none;
}

.ledger-fieldset {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.ledger-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.ledger-input {
  width: 100%;
  border: 1px dashed transparent;
  border-radius: calc(var(--radius) / 2);
  padding: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
}

.ledger-row[data-mode="edit"] .ledger-input {
  border-color: var(--border);
  background: rgba(255,255,255,0.8);
}

.ledger-row[data-mode="view"] .ledger-input {
  pointer-events: none;
}

.ledger-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.ledger-actions .btn {
  min-width: 120px;
  justify-content: center;
}

.ledger-row[data-mode="edit"] .btn-primary {
  box-shadow: 0 0 0 2px rgba(44, 61, 26, 0.15);
}

@media (max-width: 720px) {
  .ledger-header,
  .ledger-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .ledger-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .ledger-actions {
    flex-direction: column;
  }

  .ledger-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ─── Tables ─────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 12px var(--space-3);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-ink-border);
  color: var(--color-ink);
}

th {
  color: var(--color-ink-light);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:hover { background: rgba(255,255,255,0.4); }

/* ─── Forms ──────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-3);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-ink-light);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-family: var(--font-body);
  min-height: 44px;
  transition: border-color 200ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
  outline: none;
  border-color: var(--color-strength);
}

.form-control:read-only {
  background: rgba(255,255,255,0.3);
  cursor: default;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

/* ─── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
}

.badge-success { background: rgba(46,155,75,0.12); color: var(--color-endurance); }
.badge-warning { background: rgba(230,126,34,0.12); color: var(--color-efficiency); }
.badge-danger  { background: rgba(192,57,43,0.12);  color: var(--color-error); }
.badge-info    { background: rgba(74,108,247,0.12); color: var(--color-strength); }

/* ─── Modal ──────────────────────────────────────────── */
.modal,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,28,28,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-3);
  backdrop-filter: blur(2px);
}

.modal-content {
  background: var(--color-paper);
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-ink-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.4rem;
}

.modal-body {
  padding: var(--space-3);
}

.modal-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--color-ink-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.modal-close,
.btn-close {
  background: none;
  border: none;
  color: var(--color-ink-light);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background 200ms ease;
}

.modal-close:hover,
.btn-close:hover {
  background: rgba(255,255,255,0.5);
  color: var(--color-ink);
}

/* ─── Loading / Empty ────────────────────────────────── */
.loading, .empty {
  text-align: center;
  padding: var(--space-6);
  color: var(--color-ink-light);
  font-size: 0.875rem;
}

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: var(--color-strength);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Utility ────────────────────────────────────────── */
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.gap-8 { gap: var(--space-2); }
.gap-16 { gap: var(--space-3); }
.mt-16 { margin-top: var(--space-3); }
.mb-8 { margin-bottom: var(--space-2); }
.text-muted { color: var(--color-ink-light); }
.text-sm { font-size: 0.8rem; }

/* Semantic color utilities */
.text-strength { color: var(--color-strength); }
.text-endurance { color: var(--color-endurance); }
.text-efficiency { color: var(--color-efficiency); }
.text-success { color: var(--color-success); font-weight: 600; }
.text-warning { color: var(--color-warning); font-weight: 600; }
.text-danger  { color: var(--color-error); font-weight: 600; }

/* ─── Workout Detail Page ────────────────────────────── */
.detail-back {
  margin-bottom: var(--space-3);
}

.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.detail-section-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-ink-light);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-ink-border);
}

/* ─── Workout Detail Modal ───────────────────────────── */
.modal-view {
  max-width: 540px;
}

.workout-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.workout-meta-item {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}

.workout-meta-label {
  font-size: 0.68rem;
  color: var(--color-ink-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.workout-meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
}

.workout-notes {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius);
  padding: 12px var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 0.875rem;
}

.workout-notes strong {
  display: block;
  font-size: 0.68rem;
  color: var(--color-ink-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.workout-notes p {
  color: var(--color-ink);
  line-height: 1.5;
}

.exercise-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.exercise-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.exercise-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-ink-border);
}

.exercise-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--color-ink-border);
  font-size: 0.68rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-ink-light);
}

.exercise-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
}

.exercise-card-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.exercise-stat {
  padding: 10px 14px;
  border-right: 1px solid var(--color-ink-border);
}

.exercise-stat:last-child {
  border-right: none;
}

.exercise-stat-label {
  font-size: 0.68rem;
  color: var(--color-ink-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.exercise-stat-value {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-ink);
}

@media (max-width: 480px) {
  .workout-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exercise-card-body {
    grid-template-columns: repeat(2, 1fr);
  }

  .exercise-stat:nth-child(2) {
    border-right: none;
  }

  .exercise-stat:nth-child(3),
  .exercise-stat:nth-child(4) {
    border-top: 1px solid var(--color-ink-border);
  }
}

/* ─── Mobile Menu Toggle ─────────────────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-ink);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-2);
  margin-right: var(--space-3);
  border-radius: var(--radius);
  min-height: 44px;
  min-width: 44px;
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.5);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,28,28,0.4);
  z-index: 99;
}

/* ─── Mobile Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    width: 260px;
    z-index: 100;
    transition: left 250ms ease;
    padding-top: 0;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar.open + .sidebar-overlay {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .topbar {
    padding: var(--space-3);
    display: flex;
    align-items: center;
  }

  .topbar h1 {
    font-size: 1.3rem;
  }

  .page-content {
    padding: var(--space-3);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card,
  .stat-card,
  .notebook-card {
    padding: var(--space-3);
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .modal-content {
    width: 95%;
    margin: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 10px 12px;
  }

  .btn {
    padding: 10px var(--space-3);
  }

  .btn-sm {
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .metric-number,
  .stat-value {
    font-size: 1.4rem;
  }

  .logo {
    font-size: 1.2rem;
    padding: 0 var(--space-3) var(--space-3);
  }

  .nav-links li a {
    padding: 12px var(--space-3);
    font-size: 0.9rem;
  }
}

/* ─── Markdown Content ────────────────────────────────── */
.markdown-content {
  color: var(--color-ink);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  font-family: var(--font-heading);
  margin-top: var(--space-4);
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.3;
}

.markdown-content h1 { font-size: 1.6rem; }
.markdown-content h2 {
  font-size: 1.3rem;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-ink-border);
}
.markdown-content h3 { font-size: 1.1rem; }

.markdown-content h2:first-child {
  margin-top: 0;
}

.markdown-content p {
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: var(--space-4);
  margin-bottom: var(--space-3);
}

.markdown-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.markdown-content li strong {
  display: inline-block;
  margin-right: var(--space-1);
}

.markdown-content code {
  background: rgba(255,255,255,0.6);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  color: var(--color-ink);
}

.markdown-content pre {
  background: rgba(255,255,255,0.5);
  padding: 12px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 12px;
  border: 1px solid var(--color-ink-border);
}

.markdown-content pre code {
  background: none;
  padding: 0;
}

.markdown-content blockquote {
  border-left: 3px solid var(--color-strength);
  padding-left: 12px;
  margin: 12px 0;
  color: var(--color-ink-light);
  font-style: italic;
}

.markdown-content strong {
  font-weight: 600;
  color: var(--color-ink);
}

.markdown-content em {
  font-style: italic;
}

.markdown-content a {
  color: var(--color-strength);
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

.markdown-content hr {
  border: none;
  border-top: 1px solid var(--color-ink-border);
  margin: var(--space-3) 0;
  max-width: 100%;
  box-sizing: border-box;
}

.markdown-content {
  max-width: 100%;
  overflow-x: hidden;
  word-wrap: break-word;
}

/* ─── Workout Detail Tabs ────────────────────────────── */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-ink-border);
  margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) var(--space-3);
  padding: 0 var(--space-2);
}

.detail-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--color-ink-light);
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
  margin-bottom: -1px;
}

.detail-tab:hover {
  color: var(--color-ink);
}

.detail-tab.active {
  color: var(--color-ink);
  border-bottom-color: var(--color-strength);
}

.detail-tab-panel {
  padding-top: var(--space-1);
  max-width: 100%;
  overflow-x: hidden;
}

.log-empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-6) 0;
}

.callout {
  background: rgba(255,255,255,0.5);
  border-left: 3px solid var(--color-strength);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-3) var(--space-3);
}

/* ─── Stats Table ────────────────────────────────────── */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.stats-table thead tr:first-child th {
  background: rgba(255,255,255,0.5);
  color: var(--color-strength);
  font-weight: 600;
  text-align: center;
  padding: 10px var(--space-2);
  border: 1px solid var(--color-ink-border);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-family: var(--font-body);
}

.stats-plane-header {
  background: rgba(255,255,255,0.3) !important;
  color: var(--color-ink-light) !important;
  text-align: left !important;
  min-width: 90px;
  vertical-align: middle;
}

.stats-sub-header {
  background: rgba(255,255,255,0.2) !important;
  color: var(--color-ink-light) !important;
  font-weight: 500;
  text-align: center;
  padding: var(--space-2) 6px !important;
  border: 1px solid var(--color-ink-border);
  font-size: 0.68rem;
  white-space: nowrap;
}

.stats-vector-header {
  border-left: 2px solid var(--color-ink-border) !important;
}

.stats-plane-cell {
  font-weight: 600;
  color: var(--color-ink);
  padding: 10px 12px;
  border: 1px solid var(--color-ink-border);
  white-space: nowrap;
}

.stats-cell {
  text-align: center;
  padding: 10px var(--space-2);
  border: 1px solid var(--color-ink-border);
  color: var(--color-ink-light);
}

tr:hover .stats-cell { background: rgba(255,255,255,0.4) !important; }

.stats-vector-0 { background: rgba( 44,  61,  26, 0.06); } /* Forest Black */
.stats-vector-1 { background: rgba( 74,  61,  92, 0.06); } /* Lavender Black */
.stats-vector-2 { background: rgba(122, 107,  26, 0.06); } /* Citrus Black */
.stats-vector-3 { background: rgba(122,  31,  46, 0.06); } /* Cassis Black */

.stats-table thead tr:first-child th:nth-child(2) { background: rgba( 44,  61,  26, 0.14) !important; color: var(--color-strength)   !important; }
.stats-table thead tr:first-child th:nth-child(3) { background: rgba( 74,  61,  92, 0.14) !important; color: var(--color-endurance)  !important; }
.stats-table thead tr:first-child th:nth-child(4) { background: rgba(122, 107,  26, 0.14) !important; color: var(--color-efficiency) !important; }
.stats-table thead tr:first-child th:nth-child(5) { background: rgba(122,  31,  46, 0.14) !important; color: var(--color-error)      !important; }

/* ═══════════════════════════════════════════════════════
   DASHBOARD HOMEPAGE — Pen & Ink Design
   ═══════════════════════════════════════════════════════ */

/* ─── Pen-ink animations ─────────────────────────────── */

/* Text fades in like ink soaking into paper */
@keyframes ink-appear {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress bar draws itself left-to-right like a pen stroke */
@keyframes ink-draw {
  from { width: 0; }
  to   { width: var(--target-width, 0%); }
}

/* Ruled underline draws across */
@keyframes rule-draw {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* Subtle stamp-in for stat numbers */
@keyframes ink-stamp {
  0%   { opacity: 0; transform: scale(0.92); }
  60%  { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

/* ─── Dashboard layout ───────────────────────────────── */
.dash-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  animation: ink-appear 300ms ease both;
}

/* ─── Header band ────────────────────────────────────── */
.dash-header {
  border-bottom: 2px solid var(--color-ink-border);
  padding-bottom: var(--space-3);
  position: relative;
}

.dash-header::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--color-ink-light);
  margin-top: 4px;
  animation: rule-draw 600ms ease 200ms both;
}

.dash-header-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-ink);
  letter-spacing: 0.03em;
}

.dash-header-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-ink-light);
  margin-top: var(--space-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Stat ledger row ────────────────────────────────── */
.dash-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  background: rgba(255,255,255,0.35);
}

.dash-ledger-item {
  padding: var(--space-4) var(--space-3);
  border-right: 1px solid var(--color-ink-border);
  animation: ink-appear 300ms ease both;
  position: relative;
}

.dash-ledger-item:last-child {
  border-right: none;
}

.dash-ledger-item:nth-child(1) { animation-delay: 100ms; }
.dash-ledger-item:nth-child(2) { animation-delay: 180ms; }
.dash-ledger-item:nth-child(3) { animation-delay: 260ms; }
.dash-ledger-item:nth-child(4) { animation-delay: 340ms; }

.dash-ledger-value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2rem;
  color: var(--color-ink);
  line-height: 1;
  animation: ink-stamp 400ms ease both;
  animation-delay: inherit;
}

.dash-ledger-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-ink-light);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ink colour accent bar on top of each ledger item */
.dash-ledger-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.dash-ledger-item:nth-child(1)::before { background: var(--color-strength); }
.dash-ledger-item:nth-child(2)::before { background: var(--color-efficiency); }
.dash-ledger-item:nth-child(3)::before { background: var(--color-endurance); }
.dash-ledger-item:nth-child(4)::before { background: var(--color-error); }

/* ─── Two-column main area ───────────────────────────── */
.dash-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.dash-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ─── Section card ───────────────────────────────────── */
.dash-section {
  background: rgba(255,255,255,0.38);
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
  animation: ink-appear 300ms ease both;
}

.dash-section-head {
  padding: var(--space-3) var(--space-3) 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--color-ink-border);
  padding-bottom: var(--space-2);
  margin-bottom: 0;
}

.dash-section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.dash-section-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-ink-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 200ms ease;
}

.dash-section-link:hover {
  color: var(--color-strength);
}

.dash-section-body {
  padding: var(--space-3);
}

/* ─── Workout log entry ──────────────────────────────── */
.dash-log-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(92,51,23,0.25);
  animation: ink-appear 250ms ease both;
}

.dash-log-entry:last-child {
  border-bottom: none;
}

.dash-log-entry:nth-child(1) { animation-delay: 100ms; }
.dash-log-entry:nth-child(2) { animation-delay: 170ms; }
.dash-log-entry:nth-child(3) { animation-delay: 240ms; }
.dash-log-entry:nth-child(4) { animation-delay: 310ms; }
.dash-log-entry:nth-child(5) { animation-delay: 380ms; }

.dash-log-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-ink);
}

.dash-log-date {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-ink-light);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.dash-log-meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-ink-light);
  text-align: right;
  white-space: nowrap;
}

/* ─── Goal bars ──────────────────────────────────────── */
.dash-goal-entry {
  margin-bottom: var(--space-3);
  animation: ink-appear 250ms ease both;
}

.dash-goal-entry:last-child { margin-bottom: 0; }

.dash-goal-entry:nth-child(1) { animation-delay: 100ms; }
.dash-goal-entry:nth-child(2) { animation-delay: 190ms; }
.dash-goal-entry:nth-child(3) { animation-delay: 280ms; }

.dash-goal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.dash-goal-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-ink);
}

.dash-goal-pct {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
}

.dash-goal-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-ink-light);
  margin-bottom: 6px;
}

.dash-goal-track {
  height: 6px;
  background: rgba(92,51,23,0.12);
  border-radius: 3px;
  overflow: hidden;
}

.dash-goal-fill {
  height: 6px;
  border-radius: 3px;
  width: 0;
  animation: ink-draw 700ms ease both;
}

.dash-goal-fill.strength  { background: var(--color-strength);  animation-delay: 200ms; }
.dash-goal-fill.endurance { background: var(--color-endurance); animation-delay: 300ms; }
.dash-goal-fill.efficiency{ background: var(--color-efficiency);animation-delay: 400ms; }
.dash-goal-fill.default   { background: var(--color-ink);       animation-delay: 200ms; }

/* ─── Next workout panel ─────────────────────────────── */
.dash-next-notes-divider {
  border: none;
  border-top: 1px dashed rgba(92,51,23,0.25);
  margin: var(--space-3) 0 var(--space-3);
}

.dash-next-notes-content {
  padding: 0 var(--space-3) var(--space-3);
}

.dash-next-notes-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-light);
  margin: 0 0 var(--space-2) 0;
  padding: 0;
}

.dash-next-notes-button {
  margin-top: var(--space-4);
}

.dash-next-empty {
  text-align: center;
  padding: var(--space-5) var(--space-3);
}

.dash-next-empty p {
  font-size: 0.8rem;
  color: var(--color-ink-light);
  margin-bottom: var(--space-3);
}

.dash-exercise-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(92,51,23,0.2);
  font-size: 0.82rem;
  animation: ink-appear 200ms ease both;
}

.dash-exercise-row:last-child { border-bottom: none; }

.dash-exercise-name {
  font-weight: 700;
  color: var(--color-ink);
}

.dash-exercise-detail {
  color: var(--color-ink-light);
  font-size: 0.75rem;
}

/* ─── Analysis card ──────────────────────────────────── */
.dash-analysis-summary {
  font-size: 0.82rem;
  color: var(--color-ink);
  line-height: 1.7;
  border-left: 3px solid var(--color-strength);
  padding-left: var(--space-3);
  margin-bottom: var(--space-3);
  animation: ink-appear 400ms ease 150ms both;
}

/* ─── Analytics type/plane rows ─────────────────────── */
.dash-analytics-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(92,51,23,0.18);
  font-size: 0.8rem;
  animation: ink-appear 200ms ease both;
}

.dash-analytics-row:last-child { border-bottom: none; }

.dash-analytics-label {
  font-weight: 700;
  color: var(--color-ink);
}

.dash-analytics-value {
  color: var(--color-ink-light);
  font-size: 0.75rem;
}

.dash-analytics-bar-wrap {
  width: 64px;
  height: 4px;
  background: rgba(92,51,23,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 var(--space-2);
}

.dash-analytics-bar {
  height: 4px;
  border-radius: 2px;
  width: 0;
  animation: ink-draw 600ms ease both;
}

/* ─── Ruled full-width section ───────────────────────── */
.dash-full {
  animation: ink-appear 300ms ease 200ms both;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .dash-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dash-ledger {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-ledger-item:nth-child(2) {
    border-right: none;
  }
  .dash-ledger-item:nth-child(1),
  .dash-ledger-item:nth-child(2) {
    border-bottom: 1px solid var(--color-ink-border);
  }
  .dash-ledger-value { font-size: 1.5rem; }
  .dash-header-title { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════ */

.landing-page {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-paper);
}

/* ─── Left panel ─────────────────────────────────────── */
.landing-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-7);
  border-right: 1px solid var(--color-ink-border);
  animation: ink-appear 400ms ease both;
}

.landing-logo {
  display: flex;
  justify-content: flex-start;
  margin-bottom: var(--space-5);
  animation: ink-appear 400ms ease 60ms both;
}

.landing-logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  mix-blend-mode: multiply;
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  background: rgba(255,255,255,0.55);
  padding: var(--space-2);
}

.landing-headline {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  line-height: 1.1;
  color: var(--color-ink);
  margin-bottom: var(--space-4);
  animation: ink-appear 400ms ease 120ms both;
}

.landing-body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--color-ink-light);
  max-width: 380px;
  animation: ink-appear 400ms ease 200ms both;
}

.landing-divider {
  width: 48px;
  height: 2px;
  background: var(--color-ink-border);
  margin: var(--space-5) 0;
  animation: rule-draw 600ms ease 320ms both;
}

/* ─── Training pillars ───────────────────────────────── */
.landing-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: ink-appear 400ms ease 380ms both;
}

.landing-pillar {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
}

.landing-pillar-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-ink);
  min-width: 96px;
  flex-shrink: 0;
}

.landing-pillar:nth-child(1) .landing-pillar-label { color: var(--color-strength); }
.landing-pillar:nth-child(2) .landing-pillar-label { color: var(--color-endurance); }
.landing-pillar:nth-child(3) .landing-pillar-label { color: var(--color-efficiency); }

.landing-pillar-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-ink-light);
  line-height: 1.5;
}

/* ─── Right panel ────────────────────────────────────── */
.landing-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-7);
  animation: ink-appear 400ms ease 200ms both;
}

.landing-card {
  width: 100%;
  max-width: 340px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: var(--space-5);
  animation: ink-appear 500ms ease 300ms both;
}

.landing-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

.landing-card-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-ink-light);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  border-bottom: 1px dashed rgba(92,51,23,0.25);
  padding-bottom: var(--space-4);
}

.landing-signin-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.landing-loading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-ink-light);
  margin-bottom: var(--space-3);
}

.landing-error {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-error);
  background: var(--error-bg);
  border: 1px solid var(--color-error);
  border-radius: 6px;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
}

.landing-card-note {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-ink-light);
  text-align: center;
  margin-top: var(--space-3);
  border-top: 1px dashed rgba(92,51,23,0.2);
  padding-top: var(--space-3);
  line-height: 1.5;
}

/* ─── 5bar Stress Profile Bars ───────────────────────── */
.stress-profile {
  margin-top: var(--space-3);
}

.stress-profile-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-ink-border);
  padding-bottom: var(--space-1);
}

.stress-plane-row {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.stress-plane-label {
  font-size: 0.75rem;
  color: var(--color-ink-light);
  text-align: right;
}

.stress-plane-bar-track {
  height: 10px;
  background: rgba(0,0,0,0.07);
  border-radius: 5px;
  overflow: hidden;
}

.stress-plane-bar-fill {
  height: 10px;
  border-radius: 5px;
  transition: width 300ms ease;
  background: var(--color-ink);
}

.stress-plane-bar-fill.vec-hinge     { background: var(--color-strength); }
.stress-plane-bar-fill.vec-squat     { background: var(--color-endurance); }
.stress-plane-bar-fill.vec-push      { background: var(--color-efficiency); }
.stress-plane-bar-fill.vec-pull      { background: var(--color-ink-border); }
.stress-plane-bar-fill.vec-core      { background: var(--color-ink-light); }
.stress-plane-bar-fill.vec-stability { background: var(--color-ink); }

.stress-plane-value {
  font-size: 0.75rem;
  color: var(--color-ink);
  text-align: right;
  font-weight: 700;
}

.stress-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-ink-border);
  font-size: 0.8rem;
  color: var(--color-ink-light);
}

.stress-total-value {
  font-weight: 700;
  color: var(--color-ink);
}

/* ─── ATL/CTL Load Table ─────────────────────────────── */
.load-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-3);
}

.load-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  font-family: var(--font-body);
}

.load-table th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-ink-light);
  text-align: left;
  padding: var(--space-1) var(--space-2);
  border-bottom: 2px solid var(--color-ink-border);
  white-space: nowrap;
}

.load-table td {
  padding: var(--space-1) var(--space-2);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--color-ink);
  white-space: nowrap;
}

.load-table tr:hover td {
  background: var(--color-surface-hover);
}

.load-table .row-label {
  font-weight: 700;
  color: var(--color-ink-light);
  font-size: 0.75rem;
}

.load-ratio-high  { color: var(--color-error);    font-weight: 700; }
.load-ratio-low   { color: var(--color-efficiency); font-weight: 700; }
.load-ratio-ok    { color: var(--color-success);   font-weight: 700; }
.load-ratio-null  { color: var(--color-ink-light); }

/* ─── Landing responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .landing-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .landing-left {
    border-right: none;
    border-bottom: 1px solid var(--color-ink-border);
    padding: var(--space-6) var(--space-4);
  }

  .landing-headline {
    font-size: 2.2rem;
  }

  .landing-right {
    padding: var(--space-5) var(--space-4);
  }
}
