:root {
  --cream: #FFFFFF; --cream-2: #F3F4F2; --green: #244C3B; --green-2: #2F6350; --orange: #E58B43; --orange-ink: #A8561A;
  --ink: #332E29; --ink-2: #6B645C; --line: #E7E8E5; --card: #FFFFFF; --danger: #B3402B; --ok: #2F7D4F;
  --r: 18px; --nav-h: 66px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #e9e4d8; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream-2); font-size: 1rem; line-height: 1.45; }   /* rem so the Text size setting scales everything */
body.noscroll { overflow: hidden; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--cream); position: relative; box-shadow: 0 0 40px rgba(0,0,0,.08); }
#view { padding: 0 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); outline: none; }
#view.v-recipe, #view.v-cook { padding: 0 0 120px; }
#view.v-kitchen { padding-bottom: 140px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 22px 0 10px; font-family: var(--serif); }
h3 { font-size: 1rem; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--ink-2); } .small { font-size: .85rem; } .ok { color: var(--ok); } .miss { color: var(--danger); font-weight: 600; }
.ico { width: 22px; height: 22px; flex: none; vertical-align: -5px; } .ico.sm { width: 16px; height: 16px; vertical-align: -3px; }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); }
.eyebrow.light { color: #F6C79B; }
.link { background: none; border: 0; padding: 4px 0; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 12px 0; margin: 0 -16px 8px; padding-inline: 16px; background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(8px); }
.bar h1 { font-family: var(--serif); font-size: 1.5rem; flex: 1; }
.bar-right { display: flex; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--cream-2); } .icon-btn.sm { width: 38px; height: 38px; } .icon-btn.flip svg { transform: scaleX(-1); }
.dot, .badge { position: absolute; background: var(--orange); border-radius: 50%; }
.dot { width: 9px; height: 9px; top: 9px; right: 9px; }
.badge { position: static; margin-left: 6px; padding: 0 7px; border-radius: 99px; font-size: .75rem; color: #fff; }

/* buttons & chips */
.btn { background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1.5px solid transparent; font-weight: 700; text-align: center; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: .88rem; border-radius: 12px; }
.btn.primary { background: var(--green); color: #fff; } .btn.primary:active { background: var(--green-2); }
.btn.outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn.danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn.light { background: #fff; color: var(--green); } .btn.ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn.block { width: 100%; } .btn.grow { flex: 1; } .btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.chips { display: flex; gap: 8px; } .chips.wrap { flex-wrap: wrap; }
.scroll-chips { overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; } .scroll-chips::-webkit-scrollbar { display: none; }
.scroll-chips .chips { width: max-content; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); white-space: nowrap; font-size: .92rem; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; } .chip.warn-chip.on { background: var(--danger); border-color: var(--danger); }
.chip.dashed { border-style: dashed; color: var(--green); }
.tag { display: inline-block; padding: 1px 9px; border-radius: 99px; background: #FBE6D2; color: #8A4A14; font-size: .74rem; font-weight: 700; vertical-align: middle; }

/* inputs */
.searchbox { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); margin-bottom: 10px; color: var(--ink-2); }
.searchbox:focus-within { border-color: var(--green); }
.searchbox input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); min-width: 0; }
.field { display: grid; gap: 6px; } .field > span, .lbl { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; background: var(--card); color: var(--ink); width: 100%; }
.field input:focus { outline: 0; border-color: var(--green); }
.form { display: grid; gap: 14px; margin: 8px 0 16px; } .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper { display: inline-flex; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 99px; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; border-radius: 50%; color: var(--green); }
.stepper button:disabled { opacity: .3; } .stepper output { min-width: 28px; text-align: center; font-weight: 700; }
.serv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.serv-row > span { display: grid; } .serv-row.slim { padding: 4px 0; }

/* cards */
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; } .hscroll .card { width: 168px; flex: none; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { position: relative; background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.card-body { padding: 10px 12px 12px; } .card h3 { font-size: .95rem; min-height: 2.4em; }
.meta { margin: 4px 0 0; font-size: .82rem; color: var(--ink-2); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.art { display: grid; place-items: center; height: 112px; background: hsl(var(--h) 28% 93%); color: hsl(var(--h) 22% 58%); }
.plate { width: 44px; height: 44px; }
.art.sm { height: 84px; width: 84px; border-radius: 14px; } .art.sm .plate { width: 34px; height: 34px; }
.art.xs { height: 48px; width: 48px; border-radius: 12px; flex: none; overflow: hidden; } .art.xs .plate { width: 24px; height: 24px; }
.fav { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink-2); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.fav.on { color: #D6402C; }
.row-card { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; margin-bottom: 10px; } .row-art { flex: none; }
.row-body { flex: 1; min-width: 0; } .row-body h3 { margin-bottom: 2px; }
.match { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: .85rem; } .match b { color: var(--green); white-space: nowrap; }
.bar-track { flex: 1; height: 8px; background: var(--cream-2); border-radius: 99px; overflow: hidden; } .bar-track i { display: block; height: 100%; background: var(--orange); border-radius: 99px; transition: width .3s; }
.row-body p { margin: 2px 0; }
.sub { margin: 18px 0 8px; color: var(--ink-2); }
.notice { display: block; padding: 10px 14px; border-radius: 12px; background: #FFF1DF; color: #7A4411; font-size: .88rem; margin: 6px 0 12px; }
.count { margin: 4px 0 8px; font-size: .88rem; } .sort-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; } .sel-sum { margin: -4px 0 6px; font-size: .9rem; }

/* home */
.home-top { padding: 18px 0 10px; } .hello { font-family: var(--serif); font-size: 1.9rem; }
.hero { background: linear-gradient(135deg, var(--green), #1B3A2D); color: #fff; border-radius: 24px; padding: 20px; margin: 6px 0 16px; box-shadow: 0 10px 24px rgba(36,76,59,.25); }
.hero h2 { color: #fff; font-size: 1.7rem; margin: 4px 0 14px; }
.hero-pick { display: flex; align-items: center; gap: 12px; padding: 10px; background: rgba(255,255,255,.12); border-radius: 16px; }
.hero-pick > div { flex: 1; display: grid; min-width: 0; } .hero-pick span { font-size: .85rem; opacity: .85; }
.hero-actions { display: flex; gap: 10px; margin-top: 14px; } .hero-actions .btn { flex: 1; min-height: 44px; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.qa { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; line-height: 1.2; min-height: 64px; }
.qa-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--cream-2); color: var(--green); display: grid; place-items: center; flex: none; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; } .sec-head a { color: var(--green); font-weight: 600; font-size: .9rem; }
.cat-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.cat { flex: none; display: grid; justify-items: center; align-content: start; gap: 6px; width: 92px; font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.15; }
.cat-img { display: grid; place-items: center; width: 92px; height: 72px; border-radius: 14px; overflow: hidden; background: hsl(var(--h) 28% 93%); color: hsl(var(--h) 22% 58%); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-img .plate { width: 30px; height: 30px; }
.teaser { text-align: center; color: var(--ink-2); font-size: .85rem; margin: 22px 0 0; }

/* recipe */
.r-hero { position: relative; height: 230px; display: grid; place-items: center; background: hsl(var(--h) 28% 93%); color: hsl(var(--h) 22% 58%); } .r-hero > .plate { width: 72px; height: 72px; }
.r-hero .icon-btn { position: absolute; top: calc(10px + env(safe-area-inset-top)); background: rgba(255,255,255,.92); } .float-l { left: 12px; } .float-r { right: 12px; }
.r-hero .fav { width: 44px; height: 44px; }
.r-body { padding: 18px 16px; margin-top: -22px; position: relative; background: var(--cream); border-radius: 24px 24px 0 0; }
.r-title { font-family: var(--serif); font-size: 1.8rem; margin: 2px 0 6px; } .r-desc { margin: 0 0 12px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 8px; } .facts div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; }
.facts dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); } .facts dd { margin: 2px 0 0; font-weight: 700; font-size: .92rem; }
.warn { background: #FCE3DD; color: #7C2616; padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; font-size: .9rem; }
.ings { list-style: none; margin: 0 0 14px; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.ing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); } .ing:last-child { border: 0; }
.ing .qty { min-width: 82px; font-weight: 700; color: var(--green); } .ing .nm { flex: 1; } .ing em { color: var(--ink-2); font-size: .85rem; }
.have-tag { font-size: .76rem; color: var(--ok); font-weight: 700; } .ing.have .nm { color: var(--ink); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 46px; } .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.safety { padding-left: 20px; margin: 0 0 10px; } .safety li { margin-bottom: 6px; font-size: .9rem; }
.action-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 520px); display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--cream) 96%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 6; }

/* cooking */
.cook { min-height: 100dvh; display: flex; flex-direction: column; background: var(--cream); }
.cook-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; } .cook-top div { flex: 1; display: grid; text-align: center; min-width: 0; } .cook-top strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cook-top small { color: var(--ink-2); }
.progress { height: 6px; background: var(--cream-2); } .progress i { display: block; height: 100%; background: var(--orange); transition: width .25s; }
.cook-step { flex: 1; padding: 28px 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.big-n { font-family: var(--serif); font-size: 4.5rem; color: var(--orange-ink); line-height: 1; } .cook-step p { margin: 0; font-size: 1.5rem; line-height: 1.4; }
.wake { padding: 0 22px 8px; color: var(--ink-2); font-size: .9rem; display: flex; gap: 8px; align-items: center; } .wake input { width: 20px; height: 20px; accent-color: var(--green); }
.cook-nav { display: flex; gap: 10px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.cook-nav .btn { min-height: 56px; font-size: 1.05rem; }

/* kitchen */
.ing-group h3 { margin: 16px 0 8px; color: var(--ink-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.ing-chip { min-height: 44px; }
.tray { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 520px); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); z-index: 6; display: grid; gap: 10px; }
.tray-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .tray-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; } .tray .btn { width: 100%; }

/* plan & grocery */
.week-nav { display: flex; align-items: center; justify-content: space-between; }
.week-label { background: none; border: 0; display: grid; text-align: center; font-weight: 700; } .week-label small { color: var(--ink-2); font-weight: 500; }
.plan-sum { display: flex; gap: 16px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin: 6px 0 10px; } .plan-sum strong { display: block; font-size: 1.3rem; } .plan-sum small { color: var(--ink-2); display: block; margin-bottom: 4px; }
.plan-sum.over .bar-track i { background: var(--danger); } .grow { flex: 1; }
.plan-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; } .day.today { border-color: var(--orange); box-shadow: 0 0 0 2px #FBE6D2; } .day h3 { margin-bottom: 6px; }
.slot { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px dashed var(--line); min-height: 52px; } .slot-m { width: 82px; flex: none; font-size: .78rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; }
.slot-r { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; min-width: 0; font-weight: 600; } .slot-r .art { grid-row: span 2; } .slot-r small { grid-column: 2; color: var(--ink-2); font-weight: 400; }
.slot-add { flex: 1; text-align: left; background: none; border: 0; color: var(--green); font-weight: 600; min-height: 44px; }
.g-group h3 { margin: 16px 0 6px; color: var(--ink-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.g-item { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 6px; padding-right: 4px; }
.g-item label { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 52px; cursor: pointer; min-width: 0; }
.g-item input { position: absolute; opacity: 0; } .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.g-item input:checked + .box { background: var(--green); border-color: var(--green); color: #fff; } .g-item input:focus-visible + .box { outline: 3px solid var(--orange); outline-offset: 2px; }
.g-name { flex: 1; font-weight: 600; } .g-qty { color: var(--ink-2); font-size: .88rem; } .g-item.done .g-name { text-decoration: line-through; color: var(--ink-2); }
.assump { margin-top: 16px; } .assump summary { font-weight: 600; cursor: pointer; padding: 8px 0; }

/* profile */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 10px; } .panel h2 { margin: 0; font-size: 1.05rem; } .panel p { margin: 0; }
.panel.plus { background: linear-gradient(135deg, #FFF3E4, #FBE6D2); border-color: #F2CFA6; }

.form-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FCE3DD; color: #7C2616; font-size: .9rem; }
.form-err[hidden] { display: none; }
.info-page { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 56px 8px 24px; } .info-page h1 { font-family: var(--serif); font-size: 1.7rem; } .info-page p { margin: 0; max-width: 32ch; }
.info-page .form { width: 100%; text-align: left; } .np-ico { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50%; background: #EEF5F0; color: var(--green); } .np-ico .ico { width: 52px; height: 52px; stroke-width: 1.6; }
.danger-link { color: var(--danger); justify-self: start; }
.field small { font-weight: 400; }

/* recipe photos (from the admin dashboard) */
.art.has-img, .r-hero.has-img { padding: 0; overflow: hidden; position: relative; }
.art.has-img img, .r-hero.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art.has-img { display: block; }
.r-hero .credit { position: absolute; left: 8px; bottom: 30px; max-width: calc(100% - 16px); font-size: .68rem; line-height: 1.4; color: #fff; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.r-hero a.credit:hover, .r-hero a.credit:focus-visible { text-decoration: underline; }

/* AI assistant */
.ai-cta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 4px 0 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.ai-cta > span { flex: 1; display: grid; } .ai-cta small { color: var(--ink-2); font-size: .82rem; } .ai-cta > .ico:first-child { color: var(--orange-ink); }
.ai-context { margin: 0 0 8px; font-size: .9rem; color: var(--ink-2); }
.ai-thread { display: grid; gap: 10px; margin: 8px 0 12px; } .ai-intro { margin: 8px 0; }
.bubble { padding: 10px 14px; border-radius: 16px; max-width: 92%; line-height: 1.5; overflow-wrap: anywhere; }
.bubble p { margin: 0 0 6px; } .bubble p:last-child { margin-bottom: 0; } .bubble ul, .bubble ol { margin: 4px 0 8px; padding-left: 20px; }
.bubble.me { justify-self: end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.bubble.ai { justify-self: start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; width: 100%; }
.bubble.err { justify-self: start; background: #FCE3DD; color: #7C2616; }
.bubble.typing { color: var(--ink-2); font-style: italic; }
.bubble .row-card { margin: 6px 0; } .bubble .eyebrow { margin-top: 10px; }
.ai-warn { background: #FCE3DD; color: #7C2616; padding: 6px 10px; border-radius: 10px; font-size: .9rem; }
.ai-safety { color: var(--ok); font-size: .9rem; }
.ai-recipe { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #FFFAF3; border: 1px dashed #E8B98A; } .ai-recipe h3 { margin: 2px 0; }
.ai-disclaimer { font-size: .75rem; color: var(--ink-2); margin-top: 8px !important; }
.ai-chips { margin-bottom: 10px; } .ai-chips .chip { white-space: normal; text-align: left; min-height: 40px; padding: 8px 14px; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); background: var(--cream); padding: 6px 0; }
.ai-form textarea { flex: 1; font: inherit; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); resize: none; background: var(--card); color: var(--ink); }
.ai-form textarea:focus { outline: 0; border-color: var(--green); } .ai-quota { text-align: center; margin: 4px 0 0; }
.explain-step { padding: 0 22px 10px; color: var(--green); font-weight: 600; }

/* Plus & AI packs */
.plus-list { margin: 0; padding-left: 18px; } .plus-list li { margin: 2px 0; }
.buy-col { display: grid; gap: 8px; } .buy-col .btn { width: 100%; }

/* reminders & notifications */
.home-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bell { position: relative; margin-top: 8px; } .bell .count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--orange-ink); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.rem-times { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px 28px; } .rem-times label { display: grid; gap: 2px; font-size: .8rem; color: var(--ink-2); }
.rem-times select, input.time { font: inherit; padding: 6px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.panel label.check { display: flex; align-items: center; gap: 8px; } .panel label.check input { width: 20px; height: 20px; accent-color: var(--green); }
.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note { width: 100%; display: flex; gap: 12px; text-align: left; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.note.unread { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); } .n-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #EEF5F0; color: var(--green); flex: none; } .n-body { display: grid; gap: 2px; } .n-body span { color: var(--ink-2); font-size: .9rem; } .n-body small { color: var(--ink-2); }

/* personalization */
.onboard.wide { width: min(100%, 520px); padding-top: 48px; } .onboard .persona-picker { width: 100%; text-align: left; }
.persona-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 4px; }
.persona { display: grid; gap: 4px; align-content: start; text-align: left; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); min-height: 44px; }
.persona strong { font-size: .9rem; line-height: 1.2; } .persona small { color: var(--ink-2); font-size: .76rem; line-height: 1.3; }
.p-emo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #EEF5F0; color: var(--green); margin-bottom: 4px; } .p-emo .ico { width: 22px; height: 22px; } .persona.on .p-emo { background: var(--green); color: #fff; } .persona.on { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; background: #EEF5F0; }
.p-inline { color: var(--green); }
.goals-h { margin: 16px 0 2px; } .persona-picker .chips { margin-top: 8px; }
.personalize { background: var(--card); border-color: var(--line); margin-top: 8px; }
.goal-sec .sec-sub { margin: -4px 0 8px; } .goal-sec > .btn { margin-top: 4px; }
.gloss { display: grid; gap: 8px; margin: 0 0 14px; } .gloss div { background: #F3EFE6; border-radius: 12px; padding: 10px 12px; }
.gloss dt { font-weight: 700; color: var(--green); } .gloss dd { margin: 2px 0 0; font-size: .9rem; }
.cook-step .gloss { margin-top: 8px; } .cook-step .gloss dd { font-size: 1rem; }
.sticky-done { position: sticky; bottom: 0; margin-top: 12px; box-shadow: 0 -8px 16px var(--cream); }
@media (max-width: 360px) { .persona-grid { grid-template-columns: 1fr; } }

/* states */
.empty { text-align: center; padding: 36px 16px; display: grid; gap: 8px; justify-items: center; } .empty-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #EEF5F0; color: var(--green); } .empty-ico .ico { width: 34px; height: 34px; } .empty p { margin: 0 0 8px; color: var(--ink-2); max-width: 30ch; }

/* nav, sheet, toast, overlays */
#nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 520px); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--card); border-top: 1px solid var(--line); z-index: 7; }
#nav[hidden] { display: none; }
#nav a { flex: 1; display: grid; place-items: center; align-content: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--ink-2); } #nav a.on { color: var(--green); } #nav a.on .ico { stroke-width: 2.6; }
#sheet-root { position: fixed; inset: 0; z-index: 20; pointer-events: none; } #sheet-root.open { pointer-events: auto; }
.backdrop { position: absolute; inset: 0; background: rgba(30,25,20,.45); animation: fade .2s; }
.sheet { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 520px); max-height: 86dvh; overflow: auto; background: var(--cream); border-radius: 24px 24px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .25s ease-out; }
.sheet h2 { margin-top: 8px; } .grab { width: 44px; height: 5px; background: var(--line); border-radius: 9px; margin: 4px auto 6px; }
.pick-list { display: grid; gap: 6px; } .pick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); min-height: 56px; } .pick span { display: grid; } .pick small { color: var(--ink-2); }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 30; max-width: 90vw; text-align: center; } #toast.show { opacity: 1; transform: translate(-50%, 0); }
#overlay { position: fixed; inset: 0; z-index: 40; background: var(--cream); display: flex; overflow: auto; } #overlay[hidden] { display: none; }
.onboard { margin: auto; width: min(100%, 460px); padding: 28px 24px calc(28px + env(safe-area-inset-bottom)); text-align: center; display: grid; gap: 14px; justify-items: center; position: relative; }
.onboard h1 { font-family: var(--serif); font-size: 1.8rem; } .onboard p { margin: 0; color: var(--ink-2); } .skip { position: absolute; top: 12px; right: 18px; } .ob-art { width: 170px; height: 170px; display: grid; place-items: center; border-radius: 50%; background: #EEF5F0; color: var(--green); } .ob-art .ico { width: 76px; height: 76px; stroke-width: 1.4; }
.ob-lang { display: grid; gap: 8px; justify-items: center; } .dots { display: flex; gap: 8px; } .dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); } .dots i.on { width: 24px; background: var(--orange); }
#splash { position: fixed; inset: 0; z-index: 100; background: var(--green); color: #fff; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 24px; transition: opacity .4s; } #splash.hide { opacity: 0; pointer-events: none; }
#splash h1 { font-family: var(--serif); letter-spacing: .12em; font-size: 2rem; } #splash p { margin: 0; opacity: .8; max-width: 26ch; font-size: .95rem; } .logo-mark { width: 88px; height: 88px; color: #F6C79B; animation: pop .6s ease-out; }
@keyframes fade { from { opacity: 0 } } @keyframes up { from { transform: translate(-50%, 40px); opacity: 0 } } @keyframes pop { from { transform: scale(.6); opacity: 0 } }
/* white theme: cards lift off the page with a whisper of shadow instead of tinted fills */
.card, .row-card, .panel, .qa, .ai-cta, .day { box-shadow: 0 1px 2px rgba(20,24,20,.04), 0 4px 12px rgba(20,24,20,.05); }
/* motion: short and cheap (transform/opacity only), for budget phones */
.art.has-img img, .r-hero.has-img img, .cat-img img { opacity: 0; transition: opacity .35s ease-out; }
.art.has-img img.in, .r-hero.has-img img.in, .cat-img img.in { opacity: 1; }
img.broken { visibility: hidden; }
.view.enter { animation: view-in .22s ease-out; }
.card, .row-card, .qa, .cat, .pick, .slot-r, .ai-cta, .btn, .icon-btn, .fav, .chip { transition: transform .12s ease-out; }
.card:active, .row-card:active, .qa:active, .cat:active, .pick:active, .slot-r:active, .ai-cta:active { transform: scale(.98); }
.btn:active, .icon-btn:active, .fav:active, .chip:active { transform: scale(.94); }
.fav.pop svg { animation: heart .4s ease-out; }
.g-item input.pop + .box { animation: heart .3s ease-out; }
.g-item label { transition: color .2s, opacity .2s; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes heart { 40% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 540px) { body { padding: 0; } #app { border-radius: 0; } }

/* recipe feedback: ratings + problem reports */
.fb { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: 0 1px 2px rgba(20,24,20,.04), 0 4px 12px rgba(20,24,20,.05); }
.fb h2 { margin: 0 0 8px; }
.stars { display: flex; gap: 4px; margin: 4px 0 6px; }
.star { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #C9C4BB; cursor: pointer; transition: transform .12s ease-out; }
.star .ico { width: 30px; height: 30px; }
.star:hover, .star.on { color: var(--orange); } .star.on .ico { fill: currentColor; }
.star:active { transform: scale(.9); }
.star input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.star:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 1px; }
.fb-report { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.chip.radio { position: relative; cursor: pointer; } .chip.radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip.radio:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; }
.chip.radio:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.field textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); resize: vertical; min-height: 84px; }
.field textarea:focus { outline: 0; border-color: var(--green); }
