/* Round 117: engagement + village + notification preferences + announcement + install prompt + celebrations */
.pro-flair { display:inline-flex; margin-left:4px; vertical-align:middle; } .pro-flair .ic { width:14px; height:14px; }

/* Today card */
.td { margin:0 0 22px; }
.td__event { display:flex; gap:8px; align-items:center; padding:10px 14px; border-radius:14px; background:linear-gradient(90deg,#fff3d6,#ffe2cf); color:#7a4a08; font-size:14px; margin-bottom:12px; border:1px solid #f3d9a8; }
.td__welcome { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius:14px; background:#eaf4ff; color:#1f4a7a; font-size:14px; margin-bottom:12px; border:1px solid #cfe3f7; }
.td__grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.td__card { background:var(--color-surface,#fff); border:1px solid var(--color-border); border-radius:18px; padding:16px 18px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:8px; }
.td__card header { display:flex; align-items:center; gap:8px; } .td__card h3 { margin:0; font-size:15px; } .td__card h3 small { color:var(--color-text-muted); font-weight:600; margin-left:4px; }
.td__flame .ic { width:24px; height:24px; }
.td__big { margin:0; font-size:15px; color:var(--color-text-muted); } .td__big b { font-size:38px; line-height:1; color:var(--color-primary); font-family:var(--font-display); }
.td__sub { margin:0; font-size:13px; color:var(--color-text-muted); line-height:1.45; }
.td__freeze { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:13px; } .td__freeze .ic { width:16px; height:16px; vertical-align:-3px; }
.td__btn { border:1px solid var(--color-border); background:var(--color-bg); border-radius:999px; padding:5px 12px; font-size:12.5px; font-weight:700; cursor:pointer; color:var(--color-text); }
.td__btn:disabled { opacity:.5; cursor:not-allowed; }
.td__cta { align-self:flex-start; min-height:auto; padding:8px 16px; }
.td__goals { display:flex; gap:6px; flex-wrap:wrap; }
.td__chip { border:1px solid var(--color-border); background:var(--color-bg); border-radius:999px; min-width:44px; padding:5px 10px; font-weight:700; cursor:pointer; color:var(--color-text); }
.td__chip.is-on { background:var(--color-primary); border-color:var(--color-primary); color:var(--color-primary-contrast,#fff); }
.td__card ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.td__card li { display:flex; gap:10px; align-items:flex-start; font-size:14px; } .td__card li small { display:block; color:var(--color-text-muted); font-size:12px; }
.td__card li.is-done b, .td__card li.is-done span:not(.td__tick) { text-decoration:line-through; opacity:.65; }
.td__tick { flex:none; width:20px; height:20px; border-radius:50%; border:2px solid var(--color-border); display:inline-flex; align-items:center; justify-content:center; margin-top:1px; }
.td__tick .ic { width:12px; height:12px; } .is-done .td__tick { background:#d8f3e6; border-color:#279672; }
.td__tip { margin:12px 2px 0; font-size:14px; color:var(--color-text-muted); line-height:1.5; } .td__tip .ic { width:18px; height:18px; vertical-align:-4px; }

/* Village */
.vl-hero { display:grid; grid-template-columns:1fr auto; gap:22px; align-items:center; padding:26px 28px; border-radius:22px; background:linear-gradient(135deg,#FDE4D6,#efe6ff 60%,#ffe6ef); border:1px solid #d9d6f3; margin-bottom:20px; }
.vl-hero h1 { font-size:clamp(24px,3.4vw,34px); line-height:1.15; margin:6px 0 10px; } .vl-hero p { margin:0; max-width:560px; color:#3a3f56; line-height:1.55; }
.vl-eyebrow { display:inline-flex; gap:6px; align-items:center; font-size:12.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#B8341A; }
.vl-hero__stats { display:grid; grid-template-columns:repeat(3,auto); gap:16px; padding:14px 18px; background:#fff; border-radius:16px; border:1px solid #d9d6f3; text-align:center; }
.vl-hero__stats b { display:block; font-size:26px; color:var(--color-primary); } .vl-hero__stats span { font-size:12px; color:var(--color-text-muted); }
.vl-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:16px; }
.vl-card { background:var(--color-surface,#fff); border:1px solid var(--color-border); border-radius:18px; padding:18px 20px; box-shadow:var(--shadow-sm); }
.vl-card h2 { margin:0 0 10px; font-size:17px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .vl-card h2 .ic { width:22px; height:22px; } .vl-card h2 small { font-size:12px; font-weight:600; color:var(--color-text-muted); margin-left:auto; }
.vl-empty { color:var(--color-text-muted); font-size:14px; margin:0; }
.vl-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; } .vl-list li { display:grid; grid-template-columns:28px 1fr auto; gap:8px; align-items:center; padding:6px 8px; border-radius:12px; } .vl-list li.is-me { background:#fff6d9; }
.vl-rank { width:26px; height:26px; border-radius:50%; background:#FDE4D6; color:#B8341A; font-weight:800; font-size:13px; display:inline-flex; align-items:center; justify-content:center; }
.vl-list li:nth-child(1) .vl-rank { background:#ffe38f; color:#7a5200; } .vl-list li:nth-child(2) .vl-rank { background:#e3e8ef; color:#3d4756; } .vl-list li:nth-child(3) .vl-rank { background:#f4d2b4; color:#7a4a22; }
.vl-me { margin:10px 0 0; font-size:13px; color:var(--color-text-muted); line-height:1.5; }
.vl-rows { list-style:none; margin:0; padding:0; display:grid; gap:10px; } .vl-rows a { font-weight:700; color:var(--color-text); text-decoration:none; } .vl-rows a:hover { color:var(--color-primary); } .vl-rows small { display:block; color:var(--color-text-muted); font-size:12px; }
.vl-spot { background:linear-gradient(135deg,#fff7e0,#ffeacb); border-color:#f1d79c; } .vl-spot__who { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:8px; } .vl-spot p { color:#5a4520; line-height:1.5; }
.vl-impact__grid { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; text-align:center; } .vl-impact__grid b { display:block; font-size:24px; color:var(--color-primary); } .vl-impact__grid span { font-size:12px; color:var(--color-text-muted); }
.vl-card-share { display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top:12px; } .vl-card-share img { border-radius:12px; max-width:100%; height:auto; border:1px solid var(--color-border); }
@media (max-width:640px) { .vl-hero { grid-template-columns: minmax(0, 1fr); padding:20px; } .vl-hero__stats { grid-template-columns:repeat(3, minmax(0, 1fr)); } }

/* Golden Heart button */
.kd { display:inline-flex; gap:6px; align-items:center; border:1px solid #f1d79c; background:#fff9e8; color:#8a6410; border-radius:999px; padding:5px 12px; font-size:13px; font-weight:700; cursor:pointer; }
.kd .ic { width:16px; height:16px; } .kd:hover { background:#fff1c7; } .kd.is-on { background:#ffd166; border-color:#f0a100; color:#5d3f00; cursor:default; }
.kd:disabled { opacity:.7; } .kd.is-readonly { cursor:default; }

/* Notification preferences */
.np__lead { color:var(--color-text-muted); margin:0 0 16px; }
.np__form { background:var(--color-surface,#fff); border:1px solid var(--color-border); border-radius:18px; padding:6px 18px 18px; }
.np__row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 0; border-bottom:1px solid var(--color-border); cursor:pointer; }
.np__txt b { display:block; } .np__txt small { color:var(--color-text-muted); font-size:13px; line-height:1.45; display:block; margin-top:2px; }
.np__sw { flex:none; width:44px; height:24px; appearance:none; -webkit-appearance:none; border-radius:999px; background:#cfd5dd; position:relative; cursor:pointer; transition:background .2s; border:0; }
.np__sw::after { content:''; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:transform .2s; box-shadow:0 1px 2px rgba(0,0,0,.25); }
.np__sw:checked { background:var(--color-primary); } .np__sw:checked::after { transform:translateX(20px); } .np__sw:focus-visible { outline:3px solid #9fc8ff; outline-offset:2px; }
.np__actions { display:flex; gap:14px; align-items:center; margin-top:16px; } .np__foot { color:var(--color-text-muted); font-size:13px; margin-top:14px; }

/* Announcement banner */
.ann { display:flex; gap:12px; align-items:center; justify-content:center; padding:9px 44px 9px 16px; font-size:14px; position:relative; text-align:center; }
.ann--info { background:#FDE4D6; color:#B8341A; } .ann--success { background:#e3f4ec; color:#1f6b4f; } .ann--warning { background:#fff3d6; color:#7a4a08; } .ann--promo { background:linear-gradient(90deg,#2A1A14,#B8341A); color:#fff; }
.ann a { font-weight:800; color:inherit; text-decoration:underline; } .ann__x { position:absolute; right:10px; top:50%; transform:translateY(-50%); background:none; border:0; color:inherit; font-size:22px; line-height:1; cursor:pointer; padding:4px 8px; }

/* Toast, celebration, install bar */
.eg-toast { position:fixed; left:50%; bottom:28px; transform:translateX(-50%); background:#2A1A14; color:#fff; padding:11px 18px; border-radius:999px; font-size:14px; z-index:9999; box-shadow:0 8px 24px rgba(0,0,0,.25); transition:opacity .35s; max-width:92vw; text-align:center; }
.eg-toast--bad { background:#b3261e; } .eg-toast.is-out { opacity:0; }
.eg-cele { position:fixed; inset:0; background:rgba(42,26,20,.55); z-index:9998; display:flex; align-items:center; justify-content:center; overflow:hidden; padding:16px; }
.eg-cele__card { position:relative; background:#fff; color:#1d2433; border-radius:24px; padding:30px 34px; text-align:center; max-width:380px; box-shadow:0 20px 60px rgba(0,0,0,.35); animation:eg-pop .35s ease-out; }
.eg-cele__card h2 { margin:0 0 8px; font-family:var(--font-display); } .eg-cele__card p { margin:0 0 18px; color:#6B5E57; line-height:1.5; }
.eg-conf { position:absolute; top:-12px; width:9px; height:14px; border-radius:2px; animation:eg-fall linear forwards; }
@keyframes eg-fall { to { top:105%; } } @keyframes eg-pop { from { transform:scale(.85); opacity:0; } to { transform:scale(1); opacity:1; } }
@media (prefers-reduced-motion:reduce) { .eg-cele__card { animation:none; } .eg-toast { transition:none; } }
.eg-pwa { position:fixed; left:12px; right:12px; bottom:12px; z-index:9990; background:#2A1A14; color:#fff; padding:12px 14px; border-radius:16px; display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; box-shadow:0 10px 30px rgba(0,0,0,.3); font-size:14px; max-width:560px; margin:0 auto; }
.eg-pwa__a { display:flex; gap:8px; } .eg-pwa .btn { min-height:auto; padding:7px 14px; }

/* Round 135: New Parents badge, shown sitewide next to author names */
.np-ic{width:1.15em;height:1.15em;vertical-align:-.2em;flex:none}
.np-ic--lg{width:44px;height:44px}
/* Badge shown next to a member's name everywhere (author chips, wall, replies) */
.np-badge{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:1px 8px 1px 5px;border-radius:99px;font-size:11px;font-weight:700;line-height:18px;vertical-align:middle;white-space:nowrap;border:1.5px solid transparent;text-decoration:none}
.np-badge .np-ic{width:14px;height:14px;vertical-align:0}
.np-badge--mom{background:#FDE7EF;color:#9B2257;border-color:#F6B8CE}
.np-badge--dad{background:#E3EEFB;color:#1E4C86;border-color:#B4CFEE}
.np-badge--parent{background:#E3F3EA;color:#1D6A4A;border-color:#B2DCC6}
.np-badge--expecting{border-style:dashed}
:root[data-theme='dark'] .np-badge--mom{background:#4A2433;color:#FFC4DA;border-color:#8A3E5F}
:root[data-theme='dark'] .np-badge--dad{background:#1E3550;color:#BBD7F7;border-color:#3D638F}
:root[data-theme='dark'] .np-badge--parent{background:#1D4034;color:#BDE9D2;border-color:#3C7A60}

/* Round 158: Community Team tag next to automated team accounts */
.team-tag { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:999px; font-size:.68rem; font-weight:600; letter-spacing:.02em; background:#eef2f7; color:#4a5568; border:1px solid #d5dde8; vertical-align:middle; white-space:nowrap; }
