/* Hoy y Plan (carril F1): Hoy, Ponte al día, Plan (línea de tiempo, citas, reparto), El bebé esta semana y
   Lo que ya habéis hecho. Solo tokens y componentes de base.css (claro y Noche); móvil primero. */

/* =========================================================================================== Hoy */
.hoy { min-width: 0; }

/* Cinco bloques, una columna: la tarea primero (único botón relleno), la píldora, la próxima cita, «¿Puedo comer…?» y el bebé */
.hoy-stack { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; }
.hoy-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.hoy-k { display: block; font-size: 13px; font-weight: 800; color: var(--peach-ink); line-height: 1.3; }
.hoy-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--peach-wash); color: var(--peach-ink); }
.hoy-chev { flex: none; color: var(--ink-2); }

/* (1) Lo más importante de hoy */
.hoy-hero { padding: 14px 16px 2px; }
.hoy-hero-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.hoy-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 52px; padding: 2px 0; text-align: left; color: inherit; border-radius: 10px; }
.hoy-hero-title { font-size: 18px; font-weight: 800; line-height: 1.28; color: var(--ink); overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }
.hoy-hero-sub { font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.35; }
.hoy-hero-sub.late { color: var(--late-ink); }
.hoy-hecho { flex: none; min-height: 52px; padding: 0 20px; font-size: 16px; }
.hoy-hero-all { display: flex; align-items: center; gap: 2px; min-height: 48px; font-size: 15px; font-weight: 800; color: var(--sage-ink); text-decoration: none; }
.hoy-hero-all:hover { text-decoration: underline; }
.hoy-hero.is-clear { padding-bottom: 14px; }
.hoy-clear-line { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 4px; font-size: 17px; font-weight: 800; color: var(--ink); }
.hoy-clear-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sage-wash); color: var(--sage-ink); }

/* (3) La próxima cita */
.hoy-next { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.hoy-next-main { display: flex; align-items: center; gap: 12px; min-height: 52px; color: inherit; text-decoration: none; border-radius: 12px; }
a.hoy-next-main:hover { background: color-mix(in srgb, var(--sunk) 55%, transparent); }
.hoy-next-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hoy-next-title { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.hoy-next-meta { font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.35; overflow-wrap: anywhere; }
.hoy-next-btn { min-height: 48px; }

/* (5) El bebé esta semana, con su enlace contextual dentro */
.hoy-baby { display: flex; align-items: center; gap: 4px; padding: 6px 10px 6px 6px; }
.hoy-baby-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 2px 4px 2px 6px; color: inherit; text-decoration: none; border-radius: 14px; }
.hoy-baby-main:hover { background: color-mix(in srgb, var(--sunk) 55%, transparent); }
.hoy-baby-title { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.hoy-baby .hoy-next-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hoy-baby-ctx { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--sage-wash); color: var(--sage-ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.hoy-baby-ctx:hover { box-shadow: inset 0 0 0 1.5px var(--sage-soft); }

/* Filas del carril: el plazo va delante del porqué y los dos usan el ancho entero (hasta 2 líneas) */
.f1-rows .row-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.f1-sub .chip-s { margin-right: 6px; vertical-align: 1px; }
.f1-sub-text { overflow-wrap: anywhere; }
.f1-rows .row-line-2 { align-items: flex-start; }
.f1-rows .row-main { padding-top: 7px; padding-bottom: 7px; gap: 2px; }
/* Filas de «rowFor» (Agenda, Plan, Citas): el plazo bajo la casilla y el responsable delante del título */
.f1-has-due .row-lead { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.f1-due { display: flex; flex-direction: column; align-items: center; margin-top: -6px; padding: 0 2px 6px; font-size: 13px; font-weight: 800; line-height: 1.15; text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.f1-due.num .f1-due-a { font-size: 17px; }
.f1-due.tone-now { color: var(--now-ink); }
.f1-due.tone-late { color: var(--late-ink); }

/* (2) La píldora del día y (4) «¿Puedo comer…?» */
.hoy-pc { display: flex; align-items: stretch; gap: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.hoy-pc-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 8px 8px 10px; border-radius: 16px; color: inherit; text-decoration: none; transition: background .2s; }
.hoy-pc-link:hover { background: color-mix(in srgb, var(--sunk) 55%, transparent); }
.hoy-pc-ico { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--peach-wash); color: var(--peach-ink); }
.hoy-pc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hoy-pc-k { font-size: 13px; font-weight: 800; color: var(--peach-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hoy-pc-title { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.hoy-pc-title.one { -webkit-line-clamp: 1; font-size: 15px; }
.hoy-pc-ritmo { align-self: center; margin-right: 4px; color: var(--ink-2); }
.hoy-pc.done { align-items: center; gap: 12px; min-height: 52px; padding: 4px 4px 4px 10px; box-shadow: none; background: var(--sage-wash); border-color: transparent; }
.hoy-pc.done .hoy-pc-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--sage-ink); color: var(--on-sage); }
.hoy-pc.done .hoy-pc-k { color: var(--sage-ink); }
.hoy-pc-done { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hoy-pc-other { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 10px 0 14px; border-radius: 999px; background: var(--surface); color: var(--sage-ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.hoy-pc-other:hover { box-shadow: inset 0 0 0 1.5px var(--sage-soft); }
.hoy-comer { position: relative; display: flex; align-items: center; gap: 2px; min-height: 52px; padding: 2px 2px 2px 12px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.hoy-comer:focus-within { border-color: var(--sage-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 25%, transparent); }
.hoy-comer-ico { color: var(--peach-ink); }
.hoy-comer-input { flex: 1; min-width: 0; min-height: 46px; padding: 0 6px; border: 0; background: transparent; font-size: 16px; font-weight: 700; color: var(--ink); -webkit-appearance: none; appearance: none; }
.hoy-comer-input::placeholder { color: var(--ink-3); opacity: 1; }
.hoy-comer-input:focus { outline: none; }
.hoy-comer-input::-webkit-search-cancel-button { display: none; }
.hoy-comer-cam { color: var(--sage-ink); }
.hoy-comer-res[hidden] { display: none; }
.hoy-comer-res { padding: 6px 0 0; }
.hoy-comer-hit { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.hoy-comer-hit:hover { border-color: var(--line-2); }
.hoy-comer-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hoy-comer-v { flex: none; font-size: 14px; font-weight: 800; color: var(--v-ink); }
.hoy-comer-go { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 800; color: var(--sage-ink); }
.hoy-comer-ask { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 2px 4px; }
.hoy-comer-cands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hoy-comer-cand { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--sunk); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.hoy-comer-cand:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }

/* Citas (views/citas.js): las pasadas y «¿Cómo fue?» */
.hoy-cita-past .date-tile { background: var(--now-bg); color: var(--now-ink); }
.hoy-comofue { position: relative; z-index: 1; flex: none; align-self: center; margin-right: 2px; padding: 0 12px; }

/* ================================================================================ Ponte al día */
.sheet-repaso .sheet-body { padding-top: 0; }
.rep-undo { margin-right: 2px; }
.rep-progress { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.rep-count { flex: none; font-size: 14px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rep-progress .bar { flex: 1; }
.rep-card { position: relative; padding: 16px 18px 12px; border-radius: var(--radius); background: var(--peach-wash); border: 1px solid var(--line); }
.rep-card.compact { padding: 12px 16px; }
.rep-card.in { animation: repIn .32s var(--ease) both; }
.rep-card.out { animation: repOut .2s var(--ease-in) forwards; pointer-events: none; }
@keyframes repIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes repOut { to { opacity: .4; transform: translateX(-12px); } } /* se queda atenuada mientras responde el servidor */
.rep-chips { align-items: center; margin-bottom: 10px; }
.rep-chips .chip-cat { background: var(--surface); }
.rep-title { font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.rep-card.compact .rep-title { font-size: 17px; }
.rep-why { margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.rep-text { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.rep-inline-ico { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.rep-open { margin-top: 4px; font-size: 14px; text-decoration: none; }
.rep-open:hover { text-decoration: underline; }
.rep-q { margin: 18px 0 8px; font-size: 16px; font-weight: 800; color: var(--ink); text-align: center; }
.rep-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.rep-btn { min-height: 52px; font-size: 16px; }
.sheet-layer[data-mode="dialog"] .rep-actions { flex-direction: row-reverse; }
.sheet-layer[data-mode="dialog"] .rep-btn { flex: 1 1 0; padding: 0 12px; }
.rep-btn-sub { font-size: 13px; font-weight: 700; opacity: .85; }
.rep-btn.is-off { flex-wrap: wrap; row-gap: 0; padding-top: 6px; padding-bottom: 6px; }
.rep-btn.is-off .rep-btn-sub { flex-basis: 100%; }
.rep-btn.is-off:disabled { opacity: 1; background: var(--sunk); color: var(--ink-2); box-shadow: none; }
.rep-choices { display: flex; flex-direction: column; gap: 8px; }
.rep-choice { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px 10px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-2); text-align: left; color: var(--ink); transition: border-color .2s, background .2s; }
button.rep-choice:hover { border-color: var(--sage); background: var(--sage-wash); }
.rep-choice-label { font-size: 16px; font-weight: 800; }
button.rep-choice .rep-choice-label { flex: none; }
.rep-choice-sub { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); text-align: right; }
.rep-choice-chev { color: var(--ink-2); }
.rep-choice-date { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; }
.rep-choice-date .rep-choice-label { padding-left: 4px; }
.rep-date-row { display: flex; gap: 8px; }
.rep-date-row .input { flex: 1; min-width: 0; }
.rep-when { margin-top: 4px; }
.rep-offline { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--now-bg); color: var(--now-ink); font-size: 14px; font-weight: 700; }
.rep-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 8px 12px; }
.rep-done-art { width: 104px; height: 104px; margin-bottom: 8px; }
.rep-done-title { font-size: 22px; font-weight: 800; color: var(--sage-ink); }
.rep-done-text { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink-2); max-width: 360px; }
.rep-done-note { margin-top: 12px; max-width: 360px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ======================================================================================== Plan */
.plan { container: plan / inline-size; }
.plan-seg { margin-bottom: 16px; }
.plan-body > .card:first-child { margin-top: 0; }

/* ¿Qué nos queda? */
.tl-hito { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 0; padding: 8px 10px 8px 12px; border-radius: 14px; background: var(--peach-wash); text-align: left; color: inherit; transition: box-shadow .2s; }
.tl-hito:hover { box-shadow: inset 0 0 0 1.5px var(--peach-soft); }
.tl-hito-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--peach-ink); }
.tl-hito-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tl-hito-k { font-size: 13px; font-weight: 800; color: var(--peach-ink); }
.tl-hito-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Filtros */
.tl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 12px; }
.tl-who { max-width: 100%; }
.tl-who .seg-btn { padding: 0 12px; }
.tl-cat-wrap { position: relative; flex: 1 1 200px; min-width: 0; }
.tl-cat-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.tl-cat { min-height: 48px; padding-left: 40px; font-size: 15px; font-weight: 700; }

/* Meses y semanas */
.tl-months { display: flex; flex-direction: column; }
.tl-month.is-now { border-color: var(--sage-soft); box-shadow: 0 0 0 1px var(--sage-soft), var(--shadow-1); }
.tl-month .fold-label { font-size: 17px; }
.tl-year { color: var(--ink-2); font-weight: 700; }
.tl-month.is-past .fold-sum { color: var(--late-ink); }
.tl-month.is-now .fold-sum { color: var(--sage-ink); }
.tl-week { padding: 2px 0 6px; }
.tl-week + .tl-week { border-top: 1px dashed var(--line); }
.tl-week-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 12px 8px 4px; }
.tl-week-n { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-week-range { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-week-now { margin-left: auto; }
.tl-week.is-now { background: linear-gradient(90deg, var(--now-dot) 0, var(--now-dot) 3px, transparent 3px); }
.tl-week-empty { padding: 4px 8px 8px 52px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.rows .row.tl-cita { background: var(--peach-wash); margin: 2px 0; }
.rows .row.tl-cita:hover { background: var(--peach-soft); }
.rows > .row.tl-cita::before, .rows > .row.tl-cita + .row::before { display: none; }
.tl-today { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 8px 2px 18px; list-style: none; }
.tl-today::after { content: ""; flex: 1; height: 2px; border-radius: 1px; background: var(--sage-strong); opacity: .55; }
.tl-today-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--sage-strong); box-shadow: 0 0 0 4px var(--sage-soft); }
.tl-today-label { flex: none; font-size: 13px; font-weight: 800; color: var(--sage-ink); }
.tl-only-today { margin-top: 2px; }
.tl-later { list-style: none; padding: 12px 8px 2px 52px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
/* En el Plan, el chip de fecha en su propia línea y el porqué debajo (hasta dos líneas): la fecha nunca se corta */
.tl-week .f1-rows .row-sub, .tl-month .f1-rows .row-sub { display: block; overflow: visible; }
.tl-week .f1-sub .chip-s, .tl-month .f1-sub .chip-s { display: flex; width: fit-content; margin: 1px 0 3px; }
.tl-week .f1-sub-text, .tl-month .f1-sub-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Preguntas para el asistente (línea de tiempo y reparto) */
.pl-ask-chips { margin-top: 10px; }
.pl-ask-chips .ask-opt { max-width: 100%; text-align: left; line-height: 1.3; padding-top: 8px; padding-bottom: 8px; border-radius: 22px; }

@container plan (min-width: 600px) {
  .tl-week { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 8px; align-items: start; }
  .tl-week-head { flex-direction: column; align-items: flex-start; gap: 2px; position: sticky; top: calc(var(--topbar-h) + var(--safe-t) + 8px); padding: 14px 4px 8px 10px; }
  .tl-week-now { margin-left: 0; margin-top: 4px; }
  .tl-week-empty { padding-left: 8px; padding-top: 12px; }
  .tl-week-body { min-width: 0; padding-top: 2px; }
}

/* ======================================================================================= Citas */
.ci-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ci-lead { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.ci-new { flex: none; white-space: nowrap; }
.ci-sec { margin-top: 4px; }
.ci-empty { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.45; }
.ci-empty .ico { margin-top: 1px; flex: none; }
.ci-preguntas { margin-top: 6px; }
.ci-q-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.ci-q-form .input:first-child { grid-column: 1 / -1; }
.ci-para { min-height: 44px; font-size: 15px; font-weight: 700; padding-top: 8px; padding-bottom: 8px; }
.ci-q-form .btn { min-height: 44px; white-space: nowrap; }
@container plan (min-width: 560px) {
  .ci-q-form { grid-template-columns: minmax(0, 1fr) 170px auto; }
  .ci-q-form .input:first-child { grid-column: auto; }
}
.ci-qgroup { margin-top: 10px; }
.ci-qgroup-head { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 4px 4px 4px 6px; border-radius: 12px; text-align: left; color: inherit; }
button.ci-qgroup-head:hover { background: var(--sunk); }
.ci-qgroup-head.plain { min-height: 36px; }
.ci-qgroup-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-qgroup-meta { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ci-qgroup-meta.pending { color: var(--now-ink); }
.ci-qgroup-chev { color: var(--ink-2); }
.ci-q-para { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ci-fold { margin-top: 12px; }
.plan-citas .fold + .fold { margin-top: 12px; }

/* Preguntas para el asistente */
.ci-ask-chips { margin-top: 10px; }
.ci-ask-chips .ask-opt { max-width: 100%; text-align: left; line-height: 1.3; padding-top: 8px; padding-bottom: 8px; border-radius: 22px; }

/* ===================================================================================== Reparto */
.rp-lead { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.rp-lead.rp-unowned { margin: 14px 0 0; font-size: 14px; }
.rp-bar { display: flex; gap: 3px; height: 18px; border-radius: 999px; overflow: hidden; background: var(--sunk); }
.rp-seg { display: block; min-width: 8px; height: 100%; flex-basis: 0; transition: flex-grow .6s var(--ease); }
.rp-seg.rp-empty { flex: 1; background: var(--sunk); }
.rp-seg.c-salvia { background: var(--av-salvia-ink); }
.rp-seg.c-melocoton { background: var(--av-melocoton-ink); }
.rp-seg.c-arena { background: var(--av-arena-ink); }
.rp-seg.c-cielo { background: var(--av-cielo-ink); }
.rp-seg.c-lavanda { background: var(--av-lavanda-ink); }
.rp-seg.rp-both { background: repeating-linear-gradient(135deg, var(--c1) 0 7px, var(--c2) 7px 14px); opacity: .85; }
.rp-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 14px; }
.rp-legend li { display: flex; align-items: center; gap: 8px; }
.rp-name { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.rp-num { font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.rp-why { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--sage-wash); }
.rp-why p { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.rp-why-ico { color: var(--sage-ink); margin-top: 1px; }
.rp-actions { margin-top: 16px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.rp-note { font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: center; }
.rp-manual { margin-top: 8px; }
.rp-hint { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.rp-list { list-style: none; display: flex; flex-direction: column; }
.rp-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.rp-item:first-child { border-top: 0; }
.rp-item-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 44px; padding: 4px; text-align: left; border-radius: 12px; color: inherit; }
.rp-item-main:hover { background: color-mix(in srgb, var(--sunk) 55%, transparent); }
.rp-item-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.rp-item-who { flex: none; display: flex; gap: 6px; margin-left: auto; }
.rp-who { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--sunk); color: var(--ink); font-size: 14px; font-weight: 800; transition: box-shadow .2s, background .2s; }
.rp-who:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--surface); }

/* ========================================================================= El bebé esta semana */
.sem-page .screen-head { margin-bottom: 8px; }
.sem-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.sem-phase { align-self: flex-start; }
.sem-strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; scroll-behavior: smooth; touch-action: pan-x; overscroll-behavior-x: contain; }
.sem-strip::-webkit-scrollbar { display: none; }
.sem-chip { position: relative; flex: none; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 13px; background: var(--sunk); color: var(--ink-2); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background .2s, color .2s; }
.sem-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.sem-chip.on { background: var(--sage-ink); color: var(--on-sage); }
.sem-chip.is-today::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--peach-strong); }
.sem-chip.on.is-today::after { background: var(--on-sage); }
.sem-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sem-nav-bottom { margin: 20px -6px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sem-tools { margin-bottom: 12px; }
.sem-nav-btn { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 10px; border-radius: 12px; color: var(--sage-ink); font-size: 14px; font-weight: 800; }
.sem-nav-btn.prev { padding-left: 4px; }
.sem-nav-btn.next { padding-right: 4px; }
.sem-nav-btn:hover { background: var(--sage-wash); }
.sem { touch-action: pan-y; }
.sem.from-next { animation: semNext .3s var(--ease) both; }
.sem.from-prev { animation: semPrev .3s var(--ease) both; }
@keyframes semNext { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes semPrev { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.sem-approx { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: var(--now-bg); color: var(--now-ink); font-size: 14px; font-weight: 700; }
.sem-hero { background: var(--peach-wash); border-color: transparent; }
.sem-size { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); overflow-wrap: anywhere; }
.sem-measures { margin-top: 10px; }
.sem-measures .chip-s { font-size: 14px; padding: 5px 11px; background: var(--surface); }
.sem-fine { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.45; }
.sem-sec { margin-top: 24px; }
.sem-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.sem-h-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sage-wash); color: var(--sage-ink); }
.sem-p { font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.sem-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sem-list li { position: relative; padding-left: 18px; font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.sem-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage-strong); }
.sem-alarm { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--sage-wash); }
.sem-alarm-h { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--sage-ink); }
.sem-alarm-text { margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.sem-alarm-go { margin-top: 10px; background: var(--surface); color: var(--sage-ink); box-shadow: none; }
.sem-sources { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.sem-sources-h { font-size: 14px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.sem-sources .sem-fine { margin: 0 0 8px; }
.sem-sources ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sem-sources li { display: flex; flex-direction: column; padding: 4px 0; }
.sem-src-link { display: inline-flex; align-items: flex-start; gap: 4px; min-height: 28px; font-size: 14px; font-weight: 700; color: var(--sage-ink); line-height: 1.4; text-decoration: none; }
.sem-src-link:hover { text-decoration: underline; }
.sem-ext { margin-top: 3px; }
.sem-src-org { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sem-back-today { display: flex; justify-content: center; margin-top: 20px; }

/* ================================================================ Lo que ya habéis hecho */
.his-hero { display: flex; align-items: center; gap: 16px; background: var(--sage-wash); border-color: transparent; }
.his-hero-art { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.his-hero-art .illus { width: 44px; height: 44px; }
.his-hero-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.his-hero-big { font-size: 22px; font-weight: 800; color: var(--sage-ink); letter-spacing: -.01em; line-height: 1.2; }
.his-hero-sub { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.his-hero-who { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.his-who { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--ink); }
.his-hero-last { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.his-hito-list { list-style: none; display: grid; gap: 8px; }
.his-hito-card { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--peach-wash); }
.his-hito-ico { grid-row: span 2; color: var(--peach-ink); margin-top: 1px; }
.his-hito-text { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.his-hito-meta { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.his-list { list-style: none; display: flex; flex-direction: column; }
.his-row + .his-row { border-top: 1px solid var(--line); }
.his-main { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 6px 8px 2px; text-align: left; border-radius: 14px; color: inherit; }
.his-main:hover { background: color-mix(in srgb, var(--sunk) 55%, transparent); }
.his-lead { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sage-wash); color: var(--sage-ink); }
.his-row.is-hito .his-lead { background: var(--peach-soft); color: var(--peach-ink); }
.his-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.his-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.his-hito { font-size: 14px; font-weight: 700; color: var(--peach-ink); line-height: 1.4; }
.his-sub { font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* Noche: los fondos suaves sobre la hoja necesitan su borde */
html[data-theme="noche"] .rep-card, html[data-theme="noche"] .sem-hero, html[data-theme="noche"] .his-hero { border: 1px solid var(--line); }
html[data-theme="noche"] .rp-seg.rp-both { opacity: 1; }

/* Estrechos (≤380 px) */
@media (max-width: 380px) {
  .rep-title { font-size: 19px; }
  .sem-size { font-size: 23px; }
  .tl-who .seg-btn { padding: 0 10px; }
}
