/* IronLog — dark-first gym tracker UI */
:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1e1e1e;
  --bg-hover: #252525;
  --border: #2a2a2a;
  --border-light: #333;
  --text: #f1f5f9;
  --text-muted: #64748b;
  --text-dim: #475569;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-dim: #6366f11a;
  --green: #22c55e;
  --green-dim: #22c55e1a;
  --red: #ef4444;
  --red-dim: #ef44441a;
  --yellow: #f59e0b;
  --yellow-dim: #f59e0b1a;
  --orange: #f97316;
  --purple: #a855f7;
  --chip-chest: #ef4444;
  --chip-back: #3b82f6;
  --chip-legs: #22c55e;
  --chip-shoulders: #f59e0b;
  --chip-arms: #a855f7;
  --chip-core: #06b6d4;
  --chip-cardio: #f97316;
  --chip-other: #6b7280;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px #0006;
  --shadow-lg: 0 8px 32px #0009;
  --transition: 150ms ease;
  --sidebar-width: 220px;
}

/* Light theme */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-hover: #e2e8f0;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --accent-dim: #6366f11a;
  --shadow: 0 2px 8px #0001;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Loading screen ─────────────────────────────────────────────────────────── */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 24px;
}
.loading-logo { font-size: 64px; }
.loading-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.app-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  padding: 24px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.sidebar-header {
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.sidebar-logo-icon { font-size: 1.4rem; }

.nav-section { padding: 8px 0; }
.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 8px 16px 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin: 1px 8px;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--bg-hover); color: var(--text); }
.nav-link.active { background: var(--accent-dim); color: var(--accent); }
.nav-icon { font-size: 1rem; width: 18px; text-align: center; }

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--border);
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-sm { padding: 14px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.card-title-lg {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition), transform 60ms;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover:not(:disabled) { background: #16a34a; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-hover); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-xl {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  width: 100%;
}
.btn-icon { padding: 8px; border-radius: var(--radius-sm); aspect-ratio: 1; }

/* ── Inputs ─────────────────────────────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], textarea, select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  padding: 9px 12px;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
select { appearance: none; cursor: pointer; }
select option { background: var(--bg-elevated); }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-error { color: var(--red); font-size: 0.8rem; margin-top: 4px; }

/* ── Weight / Reps inputs (extra large for gym use) ─────────────────────────── */
.input-xl {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  min-height: 72px;
}
.input-xl:focus { border-color: var(--accent); }

/* ── Chips / Badges ─────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chip-accent { background: var(--accent-dim); color: var(--accent); }
.chip-green { background: var(--green-dim); color: var(--green); }
.chip-red { background: var(--red-dim); color: var(--red); }
.chip-yellow { background: var(--yellow-dim); color: var(--yellow); }
.chip-muted { background: var(--bg-elevated); color: var(--text-muted); }
.chip-chest { background: #ef44441a; color: var(--chip-chest); }
.chip-back { background: #3b82f61a; color: var(--chip-back); }
.chip-legs { background: #22c55e1a; color: var(--chip-legs); }
.chip-shoulders { background: #f59e0b1a; color: var(--chip-shoulders); }
.chip-arms { background: #a855f71a; color: var(--chip-arms); }
.chip-core { background: #06b6d41a; color: var(--chip-core); }
.chip-cardio { background: #f973161a; color: var(--chip-cardio); }
.chip-other { background: #6b7280; color: #f1f5f9; }

/* ── Page titles ─────────────────────────────────────────────────────────────── */
.page-header {
  margin-bottom: 24px;
}
.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}

/* ── Grid layouts ────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Dashboard stats row — 3-col on tablet+, 2-col on small phones */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row > :last-child { grid-column: span 2; }
}
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grow { flex: 1; min-width: 0; }

/* ── Stat tiles ──────────────────────────────────────────────────────────────── */
.stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-sub { font-size: 0.8rem; color: var(--text-muted); }

/* ── Lists ───────────────────────────────────────────────────────────────────── */
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: none; }

/* ── Exercise / Set rows ─────────────────────────────────────────────────────── */
.set-row {
  display: grid;
  grid-template-columns: 28px 1fr 28px 1fr 48px;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.set-row.completed { opacity: 0.5; }
.set-row.completed .input-xl { color: var(--green); border-color: var(--green-dim); }
.set-num { font-size: 0.8rem; color: var(--text-dim); font-weight: 600; text-align: center; }
.set-sep { font-size: 1rem; color: var(--text-dim); text-align: center; }

/* ── Rest timer ──────────────────────────────────────────────────────────────── */
.rest-timer-overlay {
  position: fixed;
  inset: 0;
  background: #000c;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  backdrop-filter: blur(4px);
}
.rest-timer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  text-align: center;
  min-width: 320px;
  box-shadow: var(--shadow-lg);
}
.rest-timer-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 20px; }
.rest-timer-ring-container { position: relative; width: 180px; height: 180px; margin: 0 auto 20px; }
.rest-timer-ring-bg, .rest-timer-ring-fg {
  fill: none;
  cx: 90; cy: 90; r: 80;
  stroke-width: 8;
}
.rest-timer-ring-bg { stroke: var(--border); }
.rest-timer-ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.rest-timer-time {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.rest-timer-next { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.rest-timer-actions { display: flex; gap: 12px; justify-content: center; }

/* ── Progress bar ────────────────────────────────────────────────────────────── */
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 300ms ease;
}

/* ── Week grid ───────────────────────────────────────────────────────────────── */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.week-day-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.week-day-card.today { border-color: var(--accent); }
.week-day-card.completed { background: var(--green-dim); border-color: var(--green-dim); }
.week-day-card.rest { opacity: 0.4; }
.week-day-name { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.week-day-label { font-size: 0.7rem; font-weight: 600; margin-top: 4px; }
.week-day-dot { width: 6px; height: 6px; border-radius: 50%; margin: 4px auto 0; }

/* ── Heatmap ─────────────────────────────────────────────────────────────────── */
.heatmap {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.heatmap-col { display: flex; flex-direction: column; gap: 5px; }
.heatmap-cell {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--bg-elevated);
  flex-shrink: 0;
  transition: transform 80ms ease;
  cursor: default;
}
.heatmap-cell:hover { transform: scale(1.2); }
.heatmap-cell[data-count="1"] { background: #6366f140; }
.heatmap-cell[data-count="2"] { background: #6366f170; }
.heatmap-cell[data-count="3"] { background: #6366f1b0; }
.heatmap-cell[data-count="4"] { background: var(--accent); }

/* Heatmap day labels column */
.heatmap-labels {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-right: 8px;
  padding-bottom: 4px;
}
.heatmap-day-label {
  height: 18px;
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* Stats section scroll target */
.stats-section { scroll-margin-top: 20px; }

/* ── Modals ──────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #000a;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-lg { max-width: 640px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: 4px; border-radius: 4px; }
.modal-close:hover { color: var(--text); background: var(--bg-hover); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── Auth page ───────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; font-size: 2.5rem; margin-bottom: 8px; }
.auth-title { text-align: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 28px; }

/* ── Blazor error UI ─────────────────────────────────────────────────────────── */
#blazor-error-ui {
  background: var(--red-dim);
  border-top: 1px solid var(--red);
  color: var(--text);
  display: none;
  font-size: 0.875rem;
  padding: 12px 16px;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }
.text-lg { font-size: 1.1rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Search bar ──────────────────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
}
.search-bar input { border: none; background: transparent; padding: 10px 0; flex: 1; }
.search-bar input:focus { box-shadow: none; }
.search-icon { color: var(--text-dim); font-size: 0.9rem; }

/* ── Filter chips row ────────────────────────────────────────────────────────── */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ── Empty states ────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-title { font-weight: 700; margin-bottom: 6px; }
.empty-sub { font-size: 0.875rem; }

/* ── Agent console styles ─────────────────────────────────────────────────────── */
.agent-command-area {
  position: relative;
}
.agent-command-area textarea {
  min-height: 80px;
  resize: vertical;
  padding-right: 80px;
}
.agent-command-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}
.agent-task-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.agent-task-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
}
.status-queued { background: var(--yellow-dim); color: var(--yellow); }
.status-running { background: var(--accent-dim); color: var(--accent); animation: pulse 2s ease-in-out infinite; }
.status-needs_approval { background: #a855f71a; color: var(--purple); }
.status-completed { background: var(--green-dim); color: var(--green); }
.status-failed { background: var(--red-dim); color: var(--red); }
.status-rejected { background: var(--bg-elevated); color: var(--text-dim); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.agent-log {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.6;
}
.agent-log-entry { display: flex; gap: 12px; }
.agent-log-ts { color: var(--text-dim); flex-shrink: 0; }

/* ── Mobile ──────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 100%;
    max-width: 280px;
  }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; padding: 16px; padding-bottom: 80px; }

  /* Bottom tab bar on mobile */
  .mobile-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
  }
  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    gap: 3px;
    transition: color var(--transition);
  }
  .mobile-nav-item.active { color: var(--accent); }
  .mobile-nav-icon { font-size: 1.3rem; }

  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .week-grid { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .week-day-card { padding: 6px 4px; }

  .input-xl { font-size: 1.8rem; min-height: 56px; }
  .log-grid-basic { grid-template-columns: 1fr 1fr !important; }
  .log-grid-basic > :first-child { grid-column: span 2; }
  .seg-grid { grid-template-columns: repeat(3, 1fr) !important; }

  .rest-timer-card { min-width: auto; padding: 32px 24px; }
  .rest-timer-ring-container { width: 150px; height: 150px; }
  .rest-timer-time { font-size: 2.2rem; }
}
@media (min-width: 769px) {
  .mobile-nav { display: none; }
}

/* ── Transitions ─────────────────────────────────────────────────────────────── */
.fade-in { animation: fadeIn 200ms ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.slide-up { animation: slideUp 250ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── Settings page ───────────────────────────────────────────────────────────── */
.settings-page {
  max-width: 560px;
  margin: 0 auto;
}

/* ── Not found ───────────────────────────────────────────────────────────────── */
.not-found { text-align: center; padding: 80px 20px; }
.not-found h1 { font-size: 4rem; font-weight: 800; color: var(--text-dim); }
.not-found p { color: var(--text-muted); margin: 12px 0 24px; }

/* ── Color dot ───────────────────────────────────────────────────────────────── */
.color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.color-swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.color-swatch.selected { border-color: var(--text); }

/* ── Drag handle ─────────────────────────────────────────────────────────────── */
.drag-handle { color: var(--text-dim); cursor: grab; padding: 4px; font-size: 1rem; }
.drag-handle:active { cursor: grabbing; }

/* ── Today's workout CTA ─────────────────────────────────────────────────────── */
.today-card {
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.today-card::before {
  content: '🏋️';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  opacity: 0.15;
}
.today-card .chip { background: #ffffff22; color: #fff; }
.today-day-name { font-size: 1.6rem; font-weight: 800; margin: 8px 0 4px; }
.today-sub { font-size: 0.875rem; opacity: 0.8; margin-bottom: 20px; }
.today-card .btn { background: #fff; color: var(--accent); font-weight: 700; }
.today-card .btn:hover { background: #f1f5f9; }
.today-rest { background: var(--bg-card); color: var(--text-muted); text-align: center; }
.today-rest .today-day-name { color: var(--text); }
