/* ============================================================
   Insulin Secret — design system
   Branco + creme, laranja sofisticado, neutros. Sem emojis/ícones.
   ============================================================ */
:root {
  --white: #ffffff;
  --cream: #faf7f2;
  --cream-2: #f3eee6;
  --line: #e9e4dc;
  --line-2: #dcd5ca;
  --ink: #1e1b18;
  --ink-2: #4a4540;
  --muted: #8a837b;
  --accent: #c2622a;          /* laranja sofisticado */
  --accent-ink: #a9531f;
  --accent-soft: #f7ece4;
  --radius: 10px;
  --radius-s: 8px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 20px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--white); }
button { font-family: inherit; color: inherit; cursor: pointer; font-size: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3 { margin: 0; font-weight: 500; overflow-wrap: anywhere; hyphens: auto; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }

/* tipografia */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow.light { color: rgba(255,255,255,.88); }
.lead { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-top: 10px; }
.pagehead { padding: 8px 0 18px; }
.pagehead h1 { font-family: var(--serif); font-size: 30px; line-height: 1.15; letter-spacing: -.01em; margin-top: 4px; }
.sec { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 30px 0 12px; }

/* chevron / tick desenhados em CSS (sem ícones) */
.chev { display: inline-block; flex: none; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin: 0 4px; color: var(--line-2); }
.chev.l { transform: rotate(135deg); }
.tick { display: inline-block; flex: none; width: 6px; height: 11px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin: -3px 6px 0; }

/* topo */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--pad); background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .01em; color: var(--ink); }
.top small { color: var(--muted); font-size: 12px; text-align: right; }
.logo { height: 28px; }
.view { padding: 18px var(--pad) calc(96px + env(safe-area-inset-bottom)); animation: fade .2s ease; }
.pg-recipe .view { padding-top: 0; }
.pg-onboarding .view { padding: 0 0 40px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* botões */
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .01em; padding: 14px 18px; margin-top: 22px; transition: background .15s; }
.btn:active { background: var(--accent-ink); }
.btn:disabled { background: var(--line-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.textlink { display: inline-flex; align-items: center; color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.textlink .chev { color: var(--accent-ink); }
.backlink { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 0; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.backlink .chev { color: var(--ink-2); margin: 0 2px 0 4px; }
.fav { background: var(--white); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 600; letter-spacing: .02em; border-radius: 999px; padding: 7px 14px; min-height: 34px; }
.fav.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fav.block { width: 100%; min-height: 46px; border-radius: var(--radius); margin-top: 18px; font-size: 14px; }

/* fotos */
.ph-empty { display: flex; align-items: center; justify-content: center; background: var(--cream-2); color: var(--muted); font-size: 11px; text-align: center; padding: 6px; }
[class$="-img"] img, .banner img { width: 100%; height: 100%; object-fit: cover; }
[class$="-img"], .banner { overflow: hidden; background: var(--cream-2); }

/* painéis e linhas */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; overflow: hidden; }
.panel.list > * + * { border-top: 1px solid var(--line); }
.panel.accent { border-color: #ead7c9; background: var(--accent-soft); }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 12px; min-height: 76px; }
.row-img { width: 56px; height: 56px; border-radius: var(--radius-s); flex: none; }
.row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-txt small { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.row-txt b { font-weight: 500; font-size: 15px; line-height: 1.35; }

/* onboarding */
.onb-img { width: 100%; aspect-ratio: 4 / 3; }
.onb-body { padding: 24px var(--pad) 0; }
.onb-brand { margin-bottom: 14px; }
.onb h1 { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.onb .q { font-weight: 600; margin: 26px 0 12px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 15px 16px; min-height: 54px; font-size: 15px; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.opt.sel .radio { border-color: var(--accent); }
.opt.sel .radio::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--accent); }

/* HOJE */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 230px; display: flex; }
.hero-img { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,10,.08) 0%, rgba(20,15,10,.62) 100%); }
.hero-over { position: relative; z-index: 2; align-self: flex-end; padding: 20px 64px 20px 20px; color: #fff; }
.hero h1 { font-family: var(--serif); font-size: 38px; line-height: 1.05; margin: 6px 0 6px; }
.hero h1 .of { font-family: var(--sans); font-size: 15px; font-weight: 400; opacity: .85; }
.hero-title { font-size: 16px; font-weight: 500; }
.nav-arrow { position: absolute; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; }
.nav-arrow .chev { color: var(--ink); }
.nav-arrow.prev { top: 14px; left: 14px; } .nav-arrow.next { top: 14px; right: 14px; }
.nav-arrow:disabled { opacity: .35; }
.progress { margin: 20px 0 6px; }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress-row b { color: var(--ink); font-weight: 600; }
.bar { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar div { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.meals .meal { display: flex; align-items: center; gap: 14px; padding: 14px; }
.meals .meal + .meal { border-top: 1px solid var(--line); }
.meal-img { width: 64px; height: 64px; border-radius: var(--radius-s); flex: none; }
.meal-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.meal-txt small { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.meal-txt > span { font-size: 15px; line-height: 1.4; }
.meal-txt em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.notes { display: grid; gap: 12px; margin-top: 12px; }
.note-block { background: var(--cream); border-radius: var(--radius); padding: 16px 16px 16px 18px; border-left: 2px solid var(--accent); }
.note-block p:last-child { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.donebox { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 22px; padding: 15px; border: 1px solid #ead7c9; background: var(--accent-soft); border-radius: var(--radius); color: var(--accent-ink); font-weight: 600; }

/* 21 DIAS */
.phase { margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.phase-img { width: 100%; aspect-ratio: 16 / 7; }
.phase-head { padding: 18px 18px 14px; background: var(--cream); border-bottom: 1px solid var(--line); }
.phase-head .eyebrow { display: flex; justify-content: space-between; gap: 10px; }
.phase-count { color: var(--muted); letter-spacing: .06em; }
.phase-head h2 { font-family: var(--serif); font-size: 24px; margin: 4px 0 6px; }
.phase-head p.muted { font-size: 14px; line-height: 1.55; }
.dayrow { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--white); border: 0; padding: 14px 16px; min-height: 56px; text-align: left; }
.dayrow + .dayrow { border-top: 1px solid var(--line); }
.dnum { flex: none; width: 34px; font-family: var(--serif); font-size: 18px; color: var(--accent-ink); }
.dtitle { flex: 1; font-size: 15px; }
.dayrow.dn .dtitle { color: var(--muted); }

/* A MISTURA */
.howto { padding: 16px 18px; background: var(--cream); border-color: var(--line); }
.howto ul { margin: 10px 0 0; padding-left: 18px; }
.howto li { color: var(--ink-2); margin: 6px 0; font-size: 14px; }
.mixcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; background: var(--white); }
.mixcard.rec { border-color: var(--accent); }
.mix-img { width: 100%; aspect-ratio: 16 / 10; }
.mix-body { padding: 18px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
.mixcard h2 { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.mix-when { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.mixcard details { border-top: 1px solid var(--line); margin-top: 12px; }
.mixcard summary { list-style: none; cursor: pointer; padding: 14px 0 2px; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.mixcard summary::-webkit-details-marker { display: none; }
.mixcard summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin-right: 6px; }
.mixcard details[open] summary::after { transform: rotate(-135deg); }
.plain { margin: 8px 0 4px; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.plain li { margin: 6px 0; }
.mix-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* RECEITAS */
.searchbox { position: relative; }
.search { width: 100%; height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0 16px; font-size: 15px; font-family: inherit; background: var(--cream); outline: none; color: var(--ink); -webkit-appearance: none; }
.search:focus { border-color: var(--accent); background: var(--white); }
.tabs { display: flex; gap: 22px; overflow-x: auto; margin: 16px 0 6px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0 11px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; margin-bottom: -1px; }
.tab .cnt { font-size: 12px; color: var(--line-2); margin-left: 2px; }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.tab.on .cnt { color: var(--accent-ink); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; margin-top: 16px; }
.grid .empty { grid-column: 1 / -1; padding: 30px 0; }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; }
.tile-img { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-s); }
.tile-body { padding-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.tile-body b { font-weight: 500; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.tile-body small { color: var(--muted); font-size: 12px; }
.fav.on-img { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 5px 10px; min-height: 28px; border-color: transparent; background: rgba(255,255,255,.94); }
.fav.on-img.on { background: var(--accent); }

/* RECEITA */
.rhero { position: relative; margin: 0 calc(-1 * var(--pad)); }
.rhero-img { width: 100%; aspect-ratio: 4 / 3; }
.backbtn { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; }
.backbtn .chev { color: var(--ink); margin-left: 8px; }
.rbody { padding-top: 22px; }
.rtitle { font-family: var(--serif); font-size: 28px; line-height: 1.18; margin-top: 6px; }
.facts { display: flex; flex-wrap: wrap; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { flex: 1 1 0; padding: 12px 0; display: flex; flex-direction: column; gap: 1px; }
.facts > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.facts .wide { flex-basis: 100%; border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
.facts b { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.facts .wide b { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.facts small { color: var(--muted); font-size: 12px; }
.rnote { margin-top: 18px; padding: 14px 16px; background: var(--cream); border-radius: var(--radius); color: var(--ink-2); font-size: 14px; }
.ing { list-style: none; padding: 0; margin: 0; }
.ing li { padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.ing li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.steps, .tips { list-style: none; padding: 0; margin: 0; }
.steps li, .tips li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child, .tips li:last-child { border-bottom: 0; }
.sn { flex: none; width: 28px; font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--accent); }
.steps p { font-size: 15px; line-height: 1.6; color: var(--ink); }

/* MAIS */
.seg { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.seg button { flex: 1; min-height: 46px; background: var(--white); border: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--ink); color: #fff; }
.info { margin-top: 14px; padding: 16px 18px; background: var(--cream); border-radius: var(--radius); }
.info p:last-child { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.info.warn { background: var(--white); border: 1px solid var(--line); }
.info a { color: var(--accent-ink); font-weight: 600; }
.credit { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.banner { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); margin-bottom: 8px; }
.tips b { display: block; font-weight: 600; font-size: 15px; }
.tips p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }

/* lista de compras */
.check { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--white); border: 0; padding: 10px 14px 10px 10px; min-height: 64px; text-align: left; }
.chk-img { width: 46px; height: 46px; border-radius: var(--radius-s); flex: none; }
.chk-txt { flex: 1; font-size: 15px; }
.box { flex: none; position: relative; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 6px; }
.check.on .chk-txt { color: var(--muted); text-decoration: line-through; }
.check.on .chk-img { opacity: .45; }
.check.on .box { background: var(--accent); border-color: var(--accent); }
.check.on .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }

/* menu inferior — tipográfico */
.bottom { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 10; display: flex; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 0 6px env(safe-area-inset-bottom); }
.bottom a { flex: 1 1 0; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 60px; padding: 8px 2px; font-size: 12px; line-height: 1.2; font-weight: 500; color: var(--muted); letter-spacing: .01em; overflow-wrap: anywhere; }
.bottom a::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; border-radius: 2px; background: transparent; }
.bottom a.on { color: var(--accent-ink); font-weight: 600; }
.bottom a.on::before { background: var(--accent); }

@media (min-width: 420px) { :root { --pad: 24px; } .grid { gap: 26px 18px; } }
@media (max-width: 350px) { .bottom a { font-size: 11px; } .hero h1 { font-size: 32px; } }

/* ============================================================
   CAMADA "VIVA": profundidade, fotos em destaque, ritmo de cor
   ============================================================ */
:root {
  --page: #faf6f0;            /* fundo de página creme */
  --shadow: 0 1px 2px rgba(60,40,20,.05), 0 8px 24px rgba(60,40,20,.07);
  --shadow-s: 0 1px 2px rgba(60,40,20,.05), 0 4px 12px rgba(60,40,20,.05);
  --sage: #e9efe6; --sage-ink: #4f6b4a;
  --sand: #f4ece1;
}
html, body, #app { background: var(--page); }
.top { background: rgba(250,246,240,.94); }
.view > * { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.view > *:nth-child(2) { animation-delay: .04s; } .view > *:nth-child(3) { animation-delay: .08s; }
.view > *:nth-child(4) { animation-delay: .12s; } .view > *:nth-child(5) { animation-delay: .16s; }
.view > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view > * { animation: none; } }
.panel, .phase, .mixcard, .info.warn { box-shadow: var(--shadow-s); border-color: #eee6dc; }
img { transition: transform .5s ease; }
a:active img { transform: scale(1.02); }

/* saudação */
.greet { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin: 2px 0 14px; color: var(--ink); }

/* hero */
.hero { min-height: 260px; box-shadow: var(--shadow); }
.hero-bar { margin-top: 14px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.3); overflow: hidden; max-width: 240px; }
.hero-bar div { height: 100%; background: #fff; border-radius: 99px; }

/* estatísticas */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; }
.stats > div { background: var(--white); border-radius: var(--radius); padding: 14px 12px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stats b { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; color: var(--accent-ink); }
.stats b span { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 1px; }
.stats small { font-size: 11.5px; color: var(--ink-2); line-height: 1.3; overflow-wrap: anywhere; }
.stats > div:nth-child(2) { background: var(--accent-soft); }
.stats > div:nth-child(3) { background: var(--sage); } .stats > div:nth-child(3) b { color: var(--sage-ink); }

/* linha do tempo das refeições */
.timeline { position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 6px 14px 6px 14px; margin: 12px 0; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 26px; bottom: 26px; width: 1.5px; background: #ecdccf; }
.timeline .meal { display: flex; align-items: center; gap: 14px; padding: 14px 0; position: relative; }
.timeline .meal + .meal { border-top: 1px solid #f1ebe3; }
.dot { flex: none; position: relative; z-index: 1; width: 11px; height: 11px; border-radius: 50%; background: var(--white); border: 2px solid var(--accent); margin-left: 2px; }
.meal.has-ref .dot { background: var(--accent); }
.timeline .meal-img { width: 72px; height: 72px; border-radius: var(--radius-s); order: 3; }

/* card de destaque com foto */
.feature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; margin: 14px 0; box-shadow: var(--shadow); min-height: 210px; }
.feature-img { position: absolute; inset: 0; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,10,0) 35%, rgba(20,15,10,.7) 100%); }
.feature-over { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; display: flex; flex-direction: column; gap: 3px; }
.feature-over small { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.feature-over b { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.2; }
.feature-over em { font-style: normal; font-size: 13px; opacity: .9; }

/* tarefa e dica */
.note-block { display: flex; gap: 14px; background: var(--white); border-left: 0; box-shadow: var(--shadow-s); }
.note-block.alt { background: var(--sand); box-shadow: none; }
.nb-num { flex: none; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--accent); opacity: .85; }
.note-block p:last-child { margin-top: 4px; }
.panel.soft { background: var(--accent-soft); border-color: #efdccd; box-shadow: none; }

/* 21 DIAS */
.phase { border: 0; background: var(--white); }
.phase-cover { position: relative; }
.phase-img { aspect-ratio: 16 / 8; }
.phase-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,10,0) 30%, rgba(20,15,10,.62) 100%); }
.phase-cover-txt { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; color: #fff; }
.phase-cover-txt h2 { font-family: var(--serif); font-size: 26px; margin-top: 2px; }
.phase-head { background: var(--white); border-bottom: 1px solid #f1ebe3; }
.ph2 .phase-head { background: #fcf8f3; } .ph3 .phase-head { background: #f7f8f4; }
.phase-prog { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.phase-prog .bar { flex: 1; }
.phase-prog span { font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.day-img { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.ph-blank { background: var(--sand); display: block; }
.dayrow.dn .day-img { opacity: .55; }

/* MISTURA */
.howlist { list-style: none; margin: 10px 0 0; padding: 0; }
.howlist li { display: flex; gap: 12px; padding: 8px 0; }
.howlist li span { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); color: var(--accent-ink); font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid #ecd9ca; }
.howlist p { font-size: 14px; color: var(--ink-2); }
.howto { background: var(--sand); border: 0; box-shadow: none; }
.mixcard { border: 0; }
.mixcard.rec { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow); }
.mix-cover { position: relative; display: block; }
.mix-img { aspect-ratio: 16 / 9; }
.tag.on-img { position: absolute; top: 12px; left: 12px; margin: 0; background: var(--accent); color: #fff; border-color: var(--accent); }
.mix-num { position: absolute; right: 14px; bottom: 10px; font-family: var(--serif); font-size: 34px; line-height: 1; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.chips span { font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--sand); border-radius: 999px; padding: 5px 11px; }
.mix-note { margin-top: 10px; padding: 12px 14px; background: var(--sage); color: #3e523a; border-radius: var(--radius-s); font-size: 13.5px; line-height: 1.5; }

/* RECEITAS */
.search { background: var(--white); box-shadow: var(--shadow-s); border-color: #ece4d9; }
.tabs { border-bottom-color: #e8dfd3; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 10px; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 138px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; }
.mini-img { width: 138px; height: 138px; border-radius: var(--radius-s); box-shadow: var(--shadow-s); margin-bottom: 6px; }
.mini b { font-size: 13px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.mini small { font-size: 12px; color: var(--muted); }
.tile { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-s); overflow: hidden; }
.tile-media { position: relative; display: block; }
.tile-img { border-radius: 0; aspect-ratio: 4 / 4.4; }
.time-chip { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 11px; font-weight: 600; border-radius: 999px; padding: 4px 9px; }
.tile-body { padding: 10px 12px 12px; }
.grid { gap: 14px; }

/* RECEITA (detalhe) */
.pg-recipe .rbody { background: var(--white); margin: -18px calc(-1 * var(--pad)) 0; padding: 26px var(--pad) 10px; border-radius: 18px 18px 0 0; position: relative; z-index: 2; }
.pg-recipe .view { background: var(--white); }
.facts { border: 0; gap: 8px; }
.facts > div { background: var(--sand); border-radius: var(--radius-s); padding: 12px 14px; border: 0 !important; }
.facts > div + div { padding-left: 14px; }
.facts .wide { background: var(--accent-soft); padding-left: 14px !important; }
.rnote { background: var(--sage); color: #3e523a; }
.steps li { border-bottom: 0; background: var(--page); border-radius: var(--radius); padding: 14px; margin: 10px 0; }
.sn { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ing li { border-bottom-color: #f1ebe3; }

/* MAIS */
.bonus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bonus { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); min-height: 170px; }
.bonus:first-child { grid-column: 1 / -1; min-height: 190px; }
.bonus-img { position: absolute; inset: 0; }
.bonus::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,10,0) 30%, rgba(20,15,10,.7) 100%); }
.bonus-txt { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.bonus-txt small { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.bonus-txt b { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.bonus:first-child .bonus-txt b { font-size: 21px; }
.shopcard { display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 12px 14px 12px 12px; }
.shop-img { width: 64px; height: 64px; border-radius: var(--radius-s); flex: none; }
.shop-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.shop-txt b { font-weight: 600; font-size: 15px; } .shop-txt small { font-size: 12px; color: var(--muted); }
.shop-txt .bar { height: 4px; display: block; } .shop-txt .bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.info { background: var(--white); box-shadow: var(--shadow-s); }
.info.warn { background: var(--sand); box-shadow: none; }
.seg { background: var(--white); box-shadow: var(--shadow-s); border-color: #ece4d9; }
.seg button.on { background: var(--accent); }
.tips li { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 16px; margin: 10px 0; border-bottom: 0; }

/* lista de compras */
.pg-shopping .panel.list { box-shadow: var(--shadow-s); }

/* menu inferior */
.bottom { background: rgba(255,255,255,.97); box-shadow: 0 -6px 24px rgba(60,40,20,.06); border-top-color: #efe7dd; }
.bottom a.on::before { left: 30%; right: 30%; height: 3px; top: 0; }

/* onboarding */
.pg-onboarding, .pg-onboarding .view { background: var(--white); }
.opt { box-shadow: var(--shadow-s); border-color: #ece4d9; }

/* menu inferior com ícones */
.bottom a { flex-direction: column; gap: 4px; min-height: 64px; padding: 9px 2px 8px; font-size: 11px; }
.bottom a span { display: block; line-height: 1.15; }
.nav-ico { width: 23px; height: 23px; flex: none; transition: transform .2s ease; }
.nav-ico circle[r="1.3"] { fill: currentColor; }
.bottom a.on .nav-ico { stroke-width: 1.9; transform: translateY(-1px); }
.view { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.bottom a { justify-content: flex-start; padding-top: 10px; }
