/* Visual design approved by the founder on 5 December 2026: light, rounded,
   phone first, teal accent, bottom navigation bar on phones. */
:root {
  --fo-accent: #0f6e56;
  --fo-accent-dark: #085041;
  --fo-accent-soft: #e1f5ee;
  --fo-accent-mid: #5dcaa5;
  --fo-bg: #f7f8f6;
  --fo-line: #e3e6e1;
  --fo-muted: #5f5e5a;
  --bs-body-bg: var(--fo-bg);
  --bs-body-color: #1f2420;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-link-color: var(--fo-accent);
  --bs-link-hover-color: var(--fo-accent-dark);
  --bs-link-color-rgb: 15, 110, 86;
  --bs-border-color: var(--fo-line);
  --bs-border-radius: 0.75rem;
  --bs-secondary-color: var(--fo-muted);
}
body { -webkit-font-smoothing: antialiased; }
main { min-height: 70vh; }
.narrow { max-width: 34rem; margin-inline: auto; }
.btn { border-radius: 0.875rem; font-weight: 500; }
.btn-lg { padding: 0.8rem 1.2rem; }
.btn-primary {
  --bs-btn-bg: var(--fo-accent); --bs-btn-border-color: var(--fo-accent);
  --bs-btn-hover-bg: var(--fo-accent-dark); --bs-btn-hover-border-color: var(--fo-accent-dark);
  --bs-btn-active-bg: var(--fo-accent-dark); --bs-btn-active-border-color: var(--fo-accent-dark);
  --bs-btn-disabled-bg: var(--fo-accent); --bs-btn-disabled-border-color: var(--fo-accent);
}
.btn-outline-primary {
  --bs-btn-color: var(--fo-accent); --bs-btn-border-color: var(--fo-accent);
  --bs-btn-hover-bg: var(--fo-accent); --bs-btn-hover-border-color: var(--fo-accent);
  --bs-btn-active-bg: var(--fo-accent-dark);
}
.form-control, .form-select { border-radius: 0.75rem; padding: 0.65rem 0.85rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--fo-accent-mid); box-shadow: 0 0 0 0.2rem rgba(15,110,86,.15); }
.form-check-input:checked { background-color: var(--fo-accent); border-color: var(--fo-accent); }
.card, .fo-card { background: #fff; border: 0.5px solid var(--fo-line); border-radius: 1rem; }
.fo-card { padding: 0.9rem 1rem; margin-bottom: 0.6rem; display: block; color: inherit; text-decoration: none; }
a.fo-card:hover { border-color: var(--fo-accent-mid); }
.fo-card-soft { background: var(--fo-accent-soft); border-color: #9fe1cb; color: var(--fo-accent-dark); }
.chip { display: inline-block; background: var(--fo-accent-soft); color: var(--fo-accent-dark); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.8rem; margin: 0 0.25rem 0.25rem 0; }
.chip-grey { background: #efefec; color: #444441; }
.muted { color: var(--fo-muted); font-size: 0.875rem; }
.page-title { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.9rem; }
.section-title { font-size: 1rem; font-weight: 600; margin: 1.2rem 0 0.6rem; }
.avatar { border-radius: 0.6rem; vertical-align: middle; }
.avatar-lg svg, .avatar-lg { border-radius: 1.25rem; }
.stat { text-align: center; flex: 1; }
.stat-n { font-size: 1.15rem; font-weight: 600; }
.stat-small { font-size: 0.85rem; line-height: 1.7rem; }
.recovery-codes { font-family: var(--bs-font-monospace); font-size: 1.1rem; columns: 2; }
.step-done { color: var(--bs-success); }
.step-todo { color: var(--bs-secondary); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.topbar { background: #fff; border-bottom: 0.5px solid var(--fo-line); }
.topbar .navbar-brand { font-weight: 600; color: var(--fo-accent-dark); }
.bell { position: relative; color: inherit; font-size: 1.2rem; text-decoration: none; }
.bell .badge-dot { position: absolute; top: -0.35rem; right: -0.6rem; background: #d85a30; color: #fff; border-radius: 999px; font-size: 0.65rem; padding: 0.05rem 0.35rem; }
.icon { width: 1.25rem; height: 1.25rem; vertical-align: -0.2rem; }
/* Bottom navigation on phones; a top bar on wider screens. */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 0.5px solid var(--fo-line); display: flex; justify-content: space-around; padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom)); z-index: 1030; }
.bottomnav a { flex: 1; text-align: center; font-size: 0.72rem; color: #888780; text-decoration: none; }
.bottomnav a.on { color: var(--fo-accent); font-weight: 600; }
.bottomnav .icon { display: block; margin: 0 auto 0.1rem; width: 1.4rem; height: 1.4rem; }
.has-bottomnav main { padding-bottom: 5.5rem !important; }
.topnav a { color: #444441; text-decoration: none; margin-left: 1.1rem; font-size: 0.95rem; }
.topnav a.on { color: var(--fo-accent); font-weight: 600; }
@media (min-width: 768px) {
  .bottomnav { display: none; }
  .has-bottomnav main { padding-bottom: 2rem !important; }
}
@media (max-width: 767.98px) { .topnav { display: none !important; } }
.answer { border-left: 3px solid var(--fo-accent-soft); padding-left: 0.75rem; margin-top: 0.5rem; }
.answer-sharer { border-left-color: var(--fo-accent-mid); }
.setup-hero { text-align: center; padding-top: 2rem; }
.setup-hero .avatar-wrap svg { width: 72px; height: 72px; border-radius: 1.25rem; }
.lead-text { font-size: 1.1rem; line-height: 1.6; }
.pre-line { white-space: pre-line; }
.check-columns { columns: 2; }
.check-columns .form-check { break-inside: avoid; }
.terms-box > summary { cursor: pointer; font-weight: 600; margin: 0.6rem 0; }
.disclosure { border-left: 3px solid var(--fo-accent-mid); padding-left: 0.75rem; margin: 0.6rem 0; }
.change-row { font-size: 0.875rem; }
.notice { background: #fdf6e3; border-radius: 0.6rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.post-meta { font-size: 0.8rem; color: var(--fo-muted); }
.inline-form { display: inline; }
.kv dt { font-weight: 500; font-size: 0.875rem; }
.kv dd { margin-bottom: 0.4rem; }
.ai-box { border-left: 3px solid var(--fo-accent-mid); background: #f7f6f2; border-radius: 0 0.6rem 0.6rem 0; padding: 0.6rem 0.75rem; margin: 0.4rem 0 0.8rem; }
.ai-label { font-size: 0.8rem; font-weight: 600; color: var(--fo-muted); }
