/* Fit Mídias Evolution · app (v1)
   Preto quase absoluto, verde #62F53A, cartões arredondados, Instrument Sans. */
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-italic-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --bg: #050806; --card: #0d140e; --card-2: #121b13; --track: #1a261c;
  --line: #1c2a1e; --line-2: #2c3d2e; --line-green: #2c4a2e;
  --text: #eef5ef; --soft: #c4d0c6; --muted: #93a395;
  --green: #62f53a; --green-hi: #8dff5a; --ink: #041204;
  --lime-fm: #d4ff3f; --sky: #4fc3ff; --amber: #ffb02e; --coral: #ff9a80; --violet: #c9b8ff;
  --tabbar: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font: 400 15px/1.45 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Estrutura */
.screen { width: min(100%, 480px); margin: 0 auto; min-height: 100vh; padding: 18px 18px calc(var(--tabbar) + 40px); display: flex; flex-direction: column; gap: 14px; }
.screen.full { padding-bottom: 28px; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--track); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
/* Entrada suave só quando troca de tela (não a cada atualização, senão a tela pisca). */
#app.anim .screen > * { animation: rise .35s var(--ease) both; }

/* Topo */
.top { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand b { display: block; font-weight: 700; font-style: italic; font-size: 17px; letter-spacing: -.03em; line-height: 1.05; }
.brand small { display: block; font-weight: 700; font-size: 11px; letter-spacing: .14em; color: var(--green); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pill { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 5px 0 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-green); font-size: 13px; font-weight: 600; }
.pill .clock { color: var(--green); font-variant-numeric: tabular-nums; }
.pill.low { border-color: rgba(255, 176, 46, .6); }
.pill.low .clock { color: var(--amber); }
.pill .go { height: 26px; padding: 0 11px; border-radius: 999px; background: var(--green); color: var(--ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; }
.pill .paused { color: var(--muted); font-size: 11.5px; }
.paid { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(98, 245, 58, .12); color: var(--green); font-size: 12.5px; font-weight: 700; }

/* Títulos */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.title { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.lead { font-size: 14.5px; color: var(--muted); }
.head { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }

/* Cartões */
.card { padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.card-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.card-row .grow { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-row strong { font-size: 14.5px; font-weight: 600; }
.card-row small { font-size: 12.5px; color: var(--muted); }
.ico { width: 38px; height: 38px; border-radius: 11px; background: rgba(98, 245, 58, .12); color: var(--green); display: grid; place-items: center; flex: none; }
.hero { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; background: linear-gradient(150deg, #13240f 0%, #0b120b 70%); border: 1px solid #24401f; }
.hero h2 { font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.meta { display: flex; gap: 16px; font-size: 13.5px; color: var(--soft); }
.meta span { display: flex; align-items: center; gap: 6px; }
.meta svg { color: var(--green); }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(98, 245, 58, .12); color: var(--green); font-size: 11.5px; font-weight: 600; }
.chip-fm { background: rgba(212, 255, 63, .14); color: var(--lime-fm); }
.chip-dim { background: rgba(255, 255, 255, .08); color: var(--soft); }
.exlist { display: flex; flex-wrap: wrap; gap: 6px; }
.exlist span { padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: 12.5px; color: var(--soft); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat b { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.stat em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 20px; border-radius: 22px; background: var(--card); border: 1px dashed var(--line-green); text-align: center; }
.empty .ico { width: 60px; height: 60px; border-radius: 18px; }
.empty strong { font-size: 18px; }
.empty p { font-size: 14px; color: var(--muted); }

/* Botões (mínimo 44 px) */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 16px; font-size: 16px; font-weight: 700; transition: transform .15s var(--ease), background .2s; }
.btn:active { transform: scale(.97); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: var(--green-hi); }
.btn-line { border: 1px solid var(--line-2); color: var(--text); font-weight: 600; }
.btn-ghost { color: var(--soft); font-weight: 600; font-size: 14.5px; min-height: 48px; }
.btn-xl { min-height: 60px; border-radius: 18px; font-size: 17px; }
.btn[disabled] { opacity: .5; cursor: progress; }
.link { color: var(--green); font-weight: 700; font-size: 13px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--text); }
.icon-btn:hover { background: var(--card-2); }

/* Barra de baixo */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 456px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 4px; border-radius: 22px; background: rgba(13, 20, 14, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid #22331f; z-index: 20; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabbar a[aria-current="page"] { color: var(--green); font-weight: 700; }

/* Tela do teste */
.center { align-items: center; text-align: center; justify-content: flex-start; padding-top: 48px; background: radial-gradient(90% 45% at 80% 0%, rgba(98, 245, 58, .14), transparent 70%); }
.center .brand { gap: 12px; }
.center .brand img { width: 58px; height: 58px; border-radius: 16px; }
.center .brand b { font-size: 24px; }
.center .brand small { font-size: 13px; letter-spacing: .16em; }
.big-clock { font-size: clamp(72px, 24vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--green); font-variant-numeric: tabular-nums; }
.ticks { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.ticks div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.ticks svg { color: var(--green); }
.bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.tag-top { padding: 6px 14px; border-radius: 999px; background: rgba(98, 245, 58, .14); color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .1em; }

/* Liberar */
.checks { display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.checks span { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.checks svg { color: var(--green); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 4px 4px; border-top: 1px solid var(--line); }
.price-row b { font-size: 38px; font-weight: 700; letter-spacing: -.03em; color: var(--green); }
.price-row span { font-size: 14px; color: var(--muted); }

/* Treino */
.train { padding-bottom: 24px; }
.train-top { display: flex; align-items: center; gap: 12px; }
.train-top .grow { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.train-top strong { font-size: 15px; }
.train-top small { font-size: 12.5px; color: var(--muted); }
.square { width: 44px; height: 44px; border-radius: 14px; background: var(--card-2); display: grid; place-items: center; color: var(--text); flex: none; }
.timer { padding: 7px 12px; border-radius: 999px; background: var(--card-2); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 5px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .4s var(--ease); }
.media { height: 236px; border-radius: 24px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.media.none { background: var(--card-2); color: var(--muted); font-size: 13px; }
.ex-name { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.set-line { display: flex; align-items: baseline; gap: 14px; font-size: 16px; font-weight: 600; }
.set-line b { color: var(--green); font-size: 26px; }
.set-line span:last-child { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.dots { display: flex; gap: 6px; }
.dots i { flex: 1; max-width: 52px; height: 6px; border-radius: 999px; background: var(--track); }
.dots i.done { background: var(--green); }
.dots i.now { background: rgba(98, 245, 58, .45); }
.steppers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stepper { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.stepper label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.stepper div { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stepper button { width: 48px; height: 48px; border-radius: 14px; background: var(--track); font-size: 24px; font-weight: 600; }
.stepper input { width: 100%; min-width: 0; border: 0; background: none; text-align: center; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper input:focus { outline: none; }
.stepper small { text-align: center; font-size: 12px; color: var(--muted); }
.last { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.last b { color: var(--text); }
.last .up { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: rgba(98, 245, 58, .14); color: var(--green); font-weight: 700; }
.saved { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
.saved svg { color: var(--green); }
.saved.wait svg { color: var(--amber); }
.skip-row { display: flex; justify-content: space-between; }
.skip-row button { min-height: 44px; padding: 0 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.ring { --p: 1; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, var(--bg) 89%, transparent 90%), conic-gradient(var(--green) calc(var(--p) * 360deg), var(--track) 0); display: grid; place-items: center; }
.ring span { font-size: 60px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rest { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 18px; flex: 1; }
.next { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.next img, .next .ph { width: 52px; height: 64px; border-radius: 12px; background: #fff; object-fit: cover; flex: none; }
.next .ph { background: var(--card-2); }
.next small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.next strong { font-size: 15px; }
.done-badge { width: 76px; height: 76px; border-radius: 24px; background: var(--green); color: var(--ink); display: grid; place-items: center; animation: pop .45s var(--ease) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.pr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(98, 245, 58, .16), var(--card)); border: 1px solid var(--line-green); text-align: left; }
.pr svg { color: var(--green); }
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.tri div { padding: 12px 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.tri b { display: block; font-size: 22px; font-weight: 700; color: var(--green); }
.tri span { font-size: 12px; color: var(--muted); }

/* Evolução */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.seg button { min-height: 40px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--soft); }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border-radius: 14px; background: var(--card-2); color: var(--muted); font-size: 12px; font-weight: 700; }
.week i { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--line-2); display: grid; place-items: center; font-style: normal; }
.week .on { color: var(--text); }
.week .on i { border: 0; background: var(--green); color: var(--ink); }
.week .today { outline: 1px solid rgba(98, 245, 58, .5); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.ex-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid transparent; text-align: left; }
.ex-row[aria-pressed="true"] { border-color: var(--line-green); }
.ex-row span { flex: 1; font-size: 14px; }
.ex-row small { color: var(--muted); font-size: 12.5px; }
.ex-row b { color: var(--green); font-size: 13px; min-width: 44px; text-align: right; }
.list { display: flex; flex-direction: column; gap: 8px; }

/* Formulários */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 16px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field textarea { min-height: 70px; resize: vertical; }
.options { display: flex; flex-direction: column; gap: 6px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line-2); text-align: left; width: 100%; }
.opt[aria-pressed="true"] { border-color: var(--green); background: rgba(98, 245, 58, .1); }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #3a4d3c; flex: none; }
.opt[aria-pressed="true"] .radio { border: 6px solid var(--green); }
.opt strong { display: block; font-size: 14.5px; }
.opt small { color: var(--muted); font-size: 12.5px; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.scale button { min-height: 46px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--soft); }
.scale button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--ink); }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(79, 195, 255, .08); border: 1px solid rgba(79, 195, 255, .25); color: #bfe6ff; font-size: 13px; }
.note svg { color: var(--sky); margin-top: 1px; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(98, 245, 58, .08); border: 1px solid var(--line-green); font-size: 13.5px; color: var(--soft); }
.notice b { color: var(--text); }

/* Corpo e fotos */
.measures { display: flex; flex-direction: column; gap: 6px; }
.measures div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); font-size: 14px; }
.measures span { flex: 1; }
.measures em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--green); min-width: 44px; text-align: right; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--card-2); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo span { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(5, 8, 6, .85); font-size: 11px; font-weight: 700; }
.photo button { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 10px; background: rgba(5, 8, 6, .8); display: grid; place-items: center; color: var(--coral); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Nutrição */
.kcal { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.kring { --p: 0; --c: var(--green); width: 116px; height: 116px; flex: none; border-radius: 50%; background: radial-gradient(closest-side, var(--card) 82%, transparent 83%), conic-gradient(var(--c) calc(var(--p) * 360deg), var(--track) 0); display: grid; place-items: center; text-align: center; }
.kring b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.kring small { font-size: 11px; color: var(--muted); font-weight: 600; }
.mbars { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.mbar span { display: flex; font-size: 12px; font-weight: 600; }
.mbar span em { margin-left: auto; font-style: normal; color: var(--muted); }
.mbar i { display: block; height: 6px; margin-top: 3px; border-radius: 999px; background: var(--track); overflow: hidden; }
.mbar i b { display: block; height: 100%; border-radius: inherit; }
.cups { display: flex; gap: 5px; flex-wrap: wrap; }
.cups button { flex: 1 0 22px; max-width: 34px; height: 40px; border-radius: 6px 6px 10px 10px; border: 2px solid var(--line-2); background: var(--card-2); }
.cups button[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); }
.meal { padding: 12px 12px 12px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.meal-head { display: flex; align-items: center; gap: 10px; }
.meal-head strong { flex: 1; font-size: 14.5px; }
.meal-head small { font-size: 13px; font-weight: 700; }
.meal-head button { width: 44px; height: 44px; border-radius: 13px; background: rgba(98, 245, 58, .14); color: var(--green); display: grid; place-items: center; }
.meal ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.meal li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }
.meal li span { flex: 1; }
.meal li small { color: var(--muted); display: block; font-size: 12px; }
.meal li button { width: 36px; height: 36px; border-radius: 10px; color: var(--muted); display: grid; place-items: center; }
.macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.macro { padding: 10px 12px; border-radius: 16px; background: var(--card); border-top: 3px solid var(--c); }
.macro span { font-size: 12px; color: var(--muted); font-weight: 600; }
.macro b { display: block; font-size: 22px; font-weight: 700; }
.macro small { font-size: 12px; color: var(--muted); }
.res-main { padding: 14px 16px; border-radius: 20px; background: linear-gradient(150deg, rgba(98, 245, 58, .16), var(--card) 70%); border: 1px solid var(--line-green); display: flex; align-items: center; gap: 14px; }
.imc-bar { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #4fc3ff 0 14%, #62f53a 14% 40%, #ffb02e 40% 60%, #ff8a6b 60%); margin: 8px 0 4px; }
.imc-bar i { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: #fff; }

/* Janela de baixo (alimentos) */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .7); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: min(100%, 480px); max-height: 86vh; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--card); border: 1px solid var(--line-2); animation: up .25s var(--ease); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h2 { font-size: 20px; font-weight: 700; flex: 1; }
.food-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 120px; }
.food { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px 8px 14px; border-radius: 14px; background: var(--card-2); text-align: left; width: 100%; }
.food span { flex: 1; min-width: 0; }
.food strong { display: block; font-size: 14px; }
.food small { color: var(--muted); font-size: 12px; }
.food i { width: 36px; height: 36px; border-radius: 10px; background: rgba(98, 245, 58, .14); color: var(--green); display: grid; place-items: center; font-style: normal; font-size: 20px; font-weight: 700; }
.qty { display: flex; gap: 6px; }
.qty button { flex: 1; min-height: 40px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--soft); }
.qty button[aria-pressed="true"] { background: var(--green); color: var(--ink); border-color: var(--green); }

/* Primeiro acesso */
.stepbtn { width: 48px; height: 48px; border-radius: 14px; background: var(--track); font-size: 22px; font-weight: 600; flex: none; }
.goalbtn { min-height: 76px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); font-size: 26px; font-weight: 700; }
.goalbtn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--ink); }

/* Miniaturas dos exercícios (design) */
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumbs img, .thumbs span { width: 100%; height: 62px; border-radius: 12px; background: #fff; object-fit: cover; display: block; }
.thumbs span { background: #1a2a1b; border: 1px dashed #335a30; color: var(--soft); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.stack { display: flex; flex: none; }
.stack img, .stack span { width: 40px; height: 52px; border-radius: 10px; background: #fff; border: 2px solid var(--card); object-fit: cover; display: block; }
.stack > * + * { margin-left: -16px; }
.stack span { background: var(--card-2); }

/* Perfil */
.switch { width: 52px; height: 32px; border-radius: 999px; background: #2a3a2c; position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"]::after { left: 24px; }
.list-box { display: flex; flex-direction: column; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.list-box > * { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; font-size: 14.5px; font-weight: 600; text-align: left; width: 100%; }
.list-box > * + * { border-top: 1px solid var(--line); }
.list-box svg { color: var(--green); }
.list-box .danger, .list-box .danger svg { color: var(--coral); }

/* ---------- Tchan: semana, sequência, frase de força, conquistas ---------- */
.wring { --p: 0; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, var(--card) 80%, transparent 81%), conic-gradient(var(--green) calc(var(--p) * 360deg), var(--track) 0); }
.wring b { font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.wring small { font-size: .5em; color: var(--muted); font-weight: 600; }
.week-card { display: flex; align-items: center; gap: 14px; }
.week-card .grow { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.week-card strong { font-size: 15px; }
.week-card small { font-size: 12.5px; color: var(--muted); }
.week-card .week div { padding: 6px 0; border-radius: 10px; font-size: 11px; }
.week-card .week i { width: 20px; height: 20px; font-size: 11px; }
.streak { display: inline-flex; align-items: center; gap: 5px; color: var(--amber); font-weight: 700; }
.insight { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(120deg, rgba(98, 245, 58, .14), var(--card) 65%); border: 1px solid var(--line-green); }
.insight strong { display: block; font-size: 16px; }
.insight strong b { color: var(--green); font-size: 20px; }
.insight small { color: var(--soft); font-size: 13px; }
.compare-week { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cmp div { padding: 10px; border-radius: 14px; background: var(--card-2); display: flex; flex-direction: column; gap: 2px; }
.cmp span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cmp b { font-size: 18px; }
.cmp em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.cmp em.up { color: var(--green); }
.cmp em.down { color: var(--coral); }
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.badge { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); opacity: .72; }
.badge.on { opacity: 1; border-color: var(--line-green); background: linear-gradient(150deg, rgba(98, 245, 58, .12), var(--card) 70%); }
.badge-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card-2); color: var(--muted); margin-bottom: 4px; }
.badge.on .badge-ico { background: var(--green); color: var(--ink); }
.badge strong { font-size: 14px; }
.badge small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.badge i { --p: 0; display: block; height: 4px; margin-top: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--green) calc(var(--p) * 100%), var(--track) 0); }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

/* ---------- Treino (estilo do modo treino do Fit Mídias) ---------- */
.back-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 14px; font-weight: 700; flex: none; }
.back-pill svg { color: var(--green); }
.train-grid { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.train-left { display: flex; flex-direction: column; gap: 8px; }
.train-right { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.media video { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.folder { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.set-line { flex-wrap: wrap; row-gap: 2px; }
.set-line span:not(:first-child) { font-size: 14px; color: var(--soft); font-weight: 500; }
.set-line span:not(:first-child) b { font-size: 16px; color: var(--green); }
.suggest { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(98, 245, 58, .14), var(--card) 70%); border: 1px solid var(--line-green); text-align: left; width: 100%; }
.suggest .grow { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.suggest strong { font-size: 15px; }
.suggest small { font-size: 12.5px; color: var(--soft); }
.today-sets { display: flex; flex-wrap: wrap; gap: 6px; }
.today-sets span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--card-2); font-size: 12.5px; color: var(--soft); }
.today-sets svg { color: var(--green); }
.train-notes { padding: 10px 12px; border-radius: 12px; background: var(--card-2); color: var(--soft); font-size: 14px; }
.train-actions { margin-top: auto; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 10px; align-items: center; }
.train-actions .square { width: 52px; height: 60px; }
.train-actions .square[disabled] { opacity: .35; }
.train-actions .btn { min-height: 60px; font-size: 17px; }
.next-media { width: 52px; height: 64px; border-radius: 12px; background: #fff; overflow: hidden; flex: none; display: grid; place-items: center; }
.next-media img, .next-media video { width: 100%; height: 100%; object-fit: cover; }
.next-media.none, .media.none { background: var(--card-2); color: var(--muted); }

/* ---------- Computador (menu na lateral, telas mais largas) ---------- */
.tabbar .side-brand, .tabbar .side-fm { display: none; }
.home-grid, .home-main, .home-side, .evo-grid { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 960px) {
  #app.with-side { padding-left: 248px; }
  #app.with-side .screen { width: min(100%, 1080px); padding: 30px 40px 60px; }
  #app.with-side .top .brand { visibility: hidden; }
  .tabbar { left: 0; top: 0; bottom: 0; transform: none; width: 248px; border-radius: 0; border: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; padding: 26px 16px; background: #070b08; }
  .tabbar a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 14.5px; }
  .tabbar a:hover { background: var(--card); color: var(--text); }
  .tabbar a[aria-current="page"] { background: var(--card-2); }
  .tabbar .side-brand { display: flex; margin: 0 0 24px; padding: 0 6px !important; min-height: auto !important; }
  .tabbar .side-brand:hover { background: none !important; }
  .tabbar .side-fm { display: flex; margin-top: auto; align-items: center; gap: 10px; padding: 12px !important; border-radius: 14px !important; background: rgba(212, 255, 63, .06); border: 1px solid rgba(212, 255, 63, .2); color: var(--lime-fm) !important; font-size: 12.5px !important; }
  .side-fm b { display: block; color: var(--lime-fm); font-size: 13.5px; }
  .side-fm span { color: #c9d0b0; font-weight: 500; }
  .home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .evo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .badges { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .title { font-size: 34px; }
  .screen.full { width: min(100%, 560px); }
  .screen.full.train { width: min(100%, 1040px); padding-top: 28px; }
  .train-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .train-grid .media { height: 460px; }
  .train-right { min-height: 460px; }
  .toast { bottom: 32px; }
}

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 28px); transform: translateX(-50%); z-index: 40; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--green); color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }

@media (min-width: 900px) {
  .screen { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  #app.anim .screen > * { animation: none; }
  .spin { animation-duration: 2s; }
}
