/* =====================================================================================
   Nutra Sua Vida v3 — "o livro da sua história"
   Fraunces (títulos, ar editorial/gastronômico) + Jost (interface). Fundo vivo: manchas
   de cor que respiram e ornamentos do Cerrado. Cartões de largura total (sem zonas mortas).
   ===================================================================================== */
:root { --serif: 'Fraunces', 'Georgia', serif; --terra: #c4673f; --terra-s: #f8e6dc; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; font-optical-sizing: auto; }
.eyebrow { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); font-weight: 600; }
.eyebrow.center { text-align: center; }
.link { background: none; border: 0; color: var(--wine); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; font-size: .88rem; }
.icon-btn.sm { width: 34px; height: 34px; font-size: 1rem; } .icon-btn.ghost { border-color: transparent; background: transparent; } .icon-btn[disabled] { opacity: .35; }
.c-sky { background: var(--sky-s); color: var(--sky); } .c-wine { background: var(--wine-s); color: var(--wine); } .c-leaf { background: var(--leaf-s); color: var(--leaf); } .c-gold { background: var(--gold-s); color: var(--gold-d); }

/* fundo vivo */
.bg-deco { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; animation: breathe 16s ease-in-out infinite; }
.blob.b1 { width: 340px; height: 340px; background: #f6e4cc; top: -80px; right: -100px; }
.blob.b2 { width: 280px; height: 280px; background: #e8f0dc; top: 45%; left: -120px; animation-delay: -5s; }
.blob.b3 { width: 260px; height: 260px; background: #f4dede; bottom: -90px; right: -60px; animation-delay: -10s; }
@keyframes breathe { 50% { transform: translate(24px, -18px) scale(1.12); } }
.orn { position: absolute; width: 220px; opacity: .22; }
.orn.o1 { right: -40px; bottom: 70px; animation: sway 9s ease-in-out infinite; transform-origin: bottom right; }
.orn.o2 { left: -50px; top: 120px; transform: scaleX(-1) rotate(10deg); opacity: .14; }
@keyframes sway { 50% { transform: rotate(-3deg); } }
@media (min-width: 900px) { .orn { width: 340px; opacity: .3; } }

/* entrada animada em cascata */
.anim-in { animation: fadeUp .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.mini { display: inline-block; height: 6px; border-radius: 3px; background: #efe8e0; overflow: hidden; width: 64px; vertical-align: middle; }
.mini > span { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--leaf-l), var(--leaf)); border-radius: 3px; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both .2s; }
@keyframes grow { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* topo */
.topbar { background: rgba(251, 247, 242, .86); }
.topbar .mark { width: 38px; height: 38px; border: 0; background: transparent; padding: 0; }
.topbar .brand b { display: block; font-size: 1.12rem; color: var(--wine); line-height: 1; }
.topbar .brand span { display: block; font-family: var(--font); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.screen { padding: 0 16px 20px; }
.page-h { padding: 8px 2px 12px; } .page-h h1 { font-size: 2rem; margin: 2px 0 0; color: var(--ink); }

/* JORNADA: capa ilustrada + cartão do capítulo */
.hero-j { position: relative; margin: 0 -16px; height: 300px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; background: url('../img/gerado/hero-jornada.jpg') center 35% / cover no-repeat, linear-gradient(#f6e4cc, #fbf7f2); animation: kenburns 30s ease-in-out infinite alternate; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 247, 242, .96) 0%, rgba(251, 247, 242, .82) 30%, rgba(251, 247, 242, .15) 55%, rgba(251, 247, 242, 0) 72%, var(--bg) 100%); }
.hero-txt p { text-shadow: 0 1px 8px rgba(251, 247, 242, .9); }
@keyframes kenburns { to { transform: scale(1.08) translate(-10px, 6px); } }
.hero-txt { position: relative; padding: 18px 20px; } .hero-txt h1 { font-size: 2.2rem; color: var(--wine); margin: 2px 0 4px; } .hero-txt p { max-width: 260px; color: var(--ink-2); font-size: .95rem; }
.chapter-card { position: relative; margin: -86px 0 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-radius: 26px; padding: 18px 18px 14px; box-shadow: 0 18px 40px -22px rgba(94, 20, 24, .45); border: 1px solid rgba(236, 228, 220, .9); }
.cc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cc-title { font-size: 2.4rem; color: var(--wine); margin: 4px 0 2px; line-height: 1; }
.stepper-cap { display: flex; align-items: flex-start; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.stepper-cap::-webkit-scrollbar { display: none; }
.sc { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; font-size: .7rem; color: var(--ink-3); width: 64px; }
.sc .dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; background: #fff; border: 2px solid var(--line); color: var(--ink-3); transition: transform .2s; }
.sc.done .dot { background: var(--wine); border-color: var(--wine); color: #fff; }
.sc.on .dot { transform: scale(1.15); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(226, 173, 91, .25); }
.sc.on span:last-child { color: var(--wine); font-weight: 600; }
.sc.next { opacity: .55; cursor: default; }
.sc-line { flex: 1 0 14px; height: 2px; background: var(--line); margin-top: 17px; min-width: 14px; }

section.block { margin: 0 0 18px; }
.block-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.block-h h3, .block > h3 { font-size: 1.3rem; margin: 0; }
.block > h3 { margin-bottom: 10px; }
.weeknav { display: flex; align-items: center; gap: 6px; } .weeknav span { text-align: center; line-height: 1.1; } .weeknav b { display: block; font-size: .85rem; } .weeknav small { font-size: .7rem; color: var(--ink-3); }
.weekbar { display: flex; gap: 6px; margin-bottom: 12px; }
.weekbar span { flex: 1; height: 8px; border-radius: 4px; background: #ebe3da; }
.weekbar .ok { background: linear-gradient(90deg, var(--leaf-l), var(--leaf)); } .weekbar .now { background: linear-gradient(90deg, var(--gold) 50%, #ebe3da 50%); } .weekbar .miss { background: #e6c9c4; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; background: #fff; border-radius: 20px; padding: 12px 8px; margin-bottom: 12px; border: 1px solid var(--line); }
.day { display: flex; flex-direction: column; align-items: center; gap: 6px; } .day .lbl { font-size: .66rem; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.day .c { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .82rem; color: var(--ink-3); border: 2px solid var(--line); background: #fff; }
.day .c.part { border-color: var(--leaf-l); color: var(--leaf); background: var(--leaf-s); } .day .c.full { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.day.today .c { box-shadow: 0 0 0 3px rgba(136, 33, 39, .18); border-color: var(--wine); } .day.today .lbl { color: var(--wine); } .day.fut { opacity: .5; }
.goal { display: flex; align-items: stretch; background: #fff; border-radius: 20px; border: 1px solid var(--line); margin-bottom: 10px; overflow: hidden; transition: border-color .3s, background .3s; }
.goal.done { border-color: var(--leaf-l); background: linear-gradient(90deg, #fff, var(--leaf-s)); }
.g-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 0; background: none; text-align: left; cursor: pointer; }
.g-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex: none; }
.g-txt { min-width: 0; } .g-txt b { display: block; font-size: 1rem; } .g-txt small { display: block; color: var(--ink-2); font-size: .82rem; line-height: 1.3; margin: 2px 0 6px; font-style: italic; }
.g-prog { font-size: .76rem; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.g-check { width: 68px; flex: none; border: 0; border-left: 1px solid var(--line); background: #faf6f1; color: #cfc5ba; font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.g-check.on { background: var(--leaf); color: #fff; } .g-check.static { cursor: default; font-size: 1.2rem; } .g-check.static.on { background: var(--leaf-s); color: var(--leaf); }
.g-check.pop .ti { animation: popin .45s cubic-bezier(.2, 1.6, .4, 1); } @keyframes popin { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.burst { position: fixed; z-index: 300; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 7px; height: 7px; border-radius: 2px; left: -3px; top: -3px; animation: shoot .65s ease-out forwards; }
@keyframes shoot { to { transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(.3); opacity: 0; } }
.empty { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 20px; padding: 14px; border: 1px dashed #dccfc1; }
.noimg-big { width: 58px; height: 58px; border-radius: 16px; background: var(--gold-s); color: var(--gold-d); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; flex: none; }
.feature { width: 100%; border: 0; padding: 0; text-align: left; cursor: pointer; display: block; position: relative; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 16px 34px -24px rgba(43, 31, 32, .6); }
.feature .ft-img { display: block; height: 190px; background-size: cover; background-position: center; transition: transform .6s; }
.feature:hover .ft-img { transform: scale(1.04); }
.feature.big .ft-img { height: 250px; }
.feature .ft-body { display: block; padding: 14px 16px 16px; } .feature b.serif { display: block; font-size: 1.45rem; line-height: 1.12; margin: 4px 0 8px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; } .tags span { font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.tags.lg span { font-size: .85rem; padding: 6px 12px; }
.feature .go { position: absolute; right: 14px; top: 166px; width: 44px; height: 44px; border-radius: 50%; background: var(--wine); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 6px 14px -6px rgba(94, 20, 24, .8); }
.bm { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--wine); display: flex; align-items: center; justify-content: center; }
.bm.ok { color: var(--leaf); }
.noimg { display: flex !important; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--gold-d); background: linear-gradient(135deg, var(--gold-s), #f6ece0) !important; }
.mood-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mood-card .faces .face { max-width: 48px; font-size: 1.5rem; }
.quick-cta { margin-bottom: 18px; border-radius: 20px; }
.seals { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .seals::-webkit-scrollbar { display: none; }
.seal { flex: none; width: 92px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 6px; text-align: center; }
.seal .s { width: 50px; height: 50px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: #f1ebe4; color: #c9bfb4; }
.seal.got .s { background: var(--leaf); color: #fff; box-shadow: 0 4px 0 var(--leaf-d); } .seal.capitulo.got .s { background: var(--gold); box-shadow: 0 4px 0 var(--gold-d); }
.seal b { display: block; font-size: .8rem; } .seal small { font-size: .68rem; color: var(--ink-3); }
.plan-quote { display: flex; gap: 10px; background: var(--gold-s); border-radius: 16px; padding: 12px 14px; margin: 8px 0 12px; color: var(--gold-t); }
.plan-quote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.hist div { display: grid; grid-template-columns: 80px 1fr 40px; gap: 8px; align-items: center; font-size: .85rem; padding: 4px 0; } .hist .mini { width: 100%; }

/* PLANO e livro de receitas */
.opt-swipe { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.items[data-meal] { touch-action: pan-y; }
.cookbook { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.rc { position: relative; border: 0; padding: 0; background: #fff; border-radius: 20px; overflow: hidden; text-align: left; cursor: pointer; box-shadow: 0 10px 24px -20px rgba(43, 31, 32, .7); }
.rc .rc-img { display: block; aspect-ratio: 1 / 1; background-size: cover; background-position: center; }
.rc .rc-body { display: block; padding: 10px 12px 12px; } .rc b.serif { display: block; font-size: 1rem; line-height: 1.15; } .rc small { color: var(--ink-3); font-size: .74rem; }
.recipe-view { position: fixed; inset: 0; z-index: 120; background: var(--bg); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.recipe-view.in { transform: none; }
.rv-scroll { flex: 1; overflow-y: auto; }
.rv-hero { height: 46vh; min-height: 280px; max-height: 420px; background: var(--gold-s) center / cover; position: relative; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--gold-d); }
.rv-btn { position: absolute; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 1.25rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.rv-btn.l { left: 14px; } .rv-btn.r { right: 14px; color: var(--wine); }
.rv-sheet { position: relative; margin: -30px auto 0; background: var(--bg); border-radius: 30px 30px 0 0; padding: 22px 18px 110px; max-width: 720px; }
.rv-sheet h1 { font-size: 2rem; line-height: 1.08; margin: 6px 0 12px; }
.rv-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.rv-macros div { background: #fff; border-radius: 16px; padding: 10px; text-align: center; border: 1px solid var(--line); } .rv-macros b { display: block; font-size: 1.2rem; font-family: var(--serif); } .rv-macros span { font-size: .72rem; color: var(--ink-3); }
.nutri-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; } .nutri-row::-webkit-scrollbar { display: none; }
.nu { flex: none; background: var(--leaf-s); color: var(--leaf-t); border-radius: 14px; padding: 8px 12px; } .nu b { display: block; font-size: .85rem; } .nu small { font-size: .72rem; }
.ing-list { list-style: none; margin: 0; padding: 0; } .ing-list .h { font-weight: 600; color: var(--wine); margin: 12px 0 4px; }
.ing2 { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-size: .95rem; }
.ing2 .tick { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--wine-s); color: var(--wine); font-size: .95rem; transition: all .2s; }
.ing2.have .tick { background: var(--leaf); color: #fff; } .ing2.have > span:last-child { text-decoration: line-through; color: var(--ink-3); }
.rv-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(251, 247, 242, 0), var(--bg) 30%); }
.rv-bar .btn { flex: 1; }

/* stories (guias e modo cozinhar) */
.story { position: fixed; inset: 0; z-index: 140; background: #241517; color: #fff; display: flex; flex-direction: column; opacity: 0; transition: opacity .25s; user-select: none; touch-action: pan-y; }
.story.in { opacity: 1; }
.story.cook { background: linear-gradient(160deg, #5e1418, #2b1f20); }
.st-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.st-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 21, 23, .35), rgba(36, 21, 23, .55) 40%, rgba(36, 21, 23, .92)); }
.st-bars { position: relative; display: flex; gap: 4px; padding: calc(12px + env(safe-area-inset-top)) 64px 0 14px; z-index: 3; }
.st-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.st-bars .done { background: #fff; } .st-bars .now::after { content: ''; position: absolute; inset: 0; background: #fff; animation: fillbar 6s linear forwards; transform-origin: left; }
@keyframes fillbar { from { transform: scaleX(0); } }
.st-x { position: absolute; top: calc(4px + env(safe-area-inset-top)); right: 12px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.2rem; cursor: pointer; }
.st-tap { position: absolute; top: 70px; bottom: 90px; width: 40%; z-index: 2; cursor: pointer; } .st-tap.l { left: 0; } .st-tap.r { right: 0; width: 60%; }
.st-body { position: relative; z-index: 1; margin-top: auto; padding: 24px 22px 18px; max-width: 640px; animation: storyIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes storyIn { from { opacity: 0; transform: translateY(22px); } }
.story .eyebrow { color: #f3d9b0; } .story h2 { font-size: 1.9rem; color: #fff; margin: 10px 0; } .st-title { font-size: 2.6rem; line-height: 1.02; margin: 8px 0 12px; color: #fff; }
.st-big { font-size: 1.12rem; line-height: 1.5; color: #f6ece4; }
.st-list { padding-left: 0; list-style: none; } .st-list li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 1rem; }
.st-list li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.st-ic { width: 64px; height: 64px; border-radius: 20px; background: rgba(226, 173, 91, .2); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 2rem; animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(-4deg); } }
.st-num { font-size: 5rem; line-height: 1; color: var(--gold); margin: 12px 0; } .st-num small { font-size: 1.4rem; color: rgba(255, 255, 255, .5); }
.st-hint { color: rgba(255, 255, 255, .7); } .story.cook .st-body { margin-top: 14vh; max-height: 66vh; overflow-y: auto; }
.st-nav { position: relative; z-index: 3; display: flex; gap: 10px; padding: 0 18px calc(18px + env(safe-area-inset-bottom)); }
.story .btn.light { --c: rgba(255, 255, 255, .14); --d: rgba(0, 0, 0, .3); color: #fff; border-color: rgba(255, 255, 255, .25); }

/* GUIAS */
.guides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.gbook { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); border: 0; padding: 0; background: #fff; border-radius: 22px; overflow: hidden; text-align: left; cursor: pointer; box-shadow: 0 12px 28px -22px rgba(43, 31, 32, .7); min-height: 130px; }
.gbook .gb-img { background: var(--gold-s) center / cover; }
.gbook .gb-body { padding: 14px 54px 14px 14px; display: flex; flex-direction: column; justify-content: center; } .gbook b.serif { font-size: 1.2rem; line-height: 1.15; margin: 4px 0; } .gbook small { color: var(--ink-2); font-size: .82rem; }
.gbook .play { position: absolute; right: 14px; top: 50%; margin-top: -20px; width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: #fff; display: flex; align-items: center; justify-content: center; animation: pulse 2.4s infinite; }
.gbook .bm { top: 50%; margin-top: -17px; }
@media (min-width: 560px) { .guides { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .gbook { grid-template-columns: minmax(0, 1fr); } .gbook .gb-img { height: 170px; } .gbook .play, .gbook .bm { top: 140px; margin-top: 0; } }

/* COMPRAS */
.shop-h { position: relative; margin: 0 -16px 14px; padding: 18px; background: linear-gradient(90deg, rgba(251, 247, 242, .98) 45%, rgba(251, 247, 242, .3)), url('../img/gerado/guia-compras.jpg') right center / cover; border-bottom: 1px solid var(--line); }
.add-row { display: flex; gap: 8px; margin-bottom: 14px; } .add-row .btn { min-height: 46px; padding: 0 16px; }
.shop-group { background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 4px 14px 6px; margin-bottom: 12px; }
.shop-cat { display: flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-d); font-weight: 700; padding: 10px 0 4px; margin: 0; }
.shop-cat .ti { font-size: 1.2rem; } .shop-cat span { margin-left: auto; background: var(--gold-s); color: var(--gold-t); border-radius: 999px; padding: 1px 9px; font-size: .74rem; }
.shop-item:last-child { border: 0; }
.sbox { width: 32px; height: 32px; border-radius: 10px; border: 2px solid #d8cdc1; background: #fff; color: transparent; cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all .2s; }
.shop-item.done .sbox { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.shop-item .from { display: block; font-size: .72rem; color: var(--ink-3); }

/* CORPO */
.body-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; background: #fff; border-radius: 26px; border: 1px solid var(--line); padding: 14px; margin: 6px 0 12px; align-items: center; }
.body-map { width: 100%; height: auto; } .body-map .seg { cursor: pointer; stroke: #fff; stroke-width: 2.5; transition: filter .2s; }
.body-map .seg:hover { filter: brightness(1.05); } .body-map .seg.sel { stroke: var(--wine); stroke-width: 3; filter: drop-shadow(0 3px 6px rgba(136, 33, 39, .35)); }
.bs-part { background: var(--bg); border-radius: 18px; padding: 12px; margin-bottom: 8px; } .bs-part b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; margin-top: 6px; } .bs-part b.sm { font-size: 1.3rem; margin-top: 8px; } .bs-part small { color: var(--ink-3); font-size: .74rem; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .72rem; color: var(--ink-2); margin-top: 8px; } .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.big-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.bm-c { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; } .bm-c span { font-size: .74rem; color: var(--ink-3); } .bm-c b { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; } .bm-c b small { font-size: .8rem; font-family: var(--font); color: var(--ink-3); margin-left: 2px; }
.bm-c em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--ink-3); } .bm-c em.good { color: var(--leaf); } .bm-c em.bad { color: var(--danger); }
.cheer { display: flex; gap: 12px; align-items: center; background: linear-gradient(120deg, var(--leaf-s), #fff); border-radius: 20px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid #dfe9cf; }
.cheer .ti { font-size: 2rem; color: var(--leaf); } .cheer p { margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--leaf-t); }
.ind { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; }
.ind-h { display: flex; justify-content: space-between; margin-bottom: 10px; } .ind-h span { font-family: var(--serif); font-weight: 600; }
.gauge { position: relative; } .gz { height: 12px; border-radius: 6px; }
.gm { position: absolute; top: -5px; left: var(--p); width: 6px; height: 22px; border-radius: 3px; background: var(--ink); transform: translateX(-50%); box-shadow: 0 0 0 3px #fff; animation: slidein 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slidein { from { left: 0; } }
.gl { display: flex; justify-content: space-between; font-size: .7rem; color: var(--ink-3); margin-top: 6px; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.mini-c { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; } .mini-c span { font-size: .74rem; color: var(--ink-3); } .mini-c b { display: block; font-family: var(--serif); font-size: 1.6rem; } .mini-c small { font-size: .74rem; color: var(--ink-2); }
.phys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pc { aspect-ratio: 1.5; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: .72rem; color: var(--ink-3); padding: 4px; }
.pc.on { background: var(--wine); color: #fff; border-color: var(--wine); font-weight: 600; transform: scale(1.04); box-shadow: 0 10px 20px -12px rgba(94, 20, 24, .8); } .pc .ti { font-size: 1.2rem; color: var(--gold); }
.phys-ax { display: flex; justify-content: space-between; font-size: .7rem; color: var(--ink-3); margin-top: 6px; }
.chart-wrap { overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 8px; touch-action: pan-y; } .chart-wrap > svg { transform-origin: center; transition: transform .1s; }
.tab-corpo .chips, .tab-plano .chips { margin-bottom: 12px; }
@media (min-width: 600px) { .hero-j { height: 340px; border-radius: 0 0 30px 30px; } .cookbook { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story.cook .st-nav { margin-top: auto; }

/* ---------- Corpo v3.1: figura esculpida (Codex) com regiões coloridas por máscara ---------- */
.body-card2 { position: relative; overflow: hidden; background: radial-gradient(120% 70% at 50% 45%, #fffaf4 0%, #f8efe5 60%, #f3e6d8 100%); border: 1px solid var(--line); border-radius: 28px; padding: 16px 14px 14px; margin: 6px 0 12px; }
.bc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.bc-top h3 { margin: 2px 0 0; font-size: 1.2rem; }
.seg.seg-mini { margin: 0; flex: 0 0 auto; border-radius: 12px; padding: 3px; }
.seg.seg-mini button { flex: none; padding: 6px 10px; font-size: .76rem; border-radius: 9px; }
.bc-stage { position: relative; width: min(68%, 260px); margin: 6px auto 0; }
.bc-stage::before { content: ''; position: absolute; left: 14%; right: 14%; bottom: -1%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(94, 20, 24, .16), transparent); }
.fig { position: relative; aspect-ratio: 2 / 3; touch-action: manipulation; cursor: pointer; }
.fig-img { width: 100%; height: 100%; display: block; mix-blend-mode: multiply; pointer-events: none; user-select: none; -webkit-user-drag: none; animation: figIn .9s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes figIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.fz { position: absolute; inset: 0; pointer-events: none; background: var(--c); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; mix-blend-mode: multiply; opacity: calc(var(--o) * .8); transition: opacity .35s, filter .35s; animation: fzIn .7s ease backwards; animation-delay: calc(.35s + var(--i) * .09s); }
@keyframes fzIn { from { opacity: 0; } }
@keyframes fzPulse { 50% { filter: saturate(1.35) brightness(1.06); } }
.pin { position: absolute; transform: translate(-50%, -50%); z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 6px; border-radius: 999px; border: 1px solid rgba(43, 31, 32, .06); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 4px 12px rgba(94, 20, 24, .12); font: 600 .74rem/1 var(--font); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, transform .25s; animation: pinIn .45s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(.6s + var(--i) * .07s); }
.pin i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pin small { font-weight: 500; font-size: .62rem; color: var(--ink-3); margin-left: 1px; }
@keyframes pinIn { from { opacity: 0; transform: translate(-50%, -30%) scale(.7); } }
.fig[data-sel="tronco"] .fz[data-z="tronco"], .fig[data-sel="braco_dir"] .fz[data-z="braco_dir"], .fig[data-sel="braco_esq"] .fz[data-z="braco_esq"],
.fig[data-sel="perna_dir"] .fz[data-z="perna_dir"], .fig[data-sel="perna_esq"] .fz[data-z="perna_esq"] { opacity: min(.92, calc(var(--o) + .24)); animation: fzIn .7s ease backwards, fzPulse 2.6s ease-in-out 1.2s infinite; }
.fig[data-sel="tronco"] .pin[data-parte="tronco"], .fig[data-sel="braco_dir"] .pin[data-parte="braco_dir"], .fig[data-sel="braco_esq"] .pin[data-parte="braco_esq"],
.fig[data-sel="perna_dir"] .pin[data-parte="perna_dir"], .fig[data-sel="perna_esq"] .pin[data-parte="perna_esq"] { background: var(--wine); color: #fff; transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 6px 16px rgba(136, 33, 39, .35); }
.fig[data-sel] .pin[data-parte] small { transition: color .25s; }
.fig[data-sel="tronco"] .pin[data-parte="tronco"] small, .fig[data-sel="braco_dir"] .pin[data-parte="braco_dir"] small, .fig[data-sel="braco_esq"] .pin[data-parte="braco_esq"] small,
.fig[data-sel="perna_dir"] .pin[data-parte="perna_dir"] small, .fig[data-sel="perna_esq"] .pin[data-parte="perna_esq"] small { color: rgba(255, 255, 255, .75); }
.bc-panel { margin-top: 12px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px; }
.bc-panel.flash { animation: ppFlash .35s ease; }
@keyframes ppFlash { from { opacity: .3; transform: translateY(4px); } }
.pp-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pp-tag { font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, #fff); color: color-mix(in srgb, var(--c) 65%, #000); }
.pp-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.pp-vals b { font-family: var(--serif); font-size: 1.9rem; line-height: 1; font-weight: 600; }
.pp-vals b small { font-family: var(--font); font-size: .9rem; color: var(--ink-3); margin-left: 2px; font-weight: 500; }
.pp-vals span { display: block; font-size: .76rem; color: var(--ink-3); margin-top: 4px; }
.pp-vals em { font-style: normal; font-weight: 700; margin-left: 4px; }
.pp-vals em.good { color: var(--leaf); } .pp-vals em.bad { color: #b4553f; }
.legend.center { justify-content: center; margin-top: 10px; }
.bc-hint { margin: 10px 0 0; }

/* importação do GMON (painel) */
.gmon-resumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gmon-resumo div { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.gmon-resumo b { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.gmon-resumo span { font-size: .74rem; color: var(--ink-3); }
@media (max-width: 640px) { .gmon-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* painel: agenda */
.ag-ped { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ag-ped:last-child { border-bottom: 0; }
.ag-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-form input { width: auto; min-height: 40px; padding: 6px 10px; }
.ag-dia { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ag-data { width: 64px; flex: none; text-align: center; background: var(--wine-s); color: var(--wine); border-radius: 14px; padding: 8px 4px; }
.ag-data b { display: block; font-size: 1.05rem; } .ag-data span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.ag-item { display: flex; align-items: center; gap: 12px; padding: 4px 0; flex-wrap: wrap; }
.ag-hora { font-weight: 700; min-width: 48px; color: var(--ink-2); }
.ag-ped > .grow { flex: 1 1 240px; min-width: 200px; }
.ag-ped .linkish, .ag-item .linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--wine); cursor: pointer; text-align: left; }
