/* LittleChapter 0.9 · peças novas, por cima do app.css (base Mamadas 0.8, que fica intacto). Mesmo vidro, latão e gelo. */
:root { --sono: 168, 156, 255; --fralda: 127, 214, 154; --ext: 240, 186, 150; --materno: 255, 150, 130; --formula: 210, 225, 235; }
.ligacao { border: 0; background: none; color: var(--brass); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 2px; align-self: flex-start; text-align: left; }
.ligacao.denunciar { color: var(--muted); font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; }
.ligacao.denunciar svg { width: 13px; height: 13px; }
.tag.ok { background: rgba(var(--fralda), .2); color: rgb(var(--fralda)); }
.perigo-txt { color: rgb(var(--esq)) !important; }
.nota-fim { text-align: center; padding: 4px 10px 8px; font-size: 12px; }

/* cabeçalho: o bebé (avatar, nome e idade) */
.cab { padding: 12px 16px 6px; }
.cab-bebe { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; border: 0; background: none; color: inherit; padding: 0; text-align: left; font: inherit; }
.cab-bebe h1 { font-size: 17px; font-weight: 700; }
.cab-bebe p { margin: 1px 0 0; font-size: 11.5px; color: var(--muted); }
.cab .estado { margin-left: 8px; flex: none; }
.av-bebe { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, rgba(201, 164, 106, .30), rgba(var(--dir), .18)); box-shadow: inset 0 0 0 1px rgba(240, 242, 239, .25); color: var(--ice); }
.av-bebe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-bebe.ic svg { width: 66%; height: 66%; color: var(--ice); }
.av-bebe.letras { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 15px; }
.av-bebe.cab-av { width: 38px; height: 38px; }
.av-bebe.grande { width: 76px; height: 76px; }
.av-bebe.grande.letras { font-size: 24px; }

/* início: cartões de cima */
.cartao-bebe-novo { display: flex; flex-direction: row; align-items: center; gap: 12px; text-align: left; border: 0; color: inherit; font: inherit; width: 100%; padding: 12px 16px; }
.cartao-bebe-novo b { display: block; font-size: 15px; }
.cartao-bebe-novo small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.cartao-bebe-novo i { font-style: normal; font-size: 22px; color: var(--muted); }
.cartao-bebe-novo .bebe-ic img { border-radius: 8px; display: block; }
.dica-cartao .botoes { justify-content: flex-end; }
.dica-cartao .botoes .pilula { flex: none; }
/* cartão principal com o cronómetro */
.etiq-vivo { display: inline-flex; align-items: center; gap: 8px; }
.vivo { width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 12px rgba(201, 164, 106, .9); animation: pulsa 1.1s var(--ease) infinite alternate; flex: none; }
.vivo.esq { background: rgb(var(--esq)); box-shadow: 0 0 12px rgba(var(--esq), .9); }
.vivo.dir { background: rgb(var(--dir)); box-shadow: 0 0 12px rgba(var(--dir), .9); }
.vivo.parado { animation: none; opacity: .6; background: var(--muted); box-shadow: none; }
.contador.crono span { font-variant-numeric: tabular-nums; }
.lados-t { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.lados-t b { color: var(--ice); font-family: Montserrat, sans-serif; font-variant-numeric: tabular-nums; }
.lados-t .esq b { color: rgb(var(--esq)); }
.lados-t .dir b { color: rgb(var(--dir)); }
.lados-t .zero { opacity: .5; }
.lados-t .desde { margin-left: auto; font-size: 12px; }
.botoes-heroi { display: flex; gap: 10px; margin-top: 6px; }
.botoes-heroi .pilula { flex: 1; min-width: 0; }
.botoes-heroi .pilula:first-child { flex: 1.4; }
.heroi .ligacao { align-self: center; color: var(--muted); font-weight: 600; font-size: 12px; padding: 2px; }
.quando .corta { min-width: 0; }
/* sono a contar */
.faixa-sono { --r: 22px; --tinta: var(--sono); display: flex; align-items: center; gap: 12px; width: 100%; border: 0; color: var(--ice); font: inherit; text-align: left; padding: 12px 16px; flex: none; }
.faixa-sono svg { color: rgb(var(--sono)); flex: none; width: 24px; height: 24px; }
.faixa-sono span { font-size: 14px; color: var(--muted); }
.faixa-sono span b { color: var(--ice); }
.faixa-sono > b { flex: none; padding: 7px 14px; border-radius: 99px; background: rgba(var(--sono), .28); box-shadow: inset 0 0 0 1px rgba(var(--sono), .6); font-size: 13px; }
/* «Hoje»: resumo + último registo */
.hoje-cartao { --r: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; border: 0; color: inherit; font: inherit; text-align: left; padding: 11px 16px 12px; flex: none; }
.hoje-cartao .etiq { font-size: 10.5px; letter-spacing: .18em; }
.hoje-chips { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; color: var(--muted); }
.hoje-chips b { color: var(--ice); font-family: Montserrat, sans-serif; font-weight: 700; }
.hoje-cartao small { font-size: 12px; color: var(--muted); max-width: 100%; }
.hoje-cartao small b { color: var(--ice); }
/* botões grandes: modo biberão e cronómetro */
.lado .nome.nome-p { font-size: clamp(19px, 5.4vw, 24px); text-align: center; line-height: 1.15; padding: 0 8px; }
.lado > svg { width: 30px; height: 30px; color: var(--ice); opacity: .9; }
.lado-caixa.com-pil .pilula-sug { color: var(--ice); background: rgba(255, 255, 255, .16); }
.lado-caixa.sessao:not(.ativo) .pilula-sug { color: var(--ice); background: rgba(255, 255, 255, .12); }
.lado-caixa.sessao.ativo .pilula-sug { color: var(--ice); background: rgba(255, 255, 255, .24); }
.lado-caixa.sessao:not(.ativo) .lado { background: linear-gradient(145deg, rgba(var(--c), .30), rgba(var(--c), .10)); }
/* Início: sem «buracos» das zonas vazias (cada div vazio ainda levava um espaço do gap) */
#slot-sono:empty, #slot-banner:empty { display: none; }
/* botões grandes: o nome cabe sempre, centrado, e a etiqueta «Sugerido» não o empurra */
.lado .nome { font-size: clamp(20px, 5.9vw, 27px); max-width: 100%; padding: 0 10px; text-align: center; white-space: nowrap; line-height: 1.1; }
.lado .nome.nome-p { white-space: normal; }
.lado .pilula-sug { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100% - 16px); padding: 5px 12px; font-size: 12.5px; white-space: nowrap; text-align: center; }
/* barra de baixo: o separador ativo não cresce (a borda cobria o vizinho) e a aresta é mais fina */
.barra button.ativo, .barra.muitos button.ativo { flex: 1; padding: 0 3px; margin: 0 -2px; position: relative; z-index: 1; background: rgba(201, 164, 106, .18); box-shadow: inset 0 0 0 1px rgba(201, 164, 106, .5); border-radius: 20px; }
.rapidos > button.a-dormir { background: linear-gradient(145deg, rgba(var(--sono), .38), rgba(var(--sono), .12)); }
/* atalhos: 4 botões iguais; o texto centra-se e quebra em duas linhas se for preciso (ex.: «Duas mamas») */
.rapidos > button { --r: 22px; min-height: 68px; justify-content: center; align-items: center; gap: 6px; padding: 8px 2px; min-width: 0; }
.rapidos > button svg { width: 25px; height: 25px; flex: none; display: block; margin: 0 auto; }
.rapidos > button b { display: block; width: 100%; font-size: 11.5px; line-height: 1.1; text-align: center; white-space: nowrap; letter-spacing: 0; }
/* Esquerda / Direita: vidro limpo e contido (sem a mancha de luz por trás, que os fazia parecer almofadas) */
.lado-caixa .brilho { inset: 26px 18px; filter: blur(26px); opacity: .1; }
.lado { --r: 30px; --aresta: 1.5px; background: linear-gradient(165deg, rgba(var(--c), .50), rgba(var(--c), .20)); }
.lado .nome { font-size: clamp(22px, 6.4vw, 28px); letter-spacing: .01em; }
.lado-caixa.sug .lado { background: linear-gradient(165deg, rgba(var(--c), .62), rgba(var(--c), .28)); }
/* «Mais» */
.mais-grelha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mais-item { --r: 22px; border: 0; color: var(--ice); font: inherit; text-align: left; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 96px; }
.mais-item .ic { color: var(--brass); display: inline-flex; margin-bottom: 2px; }
.mais-item b { font-family: Montserrat, sans-serif; font-size: 15px; }
.lado .pilula-sug:empty { display: none; }
/* Início apertado (ajustarInicio): nível 1 compacta, nível 2 esconde o acessório */
.ecra.fixo.ap1 { gap: 8px; padding-top: 4px; padding-bottom: 8px; }
.ap1 .heroi { padding: 14px 18px 12px; gap: 4px; }
.ap1 .contador { --fs: clamp(40px, 12.5vw, 56px); }
.ap1 .heroi .vazio-t { font-size: 22px; }
.ap1 .quando { font-size: 16px; }
.ap1 .cartao.pequeno, .ap1 .banner.compacto { padding-top: 8px; padding-bottom: 8px; }
.ap1 .hoje-cartao { padding: 7px 14px 8px; }
.ap1 .rapidos > button { min-height: 58px; gap: 4px; padding: 6px 2px; }
.ap1 .rapidos > button svg { width: 22px; height: 22px; }
.ecra.fixo.ap1 .lados { min-height: 84px; }
.ap2 .cartao-bebe-novo small, .ap2 .intro small, .ap2 .hoje-cartao small, .ap2 .proximo { display: none; }
.ap2 .heroi { padding: 10px 16px; }
.ecra.fixo.ap2 .lados { min-height: 72px; }
/* Questões: abrir sem lag (sem desfoque do fundo nem animar a altura, só um fade) e a lista afastada do «Perguntar» */
.quest-topo { margin-bottom: 14px; }
.quest-t, .quest-pil { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(145deg, rgba(48, 56, 78, .78), rgba(30, 36, 54, .78)); contain: layout paint; }
.quest-t-corpo, .quest-corpo { transition: none; }
.quest-t.aberta > .quest-t-corpo > .quest-int, .quest-pil.aberta > .quest-corpo > .quest-int { animation: surge .22s var(--ease) both; }
@keyframes surge { from { opacity: 0; } to { opacity: 1; } }
.mais-dica { margin: -4px 0 2px; font-size: 13px; }
.mais-item.ordenavel { position: relative; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mais-item .pos { position: absolute; top: 9px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; font-family: Montserrat, sans-serif; color: var(--ink); background: var(--brass); }
.mais-item .pos[hidden] { display: none; }
.mais-item.solto { z-index: 3; animation: abana .5s ease-in-out infinite alternate; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
.mais-item.arrasta { z-index: 4; animation: none; transition: none; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); pointer-events: none; }
@keyframes abana { from { transform: rotate(-1.6deg) scale(1.05); } to { transform: rotate(1.6deg) scale(1.05); } }
.mais-item small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }

/* folhas de registo */
.autoria { font-size: 12px; margin-top: -6px; }
.pend { color: var(--brass); font-weight: 700; }
.nota-det summary { list-style: none; cursor: pointer; color: var(--brass); font-weight: 700; font-size: 13px; padding: 4px 0; }
.nota-det summary::-webkit-details-marker { display: none; }
.nota-det[open] summary { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; margin-bottom: 6px; }
.nota-regra { font-size: 12px; }
.passo-n .ctl b { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.passo-n .ctl b small { font-size: 13px; font-weight: 600; color: var(--muted); font-family: Lato, sans-serif; }
.segmento.quatro button, .segmento.cinco button { min-height: 48px; font-size: 12.5px; padding: 6px 4px; }
.segmento.cinco { gap: 6px; }
.segmento.cinco button { font-size: 12px; }
.fralda-rapida { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fralda-rapida button { --r: 24px; border: 0; color: var(--ice); font: inherit; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: transform .4s var(--mola); }
.fralda-rapida button:active { transform: scale(.94); transition-duration: .12s; }
.fralda-rapida b { font-family: Montserrat, sans-serif; font-size: 15px; }
.fr-ic { width: 26px; height: 26px; border-radius: 50%; display: block; }
.fr-x { background: rgba(var(--dir), .85); }
.fr-c { background: rgb(160, 120, 70); }
.fr-xc { background: linear-gradient(90deg, rgba(var(--dir), .85) 50%, rgb(160, 120, 70) 50%); }
.fr-s { background: transparent; box-shadow: inset 0 0 0 2px rgba(240, 242, 239, .55); }
/* data: calendário próprio */
.data-sel { display: flex; flex-direction: column; gap: 8px; }
.campo-botao { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; border: 0; border-radius: 16px; padding: 0 16px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(240, 242, 239, .2); color: var(--ice); font: inherit; font-size: 16px; text-align: left; }
.campo-botao svg { color: var(--brass); flex: none; }
.campo-botao span { flex: 1; min-width: 0; }
.campo-botao .seta { width: 18px; height: 18px; color: var(--muted); }
.cal { border-radius: 20px; padding: 12px; background: rgba(0, 0, 0, .24); box-shadow: inset 0 0 0 1px rgba(240, 242, 239, .14); }
.cal-cab { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.cal-cab b { flex: 1; min-width: 0; text-align: center; font-family: Montserrat, sans-serif; font-size: 14.5px; text-transform: capitalize; white-space: nowrap; }
.cal-cab button { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .07); color: var(--brass); font-size: 19px; font-weight: 700; line-height: 1; }
.cal-cab button:disabled { opacity: .3; }
.cal-sem, .cal-grelha { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-sem span { text-align: center; font-size: 11px; color: var(--muted); padding-bottom: 4px; }
.cal-grelha button { aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; color: var(--ice); font: inherit; font-size: 15px; font-weight: 600; }
.cal-grelha button.hoje { box-shadow: inset 0 0 0 1.5px rgba(201, 164, 106, .7); }
.cal-grelha button.ativo { background: var(--brass); color: #1D1D1B; font-weight: 800; }
.cal-grelha button:disabled { opacity: .25; }
/* dica «?» */
.dica { display: inline-block; }
.dica summary { list-style: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--brass); box-shadow: inset 0 0 0 1px rgba(201, 164, 106, .6); cursor: pointer; }
.dica summary::-webkit-details-marker { display: none; }
.dica p { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* histórico */
.ecra.historico { gap: 12px; }
.hist-topo { position: sticky; top: -8px; z-index: 3; margin: -8px -16px 0; padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #0D1220 0%, #0C111E calc(100% - 14px), rgba(12, 17, 30, 0) 100%); }
.historico .dia { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 6px; }
.historico .dia span { font-size: 12.5px; line-height: 1.35; }
.tiles b { white-space: nowrap; font-size: clamp(17px, 5.6vw, 22px); }
.tiles b small { font-size: .62em; font-weight: 700; margin-left: 1px; }
.hist-corpo { display: flex; flex-direction: column; gap: 12px; }
.hist-corpo > * { flex: none; }
.seg-n { display: flex; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(240, 242, 239, .14); flex: none; }
.seg-n button { flex: 1; min-width: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 9px 4px; border-radius: 99px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .35s var(--ease); }
.seg-n button.ativo { background: var(--brass); color: #1D1D1B; }
.seg-n.quatro button { font-size: 12.5px; }
.bolinha { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 11px; background: rgba(var(--esq), .85); color: #fff; }
.item .sub-l { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; }
.item .autor { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .09); color: var(--ice); }
.item .pend { font-size: 11px; }
.item .hora small { font-size: 14px; font-weight: 600; color: var(--muted); }
.item .hora.hora-p { font-size: 17px; }
.item .ponto { background: rgb(var(--c)); box-shadow: 0 0 12px rgba(var(--c), .8); }
.ponto.vivo-p { animation: pulsa 1.1s var(--ease) infinite alternate; }
.item .cresce { min-width: 0; }
.item .lado-t { overflow-wrap: anywhere; }
.vazio small { display: block; font-size: 13px; margin-top: 6px; }
.botoes.exportar { padding: 0; flex-wrap: nowrap; gap: 8px; }
.botoes.exportar .pilula { flex: 1 1 0; min-width: 0; min-height: 42px; font-size: 13px; padding: 0 8px; border-radius: 14px; white-space: nowrap; }
.botoes.exportar .pilula svg { width: 18px; height: 18px; flex: none; color: var(--brass); }
.sec-cab { display: flex; align-items: baseline; gap: 10px; }
.sec-cab h3 { flex: 1; min-width: 0; }
.sec-cab span { font-size: 12px; color: var(--muted); text-align: right; }
.resumo .etiq { margin-top: 4px; }
.b-materno { fill: rgba(var(--materno), .9); }
.b-formula { fill: rgba(var(--formula), .82); }
.b-outro { fill: rgba(201, 164, 106, .85); }
.b-fant { fill: none; stroke: rgba(240, 242, 239, .4); stroke-width: 1; stroke-dasharray: 3 2; }
.b-ambos { fill: rgba(var(--fralda), .9); }
.b-seca { fill: rgba(240, 242, 239, .35); }
.b-sono { fill: rgba(var(--sono), .85); }
.b-ext { fill: rgba(var(--ext), .9); }
.c-vazio { fill: rgba(255, 255, 255, .05); }
.c-cheio { fill: var(--brass); }
.t-fundo { fill: rgba(255, 255, 255, .05); }
.t-sono { fill: rgba(var(--sono), .85); }
.t-ref { fill: var(--brass); }
.legenda { flex-wrap: wrap; gap: 4px 6px; }
.legenda span { margin-right: 8px; }
.legenda i { flex: none; margin: 0 !important; }
.legenda i.duas { background: var(--brass); }
.legenda i.materno { background: rgb(var(--materno)); }
.legenda i.formula { background: rgb(var(--formula)); }
.legenda i.outro { background: var(--brass); }
.legenda i.fant { background: none; box-shadow: inset 0 0 0 1px rgba(240, 242, 239, .6); }
.legenda i.ambos { background: rgb(var(--fralda)); }
.legenda i.seca { background: rgba(240, 242, 239, .4); }
.legenda i.sono { background: rgb(var(--sono)); }
.legenda i.ref { background: var(--brass); width: 3px; }
/* totais: o desenho do «Tempo na app» */
.totais { gap: 8px; }
.totais .uso-linha { grid-template-columns: 96px 1fr auto; }
.prog.esq i { background: linear-gradient(90deg, rgba(var(--esq), .55), rgb(var(--esq))); }
.prog.dir i { background: linear-gradient(90deg, rgba(var(--dir), .55), rgb(var(--dir))); }
.prog.duas i, .prog.outro i { background: linear-gradient(90deg, rgba(201, 164, 106, .5), var(--brass)); }
.prog.materno i { background: linear-gradient(90deg, rgba(var(--materno), .5), rgb(var(--materno))); }
.prog.formula i { background: linear-gradient(90deg, rgba(var(--formula), .45), rgb(var(--formula))); }
.prog.ext i { background: linear-gradient(90deg, rgba(var(--ext), .5), rgb(var(--ext))); }
.prog.xixi i { background: linear-gradient(90deg, rgba(var(--dir), .5), rgb(var(--dir))); }
.prog.coco i { background: linear-gradient(90deg, rgba(160, 120, 70, .6), rgb(176, 134, 82)); }
.prog.ambos i { background: linear-gradient(90deg, rgba(var(--fralda), .5), rgb(var(--fralda))); }
.prog.seca i { background: linear-gradient(90deg, rgba(240, 242, 239, .3), rgba(240, 242, 239, .7)); }
.equil { display: flex; flex-direction: column; gap: 6px; }
.equil-barra { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .08); gap: 2px; }
.equil-barra i { display: block; height: 100%; }
.equil-barra i.esq { background: rgb(var(--esq)); border-radius: 6px 0 0 6px; }
.equil-barra i.dir { background: rgb(var(--dir)); border-radius: 0 6px 6px 0; }
.equil-leg { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.equil-leg b { color: var(--ice); font-family: Montserrat, sans-serif; }
/* resumo para a consulta */
.rc { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 20px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(240, 242, 239, .12); -webkit-user-select: text; user-select: text; }
.rc h4 { margin: 0; font-family: Montserrat, sans-serif; font-size: 17px; }
.rc-sec b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 3px; }
.rc-sec p { margin: 2px 0; font-size: 14px; line-height: 1.45; }
.rc-nota { margin: 0; font-size: 12px; color: var(--muted); }
#impressao { display: none; }
@media print {
  @page { margin: 16mm; }
  body.a-imprimir { background: #fff !important; color: #1D1D1B !important; overflow: visible !important; height: auto !important; }
  body.a-imprimir > *:not(#impressao) { display: none !important; }
  body.a-imprimir #impressao { display: block !important; font-family: Lato, sans-serif; color: #1D1D1B; }
  #impressao .imp-cab { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1.5px solid #C9A46A; }
  #impressao .imp-cab img { width: 40px; height: 40px; border-radius: 10px; }
  #impressao .imp-cab b { display: block; font-family: Montserrat, sans-serif; font-size: 18px; }
  #impressao .imp-cab span { font-size: 12px; color: #555; }
  #impressao .rc { background: none; box-shadow: none; padding: 0; color: #1D1D1B; }
  #impressao .rc h4 { color: #1D1D1B; font-size: 20px; }
  #impressao .rc-sec { break-inside: avoid; }
  #impressao .rc-sec b { color: #8a6a35; }
  #impressao .rc-sec p { color: #1D1D1B; }
  #impressao .rc-nota { color: #555; margin-top: 10px; }
}

/* bebé */
.perfil-bebe .pb-topo { display: flex; align-items: center; gap: 16px; }
.perfil-bebe h2 { font-size: 24px; font-weight: 800; }
.perfil-bebe .tag { align-self: flex-start; margin-top: 4px; display: inline-block; }
.pb-topo .cresce { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sub-cab { display: flex; align-items: center; gap: 10px; flex: none; }
.sub-cab h2 { font-size: 21px; font-weight: 800; }
.sub-cab .pilula { flex: none; }
.sub-cab .redondo-b { width: 40px; height: 40px; flex: none; }
.pf-av { display: flex; justify-content: center; }
.icones-grelha { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.icones-grelha button { aspect-ratio: 1; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .06); color: var(--ice); display: grid; place-items: center; padding: 6px; box-shadow: inset 0 0 0 1px rgba(240, 242, 239, .12); }
.icones-grelha button svg { width: 100%; height: 100%; }
.icones-grelha button.ativo { background: rgba(201, 164, 106, .24); box-shadow: inset 0 0 0 1.5px var(--brass); color: var(--brass); }
.icones-grelha .sem { color: var(--muted); font-size: 18px; }
.foto-b { cursor: pointer; }
.linha-bebe { --r: 22px; display: flex; align-items: center; gap: 12px; border: 0; color: var(--ice); font: inherit; text-align: left; padding: 10px 14px; width: 100%; }
.linha-bebe b { display: block; font-size: 15px; }
.linha-bebe small { display: block; font-size: 12px; color: var(--muted); }
.linha-bebe.ativo { box-shadow: inset 0 0 0 1.5px var(--brass); }
.linha-bebe svg { color: var(--brass); }
.pilha { display: flex; flex-direction: column; gap: 8px; width: 100%; }
/* agenda */
.evento { --r: 20px; display: flex; align-items: flex-start; gap: 12px; width: 100%; border: 0; color: var(--ice); font: inherit; text-align: left; padding: 12px 14px; flex: none; }
.cartao .evento { --r: 18px; }
.evento.destaque { --tinta: 201, 164, 106; }
.evento.feito { opacity: .78; }
.evento .cresce { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.evento b { font-size: 15px; }
.evento small { font-size: 12.5px; color: var(--muted); }
.ev-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .08); }
.ev-consulta { color: rgb(var(--dir)); }
.ev-vacina { color: rgb(var(--esq)); }
.ev-outro { color: var(--brass); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ev-tags .tag { display: inline-flex; align-items: center; gap: 4px; }
.ev-tags .tag svg { width: 11px; height: 11px; }
.duvidas { display: flex; flex-direction: column; gap: 6px; }
.duvida { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: 14px; cursor: pointer; position: relative; }
.duvida input { position: absolute; opacity: 0; width: 0; height: 0; }
.duvida .cx { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(240, 242, 239, .4); color: transparent; }
.duvida .cx svg { width: 15px; height: 15px; }
.duvida.ok .cx { background: var(--brass); box-shadow: none; color: #1D1D1B; }
.duvida.ok .cresce { text-decoration: line-through; color: var(--muted); }
.b-x2 { width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font-size: 20px; flex: none; }
.linha-add { display: flex; gap: 8px; align-items: center; }
.linha-add .campo-in { flex: 1; min-width: 0; }
/* alimentos */
.al-topo { gap: 8px; }
.al-topo .prog.grande { margin: 2px 0 4px; }
.dica-seg summary { list-style: none; cursor: pointer; color: var(--brass); font-size: 13px; font-weight: 700; }
.dica-seg summary::-webkit-details-marker { display: none; }
.dica-seg p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.pilha-al { display: flex; flex-direction: column; gap: 8px; }
.grupo-al { border-radius: 22px; padding: 0; overflow: hidden; flex: none; }
.grupo-cab { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; padding: 13px 14px; }
.grupo-cab b { display: block; font-size: 15px; color: var(--ice); margin-bottom: 6px; }
.mini-prog { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mini-prog i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, rgba(240, 242, 239, .8), var(--brass)); }
.grupo-al.aberta > .grupo-cab .seta { transform: rotate(180deg); }
.grupo-corpo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.grupo-al.aberta > .grupo-corpo { grid-template-rows: 1fr; }
.grupo-int { min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0 8px; }
.grupo-int > :last-child { margin-bottom: 10px; }
.nota-grupo { margin: 0 6px 6px; padding: 8px 10px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; color: var(--ice); background: rgba(201, 164, 106, .12); box-shadow: inset 0 0 0 1px rgba(201, 164, 106, .3); }
.al-linha { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--ice); font: inherit; font-size: 15px; text-align: left; padding: 9px 6px; border-top: 1px solid rgba(240, 242, 239, .07); }
.al-linha small { font-size: 12px; color: var(--muted); flex: none; }
.grupo-int .ligacao { margin: 4px 6px 0; }
.st { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; }
.st svg { width: 14px; height: 14px; }
.st-0 { box-shadow: inset 0 0 0 1.5px rgba(240, 242, 239, .3); }
.st-s { background: rgba(var(--fralda), .9); color: #0B1A10; }
.st-m { background: var(--brass); color: #1D1D1B; }
.st-n { background: rgba(240, 242, 239, .25); color: var(--ice); }
.st-r { background: rgb(var(--esq)); color: #fff; }
.al-alerg { --r: 20px; display: flex; align-items: center; gap: 12px; width: 100%; border: 0; color: var(--ice); font: inherit; text-align: left; padding: 12px 14px; flex: none; }
.al-alerg b { display: block; font-size: 15px; }
.al-alerg small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.al-alerg small.obs, .prova-l small.obs { color: var(--ice); }
.al-alerg .tag { flex: none; }
.prova-l { --r: 18px; display: flex; align-items: center; gap: 10px; width: 100%; border: 0; color: var(--ice); font: inherit; text-align: left; padding: 10px 14px; }
.prova-l small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.prova-l svg { color: var(--muted); flex: none; }
.nota-reacao { font-size: 12px; }

/* comunidade */
.selo { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(var(--fralda), .09); box-shadow: inset 0 0 0 1px rgba(var(--fralda), .3); font-size: 12px; color: var(--muted); line-height: 1.45; }
.selo svg { color: rgb(var(--fralda)); flex: none; margin-top: 1px; }
.selo b { color: var(--ice); }
.selo a { color: rgb(var(--fralda)); font-weight: 700; text-decoration: none; }
.rascunho { margin: 0; padding: 7px 10px; border-radius: 12px; font-size: 12px; color: var(--brass); background: rgba(201, 164, 106, .1); box-shadow: inset 0 0 0 1px rgba(201, 164, 106, .4); }
.quest-resp.enf { background: rgba(201, 164, 106, .14); }
.quest-topo { display: flex; align-items: center; gap: 12px; }
.quest-topo .pilula { flex: none; }
.blog-topo .sub { font-size: 12.5px; flex: 1; min-width: 0; }
.blog-acoes { align-items: center; }
.ecra.chat > .seg-n { flex: none; }

/* definições e família */
.pessoa.membro { width: 100%; text-align: left; border: 0; background: none; color: inherit; padding: 8px 0; font: inherit; }
.aud-l { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: 14px; color: var(--muted); }
.aud-l b, .aud-l span { color: var(--ice); }
.aud-l small { font-size: 11.5px; }
.marca .lema { margin: -4px 0 0; font-size: 14px; color: var(--brass); font-weight: 700; letter-spacing: .01em; }
.convite-txt { white-space: pre-wrap; font-size: 13px; line-height: 1.45; max-height: 180px; overflow-y: auto; color: var(--muted); }
.den .botoes .pilula { flex: 1; }

/* barra de baixo: o rótulo mais comprido cabe sempre */
.barra button span { font-size: clamp(9.5px, 2.85vw, 12px); letter-spacing: -.005em; white-space: nowrap; }
.barra.muitos button span { font-size: clamp(8.5px, 2.5vw, 10.5px); }

/* modo noite (22 h–7 h): menos brilho, sem animações */
html.noite .fundo { opacity: .45; }
html.noite .vidro::after { opacity: .6; } /* o brilho das bordas fica (mais suave) enquanto «Brilho nas bordas» estiver ligado */
html.noite .brilho { opacity: .1 !important; animation: none !important; }
html.noite .fundo i { animation: none; }
html.noite #app { filter: brightness(.9); }

.botoes.empilha > .pilula { flex: 1 1 100%; }
.titulo-acao { display: flex; align-items: center; gap: 10px; }
.titulo-acao .icone-b { flex: none; }
/* sem barras de scroll à vista (o telemóvel mostra as suas por cima, finas) */
.ecra { scrollbar-width: none; }
.ecra::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ecra.fixo { gap: 12px; overflow-y: auto; } /* se os avisos de cima ocuparem espaço, o Início deixa-se deslizar em vez de cortar os botões */
/* avisos do Início numa só linha */
.banner.compacto { flex-direction: row; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; }
.banner.compacto p { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.banner.compacto .pilula { flex: none; min-height: 40px; padding: 0 16px; font-size: 14px; }
.hoje-l1 { display: flex; align-items: baseline; gap: 10px; width: 100%; min-width: 0; }
.hoje-l1 .etiq { flex: none; }
.hoje-cartao[hidden] { display: none !important; }
@media (max-height: 860px) {
  .heroi { padding: 20px 22px 18px; gap: 6px; }
  .contador { --fs: clamp(50px, 15.5vw, 70px); }
}
/* os botões grandes encolhem primeiro quando há avisos em cima: a barra de atalhos nunca fica cortada */
.ecra.fixo .lados { min-height: 96px; }
@media (max-height: 700px) { .hoje-cartao { padding: 9px 14px 10px; } .heroi { padding: 16px 20px 14px; } .intro { display: none; } }
/* folhas: a barra «Guardar / Voltar» encosta mesmo ao fundo (nada passa por baixo dela) */
/* barra fixa: fundo sólido logo a seguir a um desvanecido curto (o conteúdo já não se vê por trás dos botões) */
.folha-corpo > .botoes.fixa { bottom: -22px; padding-top: 22px; background: linear-gradient(180deg, rgba(18, 22, 36, 0), rgb(18, 22, 36) 16px); }
@media (max-height: 560px) { .folha-corpo > .botoes.fixa { background: none; } }
.caixa-txt { scrollbar-width: thin; scrollbar-color: rgba(240, 242, 239, .25) transparent; }
.bloco-r[hidden] { display: none !important; }

/* aviso de ligação fraca / sem rede: pílula de vidro por cima de tudo */
#rede-aviso { position: fixed; z-index: 9999; left: 50%; width: max-content; top: calc(env(safe-area-inset-top, 0px) + 8px); max-width: min(92vw, 420px); display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 99px;
  font: 600 13px/1.25 Lato, sans-serif; color: #F0F2EF; background: linear-gradient(145deg, rgba(40,46,64,.92), rgba(22,26,40,.94)); box-shadow: 0 8px 28px rgba(0,0,0,.5), inset 0 0 0 1px rgba(240,242,239,.22), inset 0 1px 0 rgba(201,164,106,.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  transform: translate(-50%, -160%); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.33,0,.67,1), opacity .35s cubic-bezier(.33,0,.67,1); }
#rede-aviso.ver { transform: translate(-50%, 0); opacity: 1; }
#rede-aviso i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #C9A46A; box-shadow: 0 0 12px rgba(201,164,106,.8); animation: rede-pulsa 1.4s cubic-bezier(.33,0,.67,1) infinite alternate; }
#rede-aviso.off i { background: #E07A6B; box-shadow: 0 0 12px rgba(224,122,107,.8); }
@keyframes rede-pulsa { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #rede-aviso i { animation: none; } }
