/* =====================================================================
   FIT — tema de entrenamiento (cobalto + brasa) y selector EAT/FIT
   ===================================================================== */
:root { --accent: var(--ink); --accent-ink: var(--paper); --accent-2: #FF6B2C; --glow: transparent; }
:root[data-mode="fit"] {
  --paper: #EEF1F7; --surface: #FFFFFF; --surface-2: #E6EAF3; --ink: #141A2B; --ink-2: #454E66; --ink-3: #7A8299;
  --line: #DDE2EC; --line-strong: #C7CEDD;
  --accent: #2B50E0; --accent-ink: #FFFFFF; --accent-2: #FF6B2C; --good: #19A37A;
  --primary: #2B50E0; --on-primary: #FFFFFF; --glow: rgba(43, 80, 224, .28);
}
@media (prefers-color-scheme: dark) {
  :root[data-mode="fit"]:not([data-theme="light"]) {
    --paper: #0C1120; --surface: #141B2E; --surface-2: #1C2440; --ink: #E8ECF6; --ink-2: #B3BBD0; --ink-3: #7F89A6;
    --line: #232C47; --line-strong: #34405F; --accent: #5A7BFF; --primary: #5A7BFF; --glow: rgba(90, 123, 255, .35);
  }
}
:root[data-mode="fit"][data-theme="dark"] {
  --paper: #0C1120; --surface: #141B2E; --surface-2: #1C2440; --ink: #E8ECF6; --ink-2: #B3BBD0; --ink-3: #7F89A6;
  --line: #232C47; --line-strong: #34405F; --accent: #5A7BFF; --primary: #5A7BFF; --glow: rgba(90, 123, 255, .35);
}
:root[data-mode="fit"] h1, :root[data-mode="fit"] .kcal-big { letter-spacing: -.045em; }

/* Selector EAT / FIT */
.modebar {
  position: fixed; z-index: 40; top: calc(10px + var(--safe-t)); right: 16px;
  display: flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow-float);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.modebar button {
  position: relative; z-index: 1; border: 0; background: none; min-width: 56px; height: 34px; padding: 0 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .06em; color: var(--ink-3);
  transition: color .3s;
}
.modebar button[aria-pressed="true"] { color: var(--accent-ink); }
.modebar .thumb-pill {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: var(--accent); box-shadow: 0 4px 14px var(--glow); transition: transform .45s cubic-bezier(.7, 0, .2, 1), background .3s;
}
:root[data-mode="fit"] .modebar .thumb-pill { transform: translateX(100%); }
.main { padding-top: calc(60px + var(--safe-t)); }
@media (min-width: 960px) {
  .modebar { position: static; margin: 0 12px 18px; }
  .modebar button { flex: 1; }
  .main { padding-top: 36px; }
}

/* Transición premium entre modos: revelado circular desde el selector */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: mode-reveal .75s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes mode-reveal {
  from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 5%)); filter: saturate(1.6); }
  to { clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 5%)); filter: saturate(1); }
}
.mode-splash {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 18vw, 160px); letter-spacing: -.06em;
  color: var(--accent); opacity: 0; animation: splash .9s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes splash { 0% { opacity: 0; transform: scale(.85); } 35% { opacity: .9; } 100% { opacity: 0; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .mode-splash { display: none; }
  ::view-transition-new(root) { animation: none; }
}

/* ---------- Componentes FIT ---------- */
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 8px 24px var(--glow); }
.btn.xl { min-height: 58px; font-size: 17px; padding: 0 26px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px 20px;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), var(--surface);
  border: 1px solid var(--line);
}
.hero-card .eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); }
.hero-card h2 { font-size: 28px; margin: 6px 0 4px; }
.stat-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 18px; }
.stat { display: grid; }
.stat b { font-family: var(--font-display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--ink-3); }
.daychips { display: flex; gap: 6px; flex-wrap: wrap; }
.daychip { min-width: 34px; height: 30px; padding: 0 8px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--ink-3); border: 0; }
.daychip.on, .daychip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
button.daychip { min-width: 42px; height: 42px; font-size: 15px; }
.card-list { display: grid; gap: 12px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.rcard.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px var(--glow); }
.rcard-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.badge.accent { background: var(--accent); color: var(--accent-ink); }

/* Editor de rutina */
.dtabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin-bottom: 12px; }
.dtabs::-webkit-scrollbar { display: none; }
.dtab { flex: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 8px 14px; text-align: left; min-width: 96px; }
.dtab b { display: block; font-size: 13px; }
.dtab span { display: block; font-size: 12px; color: var(--ink-3); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dtab[aria-pressed="true"] span { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.excard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin-top: 14px; }
.excard.ss { border-left: 4px solid var(--accent-2); }
.excard .ss-label { position: absolute; top: -10px; left: 14px; background: var(--accent-2); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.exhead { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.exthumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); flex: none; display: block; }
.exthumb img { width: 100%; height: 100%; object-fit: cover; }
.exhead .t { font-weight: 700; line-height: 1.2; }
.exhead .s { font-size: 12.5px; color: var(--ink-3); }
.exhead button.linklike { border: 0; background: none; padding: 0; text-align: left; }
.notes { width: 100%; margin-top: 10px; border: 0; border-radius: 10px; background: var(--surface-2); padding: 9px 12px; font-size: 14px; resize: none; min-height: 38px; color: var(--ink); }
.rest-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.rest-row::-webkit-scrollbar { display: none; }
.rest-row .lbl { font-size: 13px; font-weight: 700; color: var(--ink-2); flex: none; display: flex; align-items: center; gap: 4px; }
.rest-row .lbl svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.rest-row .chip { min-height: 30px; padding: 0 11px; font-size: 13px; }
.sets { margin-top: 12px; width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.sets th { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-align: center; padding: 0 4px; }
.sets td { text-align: center; padding: 0 3px; }
.sets .setno { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--ink); font-weight: 800; font-size: 14px; }
.sets .setno.w { background: color-mix(in srgb, #D39A2C 25%, transparent); color: #B8801A; }
.sets .setno.d { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.sets .setno.f { background: color-mix(in srgb, #C2413B 18%, transparent); color: #C2413B; }
.sets input { width: 100%; max-width: 110px; height: 40px; text-align: center; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.sets .del { width: 32px; height: 32px; border: 0; background: none; color: var(--ink-3); }
.sets .del svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.prev-hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.savebar { position: sticky; bottom: calc(var(--tab-h) + 12px + var(--safe-b)); z-index: 5; margin-top: 18px; }
@media (min-width: 960px) { .savebar { bottom: 16px; } }

/* Selector de ejercicios */
.picker { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; animation: rise .25s cubic-bezier(.2, .9, .3, 1); }
.picker-head { padding: calc(12px + var(--safe-t)) 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.picker-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 120px; }
.picker-foot { position: absolute; left: 16px; right: 16px; bottom: calc(16px + var(--safe-b)); }
.pgroup { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); padding: 12px 2px 6px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink-2); display: flex; justify-content: space-between; }
.prow { display: grid; grid-template-columns: 64px 1fr 28px; gap: 12px; align-items: center; width: 100%; padding: 8px 4px; border: 0; background: none; color: var(--ink); text-align: left; border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 80px; }
.prow .exthumb { width: 64px; height: 64px; }
.prow .t { font-weight: 650; line-height: 1.2; display: block; }
.prow .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; display: block; }
.pcheck { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.pcheck svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; }
.prow.sel .pcheck { background: var(--accent); border-color: var(--accent); }
.prow.sel .pcheck svg { opacity: 1; }
.attrib { font-size: 11px; color: var(--ink-3); text-align: center; padding: 16px 0; }
@media (min-width: 900px) { .picker { left: 50%; right: auto; width: 760px; transform: translateX(-50%); box-shadow: var(--shadow-sheet); } }

/* ---------- Modo entreno (gimnasio): siempre oscuro y enfocado ---------- */
.gym {
  position: fixed; inset: 0; z-index: 55; overflow-y: auto; color: #EEF2FF;
  background: radial-gradient(90% 60% at 50% 0%, rgba(90, 123, 255, .35), transparent 70%), radial-gradient(70% 50% at 100% 100%, rgba(255, 107, 44, .18), transparent 70%), #0A0F1C;
  padding: calc(12px + var(--safe-t)) 18px calc(28px + var(--safe-b));
  animation: gym-in .45s cubic-bezier(.2, .9, .3, 1);
  --ink: #EEF2FF; --ink-2: #C4CCE6; --ink-3: #8C96B8; --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18);
  --surface: rgba(255, 255, 255, .06); --surface-2: rgba(255, 255, 255, .1);
}
@keyframes gym-in { from { opacity: 0; transform: scale(1.03); } }
.gym-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 640px; margin: 0 auto; }
.gym-time { font-family: var(--font-display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.gym-time small { display: block; font-family: var(--font-body); font-size: 11.5px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.gym-time.paused b { color: #FFB86B; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .45; } }
.gbtn { height: 42px; min-width: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #EEF2FF; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.gbtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gbtn.finish { background: #19A37A; border-color: #19A37A; }
.gbtn[disabled] { opacity: .35; }
.gdots { display: flex; gap: 4px; max-width: 640px; margin: 14px auto 0; }
.gdots i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: background .3s; }
.gdots i.done { background: #19A37A; }
.gdots i.cur { background: #5A7BFF; box-shadow: 0 0 12px #5A7BFF; }
.gym-main { max-width: 640px; margin: 18px auto 0; display: grid; gap: 16px; }
.gym-media { position: relative; width: min(62vw, 270px); aspect-ratio: 1; margin: 0 auto; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px rgba(90, 123, 255, .35), 0 0 0 1px rgba(255, 255, 255, .15); }
.gym-media img { width: 100%; height: 100%; object-fit: cover; }
.gym-media .attr { position: absolute; right: 8px; bottom: 6px; font-size: 9px; color: #555; background: rgba(255, 255, 255, .85); padding: 1px 5px; border-radius: 4px; }
.gym-title { text-align: center; }
.gym-title h2 { font-size: 26px; line-height: 1.1; }
.gym-title p { color: var(--ink-3); margin-top: 4px; font-size: 14px; }
.gym-setlabel { display: flex; justify-content: center; gap: 8px; align-items: center; font-weight: 700; flex-wrap: wrap; }
.gym-setlabel .pill { padding: 4px 12px; border-radius: 999px; background: rgba(90, 123, 255, .2); color: #AFC0FF; font-size: 13px; }
.gym-setlabel .pill.ss { background: rgba(255, 107, 44, .22); color: #FFB08A; }
.gym-setlabel .pill.w { background: rgba(211, 154, 44, .25); color: #F5CE7A; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gstep { border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); padding: 10px 8px; display: grid; gap: 6px; text-align: center; }
.gstep label { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--ink-3); }
.gstep .row { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 2px; }
.gstep input { width: 100%; min-width: 0; background: none; border: 0; text-align: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 36px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gstep input:focus { outline: none; }
.gstep .gbtn { width: 40px; min-width: 40px; height: 40px; padding: 0; }
.gym-prev { text-align: center; font-size: 13px; color: var(--ink-3); }
.gym-prev b { color: var(--ink-2); }
.gym-cta { height: 64px; border: 0; border-radius: 20px; font-size: 18px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #3E63FF, #6B4BFF); box-shadow: 0 14px 40px rgba(80, 100, 255, .45); display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .12s; width: 100%; }
.gym-cta:active { transform: scale(.97); }
.gym-cta svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.6; }
.gym-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.setstrip { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.setstrip button { min-width: 62px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 12.5px; font-weight: 700; text-align: center; color: var(--ink-3); border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.setstrip button.done { background: rgba(25, 163, 122, .18); color: #7BE3C1; }
.setstrip button.skip { text-decoration: line-through; opacity: .5; }
.setstrip button.cur { border-color: #5A7BFF; color: #fff; }
.gym-notes { font-size: 13.5px; color: #FFD9B8; background: rgba(255, 107, 44, .12); border-radius: 12px; padding: 8px 12px; text-align: center; }
.flash { animation: flash .7s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(25, 163, 122, .8); } 100% { box-shadow: 0 0 0 30px rgba(25, 163, 122, 0); } }

/* Descanso */
.rest { position: fixed; inset: 0; z-index: 57; display: grid; place-items: center; background: rgba(6, 9, 18, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: fade .25s ease; color: #EEF2FF; padding: 24px; }
.rest-inner { display: grid; gap: 18px; justify-items: center; width: 100%; max-width: 420px; text-align: center; }
.ring { position: relative; width: min(70vw, 280px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: rgba(255, 255, 255, .1); }
.ring .fg { stroke: url(#ringGrad); stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(90, 123, 255, .8)); }
.ring .num { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--font-display); font-size: 64px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ring .num small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #8C96B8; }
.rest .next { font-size: 14px; color: #C4CCE6; }
.rest .next b { color: #fff; }
.rest .gbtn { height: 48px; }
.rest-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Resumen final */
.summary-hero { text-align: center; padding: 10px 0 4px; }
.summary-hero .big { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -.05em; }
.pr-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 107, 44, .18); color: #FF8F5A; font-size: 12px; font-weight: 800; }
.pr-badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.fb-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 14px; display: grid; gap: 10px; }
.fb-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb-opts button { border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #EEF2FF; padding: 10px 6px; display: grid; gap: 2px; text-align: center; }
.fb-opts button b { font-size: 14px; }
.fb-opts button span { font-size: 11.5px; color: #8C96B8; font-variant-numeric: tabular-nums; }
.fb-opts button[aria-pressed="true"] { background: #3E63FF; border-color: #3E63FF; box-shadow: 0 8px 24px rgba(62, 99, 255, .45); }
.fb-opts button[aria-pressed="true"] span { color: #DDE4FF; }
.fb-opts button.sug::after { content: "Sugerido"; font-size: 10px; font-weight: 800; color: #19A37A; }
.fb-opts button[aria-pressed="true"].sug::after { color: #BFFFE9; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { border-radius: 18px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); }
.tile b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile span { font-size: 12.5px; color: var(--ink-3); }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

/* Progreso FIT */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.bars i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: var(--accent); min-height: 3px; opacity: .8; }
.bars div.cur i { opacity: 1; box-shadow: 0 6px 18px var(--glow); }
.bars span { font-size: 10.5px; color: var(--ink-3); }
.hbar { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: 13.5px; padding: 4px 0; }
.hbar i { display: block; height: 10px; border-radius: 5px; background: var(--accent); }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.workout-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, #2B50E0 14%, transparent); color: #2B50E0; font-size: 13px; font-weight: 700; }
.workout-chip svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Asistentes de bienvenida (EAT y FIT) ---------- */
body.onboarding .tabbar, body.onboarding .modebar { display: none; }
body.onboarding .main { padding-top: calc(16px + var(--safe-t)); padding-bottom: 40px; max-width: 560px; }
.wiz { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; gap: 18px; }
.wiz-progress { display: flex; gap: 5px; }
.wiz-progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background .35s; }
.wiz-progress i.done { background: var(--accent); opacity: .5; }
.wiz-progress i.cur { background: var(--accent); }
.wiz.eat .wiz-progress i.done, .wiz.eat .wiz-progress i.cur { background: var(--ink); }
.wiz-body { flex: 1; animation: wiz-in .38s cubic-bezier(.2, .9, .3, 1); }
@keyframes wiz-in { from { opacity: 0; transform: translateX(calc(24px * var(--dir, 1))); } }
.wiz-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--accent); margin-bottom: 8px; }
.wiz.eat .wiz-eyebrow { color: var(--fat); }
.wiz-title { font-size: clamp(28px, 7vw, 38px); line-height: 1.05; }
.wiz-sub { color: var(--ink-2); margin-top: 10px; font-size: 16px; max-width: 46ch; }
.wiz-content { margin-top: 22px; }
.wiz-q { font-weight: 700; margin: 20px 0 10px; }
.wiz-cards { display: grid; gap: 10px; }
.wiz-card { position: relative; text-align: left; padding: 15px 16px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); display: grid; gap: 2px; transition: border-color .15s, box-shadow .15s, transform .08s; }
.wiz-card:active { transform: scale(.985); }
.wiz-card b { font-size: 16px; }
.wiz-card span { font-size: 13.5px; color: var(--ink-3); }
.wiz-card em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); padding: 2px 8px; border-radius: 999px; }
.wiz-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 22px var(--glow); }
.wiz.eat .wiz-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.wiz-cards:has(.wiz-card:only-child), .wiz-cards[data-cards="sex"], .wiz-cards[data-cards="meals_per_day"], .wiz-cards[data-cards="gym_min"], .wiz-cards[data-cards="fit_session_min"] { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.wiz-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wiz-days .daychip { min-width: 0; width: 100%; height: 46px; font-size: 15px; padding: 0; }
.wiz.eat .daychip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.wiz-sport { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.wiz-hero-icon { display: grid; place-items: center; padding: 30px 0; }
.wiz-hero-icon img { border-radius: 24px; box-shadow: 0 18px 40px rgba(43, 80, 224, .28); }
.wiz-nav { position: sticky; bottom: calc(12px + var(--safe-b)); display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 8px; background: linear-gradient(transparent, var(--paper) 30%); }
.wiz-nav .btn.primary { flex: 1; max-width: 320px; margin-left: auto; }
