:root {
  --bg: #0b0d10;
  --surface: #12151a;
  --surface-2: #181c22;
  --surface-3: #20252d;
  --border: #242a33;
  --border-strong: #323946;
  --text: #eceef2;
  --muted: #8d95a3;
  --faint: #5c6472;
  --accent: #c8f53c;
  --accent-ink: #0b0d10;
  --accent-soft: rgba(200, 245, 60, .12);
  --danger: #ff6b6b;
  --img-bg: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --nav-w: 232px;
  /* acento como texto/ícono y como línea de gráfica (en claro se oscurece para contraste) */
  --accent-fg: #c8f53c;
  --accent-line: #c8f53c;
  --accent-hover: #d6ff55;
  --accent-border: rgba(200, 245, 60, .35);
  --done-border: rgba(200, 245, 60, .45);
  --lvl1: rgba(200, 245, 60, .18);
  --lvl2: rgba(200, 245, 60, .45);
  --text-2: #c8ccd4;
  --warn: #ffb454;
  --err-bg: rgba(255, 107, 107, .1);
  --err-fg: #ff9b9b;
  --nav-bg: rgba(18, 21, 26, .94);
  --google-border: #fff;
  color-scheme: dark;
}

/* ---------- Tema claro ---------- */
:root[data-theme="light"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --surface-3: #e6e9ee;
  --border: #e2e5ea;
  --border-strong: #cfd5dd;
  --text: #13161b;
  --muted: #5b6472;
  --faint: #8d96a4;
  --accent: #c8f53c;
  --accent-ink: #0b0d10;
  --accent-soft: rgba(111, 154, 0, .12);
  --accent-fg: #4a6a00;
  --accent-line: #6f9a00;
  --accent-hover: #bbe82a;
  --accent-border: rgba(111, 154, 0, .4);
  --done-border: rgba(111, 154, 0, .55);
  --lvl1: rgba(111, 154, 0, .16);
  --lvl2: rgba(111, 154, 0, .38);
  --text-2: #39404b;
  --danger: #d23b3b;
  --warn: #9a5a00;
  --err-bg: rgba(210, 59, 59, .08);
  --err-fg: #b02d2d;
  --nav-bg: rgba(255, 255, 255, .94);
  --google-border: #cfd5dd;
  --shadow: 0 10px 30px rgba(20, 25, 35, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; }
.nav {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 28px;
  padding: 22px 14px; border-right: 1px solid var(--border); background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.brand-mark svg { width: 22px; height: 22px; stroke-width: 2.4; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; letter-spacing: -.01em; }
.brand-text span { color: var(--muted); font-size: 12px; }
.nav-links { display: flex; flex-direction: column; gap: 4px; }
.nav-links a, .nav-settings {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 500; border: 0; background: none; text-align: left; width: 100%;
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-settings:hover { background: var(--surface-2); color: var(--text); }
.nav-links a.active { background: var(--surface-3); color: var(--text); }
.nav-links a.active svg { color: var(--accent-fg); }
.nav-settings { margin-top: auto; }

.main { min-width: 0; padding: 28px 36px 60px; }
.view { display: none; max-width: 1280px; margin: 0 auto; }
.view.active { display: block; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { color: var(--accent-fg); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.page-title { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; font-weight: 800; margin: 0; }
.page-sub { color: var(--muted); margin: 6px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-2); font-weight: 600; font-size: 13px;
  transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-danger { color: var(--danger); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 12.5px; }
.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px;
  border: 0; background: transparent; color: var(--muted);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn.danger:hover { color: var(--danger); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Day tabs ---------- */
.day-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 22px; }
.day-tab {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  text-align: left; min-width: 0; transition: border-color .15s, background .15s;
}
.day-tab:hover { border-color: var(--border-strong); }
.day-tab .d { font-weight: 700; font-size: 13px; }
.day-tab .t { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.day-tab .today-dot { position: absolute; top: 10px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.day-tab.active { border-color: var(--accent-fg); background: var(--accent-soft); }
.day-tab.active .t { color: var(--text); }

/* ---------- Routine editor ---------- */
.routine-head {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 14px;
}
.routine-title {
  flex: 1 1 260px; min-width: 0; border: 0; background: transparent; font-size: 20px; font-weight: 700; letter-spacing: -.015em;
  padding: 6px 8px; border-radius: 8px;
}
.routine-title:hover { background: var(--surface-2); }
.routine-title:focus { outline: none; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.routine-title::placeholder { color: var(--faint); }
.routine-stats { display: flex; gap: 18px; color: var(--muted); font-size: 13px; padding: 0 8px; }
.routine-stats b { color: var(--text); font-weight: 700; }
.routine-actions { display: flex; gap: 8px; margin-left: auto; }

.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item {
  display: grid; grid-template-columns: 20px 28px 76px minmax(160px, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 12px 12px 12px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .15s, opacity .15s, box-shadow .15s;
}
.item:hover { border-color: var(--border-strong); }
.item.dragging { opacity: .4; }
.item.drop-before { box-shadow: 0 -3px 0 0 var(--accent-line); }
.item.drop-after { box-shadow: 0 3px 0 0 var(--accent-line); }
.handle { color: var(--faint); cursor: grab; display: grid; place-items: center; }
.handle:active { cursor: grabbing; }
.idx {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-3); font-weight: 700; font-size: 13px;
}
.thumb { width: 76px; height: 76px; border-radius: 10px; object-fit: contain; background: var(--img-bg); cursor: zoom-in; }
.item-info { min-width: 0; }
.item-name { display: block; border: 0; background: none; padding: 0; text-align: left; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.item-name:hover { color: var(--accent-fg); }
.item-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.note {
  width: 100%; margin-top: 8px; height: 30px; padding: 0 10px; border-radius: 8px;
  border: 1px solid transparent; background: var(--surface-2); font-size: 12.5px; color: var(--text);
}
.note::placeholder { color: var(--faint); }
.note:focus { outline: none; border-color: var(--border-strong); }

.fields { display: flex; gap: 8px; align-items: flex-start; }
.f { display: flex; flex-direction: column; gap: 4px; }
.f > span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.f input {
  width: 64px; height: 38px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface-2);
  text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 6px;
}
.f input:focus { outline: none; border-color: var(--accent-fg); background: var(--bg); }
.f input::placeholder { color: var(--faint); font-weight: 500; }
.f input[type=number]::-webkit-inner-spin-button, .f input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.f input[type=number] { -moz-appearance: textfield; }
.wgroup { display: flex; align-items: center; gap: 4px; }
.wgroup input { width: 74px; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border-strong); height: 38px; }
.seg button { border: 0; background: transparent; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.conv { font-size: 11.5px; color: var(--faint); height: 14px; font-variant-numeric: tabular-nums; }
.item-actions { display: flex; flex-direction: column; gap: 2px; }

.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 56px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted);
}
.empty .empty-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent-fg); }
.empty .empty-icon svg { width: 24px; height: 24px; }
.empty h3 { margin: 4px 0 0; color: var(--text); font-size: 17px; }
.empty p { margin: 0 0 8px; max-width: 380px; }

.add-row { margin-top: 12px; display: flex; justify-content: center; }
.add-row .btn { width: 100%; height: 48px; border-style: dashed; background: transparent; color: var(--muted); }
.add-row .btn:hover { color: var(--accent-fg); border-color: var(--accent-fg); background: var(--accent-soft); }

/* ---------- Library ---------- */
.lib-toolbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0 14px; margin-top: -12px; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search {
  flex: 1 1 320px; position: relative; display: flex; align-items: center;
}
.search svg { position: absolute; left: 14px; color: var(--muted); }
.search input {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface);
  padding: 0 14px 0 42px; font-size: 14.5px;
}
.search input:focus { outline: none; border-color: var(--accent-fg); }
.select {
  height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface);
  padding: 0 34px 0 14px; appearance: none; -webkit-appearance: none; font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d95a3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.select:focus { outline: none; border-color: var(--accent-fg); }
.select option { background: var(--surface); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--muted); font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { font-weight: 500; opacity: .6; font-size: 11.5px; }
.chips.sub .chip { height: 28px; font-size: 12px; }
.chips.sub .chip.on { background: var(--accent-soft); color: var(--accent-fg); border-color: var(--accent-fg); }
.lib-count { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; margin: 6px 0 14px; }

.pick-banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
}
.pick-banner .txt { flex: 1; }
.pick-banner b { color: var(--accent-fg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 1; background: var(--img-bg); border: 0; padding: 0; cursor: zoom-in; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.card-en { color: var(--faint); font-size: 11.5px; margin-top: -3px; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.tag.accent { background: var(--accent-soft); color: var(--accent-fg); }
.card-add {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 10px; border: 0;
  background: rgba(11, 13, 16, .82); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: background .15s, transform .1s;
}
.card-add:hover { background: var(--accent); color: var(--accent-ink); }
.card-add.added { background: var(--accent); color: var(--accent-ink); }
.card-add .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--text); color: var(--bg); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.sentinel { height: 1px; }
.no-results { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Today ---------- */
.today-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px;
}
.stat { background: var(--surface); padding: 14px 16px; }
.stat .k { color: var(--muted); font-size: 12px; font-weight: 500; }
.stat .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }

.workout { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 14px; }
.wcard {
  display: grid; grid-template-columns: 210px 1fr; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; transition: border-color .2s;
}
.wcard.done { border-color: var(--done-border); }
.wcard-img { position: relative; background: var(--img-bg); border: 0; padding: 0; cursor: zoom-in; }
.wcard-img img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; }
.wcard-img .num {
  position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--bg); color: var(--text); font-weight: 800; font-size: 13px;
}
.wcard.done .wcard-img .num { background: var(--accent); color: var(--accent-ink); }
.wcard-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wcard-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.wcard-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.targets { display: flex; gap: 6px; flex-wrap: wrap; }
.target { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 9px; background: var(--surface-2); min-width: 56px; }
.target .k { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.target .v { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.target .v small { color: var(--muted); font-weight: 500; font-size: 11px; margin-left: 3px; }
.sets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.set {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border-strong); background: transparent;
  font-weight: 700; font-size: 12.5px; color: var(--muted); transition: all .12s;
}
.set:hover { border-color: var(--accent-fg); color: var(--text); }
.set.on { background: var(--accent); border-color: var(--accent-fg); color: var(--accent-ink); }
.wnote { font-size: 12.5px; color: var(--muted); padding: 7px 10px; border-left: 2px solid var(--accent-line); background: var(--surface-2); border-radius: 0 8px 8px 0; }

/* ---------- Dialogs ---------- */
.dlg {
  padding: 0; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow); max-height: calc(100vh - 40px);
}
.dlg::backdrop { background: rgba(3, 4, 6, .72); backdrop-filter: blur(3px); }
.dlg[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dlg-ex { width: min(920px, calc(100vw - 32px)); }
.dlg-small { width: min(460px, calc(100vw - 32px)); }
.ex-wrap { display: grid; grid-template-columns: 400px 1fr; }
.ex-media { background: var(--img-bg); display: grid; place-items: center; }
.ex-media img { width: 100%; max-width: 400px; aspect-ratio: 1; object-fit: contain; }
.ex-info { padding: 24px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; max-height: min(640px, calc(100vh - 40px)); }
.ex-close { position: absolute; top: 12px; right: 12px; background: var(--surface-2); }
.ex-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.2; padding-right: 36px; }
.ex-en { color: var(--muted); font-size: 13px; margin-top: 4px; }
.section-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--text); }
.day-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day-pick button {
  height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2);
  font-weight: 700; font-size: 12.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.day-pick button small { font-weight: 500; color: var(--muted); font-size: 10.5px; }
.day-pick button:hover { border-color: var(--accent-fg); }
.day-pick button.has small { color: var(--accent-fg); }

.settings { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.settings h2 { margin: 0; font-size: 18px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.set-row .l b { display: block; font-weight: 600; }
.set-row .l span { color: var(--muted); font-size: 12.5px; }
.set-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px;
  box-shadow: var(--shadow); transition: all .2s; z-index: 100; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow);
  display: none;
}
.menu.open { display: block; }
.menu .mlabel { font-size: 11px; color: var(--muted); padding: 6px 10px 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: none; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 13px; }
.menu button:hover { background: var(--surface-3); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .item { grid-template-columns: 20px 28px 64px 1fr auto; }
  .thumb { width: 64px; height: 64px; }
  .item .fields { grid-column: 3 / -1; grid-row: 2; flex-wrap: wrap; }
  .item-actions { flex-direction: row; grid-column: 5; grid-row: 1; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .nav {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 30;
    flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 0; border-right: 0; border-top: 1px solid var(--border);
    background: var(--nav-bg); backdrop-filter: blur(12px);
  }
  .brand { display: none; }
  .nav-links { flex-direction: row; flex: 3; }
  .nav-links a, .nav-settings { flex: 1; flex-direction: column; gap: 3px; font-size: 11px; padding: 7px 4px; align-items: center; }
  .nav-settings { margin: 0; flex: 1; }
  .main { padding: 18px 16px 100px; }
  .page-title { font-size: 23px; }
  .day-tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .day-tabs::-webkit-scrollbar { display: none; }
  .day-tab { flex: none; width: 104px; }
  .today-summary { grid-template-columns: repeat(2, 1fr); }
  .ex-wrap { grid-template-columns: 1fr; }
  .ex-media img { max-width: 320px; }
  .ex-info { max-height: none; }
  .dlg-ex { overflow-y: auto; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
  .workout { grid-template-columns: 1fr; }
  .wcard { grid-template-columns: 170px 1fr; }
  .routine-actions { margin-left: 0; width: 100%; }
  .routine-actions .btn-primary { flex: 1; }
}
@media (max-width: 560px) {
  .item { grid-template-columns: 26px 60px 1fr auto; gap: 10px; padding: 10px; }
  .handle { display: none; }
  .thumb { width: 60px; height: 60px; }
  .item .fields { grid-column: 1 / -1; grid-row: 2; }
  .item-actions { grid-column: 4; }
  .fields { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  .f input { width: 100%; }
  .f-w { grid-column: 1 / -1; }
  .wgroup input { flex: 1; width: auto; }
  .wcard { grid-template-columns: 1fr; }
  .wcard-img img { max-height: 300px; margin: 0 auto; }
  .search-row .select { flex: 1 1 0; min-width: 0; }
  .lib-toolbar { position: static; margin-top: 0; padding-top: 0; }
}

/* ---------- PWA instalada (iPhone con barra de estado translúcida) ---------- */
body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--bg); z-index: 50;
}
.lib-toolbar { top: env(safe-area-inset-top); }
@media (max-width: 860px) {
  .main { padding-top: calc(18px + env(safe-area-inset-top)); }
}

/* ---------- Cuenta / nube ---------- */
.nav-account {
  margin-top: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text);
}
.nav-account:hover { border-color: var(--border-strong); }
.nav-account[hidden] { display: none; }
.nav-account:not([hidden]) + .nav-settings { margin-top: 0; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px;
}
.avatar svg { width: 16px; height: 16px; }
.acc-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.acc-txt b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-txt small { font-size: 11.5px; color: var(--muted); }

.cloud-banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin-bottom: 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface);
}
.cb-icon { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); }
.cloud-banner .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cloud-banner .txt b { font-size: 14px; }
.cloud-banner .txt span { color: var(--muted); font-size: 12.5px; }

.sync { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.sync svg { width: 14px; height: 14px; }
.sync.ok { color: var(--accent-fg); }
.sync.warn { color: var(--warn); }
.set-row .l { min-width: 0; }
.set-row .l b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auth { gap: 14px; }
.auth-tabs { width: 100%; height: 40px; }
.auth-tabs button { flex: 1; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input {
  height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2);
  padding: 0 12px; font-size: 15px;
}
.field input:focus { outline: none; border-color: var(--accent-fg); background: var(--bg); }
.field small { color: var(--faint); font-size: 11.5px; }
.auth-help { margin: 0; color: var(--muted); font-size: 13.5px; }
.auth-msg { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; background: var(--err-bg); color: var(--err-fg); }
.auth-msg.ok { background: var(--accent-soft); color: var(--accent-fg); }
.auth-submit { height: 44px; font-size: 14px; }
.auth-submit:disabled { opacity: .6; pointer-events: none; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice .btn { height: 44px; }

@media (max-width: 860px) {
  .nav-account { display: none; }
  .cloud-banner { flex-wrap: wrap; }
  .cloud-banner .txt { flex-basis: calc(100% - 100px); }
  .cloud-banner .btn { order: 3; width: 100%; }
}

/* ---------- Acceso con Google ---------- */
.btn-google { height: 44px; background: #fff; color: #1f1f1f; border-color: var(--google-border); font-size: 14px; gap: 10px; }
.btn-google:hover { background: #f2f2f2; }
.btn-google:disabled { opacity: .7; pointer-events: none; }
.g-icon { width: 18px; height: 18px; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* ---------- Planes ---------- */
.plan-wrap { align-self: center; }
.plan-btn {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  padding: 8px 12px 8px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); min-width: 180px;
}
.plan-btn:hover { border-color: var(--faint); }
.plan-btn .pk { grid-column: 1; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.plan-btn b { grid-column: 1; font-size: 15px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-btn svg { grid-column: 2; grid-row: 1 / span 2; justify-self: end; color: var(--muted); }
.menu-plans { min-width: 250px; }
.menu-plans .ck { width: 16px; display: inline-grid; place-items: center; color: var(--accent-fg); }
.menu-plans .pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-plans .n { color: var(--faint); font-size: 12px; }
.menu-plans button.cur { font-weight: 700; }
.menu button:disabled { opacity: .4; pointer-events: none; }
.plan-link { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border-strong); }
.plan-link:hover { color: var(--accent-fg); border-color: var(--accent-fg); }

.f select {
  height: 38px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font-weight: 600; padding: 0 6px; min-width: 76px;
}
.f select:focus { outline: none; border-color: var(--accent-fg); }

/* ---------- Registro de series (Hoy) ---------- */
.stat .v .of { font-size: 13px; color: var(--muted); font-weight: 600; }
.preview-note { color: var(--muted); font-size: 13px; margin: -6px 0 14px; }
.setlog { display: flex; flex-direction: column; gap: 4px; }
.sl-row { display: grid; grid-template-columns: 34px 1fr 1fr 40px; gap: 6px; align-items: center; }
.sl-head span { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sl-head span:first-child { text-align: center; }
.sl-n {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2);
  font-weight: 700; font-size: 12.5px; color: var(--muted);
}
.sl-in {
  width: 100%; min-width: 0; height: 36px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface-2);
  text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 4px; -moz-appearance: textfield;
}
.sl-in::-webkit-inner-spin-button, .sl-in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sl-in::placeholder { color: var(--faint); font-weight: 500; }
.sl-in:focus { outline: none; border-color: var(--accent-fg); background: var(--bg); }
.sl-check {
  width: 40px; height: 36px; border-radius: 9px; border: 1px solid var(--border-strong); background: transparent; color: var(--faint);
  display: grid; place-items: center; transition: all .12s;
}
.sl-check:hover { border-color: var(--accent-fg); color: var(--text); }
.sl-row.on .sl-check { background: var(--accent); border-color: var(--accent-fg); color: var(--accent-ink); }
.sl-row.on .sl-n { background: var(--accent-soft); color: var(--accent-fg); }
.sl-row.on .sl-in { border-color: transparent; background: var(--accent-soft); }
.sl-last {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; border-radius: 8px;
  padding: 7px 10px; background: var(--surface-2); color: var(--muted); font-size: 12px; margin-top: 2px;
}
.sl-last svg { width: 14px; height: 14px; color: var(--accent-fg); }
.sl-last span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-last:hover { color: var(--text); }
.wcard { grid-template-columns: 210px minmax(0, 1fr); }

/* ---------- Temporizador de descanso ---------- */
.rest-timer {
  position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(460px, calc(100vw - 32px)); display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.rest-timer[hidden] { display: none; }
.rt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--border); }
.rt-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.rt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.rt-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rt-time { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rt-next { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.rt-actions { display: flex; gap: 6px; }
.rt-actions button {
  height: 40px; min-width: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2);
  font-weight: 700; font-size: 13px; display: grid; place-items: center;
}
.rt-actions button:hover { border-color: var(--faint); }
.rest-timer.finished { border-color: var(--accent-fg); }
.rest-timer.finished .rt-label { color: var(--accent-fg); }
.rest-timer.finished .rt-time { font-size: 20px; }

/* ---------- Progreso ---------- */
.prog-list { display: flex; flex-direction: column; gap: 8px; }
.prog-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 96px 104px; gap: 14px; align-items: center; width: 100%; text-align: left;
  padding: 10px 14px 10px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.prog-row:hover { border-color: var(--border-strong); }
.prog-row .thumb { width: 56px; height: 56px; }
.pr-info { display: flex; flex-direction: column; min-width: 0; }
.pr-info b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-info small { color: var(--muted); font-size: 12px; }
.pr-best { display: flex; flex-direction: column; align-items: flex-end; }
.pr-best small { color: var(--muted); font-size: 11px; }
.pr-best b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ex-progress { width: 100%; }

.dlg-prog { width: min(760px, calc(100vw - 32px)); }
.prog { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.prog-head { display: flex; align-items: center; gap: 14px; }
.prog-head .thumb { width: 64px; height: 64px; cursor: default; }
.ph-txt { flex: 1; min-width: 0; }
.prog-head .ex-title { padding: 0; font-size: 19px; }
.metric-seg { align-self: flex-start; height: 38px; max-width: 100%; overflow-x: auto; }
.metric-seg button { white-space: nowrap; padding: 0 12px; }
.prog-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.prog-kpis > div { background: var(--surface); padding: 10px 14px; display: flex; flex-direction: column; }
.prog-kpis .k { font-size: 11.5px; color: var(--muted); }
.prog-kpis b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.prog-kpis b.up { color: var(--accent-fg); }
.prog-kpis small { font-size: 11px; color: var(--faint); }
.chart-wrap { position: relative; width: 100%; min-height: 220px; }
.chart { display: block; overflow: visible; max-width: 100%; }
.chart text, .ch-area, .ch-hit { stroke: none; }
.ch-grid { stroke: var(--border); stroke-width: 1; }
.ch-ylab, .ch-xlab { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ch-line { fill: none; stroke: var(--accent-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-area { fill: var(--accent-line); opacity: .1; }
.ch-dot { fill: var(--accent-line); stroke: var(--surface); stroke-width: 2; }
.ch-cross { stroke: var(--faint); stroke-width: 1; }
.ch-hit { cursor: crosshair; touch-action: pan-y; }
.ch-tip {
  position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 6px 10px; display: flex; flex-direction: column; font-size: 12px; box-shadow: var(--shadow); white-space: nowrap;
}
.ch-tip[hidden] { display: none; }
.ch-tip span { color: var(--muted); }
.ch-tip b { font-size: 14px; font-variant-numeric: tabular-nums; }
.chart-note { margin: -8px 0 0; color: var(--faint); font-size: 11.5px; }
.spark { display: block; overflow: visible; }
.spark .ch-dot { stroke-width: 1.5; }
.sess-table { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.st-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 90px; gap: 10px; padding: 9px 12px; font-size: 13px; border-top: 1px solid var(--border); align-items: center; }
.st-row:first-child { border-top: 0; }
.st-head { background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.st-sets { color: var(--text-2); font-variant-numeric: tabular-nums; }
.st-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .rest-timer { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .page-head .plan-wrap { width: 100%; }
  .plan-btn { width: 100%; }
  .plan-btn b { max-width: none; }
  .wcard { grid-template-columns: 170px minmax(0, 1fr); }
  .nav-links a, .nav-settings { font-size: 10.5px; }
}
@media (max-width: 560px) {
  .wcard { grid-template-columns: 1fr; }
  .prog-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .prog-row .thumb { width: 48px; height: 48px; }
  .pr-spark { display: none; }
  .prog { padding: 16px; }
  .prog-kpis b { font-size: 16px; }
  .st-row { grid-template-columns: 56px minmax(0, 1fr) 72px; }
  .fields { grid-template-columns: 1fr 1fr; }
}

/* ---------- Calendario ---------- */
.cal-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; margin-bottom: 24px; align-items: start; }
.cal-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 14px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-title { flex: 1; text-align: center; display: flex; flex-direction: column; line-height: 1.25; }
.cal-title b { font-size: 15px; }
.cal-title small { color: var(--muted); font-size: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 11px; font-weight: 600; color: var(--faint); padding: 2px 0 4px; }
.cal-cell {
  position: relative; aspect-ratio: 1; border-radius: 9px; border: 1px solid transparent; background: var(--surface-2);
  display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; padding: 0;
}
.cal-cell.empty { background: transparent; }
button.cal-cell:hover { border-color: var(--border-strong); }
/* Secuencial de un solo tono: más series, más intenso */
.cal-cell.lvl1, .lg.lvl1 { background: var(--lvl1); color: var(--text); }
.cal-cell.lvl2, .lg.lvl2 { background: var(--lvl2); color: var(--text); }
.cal-cell.lvl3, .lg.lvl3 { background: var(--accent); color: var(--accent-ink); }
.cal-cell.today { border-color: var(--text); }
.cal-cell.sel { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-line); }
.pdot { position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; border: 1.5px solid var(--faint); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cal-legend .pdot { position: static; margin: 0; }
.cal-day { min-width: 0; }
.cal-day .section-label { margin-top: 4px; }
.cd-sum { margin: -2px 0 10px; color: var(--muted); font-size: 13px; }
.cd-list { display: flex; flex-direction: column; gap: 6px; }
.cd-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 10px 8px 8px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.cd-item:hover { border-color: var(--border-strong); }
.cd-item .thumb { width: 44px; height: 44px; border-radius: 8px; }
.cd-item span { display: flex; flex-direction: column; min-width: 0; }
.cd-item b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-item small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) {
  .cal-layout { grid-template-columns: 1fr; }
}

/* ---------- Aviso con pantalla apagada ---------- */
.rt-hint {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 0; border: 0; background: none;
  color: var(--accent-fg); font-size: 12px; font-weight: 600; text-align: left;
}
.rt-hint svg { width: 14px; height: 14px; }
.rt-hint:hover { text-decoration: underline; }

/* ---------- Ajustes: sonido, volumen, diagnóstico ---------- */
.select-sm { height: 32px; border-radius: 9px; font-size: 12.5px; padding: 0 30px 0 10px; background-position: right 8px center; }
.range { width: 150px; accent-color: var(--accent-line); }
.diag:empty { display: none; }
.diag ul { list-style: none; margin: -8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.diag li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.diag li span { font-weight: 800; }
.diag li.ok span { color: var(--accent-fg); }
.diag li.bad span { color: var(--danger); }
.diag li.wait span { color: var(--muted); }
.dlg-small { max-height: calc(100vh - 40px); overflow-y: auto; }
@media (max-width: 560px) {
  .set-row { flex-wrap: wrap; }
  .set-row .l { flex: 1 1 100%; }
  .range { width: 100%; }
}

/* ---------- Registro de días pasados ---------- */
.cd-item { padding: 6px 6px 6px 8px; }
.cd-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: left; }
.cd-open span { display: flex; flex-direction: column; min-width: 0; }
.cd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dlg-log { width: min(520px, calc(100vw - 24px)); }
.log { gap: 14px; }
.log-head { display: flex; justify-content: space-between; align-items: center; }
.log-head h2 { margin: 0; font-size: 18px; }
.log .search { flex: none; }
.log .search input { height: 42px; }
.log-opts { display: flex; flex-direction: column; gap: 6px; max-height: min(52vh, 460px); overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.log-opts .section-label { margin: 6px 0 2px; }
.log-opt, .log-ex { display: flex; align-items: center; gap: 12px; text-align: left; }
.log-opt { width: 100%; padding: 6px 10px 6px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.log-opt:hover { border-color: var(--accent-line); }
.log-opt .thumb, .log-ex .thumb { width: 46px; height: 46px; border-radius: 8px; cursor: default; }
.log-opt span, .log-ex span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.log-opt b, .log-ex b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-opt small, .log-ex small { color: var(--muted); font-size: 12px; }
.log-unit { display: flex; justify-content: space-between; align-items: center; }
.log-unit .section-label { margin: 0; }
.log-unit .seg { height: 34px; }
.sl-del { color: var(--muted); }
.sl-del:hover { color: var(--danger); border-color: var(--danger); }
.log-addrow { align-self: flex-start; }
.log .field input[type="date"] { color-scheme: inherit; }

/* =========================================================
   Fases A–C: navegación simple, Hoy, modo entrenamiento, editor
   ========================================================= */
.top-settings { display: none; }
.hide-sm { display: inline; }
.linkish {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0;
  color: var(--accent-fg); font-weight: 600; font-size: inherit;
}
.linkish svg { width: 14px; height: 14px; }
.help {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--muted); font-size: 10px; font-weight: 800; line-height: 1; padding: 0; margin-left: 4px; vertical-align: 1px;
}

/* ---------- Hoy ---------- */
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 18px; }
.ws-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); font-variant-numeric: tabular-nums;
}
.ws-day:hover { border-color: var(--border-strong); }
.ws-l { font-size: 11px; font-weight: 600; color: var(--muted); }
.ws-n { font-size: 16px; font-weight: 800; }
.ws-day i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.ws-day i.on { background: var(--accent-line); }
.ws-day.today .ws-n { color: var(--accent-fg); }
.ws-day.active { border-color: var(--accent-line); background: var(--accent-soft); }

.welcome { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 20px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.welcome .empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.welcome .empty-icon svg { width: 28px; height: 28px; }
.welcome h3 { margin: 4px 0 0; font-size: 20px; }
.welcome p { margin: 0 0 6px; color: var(--muted); max-width: 400px; }
.welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.today-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.tb-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.tb-info b { font-size: 15px; }
.tb-go { height: 46px; padding: 0 20px; font-size: 14px; }
.mchips { display: flex; gap: 6px; flex-wrap: wrap; }
.mchip { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 8px; border-radius: 999px; }
.mchip b { color: var(--text); font-weight: 700; }
.progress.thick { height: 8px; border-radius: 4px; margin: 0 0 16px; }
.progress.thick i { border-radius: 4px; }

.today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.trow-main {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 8px 14px 8px 8px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.trow-main:hover { border-color: var(--border-strong); }
.trow.done .trow-main { border-color: var(--done-border); }
.trow-img { position: relative; flex: none; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--img-bg); }
.trow-img img { width: 100%; height: 100%; object-fit: contain; }
.trow-img .num {
  position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--bg); color: var(--text); font-size: 11.5px; font-weight: 800;
}
.trow-img .num svg { width: 13px; height: 13px; }
.trow.done .trow-img .num { background: var(--accent); color: var(--accent-ink); }
.trow-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trow-info b { font-size: 14.5px; line-height: 1.3; }
.trow-info small { color: var(--muted); font-size: 12.5px; }
.trow-info .trow-last { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow-count { flex: none; font-weight: 800; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trow-count.ok { color: var(--accent-fg); }

/* ---------- Modo entrenamiento ---------- */
.workout-mode { position: fixed; inset: 0; z-index: 55; background: var(--bg); overflow-y: auto; display: flex; flex-direction: column; }
.workout-mode[hidden] { display: none; }
body.wo-open { overflow: hidden; }
.wo-top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: var(--bg);
}
.wo-step { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.wo-step b { font-size: 14px; }
.wo-step small { font-size: 12px; color: var(--muted); }
.workout-mode > .progress { margin: 0 14px; flex: none; }
.wo-body { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.wo-media { border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--img-bg); cursor: zoom-in; }
.wo-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.wo-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wo-name { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.wo-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.wo-suggest { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: 13px; }
.wo-suggest svg { width: 16px; height: 16px; color: var(--accent-fg); margin-top: 1px; flex: none; }
.wo-suggest.ask-sg { flex-direction: column; align-items: stretch; gap: 10px; }
.wo-suggest .sg-text { display: flex; gap: 10px; align-items: flex-start; }
.wo-suggest .sg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wo-suggest .sg-actions .btn { flex: 1 1 auto; justify-content: center; }
.wo-nav {
  position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border);
}
.wo-nav .btn { height: 50px; font-size: 15px; }
/* En modo entrenamiento el temporizador va arriba (sobre la imagen) para no tapar las series */
body.wo-open .rest-timer { top: calc(66px + env(safe-area-inset-top)); bottom: auto; }
.setlog.big .sl-row { grid-template-columns: 40px 1fr 1fr 48px; gap: 8px; }
.setlog.big .sl-n { width: 40px; height: 44px; }
.setlog.big .sl-in { height: 44px; font-size: 16px; }
.setlog.big .sl-check { width: 48px; height: 44px; }

/* ---------- Resumen ---------- */
.summary { align-items: stretch; text-align: center; }
.summary h2 { margin: 0; }
.sum-hero { font-size: 44px; line-height: 1; }
.sum-prs { text-align: left; }
.sum-pr { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); margin-top: 6px; font-size: 13.5px; }
.sum-pr span { flex: 1; }

/* ---------- Rutinas: lista compacta ---------- */
.routine-head { flex-wrap: wrap; }
.routine-head .routine-title { flex: 1 1 200px; }
.routine-meta { flex: 1 1 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 8px; color: var(--muted); font-size: 13px; }
.routine-meta b { color: var(--text); }
.item { grid-template-columns: 20px minmax(0, 1fr) auto; padding: 8px 8px 8px 6px; gap: 8px; }
.item-main { display: flex; align-items: center; gap: 12px; min-width: 0; border: 0; background: none; padding: 0; text-align: left; }
.item-main .thumb { width: 60px; height: 60px; cursor: pointer; }
.item-main .item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.item-main .item-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.item-main:hover .item-name { color: var(--accent-fg); }
.item-sum { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.item-actions { flex-direction: column; }

/* Panel inferior (bottom sheet) */
.sheet { width: min(500px, calc(100vw - 32px)); }
.sheet-grab { display: none; }
.item-sheet { gap: 16px; }
.is-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.is-grid .is-w { grid-column: 1 / -1; }
.is-grid .field input, .is-grid .field select { height: 44px; width: 100%; }
.is-grid .wgroup input { flex: 1; min-width: 0; }
.is-grid .wgroup .seg { height: 44px; }
.item-sheet textarea { width: 100%; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); padding: 10px 12px; resize: vertical; }
.item-sheet textarea:focus { outline: none; border-color: var(--accent-line); }
.stepper { display: flex; align-items: center; height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.stepper button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; font-weight: 700; color: var(--text); }
.stepper button:hover { background: var(--surface-3); }
.stepper b { flex: 1; text-align: center; font-size: 17px; font-variant-numeric: tabular-nums; }
.is-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Plantillas */
.dlg-tpl { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.tpl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tpl { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.tpl-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.tpl-top b { font-size: 15px; }
.tpl p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.tpl-days { display: flex; gap: 4px; align-items: center; }
.tpl-days span { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--faint); }
.tpl-days span.on { background: var(--accent); color: var(--accent-ink); }
.tpl-days small { margin-left: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.tpl .btn { align-self: flex-start; }

/* ---------- Ajustes por secciones ---------- */
.set-sec { margin: 8px 0 -6px; font-size: 11.5px; font-weight: 700; color: var(--accent-fg); text-transform: uppercase; letter-spacing: .08em; }
.set-help { border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; background: var(--surface-2); }
.set-help summary { cursor: pointer; padding: 11px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.set-help[open] { padding-bottom: 12px; }
.set-help ol { margin: 0 0 12px; padding-left: 18px; font-size: 12.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.set-help .diag ul { margin-top: 10px; background: var(--surface); }

/* ---------- Progreso ---------- */
.prog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.prog-tabs { height: 40px; }
.prog-tabs button { padding: 0 16px; font-size: 13px; }
.mini-stats { display: flex; gap: 16px; color: var(--muted); font-size: 13px; }
.mini-stats b { color: var(--text); font-size: 15px; }
.cal-layout { grid-template-columns: 1fr; max-width: 640px; }
.rec-help { margin: 0 0 12px; }

@media (max-width: 860px) {
  .top-settings {
    display: grid; place-items: center; position: fixed; z-index: 40; top: calc(12px + env(safe-area-inset-top)); right: 14px;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  }
  .top-settings svg { width: 19px; height: 19px; }
  body.wo-open .top-settings { display: none; }
  .nav .nav-settings { display: none; }
  .nav-links { flex: 1; }
  .page-head { padding-right: 48px; }
  .wo-body { grid-template-columns: 1fr; padding: 12px 14px; gap: 14px; }
  .wo-media img { max-height: 36vh; }
  /* Panel inferior en el celular */
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; max-height: 88vh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
  .sheet[open] { animation: sheetUp .22s ease-out; }
  .sheet-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 10px auto -8px; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } }
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .week-strip { gap: 4px; margin-left: -4px; margin-right: -4px; }
  .ws-n { font-size: 15px; }
  .tb-go { width: 100%; }
  .trow-img { width: 64px; height: 64px; }
  .item-main .thumb { width: 52px; height: 52px; }
  .item-main .idx { display: none; }
  .wo-name { font-size: 19px; }
  .mini-stats { width: 100%; justify-content: flex-start; }
}

/* La lista compacta de Rutinas reemplaza a las reglas anteriores del editor */
.item-actions { grid-column: auto; grid-row: auto; }
@media (max-width: 560px) {
  .item { grid-template-columns: minmax(0, 1fr) auto; padding: 8px; }
  .item .handle { display: none; }
}

/* =========================================================
   Pantalla de acceso (login) y primeros pasos
   ========================================================= */
.gate { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); overflow-y: auto; }
.gate[hidden] { display: none; }
body.gated { overflow: hidden; }
body.gated #rest-timer, body.gated .top-settings { display: none; }

.gate-brand {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 44px 48px; overflow: hidden;
  color: #eceef2; border-right: 1px solid #1d2229;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(200, 245, 60, .16), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(200, 245, 60, .08), transparent 60%),
    linear-gradient(160deg, #12161c, #0a0c0f);
}
.gate-logo { display: flex; align-items: center; gap: 10px; }
.gate-logo .brand-mark { width: 40px; height: 40px; }
.gate-logo b { font-size: 17px; letter-spacing: -.01em; }
.gate-pitch h1 { margin: 0 0 22px; font-size: clamp(32px, 3.3vw, 48px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; }
.gate-pitch h1 span { color: #c8f53c; }
.gate-pitch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #b9bec8; font-size: 15px; }
.gate-pitch li { display: flex; align-items: center; gap: 12px; }
.gate-pitch li svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(200, 245, 60, .15); color: #c8f53c; stroke-width: 3; }
.gate-gifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 520px; }
.gate-gifs img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.gate-gifs img:nth-child(2) { transform: translateY(-14px); }

.gate-main { display: grid; place-items: center; padding: 40px 24px; }
.gate-card { position: relative; width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
.gate-card .gate-logo.mobile { display: none; }
.gate-card h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.gate-sub { margin: -6px 0 6px; color: var(--muted); font-size: 14.5px; }
.gate-close { position: absolute; top: -6px; right: -6px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .field input { height: 48px; font-size: 15px; width: 100%; }
.field-row { display: flex; justify-content: space-between; align-items: center; }
.field-row .linkish { font-size: 12.5px; }
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-right: 46px !important; }
.pass-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--faint); display: grid; place-items: center; border-radius: 8px; }
.pass-eye:hover, .pass-eye.on { color: var(--text); }
.auth-form .auth-submit { height: 48px; font-size: 15px; }
.auth-form .btn-google { height: 48px; }
.auth-submit.loading { opacity: .65; }
.gate-switch { margin: 6px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.gate-legal { margin: -4px 0 0; text-align: center; color: var(--faint); font-size: 11.5px; }
.gate-guest { align-self: center; margin-top: 10px; border: 0; background: none; padding: 6px 10px; color: var(--faint); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.gate-guest:hover { color: var(--muted); }

/* Primeros pasos */
.onboard { display: flex; flex-direction: column; gap: 16px; }
.onboard-head h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.onboard-head p { margin: 0; color: var(--muted); max-width: 600px; }
.onboard .tpl-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.onboard .tpl { background: var(--surface); }
.tpl-blank { border-style: dashed !important; border-color: var(--border-strong) !important; }
.tpl-blank-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); }

@media (max-width: 860px) {
  .gate { grid-template-columns: 1fr; }
  .gate-brand { display: none; }
  .gate-main { place-items: start center; padding: calc(40px + env(safe-area-inset-top)) 20px 32px; }
  .gate-card .gate-logo.mobile { display: flex; margin-bottom: 18px; }
  .gate-card h2 { font-size: 26px; }
}

/* ---------- Primeros pasos: carrusel de plantillas ---------- */
.onboard { gap: 12px; }
.onboard-sub { margin: -8px 0 4px; color: var(--muted); font-size: 14px; max-width: 560px; }
.car-wrap { position: relative; }
.tpl-carousel {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px;
  padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.tpl-carousel::-webkit-scrollbar { display: none; }
.tpl-carousel .tpl { flex: 0 0 min(300px, 82%); scroll-snap-align: start; background: var(--surface); gap: 9px; }
.tpl-carousel .tpl p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; min-height: 2.9em; }
.tpl-carousel .mchips { flex-wrap: nowrap; overflow: hidden; }
.tpl-carousel .mchip { white-space: nowrap; flex: none; }
.tpl-carousel .tpl .btn { align-self: stretch; height: 38px; margin-top: auto; }
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow);
}
.car-arrow.prev { left: -14px; }
.car-arrow.next { right: -14px; }
.car-arrow:disabled { opacity: 0; pointer-events: none; }
.car-dots { display: flex; justify-content: center; gap: 6px; }
.car-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--border-strong); transition: all .2s; }
.car-dots i.on { width: 18px; background: var(--accent-line); }
.blank-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px dashed var(--border-strong); background: var(--surface); color: var(--text);
}
.blank-row:hover { border-color: var(--accent-line); }
.blank-row > svg { color: var(--muted); }
.blank-icon { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); }
.blank-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.blank-txt b { font-size: 14.5px; }
.blank-txt small { color: var(--muted); font-size: 12.5px; }

/* ---------- Peso corporal ---------- */
.setlog.no-w .sl-row { grid-template-columns: 34px 1fr 40px; }
.setlog.big.no-w .sl-row { grid-template-columns: 40px 1fr 48px; }
.sl-addw { align-self: flex-start; font-size: 13px; margin-top: -4px; }
.bw-note { margin: 0; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.log-unit .bw-note { font-size: 12.5px; }
@media (hover: none), (max-width: 860px) {
  .car-arrow { display: none; }
}
.tpl-carousel .tpl { min-width: 0; }
.tpl-carousel .tpl-days span { width: 22px; height: 22px; }

/* ---------- Series por tiempo y cronómetro ---------- */
.setlog.big.time .sl-row { grid-template-columns: 40px 1fr 1fr 48px 48px; }
.setlog.big.time.no-w .sl-row { grid-template-columns: 40px 1fr 48px 48px; }
.sl-time { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sl-play {
  width: 48px; height: 44px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--text); display: grid; place-items: center;
}
.sl-play:hover { border-color: var(--accent-line); }
.sl-row.running .sl-play { background: var(--text); border-color: var(--text); color: var(--bg); }
.sl-row.running .sl-time { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); font-weight: 800; }
.sl-row.reached .sl-time { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
/* En modo entrenamiento la pantalla de abajo no se ve: no la pintamos (GIFs y desenfoque pesan) */
body.wo-open .shell { visibility: hidden; }
.sl-tip { margin: -4px 0 0; color: var(--muted); font-size: 12.5px; }
.mode-seg { height: 40px; align-self: flex-start; }
.mode-seg button { padding: 0 14px; }
.log-unit { flex-wrap: wrap; gap: 8px; }
.log-unit .seg { height: 32px; }

/* ---------- Confirmaciones con el estilo de la app ---------- */
.ask .ask-text { margin: -4px 0 4px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.ask .ask-text b { color: var(--text); }
.ask .choice .btn { height: 48px; font-size: 14.5px; }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: var(--danger); filter: brightness(1.08); }
