/* Apolo · design system no padrão iOS 26 (Human Interface Guidelines e app Saúde).
   Cores, tipos e medidas: valores oficiais da Apple. Claro e escuro acompanham o aparelho. */
:root {
  color-scheme: light dark;
  /* fundos agrupados (Ajustes, Saúde) */
  --bg: #f2f2f7; --bg2: #fff; --bg3: #f2f2f7;
  --label: #000; --label2: rgba(60,60,67,.6); --label3: rgba(60,60,67,.3); --label4: rgba(60,60,67,.18);
  --sep: rgba(60,60,67,.29);
  --fill: rgba(120,120,128,.2); --fill2: rgba(120,120,128,.16); --fill3: rgba(120,120,128,.12); --fill4: rgba(120,120,128,.08);
  /* cores de sistema iOS 26 */
  --red: #ff383c; --orange: #ff8d28; --yellow: #ffcc00; --green: #34c759; --mint: #00c8b3; --teal: #00c3d0;
  --cyan: #00c0e8; --blue: #0088ff; --indigo: #6155f5; --purple: #cb30e0; --pink: #ff2d55; --brown: #ac7f5e; --gray: #8e8e93;
  --tint: var(--blue);
  /* categorias do Saúde */
  --c-activity: var(--orange); --c-heart: var(--red); --c-sleep: var(--indigo); --c-food: var(--green);
  --c-body: var(--purple); --c-resp: var(--cyan); --c-train: var(--orange); --c-friends: var(--blue);
  /* macros (as mesmas cores que o Lucas já conhece) */
  --p: var(--orange); --c: var(--teal); --f: var(--purple);
  --glass: rgba(255,255,255,.62); --glass-line: rgba(255,255,255,.55); --glass-shadow: 0 8px 32px rgba(0,0,0,.12);
  --card-shadow: none;
  --r-card: 22px; --r-row: 22px; --r-btn: 999px; --r-field: 12px;
  --ease: cubic-bezier(.23, 1, .32, 1); --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, "Inter", "Segoe UI", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --bg2: #1c1c1e; --bg3: #2c2c2e;
    --label: #fff; --label2: rgba(235,235,245,.6); --label3: rgba(235,235,245,.3); --label4: rgba(235,235,245,.16);
    --sep: rgba(84,84,88,.6);
    --fill: rgba(120,120,128,.36); --fill2: rgba(120,120,128,.32); --fill3: rgba(120,120,128,.24); --fill4: rgba(120,120,128,.18);
    --red: #ff4245; --orange: #ff9230; --yellow: #ffd600; --green: #30d158; --mint: #00dac3; --teal: #00d2e0;
    --cyan: #3cd3fe; --blue: #0091ff; --indigo: #6d7cff; --purple: #db34f2; --pink: #ff375f; --brown: #b78a66;
    --glass: rgba(44,44,48,.6); --glass-line: rgba(255,255,255,.12); --glass-shadow: 0 8px 32px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--label);
  font: 400 17px/22px var(--font); letter-spacing: -.43px;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 55%, transparent); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.l2 { color: var(--label2); } .l3 { color: var(--label3); }
.tint { color: var(--tint); }
.up { color: var(--green); } .down { color: var(--red); }

/* ---------- Tipografia (Dynamic Type, tamanho Grande) ---------- */
.t-large { font: 700 34px/41px var(--font-d); letter-spacing: .4px; }
.t-title1 { font: 700 28px/34px var(--font-d); letter-spacing: .38px; }
.t-title2 { font: 700 22px/28px var(--font-d); letter-spacing: -.26px; }
.t-title3 { font: 600 20px/25px var(--font-d); letter-spacing: -.45px; }
.t-head { font: 600 17px/22px var(--font); letter-spacing: -.43px; }
.t-body { font: 400 17px/22px var(--font); letter-spacing: -.43px; }
.t-callout { font: 400 16px/21px var(--font); letter-spacing: -.31px; }
.t-sub { font: 400 15px/20px var(--font); letter-spacing: -.23px; }
.t-foot { font: 400 13px/18px var(--font); letter-spacing: -.08px; }
.t-cap { font: 400 12px/16px var(--font); letter-spacing: 0; }

/* ---------- Estrutura ---------- */
.shell { min-height: 100dvh; }
.main { max-width: 720px; margin: 0 auto; padding: 0 16px calc(110px + var(--safe-b)); }
/* barra de navegação: título grande que encolhe ao rolar */
.navbar { position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: calc(var(--safe-t) + 6px) 16px 6px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: calc(var(--safe-t) + 52px);
  transition: background .25s, box-shadow .25s; }
.navbar .small { grid-column: 2; font: 600 17px/22px var(--font); letter-spacing: -.43px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease); white-space: nowrap; }
.navbar .lead, .navbar .trail { display: flex; gap: 10px; align-items: center; }
.navbar .trail { justify-content: flex-end; grid-column: 3; }
.navbar.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 .5px 0 var(--sep); }
.navbar.scrolled .small, .navbar.always .small { opacity: 1; transform: none; }
.largetitle { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; }
.largetitle h1 { font: 700 34px/41px var(--font-d); letter-spacing: .4px; }

/* botão circular de vidro (voltar, fechar, adicionar) */
.gbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--label);
  background: var(--glass); border: .5px solid var(--glass-line); box-shadow: 0 2px 12px rgba(0,0,0,.08);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); transition: transform .16s var(--ease); }
.gbtn:active { transform: scale(.92); }
.gbtn svg { width: 20px; height: 20px; }
.gbtn.tinted { background: var(--tint); color: #fff; border-color: transparent; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 600 17px/1 var(--round); color: #fff;
  background: linear-gradient(180deg, #a5a5aa, #86868b); transition: transform .16s var(--ease); }
.avatar:active { transform: scale(.92); }

/* barra de abas flutuante de vidro (iOS 26) */
.tabbar { position: fixed; z-index: 30; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%);
  width: min(calc(100% - 40px), 470px); display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px; border-radius: 999px;
  background: var(--glass); border: .5px solid var(--glass-line); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
.tab { position: relative; display: grid; justify-items: center; gap: 1px; padding: 7px 0 6px; border-radius: 999px; color: var(--label);
  font: 500 10px/12px var(--font); letter-spacing: .1px; transition: color .2s, background .25s var(--ease), transform .14s var(--ease); }
.tab svg { width: 26px; height: 26px; }
.tab .on { display: none; } .tab[aria-current="page"] .on { display: block; } .tab[aria-current="page"] .off { display: none; }
.tab[aria-current="page"] { color: var(--tint); background: var(--fill3); }
.tab:active { transform: scale(.94); }
.tab .badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 600 12px/17px var(--font); }
.brand { display: none; }

/* ---------- Cartões no estilo Resumo do Saúde ---------- */
.section-h { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 4px 10px; }
.section-h h2 { font: 700 22px/28px var(--font-d); letter-spacing: -.26px; }
.section-h button, .section-h a { font: 400 17px/22px var(--font); color: var(--tint); }
.card { display: block; width: 100%; text-align: left; background: var(--bg2); border-radius: var(--r-card); padding: 14px 16px 16px; box-shadow: var(--card-shadow); }
button.card, .card.tap { transition: transform .16s var(--ease), background .2s; }
button.card:active, .card.tap:active { transform: scale(.985); background: color-mix(in srgb, var(--bg2) 92%, var(--label)); }
.card + .card, .grid2 + .card, .card + .grid2, .grid2 + .grid2 { margin-top: 10px; }
.cat { display: flex; align-items: center; gap: 6px; font: 600 15px/20px var(--font); letter-spacing: -.23px; }
.cat svg { width: 17px; height: 17px; flex: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-top .when { display: flex; align-items: center; gap: 4px; font: 400 15px/20px var(--font); color: var(--label2); white-space: nowrap; }
.card-top .when svg { width: 13px; height: 13px; color: var(--label3); }
.card-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.big { font: 700 28px/32px var(--font-d); letter-spacing: .2px; font-variant-numeric: tabular-nums; }
.big small, .unit { font: 600 15px/20px var(--font); color: var(--label2); letter-spacing: -.23px; margin-left: 2px; }
.big.lg { font-size: 34px; line-height: 40px; }
.sub2 { font: 400 15px/20px var(--font); color: var(--label2); letter-spacing: -.23px; margin-top: 2px; }
.mini { width: 112px; height: 44px; flex: none; overflow: visible; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid2 .cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid2 .cat { min-width: 0; }
.grid2 .card { margin: 0; }
.grid2 .mini { width: 100%; height: 38px; margin-top: 10px; }
.grid2 .card-body { display: block; margin-top: 10px; }

/* destaque (Highlights) */
.hl h3 { font: 600 17px/22px var(--font); letter-spacing: -.43px; margin-top: 8px; }
.hl p { font: 400 15px/20px var(--font); color: var(--label2); letter-spacing: -.23px; margin-top: 4px; }

/* ---------- Listas agrupadas (Ajustes) ---------- */
.list { background: var(--bg2); border-radius: var(--r-row); overflow: hidden; }
.list + .list, .card + .list, .list + .card { margin-top: 10px; }
.list-h { font: 400 15px/20px var(--font); color: var(--label2); letter-spacing: -.23px; padding: 18px 16px 7px; display: flex; justify-content: space-between; }
.list-f { font: 400 13px/18px var(--font); color: var(--label2); letter-spacing: -.08px; padding: 7px 16px 0; }
.li { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 11px 16px; text-align: left; background: none; }
.li + .li::before { content: ""; position: absolute; top: 0; right: 0; left: var(--inset, 16px); height: .5px; background: var(--sep); }
.li.ic { --inset: 60px; }
button.li { transition: background .15s; }
button.li:active { background: var(--fill4); }
.li .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.li .ico svg { width: 19px; height: 19px; }
.li .tx { flex: 1; min-width: 0; }
.li .tx b { display: block; font: 400 17px/22px var(--font); letter-spacing: -.43px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .tx span { display: block; font: 400 13px/18px var(--font); color: var(--label2); letter-spacing: -.08px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .val { font: 400 17px/22px var(--font); color: var(--label2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.li .chev { width: 14px; height: 14px; color: var(--label3); flex: none; }
.li.add { color: var(--tint); }
.li.add svg { width: 22px; height: 22px; }
.li.danger { color: var(--red); justify-content: center; }
.li .del { width: 36px; height: 36px; margin-right: -8px; border-radius: 50%; display: grid; place-items: center; color: var(--label3); transition: background .15s, color .15s; }
.li .del:active { background: var(--fill3); color: var(--red); }
.li .del svg { width: 19px; height: 19px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: var(--r-btn);
  background: var(--tint); color: #fff; font: 600 17px/22px var(--font); letter-spacing: -.43px; transition: transform .16s var(--ease), opacity .2s, filter .2s; }
.btn:active { transform: scale(.97); filter: brightness(.92); }
.btn.block { width: 100%; }
.btn.gray { background: var(--fill2); color: var(--tint); }
.btn.gray.neutral { color: var(--label); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 15px; letter-spacing: -.23px; }
.btn.green { background: var(--green); }
.btn.plain { background: none; color: var(--tint); padding: 0 4px; min-height: 44px; font-weight: 400; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }

/* controle segmentado em cápsula */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 999px; background: var(--fill3); position: relative; }
.seg button { position: relative; height: 32px; border-radius: 999px; font: 500 14px/18px var(--font); letter-spacing: -.15px; color: var(--label); transition: background .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: var(--bg2); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.04); font-weight: 600; }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed="true"] { background: #636366; } }

/* ---------- Corpo (o "Jarvis") ---------- */
.hero { position: relative; height: min(64vh, 620px); border-radius: var(--r-card); background: #000; overflow: hidden; color: #fff; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.hero canvas:active { cursor: grabbing; }
.hud { position: absolute; pointer-events: none; }
.hud.tl { left: 18px; top: 16px; } .hud.tr { right: 18px; top: 16px; text-align: right; }
.hud .k { font: 600 15px/20px var(--font); letter-spacing: -.23px; }
.hud .v { font: 700 34px/40px var(--font-d); letter-spacing: .4px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.hud .v small { font: 600 15px/20px var(--font); color: rgba(235,235,245,.6); margin-left: 2px; }
.hud .s { font: 400 13px/18px var(--font); color: rgba(235,235,245,.6); letter-spacing: -.08px; max-width: 150px; }
.hero .legend { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font: 400 12px/16px var(--font); color: rgba(235,235,245,.6); white-space: nowrap; pointer-events: none; }
.hero .legend i { width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #5ac8fa, #ffcc00, #ff383c); }
.hero .chips-b { position: absolute; left: 12px; right: 12px; bottom: 44px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.hero .chip-g { pointer-events: auto; padding: 6px 12px; border-radius: 999px; font: 600 13px/18px var(--font); color: #fff; background: rgba(120,120,128,.32); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .14s var(--ease); }
.gal-stage { height: min(54vh, 520px); margin: 0 -4px 14px; border-radius: 22px; background: #000; overflow: hidden; }
.gal-stage canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
#gal-ui .chips { margin-top: 2px; }
.ex-stage { height: min(46vh, 440px); }
.area { width: 100%; padding: 12px 16px; border-radius: 12px; background: var(--bg2); color: var(--label); font: 400 17px/22px var(--font); border: 0; resize: vertical; }
.unit-s { color: var(--label3); font: 400 15px/20px var(--font); margin-left: -2px; }
.ex-mus { display: flex; flex-wrap: wrap; gap: 6px; }
.mtag { padding: 5px 10px; border-radius: 999px; font: 600 13px/18px var(--font); background: var(--fill3); color: var(--label2); }
.mtag.pri { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }
.mtag.eq { background: none; padding-left: 4px; color: var(--label3); font-weight: 500; }
.cues { margin: 0; padding: 4px 16px 4px 34px; border-radius: 12px; background: var(--bg2); list-style: none; counter-reset: c; }
.cues li { position: relative; padding: 11px 0; font: 400 15px/21px var(--font); color: var(--label); }
.cues li + li { box-shadow: inset 0 .5px 0 var(--sep); }
.cues li::before { counter-increment: c; content: counter(c); position: absolute; left: -22px; top: 11px; font: 600 13px/21px var(--font); color: var(--label3); }
.ex-row { gap: 4px; }
.ex-row > .tx { flex: 1; text-align: left; min-width: 0; padding: 0; background: none; color: inherit; }
.ex-i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--tint); }
.ex-i:active, .ex-name:active { opacity: .5; }
.ex-name { text-align: left; color: inherit; background: none; padding: 0; }
.hero .chip-g:active { transform: scale(.95); }
.muscle-card { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; padding: 14px 16px; border-radius: 20px; color: #fff;
  background: rgba(30,30,32,.72); border: .5px solid rgba(255,255,255,.12); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); animation: rise .28s var(--ease); }
.muscle-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muscle-card h3 { font: 600 17px/22px var(--font); }
.muscle-card p { font: 400 15px/20px var(--font); color: rgba(235,235,245,.7); margin-top: 2px; letter-spacing: -.23px; }
.muscle-card .x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(120,120,128,.32); color: rgba(235,235,245,.8); }
.muscle-card .x svg { width: 14px; height: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Barras e medidores ---------- */
.bar { height: 6px; border-radius: 6px; background: var(--fill3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: currentColor; transform-origin: left; transition: transform .6s var(--ease); }
.bar.over > i { background: repeating-linear-gradient(-45deg, currentColor 0 5px, color-mix(in srgb, currentColor 55%, transparent) 5px 10px); }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.macro .k { font: 600 15px/20px var(--font); letter-spacing: -.23px; }
.macro .v { font: 600 20px/25px var(--font-d); color: var(--label); font-variant-numeric: tabular-nums; margin: 2px 0 8px; letter-spacing: -.45px; }
.macro .v small { font: 400 15px/20px var(--font); color: var(--label2); letter-spacing: -.23px; }
.ring-row { display: flex; align-items: center; gap: 16px; }
.kcal-bar { margin-top: 12px; height: 10px; }

/* ---------- Detalhe de métrica (Passos, Sono, Peso…) ---------- */
.detail .seg { margin: 4px 0 16px; }
.dhead { min-height: 86px; }
.dhead .k { font: 600 13px/18px var(--font); color: var(--label2); letter-spacing: -.08px; text-transform: uppercase; }
.dhead .big { font-size: 34px; line-height: 41px; }
.dhead .d { font: 400 15px/20px var(--font); color: var(--label2); letter-spacing: -.23px; }
.chartbox { position: relative; margin: 0 -4px; touch-action: pan-y; }
.chart { display: block; width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.chart text { font: 400 11px var(--font); fill: var(--label2); letter-spacing: .06px; }
.chart .grid { stroke: var(--sep); stroke-width: .5; }
.about p + p { margin-top: 10px; }
.about p { font: 400 17px/22px var(--font); letter-spacing: -.43px; }
.cmp .row { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.cmp .pillbar { height: 26px; border-radius: 8px; margin-top: 4px; display: flex; align-items: center; padding: 0 10px; font: 600 13px/18px var(--font); color: #fff; }

/* ---------- Comer ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 0 0 12px; }
.week button { display: grid; justify-items: center; gap: 6px; padding: 6px 0 8px; border-radius: 14px; transition: background .2s; }
.week button .d { font: 600 13px/18px var(--font); color: var(--label2); }
.week button .o { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--round); font-variant-numeric: tabular-nums; border: 2px solid var(--fill); }
.week button.done .o { background: var(--label); color: var(--bg2); border-color: transparent; }
.week button.part .o { border-color: var(--green); }
.week button[aria-current="date"] { background: var(--bg2); }
.week button[aria-current="date"] .d { color: var(--tint); }
.week button[disabled] { opacity: .35; }
.meal-h { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 16px 7px; }
.meal-h h3 { font: 600 20px/25px var(--font-d); letter-spacing: -.45px; }
.meal-h span { font: 400 15px/20px var(--font); color: var(--label2); }
.micro { display: grid; gap: 14px; }
.micro .k { display: flex; justify-content: space-between; font: 400 15px/20px var(--font); letter-spacing: -.23px; margin-bottom: 6px; }
.micro .k span:last-child { color: var(--label2); font-variant-numeric: tabular-nums; }

/* busca e quantidade (folhas) */
.search { position: relative; display: block; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--label2); }
.search input { width: 100%; height: 40px; border: 0; border-radius: 999px; background: var(--fill3); padding: 0 14px 0 36px; font: 400 17px/22px var(--font); outline: none; }
.search input::placeholder { color: var(--label2); }
.input { width: 100%; height: 44px; border: 0; border-radius: var(--r-field); background: var(--fill4); padding: 0 12px; font: 400 17px/22px var(--font); outline: none; transition: box-shadow .2s; }
.input:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tint) 50%, transparent); }
.li input.inl { flex: 0 1 140px; min-width: 0; border: 0; background: none; text-align: right; font: 400 17px/22px var(--font); color: var(--label2); outline: none; }
.li input.inl:focus { color: var(--label); }
.qty { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 18px 0 6px; }
.qty input { width: 160px; border: 0; background: none; text-align: center; font: 700 56px/64px var(--font-d); letter-spacing: -.5px; outline: none; font-variant-numeric: tabular-nums; }
.qty span { font: 600 22px/28px var(--font); color: var(--label2); }
.quick { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 6px 0 18px; }
.quick button { padding: 7px 14px; border-radius: 999px; background: var(--fill3); font: 500 15px/20px var(--font); font-variant-numeric: tabular-nums; transition: transform .14s var(--ease); }
.quick button:active { transform: scale(.95); }
.nut4 { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 14px 4px; }
.nut4 .v { font: 600 22px/28px var(--font-d); font-variant-numeric: tabular-nums; }
.nut4 .k { font: 400 13px/18px var(--font); color: var(--label2); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 13px; border-radius: 999px; background: var(--fill3); font: 500 15px/20px var(--font); letter-spacing: -.23px; transition: background .2s, color .2s; }
.chip[aria-pressed="true"] { background: var(--tint); color: #fff; }
.chip.static { font-size: 13px; padding: 3px 10px; }
.empty { text-align: center; padding: 26px 16px; color: var(--label2); font: 400 15px/20px var(--font); }

/* ---------- Treinar ---------- */
.routine h3 { font: 600 20px/25px var(--font-d); letter-spacing: -.45px; }
.routine p { font: 400 15px/20px var(--font); color: var(--label2); margin: 4px 0 14px; letter-spacing: -.23px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.routine .tag { font: 600 13px/18px var(--font); color: var(--tint); }
.session-bar { position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: calc(var(--safe-t) + 8px) 16px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 .5px 0 var(--sep); }
.session-bar .stats { display: flex; gap: 18px; }
.session-bar .stats div { display: grid; }
.session-bar .stats span { font: 400 12px/16px var(--font); color: var(--label2); }
.session-bar .stats b { font: 600 17px/22px var(--font); font-variant-numeric: tabular-nums; color: var(--tint); }
.exercise { padding: 14px 0 6px; }
.exercise .eh { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.exercise .eh h3 { flex: 1; font: 600 17px/22px var(--font); color: var(--tint); }
.exercise .hint { font: 400 15px/20px var(--font); color: var(--label2); padding: 4px 16px 0; letter-spacing: -.23px; }
.exercise .hint.upg { color: var(--green); } .exercise .hint.stall { color: var(--orange); }
.sets { width: 100%; border-collapse: collapse; margin-top: 8px; }
.sets th { font: 600 12px/16px var(--font); color: var(--label2); text-transform: uppercase; padding: 4px 2px; text-align: center; }
.sets td { text-align: center; padding: 3px 2px; }
.sets td:first-child { font: 600 15px/20px var(--font); color: var(--label2); width: 44px; padding-left: 10px; }
.sets td:last-child { width: 52px; padding-right: 10px; }
.sets .prev { font: 400 15px/20px var(--font); color: var(--label3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sets input { width: 100%; min-width: 0; height: 36px; border: 0; border-radius: 10px; background: var(--fill4); text-align: center; font: 600 17px/22px var(--font); font-variant-numeric: tabular-nums; outline: none; }
.sets input::placeholder { color: var(--label3); }
.sets tr { transition: background .25s; }
.sets tr.done { background: color-mix(in srgb, var(--green) 16%, transparent); }
.sets tr.done input { background: transparent; }
.check { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--fill3); color: var(--label3); transition: transform .14s var(--ease), background .2s, color .2s; }
.check:active { transform: scale(.88); }
.check svg { width: 18px; height: 18px; }
tr.done .check { background: var(--green); color: #fff; }
.addset { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 32px); margin: 8px 16px 6px; height: 36px; border-radius: 10px; background: var(--fill4); font: 500 15px/20px var(--font); color: var(--label); }
.addset svg { width: 16px; height: 16px; }
.rest { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + var(--safe-b)); z-index: 25; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px;
  background: var(--glass); border: .5px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); animation: rise .25s var(--ease); }
.rest .t { font: 600 20px/25px var(--font-d); min-width: 56px; font-variant-numeric: tabular-nums; color: var(--tint); }
.vol { display: grid; grid-template-columns: 104px 1fr 40px; align-items: center; gap: 12px; font: 400 15px/20px var(--font); padding: 6px 0; }
.vol .track { position: relative; height: 8px; border-radius: 8px; background: var(--fill3); }
.vol .band { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: color-mix(in srgb, var(--green) 22%, transparent); }
.vol .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
.vol .n { text-align: right; color: var(--label2); font-variant-numeric: tabular-nums; }
.explain { font: 400 13px/18px var(--font); color: var(--label2); letter-spacing: -.08px; margin-top: 10px; }

/* ---------- Folhas (sheets) ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .35s var(--ease); }
.scrim.on { opacity: 1; }
.sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - var(--safe-t) - 12px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 38px 38px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.18);
  transform: translateY(100%); transition: transform .42s var(--ease-sheet); padding-bottom: var(--safe-b); }
.sheet.on { transform: none; }
.sheet.closing { transition-duration: .26s; }
.sheet.tall { height: calc(100dvh - var(--safe-t) - 12px); }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--fill); margin: 6px auto 0; flex: none; }
.sheet .sh { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: 8px 14px 8px; flex: none; }
.sheet .sh h2 { grid-column: 2; text-align: center; font: 600 17px/22px var(--font); letter-spacing: -.43px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .sh .gbtn { width: 40px; height: 40px; }
.sheet .sb { overflow-y: auto; padding: 6px 16px 24px; overscroll-behavior: contain; }
.sheet .sb > .list:first-child, .sheet .sb > .card:first-child { margin-top: 4px; }

#toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 10px); transform: translate(-50%, -160%); z-index: 80; display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: var(--glass); border: .5px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  font: 600 15px/20px var(--font); transition: transform .45s var(--ease-sheet); pointer-events: none; white-space: nowrap; }
#toast.on { transform: translate(-50%, 0); }

/* ---------- Entrada ---------- */
.login { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; position: relative; overflow: hidden; background: #000; color: #fff; color-scheme: dark;
  --label: #fff; --label2: rgba(235,235,245,.6); --fill3: rgba(120,120,128,.24); --fill4: rgba(120,120,128,.18); --bg2: #1c1c1e; --bg: #000; }
.login canvas { position: absolute; inset: 0 0 36%; width: 100%; height: 64%; }
.login .panel { position: relative; padding: 0 20px calc(28px + var(--safe-b)); max-width: 420px; width: 100%; margin: 0 auto; }
.login h1 { font: 700 40px/46px var(--font-d); letter-spacing: .3px; }
.login .lead { color: rgba(235,235,245,.6); margin: 4px 0 22px; font: 400 17px/22px var(--font); }
.login .seg button[aria-pressed="true"] { background: #636366; }
.login .list { background: #1c1c1e; margin-top: 12px; }
.login .li input { flex: 1; border: 0; background: none; outline: none; font: 400 17px/22px var(--font); color: #fff; min-width: 0; }
.login .li label { width: 76px; flex: none; }
.err { color: var(--red); font: 400 15px/20px var(--font); min-height: 20px; margin: 8px 4px; }
.demo-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-radius: 16px; background: color-mix(in srgb, var(--tint) 12%, var(--bg2)); font: 400 15px/20px var(--font); color: var(--label2); margin-bottom: 12px; }

/* ---------- iPad e PC: barra lateral como no Saúde do iPad ---------- */

/* ---------- Desafios ---------- */
.av { flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; font: 600 15px/1 var(--round); }
.li.rank { --inset: 100px; }
.li.rank .pos { width: 22px; text-align: center; font: 600 17px/22px var(--round); color: var(--label2); font-variant-numeric: tabular-nums; flex: none; }
.li.rank .val b { font: 600 17px/22px var(--round); color: var(--label); }
.li.rank.me { background: color-mix(in srgb, var(--tint) 10%, transparent); }
.li.rank:first-child .pos { color: var(--orange); }
.li[disabled] { opacity: .55; }
.badge-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #fff; font: 600 13px/22px var(--font); text-align: center; }
.post { margin-top: 10px; }
.post header { display: flex; align-items: center; gap: 10px; }
.post header b { display: block; font: 600 15px/20px var(--font); }
.post header span { font: 400 13px/18px var(--font); color: var(--label2); }
.post h3 { font: 600 20px/25px var(--font-d); letter-spacing: .38px; margin-top: 12px; }
.post .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.post .tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--fill3); font: 600 12px/16px var(--font); color: var(--label2); }
.post .tag svg { width: 12px; height: 12px; }
.post .tag.ok { color: var(--green); }
.post footer { display: flex; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: .5px solid var(--sep); }
.react { display: inline-flex; align-items: center; gap: 5px; min-width: 44px; height: 36px; padding: 0 12px; border-radius: 999px; color: var(--label2); font: 600 14px/1 var(--font); font-variant-numeric: tabular-nums; transition: transform .14s var(--ease), background .2s, color .2s; }
.react svg { width: 18px; height: 18px; }
.react:active { transform: scale(.92); }
.react[aria-pressed="true"] { color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }
.react.cm { margin-left: auto; }
.code { font: 700 40px/48px var(--round); letter-spacing: 8px; margin-top: 6px; font-variant-numeric: tabular-nums; padding-left: 8px; }
.qty input.code-in { letter-spacing: 6px; text-transform: uppercase; }
.switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fill); transition: background .25s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); transition: transform .25s var(--ease); }
[aria-checked="true"] > .switch { background: var(--green); }
[aria-checked="true"] > .switch::after { transform: translateX(20px); }
.btn svg { width: 18px; height: 18px; margin-right: 6px; }

@media (min-width: 834px) {
  .shell { display: grid; grid-template-columns: 260px 1fr; }
  .tabbar { position: sticky; top: 0; left: auto; bottom: auto; transform: none; width: auto; height: 100dvh; border-radius: 0; display: flex; flex-direction: column; gap: 2px;
    padding: 22px 12px; background: var(--bg2); border: 0; box-shadow: .5px 0 0 var(--sep); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand { display: block; font: 700 28px/34px var(--font-d); letter-spacing: .38px; padding: 4px 12px 18px; }
  .tab { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font: 400 17px/22px var(--font); letter-spacing: -.43px; }
  .tab svg { width: 24px; height: 24px; color: var(--tint); }
  .tab[aria-current="page"] { background: var(--tint); color: #fff; }
  .tab[aria-current="page"] svg { color: #fff; }
  .tab .badge { position: static; margin-left: auto; }
  .main { max-width: 820px; padding: 0 32px 60px; }
  .navbar { margin: 0 -32px; padding: 14px 32px 6px; }
  .grid2.auto3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 580px; max-height: 86vh; border-radius: 34px; transform: translate(-50%, -46%) scale(.96); opacity: 0;
    transition: transform .34s var(--ease), opacity .22s; padding-bottom: 0; }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.tall { height: 86vh; }
  .sheet .grab { display: none; }
  .rest { bottom: 24px; left: calc(50% + 130px); }
  .session-bar { margin: 0 -32px; padding: 12px 32px; }
}
@media (min-width: 1200px) {
  .main { max-width: 1240px; }
  .split { display: grid; grid-template-columns: minmax(400px, 5fr) 7fr; gap: 24px; align-items: start; }
  .split > .stick { position: sticky; top: 70px; }
  .split .hero { height: calc(100dvh - 110px); max-height: 860px; }
  .split .side > .section-h:first-child { padding-top: 0; }
  .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar, .gbtn, .rest, #toast, .navbar.scrolled, .session-bar, .muscle-card { background: var(--bg2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .muscle-card { background: #1c1c1e; }
}
@media (prefers-contrast: more) {
  :root { --sep: rgba(60,60,67,.5); --label2: rgba(60,60,67,.85); }
  .tabbar, .gbtn { border-color: var(--label3); }
}

/* ---------- Zyg (porte de eibenhaus-crm: imob.css, classes zy e gv, e zyg.css) ---------- */
:root { --zyg: #1e3bff; --zyg-bg: #eef1ff; --zyg-corpo: #1e3bff; --zyg-olho: #fff; --zyg-boina: #ff5a1f; }
@media (prefers-color-scheme: dark) { :root { --zyg: #9aa6ff; --zyg-bg: #232741; --zyg-corpo: #4257ff; } }
.zy-av { display: block; width: 30px; height: 30px; flex: none; }
.zy-boneco { display: block; width: 100%; height: 100%; overflow: visible; }
.zy-boneco g, .zy-boneco rect, .zy-boneco path { transform-box: fill-box; transform-origin: 50% 50%; }
.zy-boneco .zy-salto, .zy-boneco .zy-corpo, .zy-boneco .zy-boina, .zy-boneco .zy-boina-b, .zy-boneco .zy-sorri { transform-origin: 50% 100%; }
.zy-boneco .zy-olhos, .zy-boneco .zy-oe, .zy-boneco .zy-od { transition: transform .34s cubic-bezier(.23, 1, .32, 1), opacity .18s ease; }
.zy-boneco .zy-sorri { opacity: 0; transform: scaleY(.4); transition: opacity .18s ease, transform .34s cubic-bezier(.23, 1, .32, 1); }
.zy-boneco[data-zy="lendo"] .zy-olhos { transform: translateY(2.6px) scaleY(.58); }
.zy-boneco:not([data-zy="lendo"]) .zy-pisca { animation: zy-b-pisca 5.2s infinite; }
.zy-boneco[data-zy="lendo"] .zy-varre { animation: zy-varre 1.4s ease-in-out infinite; }
.zy-boneco[data-zy="lendo"] .zy-boina-b { animation: zy-balanca 1.4s ease-in-out infinite; }
@keyframes zy-b-pisca { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.1); } }
@keyframes zy-varre { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.8px); } 75% { transform: translateX(1.8px); } }
@keyframes zy-balanca { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(3deg); } }
/* aba do Zyg: círculo solto à direita da barra, como a busca no iOS 26 */
@media (max-width: 833px) { .tabbar { left: calc(50% - 32px); width: min(calc(100% - 104px), 410px); } }
.zy-tab { position: absolute; right: -66px; top: -.5px; bottom: -.5px; width: 60px; padding: 0; place-content: center; border-radius: 50%;
  background: var(--glass); border: .5px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
.zy-tab > span:last-child { display: none; }
.zy-tab .zy-av { width: 32px; height: 32px; }
.zy-tab[aria-current="page"] { background: var(--zyg-bg); }
/* tela da conversa */
.zy-tela { display: flex; flex-direction: column; min-height: calc(100dvh - 90px - var(--safe-b)); }
.zy-topo .small { display: flex; align-items: center; gap: 8px; opacity: 1; transform: none; }
.zy-quem { display: grid; text-align: left; line-height: 1.15; }
.zy-quem b { font: 600 17px/20px var(--font); }
.zy-sub { font: 400 12px/15px var(--font); color: var(--label2); animation: zy-sub .2s ease both; }
@keyframes zy-sub { from { opacity: 0; } }
.zy-msgs { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 0 12px; }
.zy-dia { text-align: center; margin: 10px 0 6px; }
.zy-dia span { display: inline-block; padding: 3px 10px; border-radius: 8px; background: var(--fill3); font: 500 12px/16px var(--font); color: var(--label2); }
.zy-wrap { display: flex; flex-direction: column; }
.zy-wrap[data-grupo] { margin-top: 8px; }
.zy-msg { position: relative; max-width: min(30rem, 82%); padding: 7px 12px 8px; border-radius: 18px; font: 400 16px/21px var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
.zy-msg small { float: right; margin: 6px -2px -4px 10px; font: 400 11px/14px var(--font); color: var(--label3); }
.zy-msg.in { align-self: flex-start; background: var(--zyg-bg); color: var(--label); }
.zy-msg.out { align-self: flex-end; background: var(--tint); color: #fff; }
.zy-msg.out small { color: rgb(255 255 255 / .72); }
.zy-msg.in[data-cauda] { border-bottom-left-radius: 6px; }
.zy-msg.out[data-cauda] { border-bottom-right-radius: 6px; }
.zy-digitando { display: flex; gap: 4px; align-items: center; min-height: 36px; min-width: 52px; justify-content: center; }
.zy-digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--label2); opacity: .35; animation: zy-ponto 1.1s infinite ease-in-out; }
.zy-digitando i:nth-child(2) { animation-delay: .15s; } .zy-digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes zy-ponto { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: .9; transform: translateY(-3px); } }
.zy-entra { animation: zy-entra .34s cubic-bezier(.23, 1, .32, 1) both; }
.zy-entra.zy-de-dots { animation-name: zy-entra-dots; }
.zy-cartao.zy-entra { animation-delay: 70ms; }
@keyframes zy-entra { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes zy-entra-dots { from { opacity: .3; transform: scale(.97); } }
.zy-cartao { align-self: flex-start; width: min(26rem, 88%); margin-top: 6px; border-radius: 18px; background: var(--zyg-bg); padding: 12px 14px 14px; }
.zy-rot { margin: 0 0 4px; font: 600 13px/18px var(--font); color: var(--zyg); }
.zy-corpo { margin: 0; font: 400 16px/21px var(--font); color: var(--label); }
.zy-extra { margin: 6px 0 0; font: 400 14px/19px var(--font); color: var(--label2); }
.zy-itens { list-style: none; margin: 8px 0 0; padding: 0; }
.zy-itens li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font: 400 15px/20px var(--font); color: var(--label); }
.zy-itens li + li { box-shadow: inset 0 .5px 0 var(--sep); }
.zy-itens li span:last-child { flex: none; color: var(--label2); font-variant-numeric: tabular-nums; }
.zy-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zy-botoes .btn { flex: 1 1 auto; min-height: 44px; }
.zy-feito { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font: 600 14px/20px var(--font); color: var(--green); }
.zy-feito svg { width: 16px; height: 16px; }
.zy-cartao[data-estado="descartado"] { opacity: .6; } .zy-cartao[data-estado="descartado"] .zy-feito { color: var(--label2); }
.zy-sugestoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zy-pe { position: sticky; bottom: calc(84px + var(--safe-b)); display: flex; align-items: flex-end; gap: 8px; padding: 8px 0; z-index: 5; }
.zy-campo-w { flex: 1; min-width: 0; display: flex; border-radius: 22px; background: var(--glass); border: .5px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
.zy-campo { flex: 1; min-width: 0; min-height: 44px; max-height: 132px; padding: 11px 16px; border: 0; border-radius: 22px; background: transparent; color: var(--label); font: 400 16px/22px var(--font); resize: none; }
.zy-campo::placeholder { color: var(--label3); }
.zy-redondo { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: #fff; transition: transform .16s var(--ease), opacity .16s; }
.zy-redondo:active { transform: scale(.94); } .zy-redondo:disabled { opacity: .5; }
.gv-barra { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px; border-radius: 24px; background: var(--glass); border: .5px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); animation: gv-entra .2s cubic-bezier(.23, 1, .32, 1); }
.gv-bt { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--label); transition: transform .16s cubic-bezier(.23, 1, .32, 1); }
.gv-bt svg { width: 20px; height: 20px; } .gv-bt:active { transform: scale(.92); }
.gv-ok { background: var(--tint); color: #fff; }
.gv-onda { flex: 1; min-width: 0; height: 26px; display: flex; align-items: center; justify-content: flex-end; gap: 3px; overflow: hidden; }
.gv-onda i { flex: none; width: 3px; height: 100%; border-radius: 2px; background: var(--label); transform: scaleY(.1); transition: transform .08s linear; }
.gv-tempo { flex: none; min-width: 34px; font: 400 14px/20px var(--font); font-variant-numeric: tabular-nums; color: var(--label2); }
.gv-status { flex: 1; padding: 0 14px; font: 400 15px/20px var(--font); color: var(--label2); animation: gv-respira 1.2s ease-in-out infinite; }
@keyframes gv-entra { from { opacity: 0; transform: scale(.98); } }
@keyframes gv-respira { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
  .zy-boneco, .zy-boneco *, .zy-digitando i, .gv-status { animation: none !important; transition: none !important; }
  .zy-entra, .zy-entra.zy-de-dots, .gv-barra { animation: zy-so-aparece .2s ease both; }
}
@keyframes zy-so-aparece { from { opacity: 0; } }
@media (min-width: 834px) {
  .zy-tab { position: static; width: auto; padding: 9px 12px; place-content: initial; justify-content: start; align-items: center; border-radius: 12px; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; margin-top: 8px; }
  .zy-tab > span:last-child { display: inline; }
  .zy-tab .zy-av { width: 24px; height: 24px; }
  .zy-tab[aria-current="page"] { background: var(--zyg-bg); color: var(--zyg); }
  .zy-tela { min-height: 100dvh; }
  .zy-pe { bottom: 0; padding: 10px 0 20px; }
}

/* Biblioteca de exercícios (ExerciseDB) */
.xrow { --inset: 84px; gap: 4px; padding: 8px 8px 8px 16px; }
.xmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; color: inherit; transition: opacity .15s; }
.xmain:active { opacity: .55; }
.xthumb { width: 56px; height: 56px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 .5px var(--sep); }
.xthumb img { width: 100%; height: 100%; object-fit: cover; }
.xph { color: var(--c-train); } .xph svg { width: 26px; height: 26px; }
.xrow.sk .xthumb, .xrow.sk b, .xrow.sk .tx span, .xsk { background: var(--fill3); border-radius: 8px; animation: xpulse 1.2s ease-in-out infinite alternate; }
.xrow.sk b { width: 62%; height: 15px; } .xrow.sk .tx span { width: 38%; height: 11px; margin-top: 7px; }
.xrow.sk .xthumb { border-radius: 12px; box-shadow: none; }
.xsk { height: 18px; margin: 14px 0 0; } .xsk + .xsk { width: 70%; }
@keyframes xpulse { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .xrow.sk .xthumb, .xrow.sk b, .xrow.sk .tx span, .xsk { animation: none; } }
.xmore { margin-top: 12px; }
.credit { text-align: center; padding: 18px 16px 6px; font: 400 12px/16px var(--font); color: var(--label3); }
.credit a { color: var(--label2); text-decoration: underline; text-underline-offset: 2px; }
.xgif { margin: 2px auto 14px; max-width: 360px; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 .5px var(--sep); }
.xgif img { width: 100%; height: 100%; object-fit: contain; display: block; }
.xhist { padding: 10px 12px 8px; }
.xhist .seg { margin-bottom: 8px; }
.xchart { display: block; width: 100%; height: auto; }
.xc-d { font: 400 11px var(--font); fill: var(--label3); }
.xc-v { font: 600 12px var(--font); fill: var(--label); font-variant-numeric: tabular-nums; }
.xrecs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xrec { background: var(--bg2); border-radius: var(--r-row); padding: 11px 14px; display: grid; gap: 1px; }
.xrec span { font: 400 13px/18px var(--font); color: var(--label2); }
.xrec b { font: 600 20px/25px var(--round, var(--font)); font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.xrec small { font: 400 12px/16px var(--font); color: var(--label3); }
.xcta { margin-top: 18px; }
.xrest { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; margin-left: auto; border-radius: 999px; background: var(--fill3); color: var(--label2); font: 500 13px/18px var(--font); font-variant-numeric: tabular-nums; transition: transform .12s ease-out; }
.xrest svg { width: 14px; height: 14px; }
.xrest:active { transform: scale(.96); }
@media (min-width: 834px) { .xrecs { grid-template-columns: repeat(4, 1fr); } }
.xgif .xph { width: 100%; height: 100%; display: grid; place-items: center; } .xgif .xph svg { width: 56px; height: 56px; }

/* Avaliação do corpo: boneco com as faixas da fita métrica */
.as-stage { height: min(50vh, 440px); margin-bottom: 10px; }
.as-tip { text-align: center; padding: 0 16px 14px; min-height: 58px; }
.as-tip b { display: block; font: 600 17px/22px var(--font); color: var(--orange); }
.as-tip span { display: block; font: 400 15px/20px var(--font); color: var(--label2); margin-top: 2px; }

/* Tutorial do Apple Watch */
.wstatus { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-row); background: var(--bg2); margin-bottom: 14px; }
.wstatus svg { width: 26px; height: 26px; flex: none; color: var(--label3); }
.wstatus.ok svg { color: var(--green); }
.wstatus b { display: block; font: 600 17px/22px var(--font); color: var(--label); }
.wstatus span { font: 400 13px/18px var(--font); color: var(--label2); }
.wsteps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.wstep { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--r-row); background: var(--bg2); }
.wn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c-heart); color: #fff; font: 600 15px/1 var(--font); }
.wstep > div > b { display: block; font: 600 17px/22px var(--font); margin: 2px 0 4px; }
.wstep p { margin: 0 0 8px; font: 400 15px/21px var(--font); color: var(--label2); }
.wstep p b, .wtips b { color: var(--label); font-weight: 600; }
.wdl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font: 400 15px/21px var(--font); }
.wdl dt { color: var(--label2); }
.wdl dd { margin: 0; min-width: 0; }
.wstep code, .xcopy code { font: 500 13px/18px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.xcopy { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; background: var(--fill3); text-align: left; color: var(--label); transition: transform .12s ease-out; }
.xcopy:active { transform: scale(.98); }
.xcopy code { flex: 1; min-width: 0; }
.xcopy span { flex: none; font: 600 13px/18px var(--font); color: var(--tint); }
#keyout .xcopy { margin-top: 8px; }
.wtips { margin: 0; padding: 12px 16px 12px 34px; border-radius: var(--r-row); background: var(--bg2); font: 400 15px/21px var(--font); color: var(--label); display: grid; gap: 8px; }

/* Fotos do corpo */
.ph-empty { display: grid; gap: 12px; padding: 8px 4px 4px; }
.ph-empty p { margin: 0; font: 400 17px/24px var(--font); letter-spacing: -.4px; color: var(--label); }
.ph-stage { margin: 12px 0 0; display: grid; gap: 8px; }
.ph-stage.two { grid-template-columns: 1fr 1fr; }
.ph-fig { position: relative; margin: 0; aspect-ratio: 3 / 4; max-height: min(62vh, 640px); border-radius: 22px; overflow: hidden; background: var(--fill3); justify-self: center; width: 100%; }
.ph-stage:not(.two) .ph-fig { width: min(100%, calc(min(62vh, 640px) * .75)); }
.ph-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-fig figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; font: 600 13px/18px var(--font); color: #fff; background: rgba(0,0,0,.42); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ph-none { height: 100%; display: grid; place-items: center; padding: 16px; text-align: center; font: 400 15px/20px var(--font); color: var(--label2); }
.ph-read p { margin: 8px 0 0; font: 400 15px/21px var(--font); letter-spacing: -.23px; color: var(--label); }
.ph-reg { margin: 8px 0 0; padding: 0 0 0 18px; display: grid; gap: 4px; font: 400 15px/21px var(--font); letter-spacing: -.23px; }
#cam { position: fixed; inset: 0; z-index: 90; background: #000; color: #fff; display: grid; grid-template-rows: auto 1fr auto auto; animation: cam-in .24s var(--ease) both; }
@keyframes cam-in { from { opacity: 0; transform: translateY(16px); } }
.cam-view { position: absolute; inset: 0; overflow: hidden; }
.cam-view video, .cam-shot, .cam-ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-view.mirror video, .cam-view.mirror .cam-ghost { transform: scaleX(-1); }
.cam-ghost { opacity: .32; pointer-events: none; }
.cam-sil { position: absolute; inset: 14% 0 12%; display: grid; place-items: center; pointer-events: none; }
.cam-sil svg { height: 100%; fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.2; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.cam-off { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; font: 400 17px/24px var(--font); color: rgba(255,255,255,.8); }
.cam-count { position: absolute; inset: 0; display: grid; place-items: center; font: 700 120px/1 var(--font); letter-spacing: -4px; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.cam-top { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 14px 24px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.cam-top .gbtn { background: rgba(120,120,128,.4); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cam-skip { width: auto; padding: 0 14px; font: 600 15px/20px var(--font); }
.cam-t { text-align: center; display: grid; }
.cam-t b { font: 600 17px/22px var(--font); }
.cam-t span { font: 400 13px/18px var(--font); color: rgba(255,255,255,.78); }
.gsp { width: 44px; }
.cam-hint { position: relative; grid-row: 3; margin: 0; padding: 0 24px 10px; text-align: center; font: 400 13px/18px var(--font); color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.cam-bot { position: relative; grid-row: 4; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; gap: 12px; padding: 14px 20px calc(env(safe-area-inset-bottom) + 18px); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.cam-bot .btn { width: 100%; }
.cam-bot:has(> .btn) { grid-template-columns: 1fr 1fr; }
.cam-side { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(120,120,128,.4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font: 600 15px/20px var(--font); color: #fff; cursor: pointer; transition: transform .14s var(--ease); }
.cam-side:empty { background: none; }
.cam-side svg { width: 18px; height: 18px; }
.cam-side:active { transform: scale(.95); }
.cam-shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: #fff; box-shadow: inset 0 0 0 4px #000; transition: transform .12s var(--ease); }
.cam-shutter:active { transform: scale(.92); }
.cam-shutter[disabled] { opacity: .35; }
.cam-flip { position: absolute; right: 16px; top: calc(env(safe-area-inset-top) + 78px); min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(120,120,128,.4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font: 600 13px/18px var(--font); color: #fff; }
@media (prefers-reduced-motion: reduce) { #cam { animation: none; } }
