/* Market stall: white ground, warm neutrals, one herb green for actions, and a fruit colour per category
   (tint for grounds, ink for text and icons; ink passes 4.5:1 on its tint and on white).
   Type: Rubik (variable, Hebrew + Latin, OFL, served from /assets/fonts). See DESIGN.md. */
@font-face { font-family: 'Rubik'; src: url(/assets/fonts/Rubik-hebrew-var.woff2) format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; src: url(/assets/fonts/Rubik-latin-var.woff2) format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --brand: #0F8466; --brand-hi: #0D7A5E; --brand-glow: #0D7A5E; --brand-soft: #E7F5F0; --brand-rgb: 15, 132, 102;
  --bg: #FFFFFF; --bg-2: #F7F4EF; --bg-3: #EFEBE4;
  --ink: #1F1A17; --ink-2: #4D4540; --muted: #6E665F; --line: #EEEAE3; --line-2: #E2DDD4;
  --card: #FFFFFF; --soft: #F7F4EF; --glass: #F7F4EF;
  /* the category colour in scope (defaults to herb green); .c-* classes below set it */
  --c-bg: #DCF4E8; --c-ink: #0D7A5E; --c-solid: #2FB57E;
  --green: var(--brand); --green-dk: var(--brand-hi); --green-bg: var(--brand-soft);
  --tomato: #E8684A; --gold: #F2B634; --rec: #E5484D; --danger: #D63B3B;
  --warn-bg: #FFF6E3; --warn-ink: #8F6100; --warn-line: #F1D08A;
  --shadow: 0 6px 20px rgba(20, 30, 25, 0.06); --shadow-lg: 0 14px 36px rgba(20, 30, 25, 0.12);
  --r: 18px; --r-sm: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --display: 'Rubik', 'Arial Hebrew', Arial, sans-serif; --body: 'Rubik', 'Arial Hebrew', Arial, sans-serif;
  --pad: 20px; --tab-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; overflow-x: clip; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overscroll-behavior-y: none; overflow-x: clip; }
button, input, textarea, select { font: inherit; color: inherit; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--brand-hi); }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 20px; line-height: 1.25; }
/* fruit colours: one per category */
.c-tomato { --c-bg: #FFE4DC; --c-ink: #B3301B; --c-solid: #E8553A; }
.c-pumpkin { --c-bg: #FFE9D2; --c-ink: #9A4A00; --c-solid: #F28C28; }
.c-olive { --c-bg: #EEF0D6; --c-ink: #56661A; --c-solid: #8FA33A; }
.c-mint { --c-bg: #DCF4E8; --c-ink: #0D7A5E; --c-solid: #2FB57E; }
.c-wheat { --c-bg: #F7EBD8; --c-ink: #7A5220; --c-solid: #D9A55B; }
.c-berry { --c-bg: #FCE2EA; --c-ink: #A3214A; --c-solid: #E0457B; }
.c-lemon { --c-bg: #FFF2C2; --c-ink: #7F5B00; --c-solid: #F5C518; }
.c-plum { --c-bg: #F3E3EE; --c-ink: #7A2A5E; --c-solid: #A8477F; }
.c-aqua { --c-bg: #DCF0F3; --c-ink: #1A6573; --c-solid: #3AA7BA; }
.c-stone { --c-bg: #EFEDE8; --c-ink: #5A5650; --c-solid: #9C978E; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.section { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.count { font-size: 13px; font-weight: 500; color: var(--muted); margin-inline-start: 4px; letter-spacing: 0; }

/* page frames */
.page { max-width: 720px; margin: 0 auto; padding-bottom: calc(110px + var(--safe-bottom)); }
.app { padding: calc(14px + var(--safe-top)) var(--pad) calc(var(--tab-h) + 40px + var(--safe-bottom)); }
.band { position: relative; height: calc(12px + var(--safe-top)); }
.brand { position: absolute; z-index: 1; top: calc(18px + var(--safe-top)); inset-inline: 20px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.brand small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; margin-bottom: 2px; direction: ltr; text-align: right; opacity: .9; }
.sheet { position: relative; background: var(--bg); padding: 16px var(--pad) 0; }
.title-bar { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 16px; }

/* home: greeting, search, categories, rows of cards */
/* home hero: a dish photo, the greeting on a glass fade, the search floating over its edge */
.home-hero { position: relative; overflow: hidden; margin: calc(-14px - var(--safe-top)) calc(-1 * var(--pad)) 0; height: calc(48vh + var(--safe-top)); min-height: 330px; max-height: 470px; color: #fff; }
.hh-photos { position: absolute; inset: 0; background: var(--bg-3); animation: hh-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hh-photo { position: absolute; inset: 0; background: center 62% / cover no-repeat; opacity: 0; transform: scale(1.1); transition: opacity 1.4s ease, transform 7s linear; }
.hh-photo.on { opacity: 1; transform: scale(1); }
.hh-photo:first-child { background-position: center 68%; }
@keyframes hh-in { from { transform: scale(1.06); opacity: .6; } }
.home-hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 70%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.7) 16%, rgba(0, 0, 0, 0.56) 32%, rgba(0, 0, 0, 0.38) 50%, rgba(0, 0, 0, 0.2) 68%, rgba(0, 0, 0, 0.07) 84%, rgba(0, 0, 0, 0) 100%); }
.hh-top { position: absolute; z-index: 2; top: calc(14px + var(--safe-top)); inset-inline: var(--pad); display: flex; align-items: center; justify-content: flex-end; }
.hh-me { background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); }
.hh-brand { font-weight: 700; font-size: 17px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3); }
.home-hero .hello-av { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); }
.hh-in { background: rgba(255, 255, 255, 0.92); border-color: transparent; }
.hh-cap { position: absolute; z-index: 2; inset-inline: var(--pad); top: calc(72px + var(--safe-top)); text-align: center; }
.hh-cap small { display: block; font-size: 15px; opacity: .92; margin-bottom: 2px; }
.hh-cap h1 { font-weight: 900; font-size: clamp(34px, 9.5vw, 46px); line-height: 1.08; letter-spacing: -0.02em; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3); }
.hh-cap p { margin: 8px 0 0; font-size: 14.5px; opacity: .92; }
.home-hero .r-glass { height: 50%; }
.searchbar.float { position: relative; z-index: 3; height: 62px; margin-top: -31px; padding: 0 20px; border-radius: 20px; font-size: 17px; background: #fff; border-color: transparent; box-shadow: 0 12px 30px rgba(20, 30, 25, 0.14); }
.searchbar.float input { font-size: 17px; }
.searchbar.float input::placeholder { color: var(--ink); opacity: 1; }
.searchbar.float > svg { color: var(--ink); width: 22px; height: 22px; }
.home .hsec:first-of-type { margin-top: 22px; }
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.hello small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.hello h1 { font-size: 27px; line-height: 1.2; }
.hello-av { flex: none; text-decoration: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--brand-soft); }
.searchbar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 15px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.searchbar > svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.searchbar span { flex: 1; }
.searchbar input { flex: 1; align-self: stretch; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.searchbar input::placeholder { color: var(--muted); }
.searchbar:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12); }
.sb-x { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; background: var(--bg-3); color: var(--ink-2); padding: 0; }
.sb-x[hidden] { display: none; }
.sb-x svg { width: 14px; height: 14px; }
.searchbar input::-webkit-search-cancel-button { display: none; }
.sb-f { display: grid; place-items: center; width: 36px; height: 36px; margin-inline-end: -6px; border-inline-start: 1px solid var(--line-2); padding-inline-start: 10px; color: var(--ink-2); }
.sb-f svg { width: 20px; height: 20px; }
.hsec { margin-top: 26px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.see { border: 0; background: none; padding: 6px 0; color: var(--brand-hi); font-size: 14px; font-weight: 700; text-decoration: none; }
.cats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 8px; scroll-padding-inline: var(--pad); }
.cats::-webkit-scrollbar { display: none; }
/* categories: tall cards (as in the earlier version), in a row you swipe */
.cats { gap: 12px; padding-bottom: 14px; }
.cat { position: relative; flex: none; width: 138px; height: 176px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; padding: 14px; border-radius: 24px; border: 0; background: var(--c-bg); color: var(--c-ink); text-align: right; font: inherit; transition: background .2s var(--ease), color .2s var(--ease), transform .16s var(--ease), box-shadow .2s var(--ease); }
.cc-ico { position: absolute; top: 14px; inset-inline-start: 14px; width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.7); }
.cat .ico { width: 34px; height: 34px; color: var(--c-ink); stroke-width: 1.7; }
.cc-name { font-weight: 800; font-size: 18px; line-height: 1.15; }
.cat small { font-size: 12.5px; font-weight: 500; color: var(--c-ink); }
.cc-go { position: absolute; top: 14px; inset-inline-end: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c-ink); }
.cc-go svg { width: 16px; height: 16px; }
.cat:active { transform: scale(0.97); }
.cat.on { background: var(--c-ink); color: #fff; box-shadow: 0 10px 22px rgba(20, 15, 10, 0.22); }
.cat.on small { color: rgba(255, 255, 255, 0.9); }
.cat.on .cc-ico { background: rgba(255, 255, 255, 0.16); }
.cat.on .ico { color: #fff; }
.cat.on .cc-go { background: #fff; color: var(--c-ink); }
@media (hover: hover) { button.cat:not(.on):hover { box-shadow: var(--shadow-lg); } }
.cat.soon { background: transparent; border: 1.5px dashed var(--line-2); box-shadow: none; color: var(--muted); }
.cat.soon .cc-ico { background: var(--bg-3); }
.cat.soon .ico { color: #9AA09D; }
.cat.soon small { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); color: var(--muted); font-weight: 700; }
.hrow { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; scroll-padding-inline: var(--pad); }
.hrow::-webkit-scrollbar { display: none; }
.hrow .rc { scroll-snap-align: start; }
.hrow .rc.wide { width: 240px; }
.hrow:has(.wide) { grid-auto-columns: 240px; }

/* recipe card: rounded photo, name, quiet line */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rc { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--ink); text-decoration: none; }
.rc .ph-wrap { transition: transform .16s var(--ease); }
.rc:active .ph-wrap { transform: scale(0.97); }
.ph-wrap { position: relative; display: block; margin-bottom: 8px; padding: 6px; border-radius: 26px; background: var(--c-bg); }
.ph { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--bg-3) var(--cover) center / cover; }
.rc.tall .ph { aspect-ratio: 4 / 5; }
.rc.wide .ph { aspect-ratio: 16 / 10; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: transform .5s var(--ease), opacity .35s var(--ease); }
.ph img.ok, .r-hero img.ok, .photo-pick img.ok { opacity: 1; }
.r-hero img, .photo-pick img { opacity: 0; transition: opacity .35s var(--ease); }
@media (hover: hover) { .rc:hover .ph img { transform: scale(1.04); } }
.rc-t { font-size: 16px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-s { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.found { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 48px 16px; color: var(--muted); }
.empty > svg { width: 44px; height: 44px; color: var(--brand); padding: 10px; box-sizing: content-box; border-radius: 50%; background: var(--brand-soft); margin-bottom: 8px; }
.empty h2 { color: var(--ink); font-size: 19px; }
.empty p { margin: 0; max-width: 34ch; }

/* saved: one big photo, two small */
.mosaic { display: grid; grid-template-columns: 1.45fr 1fr; gap: 10px; height: 210px; }
.mosaic.one { grid-template-columns: 1fr; }
.mo-col { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 0; }
.mo { position: relative; display: block; min-height: 0; padding: 0; border: 0; background: none; border-radius: 18px; overflow: hidden; }
.mo .ph { height: 100%; aspect-ratio: auto; border-radius: 0; }
.mo-more { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: rgba(20, 30, 25, 0.45); color: #fff; font-size: 20px; font-weight: 700; line-height: 1.1; }
.mo-more small { font-size: 13px; font-weight: 500; }

/* bottom tab bar with the round + in the middle */
.tabbar[hidden] { display: none; }
.tabbar { view-transition-name: tabbar; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: calc(var(--tab-h) + var(--safe-bottom)); padding: 0 8px var(--safe-bottom); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(20, 30, 25, 0.05); }
.tab { display: grid; justify-items: center; gap: 2px; padding: 8px 0; min-height: 52px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 500; transition: color .2s var(--ease); }
.tab svg { width: 24px; height: 24px; transition: transform .16s var(--ease); }
.tab:active svg { transform: scale(0.88); }
.tab.on { color: var(--brand-hi); font-weight: 700; }
.tab.on svg path { fill: rgba(var(--brand-rgb), 0.14); }
.tab-add { justify-self: center; width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 6px var(--bg), 0 10px 24px rgba(var(--brand-rgb), 0.45); transition: transform .25s var(--spring), background .2s var(--ease); }
.tab-add svg { width: 28px; height: 28px; }
.tab-add:active { transform: scale(0.9); }
/* the + is alive: it springs in, breathes a soft ring now and then, turns on touch and throws a handful of colours */
.tab-add { position: relative; isolation: isolate; animation: add-in .8s var(--spring) .15s both; }
.tab-add svg { transition: transform .5s var(--spring); }
.tab-add::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--brand); animation: add-ring 4.2s cubic-bezier(.2, .7, .2, 1) 1.2s infinite; }
.tab-add.pop { animation: add-pop .55s var(--spring); }
.tab-add.pop svg { transform: rotate(180deg) scale(1.08); }
@media (hover: hover) { .tab-add:hover svg { transform: rotate(90deg); } }
@keyframes add-in { from { transform: scale(0) rotate(-120deg); } to { transform: none; } }
@keyframes add-ring { 0% { transform: scale(1); opacity: .45; } 45%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes add-pop { 0% { transform: scale(1); } 30% { transform: scale(.84, .9); } 65% { transform: scale(1.12); } 100% { transform: scale(1); } }
.spark { position: fixed; z-index: 60; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; pointer-events: none; animation: spark .7s cubic-bezier(.15, .8, .3, 1) forwards; }
.spark.sq { border-radius: 2px; }
@keyframes spark { 0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(160deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tab-add::before, .spark { display: none; } }
@media (hover: hover) { .tab-add:hover { background: var(--brand-hi); } }
.tab-gap { display: block; }
@media (min-width: 760px) { .tabbar { left: 50%; right: auto; width: 560px; transform: translateX(-50%); bottom: 16px; height: var(--tab-h); padding-bottom: 0; border: 1px solid var(--line); border-radius: 22px; } }

/* buttons */
.btn { height: 52px; padding: 0 22px; border-radius: 16px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--body); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); }
.btn:active:not(:disabled) { transform: scale(0.98); }
@media (hover: hover) { .btn:hover:not(:disabled) { border-color: #C9CFCC; } }
.btn.primary, .btn.dark, .btn.light { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.28); }
@media (hover: hover) { .btn.primary:hover:not(:disabled), .btn.dark:hover:not(:disabled), .btn.light:hover:not(:disabled) { background: var(--brand-hi); border-color: var(--brand-hi); } }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.small { height: 44px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; }
.btn svg { width: 20px; height: 20px; }
.icon-btn, .round { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; display: inline-grid; place-items: center; background: var(--bg-2); color: var(--ink); text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease); }
.icon-btn svg, .round svg { width: 20px; height: 20px; }
.icon-btn:active, .round:active { transform: scale(0.92); }
.icon-btn, .round { transition: background .2s var(--ease), color .2s var(--ease), transform .16s var(--ease); }
.round.pop svg { animation: pop .42s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@media (hover: hover) { .icon-btn:hover, .round:hover { background: var(--bg-3); } }
.round.on { color: var(--brand); }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 20px calc(14px + var(--safe-bottom)); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.bottom-bar > * { max-width: 680px; }

/* inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.input, textarea.input, select.input { width: 100%; min-height: 52px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.input::placeholder { color: #A5ABA8; }
.input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.search:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12); }
.search input { align-self: stretch; border: 0; outline: 0; background: transparent; flex: 1; font-size: 16px; min-width: 0; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }

/* switch + chips + tags */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg-2); border-radius: 14px; padding: 4px; gap: 4px; margin-top: 12px; }
.seg button { height: 44px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.seg button.on { background: #fff; color: var(--brand-hi); box-shadow: 0 2px 8px rgba(20, 30, 25, 0.08); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 4px; scroll-padding-inline: var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
#grid { margin-top: 16px; }
.tag { height: 28px; padding: 0 11px; border-radius: 10px; background: var(--c-bg); color: var(--c-ink); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tag.draft, .badge.vis.draft { background: var(--warn-bg); color: var(--warn-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.badge { position: absolute; top: 8px; right: 8px; height: 24px; padding: 0 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.badge svg { width: 12px; height: 12px; }
.badge.vis.up { background: var(--gold); color: #3A2A00; }

/* recipe: photo on top, a white sheet over it, a floating green button */
.recipe { padding-bottom: calc(110px + var(--safe-bottom)); }
.r-hero { position: relative; overflow: hidden; height: calc(38vh + var(--safe-top)); min-height: 250px; max-height: 360px; background: var(--bg-3) var(--cover) center / cover; }
.r-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* glass that thickens toward the bottom: blurred and darkened, so the title reads on any photo */
/* over photos: one plain black fade, the same on every photo (home and every recipe). No blur, no tint:
   eased stops so it has no visible start, deep at the bottom where the title sits */
.r-glass { position: absolute; inset: auto 0 0 0; height: 75%; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.04) 12%, rgba(0, 0, 0, 0.12) 24%, rgba(0, 0, 0, 0.24) 36%, rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.52) 60%, rgba(0, 0, 0, 0.65) 72%, rgba(0, 0, 0, 0.75) 84%, rgba(0, 0, 0, 0.82) 100%); }
.r-cap { position: absolute; z-index: 1; inset-inline: var(--pad); bottom: 38px; color: #fff; }
.r-cap h1 { font-size: 27px; line-height: 1.15; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.r-cap .r-by { display: inline-flex; margin: 0 0 8px; padding: 4px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 700; }
.r-top { position: absolute; z-index: 2; top: calc(12px + var(--safe-top)); left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 8px; }
.r-top .round { background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.r-sheet { position: relative; z-index: 1; margin-top: -24px; background: var(--bg); border-radius: 26px 26px 0 0; padding: 18px var(--pad) 0; }
.r-sheet > .r-meta:first-child { margin-top: 0; }
.round.soft { background: var(--brand-soft); color: var(--brand); }
.r-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.r-meta span { display: inline-flex; align-items: center; gap: 6px; }
.r-meta svg { width: 18px; height: 18px; color: var(--c-ink); }
.r-meta span { padding: 6px 10px; border-radius: 12px; background: var(--c-bg); color: var(--c-ink); font-weight: 700; }
.r-sec { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.r-sec .sec-h { margin-bottom: 0; }
.r-desc { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.r-src { margin: 26px 0 0; font-size: 15px; }
.float-cta { position: fixed; z-index: 25; left: 50%; bottom: calc(18px + var(--safe-bottom)); transform: translateX(-50%); height: 54px; padding: 0 28px; border-radius: 18px; display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; box-shadow: 0 12px 28px rgba(var(--brand-rgb), 0.42); transition: background .2s var(--ease), transform .15s var(--ease); }
.float-cta svg { width: 20px; height: 20px; }
.float-cta:active { transform: translateX(-50%) scale(0.97); }
@media (hover: hover) { .float-cta:hover { background: var(--brand-hi); } }
.stepper { display: flex; align-items: center; border-radius: 12px; background: var(--bg-2); padding: 3px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; transition: background .2s var(--ease), color .2s var(--ease); }
.stepper button:active { background: #fff; color: var(--brand); }
@media (hover: hover) { .stepper button:hover { background: #fff; color: var(--brand); } }
.stepper span { font-weight: 700; font-size: 13.5px; min-width: 64px; text-align: center; }
.ings { list-style: none; margin: 0; padding: 0; }
.ings li { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ings li:last-child { border-bottom: 0; }
.ings li.grp { font-weight: 800; font-size: 15px; color: var(--c-ink); min-height: 40px; padding-top: 16px; cursor: default; border-bottom: 0; }
.tick { flex: none; width: 26px; height: 26px; border-radius: 9px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.tick svg { width: 16px; height: 16px; transform: scale(0.4); opacity: 0; transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), opacity .15s; }
.ings li.done .tick svg { transform: scale(1); opacity: 1; }
.ings li.done .tick { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.nm-wrap { flex: 1; min-width: 0; }
.ings li .n { font-size: 15.5px; }
.ings li .q { font-weight: 700; font-size: 14.5px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ings li.done .n, .ings li.done .q { text-decoration: line-through; color: var(--muted); }
.ings li .o, .steps .o { display: block; font-size: 12.5px; color: var(--muted); direction: ltr; text-align: right; unicode-bidi: plaintext; }
.ings li .note { color: var(--muted); font-size: 13.5px; }
.ings li.approx .q { color: var(--warn-ink); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; line-height: 1.65; }
.num { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--c-bg); color: var(--c-ink); font-weight: 700; font-size: 14px; display: grid; place-items: center; margin-top: 1px; }
.nut { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nut div { padding: 12px 4px; border-radius: var(--r-sm); background: var(--bg-2); text-align: center; }
.nut b { display: block; font-size: 20px; font-weight: 700; }
.nut small { font-size: 11.5px; color: var(--muted); }
.notes { padding: 14px 16px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn-ink); white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.fact { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-2); }
.fact small { display: block; font-size: 12px; color: var(--muted); }
.fact b { font-size: 22px; font-weight: 700; line-height: 1.2; }

/* profile: a card and a list of places */
.profile-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--bg-2); }
.d-who { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.d-who b { font-size: 17px; line-height: 1.25; }
.d-who small { font-size: 13px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-who .tag { margin-top: 6px; background: var(--brand-soft); color: var(--brand-hi); font-weight: 700; }
.menu-list { display: flex; flex-direction: column; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.mi { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); background: #fff; transition: background .2s var(--ease); }
.mi:last-child { border-bottom: 0; }
.mi:active { background: var(--bg-2); }
.mi > svg:first-child { width: 22px; height: 22px; color: var(--brand); flex: none; }
.mi > svg:last-child { width: 18px; height: 18px; color: #B5BBB8; margin-inline-start: auto; flex: none; }
.mi span { display: flex; flex-direction: column; font-weight: 700; font-size: 15.5px; }
.mi small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
@media (hover: hover) { .mi:hover { background: var(--bg-2); } }
.avatar { flex: none; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-hi); font-weight: 700; line-height: 1; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* review: one line that opens */
.review-info { border-radius: var(--r-sm); padding: 0 16px; background: var(--bg-2); }
.review-info summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; font-size: 15px; color: var(--brand-hi); }
.review-info summary::-webkit-details-marker { display: none; }
.review-info summary svg { width: 18px; height: 18px; flex: none; }
.review-info summary::after { content: '⌄'; margin-inline-start: auto; color: var(--muted); font-size: 18px; transition: transform 0.25s var(--ease); }
.review-info[open] summary::after { transform: rotate(180deg); }
.review-info[open] { padding-bottom: 12px; }
.review-info summary > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.warn-count { white-space: nowrap; flex: none; font-weight: 700; font-size: 13px; color: var(--warn-ink); background: var(--warn-bg); border-radius: 999px; padding: 2px 10px; }

/* notices */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn-ink); font-size: 14.5px; line-height: 1.5; }
.notice.ok { background: var(--brand-soft); color: var(--brand-hi); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* add screen */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
a.mode { text-decoration: none; }
.mode { height: 92px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.mode svg { width: 26px; height: 26px; color: var(--brand); }
.mode.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(var(--brand-rgb), 0.3); }
.mode.on svg { color: #fff; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shots img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

/* editor: ingredients and steps as calm lists; amount and unit are pills; drag by the grip */
.ed-list { border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 2px 14px; }
.ed-list:empty { display: none; }
.ed-ing { display: grid; grid-template-columns: 34px minmax(0, 1fr) 44px; column-gap: 6px; row-gap: 6px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); background: #fff; }
.ed-ing:last-child { border-bottom: 0; }
.ed-ing .nm { width: 100%; min-width: 0; min-height: 44px; resize: none; overflow: hidden; line-height: 1.4; display: block; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; padding: 4px 0; font-size: 16.5px; font-weight: 700; outline: none; transition: border-color .2s var(--ease); }
.ed-ing .nm::placeholder { color: #A5ABA8; font-weight: 400; }
.ed-ing .nm:focus { border-bottom-color: var(--brand); }
.ed-ing.grp .nm { font-size: 17px; color: var(--brand); }
.ed-ing.grp { padding-top: 16px; }
.ed-ing .qu { grid-column: 2 / -1; display: flex; gap: 8px; }
.ed-ing .pill { height: 44px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 0 12px; font-size: 16px; outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.ed-ing .pill:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12); }
.ed-ing .pill.qty { width: 84px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ed-ing select.pill { min-width: 92px; }
.ed-ing.approx .pill { border-color: var(--warn-line); background: var(--warn-bg); }
.ed-ing .orig { grid-column: 2 / -1; font-size: 12px; color: var(--muted); direction: ltr; text-align: right; unicode-bidi: plaintext; }
.ed-x { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 22px; }
.ed-step { display: grid; grid-template-columns: 34px minmax(0, 1fr) 44px; gap: 10px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); background: #fff; }
.ed-step:last-child { border-bottom: 0; }
.ed-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ed-step .st { width: 100%; min-width: 0; min-height: 52px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; padding: 4px 0; font-size: 16px; line-height: 1.55; resize: none; overflow: hidden; outline: none; transition: border-color .2s var(--ease); }
.ed-step .st:focus { border-bottom-color: var(--brand); }
.ed-step .st::placeholder { color: #A5ABA8; }
.ed-tools { display: flex; flex-direction: column; }
.ed-tools button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 18px; }
.ed-tools .ed-mic { color: var(--brand); display: flex; align-items: center; justify-content: center; }
.ed-tools .ed-mic svg { width: 19px; height: 19px; }
.grip { width: 34px; height: 44px; padding: 0; border: 0; background: transparent; color: #B5BBB8; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.grip svg { width: 18px; height: 18px; }
.grip { position: relative; }
.grip::after { content: ''; position: absolute; inset: 0 -5px; } /* a 44px touch area without widening the column */
@media (hover: hover) { .grip:hover { color: var(--brand); } }
.ed-list.sorting [data-row] { transition: transform .22s var(--ease); }
.ed-list.sorting, .ed-list.sorting * { -webkit-user-select: none; user-select: none; cursor: grabbing; }
.ed-list [data-row].dragging { position: relative; z-index: 5; transition: none var(--ease); border-radius: var(--r-sm); box-shadow: 0 0 0 10px #fff, 0 0 0 11px rgba(var(--brand-rgb), .5), 0 18px 40px rgba(20, 30, 25, .18); border-bottom-color: transparent; }
.ed-list [data-row].dragging .grip { color: var(--brand); }

/* sheets from the bottom */
.voice-sheet, .menu-sheet { position: fixed; inset: 0; display: flex; align-items: flex-end; background: rgba(20, 30, 25, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .22s var(--ease), backdrop-filter .22s var(--ease), -webkit-backdrop-filter .22s var(--ease); }
.voice-sheet.show, .menu-sheet.show { background: rgba(20, 30, 25, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition-duration: .3s; }
.voice-sheet .box, .menu-sheet .box, .loading .box { transform: translateY(100%); transition: transform .22s cubic-bezier(.4, 0, 1, 1); }
.voice-sheet.show .box, .menu-sheet.show .box, .loading.show .box { transform: none; transition: transform .38s cubic-bezier(.32, .72, 0, 1); }
.voice-sheet { z-index: 46; }
.menu-sheet { z-index: 45; }
.voice-sheet .box, .menu-sheet .box { width: 100%; max-width: 720px; margin: 0 auto; background: #fff; border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lg); }
.voice-sheet .box { padding: 24px 20px calc(22px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; max-height: 88vh; overflow: auto; }
.rec-live { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--rec); }
.rec-dot { width: 12px; height: 12px; border-radius: 6px; background: var(--rec); animation: rec-blink 1.2s ease-in-out infinite; }
@keyframes rec-blink { 50% { opacity: 0.25; } }
.rec-time { text-align: center; font-weight: 700; font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; }
.rec-time small { font-size: 16px; font-weight: 500; color: var(--muted); }
.rec-stop { align-self: center; width: 78px; height: 78px; border-radius: 50%; border: 4px solid var(--rec); background: transparent; box-shadow: 0 0 0 6px rgba(229, 72, 77, 0.12); display: flex; align-items: center; justify-content: center; transition: transform 0.12s ease; }
.rec-stop:active { transform: scale(0.94); }
.rec-stop span { width: 26px; height: 26px; border-radius: 6px; background: var(--rec); }
.voice-wait { display: flex; justify-content: center; gap: 8px; padding-top: 8px; }
.voice-wait .dot { background: var(--brand); animation: pulse 1s ease-in-out infinite; }
.voice-wait .dot:nth-child(2) { animation-delay: 0.15s; }
.voice-wait .dot:nth-child(3) { animation-delay: 0.3s; }
.voice-result textarea { min-height: 64px; }
.voice-help { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 10px; line-height: 1.55; }
.photo-pick { position: relative; height: 210px; border-radius: var(--r); overflow: hidden; background: var(--bg-3) var(--cover) center / cover; display: flex; align-items: center; justify-content: center; }
.photo-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-pick .btn { position: relative; background: rgba(255, 255, 255, 0.92); }
.menu-sheet .box { padding: 14px 16px calc(20px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 4px; }
.menu-sheet .item { height: 56px; border: 0; background: transparent; border-radius: var(--r-sm); font-weight: 700; font-size: 16px; text-align: right; padding: 0 14px; display: flex; align-items: center; gap: 14px; color: var(--ink); }
@media (hover: hover) { .menu-sheet .item:hover { background: var(--bg-2); } }
.menu-sheet .item:last-child { background: var(--bg-2); margin-top: 6px; }
.menu-sheet .item.danger { color: var(--danger); }
.menu-sheet .item svg { width: 21px; height: 21px; color: var(--brand); }
.menu-sheet .item.danger svg { color: var(--danger); }

/* cook mode */
.progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.progress span { height: 6px; border-radius: 3px; background: var(--bg-3); transition: background .3s var(--ease); }
.progress span.on { background: var(--brand); }
.cook-step { font-weight: 700; font-size: clamp(24px, 6.8vw, 34px); line-height: 1.35; }
.cook-step.from-next { animation: step-next .3s cubic-bezier(.2, .7, .2, 1) both; }
.cook-step.from-prev { animation: step-prev .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes step-next { from { opacity: 0; transform: translateX(-20px); filter: blur(3px); } }
@keyframes step-prev { from { opacity: 0; transform: translateX(20px); filter: blur(3px); } }
.check { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: var(--r-sm); background: var(--bg-2); font-size: 16px; transition: background .2s var(--ease); }
.check input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.check.on { background: var(--brand-soft); }
.check.on span { text-decoration: line-through; color: var(--muted); }
.chat { border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.bubble.me { align-self: flex-start; background: #fff; box-shadow: var(--shadow); }
.bubble.ai { align-self: flex-end; background: var(--brand-soft); color: #0B4A3A; }
.bubble small { display: block; margin-top: 4px; font-size: 12px; color: var(--brand-hi); }
.chat-in { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 6px 0 16px; border-radius: 16px; border: 1px solid var(--line-2); background: #fff; }
.chat-in:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12); }
.chat-in input { flex: 1; align-self: stretch; border: 0; outline: 0; background: transparent; font-size: 16px; min-width: 0; }
.send { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; }
.send svg { width: 18px; height: 18px; }
.chat-left { display: block; text-align: center; font-size: 12.5px; }

/* overlays */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translate(-50%, 8px); background: var(--ink); color: #fff; font-weight: 700; padding: 11px 20px; border-radius: 14px; font-size: 14.5px; z-index: 50; max-width: 90vw; text-align: center; box-shadow: var(--shadow-lg); pointer-events: none; opacity: 0; filter: blur(3px); transition: opacity .18s var(--ease), transform .18s var(--ease), filter .18s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); filter: blur(0); transition-duration: .32s; }
.loading { position: fixed; inset: 0; z-index: 40; background: var(--bg-3) url(/assets/covers/login.jpg) center / cover; display: flex; align-items: flex-end; opacity: 0; transition: opacity .2s var(--ease); }
.loading.show { opacity: 1; transition-duration: .3s; }
.loading .box { width: 100%; background: #fff; border-radius: 28px 28px 0 0; padding: 30px 24px calc(32px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); }
.loading .stage { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--muted); }
.loading .stage.on { color: var(--ink); font-weight: 700; }
.loading .stage.done { color: var(--brand); }
.dot { width: 10px; height: 10px; border-radius: 5px; background: var(--bg-3); flex: none; }
.stage.on .dot { background: var(--brand); animation: pulse 1s ease-in-out infinite; }
.stage.done .dot { background: var(--brand); }
@keyframes pulse { 50% { opacity: 0.3; } }

/* sign in */
/* first visit: a short tour with Ben (swipe between scenes), ending on the sign-in screen;
   the sign-in screen on its own (.solo) is that same last scene */
.onb { min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.onb.tour { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; }
.onb-pager { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.onb-pager::-webkit-scrollbar { display: none; }
.onb-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior-y: contain; padding-top: calc(12px + var(--safe-top)); }
.onb.solo .onb-slide { min-height: 100vh; min-height: 100dvh; overflow: visible; }
.onb-stage { position: relative; flex: 1; min-height: 300px; margin: 0 var(--pad); border-radius: 32px; background: var(--c-bg); display: grid; place-items: center; overflow: hidden; }
.onb-stage.small { flex: none; min-height: 0; height: 240px; }
.onb-copy { padding: 26px var(--pad) calc(104px + var(--safe-bottom)); text-align: center; }
.onb-copy h1 { font-size: clamp(26px, 7.6vw, 32px); font-weight: 900; line-height: 1.12; text-wrap: balance; }
.onb-copy p { margin: 10px auto 0; max-width: 30ch; color: var(--muted); font-size: 16px; line-height: 1.5; text-wrap: balance; }
.onb-auth { width: 100%; max-width: 520px; margin: 0 auto; padding: 24px var(--pad) calc(36px + var(--safe-bottom)); }
.onb-auth h1 { font-size: 30px; font-weight: 900; }
.onb-skip { position: absolute; z-index: 3; top: calc(22px + var(--safe-top)); inset-inline-end: calc(var(--pad) + 10px); height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, 0.88); color: var(--ink); font-weight: 700; font-size: 14px; transition: opacity .2s var(--ease); }
.onb-bar { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px var(--pad) calc(16px + var(--safe-bottom)); background: linear-gradient(rgba(255, 255, 255, 0), #fff 40%); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.onb-bar .btn { min-width: 128px; }
.onb.at-end .onb-bar { opacity: 0; transform: translateY(16px); pointer-events: none; }
.onb.at-end .onb-skip { opacity: 0; pointer-events: none; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line-2); transition: width .3s var(--ease), background .3s var(--ease); }
.onb-dots i.on { width: 24px; background: var(--brand); }

/* the scene: Ben in a round frame, props around him */
.onb-art { position: relative; width: var(--s); height: var(--s); --s: min(70vw, 320px, 42vh); --s: min(70vw, 320px, 42dvh); }
.onb-stage.small .onb-art { --s: 196px; }
.onb-ben { position: absolute; top: 12%; left: 12%; width: 76%; height: 76%; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.55), var(--shadow-lg); }
.onb-ben img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.onb-ben.onb-nophoto { background: rgba(255, 255, 255, 0.7); box-shadow: none; border: 3px dashed var(--c-ink); display: flex; align-items: flex-end; justify-content: center; }
.onb-sil { position: absolute; inset: 14% 10% 0; width: 80%; height: 86%; fill: var(--c-ink); opacity: 0.18; }
.onb-ph-tag { position: relative; margin-bottom: 14px; padding: 4px 10px; border-radius: 10px; background: #fff; color: var(--c-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.onb-stage.small .onb-ph-tag { display: none; }

.onb-p, .onb-bub, .onb-step, .onb-timer, .onb-plus, .onb-wave { position: absolute; z-index: 1; opacity: 0; transform: translateY(10px) scale(.9); }
.on .onb-p, .on .onb-bub, .on .onb-step, .on .onb-timer, .on .onb-plus, .on .onb-wave { animation: onb-pop .5s var(--spring) var(--d, .15s) forwards; }
@keyframes onb-pop { to { opacity: 1; transform: none; } }

/* the playful moment: the chef hat drops onto Ben */
.onb-hat { position: absolute; z-index: 2; width: 46%; left: 27%; top: -9%; opacity: 0; transform: translateY(-150%) rotate(-14deg); filter: drop-shadow(0 6px 10px rgba(20, 30, 25, .16)); }
.on .onb-hat { animation: hat-drop .75s var(--spring) .3s forwards; }
@keyframes hat-drop { 0% { opacity: 0; transform: translateY(-150%) rotate(-14deg); } 30% { opacity: 1; } 70% { transform: translateY(5%) rotate(5deg); } 100% { opacity: 1; transform: none; } }

/* recipes: little recipe cards */
.onb-p { width: 92px; padding: 8px; display: flex; flex-direction: column; gap: 5px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); }
.onb-p b { display: grid; place-items: center; height: 44px; border-radius: 11px; background: var(--c-bg); font-size: 24px; }
.onb-p i { height: 6px; border-radius: 3px; background: var(--line-2); }
.onb-p i:last-child { width: 60%; }
.onb-p.p1 { top: -6%; right: -14%; --d: .15s; }
.onb-p.p2 { top: 42%; left: -12%; --d: .3s; }
.onb-p.p3 { bottom: -4%; right: 6%; --d: .45s; }
.onb-p.p4 { width: auto; top: 4%; right: -12%; flex-direction: row; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; font-size: 13px; font-weight: 700; white-space: nowrap; --d: .5s; }
.onb-p.p4 b { width: 40px; height: 40px; font-size: 22px; }

/* chat with Ben */
.onb-bub { padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-lg); }
.onb-bub.me { border-radius: 16px 16px 16px 4px; background: var(--brand); color: #fff; }
.onb-bub.b1 { top: 30%; right: -14%; --d: .95s; }
.onb-bub.b2 { top: 54%; left: -14%; --d: 1.45s; }
.onb-bub.b3 { bottom: 2%; right: -4%; --d: 1.95s; }

/* step by step */
.onb-step { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 14px; background: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-lg); }
.onb-step span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 13px; }
.onb-step span svg { width: 15px; height: 15px; }
.onb-step.s3 span { background: var(--c-bg); color: var(--c-ink); }
.onb-step.s1 { top: 6%; right: -12%; --d: .15s; }
.onb-step.s2 { top: 44%; left: -16%; --d: .35s; }
.onb-step.s3 { bottom: 4%; right: -6%; --d: .55s; }
.onb-timer { top: -2%; left: 0; padding: 6px 12px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; --d: .75s; }

/* add your own */
.onb-plus { bottom: 0; left: 0; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 44px; font-weight: 400; line-height: 1; box-shadow: 0 0 0 7px #fff, 0 14px 30px rgba(var(--brand-rgb), .45); --d: .2s; }

/* hello (sign in) */
.onb-wave { top: 30%; right: -8%; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 28px; box-shadow: var(--shadow-lg); --d: .9s; }

.btn.google { background: #fff; border-color: var(--line-2); color: #1F1F1F; }
.btn.apple { background: #000; border-color: #000; color: #fff; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.legacy { font-size: 14px; color: var(--muted); }
.legacy summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }

/* admin */
.u-counts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.u-counts::-webkit-scrollbar { display: none; }
.u-counts .fact { flex: none; min-width: 100px; }
.u-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.u-card.blocked { box-shadow: none; border-style: dashed; }
.u-card.blocked .avatar { filter: grayscale(1); opacity: 0.6; }
.u-card .d-who b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.u-card .d-who .tag { margin-top: 0; height: 22px; font-size: 11.5px; }
.u-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.u-meta div { min-width: 0; }
.u-meta dt { font-size: 11.5px; color: var(--muted); }
.u-meta dd { margin: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 12px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.lv-row .input { min-height: 46px; font-weight: 700; }
.lv-tools { display: flex; }
.lv-tools button { width: 36px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 16px; }
.lv-tools button:disabled { opacity: 0.25; }
.lv-tools [data-del] { font-size: 22px; }
.lv-use { grid-column: 2 / -1; font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } }

/* moving between screens: a short slide and fade, like an app (RTL: forward comes in from the left) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
html[data-dir="in"]::view-transition-old(root) { animation-name: vt-fade-out; }
html[data-dir="in"]::view-transition-new(root) { animation-name: vt-from-left; }
html[data-dir="out"]::view-transition-old(root) { animation-name: vt-fade-out; }
html[data-dir="out"]::view-transition-new(root) { animation-name: vt-from-right; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-from-left { from { opacity: 0; transform: translateX(-28px); } }
@keyframes vt-from-right { from { opacity: 0; transform: translateX(28px); } }

/* home: sections and results trade places with a short fade */
#homeBody.swap { animation: swap-in .24s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes swap-in { from { opacity: 0; transform: translateY(6px); } }

/* add a recipe: a panel that rises over the current screen, four fruit-coloured choices, each step inside it */
.add-sheet { position: fixed; inset: 0; z-index: 47; display: flex; align-items: flex-end; background: rgba(31, 26, 23, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .22s var(--ease), backdrop-filter .22s var(--ease), -webkit-backdrop-filter .22s var(--ease); }
.add-sheet.show { background: rgba(31, 26, 23, 0.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition-duration: .3s; }
.add-sheet .box { width: 100%; max-width: 640px; margin: 0 auto; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 30px 30px 0 0; padding: 10px 20px calc(22px + var(--safe-bottom)); box-shadow: 0 -10px 40px rgba(31, 26, 23, 0.18); transform: translateY(100%); transition: transform .22s cubic-bezier(.4, 0, 1, 1); }
.add-sheet.show .box { transform: none; transition: transform .42s cubic-bezier(.32, .72, 0, 1); }
.add-sheet .grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 14px; }
.add-body { display: flex; flex-direction: column; gap: 14px; }
.add-body.step-in { animation: add-step .28s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes add-step { from { opacity: 0; transform: translateY(8px); } }
.add-title { font-size: 26px; font-weight: 900; }
.add-lead { margin: -6px 0 2px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.add-opt { position: relative; min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 3px; padding: 16px; border: 0; border-radius: 24px; background: var(--c-bg); color: var(--c-ink); text-align: right; text-decoration: none; font: inherit; cursor: pointer; transition: transform .16s var(--ease), box-shadow .2s var(--ease); }
.add-opt:active { transform: scale(0.97); }
@media (hover: hover) { .add-opt:hover { box-shadow: var(--shadow-lg); } }
.add-opt .ao-ico { position: absolute; top: 16px; inset-inline-start: 16px; }
.ao-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.75); color: var(--c-ink); }
.ao-ico svg { width: 26px; height: 26px; }
.add-opt b { font-size: 18px; font-weight: 800; line-height: 1.2; }
.add-opt small { font-size: 13px; font-weight: 500; line-height: 1.35; }
.add-note { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); color: var(--ink-2); font-size: 14px; }
.add-note svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.add-head { display: flex; align-items: center; gap: 12px; color: var(--c-ink); }
.add-head .ao-ico { background: var(--c-bg); width: 44px; height: 44px; border-radius: 14px; }
.add-head .ao-ico svg { width: 22px; height: 22px; }
.add-head .add-title { font-size: 24px; color: var(--ink); }
.add-hint { margin: -4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.big-field { position: relative; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 8px 0 16px; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--bg-2); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.big-field:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12); }
.big-field input, .big-field textarea { flex: 1; min-width: 0; align-self: stretch; border: 0; outline: 0; background: transparent; font-size: 17px; }
.big-field.area { padding: 14px 16px; }
.big-field textarea { min-height: 240px; resize: none; line-height: 1.6; }
.paste { flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 13px; background: #fff; color: var(--brand-hi); font-weight: 700; box-shadow: var(--shadow); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shot { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--bg-3); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1; }
.shot-x { position: absolute; top: 6px; left: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: var(--shadow); }
.shot-x::after { content: ''; position: absolute; inset: -7px; }
.shot-x svg { width: 14px; height: 14px; }
.shot.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed var(--c-ink); background: var(--c-bg); color: var(--c-ink); font-weight: 700; font-size: 13.5px; cursor: pointer; text-align: center; padding: 8px; }
.shot.add svg { width: 26px; height: 26px; }
.add-go { height: 58px; font-size: 17px; border-radius: 18px; margin-top: 2px; }
.add-go svg { width: 20px; height: 20px; }
button.mi { width: 100%; border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: right; cursor: pointer; }
.loading { z-index: 48; }

/* gestures */
.menu-sheet .grab, .voice-sheet .grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 10px; }
.sheet-title { margin: 0 0 6px; padding: 0 14px; font-weight: 800; font-size: 17px; color: var(--ink); }
.add-sheet .box, .menu-sheet .box, .voice-sheet .box { touch-action: pan-y; will-change: transform; }
a.rc { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
a.rc.pressing .ph-wrap { transform: scale(0.95); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.pull { position: fixed; z-index: 35; top: calc(4px + var(--safe-top)); left: 50%; width: 40px; height: 40px; margin-top: -40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; }
.pull svg { width: 22px; height: 22px; }
.pull.spin svg { animation: pull-spin .8s linear infinite; }
@keyframes pull-spin { to { transform: rotate(-360deg); } }

/* kitchen chat: the chef card on home and the chat panel */
.chef-card { width: 100%; display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border: 0; border-radius: 22px; background: var(--c-bg); color: var(--c-ink); text-align: right; font: inherit; cursor: pointer; transition: transform .16s var(--ease), box-shadow .2s var(--ease); }
.chef-card:active { transform: scale(0.98); }
@media (hover: hover) { .chef-card:hover { box-shadow: var(--shadow-lg); } }
.chef-card .cf-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.chef-card b { font-size: 17px; font-weight: 800; }
.chef-card small { font-size: 13px; font-weight: 500; }
.chef-card > svg { width: 18px; height: 18px; flex: none; }
.k-ico { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: #fff; color: var(--c-ink, var(--brand)); box-shadow: var(--shadow); }
.k-ico svg { width: 24px; height: 24px; }
.kitchen .box { height: 88vh; display: flex; flex-direction: column; overflow: hidden; padding-bottom: calc(14px + var(--safe-bottom)); }
.k-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); --c-ink: #7F5B00; }
.k-head h2 { font-size: 21px; font-weight: 900; }
.k-head small { color: var(--muted); font-size: 13px; }
.k-head .btn { margin-inline-start: auto; }
.k-msgs { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 14px 2px; }
.k-msgs .bubble { max-width: 86%; font-size: 15.5px; }
.k-ai { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; animation: add-step .28s cubic-bezier(.2, .7, .2, 1) both; }
.k-msgs > .bubble.me { animation: add-step .2s cubic-bezier(.2, .7, .2, 1) both; }
.k-picks { display: flex; flex-direction: column; gap: 8px; width: 92%; }
.k-pick { display: flex; align-items: center; gap: 12px; padding: 8px; padding-inline-end: 12px; border-radius: 18px; background: var(--c-bg); color: var(--c-ink); text-decoration: none; transition: transform .16s var(--ease); }
.k-pick:active { transform: scale(0.98); }
.k-pick .ph { width: 64px; height: 64px; flex: none; aspect-ratio: 1; border-radius: 13px; }
.k-pick > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.k-pick b { font-size: 15px; font-weight: 800; color: var(--ink); }
.k-pick small { font-size: 13px; line-height: 1.4; }
.k-pick > svg { width: 16px; height: 16px; flex: none; }
.k-idea { width: 92%; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }
.k-idea b { color: var(--ink); }
.k-hello { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.k-starters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; width: 100%; }
.k-starters .chip { height: auto; min-height: 44px; padding: 8px 14px; white-space: normal; text-align: right; }
.k-typing { display: flex; gap: 5px; padding: 14px 16px; }
.k-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1s ease-in-out infinite; }
.k-typing i:nth-child(2) { animation-delay: .15s; } .k-typing i:nth-child(3) { animation-delay: .3s; }
.k-in { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 10px; border-radius: 20px; border: 1.5px solid var(--line-2); background: var(--bg-2); transition: border-color .2s var(--ease), background .2s var(--ease); }
.k-in:focus-within { background: #fff; border-color: var(--brand); }
.k-in textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; padding: 10px 6px; border: 0; outline: 0; background: transparent; resize: none; font-size: 16px; line-height: 1.4; }
.kitchen .chat-left { margin-top: 6px; }

/* searching: only the field and its results */
.home.searching .chef-card, .home.searching .hsec:has(#cats) { display: none; }
.home.searching #homeBody .hsec:first-child { margin-top: 18px; }
.home.searching #homeBody { min-height: 100vh; } /* room to lift the field to the top even with one result */

/* levels: the chat switch; a locked chef card */
.lv-chat { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.lv-chat span { display: flex; flex-direction: column; font-weight: 700; font-size: 14.5px; }
.lv-chat small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; margin: 0; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s var(--ease); }
.switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: transform .22s var(--ease); }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(-20px); }
.switch:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.chef-card.locked { background: var(--bg-2); color: var(--ink-2); }
.chef-card.locked .k-ico { color: var(--muted); }

/* premium: the panel, the profile card, the tag in the users list */
.pro-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 10px; background: #FFF2C2; color: #7F5B00; font-weight: 800; font-size: 13px; }
.pro-badge svg { width: 16px; height: 16px; }
.perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; }
.perks .ao-ico { --c-ink: #7F5B00; flex: none; width: 46px; height: 46px; border-radius: 15px; background: #FFF2C2; }
.perks .ao-ico svg { width: 22px; height: 22px; }
.perks li > span:last-child { display: flex; flex-direction: column; }
.perks b { font-size: 16px; font-weight: 800; }
.perks small { color: var(--muted); font-size: 13.5px; }
.pro-price { margin: 6px 0 0; text-align: center; font-size: 24px; font-weight: 900; }
.sub-card, .sub-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: var(--r); background: #FFF8DA; color: var(--ink); text-align: right; font: inherit; border: 0; }
.sub-card small, .sub-cta small { color: #7F5B00; font-size: 13.5px; }
.sub-card .btn { margin-top: 6px; }
.sub-cta { position: relative; width: 100%; cursor: pointer; padding-inline-end: 44px; }
.sub-cta > svg:last-child { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #7F5B00; }
.sub-cta b { font-size: 16px; font-weight: 800; }
.tag.pay { background: #FFF2C2; color: #7F5B00; }
/* tour photos are AI-edited: say so on every one; the hat lands on each photo's head */
.onb-ai { position: absolute; z-index: 2; bottom: 12px; inset-inline-start: 12px; padding: 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.9); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.art-hello .onb-hat { top: 2%; left: 29%; width: 42%; }
.art-chef .onb-hat { top: 1%; }
.art-hello .onb-hat { top: 5%; }

/* the tour, full screen: Ben's photo fills the slide edge to edge, the words sit on a dark fade at the bottom */
.onb-ben { inset: 0; top: 0; left: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.onb-ben img { object-position: 50% 20%; }
.onb-hat { display: none; }
.onb.tour .onb-slide:not(.onb-last) { position: relative; padding-top: 0; justify-content: flex-end; background: #111; }
.onb.tour .onb-slide:not(.onb-last) .onb-stage { position: absolute; inset: 0; margin: 0; border-radius: 0; min-height: 0; align-items: end; padding-bottom: calc(262px + var(--safe-bottom)); }
.onb.tour .onb-slide:not(.onb-last) .onb-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 46%, rgba(0,0,0,.55) 66%, rgba(0,0,0,.88) 100%); }
.onb.tour .onb-slide:not(.onb-last) .onb-art { z-index: 1; width: min(78vw, 320px); height: 150px; }
.onb.tour .onb-slide:not(.onb-last) .onb-copy { position: relative; z-index: 1; }
.onb.tour .onb-slide:not(.onb-last) .onb-copy h1 { color: #fff; }
.onb.tour .onb-slide:not(.onb-last) .onb-copy p { color: rgba(255, 255, 255, 0.84); }
.onb.tour .onb-slide:not(.onb-last) .onb-ai { top: calc(22px + var(--safe-top)); bottom: auto; inset-inline-start: var(--pad); background: rgba(0, 0, 0, 0.45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.onb.tour:not(.at-end) .onb-bar { background: none; }
.onb.tour:not(.at-end) .onb-dots i { background: rgba(255, 255, 255, 0.4); }
.onb.tour:not(.at-end) .onb-dots i.on { background: #fff; }
.onb-stage.small { height: 280px; margin-top: 0; }
.onb.tour .onb-slide:not(.onb-last) .onb-step.s2, .onb.tour .onb-slide:not(.onb-last) .onb-bub.b2 { left: 0; }
.onb.tour .onb-slide:not(.onb-last) .onb-p.p2 { left: -4%; }

/* the tour, alive: stories-style bars on top, the photo slowly zooms, the words rise in, cards float, the chef types */
.onb-prog { position: absolute; z-index: 4; top: calc(10px + var(--safe-top)); inset-inline: var(--pad); display: flex; gap: 5px; pointer-events: none; transition: opacity .25s var(--ease); }
.onb-prog i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.onb-prog b { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: right; }
.onb-prog i.done b { transform: none; }
.onb-prog i.now b { animation: onb-bar 6s linear forwards; }
.onb.held .onb-prog i.now b { animation-play-state: paused; }
@keyframes onb-bar { to { transform: none; } }
.onb.at-end .onb-prog { opacity: 0; }
.onb-dots { display: none; }
.onb-bar { justify-content: flex-end; }
.onb-bar .btn { min-width: 140px; }
.onb.tour .onb-skip, .onb.tour .onb-slide:not(.onb-last) .onb-ai { top: calc(26px + var(--safe-top)); }

.onb-slide.on .onb-ben img { animation: onb-zoom 9s cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes onb-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.onb-copy h1, .onb-copy p, .onb-chips li { opacity: 0; transform: translateY(16px); }
.onb-slide.on .onb-copy h1, .onb-slide.on .onb-copy p, .onb-slide.on .onb-chips li { animation: onb-rise .6s cubic-bezier(.2, .8, .2, 1) var(--rd, .1s) forwards; }
.onb-slide.on .onb-copy h1 { --rd: .1s; } .onb-slide.on .onb-copy p { --rd: .22s; }
.onb-chips li:nth-child(1) { --rd: .38s; } .onb-chips li:nth-child(2) { --rd: .48s; } .onb-chips li:nth-child(3) { --rd: .58s; }
@keyframes onb-rise { to { opacity: 1; transform: none; } }
.onb-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.onb-chips li { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 17px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; font-size: 13.5px; font-weight: 700; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.onb-copy { padding-bottom: calc(96px + var(--safe-bottom)); }
.onb.tour .onb-slide:not(.onb-last) .onb-stage { padding-bottom: calc(300px + var(--safe-bottom)); }

/* cards: pop in, then drift gently (translate, so it adds to the pop's transform) */
.on .onb-p, .on .onb-bub:not(.typing), .on .onb-step, .on .onb-timer, .on .onb-src { animation: onb-pop .5s var(--spring) var(--d, .15s) forwards, onb-float 3.4s ease-in-out calc(var(--d, .15s) + .5s) infinite alternate; }
@keyframes onb-float { from { translate: 0 0; } to { translate: 0 -7px; } }
.onb-p.p2 { --f: 1; } .onb-p.p3 { animation-duration: .5s, 4s; }
.onb-p { width: 124px; padding: 7px; flex-direction: row; align-items: center; gap: 8px; }
.onb-p b { width: 40px; height: 40px; flex: none; font-size: 22px; }
.onb-p span { font-size: 13px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.onb-p small { display: none; }
.onb-p:not(.p4) { flex-wrap: wrap; }
.onb-p:not(.p4) small { display: block; width: 100%; margin-top: -2px; padding-inline-start: 48px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.onb-p:not(.p4) span { flex: 1; }

/* the chef is typing… then answers */
.onb-bub.typing { bottom: 2%; right: -4%; display: flex; gap: 4px; padding: 12px 14px; }
.onb-bub.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: onb-dot .9s ease-in-out infinite; }
.onb-bub.typing i:nth-child(2) { animation-delay: .15s; } .onb-bub.typing i:nth-child(3) { animation-delay: .3s; }
.on .onb-bub.typing { animation: onb-typing 1s ease 1.45s forwards; }
@keyframes onb-typing { 0% { opacity: 0; transform: translateY(10px) scale(.9); } 20%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9); } }
@keyframes onb-dot { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-4px); opacity: 1; } }
.onb-bub.b3 { --d: 2.45s; }

/* adding: the sources fly toward the + */
.onb-src { position: absolute; z-index: 1; padding: 8px 12px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px) scale(.9); }
.onb-src.r1 { top: 34%; right: 0; --d: .55s; }
.onb-src.r2 { top: 62%; right: 22%; --d: .8s; }
.on .onb-plus { animation: onb-pop .5s var(--spring) .2s forwards, onb-beat 2.4s ease-in-out 1.2s infinite; }
@keyframes onb-beat { 0%, 100% { scale: 1; } 12% { scale: 1.1; } 24% { scale: 1; } }
.onb.tour .onb-slide:not(.onb-last) .onb-plus { bottom: 4%; left: 2%; }
.onb.tour .onb-slide:not(.onb-last) .onb-p.p4 { top: -6%; right: 0; }

@media (prefers-reduced-motion: reduce) { .onb-copy h1, .onb-copy p, .onb-chips li { opacity: 1; transform: none; } }

/* the tour's recipe cards show Ben's real dishes */
.onb-p b.ph { padding: 0; overflow: hidden; background: var(--bg-3); }
.onb-p b.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onb-p { width: 150px; }
.onb-p.p4 { width: auto; }
.onb-p.p4 b.ph { width: 40px; height: 40px; }
.onb-p.p5 { width: auto; flex-direction: row; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; white-space: nowrap; top: -30%; left: 0; --d: 3s; }
.onb-p.p5 b.ph { width: 36px; height: 36px; }
.onb.tour .onb-slide:not(.onb-last) .onb-p.p3 { bottom: 26%; right: 30%; }
.onb.tour .onb-slide:not(.onb-last) .onb-p.p1 { top: -14%; }
.onb.tour .onb-slide:not(.onb-last) .onb-p.p1 { top: 0; right: 0; left: auto; bottom: auto; }
.onb.tour .onb-slide:not(.onb-last) .onb-p.p2 { top: 0; left: 0; right: auto; bottom: auto; }
.onb.tour .onb-slide:not(.onb-last) .onb-p.p3 { top: 58%; right: 26%; left: auto; bottom: auto; }
.onb.tour .onb-slide:not(.onb-last) .onb-stage { padding-bottom: calc(328px + var(--safe-bottom)); }
.onb.tour .onb-slide:not(.onb-last) .art-book .onb-p { width: 140px; }
.onb.tour .onb-slide:not(.onb-last) .onb-p.p3 { top: 50%; right: calc(50% - 70px); }

/* a dark veil over every photo that carries words, for steady contrast */
.hh-photos::after, .r-hero::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); pointer-events: none; }
.onb.tour .onb-slide:not(.onb-last) .onb-stage::after { background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.22) 24%, rgba(0,0,0,.22) 44%, rgba(0,0,0,.66) 64%, rgba(0,0,0,.92) 100%); }
/* the greeting sits in the middle of the photo (the part above the search field), not up at the top */
.home-hero .hh-cap { top: calc(50% + var(--safe-top) / 2 - 16px); transform: translateY(-50%); }

/* icons, never typed characters or emoji (Roei's rule) */
.onb-chips li span { display: inline-flex; }
.onb-chips li svg { width: 16px; height: 16px; }
.onb-src { display: inline-flex; align-items: center; gap: 6px; }
.onb-src svg { width: 16px; height: 16px; color: var(--brand); }
.onb-plus svg { width: 38px; height: 38px; }
.onb-timer { display: inline-flex; align-items: center; gap: 5px; }
.onb-timer svg { width: 15px; height: 15px; }
.onb-ai { display: inline-flex; align-items: center; gap: 5px; }
.onb-ai svg { width: 13px; height: 13px; }
.crumb { display: inline-flex; vertical-align: middle; }
.crumb svg { width: 14px; height: 14px; }
/* the home photo melts into the white page instead of ending on a hard line (the search field floats over the seam) */
.home-hero .r-glass { z-index: 1; height: 42%; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.04) 18%, rgba(255, 255, 255, 0.14) 34%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 255, 255, 0.55) 64%, rgba(255, 255, 255, 0.78) 78%, rgba(255, 255, 255, 0.94) 90%, #fff 100%); }

/* tour layout, final: Ben's photo fills the top of the screen edge to edge and melts into white;
   the words sit on the clean white below him (never over him), the little cards ride the seam */
.onb.tour .onb-slide:not(.onb-last) { background: var(--bg); justify-content: flex-end; }
.onb.tour .onb-slide:not(.onb-last) .onb-stage { inset: 0 0 auto 0; height: 54%; height: 54dvh; padding: 0; align-items: end; justify-items: center; }
.onb.tour .onb-slide:not(.onb-last) .onb-stage::after { background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.12) 18%, rgba(0,0,0,0) 34%, rgba(255,255,255,0) 66%, rgba(255,255,255,.55) 82%, rgba(255,255,255,.9) 93%, #fff 100%); }
.onb.tour .onb-slide:not(.onb-last) .onb-ben img { object-position: 50% 18%; }
.onb.tour .onb-slide:not(.onb-last) .onb-art { height: 120px; margin-bottom: -40px; }
.onb.tour .onb-slide:not(.onb-last) .onb-copy { padding-top: 0; }
.onb.tour .onb-slide:not(.onb-last) .onb-copy h1 { color: var(--ink); }
.onb.tour .onb-slide:not(.onb-last) .onb-copy p { color: var(--muted); }
.onb.tour .onb-slide:not(.onb-last) .onb-chips li { background: var(--bg-2); border-color: var(--line); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.onb.tour .onb-slide:not(.onb-last) .onb-chips li svg { color: var(--brand); }
.onb.tour:not(.at-end) .onb-bar { background: linear-gradient(rgba(255,255,255,0), #fff 40%); }
.onb.tour .onb-slide:not(.onb-last) .onb-stage { overflow: visible; z-index: 1; }

/* avatars: the letter under the photo; the profile tab shows who is signed in */
.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; }
.tab-me .avatar { width: 28px; height: 28px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px transparent; transition: box-shadow .2s var(--ease); }
.tab-me.on .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--brand); }
.tab-me span:last-child { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the bottom of the home photo: frosted glass that grows gradually (blur through a soft mask), not a white fade */
.home-hero .r-glass { height: 46%; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.16) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.8) 60%, #000 85%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.8) 60%, #000 85%); }
.home-hero .r-glass { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.18) 80%, rgba(255, 255, 255, 0.6) 93%, #fff 100%); }

/* the chef's face when he speaks as Ben: his photo, cut out, over its world */
.k-face { position: relative; overflow: hidden; padding: 0; border-radius: 50%; }
.k-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.5); transform-origin: 50% 22%; }

/* the chef saved something: a quiet line under his answer */
.k-mem { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 10px; border-radius: 10px; background: var(--bg-2); color: var(--muted); font-size: 12.5px; }
.k-mem svg { width: 14px; height: 14px; color: var(--brand); flex: none; }
.mem-text { margin: 0; max-height: 46vh; overflow: auto; white-space: pre-wrap; font: inherit; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); background: var(--bg-2); border-radius: 14px; padding: 12px 14px; }
.mem-text h3 { margin: 12px 0 4px; font-size: 15px; font-weight: 800; color: var(--ink); }
.mem-text h3:first-child { margin-top: 0; }
.mem-text ul { margin: 0; padding: 0 18px 0 0; }
.mem-text li { margin: 2px 0; }
.mem-text p { margin: 4px 0; }
.mem-text { white-space: normal; }

/* the dishes alive: richer colour and crisp contrast; the dark only where the words are (a soft pool behind the
   greeting), a light veil elsewhere, a gentle shade at the top for the clock */
.hh-photo { filter: saturate(1.2) contrast(1.08) brightness(1.03); }
.home-hero::before { height: 26%; background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.16) 55%, rgba(0, 0, 0, 0) 100%); }
.hh-photos::after { background: radial-gradient(ellipse 78% 34% at 50% 44%, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.26) 45%, rgba(0, 0, 0, 0.06) 78%, rgba(0, 0, 0, 0.04) 100%); }
.hh-cap h1 { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3); }
.hh-cap small { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }

/* chef conversations: the history list */
.k-acts { margin-inline-start: auto; display: flex; gap: 4px; }
.k-acts .icon-btn.on { background: var(--brand-soft); color: var(--brand-hi); }
.kitchen.k-history .k-in, .kitchen.k-history .chat-left { display: none; }
.k-hist { display: flex; flex-direction: column; gap: 6px; }
.k-hist-t { font-size: 15px; font-weight: 800; margin: 2px 0 6px; }
.k-row { display: flex; align-items: center; gap: 4px; border-radius: 14px; background: var(--bg-2); }
.k-row.on { box-shadow: inset 0 0 0 1.5px var(--brand); }
.k-open { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 0; background: none; font: inherit; color: var(--ink); text-align: right; cursor: pointer; }
.k-open span { width: 100%; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-open small { color: var(--muted); font-size: 12.5px; }

/* recipe page: who sees it, as a quiet line; the quantity control with words */
.r-seen { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.r-seen svg { width: 16px; height: 16px; flex: none; }
.r-seen.draft { color: #9A5B00; }
.r-seen.pro { color: #7F5B00; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 14px; padding: 10px 10px 10px 14px; padding-inline-start: 14px; border-radius: 16px; background: var(--bg-2); }
.qty-l { display: flex; flex-direction: column; }
.qty-l b { font-size: 15px; font-weight: 800; }
.qty-l small { color: var(--muted); font-size: 12.5px; }
.qty .stepper { background: #fff; box-shadow: var(--shadow); }
.qty .stepper span { min-width: 78px; font-size: 14px; }
.qty .stepper button { display: grid; place-items: center; color: var(--brand); }
.qty .stepper svg { width: 20px; height: 20px; }
.r-src a { display: inline-flex; align-items: center; gap: 6px; }
.r-src svg { width: 16px; height: 16px; }

/* "בהשראת ...": a quiet credit under the recipe's name */
.r-insp { margin: 6px 0 0; color: rgba(255, 255, 255, 0.92); font-size: 14.5px; font-weight: 500; font-style: italic; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }

/* home categories: a grid in front of the eyes, 4 per row (3 on narrow phones), no sideways scrolling */
.home .cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; overflow: visible; margin: 0; padding: 2px 0 6px; }
@media (max-width: 359px) { .home .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home .cat { width: auto; height: auto; aspect-ratio: auto; min-height: 104px; padding: 12px 6px 10px; align-items: center; justify-content: flex-start; gap: 6px; border-radius: 20px; text-align: center; }
.home .cat .cc-ico { position: static; width: 46px; height: 46px; border-radius: 15px; }
.home .cat .ico { width: 26px; height: 26px; }
.home .cat .cc-name { font-size: 13.5px; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.home .cat small { font-size: 11.5px; line-height: 1.2; }
.home .cat .cc-go { display: none; }
.home .cat.soon small { margin-top: 0; padding: 1px 7px; font-size: 11px; }
.home .cat:active { transform: scale(0.96); }
/* a short last row stretches to fill: two left over share the row, three take a third each */
@media (min-width: 360px) {
  .home .cats > :nth-child(4n+1):nth-last-child(2), .home .cats > :nth-child(4n+1):nth-last-child(2) ~ * { grid-column: span 2; flex-direction: row; justify-content: center; min-height: 72px; gap: 10px; text-align: right; }
  .home .cats > :nth-child(4n+1):nth-last-child(2) .cc-name, .home .cats > :nth-child(4n+1):nth-last-child(2) ~ * .cc-name { text-align: right; }
}
/* one quiet colour for every category, like the empty ones: light frame, grey icon tile, dark name */
.home .cat, .home .cat.soon { background: transparent; border: 1.5px dashed var(--line-2); box-shadow: none; color: var(--ink); }
.home .cat .cc-ico { background: var(--bg-3); }
.home .cat .ico { color: #8A8F8C; }
.home .cat .cc-name { color: var(--ink); }
.home .cat.soon .cc-name { color: var(--muted); }
.home .cat.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.home .cat.on .cc-name { color: #fff; }
.home .cat.on .cc-ico { background: rgba(255, 255, 255, 0.14); }
.home .cat.on .ico { color: #fff; }

/* filled category icons and their small motions (each card a little out of step with the next) */
.ico-fill { --cut: var(--bg-3); }
.ico-fill .body { fill: currentColor; }
.ico-fill .cut { fill: var(--cut); }
.ico-fill .cut-line { fill: none; stroke: var(--cut); stroke-width: 1.3; stroke-linecap: round; }
.ico-fill .st { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.home .cat .ico.ico-fill { color: #6F7572; stroke: none; width: 28px; height: 28px; overflow: visible; }
.home .cat.soon .ico.ico-fill { color: #A3A8A5; }
.home .cat.on .ico-fill { --cut: var(--ink); }
.home .cat:nth-child(2n) .ico-fill * { animation-delay: -1.3s; }
.home .cat:nth-child(3n) .ico-fill * { animation-delay: -2.2s; }
.ico-fill .st { animation: ico-steam 2.6s ease-in-out infinite; }
.ico-fill .sway { transform-origin: 20% 85%; animation: ico-sway 3.6s ease-in-out infinite; }
.ico-fill .fl { transform-origin: 50% 90%; transform-box: fill-box; animation: ico-flicker 1.6s ease-in-out infinite; }
.ico-fill .bob { animation: ico-bob 3s ease-in-out infinite; }
.ico-fill .lid { animation: ico-lid 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 100%; }
.ico-fill .bb { animation: ico-bubble 2.4s ease-in infinite; }
.ico-fill .b2 { animation-delay: -.8s; } .ico-fill .b3 { animation-delay: -1.6s; }
.ico-fill .tilt { transform-origin: 50% 90%; animation: ico-tilt 4s ease-in-out infinite; }
@keyframes ico-steam { 0%, 100% { opacity: .25; transform: translateY(1px); } 50% { opacity: 1; transform: translateY(-1.4px); } }
@keyframes ico-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes ico-flicker { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.88, 1.1); } 60% { transform: scale(1.06, .94); } }
@keyframes ico-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-1.2px) rotate(3deg); } }
@keyframes ico-lid { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-10deg) translateY(-.6px); } 90% { transform: rotate(0); } }
@keyframes ico-bubble { 0% { transform: translateY(1.5px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-5px); opacity: 0; } }
@keyframes ico-tilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.ico-fill .sway, .ico-fill .bob, .ico-fill .tilt { transform-box: fill-box; }

/* chef chat: the microphone */
.k-mic { flex: none; width: 44px; height: 44px; border-radius: 14px; border: 0; display: grid; place-items: center; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.k-mic svg { width: 22px; height: 22px; }
.k-mic:disabled { opacity: .5; }
.k-recording .k-mic { background: #E5432A; color: #fff; animation: k-rec 1.2s ease-in-out infinite; }
.k-recording .k-in { border-color: #E5432A; background: #fff; }
.k-recording .k-in textarea::placeholder { color: #C2361F; }
@keyframes k-rec { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 67, 42, .35); } 50% { box-shadow: 0 0 0 8px rgba(229, 67, 42, 0); } }

/* home categories: the warm wheat-brown fill on every card (empty ones a lighter wash of it) */
.home .cat, .home .cat.soon { background: #F2E4CC; border: 0; color: #6B4A22; }
.home .cat .cc-ico { background: rgba(255, 255, 255, 0.65); }
.home .cat .ico.ico-fill { color: #8A6232; }
.home .cat .ico-fill { --cut: #FBF4E8; }
.home .cat .cc-name { color: #5A3D1B; }
.home .cat.soon { background: #F7EEDF; }
.home .cat.soon .cc-name { color: #8F7656; }
.home .cat.soon .ico.ico-fill { color: #B39470; }
.home .cat.soon small { background: rgba(255, 255, 255, 0.7); border-color: transparent; color: #8F7656; }
.home .cat.on { background: #5A3D1B; color: #fff; }
.home .cat.on .ico-fill { --cut: #5A3D1B; }
