/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

/* ── Layout utilities ─────────────────────────────── */
.ee-main { flex: 1; width: 100%; }
main { padding-top: var(--nav-height); }
.ctr { max-width: var(--container-width); margin: 0 auto; padding: 0 40px; width: 100%; }
.ee-page { display: none; opacity: 0; }
.ee-page.active { display: block; }
.empty-msg { color: var(--text-muted); font-size: 0.875rem; padding: 20px 0; }

/* ── Section headings ─────────────────────────────── */
.s-lbl {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.s-ttl {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.s-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.7;
  max-width: 560px;
}
.s-hd { margin-bottom: 52px; }

/* ── Auth & Error pages ───────────────────────────── */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--surface-raised);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}
.auth-card--center { text-align: center; }
.auth-card__msg { color: var(--text-muted); margin-bottom: 28px; font-size: 0.9rem; }
.auth-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 28px;
}
.auth-error {
  font-size: 0.825rem;
  color: var(--red);
  margin-bottom: 18px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 920px) {
  .ctr { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
