/* Limi Bump to Birthday — the family app (inside the ~390px phone frame).
   Everything is scoped under .f-app. Tokens come from ../assets/css/lch.css:
   stage colours via [data-stage] (--st / --st-ink / --st-tint), red for
   urgent only, the act-now scale for results. */

.f-app {
  min-height: 100%; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-tap-highlight-color: transparent;
}
.f-app *, .f-app *::before, .f-app *::after { box-sizing: border-box; }
.f-main { flex: 1; padding: 14px 16px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.f-app p { margin: 0 0 .6em; }
.f-app p:last-child { margin-bottom: 0; }
.f-app ul, .f-app ol { margin: 0; padding: 0; list-style: none; }
.f-app h1 em, .f-app h2 em, .f-app h3 em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; color: var(--blue); letter-spacing: -.01em; }
.f-app .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.f-app .chip { min-height: 48px; padding: 0 18px; font-size: 1rem; }
.f-app .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.f-ico { width: 22px; height: 22px; flex: none; }
.btn .f-ico { width: 20px; height: 20px; }

/* type */
.f-h1 { font-family: var(--serif); font-size: 1.72rem; font-weight: 600; line-height: 1.14; letter-spacing: -.015em; margin: 0 0 10px; color: var(--ink); }
.f-h2 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.f-h2 .f-ico { color: var(--st-ink); }
.f-h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.f-h3:first-child { margin-top: 0; }
.f-kick { color: var(--st-ink); margin-bottom: 8px; }
.f-sub { color: var(--ink-2); font-size: 1rem; }
.f-happen { font-size: 1.0625rem; color: var(--ink-2); }
.f-muted { color: var(--ink-3); font-size: .9375rem; }
.f-muted .f-ico { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.f-small { font-size: .9375rem; color: var(--ink-2); }
.f-small .f-ico { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.f-strong { font-weight: 700; }
.f-center { text-align: center; }
.f-pad { padding: 2px 0; display: flex; flex-direction: column; gap: 10px; }
.f-stack { display: flex; flex-direction: column; gap: 10px; }
.f-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.f-tbc { font-size: .8125rem; color: var(--ink-3); font-style: italic; margin: 8px 0 0; }
.f-big { min-height: 58px; font-size: 1.125rem; border-radius: 14px; }
.f-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue); font: 700 1rem/1.2 var(--sans); cursor: pointer; text-decoration: none; }
.f-link .f-ico { width: 18px; height: 18px; }
.f-link:hover { color: var(--blue-deep); text-decoration: underline; }
.f-link.f-center { display: flex; justify-content: center; width: 100%; }
.f-badge { display: inline-flex; align-items: center; gap: 6px; font: 700 .75rem/1.2 var(--sans); padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--st, var(--line-2)); color: var(--st-ink, var(--ink-2)); margin: 0 0 10px; }

/* ── chrome: emergency strip, offline bar ── */
.f-sos { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 6px 12px; background: var(--red-tint); color: var(--red-deep); font-size: .9375rem; text-decoration: none; border-bottom: 1px solid rgba(216,0,12,.16); }
.f-sos:hover { color: var(--red-deep); text-decoration: none; background: #FBE0E0; }
.f-sos .f-ico { width: 16px; height: 16px; }
.f-sos b { font-weight: 700; letter-spacing: .01em; }
.f-offline { margin: 0; display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: var(--ink); color: #fff; font-size: .875rem; line-height: 1.35; }
.f-offline .f-ico { width: 18px; height: 18px; opacity: .85; }

/* ── bottom nav + toast ── */
.f-foot { position: sticky; bottom: 0; z-index: 8; }
.f-nav { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 4px 4px 8px; box-shadow: 0 -10px 24px -20px rgba(16,42,67,.45); }
.f-nav__i { position: relative; border: 0; background: none; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 700 .75rem/1.1 var(--sans); color: var(--ink-3); cursor: pointer; padding: 6px 2px 2px; text-align: center; }
.f-nav__i .f-ico { width: 24px; height: 24px; }
.f-nav__i:hover { color: var(--ink); }
.f-nav__i.is-on { color: var(--st-ink); }
.f-nav__i.is-on::before { content: ""; position: absolute; top: -4px; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--st); }
.f-nav__add { justify-self: center; width: 58px; height: 58px; margin: -20px 0 2px; border-radius: 50%; border: 4px solid var(--paper); background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 20px -10px rgba(16,42,67,.7); transition: transform .15s var(--ease); }
.f-nav__add .f-ico { width: 28px; height: 28px; stroke-width: 2.4; }
.f-nav__add:hover, .f-nav__add.is-on { background: var(--blue); }
.f-nav__add:active { transform: scale(.95); }
.f-toast { display: flex; align-items: flex-start; gap: 10px; margin: 0 12px 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 16px 30px -18px rgba(16,42,67,.8); animation: f-up .28s var(--ease); }
.f-toast .f-ico { width: 20px; height: 20px; margin-top: 1px; color: #8FE3B4; }
.f-toast--none .f-ico { color: #fff; opacity: .7; }
.f-toast b { display: block; font-size: 1rem; }
.f-toast small { display: block; font-size: .875rem; opacity: .85; }
.f-app--go > .f-toast { position: sticky; bottom: 10px; }
@keyframes f-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── cards ── */
.f-card { background: #fff; border: 1px solid #E4EBEF; border-radius: var(--r-m); padding: 18px 16px; box-shadow: var(--lift); }
.f-card--flat { background: transparent; border: 0; box-shadow: none; padding: 4px 0 0; }
.f-card--line { box-shadow: none; border-color: var(--line); }
.f-head { padding: 4px 2px 0; }
.f-head .f-chips { margin-top: 12px; }

/* ── Today: the stage card ── */
.f-stage { position: relative; overflow: hidden; background:
    radial-gradient(circle at 104% -6%, rgba(255,255,255,.7) 0 92px, transparent 93px),
    var(--st-tint); border-radius: var(--r-l); padding: 20px 18px 18px; border-top: 6px solid var(--st); }
.f-stage > * { position: relative; }
.f-stage .f-h1 { font-size: 1.78rem; }
.f-stage .f-big { margin-top: 14px; }
.f-stage--quiet { background: #fff; border-top-color: var(--line-2); box-shadow: var(--lift); }
.f-stage--quiet .f-h1 { font-size: 1.6rem; }
.f-stage--quiet .btn { margin-top: 12px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chips--names { margin-bottom: 14px; }
.f-chips--names .chip { background: rgba(255,255,255,.8); }
.f-ages { margin: 10px 0 0; padding: 9px 12px; border-left: 4px solid var(--st); background: rgba(255,255,255,.75); border-radius: 0 10px 10px 0; font-size: .9375rem; font-weight: 700; color: var(--st-ink); line-height: 1.4; }
.f-remember { margin: 10px 0 0; font: italic 400 1rem/1.5 var(--serif); color: var(--ink-2); }

.f-new { background: #fff; border-radius: var(--r-m); border-left: 6px solid var(--st); padding: 14px 16px; box-shadow: var(--lift); }
.f-new__k { font: 700 .78rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--st-ink); margin-bottom: 6px !important; }
.f-new__k::before { content: "\2726  "; }
.f-new .btn { margin-top: 6px; }

.f-watch { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.f-watch__row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font: 400 1rem/1.35 var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.f-watch__row:hover { border-color: var(--red); background: #FFFBFB; }
.f-watch__t { flex: 1; }
.f-pic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--st-tint); color: var(--st-ink); flex: none; }
.f-pic .f-ico { width: 22px; height: 22px; }
.f-pic--sm { width: 34px; height: 34px; background: var(--wash); color: var(--ink-2); }
.f-pic--sm .f-ico { width: 18px; height: 18px; }
.f-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; }
.f-dot--now { background: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
.f-dot--today { background: #F29100; box-shadow: 0 0 0 4px var(--amber-tint); }
.f-dot--review { background: var(--blue); }
.f-dot--home { background: var(--green); }

.f-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 96px; padding: 14px; border: 1px solid #E4EBEF; border-radius: 16px; background: #fff; box-shadow: var(--lift); text-align: left; font: 700 1rem/1.25 var(--sans); color: var(--ink); cursor: pointer; transition: transform .15s var(--ease), border-color .15s; }
.f-tile .f-ico { width: 28px; height: 28px; color: var(--st-ink); padding: 0; }
.f-tile:hover { border-color: var(--st); transform: translateY(-1px); }
.f-tile:active { transform: scale(.98); }

.f-nurse { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 0 !important; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .9375rem; color: var(--ink-2); line-height: 1.4; }
.f-nurse__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); margin-top: 6px; flex: none; }
.f-nurse__dot.is-open { background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.f-arrived { min-height: 54px; border-style: dashed; }

/* history */
.f-hist { display: flex; flex-direction: column; }
.f-hist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.f-hist li:last-child { border-bottom: 0; }
.f-hist__row { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; min-height: 44px; }
.f-hist__main { display: flex; flex-direction: column; min-width: 0; }
.f-hist__t { font-weight: 700; font-size: .975rem; line-height: 1.35; }
.f-hist__m { font-size: .8125rem; color: var(--ink-3); display: block; }
.f-hist__side { flex: none; }
.f-hist__sync { display: block; margin-top: 2px; }
.f-pill { display: inline-block; font: 700 .8125rem/1.2 var(--sans); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.f-pill--now { background: var(--red); color: #fff; }
.f-pill--today { background: var(--amber-tint); color: var(--amber); }
.f-pill--review { background: #E7F0F9; color: var(--blue-deep); }
.f-pill--home { background: var(--green-tint); color: var(--green); }
.f-pill--none { background: var(--wash); color: var(--ink-2); }
.f-sync { font: 700 .8125rem/1.2 var(--sans); }
.f-sync.is-sent { color: var(--green); }
.f-sync.is-saved { color: var(--ink-3); }
.f-sync.is-fail { color: var(--amber); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── Worried? ── */
.f-who { padding: 0 2px; }
.f-slist { display: flex; flex-direction: column; gap: 8px; }
.f-sign { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 12px 12px 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font: 400 1.0625rem/1.35 var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.f-sign:hover { border-color: var(--line-2); }
.f-sign__t { flex: 1; }
.f-sign__t small { display: block; font-size: .875rem; color: var(--ink-2); margin-top: 2px; }
.f-box { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; flex: none; color: transparent; transition: background .15s, border-color .15s; }
.f-box .f-ico { width: 18px; height: 18px; stroke-width: 3; }
.f-sign.is-on { border-color: var(--ink); background: #F6F8FB; }
.f-sign.is-on .f-box { background: var(--ink); border-color: var(--ink); color: #fff; }
.f-sign--none { margin-top: 6px; }
.f-sign--none.is-on { border-color: var(--green); background: var(--green-tint); }
.f-sign--none.is-on .f-box { background: var(--green); border-color: var(--green); }
.f-sign--wrong.is-on { border-color: #F29100; background: var(--amber-tint); }
.f-sign--wrong.is-on .f-box { background: var(--amber); border-color: var(--amber); }
.f-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--amber-tint); color: var(--amber); font-weight: 700; font-size: .9375rem; }

/* fields */
.f-field { display: block; }
.f-field > span:first-child { display: block; font-weight: 700; font-size: .9375rem; margin-bottom: 6px; }
.f-field small { font-weight: 400; color: var(--ink-3); }
.f-field input, .f-field textarea, .f-field select { width: 100%; min-height: 50px; padding: 11px 13px; border: 2px solid var(--line-2); border-radius: 12px; background: #fff; font: 400 1.0625rem/1.4 var(--sans); color: var(--ink); }
.f-field textarea { resize: vertical; min-height: 84px; }
.f-field input:focus, .f-field textarea:focus, .f-field select:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--blue); }
.f-lab { font-weight: 700; font-size: .9375rem; margin: 14px 0 8px !important; }
.f-form .f-field { margin-top: 12px; }
.f-form .f-h3 { margin-top: 18px; }
.f-form .f-h3:first-child { margin-top: 0; }
.f-unit { display: flex; align-items: center; gap: 8px; }
.f-unit i { font-style: normal; font-weight: 700; color: var(--ink-2); }
.f-field--num input { max-width: 150px; font-size: 1.25rem; font-weight: 700; }

/* ── Result ── */
.f-resw { display: flex; flex-direction: column; gap: 14px; }
.f-for { font-weight: 700; color: var(--ink-2); font-size: .9375rem; }
.f-res { border-radius: var(--r-m); padding: 20px 18px 18px; }
.f-res h2 { font: 700 1.375rem/1.2 var(--sans); letter-spacing: -.005em; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.f-res.act__today h2 { color: var(--amber); }
.f-res.act__home h2 { color: var(--green); }
.f-res p { font-size: 1.0625rem; }
.f-res--review { background: #EAF2FA; border-top-color: var(--blue); }
.f-res--review h2 { color: var(--blue-deep); align-items: flex-start; }
.f-res--review h2 .act__dot { margin-top: 7px; }
.f-reasons { display: flex; flex-direction: column; gap: 8px; }
.f-reasons li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.4; }
.f-reasons .f-dot { margin-top: 6px; }
.f-normal { display: flex; flex-direction: column; gap: 10px; }
.f-normal li { display: flex; gap: 10px; align-items: flex-start; }
.f-normal .f-ico { width: 20px; height: 20px; color: var(--green); margin-top: 2px; }
.f-send { display: flex; align-items: flex-start; gap: 10px; margin: 0 !important; padding: 12px 14px; border-radius: 12px; font-size: .9375rem; line-height: 1.4; }
.f-send .f-ico { width: 20px; height: 20px; }
.f-send--sent { background: var(--green-tint); color: var(--green); }
.f-send--late { background: var(--amber-tint); color: var(--amber); font-weight: 700; }
.f-send--off { background: #fff; color: var(--ink-2); border: 2px dashed var(--line-2); }
.f-send--sending { background: var(--wash); color: var(--ink-2); }
.f-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--blue); animation: f-spin .8s linear infinite; flex: none; margin-top: 1px; }
@keyframes f-spin { to { transform: rotate(360deg); } }

/* ── GO NOW: red, no nav, instant ── */
.f-app--go { background: var(--red-tint); }
.f-app--go .f-main { padding: 0; gap: 0; }
.f-go { display: flex; flex-direction: column; min-height: 100%; }
.f-go__top { background: var(--red); color: #fff; padding: 26px 20px 22px; }
.f-go__top p { color: #fff; }
.f-go__k { font: 700 .8rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .12em; opacity: .9; margin-bottom: 10px !important; }
.f-go__h { font: 600 2.05rem/1.08 var(--serif); letter-spacing: -.02em; color: #fff; margin: 0 0 16px; }
.f-go__lede { font: italic 400 1.2rem/1.45 var(--serif); }
.f-go__why { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px !important; }
.f-go__why li { padding: 10px 12px 10px 34px; position: relative; background: rgba(255,255,255,.14); border-radius: 12px; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.f-go__why li::before { content: ""; position: absolute; left: 13px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.f-go__call { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 66px; margin: 4px 0 16px; border-radius: 16px; background: #fff; color: var(--red-deep); font: 700 1.35rem/1 var(--sans); text-decoration: none; box-shadow: 0 14px 26px -14px rgba(60,0,0,.7); transition: transform .12s; }
.f-go__call:hover { color: var(--red-deep); text-decoration: none; background: #FFF6F6; }
.f-go__call:active { transform: scale(.98); }
.f-go__call .f-ico { width: 26px; height: 26px; }
.f-go__drive { font-size: 1.0625rem; line-height: 1.45; }
.f-go__limi { font-weight: 700; margin-bottom: 0 !important; }
.f-go__body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.f-go__fam { border: 2px solid var(--red) !important; color: var(--red-deep) !important; min-height: 54px; font-size: 1.0625rem; }
.f-go__fam:hover { background: #FFF6F6 !important; }
.f-go__card { background: #fff; border-radius: var(--r-m); padding: 16px; box-shadow: var(--lift); }
.f-go__card .f-h3 .f-ico { color: var(--red); width: 20px; height: 20px; }
.f-fac { display: flex; flex-direction: column; margin-bottom: 10px !important; counter-reset: fac; }
.f-fac li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--line); counter-increment: fac; }
.f-fac li::before { content: counter(fac); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); font: 700 .875rem/1 var(--sans); color: var(--ink-2); }
.f-fac li:first-child::before { background: var(--red); color: #fff; }
.f-fac li:last-child { border-bottom: 0; }
.f-fac b { display: block; font-size: 1rem; line-height: 1.3; }
.f-fac span { font-size: .875rem; color: var(--ink-3); }
.f-go__conf { min-height: 60px; font-size: 1.0625rem; border-radius: 14px; }
.f-go__ok { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--green); font-weight: 700; font-size: .9375rem; }
.f-go__ok .f-ico { width: 20px; height: 20px; }
.f-go__back { justify-content: center; width: 100%; color: var(--ink-2); }
/* self-harm safety screen: calm navy band, the call stays the urgent action */
.f-go--safe .f-go__top { background: var(--band); }
.f-go--safe .f-go__call { background: var(--red); color: #fff; }
.f-go--safe .f-go__call:hover { background: var(--red-deep); color: #fff; }
.f-app--go:has(.f-go--safe) { background: var(--wash); }

/* "Show this to your family" — full-screen, large type */
.f-fam { flex: 1; min-height: 100%; background: var(--red); color: #fff; padding: 30px 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.f-fam p, .f-fam li { color: #fff; }
.f-fam__k { font: 700 .85rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .14em; opacity: .9; }
.f-fam__h { font: 600 2.35rem/1.06 var(--serif); letter-spacing: -.02em; color: #fff; margin: 4px 0 14px; }
.f-fam__big { font-size: 1.45rem; line-height: 1.3; }
.f-fam__why { margin: 8px 0 14px !important; display: flex; flex-direction: column; gap: 8px; }
.f-fam__why li { font-size: 1.2rem; line-height: 1.35; font-weight: 700; padding-left: 18px; position: relative; }
.f-fam__why li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.f-fam__limi { font-size: 1.2rem; line-height: 1.4; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.35); margin-bottom: 14px !important; }
.f-fam .btn--white { color: var(--red-deep); min-height: 58px; font-size: 1.15rem; }
.f-fam__wa { background: transparent !important; border-color: #fff !important; color: #fff !important; }
.f-fam__wa:hover { background: rgba(255,255,255,.12) !important; }
.f-fam__close { color: #fff; justify-content: center; width: 100%; }
.f-fam__close:hover { color: #fff; }

/* ── Add ── */
.f-log.is-focus { border-color: var(--st); box-shadow: 0 0 0 3px var(--st-tint), var(--lift); }
.f-log .f-sub { margin-bottom: 12px; }
.f-kicks { display: flex; flex-direction: column; gap: 8px; }
.f-opt { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font: 700 1.0625rem/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.f-opt .f-ico { color: var(--st-ink); width: 26px; height: 26px; }
.f-opt:hover { border-color: var(--st); background: var(--st-tint); }
.f-inrow { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.f-inrow .btn { min-height: 50px; }
.f-bp .f-field { flex: 1; }
.f-bp .f-field input { max-width: none; }
.f-slash { font: 400 2rem/1 var(--serif); color: var(--ink-3); padding-bottom: 10px; }
.f-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; border-bottom: 1px solid var(--line); }
.f-step:last-of-type { margin-bottom: 14px; }
.f-step__l { font-weight: 700; }
.f-step__c { display: flex; align-items: center; gap: 6px; }
.f-step__b { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; font: 700 1.5rem/1 var(--sans); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.f-step__b:hover { border-color: var(--ink); }
.f-step__b:active { transform: scale(.94); }
.f-step__v { min-width: 44px; text-align: center; font: 700 1.5rem/1 var(--sans); }

/* ── Baby's book ── */
.f-graph { width: 100%; height: auto; margin: 6px 0 4px; }
.f-g__grid { stroke: #E7EDF2; stroke-width: 1; }
.f-g__lab { font: 400 11px var(--sans); fill: var(--ink-3); }
.f-g__ax { font-weight: 700; }
.f-g__band { fill: var(--st-tint); stroke: var(--st); stroke-width: 1; stroke-opacity: .55; }
.f-g__med { fill: none; stroke: var(--st-ink); stroke-width: 1; stroke-dasharray: 3 4; opacity: .5; }
.f-g__line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.f-g__pt { fill: #fff; stroke: var(--ink); stroke-width: 2.2; }
.f-g__pt.is-birth { fill: var(--st); }
.f-gv { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); }
.f-gv .f-ico { width: 20px; height: 20px; }
.f-gv--low { color: var(--amber); }
.f-legend { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ink-2); margin: 0 !important; }
.f-legend__band { width: 20px; height: 11px; border-radius: 3px; background: var(--st-tint); border: 1px solid var(--st); }
.f-vaxl { display: flex; flex-direction: column; }
.f-vax { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.f-vax:last-child { border-bottom: 0; }
.f-vax__main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f-vax__main b { font-size: 1.0625rem; }
.f-vax__s { font: 700 .875rem/1.3 var(--sans); }
.f-vax--given .f-vax__s { color: var(--green); }
.f-vax--due .f-vax__s { color: var(--st-ink); }
.f-vax--over .f-vax__s { color: var(--amber); }
.f-vax--up .f-vax__s { color: var(--ink-3); font-weight: 400; }
.f-vax--up b { color: var(--ink-2); }
.f-vax__i { font-size: .875rem; color: var(--ink-2); line-height: 1.4; }
.f-well { font: italic 400 .9375rem/1.4 var(--serif); color: var(--green); margin-top: 4px; }
.f-tick { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; color: transparent; cursor: pointer; flex: none; transition: background .15s, border-color .15s; }
.f-tick .f-ico { width: 24px; height: 24px; stroke-width: 3; }
.f-tick:hover { border-color: var(--green); color: var(--green-tint); }
.f-tick.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.f-ms__h { margin-top: 12px; }
.f-ms { display: flex; flex-direction: column; }
.f-ms__i { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.f-ms__i:last-child { border-bottom: 0; }
.f-ms__t { flex: 1 1 100%; font-size: 1.0625rem; line-height: 1.35; }
.f-ms__b { display: flex; gap: 8px; }
.f-ms__b .chip { min-height: 44px; padding: 0 16px; }
.f-ms__n { flex: 1 1 100%; padding: 9px 12px; border-radius: 10px; background: var(--st-tint); color: var(--st-ink); font-size: .9375rem; line-height: 1.4; }
.f-appt { display: flex; flex-direction: column; gap: 10px; }
.f-appt li { display: flex; gap: 10px; align-items: flex-start; }
.f-appt .f-ico { color: var(--st-ink); margin-top: 2px; }
.f-appt b { display: block; }
.f-notes { display: flex; flex-direction: column; gap: 8px; }
.f-notes li { padding: 10px 12px; border-radius: 10px; background: var(--wash); font-size: 1rem; }
.f-share { min-height: 54px; }

/* printable summary */
.f-sumw { display: flex; flex-direction: column; gap: 14px; }
.f-sum { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px 18px; box-shadow: var(--lift); border-top: 6px solid var(--st); }
.f-sum__h .kicker { color: var(--blue); margin-bottom: 6px; }
.f-sum__dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px 12px; margin: 14px 0; font-size: .9375rem; }
.f-sum__dl dt { color: var(--ink-3); }
.f-sum__dl dd { margin: 0; font-weight: 700; }
.f-sum__l { display: flex; flex-direction: column; gap: 4px; font-size: .9375rem; }
.f-sum__l li { padding-left: 14px; position: relative; }
.f-sum__l li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
@media print {
  body.f-printing * { visibility: hidden !important; }
  body.f-printing .f-print, body.f-printing .f-print * { visibility: visible !important; }
  body.f-printing .f-print { position: fixed; left: 0; top: 0; width: 100%; box-shadow: none; border: 0; }
}

/* ── Me ── */
.f-feel { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #E4EBEF; border-radius: 16px; background: #fff; box-shadow: var(--lift); text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s var(--ease); }
.f-feel:hover { border-color: var(--st); transform: translateY(-1px); }
.f-feel > .f-ico:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--st-tint); color: var(--st-ink); }
.f-feel > .f-ico:last-child { color: var(--ink-3); }
.f-feel span { flex: 1; }
.f-feel b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.f-feel small { display: block; font-size: .9375rem; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.f-feel--quiet { box-shadow: none; background: transparent; border-color: var(--line); }
.f-feel--quiet b { font-family: var(--sans); font-size: 1.0625rem; }
.f-carer { padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; }
.f-carer__n { font-size: 1.0625rem; }
.f-never { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 12px !important; padding: 9px 12px; border-radius: 10px; background: var(--wash); font-size: .875rem; color: var(--ink-2); line-height: 1.4; }
.f-never .f-ico { width: 16px; height: 16px; margin-top: 2px; }
.f-tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.f-tog:last-of-type { border-bottom: 0; }
.f-tog__l { flex: 1; min-width: 0; }
.f-tog__l b { display: block; font-size: 1rem; }
.f-tog__l small { display: block; font-size: .875rem; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.f-switch { position: relative; width: 60px; height: 48px; border: 0; background: none; cursor: pointer; flex: none; padding: 0; }
.f-switch::before { content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 30px; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.f-switch i { position: absolute; left: 7px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,42,67,.35); transition: transform .2s var(--ease); }
.f-switch[aria-checked="true"]::before { background: var(--green); }
.f-switch[aria-checked="true"] i { transform: translateX(22px); }
.f-replay { font-size: .9375rem; color: var(--ink-3); }

/* mood check */
.f-moodbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.f-moodbar .kicker { margin: 0; }
.f-exit { min-height: 44px !important; border-color: var(--ink) !important; color: var(--ink) !important; }
.f-private { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0 !important; padding: 10px 12px; border-radius: 12px; background: var(--wash); font-size: .9375rem; color: var(--ink-2); }
.f-private .f-ico { width: 18px; height: 18px; margin-top: 2px; }
.f-q { border: 0; margin: 0; padding: 16px 0 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.f-q legend { padding: 0; margin-bottom: 12px; font: 600 1.15rem/1.3 var(--serif); color: var(--ink); }
.f-q__n { display: block; font: 700 .75rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--st-ink); margin-bottom: 6px; }
.f-q__a { display: flex; flex-direction: column; gap: 8px; }
.f-radio { width: 100%; min-height: 52px; padding: 11px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font: 400 1.0625rem/1.35 var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.f-radio:hover { border-color: var(--line-2); }
.f-radio[aria-checked="true"] { border-color: var(--st-ink); background: var(--st-tint); font-weight: 700; }
.f-radio--big { min-height: 60px; font-size: 1.125rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.f-radio--big .f-badge { margin: 0; }
.f-app [aria-disabled="true"] { opacity: .55; }

/* loss */
.f-loss { padding: 26px 20px; box-shadow: none; border-color: var(--line); }
.f-loss .f-h1 { font-size: 1.6rem; }
.f-loss p { font-size: 1.0625rem; }
.f-loss .btn { margin-top: 10px; }

/* onboarding */
.f-onb { display: flex; flex-direction: column; gap: 14px; }
.f-onb__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.f-onb__dots { display: flex; gap: 6px; }
.f-onb__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.f-onb__dots i.is-on { background: var(--st); width: 22px; border-radius: 999px; }
.f-onb .f-h1 { font-size: 1.95rem; }
.f-onb__next { margin-top: 6px; }
.f-get { display: flex; flex-direction: column; gap: 14px; }
.f-get li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.45; }
.f-get .f-ico { width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--st-tint); color: var(--st-ink); }
.f-get b { display: block; }
.f-consent { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 16px; border: 1px solid #E4EBEF; border-radius: 14px; background: #fff; box-shadow: var(--lift); }
.f-consent b { display: block; font-size: 1.0625rem; }
.f-consent small { display: block; font-size: .9rem; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.f-need { font: 700 .8125rem/1.2 var(--sans); padding: 5px 10px; border-radius: 999px; background: var(--green-tint); color: var(--green); flex: none; }

/* ── Someone helping: the father (Musa) and the grandmother (Hauwa) ──
   Same tokens and stage colours, but not the mother's home: a role line,
   "how you can help", what to watch for in Amina and the baby, and for the
   father a navy stage card and his emergency plan. */
.f-role { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px !important; padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 .8125rem/1.2 var(--sans); }
.f-role .f-ico { width: 16px; height: 16px; }
.f-stage--helper { background: #fff; box-shadow: var(--lift); }
.f-stage--father { background: var(--band); color: #fff; border-top-color: var(--st); }
.f-stage--father .f-h1, .f-stage--father .f-happen, .f-stage--father p { color: #fff; }
.f-stage--father .f-h1 em { color: #9ED8F5; }
.f-stage--father .f-kick { color: #CFE3F2; }
.f-stage--father .f-role { background: rgba(255,255,255,.14); }
.f-stage--father .f-happen { opacity: .9; }
.f-stage--father .f-ages, .f-stage--father .f-remember { background: rgba(255,255,255,.1); color: #fff; }
.f-stage--father .f-big { background: #fff; border-color: #fff; color: var(--ink); }
.f-stage--father .f-big:hover { background: var(--wash); border-color: var(--wash); color: var(--ink); }
.f-stage--father .chip { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.f-stage--father .chip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.f-stage--father .f-badge { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }

.f-help { border-left: 6px solid var(--st); }
.f-help .f-h2, .f-watchc .f-h2 { display: block; margin-bottom: 12px; }
.f-help__l { display: flex; flex-direction: column; gap: 12px; }
.f-help__l li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.45; }
.f-help__n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--st-tint); color: var(--st-ink); font: 600 1.05rem/1 var(--serif); margin-top: 1px; }



.f-plan { border: 2px solid var(--ink); }
.f-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.f-plan__head .f-ico { color: var(--red); }
.f-plan__c { flex: none; font: 700 .8125rem/1.2 var(--sans); padding: 4px 10px; border-radius: 999px; background: var(--wash); color: var(--ink-2); }
.f-plan__l { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px !important; }
.f-plan__i { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font: 400 1rem/1.35 var(--sans); color: var(--ink); cursor: pointer; }
.f-plan__i:hover { border-color: var(--line-2); }
.f-plan__i.is-on { border-color: var(--green); background: var(--green-tint); }
.f-plan__i.is-on .f-box { background: var(--green); border-color: var(--green); color: #fff; }

.f-gentle { box-shadow: none; background: var(--wash); border-color: var(--line); border-left: 6px solid var(--blue); }
.f-gentle .f-h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.f-gentle p { font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .f-app *, .f-app *::before, .f-app *::after { animation: none !important; transition: none !important; }
}
