/* Koshi public app — mobile-first. Layout: cream canvas, white rounded cards, forest-green actions.
   Single approved light look (warm cream + forest/sage), per the approved mockup. */
:root {
  --cream: #FAF6EE;
  --cream-2: #F3EDE1;
  --paper: #FFFFFF;
  --ink: #1C2A21;
  --muted: #5F6C63;
  --faint: #8C978F;
  --line: #E7E0D2;
  --forest: #1E5B3A;
  --forest-2: #174A2F;
  --sage: #E4EFE3;
  --sage-line: #9CC4A3;
  --leaf: #7FB08A;
  --sun: #FFF0B3;
  --tomato: #C8452A;
  --demo-bg: #FFF4D6;
  --demo-ink: #7A5A00;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 42, 33, .05), 0 6px 20px rgba(28, 42, 33, .06);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --script: "Caveat", "Segoe Script", "Comic Sans MS", cursive;
  --tab-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: max(16px, var(--safe-left)) max(16px, var(--safe-right)); }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--forest); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.topnav { display: none; gap: 4px; margin-left: 12px; }
.topnav a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.topnav a[aria-current="page"] { color: var(--forest); background: var(--sage); }
.topnav a:hover { background: var(--cream-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sage); color: var(--forest); display: grid; place-items: center; font-weight: 800; font-size: 13px; text-decoration: none; }
@media (min-width: 900px) { .topnav { display: flex; } }

/* ---------- Bottom tab bar (mobile / installed app) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tab-h); text-decoration: none; color: var(--faint); font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; padding: 0 2px; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--forest); }
@media (min-width: 900px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); }
.btn-outline { background: var(--paper); color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--sage); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream-2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Surfaces ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.demo-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--demo-bg); color: var(--demo-ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.demo-banner { background: var(--demo-bg); color: var(--demo-ink); font-size: 13px; padding: 10px 14px; border-radius: 12px; display: flex; gap: 10px; align-items: flex-start; }
.demo-banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.page { padding-block: 22px 40px; display: grid; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; justify-content: space-between; }
.page-head h1 { font-size: 26px; font-weight: 800; }
@media (min-width: 900px) { .page-head h1 { font-size: 30px; } }

/* ---------- Homepage ---------- */
.hero { background: linear-gradient(180deg, #FFFDF8 0%, var(--cream) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; gap: 24px; padding-block: 28px 32px; }
.hero h1 { font-size: clamp(40px, 11vw, 64px); font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.hero .lead { font-size: clamp(22px, 5.4vw, 30px); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; margin-top: 10px; }
.hero .sub { color: var(--muted); max-width: 46ch; margin-top: 14px; }
.script { font-family: var(--script); font-weight: 700; color: var(--ink); }
.hero .slogan { font-size: 30px; line-height: 1.05; transform: rotate(-4deg); display: inline-block; margin: 20px 0 18px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.hero-note { position: absolute; top: -8px; right: 6px; font-size: 22px; line-height: 1; transform: rotate(8deg); text-align: right; background: rgba(255,253,248,.88); padding: 6px 10px; border-radius: 12px; }
.sticker { position: absolute; right: 10px; bottom: -14px; background: var(--sun); padding: 10px 14px; border-radius: 10px; transform: rotate(-5deg); box-shadow: 0 6px 16px rgba(0,0,0,.12); display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 13px; line-height: 1.25; max-width: 190px; }
.sticker svg { width: 26px; height: 26px; flex: none; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; padding-block: 48px 56px; }
}
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding-block: 28px 8px; }
.feature { display: flex; gap: 12px; align-items: center; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.feature svg { width: 30px; height: 30px; flex: none; color: var(--forest); }
@media (min-width: 900px) { .features { grid-template-columns: repeat(4, 1fr); } }
.stores { text-align: center; padding-block: 20px 28px; display: grid; gap: 12px; }
.stores .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.store-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 700; font-size: 14px; }
.how { display: grid; gap: 12px; padding-block: 12px 36px; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .how ol { grid-template-columns: repeat(3, 1fr); } }
.how li { display: flex; gap: 14px; }
.how .step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.how h3 { font-size: 16px; }

/* ---------- Retailer badge (text badge, not a logo) ---------- */
.rb { width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; flex: none; }
.rb-kaufland { background: #D5281B; }
.rb-lidl { background: #0B4FA0; }
.rb-fantastico { background: #E26A12; }
.rb-billa { background: #F2C200; color: #3A2E00; }
.rb-tmarket { background: #B3122B; }

/* ---------- Auth / onboarding ---------- */
.flow { max-width: 980px; margin: 0 auto; padding-block: 24px 40px; display: grid; gap: 22px; }
.stepper { display: flex; align-items: center; gap: 0; max-width: 300px; }
.stepper .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; border: 1.5px solid var(--sage-line); color: var(--muted); background: var(--paper); flex: none; }
.stepper .dot.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.stepper .bar { flex: 1; height: 0; border-top: 1.5px dashed var(--sage-line); margin: 0 6px; }
.flow h1 { font-size: 26px; font-weight: 800; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; }
.input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 16px; }
.input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--sage); }
.pw { position: relative; }
.pw button { position: absolute; right: 6px; top: 6px; height: 36px; width: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.social { display: grid; gap: 10px; }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; font-weight: 700; cursor: pointer; font-size: 15px; }
.choice[aria-checked="true"] { background: var(--sage); border-color: var(--forest); color: var(--forest); }
.modes { display: grid; gap: 12px; }
@media (min-width: 720px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode { text-align: center; padding: 22px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; display: grid; gap: 8px; justify-items: center; }
.mode svg { width: 44px; height: 44px; color: var(--forest); }
.mode h3 { font-size: 17px; }
.mode p { color: var(--muted); font-size: 14px; max-width: 24ch; }
.mode[aria-checked="true"] { background: var(--sage); border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.mode[aria-checked="true"] h3 { color: var(--forest); }
.flow-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.auth-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .auth-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Weekly menu ---------- */
.summary-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .summary-row { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.stat .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sage); color: var(--forest); display: grid; place-items: center; flex: none; }
.stat .ico svg { width: 24px; height: 24px; }
.stat .k { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.stat .v { font-size: 20px; font-weight: 800; }
.regen { display: grid; gap: 6px; justify-items: end; max-width: 280px; }
.regen p { font-size: 12px; color: var(--muted); text-align: right; }
.days { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 520px) { .days { grid-template-columns: 1fr; } }
.day { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.day.off { opacity: .72; }
.day.off .day-img img { filter: grayscale(.5); }
.day-head { padding: 10px 12px 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.day-head b { font-size: 14px; }
.day-head span { font-size: 12px; color: var(--muted); }
.day-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.day-img img { width: 100%; height: 100%; object-fit: cover; }
.day-body { padding: 10px 12px 12px; display: grid; gap: 6px; flex: 1; align-content: start; }
.day-body h3 { font-size: 14.5px; font-weight: 800; }
.day-body h3 a { color: inherit; text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta svg { width: 14px; height: 14px; }
.groc { font-size: 12.5px; color: var(--ink); }
.groc b { font-weight: 800; }
.pick { margin-top: auto; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--forest); background: none; border: 0; padding: 8px 12px 12px; cursor: pointer; text-align: left; }
.box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--sage-line); display: grid; place-items: center; background: var(--paper); flex: none; }
.box svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
[aria-pressed="true"] .box, [aria-checked="true"] > .box { background: var(--forest); border-color: var(--forest); }
[aria-pressed="true"] .box svg, [aria-checked="true"] > .box svg { opacity: 1; }
.pick[aria-pressed="false"] { color: var(--muted); }
@media (min-width: 520px) and (max-width: 899px) { .day { flex-direction: column; } }
@media (max-width: 519px) {
  .day { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto 1fr auto; }
  .day-img { grid-row: 1 / 4; aspect-ratio: auto; height: 100%; }
  .day-head { padding-bottom: 0; }
  .pick { padding-top: 4px; }
}
.select-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; }
.select-bar .left { display: flex; gap: 12px; align-items: center; }
.select-bar .ok { width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; flex: none; }
.select-bar .ok svg { width: 22px; height: 22px; }
.select-bar .right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.big-price { font-size: 24px; font-weight: 800; }

/* ---------- Recipe ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.back svg { width: 16px; height: 16px; }
.recipe-top { display: grid; gap: 18px; }
@media (min-width: 820px) { .recipe-top { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.recipe-top > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.recipe-top h1 { font-size: 28px; font-weight: 800; }
.recipe-facts { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 22px; margin: 12px 0 16px; font-size: 14px; color: var(--muted); }
.recipe-facts span { display: inline-flex; gap: 6px; align-items: center; }
.recipe-facts svg { width: 16px; height: 16px; }
.groc-card { background: #FFF7DA; border: 1px solid #F1E2A6; border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.groc-card svg { width: 26px; height: 26px; color: #B98900; flex: none; }
.recipe-body { display: grid; gap: 18px; }
@media (min-width: 900px) { .recipe-body { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--forest); }
.ing { list-style: none; margin: 0; padding: 0; }
.ing li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ing li:last-child { border-bottom: 0; }
.ing .q { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 14.5px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: var(--forest); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.nutri { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.nutri div { background: var(--cream); border-radius: 12px; padding: 12px; }
.nutri b { display: block; font-size: 18px; }
.store-prices li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; }
.store-prices li.best { background: var(--sage); font-weight: 800; }
.store-prices .p { margin-left: auto; font-variant-numeric: tabular-nums; }
ul.plain { list-style: none; margin: 0; padding: 0; }

/* ---------- Shopping list ---------- */
.list-head { display: grid; gap: 14px; }
@media (min-width: 820px) { .list-head { grid-template-columns: 1fr auto; align-items: start; } }
.est { display: flex; gap: 14px; align-items: center; padding: 14px 18px; }
.est .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--sage); color: var(--forest); display: grid; place-items: center; }
.est .ico svg { width: 26px; height: 26px; }
.retailers { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ret { display: flex; gap: 10px; align-items: center; padding: 10px 14px; min-width: 150px; }
.ret b { display: block; font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.sl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.sl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FCFAF5; white-space: nowrap; }
table.sl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
table.sl tr:last-child td { border-bottom: 0; }
table.sl tr.done td { color: var(--faint); }
table.sl tr.done .prod { text-decoration: line-through; }
.cb { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--sage-line); background: var(--paper); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cb svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.cb[aria-checked="true"] { background: var(--forest); border-color: var(--forest); }
.cb[aria-checked="true"] svg { opacity: 1; }
.where { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.where .rb { width: 20px; height: 20px; font-size: 10px; border-radius: 5px; }
.left-over { color: var(--muted); }
.group-title { padding: 10px 14px; background: var(--cream-2); font-weight: 800; font-size: 13.5px; }
/* Mobile list cards */
.sl-cards { display: grid; gap: 10px; }
.sl-card { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px; }
.sl-card .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; }
.sl-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 8px 0 0; font-size: 13px; }
.sl-card dt { color: var(--muted); }
.sl-card dd { margin: 0; font-variant-numeric: tabular-nums; }
.sl-card.done { opacity: .6; }
@media (max-width: 719px) { .table-wrap { display: none; } }
@media (min-width: 720px) { .sl-cards { display: none; } }
.waste { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--sage); border: 0; }
.waste svg { width: 44px; height: 44px; color: var(--forest); flex: none; }

/* ---------- Recipes & profile ---------- */
.search { position: relative; max-width: 420px; width: 100%; }
.search svg { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; color: var(--faint); }
.search .input { padding-left: 42px; }
.grid-recipes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rcard { overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.rcard img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.rcard .b { padding: 12px 14px 14px; display: grid; gap: 6px; }
.rcard h3 { font-size: 15.5px; font-weight: 800; }
.profile-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }
/* „Политика за поверителност“ and „Контакти“: one under the other, below the account card (desktop: left column) */
.prof-links { display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) {
  .profile-grid { grid-template-rows: auto 1fr; }
  .profile-grid > :nth-child(2) { grid-column: 2; grid-row: 1 / span 2; } .prof-links { grid-column: 1; grid-row: 2; }
  /* signed in: the left column (account, password, delete) is the long one, so the links sit under the menu settings */
  .profile-grid.signed-in > :nth-child(1) { grid-row: 1 / span 2; } .profile-grid.signed-in > :nth-child(2) { grid-row: 1; }
  .profile-grid.signed-in .prof-links { grid-column: 2; grid-row: 2; }
}
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg .choice { min-height: 42px; padding: 0 16px; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--safe-bottom) + 14px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* Installed-app feel */
@media (display-mode: standalone) {
  body { -webkit-user-select: none; user-select: none; }
  input, textarea, .ing, .steps, table { -webkit-user-select: text; user-select: text; }
}

/* Grid/flex children never force the page wider than the screen */
.page > *, .flow > *, .recipe-top > *, .recipe-body > *, .profile-grid > *, .list-head > *, .auth-grid > * { min-width: 0; }
.select-bar .left { flex: 1 1 320px; min-width: 0; }
.select-bar .right { flex: 0 1 auto; }
.select-bar .save-note { flex: 1 1 100%; margin: 0; padding-top: 12px; border-top: 1px solid var(--line, #E8E2D6); color: var(--muted, #5E6B62); }
.select-bar .save-note b { color: var(--forest); }
.select-bar .sv-short { display: none; }
@media (max-width: 899px) { .select-bar .sv-long { display: none; } .select-bar .sv-short { display: inline; } }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } }

/* ---------- Live data additions ---------- */
.rb-t_market { background: #B3122B; }
.rb-dar { background: #2E7D32; }
.ph-img { display: grid; place-items: center; background: linear-gradient(135deg, var(--sage) 0%, #F1F6EC 100%); color: var(--leaf); width: 100%; height: 100%; min-height: 100%; }
.ph-img svg { width: 34%; max-width: 72px; height: auto; opacity: .8; }
.day-img .ph-img, .rcard .ph-img { aspect-ratio: 4 / 3; }
.recipe-top > .ph-img { aspect-ratio: 4 / 3; border-radius: 20px; }
.ptag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.ptag.promo { background: #FFF1CC; color: #7A5A00; }
.ptag.regular { background: var(--cream-2); color: var(--muted); }
.prod-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.skeleton { background: linear-gradient(90deg, var(--cream-2), #fff, var(--cream-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 12px; min-height: 120px; }
@keyframes sk { to { background-position: -200% 0; } }
.day .new-badge { font-size: 10.5px; font-weight: 800; color: var(--forest); background: var(--sage); padding: 2px 7px; border-radius: 999px; }

/* ---------- Accounts ---------- */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--forest); flex: none; }
.danger-zone { border-color: #EBC7BF; }
.btn-danger { background: var(--paper); color: var(--tomato); border-color: #E8B4A8; }
.btn-danger:hover { background: #FBEDE9; }
.field .msg { font-size: 13px; font-weight: 700; }
.field .msg.bad { color: var(--tomato); }
.field .msg.ok { color: var(--forest); }
.legal { max-width: 72ch; display: grid; gap: 14px; }
.legal h2 { font-size: 18px; font-weight: 800; margin-top: 8px; }
.legal p, .legal li { color: var(--ink); font-size: 15px; }

/* v5: approximate prices = average across chains (KZP) when a product is not in the brochures */
.rb-kzp_avg { background: #5B6B7A; }
.ptag.approx { background: #E6EEF6; color: #2D4A66; }
.approx-mark { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: #E6EEF6; color: #2D4A66; vertical-align: 1px; white-space: nowrap; }

/* brand: mascot + wordmark traced from the brand sheet */
.brand .mascot { height: 44px; width: auto; margin: -6px 0; }
.brand .wm { width: auto; height: 30px; margin-top: -4px; flex: none; }

/* language switcher */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 8px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; border-radius: 10px; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--cream-2); color: var(--ink); }
.lang-btn svg { width: 17px; height: 17px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 150px; padding: 6px; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.10); display: grid; gap: 2px; }
.lang-menu[hidden] { display: none; }
.lang-menu button { text-align: left; padding: 9px 10px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); border-radius: 8px; cursor: pointer; }
.lang-menu button:hover { background: var(--cream-2); }
.lang-menu button[aria-current="true"] { color: var(--forest); font-weight: 800; }
.lang-menu button[aria-current="true"]::after { content: "✓"; float: right; }
@media (max-width: 480px) {
  .topbar .wrap { gap: 8px; }
  .top-actions { gap: 4px; }
  .lang-btn { padding: 0 6px; } .lang-btn span { display: none; } .lang-btn svg { width: 20px; height: 20px; }
  .brand { flex: none; gap: 6px; } .brand .mascot { height: 38px; } .brand .wm { height: 24px; }
  .top-actions .btn-sm { padding-left: 12px; padding-right: 12px; }
}

/* ===== Home v2 (brand mockup): display type, organic photo shape, mascot, feature cards ===== */
:root { --display: "Nunito", "Manrope", "Segoe UI", system-ui, sans-serif; --deep: #0F4D2E; --green: #1E7A46; }
h1, .home h2 { font-family: var(--display); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.home { overflow-x: clip; background: radial-gradient(60% 40% at 0% 100%, #EEF3E6 0, transparent 70%), radial-gradient(45% 35% at 100% 100%, #E6F0E3 0, transparent 70%), var(--cream); }
.home .hero { background: none; border-bottom: 0; overflow: visible; }
.home .hero .wrap { gap: 28px; padding-block: 26px 12px; }
.home .hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 12.5vw, 76px); line-height: 1; text-wrap: normal; letter-spacing: -.035em; color: var(--deep); }
.home .hero .h1-in { position: relative; display: inline-block; padding-right: .5em; }
.home .hero .sparks { position: absolute; right: -.05em; top: -.28em; width: .62em; height: .52em; color: var(--green); }
.home .hero .lead { font-family: var(--display); font-weight: 800; color: var(--deep); font-size: clamp(24px, 6vw, 36px); line-height: 1.12; margin-top: 14px; letter-spacing: -.02em; }
.home .hero .sub { font-size: clamp(15.5px, 2vw, 19px); line-height: 1.45; max-width: 44ch; margin-top: 12px; }
.hero-cta { display: grid; justify-items: start; gap: 6px; margin-top: 24px; }
.home .btn-primary { background: var(--green); } .home .btn-primary:hover { background: var(--forest); }
.home .hero .slogan { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 27px; line-height: 1.05; color: var(--deep); transform: rotate(-6deg); margin: 10px 0 0 70px; }
.home .hero .slogan .curl { width: 52px; height: 38px; flex: none; margin-top: -6px; }
.home .hero-media { position: relative; margin: 6px 0 22px; }
.home .hero-media .blob { position: absolute; inset: -4% -9% -9% -6%; background: #DCEBDA; border-radius: 34% 66% 58% 42% / 44% 40% 60% 56%; }
.home .hero-photo { position: relative; width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: 34px 34px 34px 110px / 34px 34px 34px 90px; box-shadow: 0 0 0 10px var(--deep), 0 18px 40px rgba(15, 77, 46, .18); }
.home .hero-photo { opacity: 0; transition: opacity .35s ease; }
.home .hero-photo.shown { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .home .hero-photo { transition: none; } }
.home .hero-note { position: absolute; top: -14px; right: -6px; font-size: 23px; line-height: .98; color: var(--deep); background: #fff; padding: 12px 16px 10px; border-radius: 22px 22px 22px 6px; transform: rotate(7deg); text-align: right; box-shadow: 0 6px 18px rgba(15, 77, 46, .14); }
.home .hero-note svg { width: 20px; height: 20px; vertical-align: -3px; color: var(--green); }
.home .hero-media .hero-mascot { position: absolute; left: -16px; bottom: -40px; width: clamp(128px, 36vw, 210px); height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 10px 12px rgba(15, 77, 46, .18)); }
@media (min-width: 900px) {
  .home .hero .wrap { grid-template-columns: 1fr 1fr; align-items: center; gap: 96px; padding-block: 44px 36px; }
  .home .hero .sub { max-width: 40ch; }
  .home .hero-media .hero-mascot { left: -128px; bottom: -52px; width: 216px; }
  .home .hero-note { top: -18px; right: -14px; font-size: 27px; }
}
.home .features { grid-template-columns: 1fr; gap: 12px; padding-block: 34px 8px; }
.home .feature { background: rgba(255,255,255,.72); border-radius: 18px; padding: 18px; gap: 16px; align-items: flex-start; font-size: 15px; box-shadow: 0 1px 2px rgba(28,42,33,.03); }
.home .feature .f-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--sage); display: grid; place-items: center; flex: none; }
.home .feature svg { width: 30px; height: 30px; color: var(--green); }
.home .feature b { display: block; font-size: 16.5px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.home .feature p { margin: 6px 0 0; color: var(--muted); font-weight: 500; font-size: 14.5px; line-height: 1.45; }
@media (min-width: 620px) { .home .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .home .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.home .stores { border-top: 1px solid var(--line); margin-top: 26px; padding-block: 26px 24px; gap: 16px; }
.home .stores #stores-h { margin: 0; font-size: 16.5px; font-weight: 700; color: var(--deep); }
.home .store-chip { padding: 9px 20px 9px 10px; font-size: 16px; gap: 10px; box-shadow: 0 1px 2px rgba(28,42,33,.04); }
.home .store-chip .rb { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; }
.home .how { padding-block: 18px 44px; }
.home .how h2 { font-size: 26px; color: var(--deep); }

/* ===== Theme v2 for every page (menu, list, recipes, recipe, profile, auth) — same look as the new home page ===== */
:root {
  --forest: #1E7A46; --forest-2: #17633A; --line: #EAE4D6; --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 77, 46, .04), 0 10px 28px rgba(15, 77, 46, .07);
}
body { background: radial-gradient(48% 38% at 0% 100%, #EEF3E6 0, transparent 70%) fixed, radial-gradient(40% 34% at 100% 0%, #EAF2E6 0, transparent 70%) fixed, var(--cream); }
h1, h2 { font-family: var(--display); color: var(--deep); letter-spacing: -.02em; }
h3 { font-family: var(--display); font-weight: 800; }
.page-head h1, .flow h1, .recipe-top h1, .page h1 { font-weight: 900 !important; font-size: clamp(28px, 6.4vw, 40px) !important; line-height: 1.05; }
.page-head h1::after, .list-head h1::after { content: ""; display: inline-block; width: .62em; height: .52em; margin-left: .12em; vertical-align: .55em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M8 34 22 8M30 42l22-10' fill='none' stroke='%231E7A46' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.btn { border-radius: 14px; }
.btn-primary { box-shadow: 0 6px 16px rgba(30, 122, 70, .22); }
.btn-sm { border-radius: 12px; }
.card { border-color: rgba(234, 228, 214, .9); box-shadow: var(--shadow); }
.input, .choice { border-radius: 14px; }
.topnav a[aria-current="page"] { background: var(--sage); color: var(--deep); }
.demo-banner { border-radius: 16px; }

/* weekly menu */
.stat { padding: 16px 18px; }
.stat .ico, .est .ico { width: 52px; height: 52px; border-radius: 15px; }
.stat .v, .big-price { font-family: var(--display); font-weight: 900; color: var(--deep); }
.stat .v { font-size: 23px; }
.day { border-radius: 22px; }
.day:hover { box-shadow: 0 2px 4px rgba(15,77,46,.05), 0 16px 34px rgba(15,77,46,.12); }
.day-head { padding: 14px 14px 10px; }
.day-head b { font-family: var(--display); font-weight: 900; font-size: 16px; color: var(--deep); }
.day-img { margin: 0 10px; border-radius: 16px; }
.day-body { padding: 12px 14px 10px; }
.day-body h3 { font-size: 15.5px; line-height: 1.22; }
.pick { margin: auto 12px 12px; padding: 9px 12px; border-radius: 12px; background: var(--cream); justify-content: center; }
.pick[aria-pressed="true"] { background: var(--sage); color: var(--deep); }
.day .new-badge { background: #FFE1CC; color: #7A3300; }
.select-bar { border-radius: 22px; padding: 16px 18px; }
@media (max-width: 519px) {
  .day-img { margin: 10px 0 10px 10px; }
  .pick { margin: 0 12px 10px; justify-content: flex-start; background: none; padding: 4px 0 6px; }
  .pick[aria-pressed="true"] { background: none; }
}

/* recipes */
.rcard { border-radius: 22px; transition: transform .15s, box-shadow .15s; }
.rcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15,77,46,.05), 0 16px 34px rgba(15,77,46,.12); }
.rcard > img, .rcard > .ph-img { margin: 10px 10px 0; width: calc(100% - 20px); border-radius: 16px; }
.rcard h3 { font-size: 16.5px; line-height: 1.22; }
.search .input { border-radius: 999px; }
.recipe-top > img, .recipe-top > .ph-img { border-radius: 30px 30px 30px 96px / 30px 30px 30px 80px; box-shadow: 0 0 0 8px var(--deep), 0 18px 40px rgba(15, 77, 46, .16); margin: 8px; width: calc(100% - 16px); }
.groc-card { background: #FFF6DC; border: 0; border-radius: 18px; padding: 14px 16px; }
.tabs button { font-family: var(--display); font-weight: 800; font-size: 15px; }
.steps li::before { background: var(--forest); color: #fff; }
.nutri div { border-radius: 16px; }
.nutri b { font-family: var(--display); font-weight: 900; color: var(--deep); }
.store-prices li { border-radius: 14px; padding: 10px 12px; }

/* shopping list */
.table-wrap { border-radius: 22px; border-color: rgba(234, 228, 214, .9); box-shadow: var(--shadow); }
table.sl th { background: #F6F8F1; color: var(--deep); font-size: 12.5px; }
table.sl td.prod b { font-family: var(--display); font-weight: 800; font-size: 15px; }
.group-title { background: var(--sage); color: var(--deep); font-family: var(--display); }
.cb, .box { border-radius: 8px; }
.ret { border-radius: 18px; }
.ret b { font-family: var(--display); font-weight: 800; }
.sl-card { border-radius: 20px; }
.sl-card .top { font-family: var(--display); font-size: 16px; }
.waste { border-radius: 24px; padding: 20px 22px; background: linear-gradient(120deg, #E2F0E1, #EEF5E6); box-shadow: none; }
.waste h3, .waste b { color: var(--deep); }

/* auth, onboarding, profile */
.mode { border-radius: 22px; box-shadow: var(--shadow); }
.mode h3 { font-size: 19px; }
.stepper .dot.on { background: var(--forest); }
.avatar { background: var(--sage); color: var(--deep); }
.empty-mascot { width: 92px; height: auto; }
.toast { border-radius: 14px; background: var(--deep); }
.rcard > .ph-img { height: auto; min-height: 0; aspect-ratio: 4 / 3; flex: none; }
.recipe-top > .ph-img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
.day-head { flex-wrap: wrap; }
.day-head b { font-size: 15px; }

/* mascot on the home page: contact shadow on the ground + soft cast shadow, so it sits in the scene */
.home .hero-media .hero-mascot { filter: none; display: block; }
.home .hero-media .hero-mascot img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 14px 14px rgba(15, 50, 30, .22)) drop-shadow(0 3px 4px rgba(15, 50, 30, .18)); }
.home .hero-media .hero-mascot::before { content: ""; position: absolute; left: 26%; right: 20%; bottom: -6%; height: 15%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 45, 28, .55), rgba(15, 45, 28, .22) 55%, transparent 100%); filter: blur(4px); }

/* recipe: "От шкафа" — a quiet, pale card beside the ingredient list */
.side-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
.pantry { padding: 16px 18px; background: #FFFCF2; border-color: #F4ECD2; box-shadow: none; }
.pantry-head { display: flex; gap: 12px; align-items: center; }
.pantry-ico { width: 40px; height: 40px; border-radius: 12px; background: #FFF4D1; color: #A98220; display: grid; place-items: center; flex: none; }
.pantry-ico svg { width: 22px; height: 22px; }
.pantry h3 { font-size: 16px; color: var(--deep); }
.pantry .tiny { margin-top: 2px; line-height: 1.35; }
.pantry-chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.pantry-chips li { display: inline-flex; align-items: baseline; gap: 6px; background: #fff; border: 1px solid #F1E8CC; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
.pantry-chips b { font-weight: 700; color: var(--ink); }
.pantry-chips span { color: var(--muted); font-size: 12.5px; }

/* weekly menu: day name and date always on one line */
.day-head { flex-wrap: nowrap; gap: 6px; padding: 14px 12px 10px; }
.day-head b { font-size: 14px; white-space: nowrap; }
.day-head span { font-size: 11.5px; white-space: nowrap; flex: none; }

/* add to home screen */
.a2hs { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-bottom) + 12px); z-index: 55; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 40px 12px 12px; box-shadow: 0 12px 34px rgba(15, 77, 46, .18); }
.a2hs img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.a2hs-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.a2hs-t b { font-family: var(--display); font-weight: 800; font-size: 14.5px; color: var(--deep); line-height: 1.2; }
.a2hs-t span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.a2hs .btn { flex: none; }
.a2hs-x { position: absolute; top: 4px; right: 6px; width: 30px; height: 30px; border: 0; background: none; color: var(--faint); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }

/* Recipe → store prices: the products that have no price are named under the partial sum (visible on phones too). */
.store-prices .miss-names { display: block; max-width: 190px; text-align: right; margin-left: auto; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.store-prices .p { text-align: right; min-width: 0; }
.store-prices li > span:not(.p) { white-space: nowrap; flex: none; }

/* Home: permanent "add to home screen" card under "Как работи" */
.a2hs-inline { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.a2hs-inline img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.a2hs-inline .btn { flex: none; }

/* ---- „За нас“ / „Контакти“ ---- */
/* phones: a heart in the top bar (the bottom tab bar keeps its five buttons); wide screens: „За нас“ in the top menu */
.about-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); }
.about-ico:hover, .about-ico[aria-current="page"] { background: var(--cream-2); color: var(--forest); }
.about-ico svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .about-ico { display: none; } }
.ab-hero { display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: center; margin-bottom: 22px; }
.ab-hero img { width: 100%; max-width: 200px; height: auto; justify-self: center; }
.ab-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }   /* „За нас“ and the form: the same height */
.ab-text h2 { font-size: 20px; margin: 0 0 8px; } .ab-text h2:not(:first-child) { margin-top: 18px; } .ab-text h3 { font-size: 16px; margin: 14px 0 4px; }
.ab-text p { margin: 0 0 10px; }
.ab-text ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ab-text ul + p, .ab-text ul + h3 { margin-top: 16px; }   /* a paragraph after the list: the same space as between other paragraphs */
.ab-text li { position: relative; padding-left: 30px; }
.ab-text li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--sage-50, #EAF2EC) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A4A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ab-form textarea.input { min-height: 130px; resize: vertical; font: inherit; }
.ab-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ab-done { display: grid; gap: 8px; justify-items: start; padding: 6px 0; }
.ab-done[hidden] { display: none; }
@media (max-width: 760px) { .ab-hero { grid-template-columns: 1fr; } .ab-hero img { max-width: 140px; grid-row: 1; } .ab-grid { grid-template-columns: 1fr; } }
.prof-link { display: flex; align-items: center; gap: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 700; }
.prof-link small { display: block; font-weight: 500; color: var(--muted); }
.prof-link .chev { margin-left: auto; color: var(--faint); font-size: 22px; line-height: 1; }

/* ---- footer (all public pages) ---- */
.site-foot { border-top: 1px solid var(--line); margin-top: 32px; padding: 18px 0; color: var(--muted); font-size: 13px; }
/* the footer (© Koshi · За нас · Контакти · Поверителност) always at the bottom of the screen, also on short pages */
body[data-page] { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body[data-page] > .site-foot { margin-top: auto; }
body[data-page] > main { margin-bottom: 32px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-foot a:hover { color: var(--forest); text-decoration: underline; }

/* ---------- „За мен“ (profile card + product picker) ---------- */
.ts-card h2 { font-size: 18px; font-weight: 800; margin: 0; }
.ts-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ts-label { font-weight: 700; font-size: 15px; }
.ts-p { margin: 0; }
.ts-switch { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #D9D3C6; flex: none; border: 0; cursor: pointer; transition: background .2s; }
.ts-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.ts-switch[aria-checked="true"] { background: var(--forest); }
.ts-switch[aria-checked="true"]::after { left: 25px; }
.ts-switch:disabled { opacity: .5; cursor: not-allowed; }
.ts-switch:focus-visible { outline: 3px solid var(--sage-line); outline-offset: 2px; }
.ts-lock { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ts-sum { display: grid; gap: 8px; padding: 12px 14px; background: var(--cream); border-radius: 12px; font-size: 14px; }
.ts-sum span { color: var(--muted); }
.ts-edit { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ts-open { overflow: hidden; }
.ts-back { position: fixed; inset: 0; background: rgba(20,30,24,.45); display: grid; place-items: center; z-index: 80; padding: 24px; }
.ts-sheet { --ts-bg: #FCF8EF; background: var(--ts-bg); border-radius: 26px; width: min(640px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 14px 26px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); position: relative; }
.ts-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.ts-iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ts-iconbtn:hover { background: var(--cream-2); }
.ts-iconbtn svg { width: 24px; height: 24px; }
.ts-step { display: grid; gap: 14px; }
.ts-step[hidden] { display: none; }
.ts-intro { justify-items: center; text-align: center; padding: 0 6px 6px; }
.ts-hero { width: min(360px, 100%); height: auto; mix-blend-mode: multiply; }
.ts-intro h2 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 7vw, 36px); line-height: 1.08; color: var(--deep, #0F4D2E); margin: 6px 0 0; letter-spacing: -.02em; text-wrap: balance; }
.ts-intro p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.5; max-width: 30ch; }
.ts-go { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 18px; gap: 12px; box-shadow: 0 8px 20px rgba(30,91,58,.25); }
.ts-go svg { width: 22px; height: 22px; }
.ts-intro .ts-go { margin-top: 8px; min-width: 260px; }
.ts-step h2#ts-h { font-family: var(--display); font-size: 28px; font-weight: 900; color: var(--deep, #0F4D2E); margin: 0; }
.ts-lead { margin: -4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.ts-legend { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.ts-legend .lg { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; white-space: nowrap; }
.ts-legend .lg i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.ts-legend .lg i svg { width: 14px; height: 14px; }
.ts-legend .lg-love { background: var(--sage); color: var(--forest); } .ts-legend .lg-love i { background: var(--forest); }
.ts-legend .lg-no { background: #FBE6E1; color: var(--tomato); } .ts-legend .lg-no i { background: none; color: var(--tomato); }
.ts-legend .lg-no i svg { width: 18px; height: 18px; }
.ts-legend .lg-n { background: var(--cream-2); color: var(--ink); } .ts-legend .lg-n i { background: #6F7570; }
.ts-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ts-tile { position: relative; border: 1.5px solid #ECE6D8; border-radius: 16px; background: #FBF9F2; padding: 10px 6px 10px; display: grid; justify-items: center; align-content: center; gap: 4px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 800; color: var(--deep, #0F4D2E); text-align: center; line-height: 1.15; min-height: 112px; transition: border-color .15s, background .15s; }
.ts-pic { width: 64px; height: 64px; display: grid; place-items: center; }
.ts-pic img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.ts-emoji { font-size: 38px; line-height: 1; }
.ts-badge { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; background: #B9BAB4; color: #fff; display: grid; place-items: center; }
.ts-badge svg { width: 14px; height: 14px; }
.ts-tile.love { border-color: var(--forest); background: #EAF3E6; }
.ts-tile.love .ts-badge { background: var(--forest); }
.ts-tile.no { border-color: #EBA79A; background: #FCEDE9; }
.ts-tile.no .ts-badge { background: var(--tomato); }
.ts-tile.no .ts-pic img { filter: grayscale(.6); opacity: .7; }
.ts-tile.no .ts-emoji { filter: grayscale(.6); opacity: .7; }
.ts-tile:focus-visible, .ts-iconbtn:focus-visible { outline: 3px solid var(--sage-line); outline-offset: 2px; }
.ts-foot { position: sticky; bottom: -22px; padding: 12px 0 4px; background: linear-gradient(rgba(252,248,239,0), var(--ts-bg) 30%); display: grid; }
.ts-foot .ts-go { width: 100%; }
@media (max-width: 760px) {
  .ts-back { padding: 0; place-items: stretch; }
  .ts-sheet { border-radius: 0; max-height: none; height: 100%; height: 100dvh; padding: 8px 16px 16px; padding-top: calc(8px + var(--safe-top)); padding-bottom: calc(16px + var(--safe-bottom)); width: 100%; }
  .ts-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ts-tile { min-height: 104px; font-size: 13px; }
  .ts-step h2#ts-h { font-size: 26px; }
  .ts-foot { bottom: -16px; }
}
/* menu page: „Съобразено с твоя вкус“ */
.taste-note { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; background: var(--sage); color: var(--forest); font-weight: 700; font-size: 13.5px; border-radius: 999px; padding: 6px 14px 6px 10px; }
.taste-note svg { width: 16px; height: 16px; fill: var(--tomato); stroke: var(--tomato); }
.prof-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
/* „За мен“ step 2 „Какво купувате?“ */
.ts-top .ts-skip { margin-left: auto; }
.ts-skip { border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--forest); font-size: 15px; cursor: pointer; padding: 8px 4px; }
.ts-skip[hidden] { display: none; }
.ts-prog { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; }
.ts-prog i { flex: 1; height: 8px; display: flex; gap: 6px; }
.ts-prog i b { flex: 1; border-radius: 99px; background: #E8E3D6; }
.ts-prog i b.on { background: linear-gradient(90deg, #7FB08A, var(--forest)); }
.ts-prog span { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ts-sub { display: grid; gap: 14px; }
.ts-grp { background: #fff; border: 1.5px solid #ECE6D8; border-radius: 18px; padding: 12px 12px 14px; display: grid; gap: 10px; }
.ts-grp-h { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--deep, #0F4D2E); font-size: 15.5px; }
.ts-grp-h img { width: 38px; height: 38px; object-fit: contain; mix-blend-mode: multiply; }
.ts-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 761px) { .ts-opts { grid-template-columns: repeat(4, 1fr); } }
.ts-opt { position: relative; border: 1.5px solid #ECE6D8; border-radius: 14px; background: #FBF9F2; min-height: 60px; padding: 10px 6px; font: inherit; font-weight: 800; font-size: 13px; color: var(--deep, #0F4D2E); cursor: pointer; display: grid; place-items: center; text-align: center; line-height: 1.15; hyphens: auto; }
.ts-opt.on { border-color: var(--forest); background: #EAF3E6; }
.ts-opt.on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ts-opt.any { color: var(--muted); font-weight: 700; }
.ts-opt.any.on { color: var(--forest); }
.ts-opt:focus-visible, .ts-skip:focus-visible { outline: 3px solid var(--sage-line); outline-offset: 2px; }
.ts-hint { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
/* shopping list: „Тази седмица има твоите любими продукти“ */
.sw-back { position: fixed; inset: 0; background: rgba(20,30,24,.45); display: grid; place-items: center; z-index: 80; padding: 24px; }
.sw-box { background: #FCF8EF; border-radius: 24px; width: min(520px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 22px 22px 18px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.sw-box h2 { font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--deep, #0F4D2E); margin: 0; line-height: 1.15; }
.sw-box p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sw-rows { display: grid; gap: 8px; }
.sw-row { display: grid; grid-template-columns: 26px 44px 1fr; gap: 10px; align-items: center; background: #fff; border: 1.5px solid #ECE6D8; border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.sw-row.on { border-color: var(--forest); background: #F2F8EF; }
.sw-row input { width: 20px; height: 20px; accent-color: var(--forest); }
.sw-row img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
.sw-row .t { display: grid; gap: 2px; font-size: 14px; }
.sw-row .t s { color: var(--muted); font-size: 12.5px; }
.sw-row .t b { color: var(--ink); }
.sw-row .t span { font-size: 12.5px; color: var(--muted); }
.sw-note { font-size: 12.5px !important; text-align: center; }
.sw-art { display: grid; justify-items: center; margin: -4px 0 -26px; }
.sw-art img { width: 360px; max-width: 92%; height: auto; mix-blend-mode: multiply; }
.sw-btns { display: grid; gap: 8px; position: relative; z-index: 1; }
.sw-btns .btn { min-height: 52px; border-radius: 16px; font-size: 16px; }
.sw-btns .btn-ghost { background: #fff; }
.swapped { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--sage); color: var(--forest); }
@media (max-width: 760px) { .sw-back { padding: 0; place-items: stretch; } .sw-box { border-radius: 0; max-height: none; align-content: start; padding-top: calc(28px + var(--safe-top)); padding-bottom: calc(18px + var(--safe-bottom)); } }

/* „Празнично меню“ (shown only while Admin has one switched on) */
.hol-tabs { display: flex; gap: 4px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 4px auto 14px; width: 100%; max-width: 520px; box-sizing: border-box; }
.hol-tabs button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 9px 12px; font: inherit; font-weight: 800; font-size: 14px; color: var(--muted); cursor: pointer; }
.hol-tabs button[aria-selected="true"] { background: #B7791F; color: #fff; }
.hol-tabs button[aria-selected="true"]:first-child { background: var(--forest); }
.hol-banner { background: #FBF1DC; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 4px; }
.hol-banner h2 { font-size: 19px; font-weight: 800; margin: 0; }
.hol-banner p { margin: 0; font-size: 14px; color: #6b5a3a; }
.hol-label { display: inline-block; font-size: 11.5px; font-weight: 800; color: #B7791F; }
.hol-badge { display: inline-block; justify-self: start; width: fit-content; font-size: 11px; font-weight: 800; color: #8a5a12; background: #FBF1DC; border-radius: 999px; padding: 2px 8px; margin-bottom: 4px; }

/* „От шкафа“ on the shopping list (above „По-добра храна. По-малко отпадъци.“) */
.pantry-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; border-radius: 24px; background: #FBF5E8; border: 0; box-shadow: none; margin-bottom: 14px; }
.pantry-card b { color: var(--deep); }
.pantry-card .pan-ico { font-size: 34px; line-height: 1; flex: none; }
.pantry-card .pan-list { margin: 8px 0 0; font-weight: 700; font-size: 15px; line-height: 1.6; color: var(--ink, #1C2A21); }
.pantry-card .pan-list span { white-space: nowrap; }
.pantry-card .pan-list span:not(:last-child)::after { content: " ·"; color: var(--muted); }

/* „Ново: За мен“ announcement (menu) + „Ново“ badge (Профил) */
.ann-card { background: #E4EFE3; position: relative; padding-right: 52px; }
.ann-card .ann-body { flex: 1; min-width: 0; }
.ann-card b { display: block; font-size: 17px; }
.ann-card .ann-p { margin: 4px 0 12px; color: #3d4a41; line-height: 1.5; }
.ann-card .ann-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ann-card .ann-login { font-weight: 700; font-size: 14px; color: var(--forest); }
.ann-card .ann-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 99px; }
.ann-card .ann-x:hover { background: rgba(0,0,0,.05); }
.ts-new { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 800; background: #FFF0B3; color: #7A5A00; border-radius: 99px; padding: 3px 10px; vertical-align: middle; letter-spacing: 0; }
.ts-card.ts-flash { box-shadow: 0 0 0 3px var(--leaf, #7FB08A), var(--shadow); transition: box-shadow .4s; }
.pick-soon { margin: auto 12px 12px; padding: 9px 12px; border-radius: 12px; background: var(--cream); color: var(--faint); font-weight: 700; font-size: 13.5px; text-align: center; cursor: default; }
/* the weekly view keeps the page's 20px rhythm (summary → cards) inside its wrapper */
#week-view { display: grid; gap: 20px; }
#week-view[hidden] { display: none; }
#week-view > *, #hol-view > * { min-width: 0; }
#ann-slot:empty { display: none; }
#ann-slot .ann-card { margin-bottom: 0; }
/* Рецепти: labels from the nutrition (low carb / high protein / light) and the filter above the list */
.search-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: end; width: 100%; max-width: 420px; min-width: 0; }
.search-col .search { max-width: none; }
@media (max-width: 640px) { .search-col { max-width: none; justify-items: start; } }
.diet-filter { position: relative; display: flex; align-items: center; gap: 6px; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper, #fff); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.filter-btn svg { width: 18px; height: 18px; color: var(--forest); flex: none; }
.filter-btn.on { background: var(--sage, #E4EFE3); border-color: var(--sage-line, #9CC4A3); color: var(--deep, #0F4D2E); }
.filter-btn { white-space: nowrap; max-width: 100%; }
.filter-btn .f-cur { font-weight: 800; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.diet-filter { max-width: 100%; min-width: 0; }
.filter-btn { min-width: 0; overflow: hidden; }
.filter-clear { width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.filter-clear:hover { background: rgba(0,0,0,.05); }
.filter-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: min(320px, calc(100vw - 32px)); background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(15, 77, 46, .14); padding: 6px; display: grid; }
@media (max-width: 640px) { .filter-menu { left: 0; right: auto; } }
.filter-menu button { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; border-radius: 12px; padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.filter-menu button:hover, .filter-menu button:focus-visible { background: var(--cream, #FAF6EE); }
.filter-menu b { display: block; font-size: 14.5px; }
.filter-menu small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.filter-menu .f-dot { flex: none; width: 16px; height: 16px; margin-top: 0; border-radius: 999px; border: 2px solid var(--line); }
.filter-menu [aria-checked="true"] .f-dot { border-color: var(--forest); background: radial-gradient(circle, var(--forest) 0 4px, transparent 5px); }
.diet-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.diet-badge { display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--deep, #0F4D2E); background: var(--sage, #E4EFE3); border-radius: 999px; padding: 2px 9px; }
/* „Имаш предвид …?“ under an e-mail field */
.email-hint { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.email-fix { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--forest); text-decoration: underline; cursor: pointer; }

/* „Коши обяснява“ (assets/js/tips.js) */
.kt { position: fixed; right: 12px; bottom: calc(var(--tab-h) + var(--safe-bottom) + 12px); z-index: 50; display: flex; align-items: flex-end; pointer-events: none; }
@media (min-width: 900px) { .kt { right: 28px; bottom: 28px; } }
.kt-mb { position: relative; pointer-events: auto; border: 0; background: none; padding: 0; cursor: pointer; transform: translateX(150%) rotate(18deg); transition: transform .55s cubic-bezier(.34,1.56,.64,1); }
.kt-m { display: block; width: 92px; height: auto; filter: drop-shadow(0 8px 14px rgba(15,77,46,.18)); }
.kt.in .kt-mb { transform: none; }
.kt.in .kt-m { animation: kt-bob 2.6s ease-in-out .6s infinite; }
/* peeking: only the head shows above the tab bar (he sits behind it), turned so the magnifier faces the page */
.kt.peek { z-index: 39; }
.kt.peek .kt-mb { transform: translateY(calc(12px + 36%)) rotate(-6deg); }
.kt.peek .kt-mb:hover, .kt.peek .kt-mb:focus-visible { transform: translateY(calc(12px + 24%)) rotate(-4deg); }
.kt-m { transition: transform 0s .2s; }
.kt.peek .kt-m { transform: scaleX(-1); }
@media (min-width: 900px) {   /* no tab bar here: he peeks from the bottom edge of the window */
  .kt.peek .kt-mb { transform: translateY(calc(28px + 36%)) rotate(-6deg); }
  .kt.peek .kt-mb:hover, .kt.peek .kt-mb:focus-visible { transform: translateY(calc(28px + 24%)) rotate(-4deg); }
}
@keyframes kt-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-3deg); } }
.kt-b { position: relative; max-width: 270px; margin: 0 -4px 62px 0; background: #fff; border: 1.5px solid #E4EFE3; border-radius: 20px 20px 6px 20px;
  padding: 13px 34px 12px 15px; box-shadow: 0 14px 34px rgba(15,77,46,.16); font-size: 14.5px; line-height: 1.45; color: var(--ink, #1C2A21);
  transform-origin: 100% 100%; transform: scale(.4); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1) .35s, opacity .2s .35s, visibility 0s .7s; }
.kt.in .kt-b { transform: scale(1); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .35s cubic-bezier(.34,1.56,.64,1) .35s, opacity .2s .35s, visibility 0s .35s; }
.kt.peek .kt-b { transition: opacity .2s, visibility 0s .2s; }
.kt-b b { display: block; margin-bottom: 3px; color: var(--deep, #0F4D2E); font-family: var(--display, "Nunito", sans-serif); font-weight: 900; font-size: 15.5px; }
.kt-b .x { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border: 0; background: none; color: #8A958D; font-size: 15px; font-weight: 800; cursor: pointer; border-radius: 50%; }
.kt-b .go { display: inline-flex; margin-top: 9px; border: 0; background: #E4EFE3; color: var(--deep, #0F4D2E); font: inherit; font-weight: 800; font-size: 13.5px; border-radius: 999px; padding: 7px 13px; cursor: pointer; }
.kt-dot { position: absolute; left: 10px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #F2A33A; border: 2px solid #fff; animation: kt-ping 1.6s infinite; }
.kt-dot[hidden] { display: none; }
@keyframes kt-ping { 0% { box-shadow: 0 0 0 0 rgba(242,163,58,.55); } 100% { box-shadow: 0 0 0 12px rgba(242,163,58,0); } }
body.kt-open .kt { visibility: hidden; }
.kt-back { position: fixed; inset: 0; background: rgba(20,30,24,.45); z-index: 85; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .kt-back { align-items: center; padding: 24px; } }
.kt-sheet { position: relative; width: 100%; max-width: 500px; max-height: 88vh; overflow: auto; background: #FAF6EE; border-radius: 26px 26px 0 0; padding: 20px 18px calc(22px + var(--safe-bottom)); }
@media (min-width: 700px) { .kt-sheet { border-radius: 26px; padding-bottom: 22px; } }
.kt-close { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted, #5F6C63); font-size: 17px; font-weight: 800; cursor: pointer; }
.kt-head { display: flex; gap: 12px; align-items: center; margin: 0 30px 10px 0; }
.kt-head img { width: 72px; height: auto; flex: none; }
.kt-head h2 { margin: 0; font: 900 21px/1.2 var(--display, "Nunito", sans-serif); color: var(--deep, #0F4D2E); }
.kt-head p { margin: 3px 0 0; color: var(--muted, #5F6C63); font-size: 14px; }
.kt-i { display: flex; gap: 12px; background: #fff; border: 1px solid #E7E0D2; border-radius: 16px; padding: 12px 14px; margin: 8px 0; font-size: 14.5px; line-height: 1.45; color: var(--ink, #1C2A21); }
.kt-i i { font-style: normal; font-size: 21px; line-height: 1.2; }
.kt-i b { display: block; margin-bottom: 2px; color: var(--deep, #0F4D2E); }
.kt-i.hl { background: #F3F8F1; border-color: #CFE3CC; }
.kt-ok { width: 100%; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .kt-mb, .kt-b { transition: none !important; } .kt.in .kt-m, .kt-dot { animation: none; } }
@media print { .kt { display: none; } }

/* „Калориен дефицит“ recipes (code def_…): label, one-portion switch and „Изчислени калории“ */
.diet-badge.diet-deficit { background: #FDEBD8; color: #9A4A0B; }
.recipe-facts .diet-deficit { align-self: center; }
.pseg { display: flex; background: #EFE9DC; border-radius: 12px; padding: 3px; margin: 4px 0 10px; gap: 3px; }
.pseg button { flex: 1; border: 0; background: none; border-radius: 10px; padding: 9px 6px; font: inherit; font-weight: 800; font-size: 13.5px; color: var(--muted, #5F6C63); cursor: pointer; }
.pseg button.on { background: #fff; color: var(--deep, #0F4D2E); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kcal-box { background: #FFF7EE; border: 1px solid #F3DCC2; border-radius: 14px; padding: 12px 14px; margin: 14px 0 2px; font-size: 14px; line-height: 1.5; color: var(--ink, #1C2A21); }
.kcal-box > b { color: #9A4A0B; }
.kcal-box p { margin: 4px 0 0; }

/* „Калориен дефицит“ menu: shown everywhere as „Очаквай скоро“ until it opens (cannot be chosen yet) */
.choice.soon, .mode.soon { position: relative; cursor: default; background: #FAF6EE; border-style: dashed; color: var(--muted, #5F6C63); }
.mode.soon h3 { color: var(--muted, #5F6C63); }
.mode.soon svg { opacity: .6; }
.soon-badge { position: absolute; top: -9px; right: 10px; font-size: 10.5px; font-weight: 800; line-height: 1; color: #9A4A0B; background: #FDEBD8; border: 1px solid #F3DCC2; border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.seg .choice.soon { margin-top: 6px; }
@media (min-width: 720px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .modes { grid-template-columns: repeat(4, 1fr); } }

/* shopping list: shop sections (Плодове и зеленчуци, Месо…) inside the list and inside each store */
.sl .sec-title { padding: 14px 14px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5F6C63); background: transparent; border-bottom: 1px solid var(--line, #E7E0D2); }
h4.sec-title { margin: 14px 2px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5F6C63); }

/* recipe page: „Сподели рецептата“ */
.share-btn { margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.share-btn svg { width: 18px; height: 18px; }

/* Profile → „Как да подберем менюто?“: the 4 kinds of menu on one row (computer), 2 × 2 on a phone */
#mm.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#mm.seg .choice { padding: 8px 10px; line-height: 1.2; text-align: center; }
#mm.seg .choice.soon { margin-top: 0; }
@media (min-width: 700px) { #mm.seg { grid-template-columns: repeat(4, minmax(0, 1fr)); } #mm.seg .choice { font-size: 14px; } }
#mm.seg .choice.soon, #mm.seg .choice.has-new { padding-top: 14px; }
.diet-badge.diet-single { background: #E6EEF8; color: #23466E; }
/* „Кутии за училище“ in Profile → „За мен“ (assets/js/boxes.js) */
.bx { display: grid; gap: 12px; }
.bx-hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0 2px; }
.bx-kid { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 10px; background: #fff; }
.bx-kid-h { display: flex; justify-content: space-between; align-items: center; }
.bx-kid-h b { color: var(--deep, #0F4D2E); font-weight: 800; }
.bx-del { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; padding: 4px 6px; }
.bx-seg .choice { min-height: 38px; padding: 0 14px; font-size: 14px; }
.bx-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.bx-chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--forest); flex: none; }
.bx-chk small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.bx-act { display: flex; gap: 10px; flex-wrap: wrap; }
/* „Кутии за училище“ tab in the weekly menu */
.hol-tabs button[data-t="box"][aria-selected="true"] { background: var(--forest); }
.box-banner { background: #E9F1E6; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 4px; }
.box-banner h2 { font-size: 19px; font-weight: 800; margin: 0; }
.box-banner p { margin: 0; font-size: 14px; color: var(--muted); }
.box-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; line-height: 1.3; }
.box-who { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 7px; }
.box-sport { display: inline-block; margin-top: 3px; font-size: 11.5px; font-weight: 800; color: #23466E; background: #E6EEF8; border-radius: 999px; padding: 2px 8px; }
/* recipe page of a school box */
.box-ing { display: grid; gap: 4px; }
.box-ing-h, .box-ing-r { display: grid; grid-template-columns: 1fr 62px 62px 62px; gap: 6px; align-items: baseline; }
.box-ing-h { font-size: 12px; font-weight: 800; color: var(--muted); text-align: right; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.box-ing-r { font-size: 14.5px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.box-ing-r .q { text-align: right; font-weight: 700; white-space: nowrap; }
.box-ing-t { font-size: 15px; margin: 12px 0 2px; color: var(--deep, #0F4D2E); }
.box-ing-t.sport { color: #23466E; }
@media (min-width: 900px) { #box-view .days { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tab-ico { display: inline-block; width: 26px; height: 26px; vertical-align: -7px; margin-right: 7px; object-fit: contain; }
.box-banner h2 .tab-ico { width: 30px; height: 30px; vertical-align: -7px; }
/* „Помисли и за кутията за обяд“ – the two screens (assets/js/boxes.js) */
.lw .ts-step h2 { font-family: var(--display); font-size: 28px; font-weight: 900; color: var(--deep, #0F4D2E); margin: 0; }
@media (max-width: 520px) { .lw .ts-step h2 { font-size: 26px; } }
.lw-opts { display: grid; gap: 14px; margin: 6px 0 4px; }
.lw-opt { position: relative; display: flex; gap: 14px; align-items: center; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 20px; padding: 14px 16px; font: inherit; color: inherit; cursor: pointer; }
.lw-opt > img, .lw-opt > svg { width: 58px; height: 58px; flex: none; }
.lw-opt b { display: block; font-size: 17px; color: var(--deep, #0F4D2E); }
.lw-opt small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.lw-opt[aria-pressed="true"] { border-color: var(--forest); background: #F1F7EF; }
.lw-opt .ck { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; flex: none; }
.lw-opt .ck svg { width: 16px; height: 16px; }
.lw-opt[aria-pressed="true"] .ck { background: var(--forest); border-color: var(--forest); }
.lw-opt.soon { opacity: .6; cursor: not-allowed; border-style: dashed; }
.lw-opt .soon-badge { position: absolute; top: -10px; right: 14px; }
.lw-opt:focus-visible { outline: 3px solid var(--sage-line); outline-offset: 2px; }
.lw-kids { margin-top: 4px; }
.ts-go:disabled { opacity: .5; box-shadow: none; }
.bx-ico { width: 20px; height: 20px; display: inline-block; vertical-align: -4px; margin-right: 5px; }
.box-pseg button { flex: 1 1 0; min-width: 0; padding: 9px 4px; font-size: 13px; line-height: 1.2; }
.box-ing-r1 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.box-ing-r1 .q { font-weight: 800; white-space: nowrap; }

/* ---------- любими рецепти: сърце в долния десен ъгъл на снимката ---------- */
.fav-wrap { position: relative; }
.fav-btn { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(15,77,46,.18); transition: transform .12s; }
.fav-btn:hover { transform: scale(1.06); }
.fav-btn:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.fav-btn svg { width: 22px; height: 22px; fill: none; stroke: #C62828; stroke-width: 2; stroke-linejoin: round; }
.fav-btn[aria-pressed="true"] svg { fill: #C62828; }
.rwrap { position: relative; display: flex; }
.rwrap > .rcard { flex: 1; }
.rwrap > .fav-anchor { position: absolute; left: 10px; right: 10px; top: 10px; aspect-ratio: 4 / 3; pointer-events: none; }
.rwrap > .fav-anchor .fav-btn { pointer-events: auto; }
@media (max-width: 519px) {
  .day > .fav-wrap { grid-row: 1 / 4; margin: 10px 0 10px 10px; }
  .day > .fav-wrap > .day-img { margin: 0; height: 100%; }
  .day > .fav-wrap .fav-btn { width: 34px; height: 34px; right: 6px; bottom: 6px; }
  .day > .fav-wrap .fav-btn svg { width: 19px; height: 19px; }
}
.recipe-top > .fav-wrap > img, .recipe-top > .fav-wrap > .ph-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; display: block; }
.recipe-top > .fav-wrap .fav-btn { right: 14px; bottom: 14px; width: 46px; height: 46px; }
.recipe-top > .fav-wrap .fav-btn svg { width: 25px; height: 25px; }
.fav-tabs { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.fav-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line, #E5DED0); background: var(--paper, #fff); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.fav-tabs button[aria-pressed="true"] { background: var(--sage); border-color: var(--forest); color: var(--deep); }
.fav-tabs svg { width: 15px; height: 15px; fill: #C62828; stroke: #C62828; stroke-width: 2; }
.fav-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(20,30,25,.45); display: grid; place-items: end center; }
@media (min-width: 700px) { .fav-sheet { place-items: center; } }
.fav-sheet-in { position: relative; background: var(--paper, #fff); width: 100%; max-width: 440px; border-radius: 22px 22px 0 0; padding: 26px 22px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
@media (min-width: 700px) { .fav-sheet-in { border-radius: 22px; } }
.fav-sheet-in h3 { font-size: 20px; font-weight: 800; color: var(--deep); }
.fav-sheet-in p { color: var(--muted); margin: 0 0 6px; }
.fav-sheet-in .btn { width: 100%; justify-content: center; }
.fav-big svg { width: 40px; height: 40px; fill: none; stroke: #C62828; stroke-width: 2; }
.fav-login { font-weight: 700; color: var(--forest); text-decoration: none; padding: 6px; }
.fav-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; color: var(--muted); cursor: pointer; }
.prof-link[hidden], .fav-tabs[hidden] { display: none; }

/* Уикенд режим: картата „Планираш следващата седмица…“ и връзката към менюто от миналата седмица */
.wk-note { display: flex; gap: 10px; align-items: flex-start; background: var(--sage); border: 1px solid var(--sage-line); color: var(--forest); border-radius: 16px; padding: 12px 14px; margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; }
.wk-note b { font-weight: 800; }
.wk-note .wk-ico { font-size: 19px; line-height: 1.2; flex: none; }
.wk-link { display: block; margin-top: 6px; font-weight: 800; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.week-foot { display: flex; justify-content: center; }
.week-foot:empty { display: none; }
.wk-back { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-weight: 700; font-size: 14px; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.wk-switch { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* „Сложи Коши на телефона“: the guide (from the shopping-list card, Профил and „Как работи менюто“) */
.a2hs img { width: 46px; height: 46px; border-radius: 12px; }
.a2hs-t b { font-size: 15px; }
.a2hs-t span { font-size: 13px; line-height: 1.35; }
.a2g-back { position: fixed; inset: 0; background: rgba(20, 30, 25, .45); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.a2g { position: relative; background: #FBF7EF; width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; padding: 20px 18px calc(22px + var(--safe-bottom, 0px)); max-height: 92vh; overflow: auto; }
.a2g h2 { font-family: var(--display); font-size: 21px; color: var(--deep); margin: 0 36px 2px 0; }
.a2g-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.a2g-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; background: none; font-size: 22px; color: #777; cursor: pointer; border-radius: 8px; }
.a2g-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.a2g-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.a2g-tabs button[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.a2g-st { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
.a2g-st.first { background: #FFF4DE; border-color: #F2D7A0; }
.a2g-st b { color: var(--deep); }
.a2g-n { width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; font-size: 14px; }
.a2g-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--sage); color: var(--forest); vertical-align: middle; margin: 0 2px; }
.a2g-ic svg { width: 17px; height: 17px; }
.a2g-ic b { font-size: 18px; line-height: 1; color: var(--forest); }
.a2g-why { font-size: 13px; color: var(--muted); margin: 10px 2px 14px; }
.a2g .a2g-ok { width: 100%; }
body.a2g-open { overflow: hidden; }
.kt-app i { flex: none; width: 30px; }
.kt-app i img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.kt-how { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Weekly menu cards on a computer: everything centred, kcal and protein on separate lines, the icons at the top
   (one line on a phone and a tablet, as before). The title keeps the „Генерирай друго меню“ button on its right. */
.kp, .kp i { font-style: normal; }
@media (min-width: 900px) {
  .page-head > div:first-child { flex: 1 1 0; min-width: 0; }
  #days .day-body, #hol-view .day-body { text-align: center; justify-items: center; }
  #days .meta, #hol-view .meta { flex-direction: column; align-items: center; gap: 3px; }
  #days .meta span, #hol-view .meta span { display: block; }
  #days .meta svg, #hol-view .meta svg { display: inline-block; vertical-align: -2px; margin-right: 4px; }
  .kp-sep { display: none; }
  .kp-pr { display: block; }
}
@media (min-width: 700px) { .a2g-back { align-items: center; padding: 24px; } .a2g { border-radius: 24px; max-width: 520px; } }

/* „Калориен дефицит“: „Кой ще яде по-леко?“, „Преди да започнеш“, поканата за профил (deficit.js) */
.df-back { position: fixed; inset: 0; background: rgba(20, 30, 25, .45); z-index: 95; display: flex; align-items: flex-end; justify-content: center; }
.df { position: relative; background: #FBF7EF; width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + var(--safe-bottom, 0px)); display: grid; gap: 12px; max-height: 92vh; overflow: auto; }
@media (min-width: 700px) { .df-back { align-items: center; padding: 24px; } .df { border-radius: 24px; } }
.df h2 { font-family: var(--display); font-size: 22px; color: var(--deep); margin: 0 36px 0 0; }
.df p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.df .df-text { color: var(--ink); font-size: 15px; line-height: 1.6; }
.df-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; background: none; font-size: 22px; color: #777; cursor: pointer; border-radius: 8px; }
.df-opts { display: grid; gap: 10px; }
.df-opt { display: flex; gap: 14px; align-items: center; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; font: inherit; cursor: pointer; }
.df-opt.on { border-color: var(--forest); background: #F3F9F2; box-shadow: 0 0 0 3px rgba(30, 122, 74, .10); }
.df-opt svg { width: 56px; height: 56px; flex: none; }
.df-opt b { display: block; color: var(--deep); font-size: 16px; margin-bottom: 3px; }
.df-opt small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.df .df-small { font-size: 12.5px; }
.df-wide { width: 100%; justify-content: center; }
.df-link { text-align: center; font-weight: 700; color: var(--forest); font-size: 14px; }
body.df-open { overflow: hidden; }
.badge-profile { background: #E4EFE3; color: var(--forest); }
/* the weekly menu and the recipe page of „Само аз“ */
.solo-tag { display: inline-block; background: #FFF4DE; color: #8a5a00; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 800; margin-bottom: 2px; }
.solo-tip { display: flex; gap: 12px; align-items: center; background: #FFF4DE; border: 1px solid #F2D7A0; border-radius: 14px; padding: 11px 13px; font-size: 14px; line-height: 1.45; color: #5b4300; margin: 0 0 12px; }
.solo-tip svg { width: 40px; height: 40px; flex: none; }
.solo-cols { display: grid; grid-template-columns: 1fr auto auto; }
.solo-cols > div { padding: 9px 6px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.solo-cols .h { font-size: 12.5px; color: var(--muted); font-weight: 700; border-bottom-width: 2px; }
.solo-cols .r { text-align: right; font-variant-numeric: tabular-nums; padding-left: 18px; }
.solo-cols .me { color: #8a5a00; font-weight: 700; }
.solo-cols .all { font-weight: 800; color: var(--deep); }
.solo-line { font-size: 13px; line-height: 1.45; margin: 4px 0 0; }
/* „Ново: Калориен дефицит“ – the badge and the card on the menu page (shown once, for the first weeks) */
.soon-badge.badge-new { background: var(--forest); color: #fff; border-color: var(--forest); }
.choice.has-new, .mode.has-new { position: relative; }
.df-new { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin: 0 0 16px; border: 1.5px solid #CFE3CF; background: linear-gradient(135deg, #F3F9F2, #FFF7EA); }
.df-new-ico svg { width: 52px; height: 52px; flex: none; }
.df-new h2 { font-size: 17px; color: var(--deep); margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.df-new p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.df-new-b { font-size: 11px; font-weight: 800; background: var(--forest); color: #fff; border-radius: 999px; padding: 3px 9px; }
.df-new-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
/* phone: the „Ново“ / „Само с профил“ badges go to the bottom corner (at the top they come too close to the button above) */
@media (max-width: 899px) {
  .soon-badge.badge-new, .soon-badge.badge-profile { top: auto; bottom: -9px; }
  .mode .soon-badge.badge-new, .mode .soon-badge.badge-profile { bottom: -10px; }
}
@media (max-width: 699px) { #mm.seg .choice.soon, #mm.seg .choice.has-new { padding-top: 8px; padding-bottom: 14px; } }
/* Profile → „Изтрий профила“: a quiet grey button („Изтрий завинаги“ after it stays red) */
.btn.btn-quiet { color: var(--muted, #5F6C63); background: #F1EEE8; border-color: #E2DDD3; }
.btn.btn-quiet:hover { background: #E8E4DC; color: var(--ink); }
.solo-tip p { margin: 0; }
.solo-tip .solo-tip-g { margin-top: 6px; font-size: 13.5px; }
/* the holiday tab: a drawn star like the other tab icons, every tab label on one line */
.hol-tabs button { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.hol-tabs .tab-ico { vertical-align: 0; }
.tab-star { width: 20px; height: 20px; margin-right: 6px; }
@media (max-width: 520px) {
  .hol-tabs button { padding: 9px 6px; font-size: 13px; }
  .hol-tabs .tab-ico { width: 20px; height: 20px; margin-right: 4px; }
  .hol-tabs .tab-star { width: 17px; height: 17px; }
}
/* weekend card: a plain drawn calendar (the emoji shows a date on phones) */
.wk-note .wk-ico svg { width: 20px; height: 20px; display: block; margin-top: 1px; }
/* „Калориен дефицит“ does not cover lunch boxes / the holiday menu */
.df-tabnote { background: #FFF4DE; border: 1px solid #F2D7A0; color: #5b4300; border-radius: 12px; padding: 9px 12px; font-size: 13.5px; line-height: 1.45; margin: 0 auto 12px; max-width: 720px; }
/* weekend card, a softer look: the icon on a white tile, a bold title, a light green gradient with two leaves on the right */
.wk-note { position: relative; overflow: hidden; align-items: center; gap: 14px; padding: 14px 64px 14px 14px; border-radius: 18px;
  background: radial-gradient(circle at calc(100% + 10px) calc(100% + 14px), rgba(190, 224, 182, .75) 0 54px, transparent 55px), linear-gradient(135deg, #EEF7EB 0%, #E1F0DC 100%); border-color: #CFE5CC; color: #4A5A4F;
  box-shadow: 0 6px 18px rgba(30, 90, 50, .08); font-size: 14px; }
.wk-note .wk-ico { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--forest);
  box-shadow: 0 2px 8px rgba(30, 90, 50, .10); }
.wk-note .wk-ico svg { width: 21px; height: 21px; margin: 0; }
.wk-note b { color: var(--deep, #123D27); }
.wk-note .wk-title { font-weight: 800; color: var(--deep, #123D27); }
.wk-link { margin-top: 4px; font-size: 13.5px; }
.wk-note::after { content: ""; position: absolute; right: 10px; bottom: 0; width: 70px; height: 100%; pointer-events: none;
  background: no-repeat right 4px center / 60px 50px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M38 30c2-9 8-15 16-17-1 9-7 15-16 17z' fill='%231E7A4A'/%3E%3Cpath d='M30 44c6-1 11 1 14 5-6 2-11 0-14-5z' fill='%2348A868'/%3E%3Cpath d='M24 22l3 4M20 30l4 1' stroke='%231E7A4A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
@media (max-width: 520px) { .wk-note { padding-right: 46px; } .wk-note::after { width: 48px; background-size: 44px 38px; } }

/* „Само аз“ on the menu card: three short lines – the tag, kcal · protein, „останалите: по-голяма“ */
.solo-line { line-height: 1.35; }
.solo-line > span { display: block; }
.solo-line .solo-tag { display: inline-block; margin-bottom: 3px; }
@media (min-width: 900px) { .solo-line .solo-kc .sep { display: none; } .solo-line .solo-kc .pr { display: block; } }
