/* alvvo health · ciclo, parte 2 (nov/2026): cores por família, figuras Alvvo, tons do fluxo, proteção contra corte lateral no iPhone */
/* ---------- nov/2026: cores por família, figuras Alvvo, tons do fluxo ---------- */
:root{--fl1:#F2A49A;--fl2:#E0675A;--fl3:#C2453A;--fl4:#7E1F17;--k-per:#C8392E;--k-mood:#D9621F;--k-act:#1E8467;--k-body:#3157C8;--k-care:#C2337A;--k-preg:#6A4BD8}
@media (prefers-color-scheme:dark){:root{--fl1:#F7C3BB;--fl2:#F08A7E;--fl3:#D9574A;--fl4:#A8392E;--k-per:#F0796C;--k-mood:#F08A4B;--k-act:#4FC39C;--k-body:#7D9BF2;--k-care:#EE6FA8;--k-preg:#A38CF5}}
.cy-k-per{--c:var(--k-per)}.cy-k-mood{--c:var(--k-mood)}.cy-k-act{--c:var(--k-act)}.cy-k-body{--c:var(--k-body)}.cy-k-care{--c:var(--k-care)}.cy-k-preg{--c:var(--k-preg)}
/* iPhone: nada pode empurrar a página para os lados */
html,body{max-width:100%;overflow-x:hidden;overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}
main.app,#view{max-width:100%;min-width:0}
.tabs.cu-tabs,.tabs.fit{max-width:100%;overflow-x:auto;scrollbar-width:none}
.tabs.cu-tabs::-webkit-scrollbar{display:none}
.ring-box{max-width:100%}

/* botões do registro: tinta da família, ícone, cheio quando marcado */
.tg-g>.h3{color:color-mix(in srgb,var(--c,var(--ink)) 70%,var(--ink))}
.tg.cy-k-per,.tg.cy-k-mood,.tg.cy-k-act,.tg.cy-k-body,.tg.cy-k-care,.tg.cy-k-preg{display:inline-flex;align-items:center;gap:8px;border-color:transparent;background:color-mix(in srgb,var(--c) 13%,var(--surface));color:var(--ink);padding:7px 14px 7px 8px;font-weight:500}
.tg .tg-i{width:26px;height:26px;flex:none;display:grid;place-items:center;color:var(--c)}
.tg .tg-i svg{width:22px;height:22px}
.tg.tg-face .tg-i svg{width:26px;height:26px}
.tg[aria-pressed="true"].cy-k-per,.tg[aria-pressed="true"].cy-k-mood,.tg[aria-pressed="true"].cy-k-act,.tg[aria-pressed="true"].cy-k-body,.tg[aria-pressed="true"].cy-k-care,.tg[aria-pressed="true"].cy-k-preg{background:var(--c);border-color:var(--c);color:#fff}
.tg[aria-pressed="true"] .tg-i{color:#fff}
.tg.fl.fv1{--c:var(--fl1)}.tg.fl.fv2{--c:var(--fl2)}.tg.fl.fv3{--c:var(--fl3)}.tg.fl.fv4{--c:var(--fl4)}
.tg.fl.fv1[aria-pressed="true"]{color:#5A1610}.tg.fl.fv1[aria-pressed="true"] .tg-i{color:#B03A2E}
.tg:active{transform:scale(.97)}

/* figuras Alvvo (sentimentos) */
svg.cy-face{display:block}
.cy-face .f-h{fill:var(--k-mood)}
.cy-face .f-i{fill:#3B1A0C}.cy-face .f-l{fill:none;stroke:#3B1A0C;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cy-face .f-c{fill:#F7A27A;opacity:.85}.cy-face .f-w{fill:#fff}
.cy-face .f-t{fill:#7DB3EA}.cy-face .f-s{fill:var(--k-mood)}.cy-face .f-s2{fill:none;stroke:var(--k-mood);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tg[aria-pressed="true"] .cy-face .f-h{fill:#fff}
.tg[aria-pressed="true"] .cy-face .f-s{fill:#fff}.tg[aria-pressed="true"] .cy-face .f-s2{stroke:#fff}
button.cy-feel{width:100%;border:0;font:inherit;text-align:left;cursor:pointer}
.cy-feel-i{background:none!important;width:40px;height:40px}
.cy-feel-i svg{width:40px;height:40px}
dialog.cy-sheet{max-width:560px}
.cy-faces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cy-fc{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px 12px;border-radius:18px;border:2px solid transparent;background:color-mix(in srgb,var(--k-mood) 10%,var(--surface));color:var(--ink);font:500 13px/1.2 var(--f-ui);cursor:pointer;text-align:center}
.cy-fc svg{width:58px;height:58px}
.cy-fc[aria-pressed="true"]{border-color:var(--k-mood);background:color-mix(in srgb,var(--k-mood) 22%,var(--surface))}
.cy-fc:active{transform:scale(.96)}

/* anel: fluxo por dia, janela ampla, pontos coloridos dos registros */
.ring .perd{stroke-linecap:butt}
.ring .per.f1{stroke:var(--fl1)}.ring .per.f2{stroke:var(--fl2)}.ring .per.f3{stroke:var(--fl3)}.ring .per.f4{stroke:var(--fl4)}
.ring .perd.f1{stroke:var(--fl1)}.ring .perd.f2{stroke:var(--fl2)}.ring .perd.f3{stroke:var(--fl3)}.ring .perd.f4{stroke:var(--fl4)}
.ring .fert.wide{stroke:var(--cy-fert-soft)}
@media (prefers-color-scheme:dark){.ring .fert.wide{stroke:#2A4766}}
.ring .rd.k-mood{fill:var(--k-mood)}.ring .rd.k-act{fill:var(--k-act)}.ring .rd.k-body{fill:var(--k-body)}.ring .rd.k-care{fill:var(--k-care)}.ring .rd.k-preg{fill:var(--k-preg)}.ring .rd.k-per{fill:var(--k-per)}

/* calendário e semana: tom do fluxo e cor do registro */
.cal-g>a.per.f1,.cal-g>a.per.f2{color:#3B0E09}
.cal-g>a.fert.wide,.cal-g>span.fert.wide{background:transparent;box-shadow:inset 0 0 0 1.5px var(--cy-fert)}
.lg.fert.wide{background:transparent;border-color:var(--cy-fert)}
.cal-g>a.log.k-mood::after{background:var(--k-mood);opacity:1}.cal-g>a.log.k-act::after{background:var(--k-act);opacity:1}.cal-g>a.log.k-body::after{background:var(--k-body);opacity:1}.cal-g>a.log.k-care::after{background:var(--k-care);opacity:1}.cal-g>a.log.k-preg::after{background:var(--k-preg);opacity:1}
.weekstrip .wf1 b{background:var(--fl1);color:#3B0E09}.weekstrip .wf2 b{background:var(--fl2)}.weekstrip .wf3 b{background:var(--fl3)}.weekstrip .wf4 b{background:var(--fl4)}
.cy-sheet header{flex-wrap:nowrap;align-items:flex-start;gap:12px}
.cy-sheet header .icon-btn{flex:none}
.cy-sheet form>.row:last-of-type{position:sticky;bottom:0;background:var(--surface);padding:10px 0 4px;z-index:2}
