/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; color: #1f2937; min-height: 100vh; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar { display: flex; justify-content: space-between; align-items: center;
          padding: 0 24px; height: 56px; background: #fff;
          border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; }
.nav-brand { font-size: 18px; font-weight: 700; color: #6366f1; text-decoration: none; letter-spacing: -.5px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 6px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; color: #6b7280; }
.nav-link:hover { background: #f3f4f6; color: #374151; }
.nav-link.active { background: #ede9fe; color: #6366f1; font-weight: 500; }
.nav-user { display: flex; align-items: center; gap: 10px; margin-left: 12px; padding-left: 12px; border-left: 1px solid #e5e7eb; }
.nav-user span { font-size: 13px; color: #374151; font-weight: 500; }
.nav-logout { font-size: 12px; color: #9ca3af; text-decoration: none; }
.nav-logout:hover { color: #ef4444; }

/* ── Page wrap ────────────────────────────────────────────── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 22px; font-weight: 600; color: #111827; }
.page-sub { font-size: 14px; color: #9ca3af; margin-top: 3px; }

/* ── Flash ────────────────────────────────────────────────── */
.flash { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px;
         padding: 10px 14px; margin-bottom: 14px; font-size: 14px; color: #856404; }

/* ── Auth ─────────────────────────────────────────────────── */
.auth-wrap { max-width: 400px; margin: 60px auto; text-align: center; padding: 0 16px; }
.auth-logo { font-size: 28px; font-weight: 700; color: #6366f1; margin-bottom: 4px; letter-spacing: -.5px; }
.auth-tagline { font-size: 14px; color: #9ca3af; margin-bottom: 24px; }
.auth-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px; text-align: left; }
.auth-card h2 { font-size: 18px; font-weight: 600; margin-bottom: 18px; color: #111827; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: #6b7280; margin-bottom: 4px; }
.form-group input { width: 100%; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; outline: none; }
.form-group input:focus { border-color: #a5b4fc; box-shadow: 0 0 0 2px rgba(165,180,252,.15); }
.btn-primary { width: 100%; padding: 10px; background: #6366f1; color: #fff; border: none;
               border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; margin-top: 4px; }
.btn-primary:hover { background: #4f46e5; }
.auth-switch { font-size: 13px; color: #6b7280; margin-top: 16px; }
.auth-switch a { color: #6366f1; text-decoration: none; }
.auth-privacy { font-size: 11px; color: #9ca3af; margin-top: 14px; line-height: 1.6; }
.crisis-note { font-size: 12px; color: #9ca3af; margin-top: 16px; }
