:root {
  --bg: #0e1114;
  --surface: #181c21;
  --surface-2: #222830;
  --line: #2e353f;
  --text: #f2f4f6;
  --muted: #9aa4b0;
  --accent: #c6f432;
  --accent-ink: #141a00;
  --ok: #3ddc84;
  --ok-bg: rgba(61, 220, 132, 0.14);
  --warn: #ffcf4a;
  --danger: #ff5d5d;
  --c-fuerza: #ff8a3d;
  --c-def: #3dc8ff;
  --c-circuito: #b58cff;
  --c-core: #ffcf4a;
  --c-cardio: #ff6fae;
  --radius: 16px;
  --tap: 52px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f3f5;
    --surface: #ffffff;
    --surface-2: #eceef1;
    --line: #d8dce1;
    --text: #12161a;
    --muted: #5b6570;
    --accent: #1a1f24;
    --accent-ink: #ffffff;
    --ok: #0f9d58;
    --ok-bg: rgba(15, 157, 88, 0.12);
    --warn: #b27a00;
    --c-fuerza: #e2620b;
    --c-def: #0a8fc4;
    --c-circuito: #7b4fd6;
    --c-core: #b98a00;
    --c-cardio: #d63a82;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
/* iPhone hace zoom al tocar campos con letra menor a 16 px */
input, select, textarea { font-size: max(16px, 1em); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0.25rem 0; }
a { color: inherit; text-decoration: none; }

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 96px);
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.row.between { justify-content: space-between; margin-top: 0; }

.top { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 14px; }
.brand { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.pill { font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); }
.pill.ok { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.eyebrow { color: var(--muted); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 4px; }
.hint { background: rgba(255, 207, 74, 0.12); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; margin-top: 10px; }
.link { color: var(--c-def); font-weight: 600; font-size: 0.9rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

/* Botones */
.btn {
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.row .btn { width: auto; }
.row .btn.grow { flex: 1; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.big { min-height: 60px; font-size: 1.1rem; margin-top: 14px; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 0.95rem; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: transparent; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:focus-visible, .check:focus-visible, .chip:focus-visible, .seg button:focus-visible, .thumb:focus-visible, input:focus-visible {
  outline: 3px solid var(--c-def);
  outline-offset: 2px;
}
.icon-btn {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 1.3rem; flex: none;
}
.icon-btn.danger { background: transparent; font-size: 1.1rem; }

/* Selector segmentado */
.seg {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 14px;
  background: var(--surface-2); border-radius: 14px;
}
.seg button {
  flex: 1; min-height: 48px; border: 0; border-radius: 10px; background: transparent;
  font-weight: 700; color: var(--muted);
}
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.seg.small { margin: 6px 0 12px; }
.card .seg { margin-bottom: 0; margin-top: 8px; }

/* Selector de modo inicial */
.picker { padding-top: 8vh; }
.picker .lead { font-size: 1.3rem; margin: 8px 0 20px; }
.mode-card {
  display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left;
  padding: 20px; margin-bottom: 14px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--line);
}
.mode-card:active { border-color: var(--accent); }
.mode-card-title { font-size: 1.5rem; font-weight: 800; }
.mode-card-sub { font-weight: 600; }
.mode-card-list { color: var(--muted); font-size: 0.9rem; }

/* Días (definición) */
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.chip {
  min-height: 60px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  font-weight: 800; font-size: 1.15rem; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.chip small { font-size: 0.66rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip.on small { color: inherit; }
.plan { list-style: none; padding: 0; margin: 0; }
.plan li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plan li:last-child { border-bottom: 0; }
.plan li span { color: var(--muted); white-space: nowrap; }

/* Semana */
.big-num { font-size: 2rem; font-weight: 800; }
.big-num small { font-size: 1rem; color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; text-align: center; }
.cal-h { font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.cal-d {
  aspect-ratio: 1; border-radius: 10px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--muted);
}
.cal-d.m-fuerza { background: var(--c-fuerza); color: #111; font-weight: 800; }
.cal-d.m-definicion { background: var(--c-def); color: #111; font-weight: 800; }
.cal-d.today { outline: 2px solid var(--text); outline-offset: -2px; }
.cal-d.future { opacity: 0.35; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-left: 6px; }
.lg:first-child { margin-left: 0; }
.lg.m-fuerza, .lg.s-fuerza { background: var(--c-fuerza); }
.lg.m-definicion, .lg.s-def { background: var(--c-def); }
.lg.s-circuito { background: var(--c-circuito); }
.lg.s-core { background: var(--c-core); }
.lg.s-cardio { background: var(--c-cardio); }
.mini-sess { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.mini-sess span { color: var(--muted); text-align: right; }
.draft { border-color: var(--accent); }

/* Barra superior de pantallas internas */
.topbar {
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 5;
  margin: -12px -16px 14px; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 1.2rem; }
.date-lbl { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.date-lbl input { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; color: var(--text); font-size: 16px; }

/* Imágenes de ejercicios */
.thumb, .thumb-lg, .thumb-xl {
  position: relative; flex: none; overflow: hidden; padding: 0;
  border-radius: 12px; border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.thumb { width: 84px; height: 84px; }
.thumb-lg { width: 130px; height: 130px; }
.thumb-xl { width: 100%; aspect-ratio: 1; max-height: 60vh; border-radius: var(--radius); }
.thumb img, .thumb-lg img, .thumb-xl img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.thumb-fallback { color: #7a8491; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; }
.thumb-xl .thumb-fallback { font-size: 0.95rem; text-transform: none; font-weight: 600; }
.has-img .thumb-fallback { display: none; }
.no-img { background: var(--surface-2); }

/* Tarjeta de ejercicio en la sesión */
.session { padding-bottom: 40px; }
.ex-card.complete { border-color: var(--ok); }
.ex-head { display: flex; gap: 14px; align-items: flex-start; }
.ex-info h2 { font-size: 1.25rem; }
.target { color: var(--muted); font-weight: 600; margin: 2px 0 8px; }
.sug {
  display: inline-block; padding: 6px 10px; border-radius: 8px; font-weight: 800; font-size: 0.95rem;
  background: var(--surface-2);
}
.sug-up { background: var(--ok-bg); color: var(--ok); }
.sug-new { background: rgba(61, 200, 255, 0.14); color: var(--c-def); }
.sug-detail { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.last { font-size: 0.95rem; margin-top: 4px; }

.sets { margin-top: 12px; }
.set-row {
  display: grid; grid-template-columns: 34px 1fr 1fr 60px; gap: 8px; align-items: center;
  padding: 6px; border-radius: 12px; margin-bottom: 6px;
}
.sets.time .set-row { grid-template-columns: 34px 1fr 60px 60px; }
.play {
  height: 56px; border-radius: 12px; border: 0;
  background: var(--c-def); color: #04202c; font-size: 1.3rem; font-weight: 900;
}
.play:disabled { opacity: 0.25; }
.set-row.cardio { grid-template-columns: 44px 1fr auto; margin-top: 12px; }
.set-row.head { font-size: 0.75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; padding-bottom: 0; margin-bottom: 0; }
.set-row.head span { text-align: center; }
.set-row .n { text-align: center; font-weight: 800; color: var(--muted); }
.set-row.done { background: var(--ok-bg); }
.num {
  width: 100%; min-width: 0; height: 56px; text-align: center;
  font-size: 1.5rem; font-weight: 800;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
}
.set-row.done .num { background: transparent; border-color: transparent; }
.check {
  height: 56px; border-radius: 12px; border: 2px solid var(--line); background: transparent;
  font-size: 1.5rem; font-weight: 900; color: var(--muted);
}
.check[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #06240f; }
.check.wide { font-size: 1rem; padding: 0 16px; }

.group-head {
  display: flex; flex-direction: column; gap: 2px;
  border-left: 4px solid var(--c-circuito); padding: 4px 12px; margin: 6px 0 12px;
}
.group-head span { color: var(--muted); font-size: 0.9rem; }

/* Barra inferior de la sesión + temporizador */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px 16px calc(env(safe-area-inset-bottom) + 12px);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line);
}
.bottom-bar > * { max-width: 528px; margin-left: auto; margin-right: auto; }
.bottom-bar .btn.big { margin-top: 0; }
.timer {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border-radius: 12px; padding: 6px 6px 6px 14px; margin-bottom: 10px;
}
.timer[hidden] { display: none; }
.t-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(61, 200, 255, 0.18); transition: width 0.25s linear; }
.t-txt { position: relative; flex: 1; font-size: 1.05rem; }
.t-txt strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.timer .btn { position: relative; width: auto; }
.timer.over { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.timer.over .btn { border-color: currentColor; }

/* Historial */
.list { padding: 6px 12px; }
.ex-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ex-row:last-child { border-bottom: 0; }
.ex-row .thumb { width: 60px; height: 60px; pointer-events: none; }
.ex-row small { display: block; color: var(--muted); font-size: 0.85rem; }
.count { text-align: center; font-weight: 800; font-size: 1.2rem; }
.count small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.sess-list { list-style: none; padding: 0; margin: 10px 0 0; }
.sess-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.sess-list li span:last-child { text-align: right; font-weight: 700; }
.tag { font-size: 0.7rem; padding: 2px 6px; border-radius: 6px; margin-left: 6px; font-weight: 700; background: var(--surface-2); }
.tag.s-fuerza { color: var(--c-fuerza); }
.tag.s-def { color: var(--c-def); }
.tag.s-circuito { color: var(--c-circuito); }
.tag.s-core { color: var(--c-core); }
.tag.s-cardio { color: var(--c-cardio); }
.tips { margin: 0; padding-left: 18px; font-size: 0.95rem; }
.tips li { margin-bottom: 6px; }
.readout { min-height: 1.4em; margin: 6px 0 4px; }

.chart { width: 100%; height: auto; display: block; touch-action: manipulation; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-axis { fill: var(--muted); font-size: 11px; }
.c-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.c-dot { stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.c-dot.sel { r: 8; }
.s-fuerza.c-line { stroke: var(--c-fuerza); } .s-fuerza.c-dot { fill: var(--c-fuerza); }
.s-def.c-line { stroke: var(--c-def); } .s-def.c-dot { fill: var(--c-def); }
.s-circuito.c-line { stroke: var(--c-circuito); } .s-circuito.c-dot { fill: var(--c-circuito); }
.s-core.c-line { stroke: var(--c-core); } .s-core.c-dot { fill: var(--c-core); }
.s-cardio.c-line { stroke: var(--c-cardio); } .s-cardio.c-dot { fill: var(--c-cardio); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; text-align: center; }
.stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 4px; }
.stats span { display: block; font-size: 1.35rem; font-weight: 800; }
.stats small { color: var(--muted); font-size: 0.75rem; }

/* Barra de pestañas */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around;
  padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line);
}
.tabbar[hidden] { display: none; }
.tabbar a {
  flex: 1; max-width: 140px; min-height: 56px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
}
.tabbar a span { font-size: 1.3rem; }
.tabbar a.active { color: var(--text); background: var(--surface-2); }

/* Ventana de técnica */
.media {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
  border: 1px solid var(--line); border-radius: 20px; padding: 16px;
  background: var(--surface); color: var(--text);
}
.media::backdrop { background: rgba(0, 0, 0, 0.7); }
.media-box h2 { margin: 14px 0 8px; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px); z-index: 20;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-weight: 700;
  padding: 12px 18px; border-radius: 12px; max-width: calc(100vw - 32px); text-align: center;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .toast, .t-bar { transition: none; }
}

/* ---------- Plan por objetivo, resumen semanal y corrección de sesiones ---------- */
:root { --c-plan: #7ee081; }
@media (prefers-color-scheme: light) {
  :root { --c-plan: #23863b; }
}

.cal-d.m-plan { background: var(--c-plan); color: #111; font-weight: 800; }
.lg.m-plan, .lg.s-p0 { background: var(--c-plan); }
.lg.s-p1 { background: var(--c-def); }
.lg.s-p2 { background: var(--c-circuito); }
.s-p0.c-line { stroke: var(--c-plan); } .s-p0.c-dot { fill: var(--c-plan); }
.s-p1.c-line { stroke: var(--c-def); } .s-p1.c-dot { fill: var(--c-def); }
.s-p2.c-line { stroke: var(--c-circuito); } .s-p2.c-dot { fill: var(--c-circuito); }
.tag.s-p0 { color: var(--c-plan); }
.tag.s-p1 { color: var(--c-def); }
.tag.s-p2 { color: var(--c-circuito); }

.plan-link { margin: 10px 0 0; text-align: center; }
.plan-card strong { font-size: 1.1rem; }
.plan-card .btn { width: auto; text-decoration: none; }
a.btn { text-decoration: none; }
.link-btn {
  background: none; border: 0; padding: 10px 8px; min-height: 44px;
  color: var(--c-def); font-weight: 600; font-size: 0.9rem;
}
.link-btn:focus-visible, .tag-btn:focus-visible, .opt:focus-visible, .alt-row:focus-visible, .mode-card:focus-visible, summary:focus-visible {
  outline: 3px solid var(--c-def); outline-offset: 2px;
}

/* Asistente */
.wizard .lead { font-size: 1.25rem; font-weight: 700; margin: 18px 0 10px; }
.wizard .lead:first-child { margin-top: 0; }
.steps { display: flex; gap: 4px; margin-top: 6px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-2); }
.steps span.on { background: var(--accent); }
.mode-card.on { border-color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.stack .btn { flex-direction: column; align-items: flex-start; padding: 10px 16px; text-align: left; }
.stack .btn small { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.opt {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  min-height: var(--tap); padding: 12px 16px; border-radius: 12px;
  background: var(--surface); border: 2px solid var(--line);
}
.opt small { color: var(--muted); }
.opt.on { border-color: var(--accent); background: var(--surface-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tag-btn {
  min-height: 46px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--line); font-weight: 600;
}
.tag-btn.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.tag-btn.on::before { content: "✓ "; }

/* Vista del plan */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pill.warn { background: rgba(255, 207, 74, 0.14); color: var(--warn); font-weight: 700; }
.plan li { align-items: center; }
.plan li .grow { color: var(--text); white-space: normal; }
.plan li .grow small { display: block; color: var(--muted); font-size: 0.82rem; }
.plan li .btn { width: auto; flex: none; }
.fold > summary {
  cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; list-style: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "＋"; margin-left: auto; color: var(--muted); }
.fold[open] > summary::after { content: "－"; }
.fold[open] > summary { margin-bottom: 8px; }
.start-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.start-row span { flex: 1; }
.num.sm { width: 96px; height: 48px; font-size: 1.2rem; flex: none; }
h3.sub { margin: 14px 0 8px; }

/* Barras de series por músculo */
.bar-row { display: grid; grid-template-columns: 104px 1fr 34px; gap: 8px; align-items: center; padding: 4px 0; font-size: 0.9rem; }
.bar-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 12px; border-radius: 6px; background: var(--surface-2); }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--c-plan); }
.bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: 0.55; }

/* Resumen semanal */
.week-nav { margin-bottom: 12px; }
.week-nav .icon-btn:disabled { opacity: 0.3; }
.stats .of { display: inline; font-size: 0.9rem; color: var(--muted); }
.recs { margin: 8px 0 0; padding-left: 18px; }
.recs li { margin-bottom: 8px; }
.dir { display: inline-block; width: 1.2em; font-weight: 900; }
.dir.up { color: var(--ok); }
.dir.down { color: var(--warn); }
.dir.same { color: var(--muted); }
.sess .row.between { gap: 8px; align-items: flex-start; }

/* Sesión: aceptar o ajustar la sugerencia */
.sug-down { background: rgba(255, 207, 74, 0.14); color: var(--warn); }
.choice { margin: 10px 0 2px; }
.choice .btn { flex: 1; padding: 0 10px; }

/* Lista de alternativas al cambiar un ejercicio */
.media { overflow-y: auto; }
.alt-row {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  min-height: var(--tap); padding: 10px 14px; margin-bottom: 8px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.alt-row small { color: var(--muted); }

.plan-card .btn { white-space: nowrap; flex: none; }
.plan-card .row > div { min-width: 0; }
