/* ── Design tokens ── */
:root {
  --bg: #0f0f0f; --surface: #1a1a1a; --surface2: #222;
  --border: #2a2a2a; --text: #e0e0e0; --muted: #666; --accent: #6c8ebf;
  --M: #f59e0b; --A: #10b981; --I: #c084fc; --F: #f472b6; --H: #22d3ee;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ── Site Nav ── */
.site-nav {
  display: flex; align-items: center; gap: 20px;
  padding: 8px 32px; background: var(--surface2);
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.site-nav-brand {
  font-weight: 700; letter-spacing: 0.1em; font-size: 13px;
  color: var(--accent); text-decoration: none; margin-right: 8px;
}
.site-nav-links { display: flex; gap: 4px; }
.site-nav-links a {
  color: var(--muted); text-decoration: none;
  padding: 4px 10px; border-radius: 5px; transition: all 0.15s;
}
.site-nav-links a:hover { color: var(--text); }
.site-nav-links a.active { color: var(--text); background: var(--surface); }

/* ── Shared Button ── */
.btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 6px 13px; border-radius: 6px; cursor: pointer; font-size: 13px;
  transition: border-color 0.15s; font-family: inherit;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Toast ── */
.toast {
  display: none; position: fixed; bottom: 24px; right: 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 18px; font-size: 13px;
  z-index: 300; box-shadow: 0 6px 24px rgba(0,0,0,0.4); max-width: 280px;
}
.toast.open { display: block; }
.toast strong { display: block; margin-bottom: 4px; }
.toast span { color: var(--muted); line-height: 1.5; }

/* ── Auth Overlay ── */
.auth-overlay {
  display: none; position: fixed; inset: 0; background: var(--bg);
  z-index: 500; align-items: center; justify-content: center;
}
.auth-overlay.show { display: flex; }
.auth-box { text-align: center; padding: 48px; max-width: 380px; }
.auth-box h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.05em; }
.auth-loading { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.auth-desc { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.7; display: none; }
.google-btn {
  display: none; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 20px; border-radius: 10px;
  background: #fff; border: none; color: #1f1f1f; font-size: 15px;
  font-weight: 600; cursor: pointer; margin-bottom: 14px; transition: opacity 0.15s;
  font-family: inherit;
}
.google-btn.visible { display: flex; }
.google-btn:hover { opacity: 0.9; }
.auth-note { display: none; font-size: 12px; color: var(--muted); }
.auth-note.visible { display: block; }

@media (max-width: 600px) {
  .site-nav { padding: 6px 16px; gap: 12px; }
  .toast { bottom: 16px; right: 16px; left: 16px; max-width: none; }
}
