/* Área da família: composição das telas (cabeçalho da página, painel inicial, atalhos, gráficos,
   carregamento e animações). Usa só os tokens de marca.css. */

/* ---------- cabeçalho de cada página ---------- */
.pg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 0 0 clamp(18px, 2.4vw, 28px); }
.pg-head h1 { margin: 2px 0 0; }
.pg-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.pg-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 var(--fs-xs)/1.2 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--purple-d); }
.eyebrow .i { width: 16px; height: 16px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: -6px 0 6px; font: 700 var(--fs-sm) var(--f-head); color: var(--ink-2); text-decoration: none; border-radius: 999px; padding: 0 12px 0 6px; transition: background-color .2s, color .2s; }
.back:hover { background: var(--blush); color: var(--coral-ink); }
.back .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.back:hover .i { transform: translateX(-2px); }
.sec-t { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin: clamp(28px, 3.4vw, 44px) 0 14px; }
.sec-t h2 { margin: 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
.sec-t p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-h h2, .card-h h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.card-h .i { color: var(--purple-d); }

/* ícone em pastilha colorida (usado em cartões, atalhos e listas) */
.tic { --t: var(--coral-ink); --tb: var(--blush); display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--tb); color: var(--t); }
.tic .i { width: 22px; height: 22px; }
.tic.g { --t: var(--green-ink); --tb: var(--leaf-soft); } .tic.p { --t: var(--purple-ink); --tb: var(--purple-soft); }
.tic.o { --t: var(--orange-ink); --tb: var(--sun-soft); } .tic.c { --t: var(--coral-ink); --tb: var(--blush); }

/* ---------- painel inicial da criança ---------- */
.fa-hello { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; margin-bottom: clamp(18px, 2.4vw, 28px); }
.fa-who { display: flex; align-items: center; gap: 14px; }
.fa-who .kid { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink), var(--sun-soft)); color: var(--coral-ink); font: 700 1.6rem var(--f-head); flex: none; }
.fa-who h1 { margin: 2px 0 0; }
.fa-who .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }

.fa-dash { display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: minmax(0, 1fr); align-items: start; }
.fa-col { display: grid; gap: clamp(14px, 1.6vw, 22px); min-width: 0; }
.fa-dash .card { margin: 0; }
@media (min-width: 1024px) { .fa-dash { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); } }

/* 1º nível: o que fazer agora */
.fa-now { position: relative; overflow: hidden; padding: clamp(20px, 2.4vw, 32px); border: 1px solid color-mix(in srgb, var(--coral-d) 22%, transparent);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--sun-soft) 90%, transparent) 0, transparent 55%), linear-gradient(120deg, var(--blush), var(--paper) 60%); box-shadow: var(--sh-2); }
.fa-now .eyebrow { color: var(--coral-ink); }
.fa-now h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); margin: 8px 0 6px; }
.fa-now > p { color: var(--ink-2); max-width: 56ch; margin: 0 0 18px; }
.fa-now .acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fa-todo { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.fa-todo a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; transition: background-color .2s; }
.fa-todo a:hover { background: color-mix(in srgb, var(--paper) 70%, transparent); }
.fa-todo .tic { width: 38px; height: 38px; border-radius: 12px; }
.fa-todo .tic .i { width: 19px; height: 19px; }
.fa-todo b { display: block; font: 700 .95rem var(--f-head); }
.fa-todo small { color: var(--muted); }
.fa-todo .go { margin-left: auto; color: var(--coral-ink); }
.fa-todo .badge { margin-left: auto; }

/* recado da Bianca */
.fa-bianca { display: flex; gap: 14px; align-items: flex-start; }
.fa-bianca p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.fa-bianca strong { display: block; color: var(--ink); font-family: var(--f-head); margin-bottom: 2px; }

/* jornada em três passos: horizontal quando há espaço */
.fa-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.fa-steps li { position: relative; display: flex; gap: 14px; padding: 12px 0; }
.fa-steps li + li { border-top: 1px dashed var(--line); }
.fa-steps .dot { width: 34px; height: 34px; font-size: .9rem; transition: background-color .3s; }
.fa-steps .dot .i { width: 18px; height: 18px; stroke-width: 2.2; }
.fa-steps strong { display: block; font-family: var(--f-head); }
.fa-steps .small { margin: 2px 0 4px; }
.fa-steps a { font-weight: 700; font-size: var(--fs-sm); }
@media (min-width: 700px) {
  .fa-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .fa-steps li { flex-direction: column; gap: 10px; padding: 4px 0 0; }
  .fa-steps li + li { border: 0; }
  .fa-steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 46px; right: -10px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
  .fa-steps li.ok:not(:last-child)::after { background: var(--leaf); }
}

/* indicadores */
.fa-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .fa-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fa-kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-1); min-width: 0; }
.fa-kpi .tic { width: 36px; height: 36px; border-radius: 11px; } .fa-kpi .tic .i { width: 18px; height: 18px; }
.fa-kpi .n { font: 700 clamp(1.5rem, 1.2rem + .9vw, 1.9rem)/1.1 var(--f-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.fa-kpi .l { font-size: var(--fs-sm); color: var(--muted); line-height: 1.3; }

/* gráfico de humor: barras com altura proporcional e largura limitada (não achata em telas largas) */
.fa-mood { display: flex; align-items: flex-end; gap: clamp(8px, 1.4vw, 16px); height: 150px; padding: 8px 4px 0; margin: 6px 0 0; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 29px, color-mix(in srgb, var(--ink) 6%, transparent) 29px 30px); }
.fa-mood .b { flex: 1 1 0; max-width: 46px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.fa-mood .b span { width: 100%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--purpleg), var(--purple-d)); transform-origin: bottom; animation: fa-grow .7s var(--ease) both; animation-delay: calc(var(--k, 0) * 70ms); }
.fa-mood .b em { font: 700 .72rem var(--f-head); font-style: normal; color: var(--ink-2); }
.fa-mood-x { display: flex; gap: clamp(8px, 1.4vw, 16px); padding: 6px 4px 0; }
.fa-mood-x span { flex: 1 1 0; max-width: 46px; text-align: center; font-size: .7rem; color: var(--muted); white-space: nowrap; }
@keyframes fa-grow { from { transform: scaleY(0); } }

/* jardim */
.fa-garden { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 6px; }
.fa-garden .dsh-pl { padding: 10px 6px 12px; border-radius: var(--r-md); transition: background-color .2s, transform .2s var(--ease); }
.fa-garden .dsh-pl:hover { background: var(--leaf-soft); transform: translateY(-2px); }
/* Início do Semeando Sabores: jardim tocável, combinados em chips e roleta */
.fa-hg { margin-bottom: clamp(14px, 1.6vw, 22px); }
.fa-hg .card-h { flex-wrap: wrap; gap: 4px 12px; }
@media (max-width: 520px) { .fa-hg .fa-garden { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; } .fa-hg .dsh-pl svg { width: 76px; } }
.hg-pot { font: inherit; background: none; border: 2px solid transparent; cursor: pointer; min-height: 40px; }
.hg-pot.on { border-color: var(--leaf, #5f9a55); background: var(--leaf-soft); }
.hg-pot:focus-visible, .hm-chip:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 2px; }
.hg-d { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--leaf-soft); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-chip { font: inherit; font-size: .9rem; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line, #e3dcd2); background: #fff; color: var(--ink); cursor: pointer; }
.hm-chip.on { background: var(--leaf-soft); border-color: var(--leaf, #5f9a55); font-weight: 700; }
.fa-roleta { align-items: center; }
.fa-roleta .rl-e { font-size: 1.5rem; letter-spacing: 2px; }

/* plano atual (resumo no painel) */
.fa-plan .pl-bar { margin-top: 10px; }
.fa-plan .t { font: 700 1.05rem var(--f-head); margin: 0; }

/* ---------- 3º nível: atalhos para todas as funcionalidades ---------- */
.fa-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; align-items: start; }
.fa-link { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.fa-link:hover, .fa-link:focus-visible { transform: translateY(-2px); box-shadow: var(--sh-1); border-color: color-mix(in srgb, var(--coral-d) 30%, transparent); }
.fa-link b { display: block; font: 700 .98rem var(--f-head); }
.fa-link small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.fa-link .go { margin-left: auto; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.fa-link:hover .go { color: var(--coral-ink); transform: translateX(3px); }
.fa-link .badge { margin-left: auto; }

/* lista de ações (tela "Mais") */
.fa-list { list-style: none; margin: 0; padding: 0; }
.fa-list li + li { border-top: 1px solid var(--line); }
.fa-list a, .fa-list button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 6px; background: none; border: 0; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; border-radius: var(--r-md); transition: background-color .2s; }
.fa-list a:hover, .fa-list button:hover { background: var(--blush); }
.fa-list b { display: block; font: 700 1rem var(--f-head); }
.fa-list small { color: var(--muted); }
.fa-list .go { margin-left: auto; color: var(--muted); }
.fa-me { display: flex; align-items: center; gap: 14px; }
.fa-me .av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--coral-ink); font: 700 1.3rem var(--f-head); flex: none; }
.fa-split { display: grid; gap: clamp(14px, 1.6vw, 22px); align-items: start; }
.fa-split .card { margin: 0; }
@media (min-width: 900px) { .fa-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }

/* plano: atalho para o plano ilustrado */
.fa-feature { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; text-decoration: none; color: inherit; border-left: 5px solid var(--leaf); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.fa-feature:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.fa-feature > div { flex: 1 1 240px; }

/* receitas lado a lado em telas largas */
.fa-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.fa-cards .card { margin: 0; }

/* grupos de opções (rádio): legenda com o mesmo visual do rótulo */
fieldset.fs { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.fs legend { padding: 0; margin-bottom: 6px; font: 700 .92rem var(--f-head); color: var(--ink); }
.stack > fieldset + * , .stack > * + fieldset { margin-top: 16px; }

/* formulários longos: largura de leitura confortável mesmo na tela larga */
.fa-form { max-width: var(--read, 760px); margin-inline: auto; }

/* conversa: ocupa a altura disponível e fica centrada em telas largas */
.fa-chat { max-width: 920px; margin-inline: auto; }
.fa-chat .chat { height: calc(100dvh - 300px); min-height: 360px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px clamp(12px, 2vw, 20px) 14px; box-shadow: var(--sh-1); }
@media (min-width: 900px) { .fa-chat .chat { height: calc(100dvh - 250px); } }
.msg { border-color: var(--line); background: var(--cream); border-radius: 18px 18px 18px 6px; }
.msg.me { background: var(--pink); border-radius: 18px 18px 6px 18px; }
.composer textarea { border-radius: 23px; }
.iconbtn { display: grid; place-items: center; border-color: color-mix(in srgb, var(--ink) 14%, transparent); transition: background-color .2s, transform .2s var(--ease); }
.iconbtn:hover { background: var(--blush); }
.iconbtn.send { background: var(--coral-ink); border-color: var(--coral-ink); color: #fff; }
.iconbtn.send:hover { filter: brightness(1.08); }

/* portal "Meus módulos" */
.hub-hi { display: flex; gap: 16px; align-items: center; margin: 0 0 clamp(22px, 3vw, 36px); }
.hub-hi h1 { margin: 2px 0 0; font-family: var(--f-script); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem); color: var(--coral-ink); line-height: 1.1; letter-spacing: 0; }
.hub-hi p { margin: 4px 0 0; color: var(--ink-2); }
.hub-help { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(20px, 2.6vw, 32px); background: linear-gradient(110deg, var(--purple-soft), var(--paper) 70%); }
.hub-help > div { flex: 1 1 260px; }

/* ---------- carregamento e entrada ---------- */
.fa-loading { display: grid; gap: 16px; padding-top: 8px; }
.sk { border-radius: var(--r-lg); background: linear-gradient(100deg, color-mix(in srgb, var(--ink) 6%, transparent) 30%, color-mix(in srgb, var(--ink) 11%, transparent) 50%, color-mix(in srgb, var(--ink) 6%, transparent) 70%) 0 0 / 300% 100%; animation: sk 1.4s linear infinite; }
.sk.h { height: 64px; width: min(420px, 70%); } .sk.b { height: 180px; } .sk.r { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } .sk.r > i { height: 110px; border-radius: var(--r-lg); background: inherit; }
@keyframes sk { to { background-position: -300% 0; } }

/* os blocos da página entram em sequência, de leve (desligado se a pessoa pede menos movimento) */
.fa-in > * { animation: fa-in .5s var(--ease) both; }
.fa-in > *:nth-child(2) { animation-delay: 50ms; } .fa-in > *:nth-child(3) { animation-delay: 100ms; }
.fa-in > *:nth-child(4) { animation-delay: 150ms; } .fa-in > *:nth-child(n+5) { animation-delay: 200ms; }
@keyframes fa-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}
@media print { .fa-now, .fa-links, .back { display: none !important; } }

/* campo de peso com a unidade ao lado (o check-in diário também usa) */
.ci-w { display: flex; gap: 8px; align-items: center; }
.ci-w input { max-width: 160px; }
.ci-w b { font-family: var(--f-head); color: var(--ink-2); }

/* ---------- Semeando Sabores: menu lateral fixo ----------
   computador: 248 px (ou 76 px recolhido) · tablet (600–899): só ícones, abre por cima · celular: escondido, abre pelo ☰ */
/* casca: menu + conteúdo em grid; o conteúdo é sempre a largura que sobra (nunca soma com o menu) */
.fs-app { --fs-w: 248px; display: grid; grid-template-columns: var(--fs-w) minmax(0, 1fr); transition: grid-template-columns .25s var(--ease); }
.fs-app.fs-min { --fs-w: 76px; }
.fs-side { position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--fs-w); display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 16px;
  background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; transition: width .25s var(--ease), transform .25s var(--ease), box-shadow .25s; }
.fs-main { grid-column: 2; min-width: 0; min-height: 100dvh; }
.fs-nav, .fs-foot, .fs-top { min-width: 0; }
.fs-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 4px; }
.fs-logo img { height: 40px; width: auto; display: block; }
.fs-logo .fs-logo-mark { display: none; width: 40px; height: 40px; object-fit: contain; }
.fs-collapse { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--ease), background-color .2s; }
.fs-collapse:hover { background: var(--blush); color: var(--coral-ink); }
.fs-collapse .i { width: 18px; height: 18px; }
.fs-kid { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; padding: 10px; border-radius: var(--r-md); background: linear-gradient(120deg, var(--blush), var(--paper)); border: 1px solid var(--line); }
.fs-kid .kid { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--pink); color: var(--coral-ink); font: 700 1.1rem var(--f-head); }
.fs-kid b { display: block; font: 700 1rem var(--f-head); color: var(--ink); line-height: 1.2; }
.fs-kid small { color: var(--muted); font-size: .82rem; }
.fs-nav, .fs-foot { display: grid; gap: 2px; }
.fs-nav a, .fs-foot a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; border-radius: 14px; color: var(--ink-2); text-decoration: none; font: 700 .95rem var(--f-head); line-height: 1.25; overflow-wrap: anywhere; transition: background-color .2s, color .2s; }
.fs-nav a:hover, .fs-foot a:hover { background: var(--blush); color: var(--coral-ink); }
.fs-nav a.on, .fs-foot a.on { background: var(--pink); color: var(--coral-ink); }
.fs-nav .ic, .fs-foot .ic { flex: none; width: 28px; display: grid; place-items: center; }
.fs-nav .ic .i, .fs-foot .ic .i { width: 22px; height: 22px; }
.fs-nav .badge { margin-left: auto; }
.fs-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.fs-foot a { font-size: .9rem; min-height: 42px; }
.fs-me b { display: block; font-size: .92rem; color: var(--ink); line-height: 1.2; } .fs-me small { display: block; font: 600 .78rem var(--f-body); color: var(--muted); }
.av-img { border-radius: 50%; object-fit: cover; display: block; }
.fs-side .av, .fs-bar .av, .pf-av .av { display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: var(--coral-ink); font: 700 .95rem var(--f-head); }
.fs-side .av { width: 32px; height: 32px; } .fs-bar .av { width: 36px; height: 36px; }
.fs-scrim { display: none; position: fixed; inset: 0; z-index: 45; background: rgba(64, 41, 74, .4); }
.fs-bar { display: none; }
/* recolhido: só ícones (os nomes saem da vista, mas continuam para leitor de tela; ao passar o mouse, o balão do title mostra o nome) */
.fs-app.fs-min .fs-side .tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fs-app.fs-min .fs-nav .badge { display: none; }
.fs-min .fs-top { flex-direction: column; gap: 10px; }
.fs-app.fs-min .fs-logo .fs-logo-full { display: none; } .fs-app.fs-min .fs-logo .fs-logo-mark { display: block; }
.fs-min .fs-collapse { transform: rotate(180deg); }
.fs-min .fs-kid { justify-content: center; padding: 8px 0; background: none; border: 0; }
.fs-min .fs-nav a, .fs-min .fs-foot a { justify-content: center; padding: 8px 0; }
/* tablet e telas médias (768 a 1099 px): só ícones, abre por cima */
@media (min-width: 768px) and (max-width: 1099px) {
  .fs-app, .fs-app.fs-min { --fs-w: 76px; }
  body:not(.side-open) .fs-side .tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } body:not(.side-open) .fs-nav .badge { display: none; }
  body:not(.side-open) .fs-top { flex-direction: column; gap: 10px; }
  body:not(.side-open) .fs-logo .fs-logo-full { display: none; } body:not(.side-open) .fs-logo .fs-logo-mark { display: block; }
  body:not(.side-open) .fs-collapse { transform: rotate(180deg); }
  body:not(.side-open) .fs-kid { justify-content: center; padding: 8px 0; background: none; border: 0; }
  body:not(.side-open) .fs-nav a, body:not(.side-open) .fs-foot a { justify-content: center; padding: 8px 0; }
  body.side-open .fs-side { width: 260px; box-shadow: var(--sh-2); }
  body.side-open .fs-scrim { display: block; }
}
/* celular (até 767 px): escondido, abre pelo Menu */
@media (max-width: 767px) {
  .fs-app, .fs-app.fs-min { --fs-w: 0px; }
  .fs-side { width: min(300px, 86vw); transform: translateX(-100%); }
  body.side-open .fs-side { transform: none; box-shadow: var(--sh-2); }
  body.side-open .fs-scrim { display: block; }
  .fs-collapse { display: none; }
  .fs-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 40; min-height: 60px; padding: 8px 16px;
    background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .fs-bar .fs-logo img { height: 36px; }
  .fs-burger { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blush); position: relative; cursor: pointer; }
  .fs-burger span, .fs-burger span::before, .fs-burger span::after { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: var(--coral-ink); content: ""; }
  .fs-burger span { top: 21px; } .fs-burger span::before { left: 0; top: -6px; } .fs-burger span::after { left: 0; top: 6px; }
  .fs-bar-me { display: block; border-radius: 50%; }
}
@media print { .fs-side, .fs-bar, .fs-scrim { display: none !important; } .fs-main { margin: 0; } }

/* ---------- Meu Perfil ---------- */
.pf-grid { display: grid; gap: clamp(14px, 1.6vw, 22px); align-items: start; }
.pf-grid .card, .pf-kids .card { margin: 0; }
.pf-col { display: grid; gap: clamp(14px, 1.6vw, 22px); }
@media (min-width: 960px) { .pf-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.pf-photo { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.pf-av .av-img, .pf-av .av { width: 96px; height: 96px; border: 4px solid #fff; box-shadow: var(--sh-1); font-size: 2rem; }
.pf-up { cursor: pointer; } .pf-up input { position: absolute; }
.pf-up:focus-within { outline: 3px solid color-mix(in srgb, var(--purple-d) 55%, transparent); outline-offset: 2px; }
input[disabled] { opacity: .7; cursor: not-allowed; }
.pf-kids { display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.pf-anam { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.pf-anam > summary { cursor: pointer; font: 700 .95rem var(--f-head); }
.pf-anam dl { margin: 12px 0 8px; } .pf-anam dt { font-weight: 700; color: var(--ink); margin-top: 10px; } .pf-anam dd { margin: 2px 0 0; color: var(--ink-2); }
.fs-bar-me, .fs-me { text-decoration: none; }

/* ---------- Início: atividades do dia (etapa 2) ---------- */
.fa-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fa-act { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.fa-act:hover, .fa-act:focus-visible { border-color: color-mix(in srgb, var(--coral-d) 35%, transparent); box-shadow: var(--sh-1); transform: translateY(-1px); }
.fa-act-t { flex: 1; min-width: 0; } .fa-act-t b { display: block; font: 700 1rem var(--f-head); } .fa-act-t small { color: var(--muted); }
.fa-act .btn { flex: none; }
@media (max-width: 520px) { .fa-act { flex-wrap: wrap; } .fa-act-t { flex-basis: calc(100% - 72px); } .fa-act .btn { margin-left: 58px; } }
.fa-sub { margin: 18px 0 8px; font: 700 var(--fs-xs) var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--purple-d); }
.fa-done { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--r-md); background: var(--st-ok-soft); }
.fa-done b { display: block; font: 700 .95rem var(--f-head); color: var(--st-ok); } .fa-done small { color: var(--ink-2); }
.fa-today .card-h { margin-bottom: 14px; }
/* diagnóstico: destaque no coral da marca (decisão 3) */
.fa-diag { display: grid; gap: 6px; text-decoration: none; color: var(--ink); background: linear-gradient(120deg, var(--blush), var(--paper) 70%); border: 2px solid var(--coral-d); box-shadow: 0 10px 28px -16px color-mix(in srgb, var(--coral-d) 70%, transparent); transition: transform .2s var(--ease), box-shadow .2s; }
.fa-diag:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -16px color-mix(in srgb, var(--coral-d) 80%, transparent); }
.fa-diag .eyebrow { color: var(--coral-ink); } .fa-diag b { font: 700 clamp(1.1rem, 1rem + .4vw, 1.3rem) var(--f-head); } .fa-diag small { color: var(--ink-2); }
.fa-diag .btn { justify-self: start; margin-top: 6px; }
.fa-diag-wait, .fa-ev { display: grid; gap: 4px; }
.fa-diag-wait b, .fa-ev b { font: 700 1.05rem var(--f-head); } .fa-diag-wait small, .fa-ev small { color: var(--muted); }
.fa-ev .btn { justify-self: start; margin-top: 8px; }
.fa-plan-link { display: block; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s var(--ease); }
.fa-plan-link:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
/* cartão-atalho só com seta: não quebra a seta para a linha de baixo no celular */
@media (max-width: 520px) { .fa-feature:has(> .go) { flex-wrap: nowrap; } .fa-feature:has(> .go) > div { flex: 1 1 0; min-width: 0; } }

/* ---------- Fale Conosco (família e painel) ---------- */
.fc-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .fc-grid { grid-template-columns: 1fr; } }
input[type=file] { font: inherit; font-size: .9rem; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; color: var(--coral-ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; margin-right: 10px; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--coral-ink); }
.fc-col { display: grid; gap: 14px; }
.fc-h { font-size: 1.1rem; margin: 0 0 10px; }
.fc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fc-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; text-decoration: none; color: var(--ink); margin: 0; transition: box-shadow .2s; }
.fc-item:hover { box-shadow: var(--sh-2); }
.fc-it { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; }
.fc-it small { color: var(--muted); }
.fc-st { display: flex; gap: 6px; flex-wrap: wrap; }
.fc-thread .msgs { overflow: visible; padding: 4px 0; }
.fc-who { display: block; font-size: .74rem; color: var(--muted); margin-bottom: 2px; }
.fc-ev { align-self: center; text-align: center; font-size: .78rem; color: var(--muted); margin: 2px 0; }
.fc-file { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; margin-bottom: 4px; }
.fc-filters { gap: 12px; align-items: end; }
.fc-filters > div { flex: 1 1 180px; }

/* ---------- casca nova (app da família e módulos): cor de destaque por contexto ----------
   app = rosa da marca · ss = verde · sem = laranja · tf = lilás. Só vale para .fs-app com acc-*; o menu antigo
   do Semeando Sabores (sem acc-*) continua como estava. */
.fs-app.acc-app { --acc: var(--coral-ink); --acc-soft: var(--pink); --acc-hover: var(--blush); }
.fs-app.acc-ss { --acc: var(--green-ink); --acc-soft: var(--st-ok-soft); --acc-hover: var(--leaf-soft); }
.fs-app.acc-sem { --acc: var(--orange-ink); --acc-soft: var(--sun-soft); --acc-hover: #fef6ea; }
.fs-app.acc-tf { --acc: var(--purple-ink); --acc-soft: var(--purple-soft); --acc-hover: #f8f3fa; }
.fs-app[class*="acc-"] .fs-nav a:hover, .fs-app[class*="acc-"] .fs-foot a:hover { background: var(--acc-hover); color: var(--acc); }
.fs-app[class*="acc-"] .fs-nav a.on, .fs-app[class*="acc-"] .fs-foot a.on { background: var(--acc-soft); color: var(--acc); }
.fs-app[class*="acc-"] .fs-collapse:hover { background: var(--acc-hover); color: var(--acc); }
.fs-nav .fs-subit { min-height: 40px; font-size: .88rem; padding-top: 6px; padding-bottom: 6px; }
.fs-nav .fs-subit .tx { display: grid; line-height: 1.2; min-width: 0; flex: 1; }
.fs-nav .fs-subit .tx, .fs-nav .fs-subit small { white-space: normal; overflow-wrap: anywhere; }
.fs-nav .fs-subit .badge { flex: none; }
.fs-nav .fs-subit small { font: 600 .74rem var(--f-body); color: var(--muted); }
.fs-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.fs-hr { border: 0; border-top: 1px solid var(--line); margin: 8px 4px; }
.fs-ctx { margin: 6px 0 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--acc-soft); border: 1px solid var(--line); }
.fs-ctx b { display: block; font: 700 1rem var(--f-head); color: var(--ink); line-height: 1.2; }
.fs-ctx small { color: var(--muted); font-size: .82rem; }
.fs-min .fs-ctx, .fs-min .fs-hr { display: none; }
.fs-menu-btn { display: none; }
@media (min-width: 768px) and (max-width: 1099px) { body:not(.side-open) .fs-ctx { display: none; } }
@media (max-width: 767px) {
  .fs-menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: var(--acc-soft, var(--blush)); color: var(--acc, var(--coral-ink)); font: 700 .95rem var(--f-head); cursor: pointer; }
  .fs-burger-i, .fs-burger-i::before, .fs-burger-i::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; content: ""; position: relative; }
  .fs-burger-i::before { position: absolute; top: -6px; } .fs-burger-i::after { position: absolute; top: 6px; }
}

/* ---------- Início do app e Meus módulos ---------- */
.ap-hi { display: flex; gap: 16px; align-items: center; margin-bottom: clamp(16px, 2vw, 24px); }
.ap-hi .av-big { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--coral-ink); font: 700 1.6rem var(--f-head); }
.ap-hi h1 { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--coral-ink); margin: 0; line-height: 1.1; }
.ap-hi p { margin: 4px 0 0; color: var(--muted); }
.ap-recado { background: var(--pink); border-radius: var(--r-lg); padding: 16px 20px; margin: 0 0 clamp(18px, 2.4vw, 28px); }
.ap-recado a { color: var(--coral-ink); font-weight: 700; }
.print-brand { display: none; }
/* leitura e formulários: largura de leitura, centralizados (o check-in e os formulários que antes ficavam colados à esquerda) */
.read { max-width: var(--read, 760px); margin-inline: auto; }
@media print { .print-brand { display: block; text-align: center; font-size: 11px; color: #75627e; margin: 16px 0 0; } }
.bc-name { text-align: center; margin: 6px 0 0; font-size: 1rem; color: var(--ink); }
.bc-name b { font-family: var(--f-head, Quicksand), sans-serif; font-size: 1.25rem; color: var(--coral-ink); }
.bc-name small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.ap-clamp { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 6px; }
.ap-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: clamp(18px, 2.4vw, 28px) 0 12px; }
.ap-sec h2 { margin: 0; font-size: 1.25rem; }
.ap-sec a { color: var(--coral-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ap-mods { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); align-items: start; }
.ap-mod { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-lg); background: var(--mc-soft); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ap-mod h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.15rem; }
.ap-mod .tag { font: 700 .72rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .75); border-radius: 999px; padding: 3px 10px; }
.ap-mod p { margin: 0; color: var(--muted); font-size: .92rem; }
.ap-st { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.ap-st::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.ap-st.pend { color: var(--coral-ink); } .ap-st.ok { color: var(--st-ok); }
.ap-mod .btn { align-self: flex-start; margin-top: 6px; background: var(--mc); border-color: var(--mc); color: #fff; }
.ap-mod.lock { background: var(--paper); }
.ap-mod.lock .btn { background: transparent; color: var(--mc); }
.ap-mod.ss { --mc: var(--green-ink); --mc-soft: var(--leaf-soft); }
.ap-mod.sem { --mc: var(--orange-ink); --mc-soft: var(--sun-soft); }
.ap-mod.tf { --mc: var(--purple-ink); --mc-soft: var(--purple-soft); }
.ap-quick { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); align-items: start; }
.ap-q { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); margin: 0; }
.ap-q .qi { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--pink); color: var(--coral-ink); }
.ap-q .qi .i { width: 26px; height: 26px; }
.ap-q b { display: block; font: 700 1.05rem var(--f-head); } .ap-q small { color: var(--muted); }
.ap-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ap-list li + li { border-top: 1px solid var(--line); }
.ap-list a, .ap-list .row-i { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.ap-list small { color: var(--muted); white-space: nowrap; }
.ap-next { padding: 18px 20px; margin: 0; }
.ap-next b { display: block; font: 700 1.1rem var(--f-head); } .ap-next p { margin: 6px 0 12px; color: var(--muted); }
.ap-ev { overflow-x: auto; }
.ap-ev table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ap-ev th, .ap-ev td { text-align: left; padding: 9px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.ap-ev thead th { border-top: 0; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.ap-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin-bottom: 16px; }
.ap-kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.ap-kpi small { display: block; color: var(--muted); } .ap-kpi b { font: 700 1.3rem var(--f-head); }
/* topo do menu dentro de um módulo: voltar ao app, de quem é e "Trocar ▾" */
.fs-top + .fs-backapp, .fs-side > .fs-backapp { margin-top: 4px; }
.fs-side > .fs-backapp { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 6px 12px; border-radius: 14px; color: var(--ink-2); text-decoration: none; font: 700 .88rem var(--f-head); }
.fs-side > .fs-backapp .ic { flex: none; width: 28px; display: grid; place-items: center; } .fs-side > .fs-backapp .ic .i { width: 20px; height: 20px; }
.fs-side > .fs-backapp:hover { background: var(--acc-hover); color: var(--acc); }
.fs-ctx a { color: var(--acc); font-weight: 700; }
.fs-switch { margin-top: 8px; }
.fs-switch summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: 700 .85rem var(--f-head); color: var(--acc); list-style: none; }
.fs-switch summary::-webkit-details-marker { display: none; }
.fs-switch-l { display: grid; gap: 2px; margin-top: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.fs-switch-l a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 700 .86rem var(--f-head); }
.fs-switch-l a:hover { background: var(--acc-hover); }
.fs-switch-l .ic { width: 16px; display: grid; place-items: center; } .fs-switch-l .tx { display: grid; min-width: 0; } .fs-switch-l small { font: 600 .74rem var(--f-body); color: var(--muted); }
.fs-min .fs-side > .fs-backapp { justify-content: center; padding: 8px 0; }
@media (min-width: 768px) and (max-width: 1099px) { body:not(.side-open) .fs-side > .fs-backapp { justify-content: center; padding: 8px 0; } }

/* Terra Fértil: abas dos itens que juntam telas (Check-in e diário, Minha gestação, Pós-parto e bebê) */
.tf-sub { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px; scrollbar-width: thin; }
.tf-sub[hidden] { display: none; }
.tf-sub a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--purple-soft, #e9dff0); background: #fff; color: var(--purple-ink, #5e3f6b); font-weight: 700; text-decoration: none; white-space: nowrap; }
.tf-sub a.on { background: var(--purple-d, #7d5a8a); border-color: var(--purple-d, #7d5a8a); color: #fff; }
.tf-sub a:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 2px; }
