/* Modo bebé (#bebe, su ensayo y la franja «Registrar» de Hoy) · carril F-bebé v2.1.
   Para las 3 de la mañana con una mano: objetivos grandes (≥56 px lo frecuente), poco texto, números tabulares y,
   en Noche, nada de rellenos claros: lo destacado va en tonos hundidos con borde. Solo tokens de base.css. */

/* =========================================================================================== Botones grandes */
.bb-big { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 14px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink); text-align: left; text-decoration: none; transition: transform .14s var(--ease), border-color .2s, background .2s; }
.bb-big:active { transform: scale(.97); }
.bb-big-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sage-wash); color: var(--sage-ink); }
.bb-big-txt { display: flex; flex-direction: column; min-width: 0; }
.bb-big-l { font-size: 18px; font-weight: 800; line-height: 1.15; }
.bb-big-s { font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.25; }
.bb-big.toca { background: var(--sage-ink); border-color: var(--sage-ink); color: var(--on-sage); }
.bb-big.toca .bb-big-ico { background: color-mix(in srgb, var(--on-sage) 18%, transparent); color: var(--on-sage); }
.bb-big.toca .bb-big-s { color: var(--on-sage); opacity: .9; }
html[data-theme="noche"] .bb-big.toca { background: var(--sage-soft); border-color: var(--sage-strong); color: var(--sage-ink); }
html[data-theme="noche"] .bb-big.toca .bb-big-ico { background: var(--sage-wash); color: var(--sage-ink); }
html[data-theme="noche"] .bb-big.toca .bb-big-s { color: var(--ink-2); opacity: 1; }

/* =========================================================================================== Hoy: franja «Registrar» */
.bb-strip { margin: 2px 0 12px; padding: 12px 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 10px; }
.bb-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding-left: 4px; }
.bb-strip-t { font-size: 17px; font-weight: 800; color: var(--ink); }
.bb-strip-more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 6px 0 10px; border-radius: 12px; font-size: 14px; font-weight: 800; color: var(--sage-ink); text-decoration: none; }
.bb-strip-more:hover { background: var(--sunk); }
.bb-last { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; font-variant-numeric: tabular-nums; }
.bb-last strong { font-weight: 800; color: var(--sage-ink); }
.bb-last-hoy { padding: 0 4px; margin-top: -4px; }
.bb-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.bb-tiles.one { grid-template-columns: minmax(0, 1fr); }
.bb-tile { min-height: 76px; }
.bb-pn-row { display: flex; align-items: center; gap: 8px; }
.bb-pn-k { flex: none; width: 52px; padding-left: 4px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.bb-pn-row .bb-trio { flex: 1; min-width: 0; }
.bb-pn-row .bb-pn { min-height: 52px; font-size: 16px; }

/* =========================================================================================== Hoy: idea de juego */
.bb-idea { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.bb-idea-ico { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--peach-wash); color: var(--peach-ink); }
.bb-idea-body { flex: 1; min-width: 0; }
.bb-idea-k { font-size: 13px; font-weight: 800; color: var(--peach-ink); letter-spacing: .02em; }
.bb-idea-t { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.bb-idea-meta { margin-top: 2px; display: flex; flex-wrap: wrap; column-gap: 16px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.bb-idea-meta a { color: var(--sage-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.bb-idea-meta a.bb-src { color: var(--ink-2); }
.bb-idea-meta a:hover { text-decoration: underline; }

/* =========================================================================================== Hoy y Aprende: entradas al ensayo */
/* Con pastillas al lado (semana 28+), el título de la píldora del día cabe entero: hasta 3 líneas en lugar de 2. */
.bb-aprende { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 12px; padding: 6px 10px 6px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s; }
.bb-aprende:hover { background: var(--sunk); }
.bb-aprende-ico { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--peach-wash); color: var(--peach-ink); }
.bb-aprende-text { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-aprende-sub { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.bb-aprende .ico:last-child { flex: none; color: var(--ink-3); }
.side-link[hidden] { display: none; }
.aj-bebe-actions { display: flex; flex-direction: column; gap: 6px; }

/* =========================================================================================== #bebe */
.bb { padding-bottom: 8px; }
.bb .screen-head { margin-bottom: 8px; }
.bb > .bb-last { margin: 0 2px 4px; font-size: 17px; }
.bb-sec { margin-top: 18px; }
.bb-sec-t { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 2px 8px; outline: none; }
.bb-hint { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; }
.bb-seg { margin-bottom: 10px; }
.bb-seg-sm { margin-top: 10px; }

/* Pecho izquierdo / derecho y siesta / noche: dos botones enormes; el que toca, destacado */
.bb-sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.bb-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 112px; padding: 12px; border-radius: 24px; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink); transition: transform .14s var(--ease), background .2s, border-color .2s; }
.bb-side:active { transform: scale(.97); }
.bb-side-l { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.bb-side-s { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.bb-side.is-toca { background: var(--sage-ink); border-color: var(--sage-ink); color: var(--on-sage); box-shadow: 0 8px 22px color-mix(in srgb, var(--sage-ink) 22%, transparent); }
.bb-side.is-toca .bb-side-s { color: var(--on-sage); opacity: .9; }
.bb-side-sueno { min-height: 96px; }
html[data-theme="noche"] .bb-side.is-toca { background: var(--sage-soft); border-color: var(--sage-strong); color: var(--sage-ink); box-shadow: none; }
html[data-theme="noche"] .bb-side.is-toca .bb-side-s { color: var(--ink-2); opacity: 1; }

/* En curso: cronómetro grande y «Terminar» */
.bb-run { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; border-radius: 20px; background: var(--peach-wash); border: 1px solid color-mix(in srgb, var(--peach-ink) 22%, transparent); }
.bb-run-sueno { background: var(--sage-wash); border-color: color-mix(in srgb, var(--sage-ink) 22%, transparent); }
.bb-run-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.bb-run-k { font-size: 16px; font-weight: 800; color: var(--ink); }
.bb-run-who { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.bb-run-moon { color: var(--sage-ink); display: inline-grid; }
.bb-pulse { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--peach-ink); animation: bbPulse 2.4s ease-in-out infinite; }
@keyframes bbPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.bb-run-clock { font-size: 44px; font-weight: 800; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bb-run-total { font-size: 15px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bb-run.big .bb-run-total { text-align: center; margin-top: -6px; }
.bb-run.big { padding: 16px 16px 18px; gap: 10px; }
.bb-run.big .bb-run-clock { font-size: 64px; text-align: center; }
.bb-run.big .bb-run-head { justify-content: center; }
.bb-run-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bb-stop { flex: 1 1 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 0 18px; border-radius: 18px; background: var(--peach-ink); color: var(--surface); font-size: 18px; font-weight: 800; transition: transform .14s var(--ease); }
.bb-stop:active { transform: scale(.98); }
.bb-stop.sueno { background: var(--sage-ink); color: var(--on-sage); }
.bb-run.big .bb-stop { min-height: 68px; font-size: 19px; }
html[data-theme="noche"] .bb-stop { background: var(--peach-soft); color: var(--peach-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--peach-ink) 40%, transparent); }
html[data-theme="noche"] .bb-stop.sueno { background: var(--sage-soft); color: var(--sage-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sage-ink) 40%, transparent); }
.bb-switch { flex: 1 1 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 14px; font-size: 15px; font-weight: 800; color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); }
html[data-theme="noche"] .bb-switch { background: var(--sunk); }

/* Biberón y extracción: cantidad */
.bb-ml { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.bb-ml-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.bb-ml-btn.icon-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--sunk); color: var(--ink); }
.bb-ml-v { min-width: 120px; text-align: center; font-size: 36px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bb-presets { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.bb-preset { min-width: 52px; min-height: 44px; padding: 0 10px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-2); font-size: 15px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bb-preset[aria-pressed="true"] { border-color: var(--sage-strong); background: var(--sage-soft); color: var(--sage-ink); }
.bb-go { width: 100%; margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; border-radius: 18px; background: var(--sage-ink); color: var(--on-sage); font-size: 18px; font-weight: 800; }
.bb-go:active { transform: scale(.98); }
html[data-theme="noche"] .bb-go { background: var(--sage-soft); color: var(--sage-ink); box-shadow: inset 0 0 0 1px var(--sage-strong); }

/* Pañal: pis · caca · los dos */
.bb-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bb-pn { min-height: 68px; padding: 0 6px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line-2); font-size: 18px; font-weight: 800; color: var(--ink); transition: transform .14s var(--ease), background .2s; }
.bb-pn:active { transform: scale(.96); background: var(--sage-wash); }

/* Resumen */
.bb-stats { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.bb-stat { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.bb-stat-k { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.bb-stat-v { justify-self: end; font-size: 24px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bb-stat-s, .bb-stat-src { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bb-stat-src { display: flex; flex-wrap: wrap; column-gap: 16px; }
.bb-stat-src a { color: var(--sage-ink); font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.bb-stat-src a:hover { text-decoration: underline; }
@media (min-width: 600px) {
  .bb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bb-stat { grid-template-columns: 1fr; align-content: start; }
  .bb-stat-v { justify-self: start; }
}
.bb-week { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.bb-week th, .bb-week td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.bb-week thead th { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.bb-week tbody th { text-align: left; font-weight: 700; color: var(--ink); white-space: nowrap; }
.bb-week td { font-weight: 700; color: var(--ink); }
.bb-week tr:last-child th, .bb-week tr:last-child td { border-bottom: 0; }
.bb-week tr.is-today th, .bb-week tr.is-today td { font-weight: 800; }
.bb-week th:first-child { padding-left: 14px; }
.bb-week th:last-child, .bb-week td:last-child { padding-right: 14px; }

/* Registro */
.bb-list { list-style: none; }
.bb-row { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 4px 0 4px 2px; border-bottom: 1px solid var(--line); }
.bb-list > .bb-row:last-child { border-bottom: 0; }
.bb-row-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--ink-2); }
.bb-row.k-toma .bb-row-ico { background: var(--peach-wash); color: var(--peach-ink); }
.bb-row.k-sueno .bb-row-ico { background: var(--sage-wash); color: var(--sage-ink); }
.bb-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bb-row-what { font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bb-row-meta { font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bb-row-del { color: var(--ink-3); }
.bb-ej { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--now-bg); color: var(--now-ink); font-size: 13px; font-weight: 800; }
.bb-day { margin: 12px 2px 0; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.bb-fold { margin-top: 8px; }

/* Peso y talla */
.bb-crec { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.bb-crec .bb-hint { text-align: left; margin-top: 0; }
.bb-crec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bb-sec .fold .bb-list { padding: 0 14px 8px; }

/* Para leer */
.bb-reads { display: flex; flex-direction: column; gap: 6px; }
.bb-read { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 14px; color: var(--sage-ink); font-size: 15px; font-weight: 800; text-decoration: none; }
.bb-read > span { flex: 1; min-width: 0; }
.bb-read:hover { background: var(--sunk); }
.bb-reads .bb-read { background: var(--surface); border: 1px solid var(--line); }

/* Antes del nacimiento */
.bb-antes-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }

/* =========================================================================================== Ensayo */
.bb-band { position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); z-index: 18; display: flex; align-items: center; gap: 8px; margin: 0 calc(-1 * var(--gutter)) 4px; padding: 4px 8px 4px var(--gutter); min-height: 52px; background: var(--now-bg); color: var(--now-ink); border-bottom: 1px solid color-mix(in srgb, var(--now-ink) 18%, transparent); }
.bb-band > .ico { flex: none; }
.bb-band-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.25; }
.bb-band-t strong { font-weight: 800; }
.bb-band-out { flex: none; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 800; color: var(--now-ink); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.bb-band-out:hover { background: var(--surface); }
html[data-theme="noche"] .bb-band-out { background: color-mix(in srgb, var(--bg) 40%, transparent); }
/* Recorrido compacto: cabecera en una línea (puntos · paso · Saltar), título, una frase y una píldora. */
.bb-guide { margin: 0 0 8px; padding: 4px 8px 4px 14px; border-radius: 18px; background: var(--sage-wash); border: 1px solid color-mix(in srgb, var(--sage-ink) 18%, transparent); display: flex; flex-direction: column; gap: 2px; scroll-margin-top: calc(var(--topbar-h) + var(--safe-t) + 60px); }
.bb-guide-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 10px; }
.bb-guide-dots { list-style: none; display: flex; gap: 4px; }
.bb-guide-dots li { width: 18px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--sage-ink) 18%, transparent); }
.bb-guide-dots li.done { background: var(--sage-strong); }
.bb-guide-dots li.now { background: var(--sage-ink); }
.bb-guide-k { font-size: 13px; font-weight: 800; color: var(--sage-ink); }
.bb-guide-skip.btn { padding: 0 10px; }
.bb-guide-t { grid-column: 1 / -1; margin-top: -4px; font-size: 17px; font-weight: 800; color: var(--ink); outline: none; }
.bb-guide-t:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bb-guide-d { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; padding-right: 6px; }
.bb-guide .bb-read { padding: 0 2px; min-height: 44px; font-size: 14px; }
.bb-guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 2px; }
.bb-guide-again { margin-top: 16px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .bb-pulse { animation: none; }
}
