/* ==========================================================================
   Steward Meal Studio — editorial, warm, minimal
   ========================================================================== */
:root {
  /* Oat (everyday) — sweet potato, citrus & honey */
  --bg: #F2EADC;
  --paper: #F9F4EA;
  --card: #FFFCF6;
  --ink: #2B1E15;
  --ink-2: #4A3A2E;
  --muted: #6A5848;
  --line: #E2D5BF;
  --line-2: #EBE1CE;
  --clay: #BF5520;          /* sweet potato: buttons + accents */
  --clay-dark: #9A4318;
  --clay-tint: #F6E0D0;
  --citrus: #D9661E;        /* handwritten labels */
  --honey: #F0B03F;         /* highlights */
  --on-clay: #FFFFFF;
  --pill: #2B1E15;          /* protein pill + dark blocks */
  --on-pill: #FFFCF6;
  --block: #3A2418;         /* "Craving something different?" block */
  --on-block: #FFFCF6;
  --block-sub: #F3DCC6;
  --topbar: rgba(242, 234, 220, .92);
  --btn-hover: #46342A;
  --sage: #74836A;
  --sage-tint: #E6EBDF;
  --butter: #F0B03F;
  --butter-tint: #FAEBC8;
  --danger: #A8473A;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(43, 30, 21, .04), 0 8px 24px -12px rgba(43, 30, 21, .18);
  --shadow-lg: 0 24px 60px -20px rgba(43, 30, 21, .35);
  --serif: "Atma", "DM Sans", system-ui, sans-serif;   /* headlines (planner font) */
  --brush: "Caveat Brush", "Atma", cursive;             /* colored labels */
  --note: "Gaegu", "DM Sans", cursive;                  /* short notes */
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1180px;
  --tabbar: 0px;
}
/* Espresso night mode — oat takes the place of the orange */
html[data-theme="dark"] {
  --bg: #221914;
  --paper: #2D221B;
  --card: #33271F;
  --ink: #F7EEE3;
  --ink-2: #E2D5C6;
  --muted: #C2B2A4;
  --line: #46372C;
  --line-2: #3A2D24;
  --clay: #F2EADC;
  --clay-dark: #FFFFFF;
  --clay-tint: #3D2F25;
  --citrus: #F2EADC;
  --honey: #F0B03F;
  --on-clay: #221914;
  --pill: #15100C;
  --on-pill: #F7EEE3;
  --block: #F2EADC;
  --on-block: #221914;
  --block-sub: #5E4A3C;
  --topbar: rgba(34, 25, 20, .92);
  --btn-hover: #FFFFFF;
  --sage: #A9B89E;
  --sage-tint: #2F3A2C;
  --butter: #F0B03F;
  --butter-tint: #3B2F1E;
  --danger: #E08A7C;
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 8px 24px -12px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1.1; letter-spacing: -.005em; }
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
p { margin: 0 0 .8em; }
.eyebrow { font-family: var(--brush); font-size: 20px; line-height: 1.1; letter-spacing: 0; color: var(--citrus); font-weight: 400; }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- Layout ---------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; background: var(--topbar);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.brand-mark { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.brand-sub { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--paper); }
.nav a.active { background: var(--ink); color: var(--paper); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: inline-grid; place-items: center; text-decoration: none; position: relative; }
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn svg { width: 18px; height: 18px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--clay); color: var(--on-clay); display: grid; place-items: center; font-family: var(--serif); font-size: 19px; border: 0; }
.main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 36px 28px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head p { color: var(--muted); max-width: 560px; margin: 10px 0 0; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.section-head a { font-size: 13px; color: var(--clay); text-decoration: none; font-weight: 500; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }

.tabbar { display: none; }
.demo-ribbon { background: var(--ink); color: var(--butter-tint); font-size: 12.5px; text-align: center; padding: 7px 14px; }
.demo-ribbon b { color: #fff; font-weight: 600; }
.demo-ribbon button { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 2px 10px; margin-left: 8px; font-size: 12px; }
.demo-ribbon button.on { background: var(--butter); color: var(--ink); border-color: var(--butter); }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 500; font-size: 14px; text-decoration: none; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-clay { background: var(--clay); border-color: var(--clay); color: var(--on-clay); }
.btn-clay:hover { background: var(--clay-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-2); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: transparent; padding: 8px 12px; }
.btn-quiet:hover { background: var(--paper); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 16px 30px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.btn-danger { color: var(--danger); border-color: transparent; background: transparent; }
.btn-danger:hover { background: #F6E4E0; }
.btn.saved svg { fill: currentColor; }
.link { background: none; border: 0; padding: 0; color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Cards ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.recipe-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; position: relative; }
.recipe-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.recipe-card .art { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--line-2); cursor: pointer; }
.recipe-card .art svg, .recipe-card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.recipe-card .title { font-family: var(--serif); font-size: 22px; line-height: 1.15; margin: 6px 0 6px; cursor: pointer; text-decoration: none; }
.recipe-card .title:hover { color: var(--clay); }
.recipe-card .desc { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 12px; }
.recipe-card .meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; margin-top: auto; }
.recipe-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.recipe-card .meta svg { width: 13px; height: 13px; opacity: .7; }
.recipe-card .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.recipe-card .heart { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(251, 248, 243, .92); display: grid; place-items: center; }
.recipe-card .heart svg { width: 17px; height: 17px; }
.recipe-card .heart.on svg { fill: var(--clay); stroke: var(--clay); }
.recipe-card .lock { position: absolute; inset: 0; background: rgba(42, 36, 30, .35); display: grid; place-items: center; color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; backdrop-filter: blur(1px); }
.recipe-card.compact .art { aspect-ratio: 16/10; }
.recipe-card.compact .title { font-size: 19px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--clay-tint); color: var(--clay-dark); }
.badge.sage { background: var(--sage-tint); color: #4D5A45; }
.badge.butter { background: var(--butter-tint); color: #7A6326; }
.badge.ink { background: var(--ink); color: var(--paper); }
.badge.line { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.badge.danger { background: #F6E4E0; color: var(--danger); }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- Home ---------------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: stretch; }
.hero-cta {
  background: var(--ink); color: var(--paper); border-radius: 22px; padding: 44px 44px 40px; position: relative; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; min-height: 330px;
}
.hero-cta::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(237, 221, 176, .25); box-shadow: 0 0 0 40px rgba(237, 221, 176, .04), 0 0 0 80px rgba(237, 221, 176, .03); }
.hero-cta .eyebrow { color: var(--butter); }
.hero-cta h1 { font-size: clamp(40px, 5.2vw, 64px); text-transform: uppercase; letter-spacing: .01em; line-height: .98; margin: 18px 0; }
.hero-cta h1 em { font-style: italic; text-transform: none; color: var(--butter); font-weight: 400; }
.hero-cta .go { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--butter-tint); }
.hero-cta .go span.arrow { width: 46px; height: 46px; border-radius: 50%; background: var(--butter); color: var(--ink); display: grid; place-items: center; transition: transform .2s; }
.hero-cta:hover .go span.arrow { transform: translateX(6px); }
.hero-side { display: grid; grid-template-rows: auto 1fr; gap: 18px; }
.greeting h2 { font-size: 40px; }
.greeting p { color: var(--muted); margin-top: 8px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick a { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; min-height: 120px; transition: border-color .2s, transform .2s; }
.quick a:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.quick .num { font-family: var(--serif); font-size: 40px; line-height: 1; }
.quick .lbl { font-size: 12.5px; color: var(--muted); }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.week-strip .d { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 108px; display: flex; flex-direction: column; }
.week-strip .d.today { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.week-strip .dn { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.week-strip .m { font-family: var(--serif); font-size: 16.5px; line-height: 1.15; margin-top: 8px; text-decoration: none; }
.week-strip .m:hover { color: var(--clay); }
.week-strip .empty { color: var(--muted); font-size: 12.5px; margin-top: 8px; text-decoration: none; }
.collection-feature { display: grid; grid-template-columns: 1fr 1.2fr; border-radius: 22px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.collection-feature .cover { min-height: 340px; position: relative; }
.collection-feature .cover svg, .collection-feature .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-feature .info { padding: 38px 40px; display: flex; flex-direction: column; }
.collection-feature h2 { font-size: 46px; margin: 10px 0 12px; }
.collection-feature .mini-list { margin: 18px 0 24px; border-top: 1px solid var(--line); }
.collection-feature .mini-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 18.5px; }
.collection-feature .mini-list a:hover { color: var(--clay); }
.collection-feature .mini-list small { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); align-self: center; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.scroller > * { scroll-snap-align: start; }
.empty-state { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--muted); background: rgba(251, 248, 243, .5); }
.empty-state h4 { color: var(--ink); margin-bottom: 6px; }
.empty-state .btn { margin-top: 14px; }

/* ---------------- Collections ---------------- */
.col-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); text-decoration: none; display: block; transition: transform .2s, box-shadow .2s; }
.col-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.col-card .cover { aspect-ratio: 16/10; position: relative; }
.col-card .cover svg, .col-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.col-card .info { padding: 20px 22px 22px; }
.col-card h3 { font-size: 30px; margin: 6px 0 8px; }
.col-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 34px; }
.col-hero .cover { border-radius: 22px; overflow: hidden; aspect-ratio: 5/4; position: relative; }
.col-hero .cover svg, .col-hero .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.col-hero h1 { margin: 12px 0 14px; }
.segmented { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; padding: 8px 15px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); }
.segmented button.on { background: var(--ink); color: var(--paper); }
.notice { display: flex; gap: 14px; align-items: center; background: var(--butter-tint); border: 1px solid #E7D7A8; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; flex-wrap: wrap; }
.notice.sage { background: var(--sage-tint); border-color: #CFD8C4; }
.notice.clay { background: var(--clay-tint); border-color: #E5CBB9; }
.notice p { margin: 0; flex: 1; min-width: 200px; font-size: 14px; }

/* ---------------- Generator ---------------- */
.gen-head { text-align: center; max-width: 680px; margin: 10px auto 30px; }
.gen-head h1 { margin: 14px 0 12px; }
.gen-head p { color: var(--muted); }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 0 auto 30px; }
.mode-switch button { text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; transition: all .2s; }
.mode-switch button:hover { border-color: var(--ink-2); }
.mode-switch button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mode-switch .mi { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--clay-tint); color: var(--clay); display: grid; place-items: center; }
.mode-switch button.on .mi { background: var(--butter); color: var(--ink); }
.mode-switch b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.mode-switch small { font-size: 13px; opacity: .75; }
.studio { max-width: 960px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 34px 38px; box-shadow: var(--shadow); }
.field { margin-bottom: 28px; }
.field > label, .field-label { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.field-label .step { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; color: var(--clay); font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 15px; font-size: 13.5px; transition: all .15s; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.must { background: var(--clay); color: var(--on-clay); border-color: var(--clay); }
.chip.x { background: #EFE4DF; border-color: #E2CFC6; text-decoration: line-through; color: var(--muted); }
.chip .x-btn { border: 0; background: transparent; padding: 0 0 0 4px; opacity: .7; font-size: 15px; line-height: 1; }
.chip svg { width: 13px; height: 13px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(160, 96, 63, .12); }
.textarea { min-height: 84px; resize: vertical; }
.input-sm { padding: 7px 10px; font-size: 13.5px; }
.tag-input { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 10px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; min-height: 54px; cursor: text; }
.tag-input:focus-within { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(160, 96, 63, .12); }
.tag-input input { border: 0; outline: none; background: transparent; flex: 1; min-width: 160px; padding: 6px; font-size: 14.5px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.stepper button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 18px; border-radius: 50%; }
.stepper button:hover { background: var(--line-2); }
.stepper span { min-width: 34px; text-align: center; font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
details.more { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }
details.more summary { cursor: pointer; font-family: var(--serif); font-size: 21px; list-style: none; display: flex; align-items: center; gap: 10px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-family: var(--sans); font-size: 18px; color: var(--clay); margin-left: auto; }
details.more[open] summary::after { content: "–"; }
details.more[open] summary { margin-bottom: 20px; }
.create-bar { display: flex; align-items: center; gap: 18px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 10px; flex-wrap: wrap; }
.usage-meter { font-size: 12.5px; color: var(--muted); min-width: 180px; }
.usage-meter .bar { height: 5px; background: var(--line); border-radius: 9px; overflow: hidden; margin-top: 6px; }
.usage-meter .bar i { display: block; height: 100%; background: var(--sage); border-radius: 9px; }
.results { margin-top: 44px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.have-buy { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.loading-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.loading-card .shimmer { aspect-ratio: 4/3; background: linear-gradient(100deg, var(--line-2) 30%, var(--paper) 50%, var(--line-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; }
.loading-card .l { height: 12px; margin: 16px 18px; border-radius: 6px; background: var(--line-2); }
.loading-card .l.w60 { width: 60%; } .loading-card .l.w80 { width: 80%; height: 20px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.studio-loading { text-align: center; padding: 18px 0 4px; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ink-2); }
.dots::after { content: ""; animation: dots 1.4s infinite steps(4); }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ---------------- Recipe page ---------------- */
.recipe-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; margin-bottom: 40px; }
.recipe-hero .art { border-radius: 22px; overflow: hidden; aspect-ratio: 1/1; position: relative; box-shadow: var(--shadow-lg); }
.recipe-hero .art svg, .recipe-hero .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recipe-hero h1 { margin: 14px 0 16px; font-size: clamp(38px, 4.6vw, 56px); }
.recipe-hero .lede { font-size: 17px; color: var(--ink-2); font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 26px 0; }
.stats div { padding: 14px 6px; text-align: center; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; }
.stats span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.recipe-body { display: grid; grid-template-columns: 380px 1fr; gap: 44px; align-items: start; }
.sticky { position: sticky; top: 92px; }
.ing-list { list-style: none; padding: 0; margin: 0; }
.ing-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.ing-list li.done .ing-text { text-decoration: line-through; color: var(--muted); }
.ing-list .amt { font-weight: 600; }
.ing-list .prep { color: var(--muted); }
.ing-list .have-toggle { border: 1px solid var(--line); background: transparent; font-size: 11px; padding: 3px 8px; border-radius: 999px; color: var(--muted); }
.ing-list .have-toggle.on { background: var(--sage-tint); color: #4D5A45; border-color: #CFD8C4; }
.ing-group { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); font-weight: 700; margin: 18px 0 2px; }
.check { width: 20px; height: 20px; border: 1.5px solid #BFB2A1; border-radius: 6px; display: grid; place-items: center; background: var(--card); cursor: pointer; margin-top: 1px; padding: 0; }
.check.on { background: var(--sage); border-color: var(--sage); }
.check.on::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; font-size: 15.5px; line-height: 1.6; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 30px; color: var(--clay); line-height: 1; }
.steps li.done { color: var(--muted); }
.steps li.done::before { color: var(--line); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.nutri { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; }
.nutri b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.nutri span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.subs { list-style: none; padding: 0; margin: 0; }
.subs li { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.subs li:last-child { border-bottom: 0; }
.subs b { font-weight: 600; }
.chef-note { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 22px 24px; margin-top: 18px; font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1.4; }
.chef-note .eyebrow { color: var(--butter); font-family: var(--sans); font-style: normal; display: block; margin-bottom: 8px; }
.locked-panel { text-align: center; padding: 50px 30px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 13.5px; margin-bottom: 18px; background: none; border: 0; padding: 0; }
.back-link:hover { color: var(--ink); }

.credit-block { margin-top: 26px; padding: 22px 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.credit-block a { text-decoration: none; border-bottom: 1px solid var(--clay); }
.credit-block a:hover { color: var(--clay); }

.protein-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: var(--pill); color: var(--on-pill); border-radius: 999px; padding: 6px 12px 6px 10px; display: inline-flex; align-items: baseline; gap: 5px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.protein-tag b { font-family: var(--serif); font-size: 21px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--butter); line-height: 1; }
.recipe-card.compact .protein-tag b { font-size: 18px; }
.protein-hero { display: inline-flex; align-items: center; gap: 12px; background: var(--pill); color: var(--on-pill); border-radius: 16px; padding: 10px 18px 10px 16px; margin: -2px 0 16px; }
.protein-hero b { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--butter); font-weight: 600; }
.protein-hero span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; line-height: 1.35; }
.week-protein { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--clay-dark); background: var(--clay-tint); border-radius: 999px; padding: 2px 8px; }

.effort { display: inline-flex; align-items: flex-end; gap: 2px; margin-right: 6px; vertical-align: -1px; font-style: normal; }
.effort i { display: block; width: 4px; border-radius: 2px; background: var(--line); }
.effort i.on { background: var(--clay); }
.effort.big { gap: 3px; margin-right: 10px; vertical-align: 0; }
.effort.big i { width: 6px; }

/* ---------------- Week ---------------- */
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.day-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 260px; display: flex; flex-direction: column; gap: 10px; }
.day-col.today { border-color: var(--clay); }
.day-col h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; display: flex; justify-content: space-between; }
.day-col h4 small { font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: none; }
.slot { border-radius: 11px; min-height: 64px; }
.slot-label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.meal { background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 10px 10px 8px; cursor: grab; }
.meal:active { cursor: grabbing; }
.meal.dragging { opacity: .4; }
.meal a.mt { font-family: var(--serif); font-size: 17px; line-height: 1.15; text-decoration: none; display: block; }
.meal a.mt:hover { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.meal .mtools { display: flex; gap: 2px; margin-top: 6px; justify-content: flex-end; }
.meal .mtools button { border: 0; background: transparent; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.meal .mtools button:hover { background: var(--line-2); color: var(--ink); }
.meal .mtools svg { width: 14px; height: 14px; }
.add-slot { width: 100%; border: 1.5px dashed var(--line); background: transparent; border-radius: 11px; padding: 14px 8px; color: var(--muted); font-size: 12.5px; }
.add-slot:hover { border-color: var(--clay); color: var(--clay); }
.slot.drop-over .add-slot, .slot.drop-over .meal { border-color: var(--clay); background: var(--clay-tint); }
.week-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle .tr { width: 36px; height: 21px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.toggle .tr::after { content: ""; position: absolute; width: 15px; height: 15px; top: 3px; left: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + .tr { background: var(--sage); }
.toggle input:checked + .tr::after { transform: translateX(15px); }
.print-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 56px; max-width: 820px; margin: 0 auto; }
.print-sheet h1 { font-size: 44px; }
.print-sheet .pday { display: grid; grid-template-columns: 140px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 18px; }
.print-sheet .pday b { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; }
.print-sheet .pday div div { font-family: var(--serif); font-size: 20px; }
.print-sheet .pday small { font-family: var(--sans); color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-right: 8px; }

/* ---------------- Grocery ---------------- */
.grocery-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.aisle { margin-bottom: 26px; }
.aisle h3 { font-size: 24px; display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.aisle h3 small { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.g-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.g-item.checked .g-name { text-decoration: line-through; color: var(--muted); }
.g-item.owned { opacity: .55; }
.g-name { font-weight: 500; font-size: 15px; }
.g-qty { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 1px 6px; margin-left: 4px; color: var(--clay-dark); font-weight: 600; width: auto; min-width: 40px; max-width: 160px; font-size: 14px; }
.g-qty:hover, .g-qty:focus { border-color: var(--line); background: var(--card); outline: none; }
.g-src { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.g-src a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.g-src a:hover { color: var(--clay); border-color: var(--clay); }
.g-tools { display: flex; gap: 4px; }
.g-tools button { font-size: 11.5px; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 9px; color: var(--muted); }
.g-tools button.on { background: var(--sage-tint); color: #4D5A45; border-color: #CFD8C4; }
.g-tools button:hover { color: var(--ink); border-color: var(--ink-2); }
.progress { height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--sage); transition: width .3s; }
body.shopping .g-item { padding: 16px 0; }
body.shopping .g-item .check { width: 28px; height: 28px; border-radius: 8px; }
body.shopping .g-name { font-size: 17px; }
body.shopping .g-item.owned { display: none; }

/* ---------------- Saved ---------------- */
.saved-layout { display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: start; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav button { text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 9px; font-size: 14px; display: flex; justify-content: space-between; color: var(--ink-2); }
.side-nav button:hover { background: var(--paper); }
.side-nav button.on { background: var(--ink); color: var(--paper); }
.side-nav button small { opacity: .6; }
.side-nav .sep { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 16px 12px 6px; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search input { padding-left: 38px; border-radius: 999px; }

/* ---------------- Modal / toast / menu ---------------- */
.modal-back { position: fixed; inset: 0; background: rgba(42, 36, 30, .45); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { background: var(--paper); border-radius: 20px; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); animation: rise .2s; }
.modal.wide { max-width: 860px; }
.modal-head { padding: 24px 28px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-body { padding: 18px 28px 26px; }
.modal-foot { padding: 0 28px 24px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.day-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day-pick button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; position: relative; }
.day-pick button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day-pick button.taken::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.picker-list { max-height: 380px; overflow: auto; margin-top: 12px; border-top: 1px solid var(--line); }
.picker-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line-2); }
.picker-item .thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; }
.picker-item .thumb svg, .picker-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.picker-item b { font-family: var(--serif); font-size: 18px; font-weight: 500; display: block; line-height: 1.15; }
.toast-wrap { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar)); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg); animation: rise .2s; pointer-events: auto; display: flex; gap: 12px; align-items: center; }
.toast a, .toast button { color: var(--butter); background: none; border: 0; text-decoration: underline; padding: 0; }
.toast.error { background: var(--danger); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; z-index: 60; }
.menu a, .menu button { display: flex; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; text-decoration: none; border: 0; background: transparent; font-size: 14px; gap: 10px; align-items: center; }
.menu a:hover, .menu button:hover { background: var(--line-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu .who { padding: 10px 12px; font-size: 13px; }

/* ---------------- Account / plans ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--card); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan .price { font-family: var(--serif); font-size: 38px; margin: 8px 0 4px; }
.plan ul { padding-left: 18px; margin: 12px 0 18px; font-size: 13.5px; color: var(--ink-2); flex: 1; }
.plan li { margin-bottom: 5px; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--ink); color: var(--paper); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art h1 { font-size: clamp(44px, 5vw, 70px); line-height: 1; }
.auth-art h1 em { color: var(--butter); font-weight: 400; }
.auth-form { display: grid; place-items: center; padding: 40px; }
.auth-form form { width: 100%; max-width: 380px; }
.auth-form label { display: block; font-size: 13px; font-weight: 500; margin: 14px 0 6px; }

/* ---------------- Admin ---------------- */
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.admin-tabs a { padding: 11px 16px; text-decoration: none; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.admin-tabs a.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi b { display: block; font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1.05; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:hover td { background: rgba(251, 248, 243, .7); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.bars div { flex: 1; background: var(--sage); border-radius: 5px 5px 0 0; min-height: 3px; position: relative; }
.bars div:hover::after { content: attr(data-v); position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--line); }
.status-dot.ok { background: var(--sage); }
.status-dot.warn { background: #D2A44A; }
.editor-grid { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.form-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.form-group { margin-bottom: 16px; }
.form-group > label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.ing-editor { display: grid; grid-template-columns: 70px 80px 1fr 1fr 120px 100px 32px; gap: 6px; margin-bottom: 6px; align-items: center; }
.ing-editor.head { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.list-editor { display: grid; grid-template-columns: 30px 1fr 32px; gap: 8px; margin-bottom: 8px; align-items: start; }
.list-editor .n { font-family: var(--serif); font-size: 22px; color: var(--clay); text-align: center; }
.x-del { border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; font-size: 18px; }
.x-del:hover { background: #F6E4E0; color: var(--danger); }
.upload-drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 14px; text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; display: block; }
.upload-drop:hover { border-color: var(--clay); color: var(--clay); }
.upload-preview { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; position: relative; margin-bottom: 10px; }
.upload-preview svg, .upload-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reorder { display: flex; flex-direction: column; gap: 6px; }
.reorder-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.reorder-item .t { font-family: var(--serif); font-size: 17px; line-height: 1.15; }
.reorder-item .mv { display: flex; gap: 2px; }
.reorder-item .mv button { border: 1px solid var(--line); background: transparent; border-radius: 7px; width: 28px; height: 28px; font-size: 12px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: 13.5px; }
  .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --tabbar: 68px; }
  .nav, .hide-m { display: none !important; }
  .topbar-inner { padding: 12px 18px; gap: 12px; justify-content: space-between; }
  .main { padding: 24px 18px calc(var(--tabbar) + 40px); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(10px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; font-size: 10.5px; color: var(--muted); padding: 6px 0; letter-spacing: .02em; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--clay); }
  .tabbar a.gen svg { background: var(--pill); color: var(--honey); border-radius: 50%; padding: 6px; width: 34px; height: 34px; margin-top: -10px; box-shadow: var(--shadow); }
  .hero, .collection-feature, .col-hero, .recipe-hero, .recipe-body, .grocery-layout, .saved-layout, .editor-grid, .auth-wrap { grid-template-columns: 1fr; }
  .hero-cta { min-height: 260px; padding: 32px 28px; }
  .collection-feature .cover { min-height: 220px; }
  .collection-feature .info { padding: 26px 24px; }
  .collection-feature h2 { font-size: 36px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-2, .two-col, .info-grid, .plans { grid-template-columns: 1fr; }
  .week-strip { grid-template-columns: repeat(7, minmax(110px, 1fr)); overflow-x: auto; }
  .week-grid { grid-template-columns: 1fr; }
  .day-col { min-height: 0; }
  .studio { padding: 24px 20px; border-radius: 18px; }
  .mode-switch { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div.wide { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .sticky { position: static; }
  .recipe-hero { gap: 22px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .ing-editor { grid-template-columns: 60px 70px 1fr 32px; }
  .ing-editor .opt-m { display: none; }
  .auth-art { padding: 36px 28px; min-height: 260px; }
  .recipe-card .title { font-size: 19px; }
  .recipe-card .body { padding: 12px 13px 14px; }
  .recipe-card .actions .btn { padding: 6px 10px; font-size: 12px; }
  .side-nav { flex-direction: row; overflow-x: auto; }
  .segmented { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; border-radius: 999px; }
  .segmented button { white-space: nowrap; }
  .side-nav .sep { display: none; }
  .side-nav button { white-space: nowrap; gap: 6px; }
  .print-sheet { padding: 28px 22px; }
  .print-sheet .pday { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 520px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .quick .num { font-size: 32px; }
  .brand-mark { font-size: 22px; }
}

/* ---------------- Print ---------------- */
@media print {
  body { background: #fff; }
  .topbar, .tabbar, .demo-ribbon, .no-print, .toast-wrap { display: none !important; }
  .main { padding: 0; max-width: none; }
  .print-sheet { border: 0; padding: 0; }
  .g-tools, .g-item .check { display: none; }
  .grocery-layout { grid-template-columns: 1fr; }
  a { text-decoration: none; }
}
.stats div.wide b { font-size: 22px; white-space: nowrap; }

.badge.indy { background: var(--clay); color: var(--on-clay); }


/* ==========================================================================
   Planner fonts + Today home
   ========================================================================== */
h1 em, h2 em, h3 em { font-family: var(--brush); font-style: normal; font-weight: 400; color: var(--clay); }
.brand-mark { font-weight: 700; font-size: 24px; letter-spacing: 0; }
.avatar { font-weight: 700; font-size: 18px; }
.recipe-card .title { font-size: 19px; font-weight: 700; }
.studio-loading, .chef-note { font-family: var(--note); font-style: normal; font-weight: 700; }
.recipe-hero .lede { font-family: var(--sans); font-size: 17px; line-height: 1.55; }
.stats b, .nutri b, .quick .num { font-weight: 700; }
.week-strip .m, .collection-feature .mini-list a, .mode-switch b, .field > label, .field-label, details.more summary { font-weight: 600; font-size: .86em; }
.field > label, .field-label { font-size: 19px; }
.mode-switch b, details.more summary { font-size: 18px; }
.week-strip .m { font-size: 14.5px; }
.collection-feature .mini-list a { font-size: 16px; }
.steps li::before { font-weight: 700; font-size: 26px; }
.protein-tag b, .protein-hero b { font-weight: 700; color: var(--honey); }
.chef-note { background: var(--pill); color: var(--on-pill); font-size: 19px; }
.badge.sage { color: var(--sage); }
.badge.butter { color: #8A6A1E; }
html[data-theme="dark"] .badge.butter { color: var(--honey); }
html[data-theme="dark"] .notice, html[data-theme="dark"] .notice.sage, html[data-theme="dark"] .notice.clay { border-color: var(--line); }
html[data-theme="dark"] .chip.x { background: #3A2D24; border-color: var(--line); }
html[data-theme="dark"] .badge.danger { background: #3D2420; }
html[data-theme="dark"] .print-sheet { background: var(--card); }
html[data-theme="dark"] .demo-ribbon { background: #15100C; }

.today { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.today-greet { display: flex; flex-direction: column; gap: 4px; }
.today-greet h1 { font-size: clamp(28px, 4vw, 38px); }
.today-greet .eyebrow { color: var(--muted); }
html[data-theme="dark"] .today-greet .eyebrow { color: var(--citrus); }
.tonight { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tonight .photo { position: relative; height: 230px; display: block; background: var(--line-2); }
.tonight .photo svg, .tonight .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tonight .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.tonight h2 { font-size: 25px; line-height: 1.15; }
.tonight h2 a { text-decoration: none; }
.tonight .note { font-family: var(--note); font-size: 18px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.tonight .btn { margin-top: 10px; width: 100%; padding: 14px 20px; }
.tonight.empty .body { padding: 26px 22px; align-items: flex-start; }
.tonight.empty p { color: var(--muted); margin: 2px 0 6px; }
.tonight.empty .row { width: 100%; }
.tonight.empty .row .btn { margin-top: 4px; width: auto; flex: 1; min-width: 180px; }
.craving { background: var(--block); color: var(--on-block); border-radius: 20px; padding: 24px; text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: transform .15s; }
.craving:hover { transform: translateY(-2px); }
.craving .t { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.1; display: block; }
.craving .t em { font-family: var(--brush); font-style: normal; font-weight: 400; font-size: 1.22em; color: var(--honey); }
html[data-theme="dark"] .craving .t em { color: #A8701A; }
.craving .s { font-family: var(--note); font-size: 18px; font-weight: 700; color: var(--block-sub); display: block; margin-top: 4px; }
.craving .go { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--honey); color: #2B1E15; display: grid; place-items: center; transition: transform .2s; }
html[data-theme="dark"] .craving .go { background: #221914; color: var(--honey); }
.craving:hover .go { transform: translateX(4px); }
.craving .go svg { width: 20px; height: 20px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tiles a { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 13px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 96px; transition: border-color .2s, transform .2s; }
.tiles a:hover { border-color: var(--clay); transform: translateY(-2px); }
.tiles .num { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1; }
.tiles .num.words { font-size: 17px; line-height: 1.15; }
.tiles .lbl { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.drop { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.drop .eyebrow { color: var(--muted); }
html[data-theme="dark"] .drop .eyebrow { color: var(--citrus); }
.drop a.row-card { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-decoration: none; }
.drop a.row-card:hover { border-color: var(--clay); }
.drop .thumb { width: 76px; height: 76px; flex: none; border-radius: 10px; overflow: hidden; position: relative; }
.drop .thumb svg, .drop .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .ttl { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.15; display: block; }
.drop .sub { font-size: 12.5px; color: var(--muted); }
.drop .chev { margin-left: auto; color: var(--clay); padding-right: 6px; }
.drop .chev svg { width: 18px; height: 18px; }
.theme-pick { margin-top: 6px; }
@media (max-width: 520px) {
  .tonight .photo { height: 190px; }
  .craving { padding: 20px; }
  .craving .t { font-size: 23px; }
  .tiles .num.words { font-size: 15px; }
}
html[data-theme="dark"] .tabbar a.gen svg { background: var(--clay); color: var(--on-clay); }

.nudge { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--honey); border-radius: 14px; padding: 14px 16px; text-decoration: none; transition: border-color .2s, transform .2s; }
a.nudge:hover { transform: translateY(-2px); border-color: var(--clay); border-left-color: var(--honey); }
.nudge-dot { display: none; }
.nudge .eyebrow { display: block; font-size: 18px; margin-bottom: 2px; }
.nudge-t { display: block; font-family: var(--note); font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--ink); }
.nudge .chev { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--clay-tint); color: var(--clay); display: grid; place-items: center; }
.nudge .chev svg { width: 16px; height: 16px; }
html[data-theme="dark"] .nudge .chev { background: #3D2F25; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles .g-tile .progress { height: 7px; background: var(--line-2); margin-top: 2px; }
.tiles .g-tile .progress i { background: var(--honey); }
.tiles .g-got { font-family: var(--note); font-weight: 700; font-size: 15px; color: var(--muted); line-height: 1; }

/* ---------- Weekly verse ---------- */
.verse { margin: 8px 0 0; font-family: var(--note); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--ink-2); }
.verse .vr { display: block; margin-top: 3px; font-family: var(--brush); font-weight: 400; font-size: 16px; color: var(--citrus); }
.verse.empty { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; }
.verse-list { display: flex; flex-direction: column; gap: 12px; }
.verse-row { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: start; }
.verse-row.now { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.verse-row .vmeta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.verse-row textarea { width: 100%; resize: vertical; font-family: var(--sans); }
@media (max-width: 720px) { .verse-row { grid-template-columns: 1fr; } }

/* ---------- Tonight actions ---------- */
.tonight-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 10px; }
.tonight .tonight-actions .btn { margin-top: 0; width: 100%; }
.btn svg { flex: none; }

/* ---------- Did you love it? (My Week, past days) ---------- */
.rate { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.rate > span { font-family: var(--brush); font-size: 16px; color: var(--citrus); line-height: 1; }
.rate div { display: flex; gap: 5px; flex-wrap: wrap; }
.rate button, .rated { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 9px; font-size: 11.5px; color: var(--ink-2); }
.rate button:hover { border-color: var(--clay); color: var(--clay); }
.rated { margin-top: 8px; align-self: flex-start; }
.rated.love { background: var(--clay); border-color: var(--clay); color: var(--on-clay); }
.rated.nope { color: var(--muted); text-decoration: none; }

/* ---------- Cooking mode ---------- */
body.cooking { overflow: hidden; }
.cook { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; padding: 0 0 env(safe-area-inset-bottom); animation: fade .15s; }
.cook-top { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 2; }
.cook-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 16px; flex: none; }
.cook-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cook-title .eyebrow { font-size: 17px; }
.cook-title b { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook-bar { height: 5px; background: var(--line-2); }
.cook-bar i { display: block; height: 100%; background: var(--honey); transition: width .3s; }
.cook-ing { background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 24px 14px; }
.cook-ing ul { margin: 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 28px; }
.cook-ing li { padding: 6px 0; border-bottom: 1px solid var(--line-2); break-inside: avoid; font-size: 15px; }
.cook-body { flex: 1; max-width: 760px; width: 100%; margin: 0 auto; padding: 32px 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.cook-body .eyebrow { font-size: 22px; }
.cook-step { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.45; margin: 0; color: var(--ink); }
.cook-timers { max-width: 760px; width: 100%; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 8px; }
.ctimer { display: flex; align-items: center; gap: 12px; background: var(--pill); color: var(--on-pill); border-radius: 14px; padding: 10px 14px; }
.ctimer span { flex: 1; font-size: 13px; opacity: .85; }
.ctimer b { font-family: var(--serif); font-size: 26px; color: var(--honey); font-variant-numeric: tabular-nums; }
.ctimer.done { background: var(--clay); color: var(--on-clay); }
.ctimer.done b { color: var(--on-clay); }
.ctimer button { border: 0; background: transparent; color: inherit; opacity: .7; font-size: 14px; }
.cook-nav { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); margin-top: 20px; }
.cook-nav .btn { padding: 16px 20px; font-size: 16px; }

/* Nutrition numbers: clean, even-width digits for easy reading */
.nutri b { font-family: var(--sans); font-weight: 700; font-size: 24px; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; }
.nutri span, .nutri small { font-family: var(--sans); }

.picker-item .pk-protein { display: inline; font-family: var(--sans); font-size: inherit; font-weight: 700; color: var(--clay); margin: 0; }
@media (max-width: 640px) {
  .segmented.picker-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 16px; }
  .segmented.picker-tabs button { border-radius: 12px; padding: 9px 8px; }
}
.mode-switch button.on .mi { color: #2B1E15; }
.mode-switch .mi svg { width: 20px; height: 20px; }
.recipe-card .lock { display: flex; align-items: center; justify-content: center; gap: 2px; }
.recipe-card .lock svg { width: 15px; height: 15px; flex: none; }

.serving-adjust { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.serving-adjust b { display: block; font-size: 14px; font-weight: 600; }
.serving-adjust span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.serving-adjust .stepper span { color: var(--ink); font-size: 15px; }

/* ==========================================================================
   Kitchen Command Center
   ========================================================================== */
.week-tabs { margin-bottom: 18px; }
.week-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.week-tabs svg { width: 16px; height: 16px; }
.kstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.kstats div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kstats b { display: block; font-family: var(--sans); font-weight: 700; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kstats span { font-size: 12.5px; color: var(--muted); }
.kcard { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--honey); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.kcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.ksection { margin-top: 26px; }
.kday { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.kday.today { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.kday-head { display: flex; justify-content: space-between; align-items: baseline; }
.kday-head h4 { font-size: 18px; }
.ktasks { list-style: none; margin: 6px 0 0; padding: 0; }
.ktask { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.ktask:first-child { border-top: 0; }
.ktask .check { margin-top: 2px; }
.kt-body { min-width: 0; }
.kt-text { display: block; font-weight: 500; line-height: 1.35; }
.kt-detail { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.kt-mins { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 2px; }
.kt-tools { grid-column: 2 / 4; display: flex; gap: 6px; }
.kt-tools button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.kt-tools button:hover { color: var(--clay); background: var(--clay-tint); }
.ktask.done .kt-text { text-decoration: line-through; color: var(--muted); }
.ktask.k-thaw .kt-text::before { content: "❄ "; color: var(--citrus); }
.kbatch .panel h4 { margin: 4px 0 10px; font-size: 19px; }
.kbatch dl { margin: 0; display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; font-size: 13.5px; }
.kbatch dt { color: var(--muted); font-weight: 600; }
.kbatch dd { margin: 0; }
.kfresh { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
@media (max-width: 640px) { .kstats b { font-size: 20px; } .kbatch { grid-template-columns: 1fr; } }

/* ==========================================================================
   Culinary Classroom
   ========================================================================== */
.class-month { margin-top: 30px; }
.class-month-head { margin-bottom: 14px; }
.class-month-head h2 { margin: 2px 0 6px; }
.class-month.soon { opacity: .75; }
.lesson-card { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; transition: border-color .2s, transform .2s; }
.lesson-card:hover { border-color: var(--clay); transform: translateY(-2px); }
.lesson-card .ln { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--clay); flex: none; width: 34px; }
.lesson-card b { display: block; font-size: 16px; }
.lesson-card .chev { margin-left: auto; color: var(--clay); flex: none; }
.lesson-card .chev svg { width: 18px; height: 18px; }
.lesson-card.locked .chev { color: var(--muted); }
.lesson { max-width: 760px; }
.lesson h1 { margin: 4px 0 12px; }
.lesson .lede { font-size: 18px; color: var(--ink-2); line-height: 1.55; }
.lesson section { margin-top: 26px; }
.lesson h3 { margin-bottom: 10px; }
.lesson-points { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.55; }
.lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lesson-grid ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; }
.practice { margin: 26px 0; background: var(--block); color: var(--on-block); border-radius: 18px; padding: 20px 22px; }
.practice .eyebrow { color: var(--honey); }
html[data-theme="dark"] .practice .eyebrow { color: #A8701A; }
.practice p { margin: 6px 0 0; font-family: var(--note); font-weight: 700; font-size: 20px; line-height: 1.35; }
@media (max-width: 640px) { .lesson-grid { grid-template-columns: 1fr; } }
details.technique { margin-top: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0; }
details.technique summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
details.technique summary::-webkit-details-marker { display: none; }
details.technique summary b { display: block; font-family: var(--serif); font-size: 19px; }
details.technique summary .eyebrow { font-size: 17px; }
details.technique[open] summary { border-bottom: 1px solid var(--line-2); }
.tech-list { padding: 4px 16px 14px; }
.tech { padding: 12px 0; border-top: 1px solid var(--line-2); }
.tech:first-child { border-top: 0; }
.tech h4 { font-size: 17px; margin-bottom: 4px; }
.tech p { margin: 0 0 4px; font-size: 14.5px; line-height: 1.5; }
.tech a { font-size: 13.5px; color: var(--clay); font-weight: 600; text-decoration: none; }

/* ==========================================================================
   Recipe Remix Studio
   ========================================================================== */
.remix-btn svg { color: var(--clay); }
.badge.remix { background: var(--clay-tint); color: var(--clay); }
.remix-banner { margin: 2px 0 12px; font-size: 14px; color: var(--ink-2); background: var(--clay-tint); border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.remix-banner a { color: var(--clay); font-weight: 600; }
.remix-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.remix-orig { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; }
.remix-orig .thumb { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; position: relative; }
.remix-orig .thumb svg, .remix-orig .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.remix-orig h3 { font-size: 19px; margin: 2px 0 4px; }
.remix-form { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.remix-form .chip.on { background: var(--clay); color: var(--on-clay); border-color: var(--clay); }
@media (max-width: 820px) { .remix-layout { grid-template-columns: 1fr; } .remix-orig { position: static; flex-direction: row; align-items: center; } .remix-orig .thumb { width: 84px; flex: none; aspect-ratio: 1; } .remix-form { padding: 16px; } }
.edit-ings { display: grid; gap: 6px; }
.edit-ing { display: grid; grid-template-columns: 64px 70px 1fr 1fr auto; gap: 6px; }
@media (max-width: 640px) { .edit-ing { grid-template-columns: 56px 64px 1fr auto; } .edit-ing [data-e=prep] { grid-column: 1 / 4; } }

/* ==========================================================================
   Grocery budget
   ========================================================================== */
.recipe-card .meta .cost { color: var(--sage); font-weight: 600; }
html[data-theme="dark"] .recipe-card .meta .cost { color: var(--honey); }
.cost-line { margin: 14px 0 4px; font-size: 15px; color: var(--ink-2); }
.cost-line b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cost-line span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.budget-bar:empty { display: none; }
.budget-bar { margin: 0 0 18px; }
.budget-card { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 14px; padding: 14px 16px; }
.budget-card.over { border-left-color: var(--danger); }
.bc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bc-nums { margin: 2px 0; }
.bc-nums b { font-family: var(--sans); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }
.bc-nums span { color: var(--muted); font-size: 16px; }
.bc-sub { font-size: 13px; color: var(--muted); }
.budget-card.over .bc-sub b { color: var(--danger); }
.budget-card .progress { margin-top: 10px; height: 8px; }
.budget-card .progress i { background: var(--sage); }
.budget-card.over .progress i { background: var(--danger); }
.bc-tip { margin: 10px 0 0; font-size: 14px; }
.bc-tip a { color: var(--clay); font-weight: 600; }
.bc-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.budget-empty { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; }
.budget-empty > span { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--clay-tint); color: var(--clay); display: grid; place-items: center; }
.budget-empty > span svg { width: 18px; height: 18px; }
.budget-empty b { display: block; }
.budget-empty div span { font-size: 13px; color: var(--muted); }
.budget-empty .btn { margin-left: auto; flex: none; }
.money-input { display: flex; align-items: center; gap: 6px; max-width: 200px; }
.money-input span { font-weight: 700; font-size: 18px; color: var(--muted); }
@media (max-width: 520px) { .budget-empty { flex-wrap: wrap; } .budget-empty .btn { margin-left: 48px; } }

/* ==========================================================================
   My Recipes
   ========================================================================== */
.badge.mine { background: var(--sage-tint); color: var(--sage); }
.my-form { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; max-width: 980px; }
.my-form .field { margin-bottom: 18px; }
.mf-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
.mf-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.mf-ings, .mf-steps { min-height: 210px; line-height: 1.6; }
.mf-preview-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 210px; max-height: 320px; overflow: auto; }
.mf-preview { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.mf-preview b { display: inline-block; min-width: 70px; font-variant-numeric: tabular-nums; color: var(--clay); }
.mf-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 16px; }
@media (max-width: 720px) {
  .my-form { padding: 16px; }
  .mf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-two { grid-template-columns: 1fr; }
  .mf-preview-box { min-height: 0; }
}
.mf-single { max-width: 300px; }

/* Don’t Feel Like Cooking */
.badge.throw { background: var(--honey); color: #3a2a12; }
.drop .throw-thumb { background: var(--honey); color: #3a2a12; display: grid; place-items: center; }
.drop .throw-thumb svg { position: static; width: 34px; height: 34px; }
.throw-intro { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--honey); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.throw-intro b { font-family: var(--serif); font-size: 17px; display: block; color: var(--ink); margin-bottom: 2px; }

/* Kitchen Inventory */
.inv-summary { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.inv-summary span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink-2); }
.inv-summary b { font-family: var(--serif); font-size: 16px; color: var(--ink); margin-right: 2px; }
.inv-summary .s-low b { color: var(--citrus); } .inv-summary .s-out b { color: var(--clay); }
.inv-group { margin: 18px 0; }
.inv-group h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; } .inv-group h3 small { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--muted); font-weight: 500; }
.inv-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.inv-row.lvl-low { border-left: 4px solid var(--honey); } .inv-row.lvl-out { border-left: 4px solid var(--clay); } .inv-row.heavy { border-left: 4px solid var(--citrus); }
.inv-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inv-name { font-weight: 600; font-size: 15px; }
.inv-use, .inv-note { font-size: 12px; color: var(--muted); line-height: 1.35; }
.inv-note { color: var(--clay); }
.inv-lvls { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.inv-lvls button { border: 0; background: transparent; font: 600 12px 'DM Sans', sans-serif; color: var(--muted); padding: 7px 9px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.inv-lvls button.on.l-stocked { background: var(--sage, #6E8B5B); color: #fff; }
.inv-lvls button.on.l-low { background: var(--honey); color: #3a2a12; }
.inv-lvls button.on.l-out { background: var(--clay); color: var(--on-clay, #fff); }
.inv-x { border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 4px; }
.inv-week { margin-bottom: 12px; } .inv-week .inv-flag { margin: 8px 0 0; font-size: 14px; line-height: 1.45; }
.inv-check-btn { width: 100%; margin-bottom: 6px; }
.inv-check h3 { font-family: var(--serif); margin: 4px 0; }
.inv-add { margin-top: 18px; }
.inv-pick h3 { font-family: var(--serif); font-size: 18px; margin: 16px 0 8px; }
.inv-pick .chips, .inv-preview .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.pick { cursor: pointer; } .chip.pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip.pick.on { background: var(--clay); color: var(--on-clay, #fff); border-color: var(--clay); }
.inv-setup .btn { margin-top: 20px; }
.inv-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; text-decoration: none; vertical-align: middle; }
.inv-tag.t-out { background: var(--clay); color: var(--on-clay, #fff); } .inv-tag.t-low { background: var(--honey); color: #3a2a12; }
.inv-tag.t-heavy { background: var(--pill, #EFE3CF); color: var(--ink); } .inv-tag.t-ok { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.inv-nudge .nudge-dot { background: var(--honey); }
@media (max-width: 340px) { .inv-row { grid-template-columns: 1fr auto; } .inv-row .inv-lvls { grid-column: 1 / -1; justify-self: start; } .inv-x { grid-row: 1; grid-column: 2; } }
