/* FemEsenz Menús · app de la clienta · paleta FemEsenz */
:root {
  --malva: #927397; --malva-d: #6f5374; --rosa: #d6809c; --melocoton: #fddfd5; --crema: #faf5ef;
  --gris: #7f7f7f; --verde: #18706d; --mostaza: #d8a62a; --negro: #171717;
  --bg: #faf5ef; --card: #ffffff; --line: #eee4dc; --line-soft: #f4ede7; --text: #171717; --muted: #7f7f7f;
  /* Familias: acento (barra/punto), texto (contraste) y tinte (fondo suave) */
  --a-proteina: #927397; --t-proteina: #6f5374; --c-proteina: #f3eef4;
  --a-hidrato: #e9a48d; --t-hidrato: #a8573c; --c-hidrato: #fdf0ea;
  --a-grasa: #d8a62a; --t-grasa: #8a6710; --c-grasa: #fbf4e2;
  --a-lacteo: #7f7f7f; --t-lacteo: #555555; --c-lacteo: #f3f2f1;
  --a-fruta: #d6809c; --t-fruta: #a24667; --c-fruta: #fbeef2;
  --a-verdura: #18706d; --t-verdura: #18706d; --c-verdura: #e8f2f1;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(146, 115, 151, .06), 0 8px 24px rgba(146, 115, 151, .07);
  --f-title: 'Jost', 'Nunito', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.5 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; font-family: var(--f-title); }
h1 { font-weight: 300; font-size: clamp(28px, 5vw, 38px); color: var(--malva-d); letter-spacing: .01em; }
h2 { font-weight: 500; }
h3 { font-size: 18px; font-weight: 500; color: var(--malva-d); }
h4 { font-size: 15px; font-weight: 600; margin-top: 1em; }
p { margin: 0 0 .7em; }
a { color: var(--malva-d); }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.kicker { font-family: var(--f-title); text-transform: uppercase; letter-spacing: .28em; font-size: 12px; font-weight: 500; color: var(--rosa); margin: 0 0 6px; }

/* Splash / acceso */
.splash, .fm-splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.splash img, .fm-splash img { width: 84px; height: 84px; border-radius: 22px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .75; } }
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(circle at 15% 12%, var(--melocoton) 0, transparent 38%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border-radius: 26px; padding: 30px 26px; box-shadow: var(--shadow); text-align: center; }
.auth-card.wide { max-width: 520px; text-align: left; }
.auth-card.wide h1, .auth-card.wide .auth-logo { display: block; text-align: center; margin-left: auto; margin-right: auto; }
.auth-logo { width: 190px; max-width: 70%; margin: 0 auto 14px; display: block; }
.auth-card h1 { font-size: 28px; }
.auth-card form { text-align: left; margin-top: 18px; }
.auth-card label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=text], .auth-card input[type=tel] { display: block; width: 100%; margin-top: 5px; padding: 13px 14px; border: 1.5px solid #e6dad1; border-radius: 14px; background: #fffdfb; font-size: 16px; }
.auth-card .btn + .btn { margin-top: 10px; }
.auth-card input:focus { outline: none; border-color: var(--malva); box-shadow: 0 0 0 3px rgba(146, 115, 151, .18); }
.pw { position: relative; }
.pw input { padding-right: 46px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 2px; border: 0; background: none; font-size: 18px; cursor: pointer; opacity: .6; padding: 8px; }
.auth-msg { background: #fbecef; color: #8d3450; border-radius: 12px; padding: 10px 12px; font-size: 14px; text-align: left; }
.auth-foot { color: var(--muted); font-family: var(--f-title); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; margin-top: 18px; }
.consent { background: var(--crema); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; margin: 12px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 14px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--malva); flex-shrink: 0; margin-top: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--malva); color: #fff; font-weight: 700; padding: 12px 22px; cursor: pointer; text-decoration: none; min-height: 46px; transition: transform .1s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(.96); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: #fff; color: var(--malva-d); border: 1.5px solid #dccfdd; }
.btn.soft { background: #fff; color: var(--verde); border: 1.5px solid #cfe3e1; }
.linkbtn { border: 0; background: none; color: var(--malva-d); font-weight: 700; cursor: pointer; padding: 8px 2px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d8c9d9; }
.iconbtn { border: 1px solid var(--line); background: #fff; width: 40px; height: 40px; border-radius: 12px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--malva-d); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }

/* Estructura */
.preview-bar { background: var(--mostaza); color: #fff; font-weight: 800; text-align: center; padding: 6px 10px; font-size: 13px; position: sticky; top: 0; z-index: 60; }
.layout { display: flex; min-height: 100vh; }
.side { display: none; }
.main { flex: 1; min-width: 0; padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: rgba(250, 245, 239, .94); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.top-logo { height: 30px; }
.save-status { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.view { max-width: 1320px; margin: 0 auto; padding: 16px; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 50; }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 8px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.bottom-nav a.on { color: var(--malva-d); }
.bottom-nav a.on svg { stroke: var(--malva); }

@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; width: 236px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); padding: 26px 16px; position: sticky; top: 0; height: 100vh; }
  .side-logo { width: 168px; margin: 0 auto 30px; display: block; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 700; }
  .side-nav a svg { stroke: var(--malva); }
  .side-nav a:hover { background: var(--crema); }
  .side-nav a.on { background: var(--malva); color: #fff; }
  .side-nav a.on svg { stroke: #fff; }
  .side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
  .tagline { font-family: var(--f-title); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
  .bottom-nav { display: none; }
  .main { padding-bottom: 40px; }
  .topbar { display: none; }
  .view { padding: 28px 32px; }
}

/* Cabecera de cada vista */
.hero { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px 24px 22px; margin-bottom: 16px; }
.hero::before { content: ''; position: absolute; width: 210px; height: 210px; border-radius: 50%; background: var(--melocoton); right: -40px; top: -70px; opacity: .85; }
.hero::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 1.5px solid var(--rosa); right: 120px; bottom: -50px; opacity: .35; }
.hero-txt { position: relative; z-index: 1; max-width: 640px; }
.hero.small { padding: 20px 22px; }
.hero.small::before { width: 150px; height: 150px; right: -40px; top: -60px; }
.hero.small::after { display: none; }
.bloque { display: inline-block; background: var(--malva); color: #fff; font-weight: 700; border-radius: 999px; padding: 4px 14px; font-size: 14px; }

/* Selector de día y de tipo de día */
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px; gap: 2px; margin-bottom: 10px; }
.dp { border: 0; background: none; border-radius: 12px; padding: 9px 0; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); position: relative; }
.dp .dp-short { display: none; }
.dp.today::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--rosa); }
.dp.on { background: var(--malva); color: #fff; }
.dp.on.today::after { background: #fff; }
@media (max-width: 720px) { .dp .dp-long { display: none; } .dp .dp-short { display: inline; } }
.tipo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.tipo-label { font-family: var(--f-title); text-transform: uppercase; letter-spacing: .2em; font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--malva-d); }
.seg button.on { background: var(--malva-d); color: #fff; }

/* Tablero: tomas en columnas, familias en filas alineadas */
.board-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px 6px; }
.board { display: grid; column-gap: 14px; row-gap: 0; align-items: stretch; }
.col { display: contents; }
.cell { background: #fff; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 12px 14px; min-width: 0; }
.cell + .cell { border-top: 1px solid var(--line-soft); }
.cell.head { border-top: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; padding-top: 14px; border-bottom: 1px solid var(--line); }
.cell.foot { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.cell.empty { display: flex; align-items: center; justify-content: center; color: #ddd2c9; }
.head-top { display: flex; align-items: center; gap: 10px; }
.num { font-family: var(--f-title); font-weight: 300; font-size: 22px; color: var(--malva); width: 42px; height: 42px; border-radius: 50%; background: var(--melocoton); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.head-name h2 { font-size: 19px; margin: 0; color: var(--negro); }
.head-name span { font-size: 13px; color: var(--muted); }
.check-badge { margin-left: auto; background: var(--verde); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.cell.head.done { background: #f3f9f8; }
.intro { font-size: 13.5px; color: #5e5856; margin: 8px 0 0; }

.fam-label { display: flex; align-items: center; gap: 7px; font-family: var(--f-title); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 500; color: var(--t); margin-bottom: 7px; }
.fam-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--a); }
.fam-label em { margin-left: auto; font-style: normal; letter-spacing: 0; text-transform: none; font-family: 'Nunito', sans-serif; font-size: 12px; color: var(--muted); font-weight: 600; }
.food { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--c); border: 0; border-left: 3px solid var(--a); border-radius: 10px; padding: 9px 11px; cursor: pointer; text-align: left; min-height: 46px; transition: filter .15s; }
.food:hover { filter: brightness(.98); }
.food .emoji { font-size: 20px; }
.food .fname { flex: 1; font-weight: 700; font-size: 15px; line-height: 1.25; }
.food .chev { font-size: 12px; font-weight: 700; color: var(--t); white-space: nowrap; }
.amount-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.amount { margin: 0; font-size: 14.5px; flex: 1; }
.amount strong { font-size: 17px; font-weight: 800; }
.pill { display: inline-block; font-size: 11.5px; background: var(--crema); border-radius: 999px; padding: 1px 8px; font-weight: 700; color: var(--muted); vertical-align: 1px; }
.dice { border: 1px solid var(--line); background: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; color: var(--t); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dice svg { width: 18px; height: 18px; }
.dice circle { fill: currentColor; stroke: none; }
.note { font-size: 12.5px; background: var(--crema); border-radius: 8px; padding: 6px 9px; margin: 8px 0 0; color: #5e5856; }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; }
.vchip { display: inline-flex; align-items: center; gap: 3px; background: var(--c); color: var(--t); border-radius: 999px; padding: 4px 3px 4px 11px; font-weight: 700; font-size: 13.5px; }
.vchip button { border: 0; background: none; cursor: pointer; font-weight: 800; color: inherit; opacity: .6; padding: 0 6px; font-size: 16px; }
.addveg { margin-top: 8px; width: 100%; border: 1.5px dashed #b9d8d5; background: #fff; color: var(--verde); border-radius: 10px; padding: 8px; font-weight: 700; cursor: pointer; }
.cell.aove { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; background: #fffdf7; }
.cell.aove .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mostaza); margin-top: 7px; flex-shrink: 0; }
.tips { background: var(--crema); border-radius: 10px; padding: 8px 12px; }
.tips summary { font-weight: 700; cursor: pointer; font-size: 14px; color: var(--malva-d); }
.tips[open] summary { margin-bottom: 6px; }
.md { font-size: 14.5px; }
.md h4 { font-size: 15px; color: var(--malva-d); margin: 12px 0 4px; }
.md ul { margin: 0 0 .7em; padding-left: 20px; }
.md li { margin-bottom: 3px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 22px 0 10px; }

/* Móvil: cada toma es una tarjeta, una debajo de otra */
@media (max-width: 760px) {
  .board-wrap { overflow: visible; margin: 0; padding: 0; }
  .board { display: block; }
  .col { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
  .cell { border: 0 !important; border-radius: 0 !important; }
  .cell + .cell { border-top: 1px solid var(--line-soft) !important; }
  .cell.empty { display: none; }
  .cell.head { border-bottom: 1px solid var(--line) !important; }
}

.fam-proteina { --a: var(--a-proteina); --t: var(--t-proteina); --c: var(--c-proteina); }
.fam-hidrato { --a: var(--a-hidrato); --t: var(--t-hidrato); --c: var(--c-hidrato); }
.fam-grasa { --a: var(--a-grasa); --t: var(--t-grasa); --c: var(--c-grasa); }
.fam-lacteo { --a: var(--a-lacteo); --t: var(--t-lacteo); --c: var(--c-lacteo); }
.fam-fruta { --a: var(--a-fruta); --t: var(--t-fruta); --c: var(--c-fruta); }
.fam-verdura { --a: var(--a-verdura); --t: var(--t-verdura); --c: var(--c-verdura); }

/* Hoja inferior para cambiar alimentos */
.sheet-bg { position: fixed; inset: 0; background: rgba(23, 23, 23, 0); z-index: 100; display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.sheet-bg.open { background: rgba(23, 23, 23, .35); }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s ease-out; }
.sheet-bg.open .sheet { transform: none; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; position: sticky; top: -16px; background: #fff; padding: 4px 0 6px; z-index: 1; }
.sheet-head h3 { margin: 0; }
.sheet-head .kicker { margin-bottom: 2px; }
.search { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin: 4px 0 10px; background: #fffdfb; font-size: 16px; }
.opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ogroup h4 { font-family: var(--f-title); text-transform: uppercase; font-size: 11.5px; letter-spacing: .16em; color: var(--muted); font-weight: 500; margin: 10px 4px 6px; }
.ogroup { display: flex; flex-direction: column; gap: 6px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; text-align: left; min-height: 54px; }
.opt .emoji { font-size: 22px; }
.opt .oname { flex: 1; font-weight: 700; }
.opt .oname small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.opt .tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; flex-shrink: 0; }
.opt.on { border-color: var(--malva); background: #faf7fa; }
.opt.on .tick { background: var(--malva); border-color: var(--malva); }

/* Searchable sheets follow the visual viewport; other sheets keep their existing layout. */
.sheet-bg.sheet-viewport { inset: auto; top: var(--sheet-visible-top, 0px); left: var(--sheet-visible-left, 0px); width: var(--sheet-visible-width, 100%); height: var(--sheet-visible-height, 100dvh); }
.sheet.sheet-selector { display: flex; flex-direction: column; overflow: hidden; max-height: calc(var(--sheet-visible-height, 100dvh) * .88); }
.sheet-selector-head { flex: 0 0 auto; min-width: 0; }
.sheet-selector-head .sheet-head { position: static; }
.sheet-selector-results { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.sheet-keyboard .sheet-selector { max-height: calc(var(--sheet-visible-height) - 8px); padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.sheet-keyboard .sheet-keyboard-context { display: none; }
.sheet-keyboard .sheet-selector-head .sheet-head { padding-top: 0; padding-bottom: 2px; }
.sheet-keyboard .sheet-selector-head .kicker { font-size: 11px; }
.sheet-keyboard .sheet-selector-head h3 { font-size: 18px; line-height: 1.2; }
.sheet-keyboard .sheet-selector-head .search { margin: 2px 0 6px; padding: 8px 12px; }
.sheet-keyboard .sheet-selector-head h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sheet-tight .sheet-selector-head h3 { -webkit-line-clamp: 1; font-size: 16px; }
.sheet-tight .sheet-selector-head .kicker { display: none; }
.sheet-tight .sheet-selector-head label { font-size: 12px; }
.sheet-tight .sheet-selector-head .search { padding-top: 6px; padding-bottom: 6px; }
.sheet-selector-results .qm-foot { margin-left: 0; margin-right: 0; }

/* Mi semana */
.week { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .week { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .week { grid-template-columns: repeat(4, 1fr); } }
.wk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.wk.today { border-color: var(--rosa); }
.wk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.wk-head > div { display: flex; align-items: center; gap: 8px; }
.wk-head h3 { margin: 0; color: var(--negro); }
.today-badge { background: var(--rosa); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.wk-tipo { border: 1.5px solid #dccfdd; border-radius: 999px; padding: 5px 10px; background: #fff; color: var(--malva-d); font-weight: 700; font-size: 13px; max-width: 100%; }
.wk-tomas { flex: 1; }
.wk-toma { padding: 7px 0; border-top: 1px dashed var(--line); }
.wk-name { font-family: var(--f-title); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.minis { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mini { font-size: 12.5px; font-weight: 700; background: var(--c); color: var(--t); border-radius: 8px; padding: 1px 8px; }

/* Compra */
.shop-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .shop-list { grid-template-columns: repeat(2, 1fr); } }
.shop-group { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 12px 16px; }
.shop-group h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--t); font-size: 16px; }
.shop-group h3 i { width: 9px; height: 9px; border-radius: 50%; background: var(--a); }
.shop { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.shop:last-child { border-bottom: 0; }
.shop input { width: 22px; height: 22px; accent-color: var(--verde); flex-shrink: 0; }
.shop span { flex: 1; font-weight: 700; }
.shop strong { font-size: 13.5px; color: var(--malva-d); text-align: right; font-weight: 700; }
.shop.got span, .shop.got strong { text-decoration: line-through; opacity: .5; }

/* Recetas */
.rec-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.rec-filters .search { width: auto; flex: 1; min-width: 180px; margin: 0; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; cursor: pointer; font-size: 14px; }
.chip.on { background: var(--malva); border-color: var(--malva); color: #fff; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (min-width: 700px) { .rec-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.rec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; text-align: left; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rec-img { aspect-ratio: 4 / 3; background: var(--melocoton) center/cover; display: flex; align-items: center; justify-content: center; }
.rec-img span { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #fff; opacity: .8; }
.rec-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.recipe-img { aspect-ratio: 16 / 9; max-height: 380px; width: 100%; border-radius: 22px; background: var(--melocoton) center/cover; margin-bottom: 14px; }
.recipe-cols { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 850px) { .recipe-cols { grid-template-columns: 1fr 1.3fr; } }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card select { padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fffdfb; margin-left: 4px; font-weight: 700; }
.ings { list-style: none; margin: 10px 0; padding: 0; }
.ings li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; margin-bottom: 4px; background: #faf7f4; border-left: 3px solid transparent; }
.ings li[class*=fam-] { background: var(--c); border-left-color: var(--a); }
.ings li strong { white-space: nowrap; color: var(--t, var(--malva-d)); }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* Guía */
.guide-hero h1 { margin-bottom: 8px; }
.work { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 750px) { .work { grid-template-columns: 1fr 1fr; } }
.work-item { display: flex; gap: 12px; background: var(--crema); border-radius: 14px; padding: 12px; }
.work-item p { margin: 2px 0 0; font-size: 14.5px; }
.wn { font-family: var(--f-title); background: var(--melocoton); color: var(--malva-d); width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; flex-shrink: 0; }
.goal { background: linear-gradient(135deg, #fbf5fb, #fff); }
.struct-tipo { font-family: var(--f-title); text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; color: var(--rosa); margin: 16px 0 6px; }
.struct { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.struct-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #faf7f4; border-radius: 14px; padding: 10px 12px; }
.struct-name { min-width: 110px; display: flex; flex-direction: column; }
.formula { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fchip { background: var(--c); color: var(--t); border: 1px solid var(--a); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 13px; }
.plus { color: var(--muted); font-weight: 800; padding: 0 2px; }
.callout { background: var(--c-proteina); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.firma { font-family: var(--f-title); color: var(--malva-d); letter-spacing: .1em; margin: 20px 0; }

.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--negro); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; z-index: 200; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a63d56; }
@media (min-width: 900px) { .toast { bottom: 30px; } }

/* Impresión / PDF */
.print-area { display: none; }
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body { background: #fff; }
  body.printing > *:not(#app) { display: none !important; }
  body.printing #app > *:not(.print-area) { display: none !important; }
  body.printing .print-area { display: block !important; }
  .print-area { font: 500 10.5px/1.35 'Nunito', sans-serif; color: #171717; }
  .p-head { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid #927397; padding-bottom: 8px; margin-bottom: 10px; }
  .p-head img { height: 40px; }
  .p-head h1 { font-size: 18px; margin: 0; color: #6f5374; font-weight: 400; }
  .p-head p { margin: 0; color: #7f7f7f; }
  .p-wday { break-inside: avoid; margin-bottom: 8px; border: 1px solid #eee4dc; border-radius: 8px; padding: 6px 8px; }
  .p-wday h2 { font-size: 12.5px; margin: 0 0 4px; color: #6f5374; }
  .p-wday h2 span { font-weight: 500; color: #d6809c; font-size: 11px; }
  .p-tomas { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; grid-auto-flow: column; }
  .p-toma h3 { font-size: 10.5px; margin: 0 0 3px; color: #171717; }
  .p-toma h3 span, .p-day h2 span { font-weight: 500; color: #7f7f7f; }
  .p-item { padding: 1px 0 1px 6px; border-left: 3px solid var(--a, #ddd); margin-bottom: 2px; }
  .p-item i { color: #7f7f7f; }
  .p-day { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .p-day section { border: 1px solid #eee4dc; border-radius: 8px; padding: 8px 10px; break-inside: avoid; }
  .p-day h2 { font-size: 13px; color: #6f5374; margin: 0 0 6px; }
  .p-day .p-item { font-size: 12px; margin-bottom: 4px; }
  .p-shop { columns: 2; }
  .p-shop .shop-group { break-inside: avoid; border: 1px solid #eee4dc; margin-bottom: 8px; padding: 6px 10px; border-radius: 8px; }
  .p-shop .shop { padding: 3px 0; }
  .p-shop h3 { font-size: 13px; }
  .p-foot { margin-top: 8px; color: #7f7f7f; font-size: 9.5px; }
}
@media (max-width: 760px) { .hero::after { display: none; } .hero::before { width: 150px; height: 150px; right: -50px; top: -60px; } }

/* Fuente de energía: hidrato + grasa en un mismo bloque */
.cell.energia { background: linear-gradient(180deg, #fffdf8, #fff); }
.en-label { font-family: var(--f-title); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 500; color: var(--t-grasa); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.en-label::before { content: ''; width: 16px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--a-hidrato) 50%, var(--a-grasa) 50%); }
.en-part + .en-part { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fam-label.sub { font-size: 10.5px; letter-spacing: .12em; margin-bottom: 5px; }
.split { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.split-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; color: var(--malva-d); cursor: pointer; white-space: nowrap; }
.split-btn:disabled { opacity: .35; cursor: default; }
.split-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--a-grasa); overflow: hidden; min-width: 40px; }
.split-bar span { display: block; height: 100%; background: var(--a-hidrato); border-radius: 999px 0 0 999px; transition: width .2s; }
.fchip.energia { background: #fcf5e6; color: var(--t-grasa); border: 1px solid var(--a-grasa); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 13px; }
.scope { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
@media (min-width: 500px) { .scope { flex-direction: row; } .scope .btn { flex: 1; } }

/* Receta dentro de una toma */
.cell.receta { background: #fff; }
.rcell-img { aspect-ratio: 16 / 10; border-radius: 12px; background: var(--melocoton) center/cover; margin-bottom: 10px; }
.rcell .kicker { margin-bottom: 2px; }
.rcell-title { font-size: 18px; color: var(--negro); margin: 0 0 2px; }
.ings.compact { margin: 8px 0; }
.ings.compact li { padding: 6px 9px; font-size: 14px; margin-bottom: 3px; }
.complete { font-family: var(--f-title); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.rcell-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.rec-opt .rthumb { width: 56px; height: 56px; border-radius: 10px; background: var(--melocoton) center/cover; flex-shrink: 0; }
.mini.receta { background: var(--melocoton); color: var(--malva-d); }

/* Mis recetas y formulario */
.hero .btn.small { margin-top: 4px; }
.card.mine h3 { margin-bottom: 6px; }
.mine-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); align-items: flex-start; }
.mine-act { display: flex; gap: 8px; flex-shrink: 0; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 2px 9px; vertical-align: 1px; }
.badge.pend { background: var(--c-grasa); color: var(--t-grasa); }
.badge.ok { background: var(--c-verdura); color: var(--verde); }
.badge.ko { background: var(--c-fruta); color: var(--t-fruta); }
.card.form { max-width: 760px; }
.fl { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 0; }
.inp { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fffdfb; font-size: 16px; margin-top: 5px; font-weight: 500; }
.inp:focus { outline: none; border-color: var(--malva); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ing-row { display: grid; grid-template-columns: 1fr 90px 110px 36px; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--c, #faf7f4); border-left: 3px solid var(--a, #ddd); margin-top: 6px; }
.ing-row .inp { margin: 0; padding: 7px 9px; font-size: 15px; }
.ing-row .ing-name { font-weight: 700; font-size: 14.5px; }
.iconbtn.small { width: 32px; height: 32px; font-size: 18px; }
@media (max-width: 520px) { .ing-row { grid-template-columns: 1fr 70px 80px 32px; } }
.fsearch { position: relative; margin-top: 8px; }
.fsug { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 20; max-height: 280px; overflow: auto; }
.fsug:empty { display: none; }
.fsug button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; cursor: pointer; font-weight: 700; }
.fsug button:hover { background: var(--crema); }
.row-actions.left { justify-content: flex-start; }
.tips.ref { margin-top: 12px; }

/* Receta de verduras y acompañamientos */
.vr-link { display: block; margin-top: 2px; font-size: 13px; }
.vrec { display: flex; align-items: center; gap: 4px; background: var(--c-verdura); border-radius: 12px; padding: 4px 4px 4px 10px; }
.vrec-name { flex: 1; border: 0; background: none; text-align: left; font-weight: 800; color: var(--verde); cursor: pointer; padding: 6px 0; font-size: 14px; }
.vrec-x, .acomp .x { border: 0; background: none; font-size: 18px; font-weight: 800; color: inherit; opacity: .6; cursor: pointer; padding: 0 8px; }
.acomps { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.acomp { display: flex; align-items: center; background: var(--c-grasa); color: var(--t-grasa); border-radius: 10px; padding: 2px 2px 2px 10px; }
.acomp button:first-child { flex: 1; border: 0; background: none; text-align: left; font-weight: 700; color: inherit; cursor: pointer; padding: 6px 0; font-size: 13.5px; }
.food.fixed { cursor: default; }
.food.fixed:hover { filter: none; }

/* ================= Tarjetas "carta" (Mi día) ================= */
.mcard.m0 { --tint: #fdf1ea; --tint-2: #fbe3d8; --acc: #e9a48d; --ink: #9c5238; }
.mcard.m1 { --tint: #faf3e4; --tint-2: #f4e6c7; --acc: #d8a62a; --ink: #86640f; }
.mcard.m2 { --tint: #fcf0f3; --tint-2: #f7dce4; --acc: #d6809c; --ink: #9c4462; }
.mcard.m3 { --tint: #f4eef5; --tint-2: #e7dcea; --acc: #927397; --ink: #6f5374; }
.menu-wrap { overflow-x: auto; margin: 0 -4px; padding: 2px 4px 10px; }
.menu-board { display: grid; grid-template-columns: repeat(var(--n), minmax(236px, 1fr)); gap: 16px; align-items: start; }
.mcard { background: var(--tint); border-radius: 22px; padding: 16px 10px 12px; position: relative; overflow: hidden; }
.mcard::before { content: ''; position: absolute; right: -38px; top: -46px; width: 120px; height: 120px; border-radius: 50%; background: var(--tint-2); opacity: .7; }
.mc-head { display: flex; align-items: center; gap: 10px; position: relative; margin: 0 2px 10px; }
.mc-num { font-family: var(--f-title); font-weight: 300; font-size: 15px; color: var(--ink); letter-spacing: .08em; opacity: .75; }
.mc-name { flex: 1; min-width: 0; }
.mc-name h2 { font-family: var(--f-title); font-weight: 300; font-size: 26px; line-height: 1.05; color: var(--ink); margin: 0; letter-spacing: .01em; }
.mc-hora { font-size: 12.5px; color: var(--ink); opacity: .7; font-weight: 700; }
.mc-check { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--acc); background: rgba(255,255,255,.7); color: var(--acc); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s; }
.mc-check svg { width: 18px; height: 18px; stroke-width: 2.4; opacity: .35; }
.mc-check:hover svg { opacity: .8; }
.mc-check.on { background: var(--acc); color: #fff; }
.mc-check.on svg { opacity: 1; }
.mc-intro { position: relative; font-size: 14px; color: #5e5450; margin: -4px 2px 10px; }
.mc-body { background: #fff; border-radius: 16px; padding: 4px 11px; position: relative; box-shadow: 0 1px 2px rgba(146,115,151,.05); }
.mlines { list-style: none; margin: 0; padding: 0; }
.mlines.extras { border-top: 1px dashed var(--line); }
.mli { position: relative; display: flex; align-items: center; }
.mli + .mli, .mgroup + .mli, .mli + .mgroup { border-top: 1px solid var(--line-soft); }
.mline { flex: 1; min-width: 0; display: flex; gap: 9px; align-items: flex-start; text-align: left; background: none; border: 0; padding: 11px 0; cursor: pointer; }
.mline.static { cursor: default; }
button.mline:hover .mname { color: var(--ink); }
button.mline:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 8px; }
.mdot { width: 8px; height: 8px; border-radius: 50%; background: var(--a, #d9cfc7); margin-top: 7px; flex-shrink: 0; }
.mtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mrow { display: flex; align-items: baseline; gap: 6px; }
.mname { font-weight: 700; font-size: 15px; line-height: 1.3; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.mlead { flex: 1; min-width: 8px; border-bottom: 2px dotted #e3d8cf; transform: translateY(-4px); }
.mqty { font-weight: 800; font-size: 15px; white-space: nowrap; color: var(--negro); }
.mchev { color: #c9bab0; font-size: 18px; line-height: 1; margin-left: 1px; }
.msub { font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.mx { border: 0; background: none; color: #b6a79d; font-size: 18px; cursor: pointer; padding: 6px 2px 6px 8px; }
.mgroup { padding: 8px 0 6px; }
.mgroup-label { display: block; font-family: var(--f-title); text-transform: uppercase; letter-spacing: .2em; font-size: 10.5px; color: var(--t-hidrato); margin: 2px 0 0 17px; }
.mgroup .mlines { border-left: 2px solid var(--c-hidrato); margin-left: 3px; padding-left: 0; }
.mgroup .mli { margin-left: -5px; }
.mgroup .mli + .mli { border-top: 1px dashed var(--line-soft); }
.msplit { display: flex; align-items: center; gap: 8px; margin: 2px 0 2px 14px; }
.msplit button { border: 0; background: none; font-size: 12px; font-weight: 800; color: var(--t-hidrato); cursor: pointer; padding: 4px 0; white-space: nowrap; }
.msplit button:first-child { color: var(--t-grasa); }
.msplit button:disabled { opacity: .3; cursor: default; }
.msplit-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--a-grasa); overflow: hidden; opacity: .8; }
.msplit-bar i { display: block; height: 100%; background: var(--a-hidrato); }
.mc-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 4px 0; position: relative; }
.mlink { border: 0; background: none; padding: 4px 0; font-weight: 800; font-size: 13.5px; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--acc) 55%, transparent); text-underline-offset: 3px; }
.mc-tips { margin: 6px 4px 0; position: relative; }
.mc-tips .tips { background: rgba(255,255,255,.55); border: 0; }
.mcard.is-done .mc-body, .mcard.is-skip .mc-body { opacity: .6; }
/* receta dentro de la tarjeta */
.mrec { padding: 10px 0 6px; }
.mrec-img { height: 120px; border-radius: 12px; background: var(--tint) center/cover; margin: 2px 0 10px; }
.mrec-k { font-family: var(--f-title); text-transform: uppercase; letter-spacing: .22em; font-size: 10.5px; color: var(--ink); margin: 0 0 2px; }
.mrec-k.sub { margin-top: 10px; }
.mrec-title { display: block; border: 0; background: none; padding: 0; text-align: left; font-family: var(--f-title); font-weight: 400; font-size: 19px; line-height: 1.2; color: var(--negro); cursor: pointer; margin-bottom: 4px; }
.mrec-act { display: flex; gap: 16px; padding-top: 6px; flex-wrap: wrap; }
.mrec-act .linkbtn { white-space: nowrap; text-align: left; }
.muted-link { color: var(--muted) !important; }
@media (max-width: 760px) {
  .menu-wrap { overflow: visible; margin: 0; padding: 0; }
  .menu-board { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
  .mc-name h2 { font-size: 24px; }
}
@media print { .mc-check, .mc-links, .mchev, .mx, .msplit { display: none !important; } }
.mfill { flex: 1; }
.macbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 0 0 14px; font-size: 14.5px; }
.macbar strong { font-size: 17px; }
.macbar-k { font-family: var(--f-title); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; color: #8a6710; }
.macbar-n { margin-left: auto; font-size: 12px; color: var(--muted); }
@media print { .macbar { display: none; } }

.macbar.preview { background: #fffbea; border: 1px dashed #e6cf86; }
.macbar:not(.preview) .macbar-k { color: var(--rosa); }

/* Registro de cada toma */
.mc-est { font-size: 18px; font-weight: 800; line-height: 1; }
.mc-check.on.e-menos, .mc-check.on.e-mas { background: #fff; color: var(--ink); border-color: var(--acc); border-width: 2px; }
.mc-check.on.e-no { background: #fff; color: #9b8a80; border-color: #cbbfb7; }
.logopts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.logopt { display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 14px; cursor: pointer; }
.logopt strong { display: block; font-size: 15.5px; }
.logopt small { color: var(--muted); font-size: 12.5px; }
.logopt .li { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; background: var(--crema); color: var(--malva-d); flex-shrink: 0; }
.logopt.e-tal_cual .li { background: #e3f1ef; color: var(--verde); }
.logopt.e-no .li { background: #f3eeeb; color: #9b8a80; }
.logopt.on { border-color: var(--malva); box-shadow: 0 0 0 3px rgba(146,115,151,.15); }
.seg-btn { display: inline-flex; margin-top: 6px; text-decoration: none; position: relative; z-index: 1; }
.mrec-porc { font-size: 13px; color: var(--ink); margin: 0 0 4px; }
.porc { background: var(--crema); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin: 10px 0 0; }

/* Mi guía · medidas caseras */
.spoons { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 10px 0; }
.spoons div { background: var(--crema); border-radius: 12px; padding: 10px 12px; }
.spoons strong { display: block; font-family: var(--f-title); font-weight: 500; color: var(--malva-d); }
.spoons span { font-size: 13.5px; color: var(--muted); }
.medidas .search { width: 100%; margin: 6px 0 10px; }
.med-groups { display: flex; flex-direction: column; gap: 6px; }
.med-list { list-style: none; margin: 0; padding: 0; }
.med-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.med-list li:first-child { border-top: 0; }
.med-list em { font-style: normal; color: var(--muted); }
.med-list b { white-space: nowrap; font-weight: 700; color: var(--malva-d); }

/* Seguimiento y ¿Qué me hago? */
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; position: relative; z-index: 1; }
.hero-act .seg-btn { margin-top: 0; }
.seg-next { font-size: 13.5px; color: var(--malva-d); background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.seg-card { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, #fff 0%, var(--melocoton) 140%); border: 1.5px solid #f1c9bb; border-radius: var(--radius); padding: 14px 16px; margin: 0 0 14px; box-shadow: var(--shadow); }
.seg-card.done { background: #eef6f5; border-color: #cfe5e2; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.seg-card.done strong { color: var(--verde); }
.seg-card.done p { margin: 0; font-size: 14px; }
.seg-ico { font-size: 28px; line-height: 1; }
.seg-txt strong { display: block; font-family: var(--f-title); font-weight: 500; font-size: 18px; color: var(--malva-d); }
.seg-txt p { margin: 2px 0 8px; font-size: 14.5px; }
.seg-act { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-push { margin: 10px 0 0 !important; }
.sheet.qm { padding-bottom: 0; }
.qm-tomas { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.qm-groups { display: flex; flex-direction: column; gap: 4px; }
.qm-g h4 { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-size: 14px; color: var(--malva-d); }
.qm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acc, var(--malva)); display: inline-block; }
.qm-dot.fam-proteina { background: var(--a-proteina); } .qm-dot.fam-hidrato { background: var(--a-hidrato); } .qm-dot.fam-grasa { background: var(--a-grasa); }
.qm-dot.fam-lacteo { background: var(--a-lacteo); } .qm-dot.fam-fruta { background: var(--a-fruta); } .qm-dot.fam-verdura { background: var(--a-verdura); }
.qm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nv { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.nv.on { border-color: var(--malva); background: var(--c-proteina); color: var(--malva-d); font-weight: 700; }
.qm-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-top: 1px solid var(--line); margin: 12px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.qm-list { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 12px; }
.qm-opt { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fffdfb; }
.qm-k { font-family: var(--f-title); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: var(--rosa); margin: 0 0 2px; }
.qm-opt h4 { margin: 0 0 6px; font-size: 16.5px; color: var(--malva-d); }
.qm-opt .ings small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.qm-nota { font-size: 13px; color: #8a6710; background: #fbf4e2; border-radius: 10px; padding: 6px 10px; margin: 8px 0 0; }
.qm-act { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.sheet.qm > [data-qm-back] { display: inline-block; margin: 0 0 18px; }
.seg-card.mensual { border-color: #d9c6dc; background: linear-gradient(135deg, #fff 0%, #efe4f1 140%); }
.seg-card.suave { background: #fffaf6; border-color: var(--line); }
.seg-manual { margin: 8px 0 0 !important; }

/* ---- 1.12: WhatsApp, letra grande, tour, salvavidas, suplementos ---- */
.wa-fab { position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 6px; background: #1f9d55; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; padding: 10px 14px 10px 11px; border-radius: 999px; box-shadow: 0 6px 18px rgba(20, 90, 50, .28); }
.wa-fab svg, .btn.wa svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (min-width: 900px) { .wa-fab { bottom: 22px; right: 22px; } }
.txtbtn { font-family: var(--f-title); font-size: 17px; font-weight: 700; }
@media screen { html.fm-big body { zoom: 1.16; } }
@media print { .wa-fab, .tour-bg { display: none !important; } }

.tour-bg { position: fixed; inset: 0; z-index: 120; background: rgba(23, 23, 23, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tour { background: #fff; border-radius: 24px; max-width: 400px; width: 100%; padding: 28px 22px 20px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.tour-ico { font-size: 54px; line-height: 1; margin-bottom: 10px; }
.tour h2 { font-family: var(--f-title); font-weight: 600; font-size: 24px; margin: 0 0 8px; color: var(--malva-d); }
.tour p { font-size: 17px; line-height: 1.55; margin: 0 0 18px; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e4d9e5; }
.tour-dots i.on { background: var(--malva); width: 22px; border-radius: 4px; }
.tour-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-act .btn:not(.ghost) { flex: 1; }

.salva-ico { display: inline-block; font-size: .85em; margin-left: 2px; }
.salva-filter { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.qm-salva { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1.5px dashed #b9d8bd; background: #f1f8f1; color: #2f6b36; border-radius: 14px; padding: 10px 14px; margin: 4px 0 12px; font: inherit; font-size: 15px; cursor: pointer; }
.card.salva .salva-fam { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 15px; }
.salva-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.salva-chip { background: var(--crema); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 700; }

.sup-hoy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 6px; margin: 0 0 16px; box-shadow: var(--shadow); }
.sup-hoy h3 { font-family: var(--f-title); font-weight: 600; font-size: 17px; margin: 0 0 4px; color: var(--malva-d); }
.sup { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.sup:first-of-type { border-top: 0; padding-top: 4px; }
.sup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sup-head strong { font-size: 17px; }
.sup-dosis { background: var(--c-proteina); color: var(--t-proteina); border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: 14px; }
.sup p { margin: 6px 0 0; }
.sup-when { color: var(--malva-d); font-weight: 700; }
.sup-buy { margin-top: 10px; }
.sheet .sup { border-top: 0; }

.shop-send { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; }
.shop-send p { flex-basis: 100%; margin: 0; }
.btn.wa { background: #1f9d55; }
.p-sups { margin-top: 14px; }

/* ---- 1.12.2: hidratos y grasas por separado, AOVE principal, dibujo del plato ---- */
.mgroup.g-grasa .mgroup-label { color: var(--t-grasa); }
.mgroup.g-grasa .mlines { border-left-color: var(--c-grasa); }
.msplit-li { display: block; padding: 6px 0 4px; }
.msplit-q { margin: 0 0 0 14px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.mplato { display: flex; align-items: center; gap: 12px; padding: 10px 0 8px; border-bottom: 1px solid var(--line-soft); }
.mplato svg { width: 60px; height: 60px; flex-shrink: 0; }
.mplato ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.mplato li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mplato li b { color: var(--text); }
.mplato li i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mplato li i.gota { background: var(--a-grasa); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
@media print { .mplato, .msplit-li { display: none !important; } }
.mplato-t { margin: 0 0 3px; font-family: var(--f-title); font-size: 13px; color: var(--malva-d); font-weight: 600; }
.menos-li { display: block; padding: 8px 0 8px 14px; }
.menos-q { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--t-hidrato); }
.menos-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.small { padding: 5px 11px; font-size: 13px; }
.menos-opts .chip.on { background: var(--a-hidrato); border-color: var(--a-hidrato); }
.mli-add { display: block; padding: 0 0 8px 17px; border-top: 0 !important; }
.madd { border: 0; background: none; padding: 0; color: var(--malva-d); font-weight: 800; font-size: 13px; cursor: pointer; text-align: left; }
.madd small { font-weight: 600; color: var(--muted); }
@media print { .menos-li, .mli-add { display: none !important; } }

/* ---- 1.14: frecuencias semanales ---- */
.card.frec { padding: 16px 18px; margin: 0 0 16px; }
.card.frec h3 { margin: 0 0 2px; font-family: var(--f-title); font-weight: 600; font-size: 18px; color: var(--malva-d); }
.frec-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.frec-list li { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; gap: 0 8px; background: #fff; }
.frec-list li span { font-weight: 700; font-size: 14px; }
.frec-list li b { font-size: 20px; font-family: var(--f-title); line-height: 1; }
.frec-list li small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); font-weight: 700; }
.frec-list li.fr-ok { border-color: #cfe3e1; background: #f3faf9; }
.frec-list li.fr-ok small { color: var(--verde); }
.frec-list li.fr-bajo { border-color: #f2d7a6; background: #fffaf0; }
.frec-list li.fr-bajo small { color: #9a6a10; }
.frec-list li.fr-alto { border-color: #efc2c2; background: #fff5f5; }
.frec-list li.fr-alto small { color: #b3261e; }
.aove-sw { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.aove-sw button { border: 0; background: #fff; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--muted); padding: 3px 9px; cursor: pointer; }
.aove-sw button.on { background: var(--a-grasa); color: #fff; }
.vr-group { margin-top: 14px; }
@media print { .aove-sw button:not(.on) { display: none; } }
.cook-n { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.cook-n p { margin: 0 0 6px; font-weight: 800; font-size: 14px; color: var(--malva-d); }
.cook-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.cook-tot { margin-top: 12px; background: var(--crema); border-radius: 14px; padding: 10px 12px; }
.cook-tot h4 { margin: 0 0 4px; font-family: var(--f-title); font-weight: 600; }

/* ---- 1.16: saludo, nota, primeros pasos, avances, fotos ---- */
.sal-ico { font-size: .8em; }
.animo { font-family: var(--f-title); font-weight: 400; font-size: 17px; color: var(--malva-d); margin: 4px 0 6px; max-width: 520px; line-height: 1.4; }
.nota-card { display: flex; gap: 12px; background: linear-gradient(135deg, #fff 0%, #fbeef2 100%); border: 1px solid #f1d6df; border-radius: var(--radius); padding: 14px 16px 10px; margin: 0 0 16px; box-shadow: var(--shadow); }
.nota-ico { font-size: 28px; line-height: 1; padding-top: 2px; }
.nota-k { margin: 0 0 4px; font-family: var(--f-title); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--t-fruta); }
.nota-txt .md p { margin: 0 0 6px; font-size: 16px; }
.nota-txt { flex: 1; min-width: 0; }
.pasos { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 8px; margin: 0 0 16px; box-shadow: var(--shadow); }
.pasos-head { display: flex; justify-content: space-between; align-items: baseline; }
.pasos-head h3 { margin: 0; font-family: var(--f-title); font-weight: 600; font-size: 18px; color: var(--malva-d); }
.pasos-head span { font-weight: 800; font-size: 13px; color: var(--muted); }
.pasos-bar { height: 7px; border-radius: 7px; background: var(--c-proteina); margin: 8px 0 6px; overflow: hidden; }
.pasos-bar i { display: block; height: 100%; background: var(--malva); border-radius: 7px; transition: width .4s; }
.pasos ul { list-style: none; margin: 0; padding: 0; }
.pasos li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; border-top: 1px solid var(--line-soft); }
.pasos li:first-child { border-top: 0; }
.pasos li .pc { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #dccfdd; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0; }
.pasos li.ok { color: var(--muted); text-decoration: line-through; text-decoration-color: #cbbccd; }
.pasos li.ok .pc { background: var(--verde); border-color: var(--verde); }
.pasos li a, .pasos li .linkbtn { color: var(--malva-d); font-weight: 700; padding: 0; text-align: left; }
.resumen { display: flex; gap: 16px; align-items: center; background: var(--c-verdura); border: 1px solid #cfe3e1; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 16px; }
.res-num { font-family: var(--f-title); font-size: 44px; line-height: 1; color: var(--verde); text-align: center; min-width: 64px; }
.res-num small { display: block; font-size: 13px; color: var(--muted); font-family: var(--f-body); font-weight: 700; }
.res-k { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--verde); font-family: var(--f-title); }
.res-t { margin: 2px 0; font-size: 17px; }
.confeti { position: fixed; left: 50%; top: 45%; z-index: 200; pointer-events: none; }
.confeti i { position: absolute; font-style: normal; font-size: 22px; opacity: 0; animation: confeti 1.1s ease-out forwards; animation-delay: var(--d); }
@keyframes confeti { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; } }
.fico { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; vertical-align: middle; display: inline-block; }
.nv .fico, .salva-chip .fico { width: 20px; height: 20px; margin: -3px 2px 0 -4px; }
.mimg { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 1px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.mimg.fam-proteina { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--a-proteina); }
.mimg.fam-hidrato { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--a-hidrato); }
.mimg.fam-grasa { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--a-grasa); }
.mimg.fam-lacteo { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--a-lacteo); }
.mimg.fam-fruta { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--a-fruta); }
@media print { .nota-card, .pasos, .resumen { display: none !important; } }
.mgroup.g-postre .mgroup-label { color: var(--t-fruta); }
.mgroup.g-postre .mlines { border-left-color: var(--c-fruta); }
.postre-opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px 14px; }
.postre-opts .chip.on { background: var(--a-fruta); border-color: var(--a-fruta); }
@media print { .postre-opts { display: none !important; } }

/* 1.17 · extras de la dietista */
.extra-diet { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #fff6e8; border: 1px dashed #e8b872; }
.extra-diet .ed-k { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #9a5b12; }
.extra-diet .ed-nota { margin: 2px 0 6px; }
.extra-diet .mlines { margin: 0; }

/* Search filtering must override the option display rule. */
.opt[hidden] { display: none !important; }
#log-detail { width: 100%; box-sizing: border-box; margin: 10px 0; }

.protein-range { display: block; width: 100%; margin: 16px 0; accent-color: #94749b; }

/* La vista del editor usa las mismas tarjetas y cantidades que la app. */
body.plan-editor { background: #fcf8f4; }
.plan-editor .editor-main { padding: 12px; }
.plan-editor .view { max-width: none; margin: 0; padding: 0; }
.plan-editor .menu-board { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.plan-editor .editor-config { font-weight: 800; border-bottom: 1px solid currentColor; }
.plan-editor .menu-wrap { overflow: visible; }
.plan-editor .macros-bar { margin-top: 12px; }

.recipe-swap-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 5px; font-size: 12px; }
.recipe-swap-controls .swap-original, .recipe-swap-controls .swap-explain { flex-basis: 100%; }
.recipe-swap-controls button { min-height: 36px; text-decoration: underline; text-underline-offset: 3px; white-space: normal; text-align: left; }
.recipe-swap-options .opt { width: 100%; min-height: 48px; justify-content: space-between; gap: 12px; text-align: left; }
.recipe-swap-options .opt strong { flex-shrink: 0; }
.recipe-swap-options .opt[hidden] { display: none; }
.recipe-swap-options .opt span { overflow-wrap: anywhere; }
.recipe-swap-note { margin: 10px 0; }

/* 1.22.1: long ingredient names and household quantities share the available width. */
.mrow { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 3px; align-items: baseline; }
.mname { flex: 1 1 9ch; min-width: min(100%, 9ch); overflow-wrap: normal; word-break: normal; hyphens: none; white-space: normal; }
.mqty { flex: 0 1 45%; min-width: min-content; max-width: 100%; white-space: normal; overflow-wrap: normal; word-break: normal; text-align: right; }
.mlead { display: none; }
.mchev { flex: 0 0 auto; }
.progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 16px; }
.progress-group { margin: 28px 0; }
.progress-metric { min-width: 0; }
.progress-metric h3 small { font-size: .8em; font-weight: 400; color: var(--muted); }
.progress-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.progress-summary dd { margin: 6px 0; font-size: 1.25em; font-weight: 600; }
.progress-summary small { color: var(--muted); }
.progress-chart { display: block; width: 100%; height: auto; margin: 16px 0; }
.progress-chart polyline { fill: none; stroke: var(--malva); stroke-width: 2; }
.progress-chart circle { fill: var(--malva); }
.progress-chart text { font-size: 11px; font-weight: 400; fill: currentColor; stroke: none; }
.progress-chart .progress-axis { fill: none; stroke: var(--line); }
.progress-values { width: 100%; text-align: left; margin-top: 12px; }
.progress-values td, .progress-values th { padding: 5px; }
.seg-comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.bottom-nav a { min-width: 0; text-align: center; }

/* 1.26.1: detail for the existing weekly frequency cards. */
.frec-list li { padding: 0; display: block; }
.frec-open { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 8px; width: 100%; height: 100%; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.frec-open:focus-visible { outline: 3px solid var(--malva); outline-offset: 2px; }
.frec-list li .frec-hint { font-weight: 400; text-decoration: underline; color: var(--malva-d); margin-top: 5px; }
.frec-detail { list-style: none; padding: 0; }
.frec-detail > li { border-top: 1px solid var(--line); padding: 16px 0; }
.frec-detail ul { padding-left: 20px; margin: 8px 0; }
.frec-detail p { margin: 6px 0; }
.frec-detail strong, .frec-detail li { overflow-wrap: break-word; }

/* 1.26.7 · día que no carga */
.day-error { margin: 14px 0; padding: 16px 18px; border-radius: 16px; background: #fff6ec; border: 1px solid #f0cfa8; color: #5a3a1a; }
.day-error p { margin: 0 0 8px; }
.day-error.pro h3 { margin: 2px 0 10px; }
.day-error .de-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; }
.day-error .de-dl dt { font-weight: 700; }
.day-error .de-dl dd { margin: 0; overflow-wrap: anywhere; }
.day-error .de-fix, .day-error .de-tech { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #fff; }
.day-error ul { margin: 6px 0 10px; padding-left: 18px; }
.day-error .btn { margin: 4px 8px 0 0; }

/* Beverage presentation: uses the existing meal typography and palette. */
.meal-beverages { margin: 0 0 16px; }
.meal-beverages > .mgroup-label { margin: 0 0 8px; color: var(--primary, #927397); }
/* Scoped to Mi progreso: native measurement guide and orientative ratio. */
.progress-ratio { margin: 1rem 0; min-width: 0; }
.progress-ratio-note { padding: 0 1rem; font-size: .95rem; }
.progress-help-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.progress-help-grid article { min-width: 0; }
.progress-help-grid svg { display: block; width: 100%; max-width: 130px; height: 145px; margin: auto; color: #927397; }
.progress-help-grid h3 { margin: .4rem 0; }
.progress-measure-help summary { cursor: pointer; min-height: 44px; display: list-item; padding: .4rem 0; }
.progress-measure-help p { overflow-wrap: anywhere; }
@media(max-width: 540px) {
  .progress-help-grid { grid-template-columns: 1fr; }
  .progress-help-grid article { display: grid; grid-template-columns: 85px minmax(0,1fr); column-gap: 1rem; align-items: center; }
  .progress-help-grid svg { grid-row: 1 / 3; height: 120px; }
  .progress-help-grid h3,.progress-help-grid p { margin: .25rem 0; }
}

.menu-board.compact-day {display:flex;flex-direction:column;align-items:stretch;gap:.65rem}
.compact-day .mcard {min-width:0;width:100%;box-sizing:border-box}
.compact-day .meal-toggle {display:flex;justify-content:space-between;align-items:center;gap:.6rem;width:100%;min-height:44px;padding:.75rem 1rem;background:transparent;color:inherit;border:0;text-align:left;font:inherit;cursor:pointer}
.compact-day .meal-toggle strong {color:var(--plum,inherit);font-size:1.1em}
.compact-day .meal-summary {margin:0;padding:0 1rem .8rem;overflow-wrap:anywhere}
.compact-day [hidden] {display:none!important}
.compact-day .meal-report {display:block;width:100%;text-align:center}
.compact-day .meal-supplements {border:1px solid currentColor;border-radius:12px;padding:.5rem .75rem;margin:.7rem 0}
.compact-day .meal-options {margin:.5rem 1rem}
.compact-day .meal-options button {display:block;min-height:40px}

.menu-wrap.day-summary-wrap{margin:0;padding:0;overflow:visible}.compact-day .meal-toggle{flex-wrap:wrap}.compact-day .meal-toggle .meal-summary{flex-basis:100%;padding:0;text-align:left;font-size:.92em}.compact-day .meal-toggle:focus-visible{outline-offset:-3px}

.compact-day .mcard{padding:4px 8px}.compact-day .mcard::before{pointer-events:none}.compact-day .meal-toggle{position:relative}.compact-day .meal-toggle strong{font-family:var(--f-title);font-size:1.28em}.compact-day .meal-supplements{border-color:var(--line,#ddd)}

/* Client meal cards and weekly variation entry */
.compact-day .mcard {border:1px solid var(--line);border-radius:18px;padding:0 8px 2px;background:linear-gradient(110deg,var(--tint),var(--card));box-shadow:var(--shadow)}
.compact-day .mcard::before {display:none}
.compact-day .meal-toggle {display:grid;grid-template-columns:2.65rem minmax(0,1fr) 1rem;column-gap:.7rem;row-gap:.15rem;align-items:center;padding:.7rem .45rem;min-height:60px}
.compact-day .meal-icon {grid-area:1/1/3/2;align-self:center;display:grid;place-items:center;width:2.65rem;height:2.65rem;border-radius:50%;color:var(--malva-d);background:var(--tint-2,var(--melocoton))}
.compact-day .meal-icon svg {width:1.6rem;height:1.6rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.compact-day .meal-heading {grid-area:1/2;overflow-wrap:anywhere;color:var(--malva-d)}
.compact-day .meal-time {white-space:nowrap;font-size:.88em}
.compact-day .meal-toggle .meal-summary {grid-area:2/2;font-size:.88em;line-height:1.35;color:var(--text)}
.compact-day .meal-arrow {grid-area:1/3/3/4;width:.55rem;height:.55rem;border:solid var(--malva-d);border-width:0 2px 2px 0;transform:rotate(45deg)}
.compact-day [aria-expanded=true] .meal-arrow {transform:rotate(225deg)}
.compact-day .meal-toggle[aria-expanded=true] .meal-heading {grid-row:1/3}
.compact-day .meal-supplements {background:var(--c-proteina);border:1px solid var(--line);border-radius:14px;margin:.75rem 0;padding:.6rem .75rem}
.compact-day .meal-supplements .mgroup-label {color:var(--malva-d);margin:0 0 .35rem}
.compact-day .mli + .mli {border-top:1px solid var(--line-soft)}
.compact-day .mc-links {gap:.5rem;margin:.75rem .25rem}
.compact-day .mc-links .meal-report {flex:1 0 100%;background:var(--malva-d);color:white}
.compact-day .mc-links :is([data-a="meal-amount"],[data-a="rec-pick"]) {flex:1 1 8.5rem;min-height:44px;border:1px solid var(--line);border-radius:24px;background:var(--card);color:var(--malva-d);padding:.45rem .7rem;text-decoration:none;text-align:center;font-weight:600}
.compact-day :is(.mc-tips,.meal-options) summary {font-size:.9em;font-weight:600;color:var(--malva-d)}
.week-variation {display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .9rem;background:var(--c-proteina);border-radius:var(--radius);padding:.8rem 1rem;margin:.75rem 0}
.week-variation p {flex:1 1 16rem;margin:0;color:var(--malva-d);font-size:.92em}
