:root {
  color-scheme: dark;
  --bg: #0e0f11;
  --surface: #17191c;
  --surface-2: #1f2226;
  --line: #2a2e33;
  --text: #f2f3f5;
  --muted: #8b929b;
  --accent: #c8f542;
  --accent-ink: #141a04;
  --accent-2: #5ec8ff;
  --swap: #ffb547;
  --danger: #ff6b6b;
  --ok: #58d68d;
  --radius: 16px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p { margin: 6px 0; }
svg { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small, small { font-size: 12.5px; }
.pre { white-space: pre-line; }
.grow { flex: 1; min-width: 0; }
.center { display: block; margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(14, 15, 17, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 17px; }
.brand svg { color: var(--accent); width: 24px; height: 24px; }
.top-r { display: flex; align-items: center; gap: 8px; }
.viewing {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 720px; margin: 10px auto 0; padding: 8px 14px;
  background: var(--surface-2); border-radius: 12px; font-size: 13.5px;
  margin-left: max(16px, calc(50% - 360px)); margin-right: max(16px, calc(50% - 360px));
}
.view {
  max-width: 720px; margin: 0 auto;
  padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 90px);
}
.h { font-size: 24px; font-weight: 800; margin: 6px 0 14px; }
.sub { font-size: 15px; color: var(--muted); font-weight: 600; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.head-row { margin-bottom: 4px; }
.head-row .h { margin-bottom: 8px; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(20, 22, 25, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tabs.six { grid-template-columns: repeat(6, 1fr); }
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px; font-weight: 600;
}
.tabs a svg { width: 22px; height: 22px; }
.tabs a.on { color: var(--accent); }
@media (min-width: 760px) {
  .tabs { left: 50%; transform: translateX(-50%); width: 720px; bottom: 12px; border-radius: 20px; border: 1px solid var(--line); height: var(--nav-h); padding-bottom: 0; }
}

/* ---------- Componentes ---------- */
.card {
  display: block; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; color: inherit; text-align: left; font: inherit;
}
.card h3, .card h4 { margin-bottom: 6px; }
.card.hl { border-color: var(--accent); background: linear-gradient(135deg, rgba(200, 245, 66, .12), var(--surface) 60%); }
.card.day.next { border-color: rgba(200, 245, 66, .55); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between, .between { justify-content: space-between; }
.row > input { flex: 1; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 12px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .08s, background .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.danger, .link.danger, .icon-btn.danger { color: var(--danger); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.lg { min-height: 54px; font-size: 16px; }
.btn.block { width: 100%; margin-top: 8px; }
.link { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; padding: 10px 0; cursor: pointer; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 22px;
}
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(200, 245, 66, .14); color: var(--accent); font-size: 12px; font-weight: 700;
}
.pill.warn { background: rgba(255, 181, 71, .15); color: var(--swap); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.chip.xs { padding: 2px 8px; font-size: 11px; }
.chip.xs svg { width: 12px; height: 12px; }
.chip.tog { cursor: pointer; }
.chip.tog.on { background: rgba(255, 107, 107, .14); border-color: var(--danger); color: var(--danger); text-decoration: line-through; }
.avatar {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-2); color: var(--accent); font-weight: 800; font-size: 14px; flex: none;
}
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }

label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit; font-size: 16px; min-height: 46px;
}
.row > input { margin-top: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea.mono, .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.form h4 { margin-bottom: 12px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stats.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .stats.four { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-size: 22px; font-weight: 800; }
.stat span { font-size: 12px; color: var(--muted); }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--line); margin-bottom: 10px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }

.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.bar > div { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }

.loading { display: grid; place-items: center; min-height: 50vh; }
.loading span { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.note { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; color: var(--muted); }
.ok-box, .err-box, .warn-box { border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.ok-box { background: rgba(88, 214, 141, .1); border: 1px solid rgba(88, 214, 141, .4); }
.err-box { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .4); color: #ffb3b3; }
.warn-box { background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .4); }

/* ---------- Auth ---------- */
.auth { max-width: 420px; margin: 0 auto; padding: 40px 16px; }
.auth-brand { text-align: center; margin-bottom: 24px; }
.logo-big { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--surface); color: var(--accent); margin-bottom: 12px; }
.logo-big svg { width: 36px; height: 36px; }
.auth-brand h1 { font-size: 30px; font-weight: 800; }
.auth-brand p { color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.seg button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; padding: 10px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--surface-2); color: var(--text); }
.demo { border-style: dashed; }
.demo .row .btn { flex: 1; }

/* ---------- Inicio ---------- */
.ex-preview { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Modo entrenamiento ---------- */
.train-head { margin-bottom: 10px; }
.train-head .h { margin: 2px 0 0; }
.tip {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px;
  border-radius: 12px; background: rgba(255, 181, 71, .08); border: 1px solid rgba(255, 181, 71, .3);
  font-size: 13.5px; color: #ffd9a0;
}
.tip svg { color: var(--swap); }
.ex { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; transition: border-color .2s; }
.ex.complete { border-color: rgba(200, 245, 66, .45); }
.ex.swapped { border-color: rgba(255, 181, 71, .55); }
.ex-head { display: flex; gap: 10px; align-items: flex-start; }
.ex-head h4 { font-size: 16.5px; }
.ex-idx { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); font-weight: 800; font-size: 13px; color: var(--muted); flex: none; }
.ex.complete .ex-idx { background: var(--accent); color: var(--accent-ink); }
.presc { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.swap-note { display: flex; align-items: center; gap: 5px; color: var(--swap); font-size: 12.5px; margin: 2px 0 0; }
.swap-note svg { width: 14px; height: 14px; }
.swap-btn { color: var(--swap); border-color: rgba(255, 181, 71, .45); background: rgba(255, 181, 71, .08); }
.swap-btn svg { width: 16px; height: 16px; }
.last { font-size: 12.5px; color: var(--muted); margin: 10px 0 6px; }
.last b { color: var(--text); font-weight: 600; }
.sets { display: grid; gap: 6px; }
.set { display: grid; grid-template-columns: 26px 1fr auto 1fr 46px; gap: 8px; align-items: center; }
.set .sn { color: var(--muted); font-weight: 700; text-align: center; font-size: 13px; }
.set input { margin: 0; text-align: center; padding: 10px 6px; font-weight: 600; }
.set .x { color: var(--muted); font-size: 13px; }
.set.done { grid-template-columns: 26px 1fr 46px; background: rgba(200, 245, 66, .06); border-radius: 12px; padding: 4px 0; }
.set .val { font-weight: 700; padding-left: 6px; }
.set .val small { display: block; color: var(--swap); font-weight: 500; }
.chk {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
}
.chk.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chk:disabled { opacity: .6; }

.rest {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--safe-b) + 10px);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
  background: var(--accent); color: var(--accent-ink); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-weight: 700;
}
.rest b { font-size: 22px; font-variant-numeric: tabular-nums; min-width: 56px; }
.rest button { background: rgba(0, 0, 0, .15); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
@media (min-width: 760px) { .rest { bottom: calc(var(--nav-h) + 24px); } }

/* ---------- Hoja inferior (alternativas, formularios) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto;
  max-width: 640px; margin: 0 auto;
  background: var(--surface); border-radius: 22px 22px 0 0; border: 1px solid var(--line);
  padding: 22px 16px calc(24px + var(--safe-b));
  transform: translateY(100%); transition: transform .25s ease-out;
}
.sheet-wrap.open .sheet-bg { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet h3 { margin-right: 40px; font-size: 20px; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); font-size: 22px; cursor: pointer; }
.sec { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
.alts { display: grid; gap: 8px; }
.alt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font: inherit; cursor: pointer;
}
.alt:hover, .alt:active { border-color: var(--accent); }
.alt small { display: block; color: var(--muted); margin-top: 2px; }
.alt small.ok { color: var(--ok); }
.alt.orig { border-color: rgba(200, 245, 66, .5); margin-top: 12px; }
.busy { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.code { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 45vh; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.prs { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: rgba(200, 245, 66, .1); margin-bottom: 10px; }
.prs svg { color: var(--accent); }
.prs small { display: block; color: var(--muted); }

/* ---------- Rutina ---------- */
.exlist { margin: 8px 0 0; padding-left: 20px; }
.exlist li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.exlist li:last-child { border-bottom: 0; }
.exlist b, .exlist span, .exlist small { display: block; }
.exlist span { font-size: 13px; }
.exlist small { color: var(--muted); }
.alt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.alt-chips svg { color: var(--swap); width: 16px; height: 16px; }

/* ---------- Progreso ---------- */
.chart { position: relative; height: 230px; margin-top: 8px; }
.chart.sm { height: 170px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; white-space: nowrap; }
.sess summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.sess summary::-webkit-details-marker { display: none; }
.sess summary .muted { display: block; font-size: 13px; }
.sess[open] summary { margin-bottom: 10px; }
.sess-ex { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.sess-ex small { display: block; color: var(--swap); }
.sess-ex span { color: var(--muted); text-align: right; }
.sess .row { margin-top: 8px; }

/* ---------- Peso / metas / alumnos ---------- */
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }
.goal h4 { margin: 8px 0 2px; }
.goal.done { opacity: .75; }
.goal .row { margin-top: 10px; }
.athlete { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.athlete .grow b, .athlete .grow span { display: block; }
.athlete.sel { border-color: var(--accent); }
.chev { color: var(--muted); font-size: 24px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, -20px); opacity: 0; transition: all .25s;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: var(--danger); color: #fff; }

@media (max-width: 380px) {
  .grid2 { grid-template-columns: 1fr; }
  .tabs a span { font-size: 10px; }
  .swap-btn span { display: none; }
}

/* ---------- Coach IA ---------- */
.ai-cta { display: flex; align-items: center; gap: 12px; border-color: rgba(94, 200, 255, .35); background: linear-gradient(135deg, rgba(94, 200, 255, .1), var(--surface) 65%); }
.ai-cta b, .ai-cta .grow span { display: block; }
.ai-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(94, 200, 255, .15); color: var(--accent-2); flex: none; }
.ai-title { display: flex; align-items: center; gap: 8px; }
.ai-title svg { color: var(--accent-2); width: 24px; height: 24px; }
.chat { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 12px; }
.msg { display: flex; }
.msg.me { justify-content: flex-end; }
.bub { max-width: 88%; padding: 10px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; overflow-wrap: anywhere; }
.msg.me .bub { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); border-bottom-right-radius: 6px; }
.msg.ai .bub { border-bottom-left-radius: 6px; }
.bub p { margin: 4px 0; }
.bub ul { margin: 4px 0; padding-left: 20px; }
.bub code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.bub .code { font-size: 11.5px; max-height: 240px; }
.rcard { display: grid; gap: 6px; margin: 10px 0; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid rgba(200, 245, 66, .45); }
.rcard svg { color: var(--accent); }
.rcard.pending { display: flex; align-items: center; gap: 8px; border-style: dashed; color: var(--muted); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.suggest { margin: 0 0 12px; }
.suggest .chip { cursor: pointer; color: var(--text); white-space: normal; text-align: left; }
.composer {
  position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 5;
  display: flex; gap: 8px; align-items: flex-end; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
}
.composer textarea { margin: 0; border: 0; background: transparent; resize: none; min-height: 44px; max-height: 160px; padding: 10px; }
.composer textarea:focus { border: 0; }
.composer .btn { width: 44px; padding: 0; flex: none; }
.center-text { text-align: center; margin-top: 10px; }
@media (min-width: 760px) { .composer { bottom: calc(var(--nav-h) + 24px); } }

/* ---------- Extras y cardio ---------- */
.add-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 4px; }
.pill.extra { background: rgba(94, 200, 255, .14); color: var(--accent-2); padding: 1px 8px; font-size: 11px; }
.ex.cardio .ex-idx { color: var(--accent-2); }
.ex.cardio.complete .ex-idx { background: var(--accent-2); color: #04121b; }
label.check { display: flex; gap: 10px; align-items: center; margin: 12px 0 4px; color: var(--text); font-weight: 500; }
label.check input { width: 20px; height: 20px; min-height: 0; margin: 0; flex: none; accent-color: var(--accent); }
.add-list { margin-top: 10px; max-height: 50vh; overflow-y: auto; }

/* ---------- MVP: test, catálogo, actividades, semana ---------- */
.block { display: block; }
.block-link { display: block; margin-top: 6px; }
.err-text { color: #ffb3b3; }
.icon-btn.on { color: var(--accent); }
.icon-btn.sm { width: 28px; height: 28px; font-size: 18px; vertical-align: middle; }
.card.inner { background: var(--bg); margin: 10px 0; }
.card.warn { border-color: rgba(255, 181, 71, .45); }
.card.start h3 { margin-bottom: 4px; }
.choice {
  display: block; width: 100%; text-align: left; margin-top: 10px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer;
}
.choice:hover, .choice:active { border-color: var(--accent); }
.choice b { display: block; }
.choice span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.week h4 { margin: 0; }
.week .stats { margin: 12px 0 8px; }
.week .stat b { font-size: 20px; }
.week-dots { display: flex; gap: 4px; }
.wd { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.wd.on { background: var(--accent); color: var(--accent-ink); }
.wd.today { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.kcal { display: flex; align-items: center; gap: 6px; }
.kcal svg { width: 16px; height: 16px; color: var(--swap); }
.acts li { font-size: 13.5px; gap: 8px; }
.test-head { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.opts { display: grid; gap: 10px; margin-top: 8px; }
.opt {
  display: block; width: 100%; text-align: left; padding: 16px; border-radius: 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit;
}
.opt b { display: block; font-size: 16px; }
.opt span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.opt.on { border-color: var(--accent); background: linear-gradient(135deg, rgba(200, 245, 66, .12), var(--surface) 70%); }
.opts.multi + .btn { margin-top: 14px; }
.steps { padding-left: 20px; margin: 8px 0 0; }
.steps li { margin-bottom: 14px; }
.steps textarea { margin-top: 8px; }
.steps .btn { margin-top: 8px; }
.map-list li { padding: 8px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.map-list li:last-child { border-bottom: 0; }
.set-row { display: flex; align-items: center; gap: 12px; }
.set-row b, .set-row .muted { display: block; }
.card.list { padding: 4px 0; }
.cat-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 16px;
  background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer;
}
.cat-row:last-child { border-bottom: 0; }
.chip .chip-x { background: none; border: 0; color: var(--danger); font-size: 16px; padding: 0 0 0 4px; cursor: pointer; line-height: 1; }
.chip.tog-eq.on { background: rgba(200, 245, 66, .14); border-color: var(--accent); color: var(--accent); }
.alt.new { border-style: dashed; border-color: rgba(94, 200, 255, .5); }
.alt.new b { color: var(--accent-2); }
.dup-row { margin-top: 6px; }
.exlist li.editable { cursor: pointer; }
.set.cardio-set { grid-template-columns: 26px 1fr 1fr 1fr 46px; }
.cardio-head { display: grid; grid-template-columns: 26px 1fr 1fr 1fr 46px; gap: 8px; font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 2px; }
