/* Recetario familiar — tema claro */
:root {
  color-scheme: only light;
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #f2ede5;
  --surface-3: #e9e2d7;
  --text: #1e1a16;
  --text-2: #4a423b;
  --muted: #8a8078;
  --line: #ebe4da;
  --accent: #c4502b;
  --accent-press: #a8421f;
  --accent-soft: #fbeee8;
  --accent-ink: #8f3515;
  --green: #2f7a55;
  --green-soft: #e5f2ea;
  --amber: #9a6a14;
  --amber-soft: #fbf1dc;
  --red: #c23a2b;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --sh-1: 0 1px 2px rgba(40, 25, 10, .06);
  --sh-2: 0 1px 2px rgba(40, 25, 10, .05), 0 8px 24px -10px rgba(40, 25, 10, .18);
  --sh-3: 0 12px 40px -12px rgba(40, 25, 10, .35);
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom);
  --safe-t: env(safe-area-inset-top);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15.5px/1.5 var(--f-ui); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100dvh; overscroll-behavior-y: none;
}
body.has-nav { padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; padding: 0; margin: 0; border: 0; background: none; -webkit-appearance: none; appearance: none; line-height: 1; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent-soft); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; font-optical-sizing: auto; }

#app { max-width: 720px; margin: 0 auto; }
.view { animation: viewIn .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.page { padding: 0 20px 28px; }

/* Iconos */
.ic { display: block; width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 17px; height: 17px; }
.ic.xs { width: 14px; height: 14px; stroke-width: 2.2; }
.ic.lg { width: 26px; height: 26px; }
.ic.fill { fill: currentColor; }

/* Cabeceras */
.head { padding: calc(18px + var(--safe-t)) 20px 14px; display: flex; align-items: flex-end; gap: 14px; }
.head .t { flex: 1; min-width: 0; }
.head h1 { font-size: 30px; line-height: 1.1; }
.head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-t)) 12px 10px; background: rgba(247, 244, 239, .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.bar.scrolled { border-bottom-color: var(--line); }
.bar .title { flex: 1; font-weight: 650; font-size: 17px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .spacer { width: 40px; flex: 0 0 40px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 14px; border: 0;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  transition: transform .12s, background .15s, opacity .15s; white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.98); background: var(--accent-press); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.lg { height: 54px; font-size: 16px; border-radius: 16px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn.soft:active { background: #f7e0d5; }
.btn.neutral { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.neutral:active { background: var(--surface-2); }
.btn.green { background: var(--green); }
.btn.text { background: transparent; color: var(--accent); padding: 0 8px; height: 36px; }
.btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px #f0d4cf; }
.ibtn {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--text); transition: background .15s;
}
.ibtn:active { background: var(--surface-2); }
.ibtn.round { border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-2); backdrop-filter: blur(8px); }
.ibtn.on { color: var(--accent); }
.ibtn.on .ic { fill: currentColor; }

/* Formularios */
.field { display: block; }
.field > .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 7px 2px; }
.input {
  width: 100%; height: 50px; padding: 0 15px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); outline: none; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 110px; padding: 13px 15px; resize: vertical; line-height: 1.45; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238a8078' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 36px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input::placeholder { color: #b3aaa1; }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw .eye { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 10px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 7px 2px 0; line-height: 1.4; }
.search {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); color: var(--muted);
}
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 100%; font-size: 16px; color: var(--text); }
.search input::placeholder { color: #a69d94; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row > .grow { flex: 1; min-width: 0; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Chips y segmentos */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 999px; border: 0;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2);
  font-size: 14px; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.chip.on { background: var(--text); color: #fff; box-shadow: none; }
.chip.soft { background: transparent; }
.chip.soft.on { background: var(--accent-soft); color: var(--accent-ink); }
.seg { display: flex; background: var(--surface-2); border-radius: 13px; padding: 4px; gap: 2px; }
.seg button {
  flex: 1; height: 38px; border: 0; background: transparent; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .18s;
}
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
.seg .n { font-size: 12px; background: var(--surface-3); border-radius: 99px; padding: 0 7px; line-height: 18px; }
.seg button.on .n { background: var(--accent-soft); color: var(--accent-ink); }

/* Avatares */
.av {
  --c: #e8a87c; width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; display: inline-grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 0; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.av.xs { width: 20px; height: 20px; font-size: 10px; }
.av.md { width: 40px; height: 40px; font-size: 15px; }
.av.lg { width: 44px; height: 44px; font-size: 16px; }
.av.xl { width: 84px; height: 84px; font-size: 32px; }

/* Tablón */
.home-head { padding: calc(20px + var(--safe-t)) 20px 16px; display: flex; align-items: center; gap: 14px; }
.home-head .hello { color: var(--muted); font-size: 14px; font-weight: 500; }
.home-head h1 { font-size: 29px; line-height: 1.1; margin-top: 3px; }
.section-t { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 14px; }
.section-t h2 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.section-t .muted { font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: block; color: var(--text); min-width: 0; }
.card:active .card-img { transform: scale(.985); }
.card-img { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--sh-1); transition: transform .15s; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-title { font-weight: 650; font-size: 15px; line-height: 1.3; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -.01em; }
.card-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.card-meta .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta .sep { opacity: .5; }
.pill-seal {
  position: absolute; left: 9px; top: 9px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 6px;
  border-radius: 99px; background: rgba(255, 255, 255, .95); color: var(--green); font-size: 11.5px; font-weight: 700; box-shadow: var(--sh-1);
}
.pill-src { position: absolute; left: 9px; bottom: 9px; height: 22px; padding: 0 8px; border-radius: 99px; background: rgba(20, 15, 10, .55); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; backdrop-filter: blur(6px); }
.like-btn {
  position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .95); color: var(--text-2); display: grid; place-items: center; box-shadow: var(--sh-1);
}
.like-btn .ic { width: 17px; height: 17px; }
.like-btn.on { color: var(--accent); }
.like-btn.on .ic { fill: currentColor; }
.like-btn.pop { animation: pop .3s; }
@keyframes pop { 40% { transform: scale(1.25); } }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(90, 50, 25, .55); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.ph .ic { width: 34px; height: 34px; stroke-width: 1.5; }
.ph-0 { background: linear-gradient(150deg, #f8e3d6, #f1d2bf); }
.ph-1 { background: linear-gradient(150deg, #efe7d3, #e2d5b5); }
.ph-2 { background: linear-gradient(150deg, #e3ecdf, #cddcc6); }
.ph-3 { background: linear-gradient(150deg, #f4e0dc, #e8c8c2); }
.ph-4 { background: linear-gradient(150deg, #e6e4ef, #d4d0e3); }
.ph-5 { background: linear-gradient(150deg, #f6ead6, #ecd9b7); }

/* Vacíos y esqueletos */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .art { width: 72px; height: 72px; border-radius: 22px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; }
.empty .art .ic { width: 32px; height: 32px; stroke-width: 1.7; }
.empty h3 { color: var(--text); font-size: 17px; font-weight: 650; margin-bottom: 6px; }
.empty p { font-size: 14.5px; max-width: 300px; margin: 0 auto 18px; }
.sk { background: linear-gradient(90deg, var(--surface-2) 25%, #faf7f2 50%, var(--surface-2) 75%); background-size: 300% 100%; animation: sk 1.3s infinite linear; border-radius: 12px; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Barra inferior */
#nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--nav-h) + var(--safe-b));
  padding: 0 6px var(--safe-b); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
}
#nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
#nav a .ico { width: 56px; height: 30px; border-radius: 99px; display: grid; place-items: center; transition: background .2s, color .2s; }
#nav a.on { color: var(--text); }
#nav a.on .ico { background: var(--accent-soft); color: var(--accent); }
#nav a.add .ico { width: 44px; height: 32px; border-radius: 11px; background: var(--accent); color: #fff; box-shadow: 0 4px 12px -4px rgba(196, 80, 43, .6); }
#nav a.add.on .ico { background: var(--accent-press); color: #fff; }
#nav .dot { position: absolute; top: 9px; left: calc(50% + 14px); width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px #fff; }

/* Ficha de receta */
.hero { position: relative; height: min(64vh, 520px); background: var(--surface-2); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, rgba(0, 0, 0, .12)); pointer-events: none; }
.hero .ph .ic { width: 56px; height: 56px; }
.hero-actions { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; gap: 10px; padding: calc(12px + var(--safe-t)) 14px; }
.hero-actions .sp { flex: 1; }
.float-bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--safe-t)) 14px 8px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .22s; }
.float-bar.show { transform: none; }
.float-bar .t { flex: 1; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rp-body { position: relative; z-index: 3; margin-top: -28px; background: var(--bg); border-radius: 28px 28px 0 0; padding: 26px 20px 120px; }
.rp-body h1 { font-size: 30px; line-height: 1.12; margin-top: 8px; }
.lede { color: var(--text-2); font-size: 15.5px; margin-top: 10px; line-height: 1.55; }
.by { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.by b { color: var(--text-2); font-weight: 600; }
.by a { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); margin-top: 20px; }
.stats > div { padding: 14px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats .ic { color: var(--accent); width: 20px; height: 20px; }
.stats b { font-size: 15px; font-weight: 650; margin-top: 3px; }
.stats span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.seal { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--green-soft); color: #1f5a3d; }
.seal .ic { color: var(--green); width: 24px; height: 24px; margin-top: 1px; }
.seal b { font-weight: 700; }
.seal .q { font-size: 13.5px; margin-top: 4px; color: #2c6b4c; }
.tabs-wrap { position: sticky; top: calc(60px + var(--safe-t)); z-index: 10; margin: 24px -20px 0; padding: 10px 20px; background: var(--bg); }
.tab-panel { padding-top: 10px; animation: viewIn .2s; }
.servings { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 14px; }
.servings .l { font-weight: 650; font-size: 16px; }
.stepper { display: inline-flex; align-items: center; background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); height: 40px; }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; display: grid; place-items: center; color: var(--text-2); }
.stepper b { min-width: 34px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.legend { font-size: 12.5px; color: var(--muted); margin: -4px 0 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.group-h { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 18px 0 6px; }
.ings { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); padding: 2px 16px; }
.ing { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
.ing:last-child { border-bottom: 0; }
.ck { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.8px #d6cdc2; display: grid; place-items: center; color: #fff; transition: all .15s; }
.ck .ic { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(.6); transition: all .15s; }
.on > .ck, .ck.on { background: var(--green); box-shadow: none; }
.on > .ck .ic, .ck.on .ic { opacity: 1; transform: none; }
.ing .q { min-width: 82px; font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; }
.ing .q small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.2; }
.ing .n { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; }
.ing .v { color: var(--accent-ink); font-weight: 550; }
.ing .note { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ing.on .q, .ing.on .n { color: var(--muted); }
.ing.on .n > span:first-child { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.est { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 5px; background: var(--amber-soft); color: var(--amber); font-size: 10.5px; font-weight: 700; margin-left: 5px; vertical-align: 1px; letter-spacing: .02em; }
.opt { font-size: 12px; color: var(--muted); }
.steps { counter-reset: s; }
.step { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.step:last-child { border-bottom: 0; }
.step .num { font-family: var(--f-display); font-weight: 600; font-size: 24px; line-height: 1; color: var(--accent); width: 30px; flex: 0 0 30px; padding-top: 1px; }
.step.done .num { color: var(--green); }
.step .body { flex: 1; min-width: 0; }
.step .st { font-weight: 650; font-size: 15px; margin-bottom: 3px; }
.step .tx { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.step.done .tx, .step.done .st { color: var(--muted); }
.step .meta { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 550; }
.tag .ic { width: 14px; height: 14px; color: var(--muted); }
.box { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); padding: 16px; }
.box + .box { margin-top: 12px; }
.box h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.box h3 .ic { color: var(--accent); width: 19px; height: 19px; }
.box ul { margin: 0; padding-left: 18px; color: var(--text-2); }
.box li + li { margin-top: 6px; }
.box.ai { background: var(--amber-soft); box-shadow: none; }
.box.ai h3 .ic { color: var(--amber); }
.comment { display: flex; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .who { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.comment .when { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.comment .tx { color: var(--text-2); margin-top: 2px; font-size: 14.5px; }
.tip-badge { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--amber-soft); color: var(--amber); font-size: 11px; font-weight: 700; }
.cta { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(12px + var(--safe-b)); background: linear-gradient(rgba(247, 244, 239, 0), var(--bg) 35%); display: flex; gap: 10px; max-width: 720px; margin: 0 auto; }
.cta .btn { flex: 1; box-shadow: 0 10px 24px -10px rgba(196, 80, 43, .7); }

/* Listas genéricas (filas) */
.list { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); overflow: hidden; }
.li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 58px; border: 0; background: transparent; width: 100%; text-align: left; color: var(--text); position: relative; }
.li + .li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--line); }
.li:active { background: var(--surface-2); }
.li .lic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); flex: 0 0 36px; }
.li .lic.accent { background: var(--accent-soft); color: var(--accent); }
.li .lic.red { background: #fbe9e6; color: var(--red); }
.li .lt { flex: 1; min-width: 0; }
.li .lt b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .lt span { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.li .chev { color: #c3b9ae; }
.li .thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: 0 0 56px; background: var(--surface-2); }
.li .thumb img, .li .thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.li .thumb .ph .ic { width: 22px; height: 22px; }
.li .thumb .ph span { display: none; }

/* Añadir receta */
.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.src {
  border: 0; background: var(--surface); border-radius: 18px; padding: 16px; text-align: left; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, transform .12s; min-height: 118px;
}
.src:active { transform: scale(.98); }
.src .sic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); transition: all .15s; }
.src b { font-size: 15px; font-weight: 650; display: block; }
.src span { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.src.on { box-shadow: 0 0 0 2px var(--accent), var(--sh-2); }
.src.on .sic { background: var(--accent); color: #fff; }
.panel { background: var(--surface); border-radius: 20px; box-shadow: var(--sh-2); padding: 18px; margin-top: 16px; }
.panel .lead { font-size: 14px; color: var(--text-2); line-height: 1.5; margin-bottom: 14px; }
.rec { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; margin: 8px auto 6px; box-shadow: 0 12px 28px -10px rgba(196, 80, 43, .7); position: relative; }
.rec .ic { width: 36px; height: 36px; }
.rec.on { background: var(--red); }
.rec.on::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--red); animation: ring 1.4s infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.rec-t { text-align: center; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs div { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }
.job { display: flex; align-items: center; gap: 13px; padding: 13px 16px; position: relative; }
.job + .job::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--line); }
.job .lic { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); flex: 0 0 38px; }
.job .jt { flex: 1; min-width: 0; }
.job .jt b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .jt span { display: block; font-size: 12.5px; color: var(--muted); }
.job .err { color: var(--red); font-size: 12.5px; margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.status.run { background: var(--accent-soft); color: var(--accent-ink); }
.status.ok { background: var(--green-soft); color: var(--green); }
.status.bad { background: #fbe9e6; color: var(--red); }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Qué cocino */
.have-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.have-chips .chip { background: var(--green-soft); color: #1f5a3d; box-shadow: none; padding-right: 8px; }
.have-chips .chip .ic { width: 15px; height: 15px; opacity: .6; }
.match { display: flex; gap: 14px; padding: 12px; background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.match + .match { margin-top: 12px; }
.match .thumb { width: 84px; height: 96px; border-radius: 12px; overflow: hidden; flex: 0 0 84px; background: var(--surface-2); }
.match .thumb img, .match .thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.match .thumb .ph span { display: none; }
.match b { font-weight: 650; font-size: 15px; line-height: 1.3; display: block; }
.meter { height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 8px 0 7px; }
.meter i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.match .h { font-size: 12.5px; color: var(--green); font-weight: 550; }
.match .m { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Compra */
.shop-g { margin-top: 18px; }
.shop-g .gh { display: flex; align-items: center; gap: 10px; margin: 0 2px 8px; }
.shop-g .gh a, .shop-g .gh span { flex: 1; min-width: 0; font-weight: 650; font-size: 14.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shop-g .gh .n { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.si { display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 16px; position: relative; cursor: pointer; user-select: none; }
.si + .si::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; border-top: 1px solid var(--line); }
.si .n { flex: 1; min-width: 0; font-size: 15px; }
.si .n small { display: block; color: var(--muted); font-size: 12.5px; }
.si.on .n { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.si .del { border: 0; background: transparent; color: #c3b9ae; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }

/* Modo cocina */
.cook { min-height: 100dvh; display: flex; flex-direction: column; background: var(--surface); }
.cook-top { display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--safe-t)) 12px 8px; }
.cook-top .t { flex: 1; text-align: center; min-width: 0; }
.cook-top .t div { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook-top .t b { font-size: 15px; font-weight: 650; }
.segs { display: flex; gap: 4px; padding: 4px 20px 0; }
.segs i { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-3); transition: background .25s; }
.segs i.done { background: var(--green); }
.segs i.cur { background: var(--accent); }
.cook-main { flex: 1; padding: 30px 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.cook-main .bn { font-family: var(--f-display); font-size: 64px; line-height: .9; color: var(--accent); font-weight: 600; }
.cook-main .ct { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cook-main .cx { font-size: 23px; line-height: 1.45; font-weight: 450; letter-spacing: -.01em; }
.cook-ings { display: flex; flex-wrap: wrap; gap: 8px; }
.cook-ings span { height: 34px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.cook-ings b { font-weight: 700; }
.cook-bottom { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; padding: 12px 16px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); }
.cook-bottom .btn { height: 56px; }
.cook-bottom .nb { background: var(--surface-2); color: var(--text); padding: 0; }
.cook-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 28px; gap: 14px; }
.cook-done .art { width: 88px; height: 88px; border-radius: 28px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.cook-done .art .ic { width: 42px; height: 42px; }
.cook-done h1 { font-size: 30px; }
.timers { position: fixed; z-index: 60; right: 14px; top: calc(62px + var(--safe-t)); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.timer { cursor: pointer; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border-radius: 99px; background: var(--text); color: #fff; font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; box-shadow: var(--sh-3); }
.timer small { font-weight: 500; opacity: .7; max-width: 110px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.timer button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; }
.timer.ring { background: var(--red); animation: pop 1s infinite; }

/* Login */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 24px calc(32px + var(--safe-b)); max-width: 420px; margin: 0 auto; }
.logo { width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(196, 80, 43, .8); }
.logo .ic { width: 32px; height: 32px; stroke-width: 1.8; }
.auth h1 { font-size: 32px; margin-top: 22px; line-height: 1.1; }
.auth .sub { color: var(--muted); margin-top: 8px; margin-bottom: 28px; }

/* Perfil */
.prof { text-align: center; padding: 8px 0 6px; }
.prof h2 { font-size: 22px; font-weight: 650; margin-top: 12px; }
.prof .muted { font-size: 13.5px; }
.colors { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.colors button { width: 34px; height: 34px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); display: grid; place-items: center; color: #fff; }
.label-h { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 26px 4px 10px; }

/* Hojas inferiores y avisos */
.backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(25, 18, 12, .38); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.sheet { width: 100%; max-width: 720px; max-height: 90dvh; overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 8px 20px calc(22px + var(--safe-b)); animation: up .26s cubic-bezier(.2, .8, .2, 1); }
.sheet .grab { width: 38px; height: 5px; border-radius: 9px; background: var(--surface-3); margin: 4px auto 16px; }
.sheet h2 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.sheet .sub { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
@keyframes up { from { transform: translateY(60px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); min-height: 48px; padding: 8px 10px 8px 16px;
  border-radius: 14px; background: #221c17; color: #fff; font-size: 14px; font-weight: 550; box-shadow: var(--sh-3); animation: toastIn .25s cubic-bezier(.2, .8, .2, 1);
}
body:not(.has-nav) .toast { bottom: calc(24px + var(--safe-b)); }
.toast .ic { color: #7fd1a3; }
.toast a { color: #ffb899; font-weight: 700; padding: 6px 8px; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* Editor */
.ed-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); padding: 12px; }
.ed-card + .ed-card { margin-top: 10px; }
.ed-grid { display: grid; grid-template-columns: 78px 96px 1fr; gap: 8px; }
.ed-grid .full { grid-column: 1 / -1; }
.ed-grid .input, .ed-card .input { height: 44px; font-size: 15px; border-radius: 11px; }
.ed-card textarea.input { height: auto; min-height: 80px; }
.ed-tools { display: flex; justify-content: flex-end; gap: 4px; margin-top: 8px; }
.ed-tools button { width: 36px; height: 32px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; }
.ed-tools .ic { width: 16px; height: 16px; }

/* Instalar la app y compartir */
.box.install { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.box.install b { font-size: 15px; }
.logo.sm { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px; box-shadow: none; }
.logo.sm .ic { width: 22px; height: 22px; }
.steps-ol { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.steps-ol li + li { margin-top: 10px; }
.steps-ol code { font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.steps-ol .ic { display: inline-block; vertical-align: -2px; }

/* Adaptar con IA */
.li .lic.ai { background: linear-gradient(135deg, #e0673d, #e9a23b); color: #fff; }
.ai { padding-bottom: 2px; }
.ai-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.ai-hero h2 { line-height: 1.2; }
.ai-hero p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.ai-hero .ai-kicker { color: var(--green); font-weight: 600; font-size: 13px; margin: 0 0 2px; }
.ai-orb { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #e0673d, #e9a23b); box-shadow: 0 6px 18px -6px rgba(196, 80, 43, .6); }
.ai-orb .ic { width: 22px; height: 22px; }
.ai-orb.ok { background: linear-gradient(135deg, #2f7a55, #5aa874); box-shadow: 0 6px 18px -6px rgba(47, 122, 85, .55); }
.ai-orb.bad { background: var(--surface-3); color: var(--red); box-shadow: none; }
.ai-orb.big { width: 68px; height: 68px; flex-basis: 68px; border-radius: 22px; animation: orb 1.8s ease-in-out infinite; }
.ai-orb.big .ic { width: 30px; height: 30px; animation: spinslow 4s linear infinite; }
@keyframes orb { 50% { transform: scale(1.06); box-shadow: 0 10px 30px -6px rgba(196, 80, 43, .7); } }
@keyframes spinslow { to { transform: rotate(360deg); } }
.ai-box { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); padding: 12px 12px 10px 14px; transition: box-shadow .15s; }
.ai-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
.ai-box textarea { width: 100%; border: 0; outline: 0; background: none; resize: none; font-size: 16px; line-height: 1.4; padding: 2px 0; min-height: 46px; display: block; }
.ai-box textarea::placeholder { color: #b3aaa1; }
.ai-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ai-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.ai-sw input { position: absolute; opacity: 0; pointer-events: none; }
.ai-sw i { width: 34px; height: 20px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .2s; flex: 0 0 34px; }
.ai-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.ai-sw input:checked + i { background: var(--green); }
.ai-sw input:checked + i::after { transform: translateX(14px); }
.ai-send { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #e0673d, #c4502b); box-shadow: 0 4px 12px -4px rgba(196, 80, 43, .7); transition: transform .15s, opacity .15s; }
.ai-send:active { transform: scale(.92); }
.ai-send:disabled { background: var(--surface-3); color: var(--muted); box-shadow: none; }
.ai-ideas { margin-top: 12px; }
.ai-ideas .chip { height: 34px; padding: 0 12px; font-size: 13.5px; }
.ai-ideas .chip .emo { font-size: 15px; line-height: 1; }
.ai-ideas .chip .ic { opacity: .7; }
.ai-ideas .chip.on { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ai-wait { text-align: center; padding: 10px 0 4px; display: flex; flex-direction: column; align-items: center; }
.ai-wait h2 { margin-top: 16px; }
.ai-quote { font-family: var(--f-display); font-size: 17px; color: var(--text-2); margin: 4px 12px 18px; }
.ai-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; text-align: left; }
.ai-steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); transition: color .3s; }
.ai-steps .dotc { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--surface-3); flex: 0 0 18px; display: grid; place-items: center; }
.ai-steps li.run { color: var(--text); font-weight: 550; }
.ai-steps li.run .dotc { box-shadow: inset 0 0 0 2px var(--accent-soft); border: 2px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.ai-steps li.ok { color: var(--text-2); }
.ai-steps li.ok .dotc { background: var(--green); box-shadow: none; }
.ai-steps li.ok .dotc::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ai-chg { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 4px 14px; margin-bottom: 16px; }
.ai-chg .row-c { display: flex; gap: 12px; padding: 12px 0; }
.ai-chg .row-c + .row-c { border-top: 1px solid var(--line); }
.ai-chg .ci { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ai-chg b { display: block; font-size: 14.5px; line-height: 1.3; }
.ai-chg span:not(.ci) { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.ai-chg span.only { color: var(--text-2); margin: 0; }
.ai-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.ai-actions .btn { height: 50px; }

/* Amigos */
.head-btn { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text-2); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.head-btn .ic { width: 20px; height: 20px; }
.fbtn { flex: 0 0 auto; height: 34px; padding: 0 15px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 650; white-space: nowrap; transition: background .15s, color .15s; }
.fbtn:active { transform: scale(.96); }
.fbtn.on { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.fbtn.sm { height: 28px; padding: 0 12px; font-size: 12.5px; }
.by .by-who { color: inherit; font-weight: 400; gap: 8px; }
.by .by-who b { color: var(--text-2); }
.based { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.based .ic { color: var(--amber); flex: 0 0 auto; }
.based a { color: var(--accent); font-weight: 600; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); margin-top: 16px; }
.pstats > * { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; color: inherit; }
.pstats > * + * { border-left: 1px solid var(--line); }
.pstats b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pstats span { font-size: 12px; color: var(--muted); font-weight: 550; }
.te-sigue { background: var(--surface-2); color: var(--text-2); border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 600; }
.invite-card { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; border: 0; padding: 14px 16px; border-radius: var(--r); color: var(--text);
  background: linear-gradient(135deg, #fff4ee, #fdf0dc); box-shadow: inset 0 0 0 1px #f3dccd; }
.invite-card .ai-orb { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
.invite-card .ai-orb .ic { width: 20px; height: 20px; }
.invite-card .lt { flex: 1; min-width: 0; }
.invite-card .lt b { display: block; font-size: 15px; font-weight: 650; }
.invite-card .lt span { display: block; font-size: 13px; color: var(--muted); }
.invite-card .chev { color: #c9a58e; }
.inv-link { background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 13px 14px; font: 500 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2); word-break: break-all; user-select: all; }
.invite-by { display: flex; align-items: center; gap: 10px; margin-top: 22px; background: var(--surface); border-radius: 14px; padding: 10px 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; }
.invite-by b { font-weight: 650; }
.li .fbtn { margin-left: 4px; }

/* Avisos */
.head-btn { position: relative; width: 42px; height: 42px; flex-basis: 42px; }
.head-btn .bdg { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.fol-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 10px 14px 14px; margin-bottom: 16px; border-radius: var(--r);
  background: linear-gradient(135deg, #eef7f1, #f6f1e4); box-shadow: inset 0 0 0 1px #d6eadc; animation: viewIn .3s ease; }
.fol-alert .avs { display: flex; flex: 0 0 auto; }
.fol-alert .avs .av + .av { margin-left: -14px; box-shadow: 0 0 0 2px #eef7f1; }
.fol-alert .tx { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.35; padding-top: 2px; }
.fol-alert .tx b { font-weight: 650; }
.fol-alert .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.fol-alert .acts a.fbtn { display: inline-grid; place-items: center; }
.fol-alert .ibtn { width: 30px; height: 30px; flex: 0 0 30px; color: var(--muted); }
.nrow { align-items: flex-start; }
.nrow.new { background: #fffaf6; }
.nrow .lt .nt { display: block; font-size: 14.5px; line-height: 1.38; color: var(--text); margin: 0; white-space: normal; }
.nrow .lt .nt b { display: inline; font-weight: 650; font-size: inherit; white-space: normal; }
.nrow .lt > span:last-child { margin-top: 3px; }
.nav-av { position: relative; flex: 0 0 40px; }
.nav-av .nk { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.nav-av .nk .ic { width: 11px; height: 11px; stroke-width: 2.6; }
.nav-av .nk.follow { background: #3a7bd5; }
.nav-av .nk.like { background: #e0445a; }
.nav-av .nk.verify { background: var(--green); }
.nav-av .nk.comment { background: var(--amber); }
.nrow .thumb.sm { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.nrow .thumb.sm img, .nrow .thumb.sm .ph { width: 100%; height: 100%; object-fit: cover; }
.nrow .thumb.sm .ph span, .nrow .thumb.sm .ph .ic { display: none; }
.nrow .fbtn { align-self: center; }
a.invite-card { margin-bottom: 4px; }
.home-head { display: block; }
.home-head .hh-top { display: flex; align-items: center; gap: 8px; }
.home-head .hh-top .hello { flex: 1; min-width: 0; font-size: 15px; }
.home-head h1 { margin-top: 10px; }
#pscope { margin-top: 2px; }
.match .who { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ¿Qué cocino?: sugerencias mientras escribes */
.pf-wrap { position: relative; z-index: 5; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border-radius: 16px; box-shadow: var(--sh-3), inset 0 0 0 1px var(--line); overflow: hidden; animation: fade .12s ease; }
.sugg button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 0 16px; min-height: 48px; font-size: 15.5px; color: var(--text-2); }
.sugg button + button { border-top: 1px solid var(--line); }
.sugg button:active { background: var(--surface-2); }
.sugg button .ic { color: var(--accent); flex: 0 0 auto; }
.sugg button b { color: var(--text); font-weight: 650; }
