:root {
  --bg: #0a0a0a;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --border: #2b2b2b;
  --text: #f3f3f3;
  --muted: #9b9b9b;
  --accent: #66ff00;
  --accent-ink: #0a0a0a;
  --danger: #ff5a5a;
  --radius: 14px;
  --accent-fill: #66ff00;
  --accent-soft: #1a2a0c;
  --accent-soft-2: #2a4a10;
  --accent-line: #3a5a1a;
  --accent-faint: rgba(102,255,0,.03);
  --accent-text-soft: #b9f58f;
  --hero-1: #1a2a0c;
  --bar-bg: rgba(10,10,10,.92);
  --shadow: rgba(0,0,0,.6);
  --ok-text: #c8ff9e;
  --warn-bg: #2a2108; --warn-line: #4d3a0c; --warn-text: #ffd58a;
  --err-bg: #2a1010; --err-line: #4a2020; --err-text: #ffb3b3;
  color-scheme: dark;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.accent { color: var(--accent); }

/* ---------- Layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10; background: var(--bar-bg);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1000px; margin: 0 auto; padding: .7rem 16px; display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span b { color: var(--accent); }
.topnav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.topnav a, .linkbtn {
  color: var(--muted); padding: .45rem .7rem; border-radius: 10px; font-size: .95rem;
  background: none; border: 0; font: inherit; cursor: pointer;
}
.topnav a:hover, .linkbtn:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.topnav a.on { color: var(--accent); }

main { max-width: 1000px; margin: 0 auto; padding: 1.25rem 16px 6rem; }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: var(--bar-bg);
  backdrop-filter: blur(8px); border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom));
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-size: .72rem; padding: .3rem 0;
}
.bottomnav a:hover { text-decoration: none; color: var(--text); }
.bottomnav a.on { color: var(--accent); }
.bottomnav svg { width: 24px; height: 24px; }
@media (min-width: 760px) {
  .bottomnav { display: none; }
  main { padding-bottom: 3rem; }
}
@media (max-width: 759px) {
  .client .topnav .hide-mobile { display: none; }
}

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.back { display: inline-block; margin-bottom: .5rem; color: var(--muted); font-size: .9rem; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem;
}
.card + .card { margin-top: 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.card-head h2, .card-head h3 { margin: 0; }
a.card { display: block; color: var(--text); transition: border-color .15s; }
a.card:hover { border-color: var(--accent); text-decoration: none; }
.hero {
  background: linear-gradient(135deg, var(--hero-1), var(--surface) 60%); border-color: var(--accent-line);
}
.note {
  border-left: 3px solid var(--accent); background: var(--surface-2); padding: .75rem 1rem;
  border-radius: 0 10px 10px 0;
}
.stat { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

.badge {
  display: inline-block; font-size: .72rem; padding: .15rem .55rem; border-radius: 99px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap;
}
.badge.on { color: var(--accent-ink); background: var(--accent-fill); border-color: var(--accent-fill); }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .75rem 0; border-top: 1px solid var(--border); }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list > li:last-child { padding-bottom: 0; }

.exercise {
  display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 0; border-top: 1px solid var(--border);
}
.exercise:first-of-type { border-top: 0; }
.exercise .num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; border: 1px solid var(--border);
}
.exercise .thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.exercise .body { flex: 1; min-width: 0; }
.exercise .name { font-weight: 650; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.chip {
  font-size: .8rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .1rem .5rem;
}
.chip b { color: var(--accent); font-weight: 700; }

/* ---------- Forms ---------- */
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.field { margin-bottom: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
input[type=url], input[type=tel], input[type=search], select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
  padding: .65rem .75rem; font: inherit; font-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 90px; resize: vertical; }
input[type=file] { color: var(--muted); font-size: .9rem; }
.check { display: flex; align-items: center; gap: .5rem; color: var(--text); font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); padding: .6rem 1rem; border-radius: 10px;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.btn:hover { border-color: var(--muted); text-decoration: none; }
.btn.primary { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent-fill); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); border-color: var(--err-line); background: transparent; }
.btn.danger:hover { border-color: var(--danger); }
.btn.sm { padding: .35rem .65rem; font-size: .85rem; border-radius: 8px; }
.btn.icon { padding: .35rem .5rem; }
.btn.block { width: 100%; }
form.inline { display: inline; }

.feelings { display: flex; gap: .35rem; }
.feelings label { margin: 0; }
.feelings input { position: absolute; opacity: 0; pointer-events: none; }
.feelings span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; font-size: 1.4rem;
  background: var(--bg); border: 1px solid var(--border); cursor: pointer;
}
.feelings input:checked + span { border-color: var(--accent); background: var(--accent-soft); }

details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details.fold > summary { color: var(--accent); font-weight: 600; font-size: .9rem; }
details.fold[open] > summary { margin-bottom: .75rem; }

/* ---------- Trainer editor ---------- */
.item-row { border-top: 1px solid var(--border); padding: .75rem 0; }
.item-row:first-child { border-top: 0; }
.item-grid { display: grid; gap: .5rem; grid-template-columns: repeat(4, 1fr); }
.item-grid .wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .item-grid { grid-template-columns: repeat(2, 1fr); } }
.item-grid label { font-size: .75rem; margin-bottom: .15rem; }
.item-grid input, .item-grid select { padding: .45rem .6rem; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .5rem; border-top: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
.table-wrap { overflow-x: auto; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters input { flex: 1; min-width: 180px; }
.filters select { width: auto; }

/* ---------- Flash ---------- */
.flash { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid; }
.flash.ok { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ok-text); }
.flash.error { background: var(--err-bg); border-color: var(--err-line); color: var(--err-text); }
.secret {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.1rem; background: var(--bg);
  padding: .3rem .6rem; border-radius: 8px; border: 1px dashed var(--accent); color: var(--accent); user-select: all;
}

/* ---------- Media ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ex-image { border-radius: var(--radius); max-height: 420px; object-fit: contain; background: var(--surface-2); margin: 0 auto; }

.chart { width: 100%; height: auto; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--bg); stroke: var(--accent); stroke-width: 2.5; }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 4 4; }
.chart text { fill: var(--muted); font-size: 12px; font-family: var(--font); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 380px; }
.login .logo { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 1.25rem; }
.login h1 { text-align: center; }
.login .sub { text-align: center; color: var(--muted); margin-bottom: 1.5rem; }

.empty { text-align: center; color: var(--muted); padding: 1.5rem 1rem; }
.meal-time { color: var(--accent); font-weight: 700; font-size: .85rem; }
.day-done { color: var(--accent); font-size: .8rem; }

.dash { align-items: start; }
@media (min-width: 900px) { .dash { grid-template-columns: 2fr 1fr; } }
.toolbar { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }

/* =================== v2 =================== */
:root { --warn: #ffb020; }
.dot-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--accent-fill); color: var(--accent-ink); font-size: .7rem; font-weight: 800; line-height: 1; vertical-align: middle;
}
a.dot-count:hover { text-decoration: none; }
.navicon { position: relative; display: inline-flex; }
.navicon .dot-count { position: absolute; top: -6px; right: -10px; }
.flash.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }
.badge.warn { color: #1a1200; background: var(--warn); border-color: var(--warn); }
button.badge { cursor: pointer; font: inherit; font-size: .72rem; }
.linkbtn.accent { color: var(--accent); padding: 0; }
code { background: var(--surface-2); padding: .05rem .35rem; border-radius: 6px; font-size: .85em; }

/* top nav: en móvil se desplaza horizontalmente (entrenadora) */
.topnav { overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { white-space: nowrap; }
@media (max-width: 759px) {
  .trainer .topbar-inner { flex-wrap: wrap; gap: .25rem; }
  .trainer .topnav { margin-left: 0; width: 100%; padding-bottom: .1rem; }
  .trainer .topnav a { padding: .35rem .55rem; font-size: .9rem; }
}

/* pestañas */
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--border); margin: 0 0 1.25rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .55rem .8rem; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.small-tabs { margin-bottom: .75rem; }
.small-tabs a { padding: .35rem .6rem; font-size: .85rem; }

/* semana */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.wday {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: .45rem 0; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem;
}
.wday .wd-name { color: var(--muted); font-size: .7rem; }
.wday .wd-num { font-weight: 700; font-size: 1rem; }
.wday .wd-mark { height: 1rem; color: var(--accent); font-weight: 800; }
.wday.planned { border-color: var(--accent-line); }
.wday.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.wday.done { background: var(--accent-soft); }
.wday.missed .wd-mark { color: var(--muted); }
.wd { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-2); font-size: .7rem; color: var(--accent); margin-right: 2px; }

.day-card { margin: 0; background: var(--surface-2); }
.checkin-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; border-color: var(--accent-line); }
.reply-note { display: block; margin-bottom: .75rem; color: var(--text); }
.reply-note:hover { text-decoration: none; background: var(--accent-soft); }

/* superseries */
.superset { border: 1px dashed var(--accent-line); border-radius: 12px; padding: .25rem .75rem; margin: .5rem 0; background: var(--accent-faint); }
.superset-label { color: var(--accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .5rem 0 .25rem; }
.superset .exercise:first-of-type, .superset .item-row:first-of-type { border-top: 0; }
.exercise .num { width: auto; min-width: 28px; padding: 0 .35rem; border-radius: 99px; font-size: .78rem; }
.last-time { color: var(--accent-text-soft); margin: .35rem 0 0; }
.last-time::before { content: "↺ "; }

/* miniaturas con 2 imágenes alternas (posición inicial / final) */
.thumb.anim, .ex-figure.anim { position: relative; overflow: hidden; display: block; }
.thumb.anim { width: 64px; height: 64px; border-radius: 10px; background: #fff; flex: none; }
.thumb.anim img { width: 100%; height: 100%; object-fit: cover; }
.thumb.big { width: 96px; height: 96px; }
.anim img.second { position: absolute; inset: 0; animation: swap 2.4s infinite steps(1); }
@keyframes swap { 0% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .anim img.second { animation: none; opacity: 0; } }
.empty-thumb { display: block; width: 64px; height: 64px; border-radius: 10px; background: var(--surface-2); flex: none; }
.ex-figure { border-radius: var(--radius); background: #fff; max-width: 520px; margin: 0 auto; }
.ex-figure img { width: 100%; height: auto; }
.ex-figure img.second { height: 100%; object-fit: contain; background: #fff; }
.steps { margin: 0; padding-left: 1.25rem; }
.steps li { margin-bottom: .5rem; }
.ingredients { margin: .35rem 0 0; padding-left: 1.1rem; }
a.linkrow { color: var(--text); align-items: center; }
a.linkrow:hover { text-decoration: none; background: var(--surface-2); }

/* macros y barras */
.macros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem 1rem; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: .3rem; border: 1px solid var(--border); }
.bar.big { height: 10px; }
.bar span { display: block; height: 100%; background: var(--accent-fill); border-radius: 99px; }
.bar span.over { background: var(--warn); }

details.sets > summary { margin-top: .25rem; }
details.sets ul { margin: .35rem 0 0; padding-left: 1.1rem; }

/* gráfico */
.chart .target-line { stroke: var(--warn); stroke-dasharray: 6 5; stroke-width: 1.5; }
.chart .target-text { fill: var(--warn); }
.chart .date-text { font-size: 11px; }

/* check-in */
.scales { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .4rem 1rem; margin-bottom: .75rem; }
.scale { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 10px; height: 10px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); }
.pips i.on { background: var(--accent-fill); border-color: var(--accent-fill); }
.scale-input { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.scale-input label { margin: 0; }
.scale-input input, .weekday-pick input { position: absolute; opacity: 0; pointer-events: none; }
.scale-input label span, .weekday-pick span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--border); cursor: pointer; color: var(--text); font-weight: 600;
}
.scale-input input:checked + span, .weekday-pick input:checked + span { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent-fill); }
.scale-input input:focus-visible + span, .weekday-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.weekday-pick { display: flex; gap: .3rem; margin-bottom: .5rem; flex-wrap: wrap; }
.weekday-pick label { margin: 0; }
.weekday-pick span { width: 34px; height: 30px; font-size: .8rem; }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .4rem; max-height: 240px; overflow: auto; }

/* chat */
.chat { padding: 0; display: flex; flex-direction: column; height: calc(100dvh - 260px); min-height: 380px; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.chat-day { align-self: center; font-size: .75rem; color: var(--muted); margin: .5rem 0; }
.bubble { max-width: 80%; padding: .55rem .8rem; border-radius: 16px; white-space: normal; word-wrap: break-word; }
.bubble .time { display: block; font-size: .68rem; opacity: .65; text-align: right; margin-top: .15rem; }
.bubble.mine { align-self: flex-end; background: var(--accent-fill); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-form textarea { min-height: 44px; max-height: 160px; resize: none; }
.thread { display: block; padding: .75rem .25rem; border-top: 1px solid var(--border); color: var(--text); }
.thread:first-child { border-top: 0; }
.thread:hover { text-decoration: none; background: var(--surface-2); }
.thread.unread b { color: var(--accent); }

/* fotos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.photo-grid figure, .compare figure { margin: 0; }
.photo-grid img, .compare img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
figcaption { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.photo-ph { aspect-ratio: 3 / 4; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: .8rem; }

/* recetas */
.recipe-card { padding: 0; overflow: hidden; }
.recipe-card img, .recipe-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.recipe-ph { display: grid; place-items: center; font-size: 2.5rem; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }

/* lista de la compra */
.shopping { padding: .25rem 1rem; }
.shop-item { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--border); margin: 0; color: var(--text); font-size: 1rem; cursor: pointer; }
.shop-item:first-child { border-top: 0; }
.shop-item input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.shop-item .name { flex: 1; }
.shop-item .qty { color: var(--accent); font-weight: 700; white-space: nowrap; }
.shop-item.got .name, .shop-item.got .qty { text-decoration: line-through; color: var(--muted); }

/* buscador de ejercicios */
.expick { position: relative; }
.expick.invalid .expick-q { outline: 2px solid var(--danger); }
.expick-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 340px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px var(--shadow);
}
.expick-list button {
  display: flex; gap: .6rem; align-items: center; width: 100%; text-align: left; padding: .45rem .6rem; background: none;
  border: 0; border-top: 1px solid var(--border); color: var(--text); font: inherit; cursor: pointer;
}
.expick-list button:first-child { border-top: 0; }
.expick-list button:hover, .expick-list button.active { background: var(--surface-2); }
.expick-list img, .expick-list .ph { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: #fff; }
.expick-list .ph { background: var(--surface-2); }
.expick-list small { display: block; color: var(--muted); font-size: .78rem; }
.item-grid .span3 { grid-column: span 3; }
@media (max-width: 600px) { .item-grid .span3 { grid-column: 1 / -1; } }

/* modo entreno */
.workout-page main { padding-bottom: 12rem; }
.workout-page .bottomnav { display: none; }
.wo-head { position: sticky; top: 57px; z-index: 5; background: var(--bg); padding: .5rem 0 .75rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: center; }
.wo-head .back { margin: 0; }
.wo-title { display: flex; justify-content: flex-end; gap: .75rem; align-items: baseline; }
.wo-dots { grid-column: 1 / -1; display: flex; gap: 4px; }
.wo-dots i { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-2); }
.wo-dots i.past { background: var(--accent-line); }
.wo-dots i.on { background: var(--accent-fill); }
.wo-item + .wo-item { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; }
.wo-ex { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: .5rem; }
.wo-ex h2 { margin: .35rem 0 .25rem; font-size: 1.25rem; }
.wo-ex h2 a { color: var(--text); }
.wo-sets { margin: .5rem 0; }
.wo-sets th, .wo-sets td { padding: .35rem .3rem; text-align: center; border-top: 0; }
.wo-sets td:first-child { width: 2.5rem; }
.wo-sets input { text-align: center; font-size: 1.1rem; padding: .55rem .3rem; }
.wo-sets tr.done input { border-color: var(--accent-line); background: var(--accent-soft); }
.setcheck {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--muted); font-size: 1.3rem; cursor: pointer;
}
tr.done .setcheck { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent-fill); }
.wo-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; gap: .5rem; padding: .75rem 16px calc(.75rem + env(safe-area-inset-bottom)); background: var(--bar-bg); border-top: 1px solid var(--border); }
.wo-nav .btn { flex: 1; padding: .85rem; font-size: 1rem; }
.wo-nav .btn:disabled { opacity: .4; }
.timer {
  position: fixed; left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 10; max-width: 480px; margin: 0 auto;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 18px; padding: .85rem; text-align: center; box-shadow: 0 10px 40px var(--shadow);
}
.timer-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.timer-time { font-size: 3rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; margin-bottom: .4rem; }
.timer.ended { animation: pulse .6s 3; }
@keyframes pulse { 50% { background: var(--accent-soft-2); } }

@media print {
  .topbar, .bottomnav, .no-print, .flash { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 0; background: #fff; }
  .shop-item { color: #000; border-color: #ccc; }
  .shop-item .qty { color: #000; }
}

/* ajustes v2.1 */
.grid > .card + .card { margin-top: 0; }
.macros { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.macro-val { white-space: nowrap; font-size: 1.05rem; }
.chart text { font-size: 17px; }
.chart .date-text { font-size: 15px; }
.chart .dot { stroke-width: 3; }

/* =================== Responsive (v3) =================== */
/* Ancho útil: más espacio en pantallas grandes, márgenes laterales proporcionales */
main, .topbar-inner { max-width: 1440px; }
main { padding-left: clamp(12px, 2.5vw, 40px); padding-right: clamp(12px, 2.5vw, 40px); }
.topbar-inner { padding-left: clamp(12px, 2.5vw, 40px); padding-right: clamp(12px, 2.5vw, 40px); }

/* Móvil: menos relleno para aprovechar el ancho */
@media (max-width: 599px) {
  main { padding-top: .85rem; }
  .card { padding: .85rem; border-radius: 12px; }
  h1 { font-size: 1.4rem; }
  .card + .card, .stack > * + * { margin-top: .75rem; }
  .grid { gap: .75rem; }
  .exercise { gap: .65rem; }
  .exercise .thumb.anim, .exercise .empty-thumb { width: 56px; height: 56px; }
}

/* ---------- Inicio del cliente ---------- */
.client-home { display: grid; gap: 1rem; align-items: start; }
.ch-main, .ch-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.ch-main > .card + .card, .ch-side > .card + .card { margin-top: 0; }
.ch-side .checkin-cta { margin-top: 0; }
.ch-side .reply-note { margin-bottom: 0; }
@media (min-width: 1024px) {
  .client-home { grid-template-columns: minmax(0, 1fr) clamp(320px, 30%, 420px); gap: 1.25rem; }
  .ch-side { position: sticky; top: 80px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .ch-side { display: grid; grid-template-columns: 1fr 1fr; }
  .ch-side > .flash, .ch-side > .note, .ch-side > .checkin-cta { grid-column: 1 / -1; }
}
.hero-week { display: grid; gap: 1rem; }
.hero-week h1 { margin-bottom: .25rem; }
.hero-stats { gap: 2rem; margin-top: .5rem; }
.today-box { margin-top: .85rem; }
@media (min-width: 760px) {
  .hero-week { grid-template-columns: minmax(220px, 1fr) 2fr; align-items: center; gap: 1.5rem; }
}

.day-list { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.day-card { display: flex; align-items: center; gap: .75rem; background: var(--surface-2); border: 1px solid var(--border);
            border-radius: 12px; padding: .75rem .85rem; margin: 0; }
.day-card .day-info { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--text); }
.day-card .day-info:hover { text-decoration: none; }
.day-card .day-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-card .btn { margin: 0 !important; flex: none; }

/* ---------- Rutina: días en columnas ---------- */
.days-grid { display: grid; gap: 1rem; align-items: start; }
.days-grid > .card + .card { margin-top: 0; }
@media (min-width: 1100px) { .days-grid { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); } }

/* ---------- Dieta ---------- */
.diet-head { display: grid; gap: 1rem; margin-bottom: 1rem; align-items: start; }
@media (min-width: 900px) { .diet-head { grid-template-columns: 1fr 1fr; } }
.meal-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.meal { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .85rem; }
@media (max-width: 599px) {
  .meal-grid { grid-template-columns: 1fr; gap: 0; }
  .meal { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: .85rem 0; }
  .meal:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- Otras páginas ---------- */
.bubble { max-width: min(80%, 620px); }
.chat { height: calc(100dvh - 230px); }
@media (min-width: 900px) {
  .shopping { column-count: 2; column-gap: 2rem; }
  .shop-item { break-inside: avoid; }
}
@media (min-width: 1300px) { .shopping { column-count: 3; } }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- Modo entreno ---------- */
.workout-page main { max-width: 1240px; }
.wo-head { top: 57px; }
.wo-nav { padding: .75rem clamp(12px, 2.5vw, 40px) calc(.75rem + env(safe-area-inset-bottom)); }
.wo-nav-inner { display: flex; gap: .5rem; max-width: 1160px; margin: 0 auto; }
.wo-nav-inner .btn { flex: 1; padding: .85rem; font-size: 1rem; }
.wo-nav .btn:disabled { opacity: .4; }
.wo-log .wo-sets { width: 100%; }
@media (min-width: 900px) {
  .wo-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 2rem; align-items: start; }
  .wo-item + .wo-item { margin-top: 1.5rem; padding-top: 1.5rem; }
  .wo-ex { flex-direction: column; }
  .wo-ex .thumb.big { width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 3; }
  .wo-ex h2 { font-size: 1.5rem; }
  .timer { right: auto; left: 50%; transform: translateX(-50%); width: 420px; bottom: 96px; }
}
@media (min-width: 900px) and (max-height: 800px) {
  .wo-ex .thumb.big { max-width: 300px; }
}
.wo-nav { display: block; }
.wo-nav-inner { width: 100%; }
.day-card .day-info b { white-space: normal; }
@media (min-width: 760px) and (max-width: 959px) { .hero-week { grid-template-columns: 1fr; } }


/* =================== Tema claro =================== */
:root[data-theme="light"] {
  --bg: #f3f5f0;
  --surface: #ffffff;
  --surface-2: #f0f3ec;
  --border: #dde3d6;
  --text: #171b14;
  --muted: #646d5f;
  --accent: #2f8500;
  --accent-fill: #62f000;
  --accent-ink: #0a0a0a;
  --accent-soft: #e8fad6;
  --accent-soft-2: #d5f5b6;
  --accent-line: #b4e38a;
  --accent-faint: rgba(98,240,0,.06);
  --accent-text-soft: #2f7400;
  --hero-1: #e2f8cc;
  --bar-bg: rgba(255,255,255,.94);
  --shadow: rgba(25,40,10,.16);
  --danger: #cc3333;
  --warn: #d48a00;
  --ok-text: #2c6600;
  --warn-bg: #fff4dc; --warn-line: #efd08c; --warn-text: #7a4b00;
  --err-bg: #fdecec; --err-line: #f1bcbc; --err-text: #9b1c1c;
  color-scheme: light;
}
:root[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(25,40,10,.05); }
:root[data-theme="light"] .badge.warn { color: #3a2500; }
:root[data-theme="light"] .bubble.theirs { background: var(--surface); }
:root[data-theme="light"] .brand img { box-shadow: 0 0 0 1px var(--border); }

/* Botón de tema en la barra superior */
.theme-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; flex: none; margin-left: .25rem; }
.theme-btn:hover { border-color: var(--muted); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
.client .topnav { margin-left: auto; }
.theme-pick { display: flex; gap: .4rem; flex-wrap: wrap; }
.theme-pick label { margin: 0; }
.theme-pick input { position: absolute; opacity: 0; pointer-events: none; }
.theme-pick span { display: inline-block; padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; }
.theme-pick input:checked + span { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent-fill); }
@media (max-width: 759px) {
  .trainer .theme-btn { margin-left: auto; order: 2; }
  .trainer .topnav { order: 3; }
  .client .theme-btn { margin-left: auto; }
}

/* =================== Estilo moderno (v4) =================== */
:root {
  --sh-sm: 0 1px 2px rgba(0,0,0,.45), 0 1px 1px rgba(0,0,0,.3);
  --sh-md: 0 6px 18px -6px rgba(0,0,0,.65), 0 2px 6px -2px rgba(0,0,0,.45);
  --sh-lg: 0 18px 40px -12px rgba(0,0,0,.75), 0 4px 12px -4px rgba(0,0,0,.5);
  --glow: 0 6px 22px -6px rgba(102,255,0,.55);
  --glow-sm: 0 3px 12px -4px rgba(102,255,0,.45);
  --card-grad: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 40%);
  --btn-grad: linear-gradient(180deg, #8bff3d 0%, #66ff00 55%, #55e000 100%);
  --edge: rgba(255,255,255,.06);
  --ease: cubic-bezier(.2,.8,.2,1);
  --radius: 16px;
}
:root[data-theme="light"] {
  --sh-sm: 0 1px 2px rgba(30,45,15,.08), 0 1px 1px rgba(30,45,15,.05);
  --sh-md: 0 8px 22px -10px rgba(30,45,15,.22), 0 2px 6px -2px rgba(30,45,15,.08);
  --sh-lg: 0 22px 44px -16px rgba(30,45,15,.28), 0 6px 14px -6px rgba(30,45,15,.1);
  --glow: 0 8px 22px -8px rgba(70,190,0,.55);
  --glow-sm: 0 4px 12px -5px rgba(70,190,0,.5);
  --card-grad: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,252,247,1));
  --btn-grad: linear-gradient(180deg, #86f53f 0%, #62f000 55%, #52d600 100%);
  --edge: rgba(255,255,255,.9);
}

/* Transición suave al cambiar de tema */
body, .card, .btn, .topbar, .bottomnav, input, select, textarea, .badge, .chip, .wday, .day-card, .meal {
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}

/* Fondo con un leve brillo de marca */
body {
  background:
    radial-gradient(900px 500px at 100% -10%, var(--accent-faint), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, var(--accent-faint), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1 { font-weight: 750; letter-spacing: -.02em; }
h2, h3 { font-weight: 650; letter-spacing: -.01em; }

/* Barra superior y navegación inferior tipo cristal */
.topbar { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--border), var(--sh-sm); border-bottom: 0; }
.brand img { border-radius: 10px; box-shadow: var(--sh-md); transition: transform .3s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.topnav a { position: relative; border-radius: 10px; transition: color .2s, background-color .2s; }
.topnav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.bottomnav { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.35); border-top: 1px solid var(--border); }
.bottomnav a svg { transition: transform .25s var(--ease); }
.bottomnav a.on svg { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 3px 6px rgba(102,255,0,.35)); }
.bottomnav a.on { font-weight: 600; }
.bottomnav a.on::before { content: ""; position: absolute; top: -.35rem; width: 28px; height: 3px; border-radius: 99px; background: var(--accent-fill); box-shadow: var(--glow-sm); }
.bottomnav a { position: relative; }

/* Tarjetas con profundidad */
.card { background: var(--card-grad), var(--surface); box-shadow: var(--sh-md), inset 0 1px 0 var(--edge); border-color: color-mix(in srgb, var(--border) 85%, transparent); }
a.card:hover, .day-card:hover, .recipe-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg), inset 0 1px 0 var(--edge); border-color: var(--accent-line); }
.hero { box-shadow: var(--sh-lg), inset 0 1px 0 var(--edge); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -160px; pointer-events: none;
  background: radial-gradient(circle, rgba(102,255,0,.16), transparent 65%); }
.hero > * { position: relative; z-index: 1; }
.stat { text-shadow: 0 0 22px rgba(102,255,0,.25); letter-spacing: -.02em; }
:root[data-theme="light"] .stat { text-shadow: none; }
.note { border-radius: 4px 14px 14px 4px; box-shadow: var(--sh-sm); }
.day-card, .meal { box-shadow: var(--sh-sm); }

/* Botones */
.btn { border-radius: 12px; box-shadow: var(--sh-sm); font-weight: 600; letter-spacing: .01em; position: relative; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--muted) 60%, var(--border)); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: var(--sh-sm); }
.btn.primary { background: var(--btn-grad); border-color: transparent; box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn.primary:hover { filter: brightness(1.05) saturate(1.05); box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn.danger:hover { box-shadow: 0 6px 18px -8px rgba(255,90,90,.6); }
.btn:disabled { transform: none; box-shadow: none; cursor: not-allowed; }
.btn.sm { border-radius: 10px; }
.btn.block { padding-top: .8rem; padding-bottom: .8rem; }
.theme-btn { box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .2s; }
.theme-btn:hover { transform: rotate(18deg); box-shadow: var(--sh-md); }

/* Formularios */
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
input[type=url], input[type=tel], input[type=search], select, textarea {
  border-radius: 12px; box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-fill) 22%, transparent), inset 0 1px 2px rgba(0,0,0,.1); }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* Etiquetas, chips y pastillas */
.badge { border-radius: 99px; padding: .2rem .6rem; font-weight: 600; }
.badge.on { box-shadow: var(--glow-sm); }
.chip { border-radius: 10px; box-shadow: var(--sh-sm); }
.dot-count { box-shadow: var(--glow-sm); }
.tabs a { border-radius: 10px 10px 0 0; transition: color .2s, background-color .2s; }
.tabs a:hover { background: var(--surface-2); }
.tabs a.on { font-weight: 600; }

/* Calendario semanal */
.wday { box-shadow: var(--sh-sm); }
.wday.today { box-shadow: 0 0 0 1px var(--accent) inset, var(--glow-sm); transform: translateY(-2px); }
.wday.done { background: linear-gradient(180deg, var(--accent-soft), var(--surface-2)); }

/* Barras de progreso con brillo */
.bar { background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.bar span { background: linear-gradient(90deg, #4fd400, var(--accent-fill)); box-shadow: 0 0 10px rgba(102,255,0,.35); }
.bar span.over { background: linear-gradient(90deg, #e09000, var(--warn)); box-shadow: none; }

/* Ejercicios y miniaturas */
.thumb.anim, .empty-thumb { box-shadow: var(--sh-md); }
.exercise .num { box-shadow: var(--sh-sm); }
.ex-figure { box-shadow: var(--sh-lg); }
.superset { box-shadow: inset 0 0 0 1px var(--accent-faint); }

/* Chat */
.bubble { box-shadow: var(--sh-sm); }
.bubble.mine { background: var(--btn-grad); box-shadow: var(--glow-sm); }
.chat-form { background: color-mix(in srgb, var(--surface-2) 60%, transparent); border-radius: 0 0 var(--radius) var(--radius); }

/* Modo entreno */
.setcheck { box-shadow: var(--sh-sm); transition: transform .15s var(--ease), background .2s, box-shadow .2s; }
.setcheck:active { transform: scale(.9); }
tr.done .setcheck { background: var(--btn-grad); box-shadow: var(--glow-sm); animation: pop .35s var(--ease); }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.wo-dots i { transition: background .3s var(--ease); }
.wo-dots i.on { box-shadow: var(--glow-sm); }
.wo-nav { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.35); }
.timer { backdrop-filter: blur(12px); box-shadow: var(--sh-lg), var(--glow); border-radius: 22px; }

/* Lista de la compra, recetas, fotos */
.recipe-card img { transition: transform .5s var(--ease); }
.recipe-card:hover img { transform: scale(1.04); }
.photo-grid img, .compare img { box-shadow: var(--sh-md); }
.flash { border-radius: 14px; box-shadow: var(--sh-sm); }

/* Entrada suave del contenido */
/* (el modo entreno queda fuera: una animación con transform rompería sus barras fijas) */
main > *:not(#workout) { animation: rise .45s var(--ease) both; }
main > *:not(#workout):nth-child(2) { animation-delay: .04s; }
main > *:not(#workout):nth-child(3) { animation-delay: .08s; }
#workout { animation: fadein .3s var(--ease) both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.ch-side > * { animation: rise .45s var(--ease) both; animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, a.card:hover, .day-card:hover, .recipe-card:hover, .theme-btn:hover { transform: none; }
}

/* Botones planos: borde fino + sombra (sin degradado ni línea inferior) */
:root { --btn-border: #4cc400; --btn-shadow: 0 4px 12px -4px rgba(102,255,0,.35), 0 2px 4px rgba(0,0,0,.35); }
:root[data-theme="light"] { --btn-border: #45b800; --btn-shadow: 0 4px 12px -4px rgba(60,150,0,.35), 0 2px 4px rgba(30,45,15,.12); }
.btn { border-width: 1.5px; }
.btn.primary, .btn.primary:hover {
  background: var(--accent-fill); border: 1.5px solid var(--btn-border); box-shadow: var(--btn-shadow); filter: none;
}
.btn.primary:hover { box-shadow: 0 8px 20px -6px rgba(102,255,0,.45), 0 3px 6px rgba(0,0,0,.3); }
:root[data-theme="light"] .btn.primary:hover { box-shadow: 0 8px 20px -6px rgba(60,150,0,.45), 0 3px 6px rgba(30,45,15,.15); }
.btn.primary:active { box-shadow: 0 2px 6px -2px rgba(0,0,0,.3); }
.bubble.mine, tr.done .setcheck { background: var(--accent-fill); border: 1.5px solid var(--btn-border); }
.theme-pick input:checked + span, .scale-input input:checked + span, .weekday-pick input:checked + span { border: 1.5px solid var(--btn-border); box-shadow: var(--btn-shadow); }

/* Botones sin borde, solo sombra */
.btn, .btn.primary, .btn.primary:hover, .btn.danger { border-color: transparent; }
.btn { border-width: 0; }
.btn:not(.primary):not(.danger) { background: var(--surface-2); }
.btn.danger { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.bubble.mine, tr.done .setcheck { border-color: transparent; }
.theme-pick input:checked + span, .scale-input input:checked + span, .weekday-pick input:checked + span { border-color: transparent; }

/* Ojo para mostrar contraseñas */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 2.9rem !important; }
.pass-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.pass-eye:hover { color: var(--text); background: var(--surface-2); }
.pass-eye.on { color: var(--accent); }
.pass-eye svg { width: 19px; height: 19px; }
