/* HealthyFresh.Food — theme tokens measured from the reference screenshots */
:root {
  --bg: #f8f8f8;
  --surface: #ffffff;
  --hero-bg: #e9e9e9;
  --line: #e9e9e9;
  --chrome: #ffffff;
  --line-strong: #cacaca;
  --ink: #222222;
  --ink-2: #4b4b4b;
  --ink-3: #6e6e6e;
  --active: #e6e6e6;
  --brand: #dc2424;
  --accent: #dc2424;
  --accent-2: #f26b2a;
  --hover: #efefef;
  --soft: #f4f4f4;
  --rail-w: 60px;
  --green: #12753a;
  --orange: #e86a10;
  --blue-dot: #2f6fe6;

  --font: 'Source Sans 3', 'Adobe Clean', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --top-h: 52px;
  --side-w: 192px;
  --edge: 13px;
  --r-panel: 16px;
  --r-card: 24px;
  --r-action: 20px;
  --r-img: 8px;
  --r-item: 8px;
  --pad: 24px;
  --gap-cards: 9px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.ic { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top-h);
  display: flex; align-items: center; padding: 0 var(--edge) 0 14px; gap: 12px;
  background: var(--chrome); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 32px; height: 32px; border-radius: 7px; display: block; flex: none; }
.brand-name { padding-top: 2px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.topbar .menu-btn { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 0; }
.join-btn {
  height: 32px; border: 0; border-radius: 8px; padding: 0 15px 0 12px;
  display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  margin-right: 0;
}
.join-btn:hover { filter: brightness(1.07); }
.icon-btn {
  width: 40px; height: 32px; border: 0; background: transparent; border-radius: 8px;
  display: grid; place-items: center; position: relative; color: var(--ink);
}
.icon-btn:hover { background: var(--active); }
.signin {
  height: 32px; padding: 0 15px; margin-left: 12px; border-radius: 8px; background: var(--surface);
  border: 2px solid var(--line-strong); font-weight: 600; font-size: 14px; padding-top: 2px;
}
.signin:hover { border-color: #b8b8b8; }

/* ---------- shell ---------- */
.shell { position: fixed; inset: var(--top-h) 0 0 0; background: var(--chrome); }
.sidebar {
  position: absolute; top: 0; left: 0; bottom: 0; width: var(--side-w);
  padding: 6px 12px 0; display: flex; flex-direction: column; background: var(--chrome); z-index: 20;
}
.drawer-head { display: none; }
.sidebar nav { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-label {
  padding: 19px 8px 4px; font-size: 11px; line-height: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2);
}
.nav-item {
  height: 36px; display: flex; align-items: center; gap: 12px; padding: 0 8px; border-radius: var(--r-item);
  font-size: 14px; color: var(--ink);
}
.nav-text { padding-top: 3px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item { min-width: 0; overflow: hidden; }
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.active { background: var(--active); }
.badge {
  margin-left: auto; flex: none; height: 20px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-strong);
  font-size: 11px; line-height: 18px; color: var(--ink-2); background: var(--surface);
}
.sidebar-foot { height: 52px; display: flex; align-items: center; gap: 0; padding: 0 0 16px; margin-left: -4px; }
.sidebar-foot .icon-btn { width: 36px; }

.panel {
  position: absolute; top: 0; left: calc(var(--side-w) + 1px); right: var(--edge); bottom: var(--edge);
  border: 1px solid var(--line); border-radius: var(--r-panel);
  background: var(--bg); overflow-y: auto; overflow-x: hidden; outline: none;
  scroll-behavior: smooth;
}
/* collapsed: icon rail that can be expanded again */
@media (min-width: 1024px) {
  html.collapsed .sidebar { width: var(--rail-w); padding: 6px 8px 0; }
  html.collapsed .nav-text, html.collapsed .badge { display: none; }
  html.collapsed .nav-item { justify-content: center; padding: 0; }
  html.collapsed .nav-label { padding: 12px 0 8px; font-size: 0; }
  html.collapsed .nav-label::after { content: ''; display: block; height: 1px; background: var(--line); margin: 0 6px; }
  html.collapsed .sidebar-foot { flex-direction: column; height: auto; gap: 4px; margin-left: 0; align-items: center; }
  html.collapsed .panel { left: calc(var(--rail-w) + 1px); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; height: 385px; overflow: hidden;
  background:
    radial-gradient(ellipse 45% 40% at 50% 55%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, #e9e9e9 0%, #f1f1f1 15%, #f8f8f8 32%, #fcfcfc 50%, #f8f8f8 70%, #f1f1f1 85%, #e9e9e9 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, #c9c9c9 1.3px, transparent 1.6px);
  background-size: 26px 26px; background-position: 9px 9px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 55%, #000 100%);
}
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.tile { position: absolute; overflow: hidden; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.tile svg { width: 100%; height: 100%; display: block; }
.t-a { background: linear-gradient(160deg, #f6dcc0 0%, #e9b27a 55%, #d98f52 100%); }
.t-b { background: linear-gradient(180deg, #8fb3c7 0%, #5a86a3 35%, #24476b 70%, #c79a6a 100%); }
.t-c { background: linear-gradient(180deg, #9db8cf 0%, #dfe7ee 45%, #f4f6f8 100%); }
.t-d { background: linear-gradient(200deg, #2c5664 0%, #4f7f8c 50%, #d8b48c 100%); }
.t-a { left: calc(50% - 720px); top: -40px; width: 199px; height: 194px; border-radius: 0 0 12px 0; }
.t-b { left: calc(50% - 495px); top: 110px; width: 187px; height: 249px; }
.t-c { left: calc(50% + 300px); top: -40px; width: 173px; height: 214px; }
.t-d { left: calc(50% + 490px); top: 110px; width: 190px; height: 240px; }
.floating-icon { position: absolute; left: calc(50% - 360px); top: 92px; color: #111; }
.tile-badge {
  position: absolute; left: calc(50% - 480px); top: 317px; width: 28px; height: 28px; border-radius: 6px;
  background: rgba(20,20,20,.72); color: #fff; display: grid; place-items: center;
}
.name-pill {
  position: absolute; height: 35px; border-radius: 18px; padding: 0 13px 0 4px;
  display: flex; align-items: center; gap: 8px; font-size: 15px; color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.np-orange { left: calc(50% - 601px); top: 273px; background: var(--orange); }
.np-green { left: calc(50% + 370px); top: 201px; height: 31px; background: var(--green); }
.av { width: 27px; height: 27px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); flex: none; }
.np-green .av { width: 25px; height: 25px; }
.av1 { background: radial-gradient(circle at 50% 38%, #f3c9a0 0 28%, #6b4a33 29% 45%, #d9b28d 46%); }
.av2 { background: radial-gradient(circle at 40% 35%, #f4ff7a 0 20%, #59c43a 50%, #1b7d2f 100%); }
.ping { position: absolute; width: 11px; height: 11px; border-radius: 50%; }
.ping-orange { left: calc(50% - 488px); top: 262px; background: var(--orange); }
.ping-green { left: calc(50% + 358px); top: 192px; width: 10px; height: 10px; background: var(--green); }

.hero-inner { position: relative; z-index: 2; text-align: center; padding-top: 52px; }
.hero h1 { font-size: 84px; line-height: 88px; font-weight: 900; letter-spacing: -0.025em; color: #000; }
.hero-sub { margin-top: -1px; font-size: 17px; line-height: 32px; color: var(--ink); padding: 0 16px; }
.hero-actions {
  display: inline-flex; gap: 17px; margin-top: 21px; padding: 16px 16px 18px;
  border-radius: 28px; background: rgba(244,244,244,.7); border: 1px solid #ececec;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.action-card {
  width: 207px; height: 115px; border-radius: var(--r-action); border: 1px solid #dedede;
  background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 0; font-size: 15px; font-weight: 700; color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .15s, box-shadow .15s;
}

.action-card .ic { margin-top: 0; }
.action-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }

/* ---------- sections ---------- */
.sec { padding: 42px var(--pad) 8px; }
.sec h2 { font-size: 36px; line-height: 48px; font-weight: 800; letter-spacing: -0.015em; color: #111; }
.sec-sub { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.board-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-cards); margin-top: 25px; }
.board-card {
  border-radius: var(--r-card); border: 1px solid #ebebeb; padding: 20px 32px 32px;
  background: linear-gradient(180deg, #efefef 0%, #f6f6f6 50%, #f8f8f8 100%);
  cursor: pointer; transition: box-shadow .2s, transform .2s; min-width: 0;
}
.board-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.board-card h3 { font-size: 20px; line-height: 24px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.by { margin-top: 2px; font-size: 14px; line-height: 18px; color: var(--ink-2); }
.board-img { margin-top: 12px; aspect-ratio: 326 / 196; border-radius: var(--r-img); overflow: hidden; background: #ddd; }
.board-img svg { width: 100%; height: 100%; display: block; }
.dots { display: none; }

.notice { padding-top: 56px; }
.filter-pills, .mood-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid #d5d5d5; background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.pill:hover { border-color: #b5b5b5; }
.pill.on, .pill[aria-pressed="true"] { background: #1d1d1d; border-color: #1d1d1d; color: #fff; }
.chop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.chop-card {
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 10px; cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.chop-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.chop-card[hidden] { display: none; }
.mini-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 4px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; }
.mini { overflow: hidden; }
.mini svg { width: 100%; height: 100%; display: block; }
.mini:first-child { grid-row: 1 / 4; }
.chop-meta { padding: 12px 6px 4px; }
.chop-meta h3 { font-size: 17px; line-height: 22px; font-weight: 700; }

.search-sec { padding-top: 56px; }
.search-box {
  margin-top: 18px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px;
  border-radius: 26px; background: var(--surface); border: 1px solid #d9d9d9; max-width: 720px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.search-sec .mood-row { margin-top: 14px; }
.result-count { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.meal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 10px; }
.meal-card { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.meal-img { aspect-ratio: 4 / 3; position: relative; }
.meal-img svg { width: 100%; height: 100%; display: block; }
.heart {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); display: grid; place-items: center; color: #333;
}
.heart[aria-pressed="true"] { color: #e23b55; }
.heart[aria-pressed="true"] .ic { fill: currentColor; }
.meal-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.meal-body h3 { font-size: 16px; line-height: 20px; font-weight: 700; }
.meal-facts > span { white-space: nowrap; }
.meal-facts { flex-wrap: wrap; row-gap: 2px; }
.meal-facts { display: flex; gap: 6px; font-size: 13px; color: var(--ink-3); align-items: center; }
.meal-facts .ic { width: 14px; height: 14px; }
.meal-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.add-btn {
  height: 30px; padding: 0 12px; border-radius: 15px; border: 0; background: #1d1d1d; color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 4px;
}
.add-btn .ic { width: 14px; height: 14px; }
.add-btn.done { background: var(--green); }
.empty { padding: 28px; text-align: center; color: var(--ink-3); border: 1px dashed #d0d0d0; border-radius: 16px; grid-column: 1 / -1; }

.try-sec { padding-top: 56px; }
.try-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 32px; border-radius: var(--r-card);
  background: linear-gradient(120deg, #fff4ea 0%, #fdeef3 50%, #eef5ea 100%); border: 1px solid #eadfd6;
}
.try-form { display: flex; gap: 8px; margin-top: 18px; }
.try-form input, .text-in {
  flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 1px solid #d5d5d5; padding: 0 18px;
  background: var(--surface); font-size: 15px; outline: none;
}
.try-form input:focus, .text-in:focus { border-color: var(--accent); }
.primary {
  height: 44px; padding: 0 20px; border-radius: 22px; border: 0; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.primary:hover { filter: brightness(1.08); }
.try-sec .mood-row { margin-top: 14px; }
.try-list-wrap h3 { font-size: 17px; font-weight: 700; }
.try-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.try-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 10px 16px;
  background: var(--surface); border-radius: 14px; font-size: 14px;
}
.try-list li small { color: var(--ink-3); display: block; }
.try-list .icon-btn { width: 30px; height: 30px; }

.cal-sec { padding-top: 56px; }
.cal-actions { display: flex; gap: 8px; }
.ghost {
  height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid #d5d5d5; background: var(--surface);
  display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px;
}
.cal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.cal-day { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 16px; }
.cal-day h3 { font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; }
.cal-day h3 small { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.slot { margin-top: 10px; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px; border-radius: 12px; background: var(--soft); }
.slot-art { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; }
.slot-art svg { width: 100%; height: 100%; display: block; }
.slot-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.slot-name { font-size: 14px; font-weight: 600; line-height: 18px; }
.slot-empty { flex: 1; text-align: left; border: 1px dashed #cfcfcf; background: transparent; border-radius: 10px; padding: 8px 10px; color: var(--ink-3); font-size: 13px; }
.slot .icon-btn { margin-left: auto; width: 28px; height: 28px; }
.grocery { margin-top: 14px; font-size: 14px; color: var(--ink-2); }


/* ---------- dialogs ---------- */
.modal {
  border: 0; padding: 24px; border-radius: 24px; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 48px);
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.modal.small { width: min(440px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(20,20,20,.45); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h2 { font-size: 24px; line-height: 30px; font-weight: 800; }
.modal-blurb { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.modal-foot { margin-top: 18px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.modal-foot .by { margin-right: auto; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.plan-day h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.plan-meal { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 12px; background: var(--soft); margin-bottom: 6px; font-size: 13px; font-weight: 600; line-height: 16px; }
.plan-meal .slot-art { width: 40px; height: 40px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.pick-grid h4 { margin: 0; font-size: 13px; text-align: center; color: var(--ink-3); }
.pick-grid button { height: 40px; border-radius: 12px; border: 1px solid #ddd; background: var(--soft); font-size: 13px; font-weight: 600; }
.pick-grid button:hover { background: #1d1d1d; color: #fff; }
#create-form .text-in { width: 100%; margin-top: 16px; }
.create-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; max-height: 46vh; overflow-y: auto; }
.create-pick button { border: 2px solid transparent; border-radius: 12px; padding: 0; background: var(--soft); overflow: hidden; text-align: left; font-size: 12px; font-weight: 600; }
.create-pick button span { display: block; padding: 6px 8px; line-height: 15px; }
.create-pick button svg { width: 100%; aspect-ratio: 1; display: block; }
.create-pick button[aria-pressed="true"] { border-color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #1d1d1d; color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 14px; font-weight: 600;
  transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.scrim { display: none; }

/* dark mode toggle */
html.dark { color-scheme: dark; }
html.dark body, html.dark { --chrome: #111111; --bg: #1b1b1b; --surface: #262626; --hero-bg: #232323; --line: #333; --line-strong: #4a4a4a; --ink: #f1f1f1; --ink-2: #c8c8c8; --ink-3: #9a9a9a; --active: #353535; --hover: #2c2c2c; --soft: #2e2e2e; }
html.dark .hero { background: radial-gradient(ellipse 45% 40% at 50% 55%, #2f2f2f 0%, rgba(47,47,47,0) 100%), linear-gradient(180deg, #1f1f1f, #262626 50%, #1f1f1f); }
html.dark .hero h1, html.dark .sec h2, html.dark .page-head h1, html.dark .board-card h3 { color: #fff; }
html.dark .board-card { background: linear-gradient(180deg, #262626, #202020); border-color: #333; }
html.dark .hero-actions { background: rgba(50,50,50,.8); border-color: #3a3a3a; }
html.dark .action-card, html.dark .notice-card, html.dark .meal-card, html.dark .cal-day, html.dark .spot-card, html.dark .chat, html.dark .creator-form { border-color: #363636; }
html.dark .try-card { background: linear-gradient(120deg, #3a2a20, #352330 50%, #233325); border-color: #3a3a3a; }
html.dark .pill { border-color: #4a4a4a; }
html.dark .pill.on, html.dark .pill[aria-pressed="true"], html.dark .tab.on { background: #f1f1f1; border-color: #f1f1f1; color: #111; }
html.dark .add-btn { background: #f1f1f1; color: #111; }
html.dark .heart { background: rgba(30,30,30,.85); color: #eee; }
html.dark .floating-icon { color: #eee; }
html.dark .search-box, html.dark .text-in, html.dark .try-form input, html.dark .chat-form input, html.dark .ghost, html.dark .signin { border-color: #444; }
html.dark .wordmark { background: linear-gradient(180deg, #ffffff 0%, #d6d6d6 45%, #7a7a7a 100%); -webkit-background-clip: text; background-clip: text; }
html.dark .pick-grid button:hover { background: #f1f1f1; color: #111; }

/* ---------- tablet & phone: menu becomes a drawer ---------- */
@media (max-width: 1023px) {
  :root { --chrome: #f8f8f8; }
  .topbar { padding-left: 12px; gap: 14px; }
  .topbar .menu-btn { display: grid; width: 32px; }
  .topbar .brand-name { display: none; }
  .join-btn { width: 32px; padding: 0; justify-content: center; border-radius: 8px; }
  .join-btn span { display: none; }
  .icon-btn { width: 36px; }
  .signin { margin-left: 5px; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: 280px; padding-top: 10px; z-index: 50;
    transform: translateX(-100%); transition: transform .25s, visibility .25s; visibility: hidden;
  }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px 8px; }
  body.drawer-open .sidebar { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.drawer-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; }
  .panel { left: 0; right: 0; bottom: 0; border-radius: 0; border-width: 1px 0 0; }
  .hero h1 { font-size: 57px; line-height: 64px; }
  .hero-inner { padding-top: 64px; }
  .hero-sub { margin-top: 0; }
  .hero-actions { margin-top: 19px; }
  .action-card { padding-top: 4px; }
  .sec { padding-left: 25px; padding-right: 25px; }
  .board-row { display: flex; flex-wrap: wrap; justify-content: center; }
  .board-card { flex: 0 0 calc((100% - var(--gap-cards)) / 2); }
  .board-card:nth-child(3) { flex-basis: min(398px, 100%); }
  .cal-grid { grid-template-columns: repeat(2, 1fr); }
  .try-card { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .hero { height: 300px; }
  .hero-art { display: none; }
  .hero-inner { padding-top: 20px; }
  .hero h1 { font-size: 45px; line-height: 54px; }
  .hero-sub { margin-top: -1px; padding: 0 30px; min-height: 64px; display: flex; align-items: center; justify-content: center; }
  .hero-actions { gap: 17px; margin-top: 29px; padding: 16px 16px 32px; width: calc(100% - 34px); }
  .action-card { flex: 1; width: auto; height: 76px; gap: 12px; padding: 3px 0 0; }
  .sec { padding: 40px 17px 8px; }
  .sec h2 { font-size: 36px; line-height: 48px; }
  .sec:not(.featured) h2 { font-size: 32px; line-height: 40px; }
  .sec:not(.featured) .sec-sub { margin-top: 5px; }
  .featured { padding-left: 25px; padding-right: 0; }
  .board-row {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 10px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-right: 25px; scrollbar-width: none; margin-top: 25px;
  }
  .board-row::-webkit-scrollbar { display: none; }
  .board-card, .board-card:nth-child(3) { flex: 0 0 288px; scroll-snap-align: start; }
  .board-card:hover { transform: none; }
  .dots { display: flex; justify-content: center; gap: 24px; margin-top: 19px; padding-right: 25px; }
  .dots i { width: 8px; height: 8px; border-radius: 50%; background: #d5d5d5; }
  .dots i.on { background: #222; }
  .notice, .try-sec { padding-top: 44px; }
  .sec-head { align-items: flex-start; }
  .filter-pills, .browse .mood-row { flex-wrap: nowrap; overflow-x: auto; margin-right: -17px; padding-right: 17px; scrollbar-width: none; }
  .filter-pills .pill, .mood-row .pill { flex: none; }
  .cal-grid { grid-template-columns: 1fr; }
  .meal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .meal-body { padding: 10px; }
  .meal-body h3 { font-size: 14px; line-height: 18px; }
  .meal-facts { font-size: 12px; gap: 6px; flex-wrap: wrap; }
  .try-card { padding: 22px 18px; }
  .try-form { flex-direction: column; }
  .plan-grid { grid-template-columns: 1fr; }
  .modal { padding: 18px; }
}

/* =========================================================
   Notice board carousel (home)
   ========================================================= */
.carousel-nav { display: flex; gap: 8px; }
.round-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; color: var(--ink);
}
.round-btn:hover { background: var(--hover); }
.notice .filter-pills { margin-top: 16px; }
.notice-row {
  display: flex; gap: 12px; margin-top: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none;
}
.notice-row::-webkit-scrollbar { display: none; }
.notice-card {
  flex: 0 0 236px; scroll-snap-align: start; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); padding: 8px; cursor: pointer; transition: box-shadow .2s;
}
.notice-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.notice-card[hidden] { display: none; }
.notice-card .mini-grid { aspect-ratio: 4 / 3; border-radius: 12px; }
.notice-meta { padding: 10px 4px 4px; }
.notice-meta h3 { font-size: 15px; line-height: 19px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.notice-meta .by { font-size: 13px; }

/* =========================================================
   Sub pages
   ========================================================= */
.page-head { padding: 40px var(--pad) 0; }
.page-head h1 { font-size: 44px; line-height: 52px; font-weight: 800; letter-spacing: -0.02em; color: #111; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head .sec-sub { max-width: 640px; }
.badge.big { margin-left: 0; height: 24px; line-height: 22px; font-size: 12px; padding: 0 10px; letter-spacing: 0; font-weight: 600; }
.page-head .search-box { margin-top: 22px; }
.sec.browse { padding-top: 18px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 10px; }
.tab { height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.tab.on { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.tab .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.select { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 4px 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; color: var(--ink-3); }
.select select { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); height: 32px; outline: none; cursor: pointer; }
.view-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.view-btn { width: 38px; height: 34px; border: 0; background: var(--surface); display: grid; place-items: center; color: var(--ink-3); }
.view-btn.on { background: var(--ink); color: var(--surface); }
.meal-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.meal-tags span { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--soft); color: var(--ink-2); }
.meal-grid.view-list { grid-template-columns: 1fr; gap: 10px; }
.view-list .meal-card { flex-direction: row; align-items: stretch; }
.view-list .meal-img { width: 168px; flex: none; aspect-ratio: auto; min-height: 120px; }
.view-list .meal-body { padding: 14px 16px; }
.asks { margin-top: 6px; }
.asks h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.ask-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ask-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.ask-list small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.try-card { display: block; }
.try-card h2 { font-size: 26px !important; line-height: 32px !important; }
.try-card .mood-row { margin-top: 14px; }
.try-form { max-width: 560px; }

.cal-actions { margin-top: 8px; flex-wrap: wrap; }
.cal-sec { padding-top: 24px !important; }
.modal-foot .ghost { height: 44px; border-radius: 10px; }
.plan-summary { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.plan-summary a, .fine a { color: var(--accent); font-weight: 600; }
a.slot-empty { display: block; }
a.slot-empty:hover { border-color: var(--accent); color: var(--accent); }

/* chef chat */
.chef-sec { padding-top: 22px; }
.chat { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; display: flex; flex-direction: column; max-width: 860px; min-height: 520px; overflow: hidden; }
.chat-log { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 60vh; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 92%; }
.msg.me { align-self: flex-end; }
.msg .bubble { padding: 10px 14px; border-radius: 16px; background: var(--soft); font-size: 15px; line-height: 21px; }
.msg.me .bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot .bubble { border-top-left-radius: 4px; }
.chef-av img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.chat-meal { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 8px 6px 6px; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); }
.chat-meal strong { display: block; font-size: 14px; }
.chat-meal small { color: var(--ink-3); font-size: 12px; }
.chat-meal .add-btn { margin-left: auto; }
.chat-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.chat-plan > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.chat-plan h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.chat-plan p { font-size: 13px; line-height: 17px; margin: 4px 0; font-weight: 600; }
.chat-plan p span { display: block; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.hint { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.primary.sm { height: 36px; font-size: 14px; padding: 0 14px; }
.chat-prompts { display: flex; gap: 8px; padding: 0 20px 12px; overflow-x: auto; scrollbar-width: none; }
.chat-prompts .pill { flex: none; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); padding: 0 14px; background: var(--bg); font-size: 15px; outline: none; }
.chat-form input:focus { border-color: var(--accent); }
.send-btn { width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.fine { margin-top: 10px; font-size: 12px; color: var(--ink-3); }

/* spotlight */
.spot-sec { padding-top: 24px; }
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.spot-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.spot-media { position: relative; aspect-ratio: 4 / 5; }
.spot-media > svg { width: 100%; height: 100%; display: block; }
.spot-kind { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 600; }
.spot-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spot-who { display: flex; gap: 10px; align-items: center; }
.spot-who small, .creator-list small, .shared-list small { display: block; color: var(--ink-3); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 18px; }
.spot-cap { font-size: 14px; line-height: 19px; color: var(--ink-2); }
.spot-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.likes { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); }
.likes .ic { width: 14px; height: 14px; }
.spot-actions { display: flex; gap: 6px; }
.ghost.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.ghost.sm .ic { width: 14px; height: 14px; }
.ghost.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cta-strip { margin-top: 28px; padding: 24px 28px; border-radius: 20px; background: linear-gradient(120deg, #fff1ea, #fde9e6 60%, #fff6e8); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-strip h2 { font-size: 24px !important; line-height: 30px !important; }
html.dark .cta-strip { background: linear-gradient(120deg, #3a2420, #33221f 60%, #3a2f20); }

/* creators */
.creators-sec { padding-top: 24px; }
.creator-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.creator-form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 14px; }
.creator-form h2, .creator-side h2 { font-size: 20px !important; line-height: 26px !important; }
.creator-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.creator-form .text-in { width: 100%; font-weight: 400; border-radius: 10px; }
.creator-form textarea.text-in { height: auto; padding: 10px 14px; resize: vertical; font: inherit; }
.creator-form select.text-in { appearance: auto; }
.opt { font-weight: 400; color: var(--ink-3); }
.creator-form .primary { justify-self: start; border-radius: 10px; }
.creator-side .mt { margin-top: 26px; }
.shared-list, .creator-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.shared-list li, .creator-list li { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.shared-list li > div, .creator-list li > div { flex: 1; min-width: 0; }
.shared-list a { color: var(--accent); }
.shared-list .status { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 8px; background: #fff3d6; color: #8a5a00; }
.shared-list .muted { color: var(--ink-3); font-size: 14px; }
.tagline { display: inline-block; margin-top: 3px; font-size: 12px; padding: 1px 8px; border-radius: 8px; background: var(--soft); }

/* =========================================================
   Footer: link columns + giant wordmark
   ========================================================= */
.site-foot { margin-top: 72px; padding: 56px 0 0; border-top: 1px solid var(--line); overflow: hidden; container-type: inline-size; }
.foot-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 0 clamp(24px, 7cqi, 100px); }
.foot-col h3 { font-size: 16px; line-height: 22px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-link { font-size: 15px; line-height: 22px; color: var(--ink-2); background: none; border: 0; padding: 0; text-align: left; }
.foot-link:hover { color: var(--ink); text-decoration: underline; }
.foot-note p { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.wordmark {
  margin-top: 56px; font-size: 25cqi; line-height: 1; font-weight: 900; letter-spacing: -0.055em;
  color: var(--ink); text-align: center; white-space: nowrap; height: .96em; overflow: hidden; user-select: none;
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 16%, #c8c8c8 32%, #6a6a6a 55%, #1a1a1a 80%, #000 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

@media (max-width: 1023px) {
  .page-head { padding-left: 25px; padding-right: 25px; }
  .creator-layout { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 599px) {
  .page-head { padding: 28px 17px 0; }
  .page-head h1 { font-size: 34px; line-height: 40px; }
  .notice-row { margin-right: -17px; padding-right: 17px; }
  .notice-card { flex-basis: 200px; }
  .carousel-nav { display: none; }
  .toolbar { align-items: stretch; }
  .filters { width: 100%; }
  .select { flex: 1 1 calc(50% - 4px); }
  .view-list .meal-img { width: 110px; }
  .chat-log { padding: 14px; max-height: none; }
  .chat-plan { grid-template-columns: 1fr; }
  .msg { max-width: 100%; }
  .spot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .spot-actions .ghost { display: none; }
  .creator-form { padding: 18px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 17px; }
  .foot-note { grid-column: 1 / -1; }
  .wordmark { margin-top: 40px; }
}

/* =========================================================
   Photos, Carte hero note, nav "coming soon" button
   ========================================================= */
img.photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile img.photo { width: 100%; height: 100%; }
.mini, .slot-art, .meal-img, .spot-media { position: relative; overflow: hidden; }
.mini img.photo, .slot-art img.photo, .meal-img img.photo, .spot-media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.create-pick button img.photo { width: 100%; aspect-ratio: 1; height: auto; }
.auth-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.collage { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; background: #fff; }
.collage .c { overflow: hidden; }
.collage .c0 { grid-row: 1 / 3; }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.board-card:hover .collage img { transform: scale(1.04); }
.collage-tag { position: absolute; left: 10px; top: 10px; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: rgba(20,20,20,.78); color: #fff; }
.collage-days { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 4px; }
.collage-days i { font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: #fff3a8; color: #333; }
.collage-days i:nth-child(2) { background: #ffd4dc; } .collage-days i:nth-child(3) { background: #d4f0d0; }

.hero-eyebrow {
  position: absolute; left: 0; right: 0; top: 22px; margin: 0; font-size: 13px; line-height: 18px;
  color: var(--ink-3); font-style: italic;
}
.hero-eyebrow span { font-style: normal; }
button.nav-item { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }

/* =========================================================
   Sign in / sign up window (always dark)
   ========================================================= */
.auth { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: min(920px, calc(100vw - 24px)); overflow: visible; }
.auth::backdrop { background: rgba(10,10,10,.6); backdrop-filter: blur(6px); }
.auth-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 6px; padding: 6px;
  border-radius: 30px; background: #121212; border: 1px solid #2c2c2c; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  color: #f2f2f2; min-height: 560px; max-height: calc(100vh - 32px);
}
.auth-left { padding: 34px 30px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow-y: auto; }
.auth-logo { width: 44px; height: 44px; border-radius: 10px; }
.auth-left h2 { margin-top: 16px; font-size: 34px; line-height: 38px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.auth-sub { margin-top: 10px; font-size: 15px; color: #9b9b9b; }
.auth-step, .auth-done { width: 100%; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.auth-step[hidden], .auth-done[hidden] { display: none; }
.auth-btn {
  height: 50px; width: 100%; border-radius: 14px; border: 1px solid #333; background: #1d1d1d; color: #f2f2f2;
  display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.auth-btn:hover { background: #262626; border-color: #444; }
.auth-btn.light { background: #fff; color: #111; border-color: #fff; box-shadow: 0 6px 24px rgba(255,255,255,.08); }
.auth-btn.light:hover { background: #f1f1f1; }
.g-mark { font-weight: 900; font-size: 19px; background: linear-gradient(135deg, #e5361b 0 35%, #f6b51e 35% 55%, #2fa04e 55% 75%, #3a78e8 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-or { margin: 6px 0; font-size: 13px; letter-spacing: .2em; color: #777; }
#join-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 14px; border: 1px solid #333; background: #161616; color: #8a8a8a; }
.auth-field:focus-within { border-color: var(--accent-2); }
.auth-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #fff; font-size: 16px; }
.auth-field input::placeholder { color: #7a7a7a; }
.auth-btn.continue { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border: 0; color: #fff; }
.auth-btn.continue:disabled { background: #1d1d1d; border: 1px solid #2c2c2c; color: #6d6d6d; cursor: default; }
.auth-switch { margin-top: 4px; font-size: 14px; color: #9b9b9b; }
.auth-switch button, .auth-legal button { border: 0; background: none; padding: 0; color: #ff8a5c; font: inherit; cursor: pointer; }
.auth-switch button:hover, .auth-legal button:hover { text-decoration: underline; }
.auth-legal { margin-top: auto; padding-top: 22px; font-size: 13px; line-height: 19px; color: #8d8d8d; max-width: 300px; }
.auth-done { align-items: center; }
.auth-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(47,160,78,.18); color: #5fd17f; }
.auth-done h3 { font-size: 22px; color: #fff; }
.auth-done p { font-size: 15px; color: #a5a5a5; line-height: 21px; }
.auth-right { position: relative; border-radius: 24px; overflow: hidden; min-height: 100%; background: #222; }
.auth-right img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(40,40,40,.72); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.auth-close:hover { background: rgba(60,60,60,.85); }
.auth-chips { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.auth-chips span { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: rgba(30,30,30,.72); color: #fff; font-size: 14px; backdrop-filter: blur(6px); }
.auth-chips i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }

@media (max-width: 760px) {
  .auth-wrap { grid-template-columns: 1fr; min-height: 0; }
  .auth-right { display: none; }
  .auth-left { padding: 26px 18px 20px; position: relative; }
  .auth-left h2 { font-size: 28px; line-height: 32px; }
}
.auth-close-m { display: none; }
@media (max-width: 760px) {
  .auth-close-m { display: grid; top: 12px; right: 12px; width: 38px; height: 38px; }
}
@media (max-width: 599px) {
  .hero-eyebrow { top: 4px; font-size: 12px; }
}

/* =========================================================
   Phone/tablet drawer fix: scrim lives inside the shell, under the menu
   ========================================================= */
@media (max-width: 1023px) {
  body.drawer-open .shell { z-index: 60; }
  body.drawer-open .scrim { z-index: 40; }
  .sidebar { z-index: 50; }
}

/* =========================================================
   Sign in: light by default, dark only in dark mode
   ========================================================= */
html:not(.dark) .auth::backdrop { background: rgba(30,30,30,.35); }
html:not(.dark) .auth-wrap { background: #ffffff; border-color: #e6e6e6; color: #1b1b1b; box-shadow: 0 30px 80px rgba(0,0,0,.18); }
html:not(.dark) .auth-left h2 { color: #111; }
html:not(.dark) .auth-sub, html:not(.dark) .auth-switch { color: #666; }
html:not(.dark) .auth-btn { background: #fff; color: #1b1b1b; border-color: #dcdcdc; }
html:not(.dark) .auth-btn:hover { background: #f6f6f6; border-color: #c8c8c8; }
html:not(.dark) .auth-btn.light { background: #fff; color: #1b1b1b; border-color: #dcdcdc; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
html:not(.dark) .auth-btn[data-provider="Apple"] { background: #111; color: #fff; border-color: #111; }
html:not(.dark) .auth-btn[data-provider="Apple"]:hover { background: #2a2a2a; }
html:not(.dark) .auth-or { color: #9a9a9a; }
html:not(.dark) .auth-field { background: #fff; border-color: #dcdcdc; color: #8a8a8a; }
html:not(.dark) .auth-field input { color: #111; }
html:not(.dark) .auth-field input::placeholder { color: #9a9a9a; }
html:not(.dark) .auth-btn.continue { color: #fff; border: 0; }
html:not(.dark) .auth-btn.continue:disabled { background: #f1f1f1; color: #a5a5a5; border: 1px solid #e6e6e6; }
html:not(.dark) .auth-switch button, html:not(.dark) .auth-legal button { color: var(--accent); }
html:not(.dark) .auth-legal { color: #777; }
html:not(.dark) .auth-done h3 { color: #111; }
html:not(.dark) .auth-done p { color: #555; }
html:not(.dark) .auth-check { background: #e3f4e8; color: #1f7a45; }
html:not(.dark) .auth-close-m { background: #f1f1f1; color: #111; }

/* =========================================================
   Added-to-plan states (green + check icon + words, so colour isn't the only cue)
   ========================================================= */
:root { --ok: #1f7a45; --ok-ink: #ffffff; --ok-soft: #e3f4e8; }
html.dark { --ok: #2e9e5b; --ok-soft: #1d3a28; }
.add-btn.done { background: var(--ok); color: var(--ok-ink); }
html.dark .add-btn.done { background: var(--ok); color: #fff; }
.add-btn.big { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slot-btn {
  min-height: 52px; padding: 6px 8px; border-radius: 12px; border: 1px dashed var(--line-strong); background: transparent;
  display: flex; align-items: center; gap: 6px; text-align: left; color: var(--ink-2); font-size: 12px; line-height: 15px;
}
.slot-btn b { display: block; font-size: 12px; color: var(--ink); }
.slot-btn span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.slot-btn:hover { border-style: solid; border-color: var(--ink-3); background: var(--soft); color: var(--ink); }
.slot-btn.is-taken { border-style: solid; border-color: var(--line); background: var(--soft); }
.slot-btn.is-added { border: 2px solid var(--ok); background: var(--ok); color: var(--ok-ink); }
.slot-btn.is-added b { color: var(--ok-ink); }
.slot-btn.is-added:hover { filter: brightness(1.08); background: var(--ok); color: var(--ok-ink); }
.pick-grid button.slot-btn:hover { background: var(--soft); color: var(--ink); }
.pick-grid button.slot-btn.is-added:hover { background: var(--ok); color: var(--ok-ink); }
.slot-btn .ic { flex: none; }

/* =========================================================
   Clickable meals + meal details window
   ========================================================= */
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.spot-foot .link-btn { font-size: 13px; font-weight: 600; color: var(--ink-2); max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meal-img[data-meal], .spot-media[data-meal] { cursor: pointer; }
button.plan-meal, button.slot-open { width: 100%; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.plan-meal:hover { outline: 2px solid var(--line-strong); }
button.slot-open { display: flex; align-items: center; gap: 10px; background: transparent; padding: 0; flex: 1; min-width: 0; }
button.slot-open:hover .slot-name { text-decoration: underline; }
.meal-modal { width: min(980px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.meal-detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); max-height: calc(100vh - 48px); }
.md-media { position: relative; min-height: 320px; background: var(--soft); }
.md-media > img, .md-media > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.md-close { display: grid; }
.md-info { padding: 26px 28px 28px; overflow-y: auto; max-height: calc(100vh - 48px); }
.md-info h2 { font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.01em; }
.md-info h3 { margin: 20px 0 8px; font-size: 16px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.md-info h3 small { font-weight: 400; font-size: 12px; color: var(--ink-3); }
.md-facts { margin-top: 10px; }
.md-info .meal-tags { margin-top: 10px; }
.md-actions { margin-top: 16px; }
.md-ing { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.md-ing li { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; }
.md-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.md-swaps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.md-swaps li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 6px 8px; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); font-size: 14px; }
.md-swaps small { grid-column: 1 / -1; color: var(--ink-2); font-size: 13px; }
.sw-from { text-decoration: line-through; color: var(--ink-3); }
.md-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.md-rel { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-size: 13px; font-weight: 600; line-height: 16px; color: var(--ink); }
.md-rel:hover { border-color: var(--ink-3); }
.md-rel .slot-art { width: 40px; height: 40px; }
.md-rel small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.md-more { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.md-more a { color: var(--accent); font-weight: 600; }
.chip-group { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.chip-label { flex: none; width: 92px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.chip-group .mood-row { margin-top: 0 !important; }
.field-label { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.field-label .text-in { width: 100%; font-weight: 400; }
.field-label select.text-in { appearance: auto; }
#dlg-post .modal-foot { flex-wrap: wrap; }

/* =========================================================
   In season
   ========================================================= */
:root { --k-fruit: #e8732a; --k-veg: #3f9a4a; --k-starch: #b07a3c; }
.season-controls { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.season-controls .select select { max-width: 320px; }
.month-row { display: flex; gap: 4px; flex-wrap: wrap; }
.month { height: 34px; min-width: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink); position: relative; }
.month.today::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.month[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.season-now { padding-top: 28px; }
.season-now h2, .swaps-sec h2, .year-sec h2 { font-size: 28px !important; line-height: 36px !important; }
.legend { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.legend i, .produce i, .year-table th i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.k-fruit i, .legend .k-fruit { background: var(--k-fruit); }
.k-veg i, .legend .k-veg { background: var(--k-veg); }
.k-starch i, .legend .k-starch { background: var(--k-starch); border-radius: 50%; }
.k-veg i { border-radius: 0; transform: rotate(45deg) scale(.85); }
.produce-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 14px; }
.produce { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.produce small { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.muted { color: var(--ink-3); font-size: 14px; }
.swaps-sec { padding-top: 40px; }
.swap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 16px; }
.swap-card { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 16px; border-top: 4px solid var(--k-veg); }
.swap-card.k-fruit { border-top-color: var(--k-fruit); }
.swap-card.k-starch { border-top-color: var(--k-starch); }
.swap-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.swap-card p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.swap-meals { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.year-sec { padding-top: 40px; }
.year-wrap { margin-top: 14px; overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.year-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.year-table th, .year-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.year-table thead th { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.year-table tbody th { text-align: left; padding-left: 14px; font-weight: 600; white-space: nowrap; }
.year-table td.on::before { content: ''; display: block; height: 14px; border-radius: 4px; background: var(--k-veg); opacity: .85; }
.year-table tr.k-fruit td.on::before { background: var(--k-fruit); }
.year-table tr.k-starch td.on::before { background: var(--k-starch); }
.year-table .cur { background: var(--soft); }
.year-table thead th.cur { color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .meal-detail { grid-template-columns: 1fr; max-height: none; }
  .meal-modal { max-height: calc(100vh - 24px); overflow-y: auto; }
  .md-media { min-height: 220px; height: 240px; }
  .md-info { max-height: none; padding: 20px 18px 22px; }
  .md-info h2 { font-size: 24px; line-height: 30px; }
  .md-related { grid-template-columns: 1fr; }
  .chip-group { flex-direction: column; align-items: flex-start; gap: 6px; }
  .chip-group .mood-row { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .chip-group .pill { flex: none; }
  .swap-grid { grid-template-columns: 1fr; }
  .month-row { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .month { flex: none; }
  .season-controls .select { width: 100%; }
  .season-controls .select select { max-width: none; flex: 1; }
}
.md-rel .slot-art, .swap-meals .slot-art { display: block; flex: none; position: relative; overflow: hidden; }
.produce small { white-space: nowrap; }
.produce span { min-width: 0; }

/* footer closing line (replaces the big wordmark) */
.foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.foot-line { margin: 48px clamp(24px, 7cqi, 100px) 0; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 400; color: var(--ink-3); text-align: center; }
@media (max-width: 1023px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .foot-line { margin: 36px 17px 0; font-size: 14px; } }

/* account (signed in) */
.account { position: relative; margin-left: 4px; }
.account[hidden] { display: none; }
.account-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.account-menu { position: absolute; right: 0; top: 42px; min-width: 220px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.14); display: grid; gap: 2px; z-index: 70; }
.account-menu[hidden] { display: none; }
.account-email { padding: 6px 10px 8px; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu a, .account-menu button { display: block; padding: 8px 10px; border-radius: 8px; border: 0; background: none; text-align: left; font-size: 14px; color: var(--ink); cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { background: var(--hover); }
.join-btn[hidden], .signin[hidden] { display: none !important; }
.auth-note { font-size: 13px !important; color: var(--ink-3) !important; }

/* produce colours: fruit red, veg green, provisions brown */
:root { --k-fruit: #d93a2b; --k-veg: #2f8f46; --k-starch: #8a5a2e; }
html.dark { --k-fruit: #ff6b5b; --k-veg: #4fbf6a; --k-starch: #c58b52; }

/* year at a glance: a normal 12-month calendar */
.cal-year { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cal-month {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: left; padding: 12px 12px 10px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; min-height: 132px;
}
.cal-month:hover { border-color: var(--ink-3); }
.cal-month.sel { border: 2px solid var(--ink); padding: 11px 11px 9px; }
.cm-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.cm-head em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--accent); color: #fff; }
.cm-items { display: flex; flex-wrap: wrap; gap: 4px; }
.cm-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 16px; padding: 2px 7px 2px 6px; border-radius: 7px; background: var(--soft); }
.cm-item i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.cm-item.k-fruit i { background: var(--k-fruit); }
.cm-item.k-veg i { background: var(--k-veg); transform: rotate(45deg) scale(.85); border-radius: 0; }
.cm-item.k-starch i { background: var(--k-starch); border-radius: 50%; }
.cm-none { font-size: 12px; color: var(--ink-3); }
.cm-all { margin-top: auto; font-size: 11px; color: var(--ink-3); }

/* community spotlight cards: name on its own line, buttons below */
.spot-title { font-size: 16px; line-height: 21px; font-weight: 700; margin-top: 2px; }
.spot-title .link-btn { font-size: inherit; font-weight: inherit; color: var(--ink); max-width: none; white-space: normal; text-align: left; }
.spot-body { gap: 10px; }
.spot-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spot-actions .ghost.sm, .spot-actions .add-btn { width: 100%; height: 34px; justify-content: center; border-radius: 10px; }
@media (max-width: 1023px) { .cal-year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .cal-year { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cal-month { min-height: 110px; padding: 10px; }
  .spot-actions .ghost { display: flex; }
  .spot-actions { grid-template-columns: 1fr; }
}

/* sign-in Continue: one solid colour, no gradient */
.auth-btn.continue, html:not(.dark) .auth-btn.continue { background: var(--accent); background-image: none; color: #fff; border: 0; }
.auth-btn.continue:hover:not(:disabled) { background: #c41f1f; }
html:not(.dark) .auth-btn.continue:disabled, .auth-btn.continue:disabled { background: #f1f1f1; color: #a5a5a5; border: 1px solid #e6e6e6; }
html.dark .auth-btn.continue:disabled { background: #1d1d1d; color: #6d6d6d; border: 1px solid #2c2c2c; }

/* ---------- Chef's chat ---------- */
.chef { max-width: 760px; margin: 0 auto; padding: 56px var(--pad) 24px; display: flex; flex-direction: column; gap: 14px; min-height: calc(100vh - var(--top-h) - 40px); }
.chef.started { justify-content: flex-end; padding-top: 24px; }
.chef-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 5px 10px; border-radius: 99px; }
.chef-intro h1 { font-size: 52px; line-height: 1.05; font-weight: 900; letter-spacing: -0.025em; margin-top: 14px; }
.chef-intro .sec-sub { font-size: 17px; margin-top: 10px; }
.chef.started .chef-intro { display: none; }
.chef-box { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 26px; padding: 14px 14px 10px; box-shadow: 0 8px 24px rgba(0,0,0,.08); position: sticky; bottom: 12px; }
.chef-box textarea { width: 100%; border: 0; outline: none; resize: none; background: transparent; font-size: 17px; min-height: 52px; }
.chef-box-foot { display: flex; justify-content: space-between; align-items: center; }
.chef-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; }
.chef-chips, .chef-follow { display: flex; flex-wrap: wrap; gap: 8px; }
.chef-log { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 85%; padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--surface); border-bottom-right-radius: 5px; }
.bubble.chef-b { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; display: flex; gap: 10px; }
.bubble.chef-b a { color: var(--accent); font-weight: 600; }
.chef-av { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.chef-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: grid; gap: 12px; }
.chef-day h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.chef-meals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chef-meal { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.25; font-weight: 600; }
.chef-meal small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.chef-meal.open { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px; color: var(--ink-3); }
.chef-art { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.chef-art svg, .chef-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.chef-card-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.chef-card-foot a { display: inline-flex; align-items: center; gap: 6px; }
.chef-steps { display: grid; gap: 8px; }
.chef-steps h3 { font-size: 22px; font-weight: 800; }
.chef-step { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); opacity: .4; transition: opacity .3s; }
.chef-step.now, .chef-step.done { opacity: 1; }
.chef-step i { width: 20px; height: 20px; border-radius: 50%; background: var(--line); display: grid; place-items: center; color: #fff; }
.chef-step.done i { background: var(--accent); }
@media (max-width: 600px) { .chef-intro h1 { font-size: 40px; } .chef { padding-top: 32px; } }

/* ---------- Saved & past plans ---------- */
.saved-tabs { display: inline-flex; margin-top: 20px; }
.saved-sec { padding-top: 18px; }
.saved-grid, .past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.saved-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.saved-card .slot-open, .cal-day .slot-open { display: flex; gap: 10px; align-items: center; border: 0; background: none; padding: 0; text-align: left; }
.saved-actions { grid-column: 1 / -1; }
.past-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.past-head { display: flex; justify-content: space-between; gap: 8px; }
.past-head h3 { font-size: 17px; font-weight: 700; }
.past-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.past-days li { display: flex; gap: 10px; }
.past-days b { flex: none; width: 46px; color: var(--accent); }
.past-card .primary { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.empty .pill { display: inline-flex; margin-top: 12px; }
.save-later[aria-pressed="true"] { color: #e23b55; border-color: #e23b55; }
.save-later[aria-pressed="true"] .ic { fill: currentColor; }
.md-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Shopping list ---------- */
.shop-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.shop-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; text-transform: capitalize; }
.shop-list .tick { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; }
.shop-list button[aria-pressed="true"] { color: var(--ink-3); text-decoration: line-through; }
.shop-list button[aria-pressed="true"] .tick { background: var(--green); border-color: var(--green); color: #fff; }
.shop-list small { color: var(--ink-3); margin-left: auto; }
.chef-chips[hidden], .chef-follow[hidden] { display: none; }
.chef-card { max-width: 560px; } .chef-art { aspect-ratio: 4 / 3; }
.web-results { margin-top: 26px; }
.web-head { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.web-head small { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.meal-img img.photo, .slot-art img.photo, .chef-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.web-results { margin-top: 26px; }
.web-head { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.web-head small { font-weight: 400; font-size: 13px; color: var(--ink-3); }
