/* Novo visual (novembro/2026): fonte Urbanist e paleta Ghost White, Alice Blue, Honeydew, Vanila e Eerie Black.
   Esta camada vem depois de styles.css e só redefine cores, formas e os componentes novos. */
:root{
  --display:"Urbanist","Avenir Next","Segoe UI",system-ui,sans-serif;
  --body:"Urbanist","Avenir Next","Segoe UI",system-ui,sans-serif;
  --bg:#F6F5FA; --surface:#FFFFFF; --surface-2:#EEEDF3; --ink:#212121; --muted:#6B6B73; --line:#E6E5EC;
  --accent:#212121; --accent-ink:#FFFFFF; --accent-soft:#EFF0A3;
  --forest:#212121; --forest-2:#3A3A3D; --on-forest:#FFFFFF; --on-forest-muted:#A9A9B0;
  --sage:#EFF0A3; --sage-ink:#212121; --sage-text:#6F7031;
  --alice:#D8DFE9; --honey:#CFDECA; --vanila:#EFF0A3; --ghost:#F6F5FA; --eerie:#212121;
  --alice-ink:#2B3646; --honey-ink:#2C3D27; --vanila-ink:#3F4011;
  --ring-ok:#4E8C45; --ring-track:#E9E8EE; --ring-light:#C9C9D1; --ring-dark:#212121;
  --shadow:none; --r:24px; --r-sm:14px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#121214; --surface:#1C1C1F; --surface-2:#27272B; --ink:#F2F2F5; --muted:#A3A3AB; --line:#2E2E33;
  --accent:#EFF0A3; --accent-ink:#212121; --accent-soft:#3A3B22;
  --forest:#2A2A2E; --forest-2:#3A3A3F; --on-forest:#FFFFFF; --on-forest-muted:#A9A9B0;
  --sage:#EFF0A3; --sage-ink:#212121; --sage-text:#D6D78A;
  --alice:#C9D2DE; --honey:#C2D3BC; --vanila:#E8E99C; --alice-ink:#2B3646; --honey-ink:#2C3D27; --vanila-ink:#3F4011;
  --ring-ok:#8DCC85; --ring-track:#2A2A2F; --ring-light:#4A4A52; --ring-dark:#EFF0A3; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#121214; --surface:#1C1C1F; --surface-2:#27272B; --ink:#F2F2F5; --muted:#A3A3AB; --line:#2E2E33;
  --accent:#EFF0A3; --accent-ink:#212121; --accent-soft:#3A3B22;
  --forest:#2A2A2E; --forest-2:#3A3A3F; --on-forest:#FFFFFF; --on-forest-muted:#A9A9B0;
  --sage:#EFF0A3; --sage-ink:#212121; --sage-text:#D6D78A;
  --alice:#C9D2DE; --honey:#C2D3BC; --vanila:#E8E99C; --alice-ink:#2B3646; --honey-ink:#2C3D27; --vanila-ink:#3F4011;
  --ring-ok:#8DCC85; --ring-track:#2A2A2F; --ring-light:#4A4A52; --ring-dark:#EFF0A3; color-scheme:dark}

body{font-size:15.5px;letter-spacing:.005em}
h1,h2,h3{font-weight:700;letter-spacing:-.02em}
h1{font-size:clamp(1.75rem,5vw,2.2rem)}
.eyebrow{letter-spacing:.06em}
.card{border:0;border-radius:var(--r);box-shadow:none;padding:18px}
.btn{border-radius:999px;font-weight:600}
.btn:not(.ghost):not(.soft):not(.danger){background:var(--eerie);color:#fff}
:root[data-theme="dark"] .btn:not(.ghost):not(.soft):not(.danger){background:#EFF0A3;color:#212121}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .btn:not(.ghost):not(.soft):not(.danger){background:#EFF0A3;color:#212121}}
.btn.ghost{background:var(--surface);border-color:var(--line)}
.btn.soft{background:var(--vanila);color:var(--vanila-ink)}
.chip{border-radius:999px;background:var(--surface);border:1px solid var(--line)}
.chip[aria-pressed="true"]{background:var(--eerie);color:#fff;border-color:var(--eerie)}
.tabs{border-radius:999px;background:var(--surface-2)}
.tabs button{border-radius:999px}
.tabs button[aria-selected="true"]{background:var(--eerie);color:#fff}
.pill{border-radius:999px}
.banner{border-radius:20px;border:0;background:var(--vanila);color:var(--vanila-ink)}
.banner .ic{color:var(--vanila-ink)}
.banner.ok{background:var(--honey);color:var(--honey-ink)} .banner.ok .ic{color:var(--honey-ink)}
.banner.bad{background:var(--bad-soft)}
.in,.search{border-radius:16px}
.mark{background:var(--eerie);color:var(--vanila);border-radius:12px}

/* Barra superior: só marca e sino (o Perfil agora fica na barra de baixo) */
.topbar{background:color-mix(in srgb,var(--bg) 90%,transparent)}
.topbar .me-btn{display:none}

/* Barra de baixo: pílula preta flutuante, item ativo em círculo Vanila */
.bottomnav{background:var(--eerie)!important}
.bottomnav button{color:#A9A9B0}
.bottomnav button[aria-current="page"]{color:#fff}
.bottomnav button[aria-current="page"] .ic{background:var(--vanila)!important;color:#212121;border-radius:50%!important;padding:6px!important;width:34px!important;height:34px!important;margin:-7px 0 -3px!important}
.bottomnav .nav-dot{position:absolute;top:4px;margin-left:16px;width:8px;height:8px;border-radius:50%;background:var(--bad)}
.bottomnav button{position:relative}
@media(max-width:899px){.bottomnav{border-radius:999px;padding:8px 10px}}
@media(min-width:900px){
  .side{background:var(--eerie)}
  .side .mark{background:var(--vanila);color:#212121}
  .side nav button[aria-current="page"]{background:var(--vanila);color:#212121}
}

/* ---------- Tela inicial ---------- */
.hello{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:16px}
.hello h1{font-size:clamp(1.9rem,6vw,2.4rem)}
.hm-days{display:flex;flex-direction:column;gap:12px;background:var(--alice);color:var(--alice-ink)}
.hm-days .icon-btn{background:var(--surface);color:var(--ink)}
.dscroll{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 6px;scrollbar-width:none}
.dscroll::-webkit-scrollbar{display:none}
.dchip{flex:none;scroll-snap-align:center;width:52px;padding:10px 0 8px;border:0;border-radius:999px;background:var(--surface);color:var(--ink);display:flex;flex-direction:column;align-items:center;gap:1px}
.dchip b{font-size:1.05rem;font-weight:700}
.dchip span{font-size:.7rem;color:var(--muted)}
.dchip i{width:5px;height:5px;border-radius:50%;background:transparent;margin-top:3px}
.dchip i.on{background:var(--ring-ok)}
.dchip.today{outline:2px solid var(--eerie);outline-offset:-2px}
.dchip.on{background:var(--vanila);color:#212121}
.dchip.on span{color:#55561E}
.dchip.future{opacity:.65}
.hm-chart{background:var(--surface);border-radius:18px;padding:8px 6px 2px}
.hm-chart svg{display:block;width:100%;height:auto}
.hm-chart .ln{fill:none;stroke:var(--ink);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.hm-chart .ar{fill:var(--honey);opacity:.75}
.hm-chart .ref{stroke:var(--muted);stroke-dasharray:4 4;stroke-width:1}
.hm-chart text{font-size:10px;fill:var(--muted);font-family:var(--body)}
.hm-chart .tag rect{fill:var(--eerie)} .hm-chart .tag text{fill:#fff;font-weight:700;font-size:11px}
.hm-meals{background:var(--vanila);color:var(--vanila-ink);display:flex;flex-direction:column;gap:14px}
.hm-meals>.row h2{color:#212121}
.mdots{display:flex;gap:6px}
.mdots i{width:26px;height:26px;border-radius:50%;border:2px solid rgba(33,33,33,.25)}
.mdots i.on{background:#212121;border-color:#212121}
.mdots i.skip{border-style:dashed}
.sum3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sum-t{background:var(--surface);border-radius:18px;padding:12px 10px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;color:var(--ink)}
.sum-t b{font-size:1.2rem;font-weight:700}
.sum-t b small{font-size:.75rem;color:var(--muted);font-weight:600}
.sum-t span{font-size:.72rem;color:var(--muted)}
.hm-meals .meal{background:var(--surface);color:var(--ink)}
.bento{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.bx{border-radius:24px;padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0}
.bx h3{font-size:1rem}
.bx-act{background:var(--honey);color:var(--honey-ink);grid-column:1/-1}
.bx-water{background:var(--alice);color:var(--alice-ink);grid-column:1/-1}
.bx-ch{background:var(--eerie);color:#fff;cursor:pointer}
.bx-ch .muted{color:#B5B5BC}
.bx-streak{background:var(--surface);color:var(--ink)}
.bx .big{font-size:2.6rem;font-weight:800;line-height:1;letter-spacing:-.03em}
.bx .round{width:40px;height:40px;border-radius:50%;border:0;display:grid;place-items:center;flex:none}
.bx .round.dark{background:var(--eerie);color:#fff}
.bx .round.light{background:var(--surface);color:var(--ink)}
.bx .round.vanila{background:var(--vanila);color:#212121}
@media(min-width:560px){.bx-act,.bx-water{grid-column:auto}}
.slide{position:relative;height:56px;border-radius:999px;background:rgba(255,255,255,.65);display:flex;align-items:center;overflow:hidden;user-select:none;touch-action:pan-y}
.slide-txt{position:absolute;inset:0;display:grid;place-items:center;font-weight:600;font-size:.9rem;pointer-events:none;padding-left:40px}
.slide-thumb{position:relative;z-index:1;width:48px;height:48px;margin-left:4px;border-radius:50%;border:0;background:var(--eerie);color:#fff;display:grid;place-items:center;touch-action:none;cursor:grab}
.slide-fill{position:absolute;left:0;top:0;bottom:0;background:rgba(33,33,33,.12);border-radius:999px;width:0}
.slide.done{background:var(--eerie);color:#fff}
.wbar{height:10px;border-radius:999px;background:rgba(255,255,255,.7);overflow:hidden}
.wbar i{display:block;height:100%;background:var(--eerie);border-radius:999px}
.spark{width:100%;height:auto;display:block}
/* Histórico (calendário do mês) */
.hist{background:var(--vanila);border-radius:24px;padding:16px;color:#212121;display:flex;flex-direction:column;gap:12px}
.hist .chips{flex-wrap:nowrap;overflow-x:auto}
.hist .chip{background:transparent;border-color:rgba(33,33,33,.35);color:#212121;flex:none}
.hist .chip[aria-pressed="true"]{background:#212121;color:#fff}
.hgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;text-align:center}
.hgrid .h{font-size:.72rem;color:#55561E;font-weight:600}
.hday{aspect-ratio:1;border-radius:50%;border:0;background:rgba(255,255,255,.55);color:#212121;font-weight:600;font-size:.85rem;display:grid;place-items:center;position:relative;padding:0}
.hday.out{background:transparent;border:1.5px dashed rgba(33,33,33,.3);color:transparent}
.hday.on{background:#212121;color:#fff}
.hday.today{outline:2px solid #212121;outline-offset:1px}
.hday .dots{position:absolute;bottom:3px;display:flex;gap:2px}
.hday .dots i{width:4px;height:4px;border-radius:50%}
.hist .nav{display:flex;align-items:center;justify-content:space-between}
.hist .nav button{width:34px;height:34px;border-radius:50%;border:1.5px solid #212121;background:none;color:#212121;display:grid;place-items:center}

/* ---------- Desafios ---------- */
.ch-top{display:grid;grid-template-columns:1fr 1.4fr;gap:12px}
.ch-new{border:0;border-radius:24px;background:var(--honey);color:var(--honey-ink);padding:16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:16px;text-align:left;min-height:140px}
.ch-new b{font-size:1.05rem;line-height:1.2}
.ch-join{border-radius:24px;background:var(--alice);color:var(--alice-ink);padding:16px;display:flex;flex-direction:column;gap:8px}
.ch-join .in{background:var(--surface);min-width:0}
.ch-join .btn{align-self:flex-start}
.round{width:40px;height:40px;border-radius:50%;border:0;display:grid;place-items:center;flex:none}
.round.dark{background:var(--eerie);color:#fff}.round.light{background:rgba(255,255,255,.75);color:#212121}.round.vanila{background:var(--vanila);color:#212121}
.chc{background:var(--vanila);color:#212121;border-radius:28px;padding:16px;display:flex;flex-direction:column;gap:10px}
.chc .chc-sub{color:#55561E}
.chc-name{font-size:1.5rem;line-height:1.1;color:#212121}
.chc .bar{background:rgba(33,33,33,.12)}
.ci-pill{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.8);border-radius:999px;padding:9px 14px;font-size:.85rem;font-weight:600}
.ci-pill .ic{width:16px;height:16px}
.av{width:40px;height:40px;border-radius:50%;display:inline-grid;place-items:center;font-weight:700;font-size:.85rem;color:#212121;flex:none;border:2px solid var(--surface)}
.av.sm{width:32px;height:32px;font-size:.72rem}
.av.xl{width:84px;height:84px;font-size:1.5rem;border-width:4px}
.av.av-empty{background:transparent;border:2px dashed var(--line)}
.avrow{display:flex;flex-wrap:wrap}
.avrow .av{margin-right:-6px}
/* Páginas em tela cheia */
body.pg-on{overflow:hidden}
.pg{position:fixed;inset:0;z-index:60;background:var(--bg);overflow-y:auto;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)}
.pg.pg-in{animation:pgIn .3s cubic-bezier(.2,.8,.2,1);box-shadow:-10px 0 30px rgba(0,0,0,.08)}
@keyframes pgIn{from{transform:translateX(100%)}to{transform:none}}
.pg.pg-out{animation:pgOut .24s ease-in forwards;box-shadow:-10px 0 30px rgba(0,0,0,.08);pointer-events:none}
@keyframes pgOut{from{transform:none}to{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){.pg{animation:none}}
.pg-h{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px);max-width:640px;margin:0 auto}
.pg-h>b{flex:1;text-align:center;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pg-h .link{padding:8px 10px}
.pg-b{max-width:640px;margin:0 auto;padding:8px 16px 40px}
.pg-b h1{font-size:1.7rem}
.orow{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;border:0;border-top:1px solid var(--line);background:none;text-align:left;color:inherit;min-height:52px}
.orow:first-child{border-top:0}
.orow>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.orow small{font-size:.8rem;color:var(--muted)}
.orow em{font-style:normal;color:var(--muted);font-size:.88rem;text-align:right}
.orow .ic:last-child{color:var(--muted);transform:rotate(-90deg)}
.orow input.in.flat{width:auto;max-width:55%;text-align:right;padding:4px 0}
.orow.danger{color:var(--bad)}
.orow.me{background:var(--vanila)}
.orow.me small{color:#55561E}
.in.flat{border:0;background:transparent;border-radius:0;padding:14px 16px;width:100%}
textarea.in.flat{border-top:1px solid var(--line);resize:vertical}
.optl{display:flex;flex-direction:column;background:var(--surface);border-radius:20px;overflow:hidden}
.opt{position:relative;border:0;border-top:1px solid var(--line);background:none;text-align:left;padding:14px 48px 14px 16px;display:flex;flex-direction:column;gap:2px;color:inherit}
.opt:first-child{border-top:0}
.opt span{font-size:.85rem;color:var(--muted)}
.opt-tag{font-size:.72rem!important;font-weight:700;color:var(--bad)!important;text-transform:none}
.opt-ck{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--ink)}
.opt[aria-pressed="true"]{background:var(--vanila);color:#212121}
.opt[aria-pressed="true"] span:not(.opt-tag){color:#55561E}
input.sw{appearance:none;width:46px;height:28px;border-radius:999px;background:var(--ring-light);position:relative;flex:none;cursor:pointer;transition:background .15s}
input.sw::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .15s}
input.sw:checked{background:var(--eerie)}
input.sw:checked::after{transform:translateX(18px)}
:root[data-theme="dark"] input.sw:checked{background:#EFF0A3}
.ch-banner{position:relative;border-radius:22px;overflow:visible}
.ch-banner img{display:block;width:100%;aspect-ratio:5/2;object-fit:cover;border-radius:22px}
.ch-banner-btns{position:absolute;right:10px;bottom:10px;display:flex;gap:6px}
.ch-banner-btns .chip{background:rgba(33,33,33,.75);color:#fff;border:0;display:inline-flex;align-items:center;gap:4px;padding:6px 12px;font-size:.8rem;cursor:pointer}
.ch-banner-btns .ic{width:15px;height:15px}
.ch-admin{position:absolute;left:50%;bottom:-36px;transform:translateX(-50%)}
.acc{border:1.5px solid var(--line);background:var(--surface);border-radius:18px;padding:14px;display:flex;flex-direction:column;align-items:center;gap:4px;color:inherit}
.acc small{color:var(--muted);font-size:.78rem}
.acc.on{border-color:var(--eerie);background:var(--vanila);color:#212121}
.acc.on small{color:#55561E}
.qr-card{background:var(--surface);border-radius:20px;padding:18px;display:flex;flex-direction:column;align-items:center;gap:6px}
.qr-card #qrc img,.qr-card #qrc canvas{background:#fff;padding:8px;border-radius:12px}
.ch-stats{display:grid;grid-template-columns:repeat(3,1fr);background:var(--surface);border-radius:20px;padding:12px 6px}
.ch-stats>div{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.ch-stats b{font-size:1.15rem}.ch-stats small{color:var(--muted);font-size:.74rem}
.feed-day{font-weight:700;color:var(--muted);font-size:.82rem;text-align:center;margin-top:4px}
.post{display:flex;align-items:center;gap:12px;width:100%;border:0;background:var(--surface);border-radius:20px;padding:10px;text-align:left;color:inherit}
.post img,.post-ic{width:56px;height:56px;border-radius:14px;object-fit:cover;flex:none}
.post-ic{display:grid;place-items:center;background:var(--honey);color:var(--honey-ink)}
.post-ic.big{width:120px;height:120px;border-radius:24px}
.post-t{flex:1;min-width:0;display:flex;flex-direction:column}
.post-big{width:100%;border-radius:22px;max-height:60vh;object-fit:cover}
.fab-ci{position:fixed;right:max(18px,calc(50% - 300px));bottom:calc(84px + env(safe-area-inset-bottom,0px));width:58px;height:58px;border-radius:50%;border:0;background:var(--eerie);color:#fff;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.25);z-index:3}
.fab-ci .ic{width:26px;height:26px}
.ch-tabs{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom,0px));width:min(640px,calc(100% - 24px));display:grid;grid-template-columns:repeat(3,1fr);background:var(--eerie);border-radius:999px;padding:6px;z-index:3}
.ch-tabs button{border:0;background:none;color:#fff;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.72rem;font-weight:600;padding:6px;border-radius:999px}
.ch-tabs button:hover{background:#3A3A3D}
.ci-pick{display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:0;border-radius:22px;background:var(--surface);padding:18px;cursor:pointer;color:inherit;text-align:left}
.ci-pick .ic{width:28px;height:28px}
.ci-pick small{color:var(--muted)}
.ci-top{display:flex;align-items:flex-start;gap:12px}
.ci-top img{width:140px;height:140px;object-fit:cover;border-radius:22px}
.mini-ban{width:44px;height:28px;border-radius:8px;object-fit:cover;flex:none}
.chat{display:flex;flex-direction:column;gap:12px;padding-bottom:90px}
.msg{display:flex;gap:8px;align-items:flex-end;max-width:85%}
.msg>div{background:var(--surface);border-radius:18px;padding:8px 12px;display:flex;flex-direction:column;gap:4px}
.msg img{max-width:220px;border-radius:14px}
.msg.me{align-self:flex-end}
.msg.me>div{background:var(--vanila);color:#212121}
.msg.me .muted{color:#55561E}
.chat-in{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(10px + env(safe-area-inset-bottom,0px));width:min(640px,calc(100% - 20px));display:flex;gap:6px;align-items:center;background:var(--surface);border-radius:999px;padding:6px;box-shadow:0 6px 20px rgba(0,0,0,.12);z-index:3}
.chat-in.static{position:static;transform:none;width:100%;box-shadow:none}
.chat-in .in{border:0;background:transparent;flex:1;min-width:0}
.ord{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.8em}
.banner .link{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* ===== Ajustes de 16/11: fundo branco, barra só com ícones, faixa de dias com gráfico, pastas ===== */
:root{--bg:#FFFFFF;--surface:#F4F4F8;--surface-2:#EBEAF0;--white:#FFFFFF;--lime:#E4F07A}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--white:#26262A}}
:root[data-theme="dark"]{--white:#26262A}
.hello{align-items:center;margin-bottom:14px}
.hello .bell{background:var(--surface)}
/* Barra de baixo como no rascunho: pílula preta, só ícones, ativo em círculo */
.bottomnav button>span{display:none}
@media(max-width:899px){.bottomnav{left:50%!important;right:auto!important;transform:translateX(-50%);width:min(340px,calc(100% - 32px));padding:8px 12px!important}}
.bottomnav button{padding:8px 0!important}
.bottomnav button .ic{width:24px;height:24px}
.bottomnav button[aria-current="page"] .ic{width:42px!important;height:42px!important;padding:9px!important;margin:-9px 0!important;background:var(--lime)!important}
.bottomnav .nav-dot{top:2px;margin-left:18px}
/* Dias + gráfico rolando juntos */
.hm-days{background:var(--surface);color:var(--ink);gap:8px}
.hm-days .icon-btn{background:var(--white)}
.dscroll{position:relative;padding:4px 0 2px}
.dtrack{display:flex;flex-direction:column}
.drow{display:flex}
.drow .dchip{margin:0 4px;background:var(--white)}
.drow .dchip.on{background:var(--lime);color:#212121}
.dchart{display:block}
.dchart .vl{stroke:var(--line);stroke-width:1}
.dchart .dot{fill:var(--ring-light)} .dchart .dot.on{fill:var(--ink)}
.dchart .ref{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 4;opacity:.6}
.dchart .ar{fill:#CFDECA;opacity:.6}
.dchart .ln{fill:none;stroke:#5E9C3F;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.dchart .pt{fill:#5E9C3F} .dchart .pt.on{fill:var(--lime);stroke:#212121;stroke-width:2.5}
.dchart .tag rect{fill:#5E9C3F} .dchart .tag text{fill:#fff;font:700 11px var(--body)}
/* Refeições em pastas */
.folder{display:flex;flex-direction:column}
.ftabs{display:flex;gap:6px;align-items:flex-end;overflow-x:auto;scrollbar-width:none;padding:0 2px}
.ftabs::-webkit-scrollbar{display:none}
.ftab{flex:none;height:42px;min-width:46px;padding:0 12px;border:0;border-radius:18px 18px 0 0;background:#F4F5D2;color:#55561E;font-weight:700;font-size:.82rem;display:grid;place-items:center;margin-bottom:-1px}
.ftab .ic{width:18px;height:18px}
.ftab.on{background:var(--vanila);color:#212121;font-size:.95rem;padding:0 18px;height:48px}
.ftab.done:not(.on){background:#212121;color:#E4F07A}
.ftab.skip:not(.on){opacity:.5}
.fbody{background:var(--vanila);border-radius:0 26px 26px 26px;padding:16px;display:flex;flex-direction:column;gap:12px;color:#212121}
.mc3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mc{background:var(--white);color:var(--ink);border-radius:20px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.mc b{font-size:1.25rem;font-weight:800}
.mc b small{font-size:.75rem;color:var(--muted);font-weight:600}
.mc span{font-size:.72rem;color:var(--muted);margin-bottom:6px}
.fnote{color:#55561E}
.meal-in{background:var(--white);color:var(--ink);border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:10px}
.meal-in .t{font-size:.8rem;color:var(--muted)}
/* Atividade e água lado a lado; desafio e sequência embaixo */
.bento{grid-template-columns:1fr 1fr;background:var(--surface);border-radius:28px;padding:12px;gap:10px}
.bx-act,.bx-water{grid-column:auto!important;background:var(--white);color:var(--ink);padding:12px;gap:8px}
.bx-act .slide{height:52px;background:var(--surface)}
.bx-act .slide-thumb{width:44px;height:44px}
.bx-act .slide-txt{font-size:.82rem;padding-left:44px;line-height:1.1;text-align:center}
.slide.done{background:#212121;color:#fff}
.slide-thumb.static{background:var(--lime);color:#212121;cursor:default}
.bx-water .wbar{background:var(--surface)}
.bx-water .wbar i{background:#5BA3C9}
.bx-ch{background:#212121;color:#fff;padding:14px;gap:6px}
.bx-ch .cd{background:var(--lime);color:#212121;border-radius:999px;padding:3px 10px;font-weight:800;font-size:.8rem;white-space:nowrap}
.spark-empty{padding:14px 0}
.round.lime{background:var(--lime);color:#212121}
.bx-streak{background:var(--white);color:var(--ink);gap:2px;padding:14px}
.bx-streak .round{margin-bottom:10px}
.bx-streak .big{font-size:2.5rem}
.bx-streak .big small{font-size:1rem;font-weight:700;letter-spacing:0}
/* Desafios em pastas: recolhidas ficam empilhadas; tocar expande */
.st-end{background:#6B6B73}.st-now{background:#4E8C45}.st-next{background:#2F78C4}.st-wait{background:#C98A1E}

/* ===== Ajustes de 17/11: gráfico do exemplo, pastas no novo design, água azul, desafios empilhados ===== */
/* Gráfico: barras verde-claro por dia + linha ondulada + etiqueta abaixo do ponto */
.dchart .cbar{fill:#DDEFC4}
.dchart .ln{stroke:#6BB33A;stroke-width:2.6}
.dchart .pt.on{fill:var(--white);stroke:#6BB33A;stroke-width:3}
.dchart .stem{stroke:#6BB33A;stroke-width:2}
.dchart .tag rect{fill:#6BB33A}
.dchart .dot.on{fill:#6BB33A}
/* Pastas (como o exemplo): faixa cinza com as etiquetas; a etiqueta ativa é branca e se encaixa no corpo */
.folder{filter:drop-shadow(0 10px 24px rgba(0,0,0,.09))}
.ftabs{background:var(--surface-2);border-radius:26px 26px 0 0;gap:0;padding:0;align-items:stretch}
.ftab{position:relative;height:auto;min-width:0;padding:16px 18px;margin:0;border-radius:24px 24px 0 0;background:transparent;color:var(--muted);font-weight:600;font-size:.95rem;white-space:nowrap;display:flex;align-items:center;gap:6px}
.ftab.done:not(.on){background:transparent;color:var(--muted)}
.ftab.on{background:linear-gradient(var(--ink),var(--ink)) no-repeat center bottom 8px/36% 3px,var(--white);color:var(--ink);font-weight:700;font-size:.95rem;padding:16px 22px;height:auto;z-index:1}
.ftab.on::before,.ftab.on::after{content:'';position:absolute;bottom:0;width:22px;height:22px;pointer-events:none}
.ftab.on::after{right:-22px;border-bottom-left-radius:22px;box-shadow:-11px 11px 0 var(--white)}
.ftab.on::before{left:-22px;border-bottom-right-radius:22px;box-shadow:11px 11px 0 var(--white)}
.ftab:first-child.on::before{display:none}
.fdone{width:7px;height:7px;border-radius:50%;background:#6BB33A}
.fbody{background:var(--white);color:var(--ink);border-radius:0 0 26px 26px;padding:16px}
.fbody .mc{background:var(--surface)}
.fnote{color:var(--muted)}
.fbody .meal-in{background:transparent;padding:0}
/* Água em azul, como antes */
.bx-water{background:var(--alice)!important;color:var(--alice-ink)!important}
.bx-water .wbar{background:rgba(255,255,255,.75)}
.bx-water .wbar i{background:#212121}
/* Pastas dos desafios: mesma cor, empilhadas; etiqueta com o nome e o status embaixo */

/* ===== Pastas desenhadas (17/11): a forma amarela (etiqueta + corpo) é um SVG atrás do conteúdo ===== */
[data-fshape]{position:relative;isolation:isolate}
.fshape{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}
.fshape path{fill:#EFF0A3;filter:drop-shadow(0 -3px 7px rgba(0,0,0,.13))}
/* Refeições */
.folder{filter:none}
.ftabs{background:none!important;border-radius:0;padding:0 0 0 2px;gap:0;overflow:visible;align-items:flex-end;position:relative}
.ftab,.ftab.done:not(.on){position:relative;height:46px;min-width:48px;padding:0 13px;margin-left:-10px;border-radius:16px 16px 0 0;background:var(--white);color:#55561E;font-weight:700;font-size:.85rem;box-shadow:3px -2px 9px rgba(0,0,0,.12)}
.ftab:first-child{margin-left:0}
.ftab .ic{width:18px;height:18px}
.ftab.on{background:transparent!important;box-shadow:none;color:#212121;font-size:.98rem;padding:0 22px;height:46px;margin-left:-4px;margin-right:6px}
.ftab.on+.ftab{margin-left:0}
.ftab.on::before,.ftab.on::after{display:none}
.ftab .fdone{position:absolute;top:7px;right:7px}
.fbody{position:relative;z-index:2;background:transparent!important;color:#212121;border-radius:0;padding:16px}
.fbody .mc{background:var(--white)}
.fnote{color:#55561E}
.fbody .meal-in{background:var(--white);padding:14px}
/* Desafios */
.fshape{z-index:1}
.ftab.on,.fbody{z-index:3}

/* ===== 18/11: dias finos, etiquetas clicáveis, desafios com rolagem e destaque, fotos redondas ===== */
.drow .dchip{margin:0 4px;width:34px!important;padding:9px 0 8px;border-radius:12px;gap:2px}
.drow .dchip b{font-size:.95rem}
.drow .dchip span{font-size:.62rem}
/* a faixa das etiquetas deixa o toque passar para as etiquetas (que ficam atrás da pasta amarela) */
.ftabs{pointer-events:none}
.ftab{pointer-events:auto;cursor:pointer}
/* fotos e iniciais sempre em círculo */
.av,.avatar{aspect-ratio:1;border-radius:50%!important;overflow:hidden;flex:none!important}
.av img,.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.orow>.av,.row>.av,.req-n>.av,.msg>.av{display:inline-grid!important;flex:0 0 auto!important}
.orow>.av.sm,.row>.av.sm,.msg>.av.sm{width:32px!important;height:32px!important}
/* Desafios: só a etiqueta aparece; a rolagem abre uma pasta de cada vez */
/* Pasta em destaque: vem para frente, fundo desfocado */
:root[data-theme="dark"] .ffocus{background:rgba(0,0,0,.35)}
/* Ranking das receitas */
.rpos{width:28px;text-align:left!important;color:var(--ink)!important}
.rthumb{width:44px;height:44px;flex:none;border-radius:12px;overflow:hidden}
.rthumb img,.rthumb svg{width:100%;height:100%;object-fit:cover}

/* ===== 18/11 (2): pastas dos desafios encaixadas — o corpo de cada uma continua por baixo da seguinte ===== */

/* ===== 18/11 (3): pilha de pastas do mesmo tamanho; informações só na pasta da vez ===== */

/* ===== 18/11 (4): caixas dentro da refeição com cantos arredondados; sem nome e logo do app nas abas ===== */
.meal-in .meal-f{border-radius:20px;border-top:0;padding:14px 16px}
.meal-in .recalc-bar,.meal-in .recalc-note{border-radius:16px;border-top:0;padding:10px 14px}
.meal-in .cmp-res,.meal-in .logged{border-radius:16px}
.topbar .brand,.side .brand{display:none!important}
.topbar{justify-content:flex-end}

/* ===== 18/11 (5): dia escolhido maior, branco e com borda preta; gráfico do Plano na paleta; gráfico do mês em preto e cinza ===== */
.drow .dchip.today{outline:none}
.drow .dchip.on{background:var(--white)!important;color:var(--ink)!important;outline:2px solid #212121;outline-offset:-2px;transform:scale(1.14);position:relative;z-index:1}
:root[data-theme="dark"] .drow .dchip.on{outline-color:#EFF0A3}
.drow .dchip.on span{color:var(--muted)}
.drow{padding:4px 0}
.dchart .cbar{fill:#CFDECA}
.dchart .ln{stroke:#212121}
.dchart .pt.on{fill:#EFF0A3;stroke:#212121}
.dchart .stem{stroke:#212121}
.dchart .tag rect{fill:#212121}
.dchart .dot{fill:#D8DFE9}.dchart .dot.on{fill:#212121}
:root[data-theme="dark"] .dchart .ln,:root[data-theme="dark"] .dchart .stem{stroke:#F2F2F5}
.hchart{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:12px 12px 6px;margin-top:12px;display:flex;flex-direction:column;gap:6px;color:var(--ink)}
.hchart svg{display:block}
.hchart .hb{fill:#E4E4E8}
.hchart .hl{fill:none;stroke:#212121;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hchart text{font-size:8px;fill:#8A8A90;font-family:var(--body)}
:root[data-theme="dark"] .hchart .hl{stroke:#F2F2F5} :root[data-theme="dark"] .hchart .hb{fill:#3A3A40}

/* ===== 19/11: dia escolhido fixo no centro; outros dias com 10% de transparência ===== */
.dscroll{display:flex;scroll-snap-type:x mandatory;overflow-y:hidden}
.dpad{flex:none;width:calc(50% - 21px)}
.dtrack{flex:none}
.drow .dchip{scroll-snap-align:center;opacity:.9;transition:transform .15s,opacity .15s}
.drow .dchip.on{opacity:1;transform:scale(1.28)!important;outline-width:2.5px}
.drow{padding:8px 0}

/* ===== 19/11 (2): aba Planejamento no novo esboço ===== */
.pl-daily{background:var(--surface)}
.pl-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.pl-t{background:var(--white);border-radius:18px;padding:12px 6px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:1px;border-top:4px solid var(--gc)}
.pl-t b{font-size:1.15rem;font-weight:800}
.pl-t span{font-size:.72rem;font-weight:700}
.pl-t small{font-size:.66rem;color:var(--muted)}
.pl-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;align-self:center;text-align:center;background:var(--white);border:1px solid var(--line);border-radius:999px;padding:9px 16px;font-size:.85rem;color:var(--ink)}
.pl-pill.go{background:#212121;color:#fff;border-color:#212121;font-weight:600}
.pl-pill .ic{width:16px;height:16px}
.pl-opt{display:flex;align-items:center;gap:8px}
.pl-opt>.round{width:34px;height:34px;background:var(--white)}
.pl-opt>.round:last-child .ic{transform:rotate(180deg)}
.pl-opt>.round[disabled]{opacity:.35}
.pl-opt-c{flex:1;min-width:0;background:var(--white);color:var(--ink);border-radius:20px;padding:14px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
.pl-opt-c .eyebrow{align-self:flex-start}
.pl-line{font-weight:600;font-size:.92rem}
.pl-plus{font-weight:800;color:var(--muted);line-height:1}
.pl-acts{gap:6px 14px}
.pl-go{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:1px solid var(--line);background:var(--surface);border-radius:24px;padding:16px 16px 16px 20px;font-size:1.05rem;font-weight:700;color:var(--ink);text-align:left;cursor:pointer}
.pl-go:hover{background:var(--surface-2)}
@media(max-width:380px){.pl-tiles{grid-template-columns:repeat(2,1fr)}}
.pl-tiles{grid-template-columns:repeat(4,1fr)!important;gap:6px}
.pl-t{border-top:0;padding:10px 4px;gap:2px}
.pl-t i{font-style:normal;font-weight:800;font-size:1.25rem;color:var(--gc);line-height:1.1;display:grid;place-items:center;height:26px}
.pl-t i .ic{width:22px;height:22px}
.pl-t b{font-size:1rem}
.pl-t small{font-size:.62rem;line-height:1.15}

/* ===== 19/11 (3): etiquetas das pastas — não selecionadas só com a hora; a selecionada ocupa o espaço que sobra ===== */
.ftabs{display:flex;flex-wrap:nowrap;overflow:hidden;width:100%}
.ftab,.ftab.done:not(.on){flex:0 0 52px;min-width:0;padding:0 4px;margin-left:-8px;justify-content:center;font-size:.82rem}
.ftab:first-child{margin-left:0}
.ftab.on{flex:1 1 auto!important;min-width:0;margin:0!important;padding:0 14px!important;justify-content:center}
.ftab.on+.ftab{margin-left:0}
.ftl{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ===== 19/11 (4): sombra em volta das etiquetas brancas (fundo do app também é branco) ===== */
.ftabs{overflow:visible}
.ftab:not(.on),.ftab.done:not(.on){box-shadow:0 0 0 1px rgba(33,33,33,.07),0 1px 3px rgba(33,33,33,.10),0 4px 14px rgba(33,33,33,.12)!important}
:root[data-theme="dark"] .ftab:not(.on){box-shadow:0 0 0 1px rgba(255,255,255,.08),0 4px 14px rgba(0,0,0,.5)!important}

/* ===== 19/11 (5): etiquetas brancas só com sombra (sem borda) e com corpo branco atrás da pasta da frente ===== */
.ftab:not(.on),.ftab.done:not(.on){box-shadow:0 2px 12px rgba(33,33,33,.16)!important}
:root[data-theme="dark"] .ftab:not(.on){box-shadow:0 2px 12px rgba(0,0,0,.55)!important}
.fshape path.fwhite{fill:var(--white);filter:none}
.hello-sub{font-size:.95rem;color:var(--muted);margin-top:2px}

/* ===== 19/11 (6): topo igual ao do Plano em todas as abas (sem barra superior, sininho no canto) ===== */
main{position:relative}
.main-bell{position:absolute;top:22px;right:max(16px,env(safe-area-inset-right,0px));z-index:5;background:var(--surface)}
@media(min-width:900px){.main-bell{top:38px;right:40px}}
.hello,.page-head{padding-right:52px}
.page-head h1{font-size:clamp(1.9rem,6vw,2.4rem)}
.page-head{margin-bottom:14px}
.pl-hello{margin-bottom:39px}

/* ===== 19/11 (7): aba Explorar (esboço) ===== */
.ex-search{background:var(--surface)}
.ex-out h2{margin-top:6px}
.ex-row{display:flex;gap:12px;overflow-x:auto;padding:30px 2px 8px;scrollbar-width:none;align-items:stretch}
.ex-row::-webkit-scrollbar{display:none}
.ex-card{flex:none;width:132px;border:0;border-radius:22px;background:var(--surface);color:var(--ink);padding:12px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;cursor:pointer;position:relative}
.ex-card b{font-size:.9rem;line-height:1.2}
.ex-card small{font-size:.72rem;color:var(--muted);line-height:1.2}
.ex-person{padding-top:36px}
.ex-av{position:absolute!important;top:-26px;left:50%;transform:translateX(-50%);width:56px!important;height:56px!important;font-size:1rem!important;border:3px solid var(--white)!important}
.ex-ch{width:150px;align-items:flex-start;text-align:left;padding:10px 10px 12px}
.ex-ch img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;margin-bottom:4px}
.ex-go{position:absolute;top:16px;right:16px;width:32px!important;height:32px!important}
.ex-go .ic{width:16px;height:16px}
.ex-rec{width:150px;padding-top:68px}
.ex-plate{position:absolute;top:-26px;left:50%;transform:translateX(-50%);width:92px;height:92px;border-radius:50%;overflow:hidden;box-shadow:0 6px 16px rgba(0,0,0,.12);background:var(--white)}
.ex-plate img,.ex-plate svg{width:100%;height:100%;object-fit:cover;display:block}
/* foto sem fundo: só o recipiente, do tamanho do círculo */
.ex-plate.cut{border-radius:0;overflow:visible;box-shadow:none;background:none}
.ex-plate.cut img{object-fit:contain;transform:none;filter:drop-shadow(0 6px 10px rgba(0,0,0,.14))}
.ex-rec .gchips{justify-content:center}
.ex-more{flex:none;align-self:center;width:40px;height:40px;border-radius:50%;border:0;background:var(--surface);color:var(--ink);display:grid;place-items:center;cursor:pointer}
.ex-more .ic{transform:rotate(-90deg)}
.ex-chips{display:flex;flex-wrap:wrap;gap:8px}
.ex-chips .chip{background:var(--white);border:1px solid var(--line)}
.ex-seemore{align-self:center;text-decoration:underline;text-underline-offset:4px;font-weight:600;color:var(--ink)}
.ex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:34px 12px;padding-top:30px}
.ex-grid .ex-card{width:auto}
.ex-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;align-self:stretch}
.ex-stats>div{background:var(--surface);border-radius:16px;padding:12px 6px;display:flex;flex-direction:column;gap:2px}
.ex-stats b{font-size:1.3rem}.ex-stats small{font-size:.72rem;color:var(--muted)}
#sheets .scrim{z-index:80}

/* ---------- Cartão de perfil (resumo) — 16/11 ---------- */
.pcard{position:relative;overflow:hidden;border-radius:28px;padding:22px 20px 20px;color:var(--ink,#212121);isolation:isolate;
  background:
    radial-gradient(60% 55% at 18% 20%,#EFF0A3 0%,transparent 70%),
    radial-gradient(55% 60% at 85% 30%,#D8DFE9 0%,transparent 72%),
    radial-gradient(70% 60% at 70% 95%,#E4F07A 0%,transparent 70%),
    radial-gradient(50% 50% at 10% 90%,#D8DFE9 0%,transparent 70%),
    #CFDECA;
  box-shadow:0 6px 22px rgba(33,33,33,.10)}
.pcard::before{content:"";position:absolute;inset:-20%;z-index:-1;filter:blur(30px);opacity:.75;
  background:radial-gradient(28% 38% at 62% 48%,#A9C3A0 0%,transparent 70%),radial-gradient(22% 30% at 30% 60%,#F4F6C6 0%,transparent 70%)}
.pcard::after{content:"";position:absolute;inset:0;z-index:-1;opacity:.18;mix-blend-mode:multiply;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.pcard-top{margin-bottom:12px}
.pcard .pcard-av{width:84px!important;height:84px!important;border-radius:50%!important;font-size:1.6rem!important;border:none!important;box-shadow:0 2px 10px rgba(33,33,33,.12);display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:#F8F8FF;color:#212121}
.pcard .pcard-av img{width:100%;height:100%;object-fit:cover}
.pcard .photo-pick{display:inline-block;position:relative}
.pcard-id{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pcard-id h2{font-size:1.25rem;font-weight:700;margin:0;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pcard-id span{font-size:.85rem;opacity:.7}
.pcard-act{display:flex;gap:8px;flex:0 0 auto}
.pcard-btn{height:38px;padding:0 16px;border-radius:999px;border:1.5px solid #212121;background:transparent;color:#212121;font:inherit;font-size:.85rem;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}
.pcard-btn.round{width:38px;padding:0}
.pcard-btn.on,.pcard-btn:active{background:#212121;color:#F8F8FF}
.pcard-btn .ic{width:18px;height:18px}
.pcard-st{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:22px;text-align:center}
.pcard-n{display:flex;align-items:center;justify-content:center;gap:5px}
.pcard-n .ic{width:17px;height:17px;stroke-width:2.2}
.pcard-n b{font-size:1.35rem;font-weight:600}
.pcard-st small{display:block;font-size:.7rem;line-height:1.2;opacity:.75;margin-top:4px}

/* ---------- Questionário do manual — 16/11 ---------- */
.ob-opt{font-size:.68rem;font-weight:600;letter-spacing:.02em;text-transform:none;color:var(--muted);background:var(--surface);border-radius:999px;padding:2px 8px;margin-left:6px;vertical-align:1px}
.ob textarea.in{resize:vertical;min-height:64px;font:inherit}
.tri-list{margin:8px 0 0;padding-left:20px}.tri-list li{margin:4px 0}

/* ---------- Metas em proteínas, carboidratos e gorduras — 16/11 ---------- */
.gtiles.mtiles{grid-template-columns:repeat(4,1fr)}
@media(max-width:520px){.gtiles.mtiles{grid-template-columns:repeat(2,1fr)}}
.gtiles.mtiles .gtile b{white-space:nowrap}

/* ===== Abertura: estampa de folhas e quadrados (17/11/2026) ===== */
.intro{position:fixed;inset:0;z-index:50;background:var(--bg);overflow:hidden}
.intro-tiles .it{position:absolute;display:block;opacity:0}
.intro-tiles .it.sq{border-radius:24%}
.intro-tiles .it.la{border-radius:0 50% 0 50%}
.intro-tiles .it.lb{border-radius:50% 0 50% 0}
.intro.play .it{animation:itIn .45s cubic-bezier(.3,1.4,.5,1) var(--d) both,itOut .4s ease-in var(--o) forwards}
@keyframes itIn{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}
@keyframes itOut{from{opacity:1;transform:none}to{opacity:0;transform:scale(.3)}}
.intro.static .it{display:none}
.intro-logo{position:absolute;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:6px;transition:transform .6s}
.intro-mark{width:var(--lz);height:var(--lz);border-radius:24%;background:var(--eerie);color:var(--vanila);display:grid;place-items:center;flex:none}
:root[data-theme="dark"] .intro-mark{background:#2A2A2E}
.intro-mark .ic{width:52%;height:52%}
.intro-name{font-family:var(--display);font-size:1.75rem;font-weight:800;letter-spacing:-.02em;margin-top:10px}
.intro-sub{color:var(--muted);font-size:.95rem}
.intro-name,.intro-sub{opacity:0}
.intro.play .intro-mark{animation:itIn .5s cubic-bezier(.3,1.4,.5,1) .15s both}
.intro.play .intro-name,.intro.play .intro-sub{animation:fadeUp .5s ease-out 2.35s forwards}
.intro.static .intro-name,.intro.static .intro-sub{opacity:1}
.intro.play:not(.with-panel){animation:introOut .3s ease-in 2.6s forwards}
@keyframes introOut{to{opacity:0}}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* com o painel: a logo sobe um pouco e o degradê sobe de baixo com os botões */
.intro.with-panel .intro-logo{transform:translateY(-14vh)}
.intro.play.with-panel .intro-logo{animation:logoUp .6s ease-in-out 2.3s both;transform:none}
@keyframes logoUp{from{transform:none}to{transform:translateY(-14vh)}}
.intro-panel{position:absolute;left:0;right:0;bottom:0;padding:min(22vh,180px) max(20px,env(safe-area-inset-left,0px)) max(24px,env(safe-area-inset-bottom,0px));
  display:flex;flex-direction:column;gap:12px;border-radius:32px 32px 0 0;
  background:linear-gradient(180deg,rgba(239,240,163,0) 0%,#EFF0A3 26%,#CFDECA 68%,#D8DFE9 100%)}
.intro.play .intro-panel{animation:panelUp .65s cubic-bezier(.2,.9,.3,1) 2.45s both}
@keyframes panelUp{from{transform:translateY(100%)}to{transform:none}}
.intro-hero{font-family:var(--display);font-weight:700;font-size:1.35rem;letter-spacing:-.02em;color:#212121;text-align:center;margin:0 0 6px;max-width:460px;align-self:center}
.intro-panel .slide,.intro-panel .intro-login{width:100%;max-width:460px;align-self:center}
.intro-panel .slide{background:rgba(255,255,255,.7)}
.intro-panel .slide-txt{color:#212121}
.intro-panel .intro-login{background:#212121!important;color:#fff!important}
@media (prefers-reduced-motion:reduce){.intro .it{display:none}}
/* Pastas do Perfil: três etiquetas do mesmo tamanho */
.pf-folder .ftab{flex:1 1 0;min-width:0;justify-content:center;display:flex;align-items:center}
.pf-folder .ftab.on{flex:1.25 1 0}
.pf-recs{margin:0 -16px;padding:34px 16px 4px}
/* Cadastro de receita: como cada ingrediente foi contado */
.rf-rows{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.rf-rows li{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:12px;background:var(--white)}
.rf-rows li span{font-size:.9rem}
.rf-rows li small{color:var(--muted);font-size:.78rem}
.rf-rows li.bad{background:#FBE9E7}
.rf-rows li.bad small{color:var(--bad)}
/* Perfil › Receitas: categorias em pilhas de cartões (uma abaixo da outra) */
.rstacks{display:flex;flex-direction:column;gap:14px}
.rstack{position:relative}
.rstack[data-n="2"],.rstack[data-n="3"]{padding-top:10px}
.rstack[data-n="3"]{padding-top:18px}
.rstack[data-n="2"]::before,.rstack[data-n="3"]::before,.rstack[data-n="3"]::after{content:'';position:absolute;left:5%;right:5%;top:8px;height:60px;border-radius:22px;background:var(--white);box-shadow:0 2px 10px rgba(0,0,0,.08);z-index:0}
.rstack[data-n="2"]::before{top:0}
.rstack[data-n="3"]::before{top:8px}
.rstack[data-n="3"]::after{left:10%;right:10%;top:0;opacity:.85}
.rs-front{position:relative;z-index:1;display:flex;flex-direction:column;gap:10px;width:100%;padding:14px;border:0;border-radius:22px;background:var(--white);color:#212121;text-align:left;box-shadow:0 6px 18px rgba(0,0,0,.10);transition:transform .2s}
.rs-front:active{transform:scale(.98)}
.rs-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 4px}
.rs-top b{font-family:var(--display);font-size:1.15rem;letter-spacing:-.01em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-th{flex:none;width:34px;height:34px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;overflow:hidden}
.rs-th img,.rs-th svg{width:100%;height:100%;object-fit:contain}
.rs-th.empty .ic{width:16px;height:16px;color:var(--muted)}
.rs-top .rs-th{width:38px;height:38px}
.rs-in{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:16px;background:var(--surface-2)}
.rs-k{font-weight:700;font-size:.85rem;color:#212121}
.rs-row{display:flex;align-items:center;gap:10px;font-size:.9rem;color:var(--muted);min-width:0}
.rs-row>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-row .rs-th{width:24px;height:24px;border-radius:7px;background:var(--white)}
.rs-more{color:var(--muted);font-size:.8rem}
/* pilha aberta: os cartões descem um abaixo do outro */
.rstack.open{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:24px;background:rgba(255,255,255,.55)}
.rs-head{display:flex;align-items:center;gap:8px}
.rs-title{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;border:0;background:none;padding:4px;color:#212121;text-align:left}
.rs-title b{font-family:var(--display);font-size:1.15rem}
.rs-title small{color:var(--muted);font-size:.8rem}
.round.sm{width:34px;height:34px}.round.sm .ic{width:16px;height:16px}
.rs-card{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:18px;background:var(--white);color:#212121;text-align:left;box-shadow:0 3px 10px rgba(0,0,0,.07);animation:rsDrop .32s cubic-bezier(.2,.9,.3,1) both;animation-delay:calc(var(--i)*45ms)}
.rs-card .rs-th{width:48px;height:48px;border-radius:14px}
.rs-card>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rs-card b{font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-card small{color:var(--muted);font-size:.78rem}
.rs-card>.ic:last-child{color:var(--muted);transform:rotate(-90deg);flex:none}
@keyframes rsDrop{from{opacity:0;transform:translateY(-14px) scale(.96)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.rs-card{animation:none}}
/* Explorar: autor, salvamentos e macros no cartão da receita */
.ex-rec .ex-by{margin-top:-2px}
.ex-sv{display:inline-flex;align-items:center;gap:4px;font-size:.75rem;color:var(--muted)}
.ex-sv .ic{width:13px;height:13px}
.ex-mac{display:flex;flex-wrap:nowrap;justify-content:center;gap:6px;font-size:.7rem;letter-spacing:0;color:var(--muted)}
.ex-mac span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.ex-mac .gdot{width:6px;height:6px}
/* Subpastas dentro das pastas do Perfil */
.pf-sub{display:flex;gap:4px;padding:4px;border-radius:999px;background:rgba(255,255,255,.6)}
.pf-sub button{flex:1;min-width:0;border:0;border-radius:999px;padding:9px 8px;background:none;color:#55561E;font-weight:600;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-sub button .num{opacity:.6;font-weight:500}
.pf-sub button[aria-selected="true"]{background:#212121;color:#fff}
.pf-list{display:flex;flex-direction:column;gap:8px}
.pf-folder .ftab{font-size:.8rem;padding:0 8px}
.pf-folder .ftab.on{font-size:.9rem}
.scan-box{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:18px;background:var(--surface-2)}
.scan-box .ic{width:16px;height:16px;vertical-align:-3px}
/* Questionário: listas de gostos */
.lk-sec{display:flex;flex-direction:column;gap:14px}
.lk-h{font-size:1.1rem;margin:0}
.lk{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:18px;background:var(--surface-2)}
.lk-chips{display:flex;flex-wrap:wrap;gap:8px}
.lk-chips .chip[aria-pressed="true"]{background:#212121;color:#fff;border-color:#212121}
.lk-n{font-size:.78rem;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--white);color:var(--muted)}
.lk-n.mid{background:var(--vanila);color:#55561E}
.lk-n.ok{background:var(--honey);color:#2e4a2a}
.lk-more{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;font-weight:600}
.lk-more .ic{width:15px;height:15px}
.ob-ready{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--honey);color:#2e4a2a;margin-top:12px}
.ob-ready .ic{width:28px;height:28px}
/* Criar conta: escolha do plano */
.pl-plans{display:flex;flex-direction:column;gap:12px;margin-top:8px}
.pl-h{font-size:1.25rem;margin:4px 0 6px;text-align:center}
.pl-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.pl-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:20px 14px 16px;border:2px solid var(--line);border-radius:22px;background:var(--white);color:#212121;text-align:left;min-width:0}
.pl-card.on{border-color:#212121;background:#FBFBE6;box-shadow:0 8px 22px rgba(0,0,0,.10)}
.pl-card.wide{width:100%}
.pl-radio{position:absolute;top:12px;right:12px;width:24px;height:24px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;background:var(--white)}
.pl-card.on .pl-radio{background:#212121;border-color:#212121;color:#fff}
.pl-radio .ic{width:14px;height:14px}
.pl-badge{position:absolute;top:-12px;left:12px;background:var(--vanila);color:#212121;font-size:.72rem;font-weight:800;padding:4px 10px;border-radius:999px;border:2px solid #212121;white-space:nowrap}
.pl-name{font-size:1.1rem;font-weight:800}
.pl-sub{font-size:.8rem;color:var(--muted);line-height:1.3;padding-right:22px}
.pl-sub s{opacity:.8}
.pl-price{margin-top:auto;padding-top:10px;font-family:var(--display);font-weight:800;font-size:1.45rem;letter-spacing:-.02em;white-space:nowrap}
.pl-price small{font-size:.75rem;font-weight:600;color:var(--muted);margin-left:2px}
.pl-card.wide .pl-price{font-size:1.2rem}
.pl-notes{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pl-note{display:flex;gap:8px;align-items:flex-start;padding:12px;border-radius:18px;font-size:.82rem;line-height:1.35}
.pl-note .ic{flex:none;width:16px;height:16px;margin-top:2px}
.pl-note.ok{background:var(--honey);color:#2e4a2a}
.pl-note.info{background:var(--alice,#D8DFE9);color:#2b3a52}
.pl-go{justify-content:center;gap:8px;margin-top:4px}
.pl-safe{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);margin:0}
.pl-safe .ic{width:16px;height:16px;color:#4E8C45}
.pl-legal{text-align:center;color:var(--muted);margin:0;line-height:1.4}
@media (max-width:360px){.pl-notes{grid-template-columns:1fr}.pl-price{font-size:1.25rem}}
/* planos lado a lado, com rolagem para o lado */
.pl-row{display:flex;grid-template-columns:none;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:16px 16px 8px;scroll-padding:16px;scrollbar-width:none}
.pl-row::-webkit-scrollbar{display:none}
.pl-row .pl-card{flex:0 0 calc(50% - 24px);scroll-snap-align:start;min-height:172px}
.pl-dots{display:flex;justify-content:center;gap:6px;margin-top:-2px}
.pl-dots i{width:7px;height:7px;border-radius:999px;background:var(--line);transition:width .2s,background .2s}
.pl-dots i.on{width:22px;background:#212121}
/* Resumo do desafio com metas: quadro em L (círculos em cima, gráfico de desempenho embaixo) */
.bento .bx-chg{border-bottom-left-radius:0;border-bottom-right-radius:0;position:relative}
.bento .bx-chg::after{content:'';position:absolute;right:-24px;bottom:0;width:24px;height:24px;background:radial-gradient(circle at 100% 0,transparent 23.5px,#212121 24px);z-index:1}
.bento .bx-chg~.bx-streak{margin-bottom:10px;border-bottom-left-radius:14px}
.bx-chb{grid-column:1/-1;order:5;margin-top:-10px;background:#212121;color:#fff;border-top-left-radius:0;padding:14px;gap:6px;cursor:pointer}
.bx-chb .muted{color:#B5B5BC}
.bx-chb .spark{height:74px}
.chg-row{display:flex;gap:8px;margin-top:auto;padding-top:8px}
.chg{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1;min-width:0}
.chg i{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:2px solid rgba(255,255,255,.28);color:rgba(255,255,255,.75);transition:background .3s,border-color .3s,color .3s}
.chg i .ic{width:19px;height:19px}
.chg small{font-size:.68rem;color:#B5B5BC;white-space:nowrap}
.chg.ok i{background:var(--lime);border-color:var(--lime);color:#212121}
.chg.ok small{color:#fff}

/* ---------- Atividade física: quadro maior, com treinos do dia e "Subir treino" ---------- */
.bx-act .wk-up{width:100%;margin-top:auto;padding:10px 12px;font-size:.84rem}
.bx-water .wbar{margin-top:auto}
.wk-card{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px 6px 6px;border:0;border-radius:16px;background:var(--surface);color:inherit;text-align:left;min-width:0}
.wk-card>i,.wk-card>img{flex:none;width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:var(--lime);color:#212121;object-fit:cover}
.wk-card>span{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.15}
.wk-card b{font-size:.8rem;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.wk-card small{font-size:.72rem;color:var(--muted)}
.wk-card>.ic:last-child{flex:none;width:16px;height:16px;color:var(--muted)}
.wk-opt{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border:1px solid var(--line);border-radius:20px;background:var(--white);color:inherit;text-align:left}
.wk-opt>i{flex:none;width:44px;height:44px;border-radius:50%;background:var(--lime);display:grid;place-items:center;color:#212121}
.wk-opt>span{flex:1;display:flex;flex-direction:column;gap:2px}
.wk-opt small{color:var(--muted);font-size:.8rem}
.wk-opt>.ic:last-child{color:var(--muted);transform:rotate(-90deg)}
.wk-photo{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:96px;border:1.5px dashed var(--line);border-radius:20px;color:var(--muted);font-weight:600;font-size:.88rem;cursor:pointer;position:relative;overflow:hidden}
.wk-photo.has{border:0;min-height:0}
.wk-photo img{width:100%;max-height:260px;object-fit:cover;display:block}
.wk-photo .chip{position:absolute;right:10px;bottom:10px;background:rgba(255,255,255,.92);color:#212121}
.wk-dur,.orow>.wk-dur{display:flex;flex-direction:row;align-items:center;gap:4px;color:var(--muted);font-size:.85rem;flex:none!important}
.wk-dur input{width:42px;border:0;border-bottom:1px solid var(--line);background:none;text-align:right;font:inherit;font-size:1rem;color:var(--ink);padding:2px 0}
.wk-range{width:100%;accent-color:#212121}
.wk-imp{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:16px;background:var(--vanila);color:var(--vanila-ink)}
.wk-how summary{cursor:pointer;list-style:none}
.wk-how p{margin:8px 0 0}
.orow em.soon{font-size:.72rem;font-weight:700;padding:3px 8px;border-radius:999px;background:var(--surface);color:var(--muted)}

/* ---------- Compartilhar como imagem: modelos lado a lado (fundo quadriculado = transparente) ---------- */
.sh-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sh-t{position:relative;aspect-ratio:9/16;border-radius:16px;overflow:hidden;border:2px solid transparent;padding:0;background:#3A3A3A;cursor:pointer}
.sh-t.clear{background-color:#4A4A4A;background-image:linear-gradient(45deg,#3A3A3A 25%,transparent 25%,transparent 75%,#3A3A3A 75%),linear-gradient(45deg,#3A3A3A 25%,transparent 25%,transparent 75%,#3A3A3A 75%);background-size:16px 16px;background-position:0 0,8px 8px}
.sh-t img{width:100%;height:100%;object-fit:cover;display:block}
.sh-t[aria-pressed="true"]{border-color:#212121;box-shadow:0 0 0 2px var(--lime)}
.sh-n{position:absolute;left:8px;top:8px;font-size:.68rem;font-weight:700;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.9);color:#212121}
.sh-ck{position:absolute;right:8px;top:8px;width:24px;height:24px;border-radius:50%;background:var(--lime);color:#212121;display:grid;place-items:center}
.sh-ck .ic{width:14px;height:14px}
.sh-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--surface);border:1.5px dashed var(--line);color:var(--muted);font-weight:600;font-size:.85rem}
.sh-acts{position:sticky;bottom:0;display:flex;justify-content:space-around;gap:6px;padding:12px 4px calc(12px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);margin:0 -16px}
.sh-acts button{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;color:inherit;font-size:.78rem;font-weight:600}
.sh-acts i{width:46px;height:46px;border-radius:50%;background:var(--surface);display:grid;place-items:center}

/* ---------- Grade da aba Plano: atividade alta à esquerda; água no tamanho dela; dias seguidos ao lado do desafio ---------- */
.bento.lay .bx-act{grid-column:1!important;grid-row:1/3}
.bento.lay .bx-water{grid-column:2!important;grid-row:1}
.bento.lay .bx-water .wbar{margin-top:0}
.bento.lay .bx-streak{grid-column:2;grid-row:2/4}
.bento.lay .bx-ch{grid-column:1;grid-row:3}
.bento.lay .bx-chb{grid-column:1/-1;grid-row:4}
/* topo do resumo do desafio mais compacto, para caber ao lado da contagem de dias */
.bento.lay .bx-chg{gap:3px;padding:12px}
.bento.lay .bx-chg .ch-nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.76rem}
.bento.lay .chg-row{gap:4px;padding-top:6px}
.bento.lay .chg{gap:3px}
.bento.lay .chg i{width:34px;height:34px}
.bento.lay .chg i .ic{width:16px;height:16px}
.bento.lay .chg small{font-size:.62rem}
/* treino registrado ocupa o lugar da faixa "Atividade física", com a mesma altura */
.bx-act .wk-card{height:52px;border-radius:999px;padding:4px 12px 4px 4px;gap:8px}
.bx-act .wk-card>i,.bx-act .wk-card>img{width:44px;height:44px;border-radius:50%}
.bx-act .wk-card b{display:block;white-space:nowrap;text-overflow:ellipsis;-webkit-line-clamp:unset}
.bx-act .wk-card small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bx-act .wk-card>.ic:last-child{display:none}
.bx-act .wk-card{padding-right:14px}
.bx-chb .ch-sh{width:38px;height:38px;margin:-4px -2px -4px 0}
.bx-chb .ch-sh .ic{width:18px;height:18px}

/* ---------- Clubes ---------- */
.club-card{display:flex;flex-direction:column;gap:10px;background:var(--white);border-radius:22px;padding:16px}
.club-card h3{margin:2px 0}
.club-req{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:16px;background:var(--vanila);color:var(--vanila-ink);text-align:left}
.club-req span{flex:1}
.club-req .ic:last-child{transform:rotate(-90deg)}
.club-info{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:18px;background:var(--surface)}
.club-info>.ic{flex:none;margin-top:2px}
.orow[aria-pressed="true"]{background:var(--vanila)}
/* cinco pastas no Perfil: etiquetas um pouco menores para caber sem se cobrir */
.pf-folder .ftab{font-size:.8rem;padding:0 6px;flex:1 1 auto}
.pf-folder .ftab.on{font-size:.86rem;flex:0 0 auto;padding:0 22px}
.orow .ck{display:grid;color:var(--ink)}.orow .ck .ic{transform:none!important;color:var(--ink)!important}

/* ---------- Cadastro: @ e clube ---------- */
.su-h{position:relative;display:block}
.su-h>span{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-weight:700;color:var(--muted);pointer-events:none}
.su-h .in{padding-left:32px}
.su-h-msg{display:block;margin-top:4px;font-size:.78rem;font-weight:500}
.su-h-msg.ok{color:#3F7D3A}.su-h-msg.bad{color:var(--bad)}
.su-club{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px}
.su-co{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;border:1.5px solid var(--line);border-radius:18px;background:var(--white);color:inherit;text-align:left;font:inherit}
.su-co small{font-size:.74rem;color:var(--muted);line-height:1.25;font-weight:500}
.su-co[aria-pressed="true"]{border-color:#212121;background:var(--vanila)}
div.f{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600}
div.f>small{font-weight:500}

/* ---------- Mini calendário dos desafios (aba Desafios): compacto; a seta abre todos os meses ---------- */
.chcal{display:flex;flex-direction:column;gap:8px;background:var(--white)!important;border:1px solid var(--line);padding:14px 16px}
.chcal-more{display:inline-flex;align-items:center;gap:2px;border:0;background:none;color:var(--muted);font:inherit;font-size:.82rem;padding:4px 0}
.chcal-more .ic{width:16px;height:16px;transform:rotate(180deg)}
.chcal-b{display:flex;align-items:center;gap:12px}
.chcal-l{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:0;min-width:0}
.chcal-fl{position:relative;width:52px;height:52px;display:grid;place-items:center;color:#212121;flex:none}
.chcal-fl .ic{position:absolute;inset:0;width:100%;height:100%;fill:var(--lime);stroke:#212121;stroke-width:1.2}
.chcal-fl b{position:relative;font-size:1.05rem;font-weight:800;margin-top:10px}
.chcal-fl.xl{width:76px;height:76px}.chcal-fl.xl b{font-size:1.5rem;margin-top:14px}
.chcal-n{font-size:.9rem}
.chcal-g{display:grid;grid-template-columns:repeat(7,12px);gap:6px;justify-content:end}
.chcal-g.big{grid-template-columns:repeat(7,1fr);gap:8px;justify-content:stretch;margin-top:10px}
.chcal-h{font-style:normal;font-size:.68rem;font-weight:700;color:var(--muted);text-align:center;line-height:1}
.cdot{display:block;width:12px;height:12px;border-radius:50%;background:var(--surface-2);box-sizing:border-box;font-style:normal}
.chcal-g.big .cdot{width:100%;max-width:38px;height:auto;aspect-ratio:1;justify-self:center;display:grid;place-items:center;font-size:.75rem;font-weight:600;color:var(--muted)}
.cdot.fut{background:transparent;border:1.5px solid var(--surface-2)}
.cdot.has,.cdot.has.fut{background:#ECF2AE;border-color:#ECF2AE;color:#55561E!important}
.cdot.done{background:#212121;color:#fff!important}
.cdot.today{box-shadow:0 0 0 2px var(--white),0 0 0 3.5px #212121}
.cdot.nil{background:transparent;border:0}
.chcal-top{display:flex;align-items:center;gap:14px}
.chcal-m{background:var(--white)!important;border:1px solid var(--line)}
.chcal-f{display:flex;flex-wrap:wrap;gap:6px 14px}
.chcal-f span{display:inline-flex;align-items:center;gap:6px}
.chcal-f .cdot{width:12px;height:12px}
.chcal-f .cdot.today{background:transparent;border:0}

/* ---------- Aba Desafios: Em andamento (check-ins de todos) e Todos (pastas empilhadas) ---------- */
.ch-sec{display:flex;flex-direction:column;gap:12px}
.ch-sec .post-t{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.ch-tag{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:2px 8px 2px 6px;border-radius:999px;font-size:.68rem;font-weight:700;color:#212121;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-tag .ic{width:12px;height:12px;flex:none}
.chdeck{position:relative;padding-top:16px}
.chdeck::before,.chdeck::after{content:'';position:absolute;left:50%;transform:translateX(-50%);height:60px;border-radius:24px;background:var(--white);border:1px solid var(--line);box-shadow:0 2px 6px rgba(0,0,0,.04)}
.chdeck::before{top:0;width:calc(100% - 48px)}
.chdeck::after{top:8px;width:calc(100% - 24px)}
.chd-card{position:relative;z-index:1;background:var(--white);border:1px solid var(--line);border-radius:24px;padding:14px;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.chd-top{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:none;padding:2px 4px 10px;color:inherit;font:inherit;text-align:left}
.chd-top b{font-size:1.05rem}
.chd-c{min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:var(--lime);display:grid;place-items:center;font-weight:800;font-size:.85rem}
.chd-in{background:var(--surface);border-radius:18px;padding:8px;display:flex;flex-direction:column;gap:2px}
.chd-row{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;padding:8px 6px;border-radius:12px;color:inherit;font:inherit;text-align:left}
.chd-row:active{background:var(--surface-2)}
.chd-row>i{flex:none;width:24px;height:24px;border-radius:7px;background:#212121;color:#fff;display:grid;place-items:center}
.chd-row>i .ic{width:14px;height:14px}
.chd-row>span{flex:1;min-width:0;font-size:.9rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chd-row>small{flex:none;color:var(--muted);font-size:.74rem}
.chd-more{align-self:flex-start;margin:4px 6px 2px}
.dchart .pt.past{fill:#212121}
.chd-r{display:inline-flex;align-items:center;gap:6px}
.chd-r .ic{width:18px;height:18px;transform:rotate(180deg);color:var(--muted)}
.chd-in.big{background:var(--white);border:1px solid var(--line);padding:6px}
.chd-in.big .chd-row{padding:12px 8px;border-top:1px solid var(--line);border-radius:0}
.chd-in.big .chd-row:first-child{border-top:0}

/* ---------- Perfil: dois quadrados abaixo do banner ---------- */
.pf-sq{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.pf-sqb{display:flex;flex-direction:column;align-items:flex-start;gap:4px;aspect-ratio:1/1;max-height:200px;width:100%;padding:14px;border:0;border-radius:24px;text-align:left;color:inherit;font:inherit;cursor:pointer}
.pf-sqb.plan{background:var(--honey);color:var(--honey-ink)}
.pf-sqb.club{background:var(--alice);color:var(--alice-ink)}
.pf-sqb>.row b{font-size:.95rem;line-height:1.2;padding-right:6px}
.pf-sqb .round{width:34px;height:34px;flex:none}
.pf-sqb .round .ic{width:16px;height:16px}
.pf-sqn{margin-top:auto;font-size:1.9rem;font-weight:800;line-height:1;color:#212121}
.pf-sqn small{font-size:.85rem;font-weight:700}
.pf-sqb>small{font-size:.78rem;opacity:.85}
/* ---------- Página do clube ---------- */
.club-head{display:flex;align-items:center;gap:14px}
.club-head h2{margin:0 0 2px}
.club-av{width:64px;height:64px;font-size:1.3rem}
.club-chg{display:flex;flex-direction:column;gap:8px;background:var(--white);border:1px solid var(--line);border-radius:22px;padding:14px}
.club-ntf{border:1px solid var(--line);border-radius:18px}
.club-info[role=button]{cursor:pointer}
.club-go{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px 12px 12px;border:0;border-radius:22px;background:var(--honey);color:var(--honey-ink);text-align:left;font:inherit;cursor:pointer}
.club-go .round{width:40px;height:40px;flex:none}
.club-go-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.club-go-t b{font-size:1rem}
.club-go-t small{font-size:.78rem;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.club-go>.ic:last-child{width:22px;height:22px;flex:none;transform:rotate(180deg)}
.club-info[hidden]{display:none}
.ask{gap:10px;padding-top:6px}.ask h2{margin:0}
.pl-upd{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 10px;text-align:center;font-size:.88rem}
.pl-upd>span:first-child{color:var(--ink);font-weight:600}
.pl-upd .pl-pill{align-self:auto;font-weight:700}
/* ---------- Mercado: escolha das opções de cada refeição ---------- */
.shop-pick{gap:12px}
.sp-meal{display:flex;flex-direction:column;gap:6px;padding-top:10px;border-top:1px solid var(--line)}
.sp-opt{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:14px;background:var(--white);color:inherit;font:inherit;text-align:left}
.sp-opt[aria-pressed="true"]{background:var(--vanila);border-color:transparent}
.sp-opt .box{flex:none;width:22px;height:22px;border-radius:7px;border:1.5px solid #212121;display:grid;place-items:center}
.sp-opt[aria-pressed="true"] .box{background:#212121;color:#fff}
.sp-opt .box .ic{width:14px;height:14px}
.sp-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
.sp-t b{font-size:.82rem}
.sp-t small{font-size:.76rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-x{flex:none;font-weight:800;font-size:.9rem}

/* ---------- Topo: botão + ao lado das notificações ---------- */
.main-plus{position:absolute;top:22px;right:calc(max(16px,env(safe-area-inset-right,0px)) + 48px);z-index:5;background:var(--surface)}
@media(min-width:900px){.main-plus{top:38px;right:88px}}
/* etiquetas das pastas: nome que não cabe vai para duas linhas (sem reticências) */
.ftl{white-space:normal;text-overflow:clip;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.1;text-align:center;word-break:normal}
.fp-img{width:100%;max-height:360px;object-fit:cover;border-radius:22px}
.bx-ch0 p{margin:0;line-height:1.3}

/* ---------- Plano, desempenho e evolução ---------- */
.pe-plan{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pe-t{display:flex;flex-direction:column;gap:2px;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:10px;border-top:4px solid var(--gc,var(--line))}
.pe-t.big{grid-column:1/-1;background:var(--honey);border-color:transparent;color:var(--honey-ink)}
.pe-t small{font-size:.72rem;font-weight:700;opacity:.8}
.pe-t b{font-size:1.25rem;color:#212121}.pe-t.big b{font-size:1.8rem}
.pe-t span{font-size:.72rem;color:var(--muted)}
.pe-cal{display:flex;flex-direction:column;gap:10px;background:var(--white)!important;border:1px solid var(--line)}
.pe-cal .fwd .ic{transform:rotate(180deg)}.pe-cal .icon-btn:disabled{opacity:.25}
.pe-g{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.pe-h{font-style:normal;font-size:.68rem;font-weight:700;color:var(--muted);text-align:center}
.pe-c{display:inline-grid;place-items:center;width:13px;height:13px;border-radius:50%;background:var(--lime);color:#212121;font-style:normal;flex:none}
.pe-c .ic{width:8px;height:8px;stroke-width:2.4}
.chcal-f .pe-c{width:16px;height:16px}.chcal-f .pe-c .ic{width:10px;height:10px}
.pe-tab{background:var(--white)!important;border:1px solid var(--line);overflow-x:auto}
.pe-tab table{width:100%;border-collapse:collapse;font-size:.82rem}
.pe-tab th,.pe-tab td{padding:8px 4px;text-align:left;vertical-align:top;border-top:1px solid var(--line)}
.pe-tab thead th{border-top:0;font-size:.72rem;color:var(--muted)}
.pe-tab thead th .pe-c{margin-right:4px;vertical-align:-2px}
.pe-tab tbody th{font-weight:700}.pe-tab tbody th small{display:block;font-weight:500;color:var(--muted);font-size:.68rem}
.pe-bar{display:block;height:4px;border-radius:4px;background:var(--surface-2);margin-top:4px;overflow:hidden}.pe-bar i{display:block;height:100%;background:#212121;border-radius:4px}
.pe-ch{display:flex;flex-direction:column;gap:6px;background:var(--white)!important;border:1px solid var(--line)}
.pe-plan.two{grid-template-columns:1fr 1fr;margin-top:-4px}
.pe-ch .chart text{font-size:10px}

/* calendário do desempenho: como no exemplo, o dia com meta cumprida vira círculos (sem o número) */
.pe-g{gap:6px 2px}
.pe-d{display:grid;place-items:center;aspect-ratio:1;max-height:46px}
.pe-d b{font-size:.95rem;font-weight:500}
.pe-d.fut b{color:var(--muted)}
.pe-d.today b{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;box-shadow:inset 0 0 0 2px #212121}
.pe-d.today .pe-cl{border-radius:50%;box-shadow:0 0 0 2px var(--white),0 0 0 3.5px #212121}
.pe-cl{position:relative;display:block;width:38px;height:38px}
.pe-cl .pe-c{position:absolute;border:2px solid var(--white);box-sizing:content-box}
.pe-cl.n1 .pe-c{width:34px;height:34px;left:0;top:0}
.pe-cl.n1 .pe-c .ic{width:17px;height:17px}
.pe-cl.n2 .pe-c{width:24px;height:24px}.pe-cl.n2 .pe-c .ic{width:12px;height:12px}
.pe-cl.n2 .pe-c:nth-child(1){left:0;top:0}.pe-cl.n2 .pe-c:nth-child(2){right:-2px;bottom:-2px}
.pe-cl.n3 .pe-c{width:20px;height:20px}.pe-cl.n3 .pe-c .ic{width:11px;height:11px}
.pe-cl.n3 .pe-c:nth-child(1){left:-1px;top:-1px}.pe-cl.n3 .pe-c:nth-child(2){right:-3px;top:4px}.pe-cl.n3 .pe-c:nth-child(3){left:6px;bottom:-4px}
.pe-sec{margin:0;font-size:1.25rem}
.pe-page>section{gap:10px}
.pe-page>section+section{padding-top:14px;border-top:1px solid var(--line)}
.pe-ch{padding:12px 14px!important;gap:2px!important}.pe-ch svg{display:block}

/* círculos das metas: pretos com o símbolo branco */
.pe-c{background:#212121!important;color:#fff!important}
.cstd .pe-cl .pe-c{border-color:var(--vanila)}
.pe-cl.n4 .pe-c{width:18px;height:18px}.pe-cl.n4 .pe-c .ic{width:10px;height:10px}
.pe-cl.n4 .pe-c:nth-child(1){left:-2px;top:-2px}.pe-cl.n4 .pe-c:nth-child(2){right:-4px;top:-2px}.pe-cl.n4 .pe-c:nth-child(3){left:-2px;bottom:-4px}.pe-cl.n4 .pe-c:nth-child(4){right:-4px;bottom:-4px}
.cs-leg .pe-c{width:18px;height:18px}.cs-leg .pe-c .ic{width:11px;height:11px}
.wk-opt.on{border-color:#212121;background:var(--vanila)}

/* ---------- Plano Grátis: sem as quantidades dos alimentos ---------- */
.free-bar{display:flex;align-items:center;gap:10px;width:100%;padding:10px 14px;border:0;border-radius:18px;background:var(--vanila);color:var(--vanila-ink);text-align:left;font:inherit;font-size:.82rem;cursor:pointer}
.free-bar>span{flex:1}.free-bar>.ic:last-child{transform:rotate(-90deg);flex:none}
.free-bar.in{background:var(--white);border:1px solid var(--line)}
.mp-kind{display:flex;flex-direction:column;gap:6px}
.post .plate-wrap.sm{width:56px;height:56px;flex:none}

/* ---------- Calendário (Histórico do Plano e Desempenho do Perfil): o de antes, com as metas em círculos empilhados atrás do dia ---------- */
.hcell{position:relative;display:grid;isolation:isolate}
.hcell .hday{position:relative;z-index:2;width:100%}
.hday.has{background:rgba(255,255,255,.95)}
.hday:disabled,.hist .nav button:disabled{opacity:.3}
.hleg{display:flex;flex-wrap:wrap;gap:6px 14px;opacity:.85}
.hleg span{display:inline-flex;align-items:center;gap:6px}
.hleg i{width:12px;height:12px;border-radius:50%;border:1.5px solid #212121;box-sizing:border-box}
/* mini círculos pretos das metas (seção Tudo), sobrepostos */
.hmini{position:absolute;bottom:2px;left:50%;transform:translateX(-50%);display:flex}
.hmini i,.hleg i.hmi{display:grid;place-items:center;width:13px;height:13px;border-radius:50%;background:#212121;color:#fff;border:1.5px solid var(--vanila);box-sizing:content-box}
.hmini i+i{margin-left:-5px}
.hmini .ic,.hleg i.hmi .ic{width:7px;height:7px;stroke-width:2.6}
.hleg i.hmi{width:14px;height:14px;border-color:transparent}.hleg i.hmi .ic{width:9px;height:9px}
.hgrid .hday{line-height:1}
.hday.hasm{align-content:start;padding-top:18%}
.hmini{bottom:14%}
.hmini i+i{margin-left:-7px}
/* receita marcada numa publicação */
.rec-tag{display:flex;align-items:center;gap:10px;width:100%;padding:8px 12px 8px 8px;border:1px solid var(--line);border-radius:18px;background:var(--white);color:inherit;font:inherit;text-align:left;min-width:0}
.rec-tag>span{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
.rec-tag b{font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec-tag small{font-size:.72rem;color:var(--muted)}
.rec-tag>.ic:last-child{transform:rotate(-90deg);color:var(--muted);flex:none}
.plate-wrap.xs{width:40px;height:40px;flex:none}
.post.has-rec{flex-direction:column;align-items:stretch;gap:8px}
.post-row{display:flex;align-items:center;gap:12px}
.post-row{width:100%;min-width:0}.post-row .post-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pfc-row{display:flex;flex-direction:column;gap:6px}.pfc-row+.pfc-row{padding-top:10px;border-top:1px solid var(--line)}

/* ---------- Novo registro: bioimpedância e medidas com o boneco ---------- */
.ck-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ck-in{display:flex;flex-direction:column;gap:4px;font-size:.8rem;font-weight:600}
.ck-in small{font-weight:500;color:var(--muted)}
.ck-in .in{padding:10px 12px}
.ck-med{display:flex;flex-direction:column;gap:12px}
.ck-med>small{grid-column:1/-1}
.ck-body{width:200px;max-width:70%;height:auto;align-self:center}
.ck-sil circle,.ck-sil path{fill:none;stroke:#212121;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.ck-m line{stroke:#C9483F;stroke-width:1.6;stroke-dasharray:3 2}
.ck-m circle{fill:#212121}.ck-m text{fill:#fff;font:700 8.5px var(--body)}
.ck-m.on line{stroke-width:2.6;stroke-dasharray:none}.ck-m.on circle{fill:#C9483F}
.ck-list{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.ck-in.m{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}
.ck-in.m span{display:flex;align-items:center;gap:6px;min-width:0}
.ck-in.m i{flex:none;width:18px;height:18px;border-radius:50%;background:#212121;color:#fff;font-style:normal;font-size:.66rem;display:grid;place-items:center}
.ck-in.m.on i{background:#C9483F}
.ck-in.m .in{width:64px;flex:none;text-align:right;padding:8px}
.ck-in.m span{font-size:.76rem;line-height:1.15}

/* Plano Grátis: quantidades com um borrado pequeno */
body.free .qb,body.free .qty,body.free .gchips,body.free .cmp-groups .num,body.free .stepper,body.free .mc b,body.free .fnote b,body.free .pl-t b,body.free .pf-sqn,body.free .pl-daily .pill{filter:blur(4px);user-select:none;pointer-events:none}
.unlock-btn{width:100%;margin-top:10px;background:#212121!important;color:#fff!important}
/* Planos pagos sem o questionário completo: plano todo borrado, com o aviso por cima */
.lockwrap{position:relative}
.lockblur{filter:blur(9px);pointer-events:none;user-select:none}
.lockmsg{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:20px;color:#212121}
.lockmsg b{font-size:1.05rem;max-width:260px}.lockmsg .small{max-width:260px;opacity:.8}
label.f .ob-opt{display:inline-block;width:auto;margin-left:6px;vertical-align:middle}
.fbody .lockwrap{min-height:230px}.fbody .lockmsg{padding:16px}
.club-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.club-tabs button{flex:none;padding-left:14px;padding-right:14px}.club-tabs small{font-weight:500;opacity:.7}

/* logo novo (check + folha) dentro do quadradinho escuro */
.mark .logo-ic,.intro-mark .logo-ic{width:82%!important;height:82%!important}


/* Tela de entrada: os botões têm a largura da primeira linha do texto */
.intro-box{align-self:center;width:max-content;max-width:100%;display:flex;flex-direction:column;gap:12px}
.intro-box .intro-hero{max-width:none;align-self:stretch}
.intro-panel .intro-box .slide,.intro-panel .intro-box .intro-login{width:100%;max-width:none;align-self:stretch}
/* Abertura: o desenho do logo começa menor e cresce quando só ele fica na tela */
.intro.play .intro-mark .logo-ic{transform:scale(.62);animation:logoGrow .55s cubic-bezier(.3,1.35,.5,1) 2.05s forwards}
@keyframes logoGrow{from{transform:scale(.62)}to{transform:scale(1)}}
/* número de salvamentos das receitas (no lugar das notas) */
.saves{display:inline-flex;align-items:center;gap:4px;color:var(--muted)}
.saves .ic{width:14px;height:14px}
.saves.sm{font-size:.8rem}
/* registro: aviso de valor fora da faixa */
.ck-err{display:none;font-style:normal;font-size:.72rem;color:#C0392B;grid-column:1/-1}
.ck-in.err .ck-err{display:block}
.ck-in.err input{border-color:#C0392B!important;box-shadow:0 0 0 2px rgba(192,57,43,.15)}
.ck-in.m{flex-wrap:wrap}
.ck-in.m .ck-err{width:100%;text-align:right}
.orow.sub{padding-left:26px}
/* Clube: ações rápidas e convite */
.club-acts{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.club-act{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;padding:6px 2px;font:inherit;font-size:.7rem;font-weight:600;color:var(--ink,#212121);text-align:center;cursor:pointer;line-height:1.15}
.club-act i{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--honey)}
.club-act .ic{width:20px;height:20px}
.pf-sqn.club-setup{font-size:1.05rem;line-height:1.2;font-weight:800}
/* Aba Plano: o fundo começa nas refeições, com a frase antes do plano alimentar */
.plan-panel{background:var(--surface);border-radius:28px;margin:0 -10px;padding:26px 10px 12px;display:flex;flex-direction:column;gap:20px}
.plan-panel .bento{background:none;padding:0}
.plan-intro{margin:6px 2px -4px;font-weight:700;font-size:1.05rem;color:var(--ink,#212121)}
/* páginas de ajuda: textos legais e dúvidas frequentes */
.legal .sec-t{margin:6px 0 -4px}
.legal p{margin:0;line-height:1.5}
.faq details{border-bottom:1px solid var(--line);padding:12px 16px}
.faq details:last-child{border-bottom:0}
.faq summary{font-weight:700;font-size:.92rem;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:10px}
.faq summary::after{content:'+';font-weight:400;color:var(--muted)}
.faq details[open] summary::after{content:'–'}
.faq details p{margin:8px 0 0;line-height:1.5}
.confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:300}
/* Planejamento: opções do cardápio uma embaixo da outra, cada uma num contorno branco */
.pl-opts{display:flex;flex-direction:column;gap:10px}
.pl-optc{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;background:var(--white);color:var(--ink);border-radius:20px;padding:14px 12px}
.pl-optc .eyebrow{align-self:flex-start}
/* teste: quantidade com a mesma letra dos macros */
.pl-optc .pl-line .qb{font-size:12.48px;font-weight:400;color:#6B6B73}
/* Registrar refeição: opções do plano em rolagem + quadro de receita, alimento ou foto */
.reg2{gap:12px}
.reg-head b{font-size:.95rem}
.reg-opts{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -14px;padding:2px 14px 6px;scrollbar-width:none}
.reg-opts::-webkit-scrollbar{display:none}
.reg-opt{flex:0 0 78%;max-width:280px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;background:var(--white);color:var(--ink,#212121);border:2px solid transparent;border-radius:20px;padding:12px 14px;font:inherit;cursor:pointer}
.reg-opt.on{border-color:#212121}
.reg-opt .ro-l{font-weight:600;font-size:.88rem;line-height:1.3}
.reg-opt .ro-q{font-weight:400;font-size:.78rem;color:#6B6B73}
.reg-other{cursor:default;flex-basis:62%}
.ro-btn{width:100%;display:flex;align-items:center;gap:10px;border:0;background:var(--surface-2,#F2F2F5);border-radius:14px;padding:8px 10px;font:inherit;font-weight:700;font-size:.88rem;color:inherit;cursor:pointer}
.ro-btn i{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--honey)}
.ro-btn .ic{width:16px;height:16px}
.ro-btn.on{background:#212121;color:#fff}
.reg-ask{background:var(--white);border-radius:18px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.reg-ask p{margin:0}
/* opções do registro: uma por vez, com setas dos lados */
.reg-nav{display:flex;align-items:center;gap:8px}
.reg-nav .reg-card{flex:1;min-width:0;display:flex}
.reg-nav .reg-opt{flex:1;max-width:none}
.reg-nav .round{flex:none}
.reg-nav .round.nx .ic{transform:rotate(180deg)}
.reg-nav .round:disabled{opacity:.3}
.reg-dots{display:flex;justify-content:center;gap:5px;margin-top:-4px}
.reg-dots i{width:6px;height:6px;border-radius:99px;background:var(--line)}
.reg-dots i.on{width:16px;background:#212121}
.reg-opt{position:relative}
.ro-det{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}
.reg-opt.asking .ro-det{animation:roOut .28s ease forwards;pointer-events:none}
.ro-ask{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:14px;opacity:0;animation:roIn .3s ease .22s forwards}
@keyframes roOut{to{opacity:0}}
@keyframes roIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.ro-ask .btn{width:100%;justify-content:center}
/* botões do registro: claros; ficam pretos quando tocados/selecionados */
.ro-back .btn,.ro-ask .btn{background:var(--surface-2,#F2F2F5)!important;color:#212121!important;border:0;transition:background .15s,color .15s}
.ro-back .btn:hover,.ro-back .btn:active,.ro-back .btn:focus-visible,.ro-back .btn.on,.ro-ask .btn:hover,.ro-ask .btn:active,.ro-ask .btn.on{background:#212121!important;color:#fff!important}
/* opção do registro como carta: frente com os alimentos, verso com os botões; vira e desvira com o toque */
.reg-opt.flipcard{background:none;border:0;padding:0;perspective:1000px;display:block}
.ro-inner{position:relative;width:100%;transition:transform .55s cubic-bezier(.4,.2,.2,1);transform-style:preserve-3d}
.reg-opt.flipped .ro-inner{transform:rotateY(180deg)}
.ro-face{-webkit-backface-visibility:hidden;backface-visibility:hidden;background:var(--white);border:2px solid transparent;border-radius:20px;padding:12px 14px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.ro-back{position:absolute;inset:0;transform:rotateY(180deg);justify-content:center;gap:10px;border-color:#212121}
.ro-back .btn{width:100%;justify-content:center}
@media (prefers-reduced-motion:reduce){.ro-inner{transition:none}}
.ro-back .eyebrow{position:absolute;top:12px;left:14px}
.ro-back{padding-top:34px}
/* a virada da carta funciona também no modo de demonstração (?fluxo=), que desliga as outras transições */
.reg-opt.flipcard .ro-inner{transition:transform .55s cubic-bezier(.4,.2,.2,1)!important}
/* página de baixo do registro (receitas, alimentos ou câmera): passa da metade da tela */
.sheet-tall{min-height:58vh;display:flex;flex-direction:column;gap:14px}
.sheet-tall h2{margin:0}
.cam-big{flex:1;min-height:38vh;border:2px dashed var(--line);border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:20px;cursor:pointer;background:var(--surface)}
.cam-big .ic{width:44px;height:44px}
.cam-big b{font-size:1.05rem}
.sheet-tall .recipe-row>.ic:last-child{color:var(--muted);transform:rotate(-90deg);flex:none}

/* foto da refeição: espaço com moldura e botão de câmera */
.cam-frame{position:relative;display:block;aspect-ratio:1/1;max-height:46vh;width:100%;margin:4px auto 0;border-radius:28px;overflow:hidden;cursor:pointer;
  background:radial-gradient(120% 90% at 15% 10%,var(--alice) 0%,transparent 60%),radial-gradient(110% 90% at 90% 95%,var(--honey) 0%,transparent 60%),var(--vanila)}
.cf-c{position:absolute;width:44px;height:44px;border:3px solid rgba(255,255,255,.95);border-radius:0}
.cf-c.tl{top:18px;left:18px;border-right:0;border-bottom:0;border-top-left-radius:16px}
.cf-c.tr{top:18px;right:18px;border-left:0;border-bottom:0;border-top-right-radius:16px}
.cf-c.bl{bottom:18px;left:18px;border-right:0;border-top:0;border-bottom-left-radius:16px}
.cf-c.br{bottom:18px;right:18px;border-left:0;border-top:0;border-bottom-right-radius:16px}
.cf-plate{position:absolute;inset:16%;border-radius:50%;background:rgba(255,255,255,.55);box-shadow:inset 0 0 0 14px rgba(255,255,255,.45)}
.cf-scan{position:absolute;left:12%;right:12%;height:3px;top:20%;border-radius:3px;background:linear-gradient(90deg,transparent,rgba(33,33,33,.55),transparent);animation:cfScan 2.6s ease-in-out infinite alternate}
@keyframes cfScan{from{top:20%}to{top:80%}}
.cf-btn{position:absolute;left:50%;top:50%;width:92px;height:92px;margin:-46px 0 0 -46px;border-radius:50%;background:#212121;color:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 8px rgba(255,255,255,.7),0 10px 24px rgba(0,0,0,.18);transition:transform .15s}
.cf-btn::after{content:"";position:absolute;inset:-8px;border-radius:50%;border:2px solid rgba(255,255,255,.9);animation:cfPulse 1.8s ease-out infinite}
@keyframes cfPulse{from{transform:scale(1);opacity:1}to{transform:scale(1.35);opacity:0}}
.cf-btn .ic{width:38px;height:38px;stroke:#fff}
.cam-frame:active .cf-btn{transform:scale(.94)}
.cam-cap{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;margin-top:14px;padding:0 8px}
.cam-cap b{font-size:1.15rem;line-height:1.25}

/* duas molduras de foto no cadastro de alimento e suplemento */
.cam-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}
.cam-frame.sm{border-radius:20px;max-height:none;margin:0}
.cam-frame.sm .cf-c{width:22px;height:22px;border-width:2.5px}
.cam-frame.sm .cf-c.tl,.cam-frame.sm .cf-c.tr{top:10px}.cam-frame.sm .cf-c.bl,.cam-frame.sm .cf-c.br{bottom:10px}
.cam-frame.sm .cf-c.tl,.cam-frame.sm .cf-c.bl{left:10px}.cam-frame.sm .cf-c.tr,.cam-frame.sm .cf-c.br{right:10px}
.cam-frame.sm .cf-c.tl{border-top-left-radius:10px}.cam-frame.sm .cf-c.tr{border-top-right-radius:10px}.cam-frame.sm .cf-c.bl{border-bottom-left-radius:10px}.cam-frame.sm .cf-c.br{border-bottom-right-radius:10px}
.cam-frame.sm .cf-plate{box-shadow:inset 0 0 0 8px rgba(255,255,255,.45)}
.cam-frame.sm .cf-btn{width:56px;height:56px;margin:-28px 0 0 -28px;box-shadow:0 0 0 5px rgba(255,255,255,.7),0 6px 14px rgba(0,0,0,.16)}
.cam-frame.sm .cf-btn::after{inset:-5px}
.cam-frame.sm .cf-btn .ic{width:24px;height:24px}
.cf-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cam-lab{display:block;text-align:center;font-size:.85rem;margin-top:6px;line-height:1.2}

/* cadastro de receita: foto ao lado dos botões de IA; ingredientes em linhas */
.rf-photo{display:grid;grid-template-columns:1.1fr 1fr;gap:12px;align-items:center}
.rf-photo .btn{white-space:normal;line-height:1.2;text-align:left;justify-content:flex-start}
.rf-photo .btn:disabled{opacity:.45}
.cf-svg{position:absolute;inset:8%;display:flex;align-items:center;justify-content:center}.cf-svg svg{width:100%;height:100%}
.rf-ings{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.rf-ing{display:grid;grid-template-columns:1fr 1.3fr auto;gap:6px;align-items:center}
.rf-ing .in{min-width:0}

/* a linha que escaneia e o pulso da câmera continuam mesmo no modo de demonstração */
.cf-scan{animation:cfScan 2.6s ease-in-out infinite alternate!important}
.cf-btn::after{animation:cfPulse 1.8s ease-out infinite!important}

/* metas do desafio: as do plano com recuo; meta própria abre um campo para escrever */
.ch-subgoals{margin-left:18px;border-left:2px solid var(--line)}
.ch-subgoals .orow.sub{padding-left:14px}
.orow.off{opacity:.5}
.ch-owntxt{padding:0 14px 12px 50px}
.ch-owntxt .in{width:100%}

/* modo de pontuação: descrição centralizada como o nome */
.opt-center small,.opt-center p,.opt-center span{text-align:center}
