/* ═══════════════════════════════════════════
   ANCHOR & BLOOM — GLOBAL STYLES
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
/* Harmony Helpers typography: Lato (body), Playfair Display (titles), Montserrat (buttons & labels) */
html, body { height: 100%; font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; background: #000; overflow: hidden; -webkit-font-smoothing: antialiased; }

:root {
  --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui: 'Montserrat', sans-serif;
  --ivory: #FAF7F1;
  --sage: #A8B8A1;
  --sage-dark: #6E8066;
  --sage-light: #D4DDD1;
  --sage-pale: #EEF3EC;
  --birch: #E8DCC8;
  --birch-dark: #C8B89A;
  --birch-light: #F4EEE2;
  --terra: #C98F7A;
  --terra-dark: #8C5A48;
  --terra-light: #EDD8CF;
  --terra-pale: #FAF0EB;
  --slate: #4A5E6A;
  --ink: #3F3A34;
  --ink-mid: #7A7268;
  --ink-light: #ADA89F;
  --line: #D8D2C7;
  --white: #FFFFFF;
  --danger: #E05252;
  --success: #6E8066;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(63,58,52,0.08);
  --shadow-md: 0 4px 20px rgba(63,58,52,0.12);
  --shadow-lg: 0 8px 40px rgba(63,58,52,0.16);
  --transition: 0.2s ease;
}

/* ── APP SHELL ─────────────────────────────── */
#app { display: none; position: fixed; inset: 0; background: var(--ivory); flex-direction: column; }
#app.on { display: flex; }

/* Household / family name — visible on every tab when you have an active household */
.ab-family-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: linear-gradient(180deg, rgba(110, 128, 102, 0.22) 0%, rgba(110, 128, 102, 0.08) 100%);
  border-bottom: 1px solid rgba(110, 128, 102, 0.2);
  z-index: 50;
}
.ab-family-bar__leaf {
  font-size: 15px;
  line-height: 1;
  opacity: 0.9;
}
.ab-family-bar__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screens { flex: 1; position: relative; overflow: hidden; min-height: 0; }
.scr { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 72px; display: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.scr::-webkit-scrollbar { display: none; }
.scr.on { display: block; }

/* ── BOTTOM NAV ────────────────────────────── */
.nav { position: absolute; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--line); display: flex; height: 64px; z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.nb { flex: 1; border: none; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; transition: opacity var(--transition); }
.nb:active { opacity: 0.7; }
.ni { font-size: 20px; opacity: 0.3; transition: opacity var(--transition); }
.ni.on { opacity: 1; }
.nl { font-size: 9px; color: var(--ink-light); font-weight: 500; letter-spacing: 0.06em; font-family: var(--font-ui); text-transform: uppercase; transition: color var(--transition); }
.nl.on { color: var(--sage-dark); font-weight: 700; }

/* ── SCREEN HEADER ─────────────────────────── */
.hdr { padding: max(56px, calc(env(safe-area-inset-top, 0px) + 14px)) 16px 18px; position: relative; }
.hdr h2 { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--white); margin-bottom: 2px; }
.hdr p { font-size: 12px; color: rgba(255,255,255,0.72); font-weight: 300; }
.hdr-action { position: absolute; top: 54px; right: 14px; }

/* ── PADDING WRAPPER ───────────────────────── */
.pad { padding: 12px 14px; }

/* ── CARDS ─────────────────────────────────── */
.card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; }
.card-sage { background: var(--sage-pale); }
.card-terra { background: var(--terra-pale); }
.card-birch { background: var(--birch-light); }
.card-slate { background: #EEF2F4; }

/* ── SECTION LABEL (matches harmonyhelpers.net .eyebrow / meta-label) ── */
.sec-label { font-family: var(--font-ui); font-size: 11px; font-weight: 600; color: var(--sage-dark); margin-bottom: 7px; margin-top: 14px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── PILLS / TABS ──────────────────────────── */
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pill { padding: 6px 14px; border-radius: 20px; font-size: 11px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--ink-light); font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.04em; transition: all var(--transition); }
.pill.on { border: none; color: var(--white); font-weight: 700; }
.pill:active { transform: scale(0.97); }

/* ── ROW ───────────────────────────────────── */
.row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }

/* ── CHECKBOX ──────────────────────────────── */
.chk { width: 22px; height: 22px; border: 1.5px solid var(--line); border-radius: 6px; flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; background: var(--white); transition: all var(--transition); }
.chk.on { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }

/* ── PROGRESS BAR ──────────────────────────── */
.prog-wrap { background: var(--line); border-radius: 99px; overflow: hidden; }
.prog-bar { height: 100%; border-radius: 99px; transition: width 0.4s ease; }

/* ── BUTTONS (matches harmonyhelpers.net .btn — Montserrat) ───────────────── */
.btn-primary { padding: 12px 20px; border: none; border-radius: var(--radius-md); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; color: var(--white); font-family: var(--font-ui); transition: all var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.btn-primary:active { transform: scale(0.97); }
.btn-outline { padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: transparent; color: var(--ink-mid); cursor: pointer; font-family: var(--font-ui); transition: all var(--transition); }
.btn-outline:active { background: var(--line); }
.btn-block { width: 100%; padding: 14px 0; border: none; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; font-family: var(--font-ui); transition: all var(--transition); }
.btn-block:active { transform: scale(0.98); }
.btn-sm { padding: 5px 12px; border: none; border-radius: var(--radius-sm); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; color: var(--white); font-family: var(--font-ui); }
.btn-icon { width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--line); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all var(--transition); flex-shrink: 0; }

/* ── INPUTS ────────────────────────────────── */
.inp { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; color: var(--ink); background: var(--white); font-family: var(--font-body); outline: none; transition: border-color var(--transition); }
.inp:focus { border-color: var(--sage-dark); }
.inp::placeholder { color: var(--ink-light); }
.inp-sm { padding: 8px 11px; font-size: 13px; border-radius: var(--radius-sm); }
textarea.inp { resize: none; line-height: 1.6; }
select.inp { cursor: pointer; }

/* ── LOCK / UPGRADE ────────────────────────── */
.lock-banner { background: var(--terra-pale); border-radius: var(--radius-md); border: 1px solid var(--terra-light); padding: 12px 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.lock-banner .lock-icon { font-size: 20px; flex-shrink: 0; }
.lock-banner .lock-text { flex: 1; }
.lock-banner .lock-title { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--terra-dark); }
.lock-banner .lock-sub { font-size: 11px; color: var(--ink-mid); }
.lock-banner .lock-btn { background: var(--terra); color: var(--white); border: none; border-radius: var(--radius-sm); padding: 5px 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; white-space: nowrap; font-family: var(--font-ui); }

/* ── MODAL / OVERLAY ───────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 800; align-items: flex-end; justify-content: center; }
.modal-overlay.on { display: flex; }
.modal-sheet { background: var(--ivory); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 24px 20px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.modal-sheet::-webkit-scrollbar { display: none; }
.modal-title { font-family: var(--font-display); font-size: 20px; color: var(--ink); font-style: italic; margin-bottom: 16px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--line); border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }

/* ── AVATAR ────────────────────────────────── */
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; flex-shrink: 0; }

/* ── BADGE ─────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.badge-sage { background: var(--sage-pale); color: var(--sage-dark); }
.badge-terra { background: var(--terra-pale); color: var(--terra-dark); }
.badge-slate { background: #EEF2F4; color: var(--slate); }
.badge-danger { background: #FFEAEA; color: var(--danger); }

/* ── WATER DROPS ───────────────────────────── */
.water-grid { display: flex; gap: 5px; }
.drop { flex: 1; height: 30px; border-radius: 6px; background: var(--line); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.25s ease; border: 2px solid transparent; }
.drop.filled { background: var(--sage-dark); color: var(--white); }
.drop:active { transform: scale(0.93); }

/* ── CALENDAR ──────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; cursor: pointer; font-family: var(--font-body); transition: all var(--transition); }
.cal-day:hover { background: var(--sage-pale); }
.cal-day.today { background: var(--sage-dark); color: var(--white); font-weight: 700; }
.cal-day.has-event::after { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--terra); position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); }
.cal-day-wrapper { position: relative; }
.cal-hdr { font-size: 10px; color: var(--ink-light); text-align: center; font-weight: 700; letter-spacing: 0.05em; padding: 4px 0; }
.event-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; flex-shrink: 0; }

/* ── SPIN WHEEL ────────────────────────────── */
.wheel-container { position: relative; display: inline-block; }
.wheel-pointer { position: absolute; right: -16px; top: 50%; transform: translateY(-50%); font-size: 24px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

/* ── FINANCE ───────────────────────────────── */
.bill-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--line); padding: 14px; margin-bottom: 8px; }
.bill-card.overdue { border-color: var(--danger); background: #FFFAFA; }
.bill-card.paid { opacity: 0.6; }
.bill-amount { font-family: var(--font-display); font-size: 22px; color: var(--ink); }

/* ── FAMILY PROFILE ────────────────────────── */
.member-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; }
.member-avatar-lg { width: 52px; height: 52px; border-radius: 50%; font-size: 20px; font-weight: 700; color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── UPGRADE MODAL ─────────────────────────── */
#ugm { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 900; align-items: flex-end; justify-content: center; }
#ugm.on { display: flex; }
.ugb { background: var(--ivory); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 28px 22px; width: 100%; max-width: 480px; }

/* ── ONBOARDING ────────────────────────────── */
#welcome { position: fixed; inset: 0; z-index: 999; overflow-y: auto; }
.wl-screen { display: none; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; text-align: center; }
.wl-screen.on { display: flex; }
.wl-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 28px; }
.wl-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: background var(--transition); }
.wl-dot.on { background: var(--white); }
.wl-logo { font-family: var(--font-display); font-size: 44px; color: var(--white); font-style: italic; }
.wl-title { font-family: var(--font-display); font-size: 26px; color: var(--white); margin-bottom: 8px; }
.wl-sub { font-family: var(--font-body); font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 24px; line-height: 1.7; max-width: 320px; }
.wl-inp { width: 100%; max-width: 360px; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.4); color: var(--white); border-radius: var(--radius-md); padding: 14px 16px; font-size: 15px; outline: none; margin-bottom: 10px; font-family: var(--font-body); display: block; }
.wl-inp::placeholder { color: rgba(255,255,255,0.55); }
.wl-inp:focus { border-color: var(--white); background: rgba(255,255,255,0.25); }
.wl-btn { width: 100%; max-width: 360px; padding: 16px 0; background: var(--white); color: var(--sage-dark); border: none; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; font-family: var(--font-ui); margin-bottom: 10px; display: block; transition: all var(--transition); }
.wl-btn:active { transform: scale(0.98); }
.wl-btn-outline { width: 100%; max-width: 360px; padding: 14px 0; background: transparent; color: rgba(255,255,255,0.8); border: 1.5px solid rgba(255,255,255,0.4); border-radius: var(--radius-md); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; font-family: var(--font-ui); margin-bottom: 10px; }
.wl-skip { font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,0.5); cursor: pointer; text-decoration: underline; margin-top: 8px; }
.wl-member { background: rgba(255,255,255,0.15); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 8px; width: 100%; max-width: 360px; text-align: left; position: relative; }
.wl-member .wm-name { font-family: var(--font-display); font-size: 14px; color: var(--white); }
.wl-member .wm-detail { font-family: var(--font-body); font-size: 12px; color: rgba(255,255,255,0.65); }
.wl-member .wm-del { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.2); border: none; color: var(--white); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 12px; }
.wl-section-box { background: rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 16px; width: 100%; max-width: 360px; margin-bottom: 12px; }
.wl-label { font-family: var(--font-ui); font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; display: block; text-align: left; }

/* ── GOOGLE SIGN-IN ────────────────────────── */
.google-btn { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 360px; padding: 13px 16px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-md); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; font-family: var(--font-ui); color: var(--ink); transition: all var(--transition); margin-bottom: 10px; }
.google-btn:hover { box-shadow: var(--shadow-sm); }
.google-btn img { width: 20px; height: 20px; }
.user-pill { display: flex; align-items: center; gap: 8px; background: var(--sage-pale); border-radius: 99px; padding: 6px 14px 6px 6px; }
.user-pill img { width: 28px; height: 28px; border-radius: 50%; }
.user-pill span { font-size: 13px; font-weight: 700; color: var(--sage-dark); font-family: var(--font-body); }

/* ── ANIMATIONS ────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.fade-in { animation: fadeIn 0.3s ease; }

/* ── LIVE CLOCK ─────────────────────────────── */
.hdr-clock { position: absolute; top: 14px; right: 14px; text-align: right; }
.hdr-clock .clock-time { font-family: var(--font-display); font-size: 18px; color: rgba(255,255,255,0.95); font-weight: 500; line-height: 1.1; }
.hdr-clock .clock-date { font-family: var(--font-ui); font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.65); margin-top: 1px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 480px) { .hdr-clock .clock-date { display: none; } }

/* ── NOTIFICATION BADGE ─────────────────────── */
.notif-badge { position: absolute; top: 4px; right: 4px; background: var(--terra); color: var(--white); border-radius: 99px; font-size: 9px; font-weight: 700; padding: 1px 5px; min-width: 16px; text-align: center; line-height: 16px; height: 16px; }
.nb { position: relative; }

/* ── WATER GOAL BUTTONS ─────────────────────── */
.wl-water-grid { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.wl-water-btn { padding: 10px 18px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; font-family: var(--font-ui); border: 2px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); color: var(--white); transition: all var(--transition); }
.wl-water-btn.on { background: var(--white); color: var(--sage-dark); border-color: var(--white); }
.wl-water-btn:active { transform: scale(0.95); }

/* ── WATER CREATURE BUTTONS ─────────────────── */
.wl-creature-btn { padding: 10px 6px; border-radius: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; font-family: var(--font-ui); border: 2px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: var(--white); transition: all var(--transition); text-align: center; }
.wl-creature-btn.on { background: rgba(255,255,255,0.9); color: var(--sage-dark); border-color: var(--white); }
.wl-creature-btn:active { transform: scale(0.95); }

/* ── PREFERENCE TOGGLE BUTTONS ──────────────── */
.wl-pref-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.wl-pref-btn { padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font-ui); letter-spacing: 0.03em; border: 1.5px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); transition: all var(--transition); }
.wl-pref-btn.on { background: var(--white); color: var(--sage-dark); border-color: var(--white); font-weight: 700; }
.wl-pref-btn:active { transform: scale(0.95); }

/* ── REQUIRED POST-LOGIN ONBOARDING ───────── */
#required-onboarding { font-family: 'Lato', Arial, sans-serif; }
.ro-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(16px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.ro-top { margin-bottom: 18px; }
.ro-progress-meta {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
  text-align: center;
}
.ro-progress-track {
  height: 6px;
  background: rgba(255,255,255,0.22);
  border-radius: 99px;
  overflow: hidden;
}
.ro-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 99px;
  transition: width 0.35s ease;
}
.ro-hint {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.ro-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.ro-card {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  border: 1px solid rgba(255,255,255,0.18);
}
.ro-q {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 10px;
}
.ro-sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin-bottom: 16px;
}
.ro-label {
  display: block;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.ro-input {
  width: 100%;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 17px;
  font-family: 'Lato', Arial, sans-serif;
  outline: none;
}
.ro-input::placeholder { color: rgba(255,255,255,0.45); }
.ro-input:focus { border-color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.22); }
.ro-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ro-chip {
  padding: 12px 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.ro-chip.on {
  background: var(--white);
  color: var(--sage-dark);
  border-color: var(--white);
  font-weight: 700;
}
.ro-chip:active { transform: scale(0.97); }
.ro-primary {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--sage-dark);
  font-size: 17px;
  font-weight: 700;
  font-family: 'Lato', Arial, sans-serif;
  cursor: pointer;
  margin-top: 4px;
}
.ro-primary:active { transform: scale(0.98); }
.ro-ghost {
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 15px;
  cursor: pointer;
  text-decoration: underline;
}
.ro-radio-list { display: flex; flex-direction: column; gap: 10px; }
.ro-radio-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  color: rgba(255,255,255,0.95);
  font-size: 15px;
  line-height: 1.45;
}
.ro-radio-row input {
  margin-top: 3px;
  accent-color: var(--sage-dark);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.ro-child-row { margin-bottom: 14px; }
.ro-child-row-inner {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ro-child-row-inner .ro-input { flex: 1; min-width: 0; }
.ro-remove {
  flex-shrink: 0;
  width: 40px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ro-remove:active { transform: scale(0.96); opacity: 0.9; }
.ro-add-line {
  margin-top: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
.ro-add-line:active { transform: scale(0.99); background: rgba(255,255,255,0.14); }

/* Family shortcuts step — scroll form inside onboarding */
.ro-fs-scroll {
  max-height: min(52vh, 480px);
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 8px;
}
.ro-card.ro-card--wide {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.inp-on-ro .inp {
  background: rgba(255, 255, 255, 0.92);
  color: #3f3a34;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.inp-on-ro label {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* ── FIRST-TIME GUIDE OVERLAY ───────────────── */
#guide-overlay { display: none; position: fixed; inset: 0; z-index: 950; background: rgba(74,94,106,0.97); flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px; overflow-y: auto; }
#guide-overlay.on { display: flex; }
.guide-card { background: var(--white); border-radius: var(--radius-xl); padding: 28px 22px; width: 100%; max-width: 420px; text-align: center; position: relative; }
.guide-step-icon { font-size: 52px; margin-bottom: 16px; }
.guide-step-title { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 8px; font-style: italic; }
.guide-step-desc { font-family: var(--font-body); font-size: 15px; color: var(--ink-mid); line-height: 1.7; margin-bottom: 20px; }
.guide-progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.guide-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background var(--transition); }
.guide-dot.on { background: var(--sage-dark); }
.guide-close-row { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.guide-tip { background: var(--sage-pale); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 16px; font-family: var(--font-body); font-size: 13px; color: var(--sage-dark); text-align: left; line-height: 1.6; }

/* ── TIME GARDEN ─────────────────────────────── */
.garden-hdr { background: linear-gradient(135deg, #4A5E6A, #6E8066); }
.garden-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: 14px; }
.garden-card:active { transform: scale(0.98); background: var(--sage-pale); }
.garden-card-icon { font-size: 32px; flex-shrink: 0; width: 44px; text-align: center; }
.garden-card-body { flex: 1; }
.garden-card-title { font-family: var(--font-display); font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.garden-card-sub { font-family: var(--font-body); font-size: 12px; color: var(--ink-mid); }
.garden-card-arrow { font-size: 16px; color: var(--ink-light); flex-shrink: 0; }
.garden-card.hidden-card { opacity: 0.4; }
.garden-timer-bar { background: var(--sage-pale); border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px; }
.garden-timer-display { font-family: var(--font-display); font-size: 36px; color: var(--sage-dark); text-align: center; margin: 8px 0; }
.garden-section-label { font-family: var(--font-ui); font-size: 10px; font-weight: 600; color: var(--sage-dark); text-transform: uppercase; letter-spacing: 0.1em; margin: 14px 0 6px; }

/* ── CHORES SCREEN ───────────────────────────── */
.chore-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; }
.chore-card.done-card { opacity: 0.6; }
.chore-card.overdue-card { border-color: var(--terra); background: var(--terra-pale); }
.chore-assign-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--sage-pale); border-radius: 99px; padding: 3px 10px; font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sage-dark); }
.chore-due-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--birch-light); border-radius: 99px; padding: 3px 10px; font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-mid); }
.chore-reminder-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--terra-pale); border-radius: 99px; padding: 3px 10px; font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--terra-dark); }

/* ── PROFILE SCREEN ──────────────────────────── */
.profile-photo-ring { width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--sage); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--sage-pale); flex-shrink: 0; margin: 0 auto 12px; cursor: pointer; position: relative; }
.profile-photo-ring img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-ring .photo-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; font-size: 22px; opacity: 0; transition: opacity var(--transition); border-radius: 50%; }
.profile-photo-ring:hover .photo-overlay { opacity: 1; }
.profile-section-title { font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-bottom: 10px; margin-top: 14px; }
.profile-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toggle-switch { width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; cursor: pointer; transition: background var(--transition); flex-shrink: 0; }
.toggle-switch.on { background: var(--sage-dark); }
.toggle-switch::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--white); top: 3px; left: 3px; transition: left var(--transition); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle-switch.on::after { left: 21px; }

/* ── ADMIN SCREEN ────────────────────────────── */
.admin-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.admin-stat { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--line); padding: 14px 12px; text-align: center; }
.admin-stat-num { font-family: var(--font-display); font-size: 28px; color: var(--sage-dark); }
.admin-stat-label { font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-light); margin-top: 2px; }
.admin-user-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ── FAMILY HUB CARDS ────────────────────────── */
.fam-hub-card { background: var(--white); border-radius: var(--radius-xl); border: 1px solid var(--line); padding: 20px 18px; margin-bottom: 12px; cursor: pointer; transition: all var(--transition); display: flex; gap: 16px; align-items: center; min-height: 80px; }
.fam-hub-card:active { transform: scale(0.98); }
.fam-hub-card-icon { font-size: 36px; flex-shrink: 0; }
.fam-hub-card-body { flex: 1; }
.fam-hub-card-title { font-family: var(--font-display); font-size: 17px; color: var(--ink); margin-bottom: 3px; }
.fam-hub-card-sub { font-family: var(--font-body); font-size: 12px; color: var(--ink-mid); line-height: 1.5; }
.fam-hub-card-arrow { font-size: 18px; color: var(--ink-light); flex-shrink: 0; }

/* ── AFFIRMATION CARD (branded) ──────────────── */
.aff-branded-card { background: linear-gradient(135deg, #4A5E6A, #8C5A48); border-radius: var(--radius-xl); padding: 32px 24px; text-align: center; margin-bottom: 14px; position: relative; overflow: hidden; }
.aff-branded-card::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.aff-branded-text { font-family: var(--font-display); font-size: 18px; color: var(--white); font-style: italic; line-height: 1.7; margin: 12px 0; position: relative; z-index: 1; }
.aff-branded-logo { font-family: var(--font-display); font-size: 12px; color: rgba(255,255,255,0.6); position: relative; z-index: 1; }
.aff-share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.aff-share-btn { flex: 1; min-width: 80px; padding: 10px 8px; border-radius: var(--radius-md); font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; border: none; transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 5px; }
.aff-share-btn:active { transform: scale(0.96); }

/* ── OUTSIDE ACTIVITIES ──────────────────────── */
.activity-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.activity-card.done-act { opacity: 0.55; }
.activity-card.fav-act { border-color: var(--terra-light); background: var(--terra-pale); }

/* ── PURCHASE PREVIEW REEL (memories / Christmas) ── */
.ab-example-reel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.ab-example-reel--modal {
  max-height: 220px;
  padding-bottom: 4px;
}
.ab-example-reel-card {
  flex: 0 0 156px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 10px 12px;
}
.ab-example-reel--modal .ab-example-reel-card {
  flex: 0 0 168px;
}
.ab-example-reel-label {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.household-linked-card { border-radius: var(--radius-xl); }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 380px) {
  .hdr h2 { font-size: 20px; }
  .nl { font-size: 8px; }
  .ni { font-size: 18px; }
}
@media (min-width: 768px) {
  #app { max-width: 480px; margin: 0 auto; }
  .nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
}

/* ── HOME TAB — daily companion (softer surfaces; website = command center) ─ */
.ab-home-companion {
  min-height: 100%;
  background: linear-gradient(185deg, #ebe6dd 0%, #faf8f5 44%, #fffefc 100%);
}
.ab-home-companion .pad {
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
}
.ab-home-companion .card,
.ab-home-companion .card.card-sage {
  border: none !important;
  box-shadow: 0 16px 48px rgba(63, 58, 52, 0.07);
  border-radius: 22px;
  padding: 18px 16px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.88);
}
.ab-home-companion .card.card-sage {
  background: rgba(238, 243, 236, 0.92);
}
.ab-home-companion .ab-home-web-hint a:active {
  opacity: 0.85;
}

.ab-home-companion .ab-home-pad {
  padding: 14px 20px 8px;
}

.ab-home-companion .ab-home-today {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 22px 60px rgba(63, 58, 52, 0.09) !important;
}

.ab-home-companion .ab-home-reminders {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 226, 218, 0.65);
}

.ab-home-companion .ab-home-secondary {
  box-shadow: 0 10px 32px rgba(63, 58, 52, 0.05) !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

.ab-home-companion .ab-home-secondary.card-sage {
  background: rgba(238, 243, 236, 0.75) !important;
}

.ab-home-companion .ab-home-room--terra {
  background: linear-gradient(145deg, rgba(255, 252, 249, 0.98) 0%, #faf0eb 100%) !important;
}

.ab-home-companion .ab-home-room--sage.card-sage {
  background: linear-gradient(180deg, rgba(252, 253, 251, 0.95) 0%, rgba(238, 243, 236, 0.88) 100%) !important;
}

.ab-home-companion #task-list .chk {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border-width: 1.5px;
}

.ab-home-companion .ab-home-extras {
  box-shadow: 0 10px 28px rgba(63, 58, 52, 0.05) !important;
}

/* ── MEALS TAB — calm “dinner is handled” room ─────────────────────────── */
.ab-meals-root {
  min-height: 100%;
  background: linear-gradient(185deg, #ebe6dd 0%, #faf8f5 42%, #fffefc 100%);
}

.ab-meals-from-home {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: rgba(255, 252, 249, 0.92);
  border-bottom: 1px solid rgba(216, 210, 199, 0.45);
}
.ab-meals-from-home__btn {
  background: rgba(63, 58, 52, 0.08);
  border: none;
  color: #3f3a34;
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 600;
}
.ab-meals-from-home__hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-mid);
}

.ab-meals-root .hdr.ab-meals-hdr {
  background: linear-gradient(135deg, #8c5a48 0%, #a67c6d 42%, #6e8066 100%) !important;
  padding-bottom: 22px;
}
.ab-meals-hdr-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 8px;
}
.ab-meals-hdr-lede {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  margin: 10px 0 0;
  max-width: 22rem;
}
.ab-meals-hdr-lede--inline {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.95;
}
.ab-meals-hdr--sub .ab-meals-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.ab-meals-hdr--sub h2 {
  font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
  margin: 0 !important;
  flex: 1;
  min-width: 0;
}
.ab-meals-back {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  flex-shrink: 0;
}

.ab-meals-pad {
  padding-left: 18px !important;
  padding-right: 18px !important;
  padding-top: 8px !important;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)) !important;
}

.ab-meals-dinner-focus {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 20px 18px 18px;
  margin-bottom: 18px;
  box-shadow: 0 18px 48px rgba(63, 58, 52, 0.07);
}
.ab-meals-dinner-focus__eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0 0 8px;
}
.ab-meals-dinner-focus__copy {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0 0 16px;
}
.ab-meals-dinner-focus__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ab-meals-dinner-focus__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ab-meals-dinner-focus__row .ab-meals-btn {
  flex: 1;
  min-width: 140px;
}

.ab-meals-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 14px;
  padding: 12px 16px;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.ab-meals-btn:active {
  transform: scale(0.98);
}
.ab-meals-btn--primary {
  background: #3f3a34;
  color: #fdfcfa;
}
.ab-meals-btn--sage {
  background: var(--sage-dark);
  color: #fff;
}
.ab-meals-btn--ghost {
  background: rgba(250, 240, 235, 0.95);
  color: #6e4a3a;
  border: 1px solid rgba(237, 216, 207, 0.9);
}
.ab-meals-btn--light {
  background: #fff;
  color: var(--sage-dark);
  flex-shrink: 0;
}
.ab-meals-btn--block {
  width: 100%;
  margin-bottom: 16px;
}
.ab-meals-btn--mini {
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 12px;
  background: rgba(63, 58, 52, 0.08);
  color: var(--ink);
}

.ab-meals-spin {
  position: relative;
  border-radius: 24px;
  margin-bottom: 18px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(140, 90, 72, 0.18);
  background: linear-gradient(145deg, #c98f7a 0%, #8c5a48 55%, #6e5248 100%);
}
.ab-meals-spin__glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 80%;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.2), transparent 55%);
  pointer-events: none;
}
.ab-meals-spin__inner {
  position: relative;
  padding: 22px 20px 24px;
}
.ab-meals-spin__eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 8px;
}
.ab-meals-spin__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
  font-weight: 600;
}
.ab-meals-spin__copy {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 16px;
  max-width: 20rem;
}
.ab-meals-spin__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #6e4035;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 14px;
}

.ab-meals-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-radius: 22px;
  padding: 18px 16px;
  margin-bottom: 22px;
}
.ab-meals-panel--sage {
  background: linear-gradient(135deg, rgba(110, 128, 102, 0.92), rgba(138, 152, 130, 0.88));
  box-shadow: 0 14px 40px rgba(74, 94, 106, 0.15);
}
.ab-meals-panel__text {
  flex: 1;
  min-width: 180px;
}
.ab-meals-panel__eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 6px;
}
.ab-meals-panel__title {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  margin: 0 0 6px;
  font-weight: 600;
}
.ab-meals-panel__copy {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.ab-meals-section-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 6px 0 12px;
}
.ab-meals-section-label--tight {
  margin-top: 0;
}

.ab-meals-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 16px 16px;
  margin-bottom: 11px;
  cursor: pointer;
  border: none;
  box-shadow: 0 12px 36px rgba(63, 58, 52, 0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}
.ab-meals-tile:active {
  transform: scale(0.99);
}
.ab-meals-tile__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.ab-meals-tile__body {
  flex: 1;
  min-width: 0;
}
.ab-meals-tile__name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
}
.ab-meals-tile__sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--terra);
  margin-top: 4px;
  line-height: 1.4;
}
.ab-meals-tile__chev {
  font-size: 20px;
  color: rgba(216, 210, 199, 0.9);
  flex-shrink: 0;
}

.ab-meals-tile--recipe {
  display: block;
  cursor: pointer;
}
.ab-meals-tile__recipe-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.ab-meals-tile__price {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--sage-dark);
  font-weight: 600;
  flex-shrink: 0;
}

.ab-meals-tile--restaurant {
  cursor: default;
}
.ab-meals-rest-link {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.ab-meals-rest-link__ext {
  font-size: 11px;
  color: var(--sage-dark);
}
.ab-meals-rest-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.ab-meals-iconbtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 4px;
  color: var(--terra-dark);
}
.ab-meals-iconbtn--muted {
  font-size: 14px;
  color: var(--ink-light);
}

.ab-meals-empty {
  text-align: center;
  padding: 28px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.55;
}

.ab-meals-recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.ab-meals-sec-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 18px 0 8px;
}
.ab-meals-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid rgba(237, 232, 226, 0.75);
  font-family: var(--font-body);
}
.ab-meals-row span {
  font-size: 11px;
  color: var(--ink-light);
  flex-shrink: 0;
}
.ab-meals-row--simple {
  border-bottom-style: dashed;
  border-color: rgba(237, 232, 226, 0.9);
}
.ab-meals-step {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.ab-meals-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8c5a48, #6e8066);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-ui);
}
.ab-meals-step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  font-family: var(--font-body);
}

.ab-meals-tip {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mid);
  padding: 10px 0;
  border-bottom: 1px solid rgba(237, 232, 226, 0.55);
}
.ab-meals-note {
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(250, 240, 235, 0.65);
  border: 1px solid rgba(237, 216, 207, 0.5);
}
.ab-meals-note__title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 600;
}

.ab-meals-pills {
  margin-bottom: 14px;
}
.ab-meals-eatout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ab-meals-footnote {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-light);
  text-align: center;
  margin-top: 14px;
  line-height: 1.45;
}

/* ── FAMILY TAB — connection, shared rhythm (matches Home / Meals) ─ */
.ab-family-root {
  min-height: 100%;
  background: linear-gradient(185deg, #ebe6dd 0%, #faf8f5 42%, #fffefc 100%);
}
.ab-family-root--section {
  min-height: 100%;
}

.ab-family-root .hdr.ab-family-hdr {
  background: linear-gradient(135deg, #4a5e6a 0%, #6e8066 48%, #8c5a48 100%) !important;
  padding-bottom: 26px;
}
.ab-family-root--section .hdr.ab-family-hdr--section {
  padding-bottom: 20px;
}

.ab-family-hdr-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 8px;
}
.ab-family-hdr-lede {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  margin: 10px 0 0;
  max-width: 22rem;
}
.ab-family-hdr-lede--tight {
  margin-top: 6px;
  font-size: 12px;
  max-width: 20rem;
}
.ab-family-hdr-back {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
}

.ab-family-pad {
  padding-left: 18px !important;
  padding-right: 18px !important;
  padding-top: 8px !important;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)) !important;
}

.ab-family-hub .hdr {
  padding-bottom: 22px;
}
.ab-family-hub .hdr h2 {
  letter-spacing: 0.01em;
}
.ab-family-hub .pad {
  padding-top: 16px;
}

.ab-family-hub .card,
.ab-family-pad > .card {
  border: none !important;
  box-shadow: 0 16px 48px rgba(63, 58, 52, 0.07);
  border-radius: 22px;
  padding: 18px 16px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.9);
}
.ab-family-hub .card.card-sage,
.ab-family-pad .card.card-sage,
.ab-family-panel--sage {
  background: rgba(238, 243, 236, 0.92) !important;
  box-shadow: 0 14px 40px rgba(110, 128, 102, 0.12);
}

.ab-family-block {
  margin-bottom: 26px;
}
.ab-family-block__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.ab-family-section-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0 0 4px;
}
.ab-family-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.ab-family-textlink {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--sage-dark);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ab-family-tile {
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ab-family-tile[onclick] {
  cursor: pointer;
}
.ab-family-tile:active[onclick] {
  transform: scale(0.99);
}

.ab-family-tile__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ab-family-tile__row--click {
  cursor: pointer;
}
.ab-family-tile__emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.ab-family-tile__body {
  flex: 1;
  min-width: 0;
}
.ab-family-tile__eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 4px;
}
.ab-family-tile__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.ab-family-tile__text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
}
.ab-family-tile__sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-mid);
  margin-top: 2px;
}
.ab-family-tile__hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--terra-dark);
  margin-top: 6px;
}
.ab-family-tile__quote {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--terra-dark);
  font-style: italic;
  line-height: 1.45;
}
.ab-family-tile__link {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--sage-dark);
  align-self: center;
}

.ab-family-tile--warm {
  background: linear-gradient(145deg, rgba(255, 252, 249, 0.98), #faf0eb) !important;
  box-shadow: 0 14px 36px rgba(140, 90, 72, 0.1) !important;
}
.ab-family-tile--gold {
  background: linear-gradient(160deg, #fffefc, #fdf6ed) !important;
  border: 1px solid rgba(237, 216, 207, 0.55) !important;
}
.ab-family-tile--kindness {
  background: rgba(253, 250, 252, 0.95) !important;
}
.ab-family-tile--rhythm {
  background: rgba(252, 253, 251, 0.95) !important;
}
.ab-family-tile--love {
  background: linear-gradient(135deg, rgba(253, 240, 245, 0.95), #faf7f1) !important;
  box-shadow: 0 14px 40px rgba(201, 143, 122, 0.12) !important;
}
.ab-family-tile--empty {
  text-align: center;
  padding: 22px 16px !important;
  background: rgba(255, 255, 255, 0.75) !important;
}
.ab-family-tile--memory {
  background: linear-gradient(165deg, #fffdf8, #fff8ec) !important;
}
.ab-family-tile--idea {
  background: rgba(255, 255, 255, 0.88) !important;
}
.ab-family-tile--date {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ab-family-tile--date .ab-family-tile__body {
  flex: 1 1 140px;
  min-width: 0;
}
.ab-family-tile--date .ab-family-pillbtn {
  margin-left: auto;
}

.ab-family-pillbtn {
  flex-shrink: 0;
  background: var(--terra-pale);
  color: var(--terra-dark);
  border: 1px solid var(--terra-light);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ab-family-panel .ab-family-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.ab-family-panel__lede {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.5;
  flex: 1;
}
.ab-family-panel__pct {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--sage-dark);
  flex-shrink: 0;
}
.ab-family-prog {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.ab-family-flow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(237, 232, 226, 0.85);
  font-size: 13px;
  color: var(--ink);
}
.ab-family-flow-row:last-of-type {
  border-bottom: none;
}
.ab-family-flow-row .chk {
  flex-shrink: 0;
}
.ab-family-flow-main {
  flex: 1;
  min-width: 0;
}
.ab-family-assign {
  display: block;
  font-size: 11px;
  color: var(--sage-dark);
  margin-top: 3px;
}
.ab-family-helpchip {
  flex-shrink: 0;
  background: rgba(238, 243, 236, 0.95);
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--sage-dark);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
}
.ab-family-seeall {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: rgba(238, 243, 236, 0.65);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-dark);
  cursor: pointer;
}

.ab-family-linked {
  background: rgba(255, 255, 255, 0.88) !important;
}
.ab-family-linked__eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 0 0 10px;
}

.ab-family-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ab-family-chip {
  background: rgba(238, 243, 236, 0.95);
  color: var(--sage-dark);
  border: 1px solid rgba(168, 184, 161, 0.55);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}
.ab-family-chip--terra {
  background: var(--terra-pale);
  color: var(--terra-dark);
  border-color: var(--terra-light);
}
.ab-family-chip--primary {
  background: var(--terra-dark);
  color: #fff;
  border-color: transparent;
}
.ab-family-chip--slate {
  background: rgba(74, 94, 106, 0.1);
  color: var(--slate);
  border-color: rgba(74, 94, 106, 0.2);
}

.ab-family-people-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.ab-family-person-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 14px 12px;
  box-shadow: 0 10px 32px rgba(63, 58, 52, 0.06);
  cursor: pointer;
  transition: transform var(--transition);
}
.ab-family-person-card:active {
  transform: scale(0.98);
}
.ab-family-person-card .avatar {
  margin: 0 auto 10px;
}
.ab-family-person-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
}
.ab-family-person-card__role {
  font-size: 11px;
  color: var(--ink-light);
  text-align: center;
  margin-top: 2px;
}
.ab-family-person-card__meta {
  font-size: 11px;
  color: var(--sage-dark);
  text-align: center;
  margin-top: 6px;
}
.ab-family-person-card__fav {
  font-size: 11px;
  color: var(--terra-dark);
  text-align: center;
  margin-top: 6px;
  line-height: 1.35;
}
.ab-family-person-card__btns {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  justify-content: center;
}
.ab-family-person-card__btn {
  flex: 1;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(250, 247, 241, 0.9);
  color: var(--ink-mid);
  cursor: pointer;
  font-family: var(--font-body);
}

.ab-family-cta {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  padding: 12px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--terra-dark), #a67c6d);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(140, 90, 72, 0.25);
}
.ab-family-cta--ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--terra-dark);
  border: 1px solid var(--terra-light);
  box-shadow: none;
  max-width: none;
  width: auto;
  display: inline-block;
  margin: 12px 0 0;
}

.ab-family-memory-lines {
  margin: 10px 0 8px;
}
.ab-family-memory-line {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(216, 210, 199, 0.65);
  margin: 0;
}
.ab-family-memory-line:last-child {
  border-bottom: none;
}
.ab-family-memory-foot {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--terra-dark);
  line-height: 1.5;
  margin: 8px 0 0;
}
.ab-family-memory-banner {
  margin-top: 14px;
  background: linear-gradient(135deg, var(--terra-dark), #c98f7a);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-body);
  text-align: center;
  font-weight: 600;
}

.ab-family-quick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.ab-family-quick-emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.ab-family-quick-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.ab-family-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ab-family-tile--reminders {
  cursor: pointer;
}
.ab-family-reminders-hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-mid);
  line-height: 1.5;
  margin: 0 0 8px;
}
.ab-family-rem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(237, 232, 226, 0.85);
}
.ab-family-rem-row:last-child {
  border-bottom: none;
}
.ab-family-rem-row__body {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--ink);
}
.ab-family-rem-row__body strong {
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}
.ab-family-rem-row__meta {
  font-size: 11px;
  color: var(--ink-light);
}
.ab-family-rem-done {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
}
.ab-family-rem-done--todo {
  background: var(--sage-pale);
  color: var(--sage-dark);
}
.ab-family-rem-done--done {
  background: var(--ink-light);
  color: #fff;
}

.ab-family-hub .chk,
.ab-family-pad .chk {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

/* ── COMMUNITY TAB — warmth, “you are not alone” ─ */
.ab-community-root {
  min-height: 100%;
  background: linear-gradient(195deg, #ebe8e2 0%, #faf8f5 38%, #fffefc 100%);
}

.ab-community-root .hdr.ab-community-hdr {
  background: linear-gradient(125deg, #5a6d78 0%, #6e8066 45%, #9a6f5e 100%) !important;
  padding-bottom: 26px;
}
.ab-community-hdr-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 8px;
}
.ab-community-hdr-lede {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  margin: 10px 0 0;
  max-width: 22rem;
}

.ab-community-pad {
  padding-left: 18px !important;
  padding-right: 18px !important;
  padding-top: 10px !important;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)) !important;
}

.ab-community-compose {
  cursor: pointer;
  border: none !important;
  box-shadow: 0 16px 44px rgba(63, 58, 52, 0.08);
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  margin-bottom: 18px !important;
  padding: 18px 16px !important;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ab-community-compose:active {
  transform: scale(0.99);
}
.ab-community-compose__hint {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0 0 10px;
}
.ab-community-compose__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ab-community-compose__avatar {
  width: 40px;
  height: 40px;
  font-size: 16px;
  flex-shrink: 0;
}
.ab-community-compose__fakeinp {
  flex: 1;
  background: rgba(245, 243, 239, 0.95);
  border-radius: 22px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.45;
  border: 1px solid rgba(216, 210, 199, 0.45);
}
.ab-community-compose__types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ab-community-typechip {
  border: none;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ab-com-chip, var(--sage-dark));
  background: color-mix(in srgb, var(--ab-com-chip, var(--sage-dark)) 14%, #fff);
  box-shadow: 0 1px 0 rgba(63, 58, 52, 0.06);
}
.ab-community-typechip:active {
  transform: scale(0.97);
}

.ab-community-feed-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 10px;
}

.ab-community-pills.pills {
  margin-bottom: 14px;
  gap: 8px;
}
.ab-community-pills .pill {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  border: 1px solid rgba(216, 210, 199, 0.85);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-mid);
}
.ab-community-pills .pill.on {
  background: linear-gradient(135deg, var(--sage-dark), #5a735c) !important;
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(110, 128, 102, 0.35);
}

.ab-community-posts .card.ab-community-post {
  border: none !important;
  box-shadow: 0 12px 36px rgba(63, 58, 52, 0.07);
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  margin-bottom: 14px !important;
  padding: 16px 15px !important;
  overflow: hidden;
}
.ab-community-post--pinned {
  background: linear-gradient(165deg, rgba(255, 252, 249, 0.98), rgba(253, 248, 244, 0.95)) !important;
  box-shadow: 0 14px 40px rgba(201, 143, 122, 0.12) !important;
}
.ab-community-post__ribbon {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--terra-dark);
  background: rgba(250, 240, 235, 0.9);
  margin: -16px -15px 12px;
  padding: 9px 15px;
  border-bottom: 1px solid rgba(237, 216, 207, 0.55);
}
.ab-community-post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ab-community-post__avatar {
  width: 42px;
  height: 42px;
  font-size: 16px;
  flex-shrink: 0;
}
.ab-community-post__meta {
  flex: 1;
  min-width: 0;
}
.ab-community-post__user {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.ab-community-post__date {
  font-size: 10px;
  color: var(--ink-light);
  margin-top: 2px;
}
.ab-community-post__badge {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 4px 11px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--ab-com-chip, var(--sage-dark));
  background: color-mix(in srgb, var(--ab-com-chip, var(--sage-dark)) 16%, #fff);
  border: 1px solid color-mix(in srgb, var(--ab-com-chip, var(--sage-dark)) 22%, transparent);
}
.ab-community-post__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 8px;
}
.ab-community-post__body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 14px;
}
.ab-community-post__actions {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 226, 218, 0.9);
}
.ab-community-post__like,
.ab-community-post__comments {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-light);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  border-radius: 8px;
}
.ab-community-post__like--on {
  color: var(--terra);
}
.ab-community-post__comments:hover,
.ab-community-post__like:hover {
  color: var(--terra-dark);
}

.ab-community-empty {
  text-align: center;
  padding: 36px 18px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(216, 210, 199, 0.75);
  margin-bottom: 12px;
}
.ab-community-empty__icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}
.ab-community-empty__title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
}
.ab-community-empty__copy {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.55;
  max-width: 260px;
  margin: 0 auto 16px;
}
.ab-community-empty__btn {
  background: linear-gradient(135deg, var(--sage-dark), #5d6f62);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(110, 128, 102, 0.28);
}

/* Community age gate (modal body) */
.ab-com-age {
  text-align: center;
  padding: 4px 0 8px;
}
.ab-com-age__icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 10px;
}
.ab-com-age__eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0 0 6px;
}
.ab-com-age__title {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.25;
}
.ab-com-age__panel {
  background: linear-gradient(160deg, #faf0eb, #fffefc);
  border-radius: 16px;
  border: 1px solid rgba(237, 216, 207, 0.85);
  padding: 16px 15px;
  margin-bottom: 18px;
  text-align: left;
}
.ab-com-age__rule {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--terra-dark);
  margin: 0 0 8px;
}
.ab-com-age__copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin: 0;
}
.ab-com-age__enter {
  background: linear-gradient(135deg, var(--sage-dark), #5a6d5e) !important;
  border-radius: 14px !important;
}
.ab-com-age__back {
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-light);
  cursor: pointer;
  padding: 8px;
}
.ab-com-age__back:hover {
  color: var(--ink-mid);
}
