/* ── FONTS ─────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────────────────────────── */
:root {
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-display: 'Bebas Neue', sans-serif;

  /* Defaults (dark + acid) */
  --bg:       #0a0a0a;
  --surface:  #111111;
  --surface2: #181818;
  --border:   #222222;
  --text:     #f0f0f0;
  --muted:    #555555;
  --accent:   #e8ff47;
  --accent2:  #ff6b35;
  --accent-fg:#000000;

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-pill: 100px;
}

/* ── DARK MODE ─────────────────────────────────────────────────────────────── */
[data-mode="dark"] {
  --bg:       #0a0a0a;
  --surface:  #111111;
  --surface2: #181818;
  --border:   #222222;
  --text:     #f0f0f0;
  --muted:    #555555;
}

/* ── LIGHT MODE ────────────────────────────────────────────────────────────── */
[data-mode="light"] {
  --bg:       #f4f4f5;
  --surface:  #ffffff;
  --surface2: #eeeeef;
  --border:   #d4d4d8;
  --text:     #111111;
  --muted:    #888888;
}

/* ── COLOR THEMES ──────────────────────────────────────────────────────────── */
[data-color="acid"] {
  --accent:    #e8ff47;
  --accent2:   #ff6b35;
  --accent-fg: #000000;
}
[data-color="ember"] {
  --accent:    #ff6b35;
  --accent2:   #ff9f0a;
  --accent-fg: #000000;
}
[data-color="ocean"] {
  --accent:    #47c6ff;
  --accent2:   #5b8af0;
  --accent-fg: #000000;
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); }
body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

/* ── LAYOUT ────────────────────────────────────────────────────────────────── */
#app-content { max-width: 680px; margin: 0 auto; }

/* ── NAV ───────────────────────────────────────────────────────────────────── */
.app-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  padding-top: var(--safe-top);
}
.nav-inner {
  max-width: 680px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 52px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 20px;
  letter-spacing: 3px; color: var(--accent); text-decoration: none;
}
.nav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-decoration: none; white-space: nowrap; transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active { background: var(--surface2); }
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; margin-left: 6px;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface2));
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all 0.15s;
}
.nav-avatar:hover, .nav-avatar.active {
  background: color-mix(in srgb, var(--accent) 25%, var(--surface2));
  border-color: var(--accent);
}

/* ── WORKOUT PAGE ──────────────────────────────────────────────────────────── */
.workout-page { display: flex; flex-direction: column; height: calc(100dvh - 52px); }
.workout-hdr {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 12px 16px 0; flex-shrink: 0;
}
.workout-hdr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.app-logo { font-family: var(--font-display); font-size: 20px; letter-spacing: 3px; color: var(--accent); }

.phase-badge {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--radius-pill); margin-left: 8px;
}
.phase-normal { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.phase-deload  { background: rgba(255,107,53,.12); color: var(--accent2); border: 1px solid rgba(255,107,53,.3); }

.week-ctrl {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 10px;
}
.week-btn {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px;
}
.week-label { font-family: var(--font-mono); font-size: 12px; color: var(--text); min-width: 62px; text-align: center; }

.week-guide {
  border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 10px;
  font-size: 12px; line-height: 1.5;
}
.wg-normal { background: color-mix(in srgb, var(--accent) 6%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); color: color-mix(in srgb, var(--accent) 70%, var(--text)); }
.wg-deload  { background: rgba(255,107,53,.07); border: 1px solid rgba(255,107,53,.2); color: var(--accent2); }

.day-tabs { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  padding: 9px 14px; border: none; background: none;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.4px; cursor: pointer; white-space: nowrap; text-decoration: none;
  border-bottom: 2px solid transparent; transition: all 0.15s;
  color: var(--muted);
}
.day-tab.active { color: var(--day-color, var(--accent)); border-bottom-color: var(--day-color, var(--accent)); }
.day-tab.tab-hist { margin-left: auto; color: var(--muted); }
.day-tab.tab-hist:hover { color: var(--text); }

.workout-body {
  flex: 1; overflow-y: auto; padding: 14px 16px calc(var(--safe-bottom) + 16px);
  -webkit-overflow-scrolling: touch;
}
.workout-body::-webkit-scrollbar { width: 3px; }
.workout-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.day-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.day-hdr-right { display: flex; align-items: center; gap: 8px; }
.day-title { font-family: var(--font-display); font-size: 28px; letter-spacing: 1px; }
.prog-pill {
  font-size: 11px; color: var(--muted); font-family: var(--font-mono);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 3px 10px;
}

/* ── CHECK-IN ──────────────────────────────────────────────────────────────── */
.checkin-wrap { flex-shrink: 0; }
.checkin-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent); font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; cursor: pointer; transition: all 0.15s;
  font-family: var(--font-body);
}
.checkin-btn:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.checkin-done {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent); font-size: 11px; font-weight: 600;
}
.hist-checkin {
  font-size: 11px; color: var(--accent); margin-top: 3px;
  display: flex; align-items: center; gap: 4px;
}

/* ── EXERCISE CARD ─────────────────────────────────────────────────────────── */
.ex-card {
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); transition: border-color 0.2s;
}
.ex-card.done { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.ex-hdr { display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 13px 7px; }
.ex-info { flex: 1; min-width: 0; }
.ex-name { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.ex-muscles { font-size: 11px; color: var(--muted); }
.ex-hdr-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: 8px; }
.target-badge {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 3px 8px; white-space: nowrap;
}
.video-btn {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--accent); font-size: 11px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.video-btn:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ── SETS ──────────────────────────────────────────────────────────────────── */
.sets-area { padding: 0 13px 12px; }
.last-ref { font-size: 10px; color: var(--muted); font-family: var(--font-mono); margin-bottom: 6px; opacity: 0.6; }

.set-row {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 8px; margin-bottom: 6px; transition: all 0.15s;
}
.set-row.done {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}
.set-num { font-family: var(--font-mono); font-size: 10px; color: var(--muted); min-width: 22px; text-align: center; }
.inp-wrap { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.inp-label { font-size: 9px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.inp {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 13px; font-family: var(--font-mono);
  padding: 5px 0; width: 65px; text-align: center;
  -webkit-appearance: none; outline: none;
}
.inp:focus { border-color: var(--muted); }
.trash-btn { background: none; border: none; color: var(--border); cursor: pointer; padding: 4px; display: flex; align-items: center; margin-left: auto; transition: color 0.15s; }
.trash-btn:hover { color: var(--accent2); }
.check-btn {
  width: 30px; height: 30px; border-radius: var(--radius-sm); flex-shrink: 0;
  border: 1.5px solid var(--border); background: transparent; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.check-btn.done { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

.add-set-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; background: none; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 11px; padding: 7px; cursor: pointer;
  font-family: var(--font-body); margin-top: 2px; transition: all 0.15s;
}
.add-set-btn:active { border-color: var(--muted); color: var(--text); }

/* ── VIDEO MODAL ───────────────────────────────────────────────────────────── */
.video-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200;
  display: flex; align-items: flex-end;
}
.video-sheet {
  background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-width: 680px; margin: 0 auto;
  padding-bottom: calc(var(--safe-bottom) + 8px);
}
.video-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
}
.video-title { font-weight: 600; font-size: 14px; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-close-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; padding: 4px 8px; font-size: 12px; flex-shrink: 0; margin-left: 8px; }
.video-thumb-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--surface2); overflow: hidden;
}
.video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb-fallback {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  background: var(--surface2);
}
.video-actions { padding: 12px 16px; }
.btn-yt-open {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px; border-radius: var(--radius);
  background: #ff0000; color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: 0.3px;
  text-decoration: none; transition: opacity 0.15s;
}
.btn-yt-open:hover { opacity: 0.9; }

/* ── TOAST ─────────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: calc(var(--safe-bottom) + 20px); left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: var(--accent-fg);
  font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
  padding: 9px 22px; border-radius: var(--radius-pill); z-index: 999;
  white-space: nowrap; pointer-events: none;
}

/* ── HISTORY ───────────────────────────────────────────────────────────────── */
.hist-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 15px; margin-bottom: 10px; }
.hist-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.hist-day { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; }
.hist-meta { font-size: 11px; color: var(--muted); font-family: var(--font-mono); margin-top: 2px; }
.hist-stats { display: flex; gap: 16px; }
.hist-stat { text-align: center; }
.hist-val { font-family: var(--font-display); font-size: 26px; color: var(--text); line-height: 1; }
.hist-lab { font-size: 9px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.hist-ex { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); border-top: 1px solid var(--surface2); padding-top: 5px; margin-top: 5px; }

/* ── PAGES / LAYOUT ────────────────────────────────────────────────────────── */
.page-wrap { max-width: 680px; margin: 0 auto; padding: 20px 16px calc(var(--safe-bottom) + 32px); }
.page-narrow { max-width: 420px; }
.page-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-title { font-family: var(--font-display); font-size: 30px; letter-spacing: 1px; }
.hist-title { margin-bottom: 16px; }
.section-heading { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* ── FORMS ─────────────────────────────────────────────────────────────────── */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.form-mt { margin-top: 12px; }
.field-wrap { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.field-input {
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-family: var(--font-body);
  padding: 10px 12px; outline: none; width: 100%; transition: border-color 0.15s;
}
.field-input:focus { border-color: var(--muted); }
.field-sm { width: 80px; }
.field-hint { font-size: 11px; color: var(--muted); }
.color-picker { width: 44px; height: 38px; padding: 2px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface2); cursor: pointer; }

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn-primary, .btn-accent, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; transition: opacity 0.15s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-accent  { background: var(--accent); color: var(--accent-fg); }
.btn-ghost   { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-danger  { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid rgba(239,68,68,.25); }
.btn-sm      { padding: 5px 10px; font-size: 11px; }
.btn-full    { width: 100%; }
.btn-primary:hover, .btn-accent:hover { opacity: 0.88; }

/* ── PROGRAM CARDS ─────────────────────────────────────────────────────────── */
.prog-section { margin-bottom: 28px; }
.prog-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 15px; margin-bottom: 8px;
}
.prog-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.prog-meta { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.prog-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }
.prog-desc-full { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.prog-card-actions { display: flex; gap: 6px; flex-shrink: 0; margin-left: 12px; }

.day-preview-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 15px; margin-bottom: 10px; }
.day-preview-hdr { font-family: var(--font-display); font-size: 18px; letter-spacing: 1px; margin-bottom: 10px; }
.day-preview-ex { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 4px 0; border-top: 1px solid var(--surface2); }

/* ── PROGRAM EDIT ──────────────────────────────────────────────────────────── */
.edit-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 15px; margin-bottom: 12px; }
.section-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pe-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--surface2); }
.pe-info { display: flex; flex-direction: column; gap: 2px; }
.pe-name { font-weight: 500; font-size: 13px; }
.pe-actions { display: flex; align-items: center; gap: 6px; }
.phase-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--surface2); font-size: 13px; }
.phase-tag { font-family: var(--font-mono); font-size: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: var(--radius-pill); padding: 2px 8px; white-space: nowrap; }
.phase-name { font-weight: 600; }
.phase-guide { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-form-panel { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-top: 10px; }
.add-ex-details summary { cursor: pointer; font-size: 12px; color: var(--muted); padding: 6px 0; list-style: none; }
.add-ex-details summary::-webkit-details-marker { display: none; }
.add-ex-details[open] summary { color: var(--text); }

/* ── EXERCISE LIBRARY ──────────────────────────────────────────────────────── */
.ex-list { display: flex; flex-direction: column; gap: 2px; }
.ex-lib-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.ex-lib-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ex-lib-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: 10px; }
.global-badge { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px 7px; }

/* ── SETTINGS ──────────────────────────────────────────────────────────────── */
.settings-section { margin-bottom: 28px; }
.profile-row { display: flex; gap: 12px; flex-wrap: wrap; }
.profile-row .field-wrap { min-width: 140px; }
.settings-errors { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #ef4444; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.settings-heading { font-family: var(--font-display); font-size: 16px; letter-spacing: 1px; margin-bottom: 12px; }
.settings-hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.theme-grid { display: flex; gap: 8px; }
.theme-btn {
  flex: 1; padding: 12px; border-radius: var(--radius);
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.theme-btn.active { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface2)); }
.color-grid { display: flex; gap: 8px; }
.color-swatch {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: var(--radius);
  background: var(--surface2); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s;
}
.color-swatch.active { border-color: var(--swatch); background: color-mix(in srgb, var(--swatch) 8%, var(--surface2)); }
.swatch-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--swatch); }
.swatch-label { font-size: 11px; font-weight: 600; color: var(--text); }
.mcp-key-wrap { display: flex; align-items: center; gap: 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; }
.mcp-key { font-family: var(--font-mono); font-size: 11px; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcp-url code { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }

/* ── LOGIN ─────────────────────────────────────────────────────────────────── */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100dvh; padding: 24px 16px; }
.login-wrap { width: 100%; max-width: 360px; }
.login-logo { font-family: var(--font-display); font-size: 42px; letter-spacing: 6px; color: var(--accent); text-align: center; margin-bottom: 4px; }
.login-sub { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 36px; }
.login-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #ef4444; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }

/* ── MISC ──────────────────────────────────────────────────────────────────── */
.muted-txt { color: var(--muted); font-size: 12px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 44px; margin-bottom: 14px; }
.empty-state p { font-size: 13px; line-height: 1.8; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
