/* Mesa / seasonal editorial. Loaded after legacy component rules so the existing
   feature set shares one palette without changing data, planner or storage. */
body[data-month][data-season]{
  --bg:#eee1e9;--wash-top:#e6d8e9;--wash-middle:#f0dee5;--wash-bottom:#f5dfd0;
  --card:#f6e9e9;--paper:#f5e8e7;--surface-strong:#eed6dc;
  --ink:#341a2c;--ink-soft:#624653;--muted:#705660;--line:#d8bfc9;
  --sage:#713148;--sage-deep:#572239;--sage-tint:#ead9df;--sage-rgb:113,49,72;
  --terra:#a24d3e;--terra-tint:#f2ddd4;--gold:#9c741f;--berry:#8b4965;
  --today-art-heading:var(--ink);--today-art-kicker:var(--ink-soft);--art-body:var(--ink-soft);
  --today-card-title:var(--ink);--today-card-detail:var(--ink-soft);--art-text-shadow:none;
  --today-note-text:var(--ink-soft);--today-note-bg:var(--card);--today-note-border:var(--line);
  --font-serif:Georgia,'Times New Roman',serif;--font-script:Georgia,'Times New Roman',serif;
  --shadow:0 12px 32px rgba(65,30,48,.08);--shadow-soft:none;--radius:18px;
  --botanical-x:66.6667%;--botanical-y:0%;--nav-height:calc(74px + env(safe-area-inset-bottom));
  background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
  font-size:14px;line-height:1.45;
}
body[data-month][data-season="spring"]{--wash-top:#e0e7d9;--wash-middle:#ece4e4;--wash-bottom:#f3dfe1;--card:#f3eaea;--paper:#f3eaea;--surface-strong:#e5ddd8;--botanical-x:0%;}
body[data-month][data-season="summer"]{--wash-top:#f3e4bf;--wash-middle:#f5e1d1;--wash-bottom:#f0d6ce;--card:#f9e9da;--paper:#f9e9da;--surface-strong:#f0d5be;--botanical-x:33.3333%;}
body[data-month][data-season="winter"]{--wash-top:#dbe2e9;--wash-middle:#e8dfe9;--wash-bottom:#edd8dd;--card:#f0e7ed;--paper:#f0e7ed;--surface-strong:#e1d7e4;--botanical-x:100%;}
body[data-month][data-holiday="thanksgiving"]{--wash-top:#e9d9c5;--wash-middle:#f1d9ce;--wash-bottom:#ead0c3;--card:#f5e3d8;--paper:#f5e3d8;--surface-strong:#e8cdbd;--botanical-x:0%;--botanical-y:100%;}
body[data-month][data-holiday="christmas"]{--wash-top:#d9e6df;--wash-middle:#e4e5d9;--wash-bottom:#f1dcd7;--card:#f0e9df;--paper:#f0e9df;--surface-strong:#e2d7cc;--sage:#783145;--sage-deep:#5d2439;--botanical-x:33.3333%;--botanical-y:100%;}
body[data-month][data-holiday="new-year"]{--wash-top:#dce2ea;--wash-middle:#e6e2ed;--wash-bottom:#ede2d5;--card:#eeebf2;--paper:#eeebf2;--surface-strong:#dfdce9;--sage:#514967;--sage-deep:#3b3451;--sage-rgb:81,73,103;--botanical-x:66.6667%;--botanical-y:100%;}
body[data-month][data-holiday="valentines"]{--wash-top:#f0d9e0;--wash-middle:#f2dee1;--wash-bottom:#f4dfd5;--card:#f8e9e8;--paper:#f8e9e8;--surface-strong:#edcfd5;--sage:#8b304d;--sage-deep:#6c203c;--sage-rgb:139,48,77;--botanical-x:100%;--botanical-y:100%;}
/* Keep image longhands: installed Safari PWAs can discard URL-bearing shorthands. */
body[data-season] .phone{
  background-color:var(--bg);
  background-image:radial-gradient(ellipse at 0 5%,var(--wash-top),transparent 72%),linear-gradient(160deg,var(--wash-middle),var(--wash-bottom));
  background-position:center,center;background-size:cover,cover;background-repeat:no-repeat,no-repeat;
  padding-top:env(safe-area-inset-top);padding-bottom:0;
  /* These wrappers never scroll: only .screen does. Hidden overflow remains
     programmatically scrollable and input focus can drag the fixed menu away. */
  overflow:hidden;overflow:clip;
}
body[data-season] .app{overflow:hidden;overflow:clip;}
body[data-season] .screen:not(.active){visibility:hidden;display:none;}
body[data-season] .screen.active{visibility:visible;}
body[data-season] .screen{padding:26px 22px calc(var(--nav-height) + 24px);}
body[data-season] :is(#today,#dayView){padding-top:16px;padding-bottom:calc(var(--nav-height) + 32px);}
body[data-season] h1,body[data-season] h2{font-family:var(--font-serif);font-weight:500;letter-spacing:-1.2px;color:var(--ink);text-shadow:none;}
body[data-season] h1{font-size:36px;line-height:1.1;}
body[data-season] h2{font-size:27px;line-height:1.2;}
body[data-season] button,body[data-season] input,body[data-season] select,body[data-season] textarea{font-family:inherit;}
body[data-season] button{touch-action:manipulation;}
body[data-season] :is(button,a,input,textarea,select,summary,[tabindex]):focus-visible{outline:2px solid var(--sage-deep);outline-offset:4px;}
body[data-season] :is(.card,.banner,.settings-row,.day,.log-sum,.week-quality,.week-quality-toggle,.lib-card){background:var(--card);border-color:var(--line);box-shadow:none;}
body[data-season] :is(.sheet,.sheet-head,.editor-actionbar,.login-gate){background:var(--paper);color:var(--ink);}
body[data-season] :is(.sheet,.login-gate) h2{font-family:var(--font-serif);}
body[data-season] :is(input,textarea,select,.seg,.tag-undo,.meal-act-btn,.ghostbtn){background:var(--paper);border-color:var(--line);color:var(--ink);box-shadow:none;}
body[data-season] :is(.cta,.seg button.on,.meal-log-btn,.ks-btn){background:var(--sage-deep);color:#fff5f3;box-shadow:none;}
body[data-season] .ghostbtn{background:var(--card);color:var(--sage-deep);}
body[data-season] :is(.backbtn,.add-meal-link,.summary-detail){color:var(--sage-deep);}
body[data-season] .sub{color:var(--ink-soft);text-shadow:none;}
body[data-season] .seg{border-radius:12px;}
body[data-season] .seg button{min-height:44px;}
body[data-season] .profile-icon-btn{background:var(--sage-deep);border:0;box-shadow:none;color:#fff3ed;width:44px;height:44px;}
body[data-season] .profile-icon-btn span{color:inherit;}
.seasonal-header{position:relative;min-height:188px;isolation:isolate;}
.seasonal-header::after{content:"";position:absolute;z-index:-1;right:-22px;top:26px;width:184px;height:184px;pointer-events:none;background-image:url('../assets/monthly-backgrounds/seasonal-botanicals.png');background-size:400% 200%;background-position:var(--botanical-x) var(--botanical-y);background-repeat:no-repeat;}
.brandbar{position:relative;display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:18px;}
.mesa-wordmark{color:var(--ink);font-family:var(--font-serif);font-size:43px;font-weight:500;line-height:1;letter-spacing:-2.8px;text-decoration:none;min-height:44px;}
.seasonal-label{font-size:10px;font-weight:600;letter-spacing:1px;text-transform:uppercase;padding-right:58px;}
body[data-season] .topbar{position:relative;align-items:flex-start;margin:0;min-height:112px;}
.today-heading{max-width:65%;padding-top:1px;}
body[data-season] :is(#today,#dayView) .topbar h1{font-size:58px;line-height:1.04;letter-spacing:-2.8px;color:var(--ink);margin:8px 0 4px;text-shadow:none;}
body[data-season] :is(#today,#dayView) .topbar .eyebrow{font-size:11px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink-soft);text-shadow:none;}
.today-greeting{font-size:13px;color:var(--ink-soft);margin:5px 0 0;}
body[data-season] .top-actions{position:relative;z-index:1;align-items:flex-end;flex-direction:column-reverse;gap:6px;margin-top:-69px;}
body[data-season] .top-actions .seg{max-width:180px;margin-top:12px;}
body[data-season] .top-actions .seg button{font-size:11px;padding:5px 8px;}
body[data-season] .tint-stripe{display:none;}
.seasonal-occasion{margin:14px 0 3px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);font-family:var(--font-serif);font-style:italic;font-size:19px;}
.seasonal-occasion[hidden]{display:none;}
.today-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:13px 0 0;padding-bottom:15px;border-bottom:1px solid var(--line);}
.week-date{min-width:0;min-height:57px;padding:5px 0;border:0;border-radius:13px;background:transparent;color:var(--ink-soft);font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;}
.week-date span{font-size:10px;}.week-date b{font-size:16px;font-weight:500;}
.week-date.is-today{background:var(--sage-deep);color:#fff5f3;}
.today-summary{padding:17px 0 18px;border-bottom:1px solid var(--line);}
.summary-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;}
.summary-heading b{font-family:var(--font-serif);font-size:35px;line-height:1.1;font-weight:500;letter-spacing:-1.5px;}
.summary-goal{font-size:11px;color:var(--ink-soft);white-space:nowrap;}
.summary-detail{font:inherit;font-size:11px;min-height:44px;padding:8px 0 8px 8px;border:0;background:transparent;cursor:pointer;}
.summary-track{height:7px;border-radius:99px;overflow:hidden;background:var(--surface-strong);margin:12px 0;}
.summary-track span{display:block;height:100%;width:0;background:var(--sage);border-radius:inherit;transition:width .3s ease;}
.summary-macros{display:flex;justify-content:space-between;gap:5px;font-size:11px;color:var(--ink-soft);}
.summary-macros b{font-weight:600;color:var(--ink);margin-left:3px;}
.summary-concern{min-height:44px;padding:8px 0 0;border:0;background:none;color:#805015;font:inherit;font-size:11px;text-align:left;text-decoration:underline;cursor:pointer;}
.summary-concern[hidden]{display:none;}
body[data-season] .today-meal-heading{margin-top:23px;gap:8px;}
.add-meal-link{border:0;border-radius:999px;background:var(--surface-strong);font:inherit;font-size:12px;font-weight:600;min-height:44px;padding:8px 14px;white-space:nowrap;cursor:pointer;}
.add-meal-link span{font-size:17px;margin-left:3px;font-weight:400;}
.today-menu-tools{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--ink-soft);margin:0 0 4px;}
body[data-season] .today-menu-tools .backbtn{font-size:10px;min-height:44px;margin:0;}
body[data-season] :is(#today,#dayView) .meal{position:relative;align-items:center;flex-wrap:nowrap;padding:10px;gap:10px;margin-top:8px;border:1px solid var(--line);background:var(--card);border-radius:16px;box-shadow:none;}
body[data-season] :is(#today,#dayView) .meal .thumb{position:relative;background:var(--paper);box-shadow:none;border:0;width:58px;height:64px;flex:0 0 58px;border-radius:12px;}
.meal-title-button{padding:0;border:0;background:transparent;font:inherit;color:inherit;text-align:left;cursor:pointer;min-height:44px;}
.meal-slot-label{display:block;font-size:9px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;margin-bottom:3px;color:var(--ink-soft);}
body[data-season] :is(#today,#dayView) .meal .info .row.between{align-items:flex-start;gap:8px;}
body[data-season] :is(#today,#dayView) .meal .info .t{font-size:14px;line-height:1.35;font-weight:600;letter-spacing:-.15px;}
body[data-season] :is(#today,#dayView) .meal .kcal{font-size:11px;font-weight:500;white-space:nowrap;padding-top:2px;}
body[data-season] :is(#today,#dayView) .meal .kcal::after{content:" kcal";font-size:9px;}
body[data-season] :is(#today,#dayView) .meal .info .d{font-size:10px;margin-top:4px;line-height:1.45;}
body[data-season] :is(#today,#dayView) .meal .tags:empty{display:none;}
body[data-season] :is(#today,#dayView) .meal .tags{margin-top:0;}
body[data-season] :is(#today,#dayView) .meal .today-actions{margin-top:4px;}
body[data-season] :is(#today,#dayView) .meal-actions-row{gap:5px;flex-wrap:wrap;}
body[data-season] .meal-act-btn{min-height:44px;box-shadow:none;}
body[data-season] .meal-log-btn{background:var(--sage-deep);box-shadow:none;}
body[data-season] :is(#today,#dayView) .meal-featured{display:grid;grid-template-columns:minmax(0,1fr);padding:0;gap:0;overflow:hidden;background:var(--paper);}
body[data-season] :is(#today,#dayView) .meal-featured .thumb{width:100%;height:160px;border-radius:0;display:block;}
body[data-season] :is(#today,#dayView) .meal-featured .thumb .meal-thumb-art{object-fit:cover;object-position:center;transform:scale(1.06);}
body[data-season] :is(#today,#dayView) .meal-featured .info{padding:11px 13px;}
body[data-season] :is(#today,#dayView) .meal-featured .info .t{font-size:17px;line-height:1.25;}
body[data-season] :is(#today,#dayView) .meal-featured .kcal{font-size:12px;}
.meal-photo-window{position:absolute;width:100%;aspect-ratio:1;left:0;top:50%;transform:translateY(-50%);pointer-events:none;}
.meal-photo-atlas{display:none;position:absolute;max-width:none!important;width:400%!important;height:200%!important;object-fit:fill!important;}
.has-photo .meal-photo-atlas{display:block;}.has-photo .meal-thumb-art{opacity:0;}
/* Keep the shared whole-day action, but let it scroll with the meals instead of
   covering the new four-tab menu or hiding the last visible meal. */
body[data-season] .today-keystone-dock{position:static;margin:16px 0 0;padding:12px;border:1px solid var(--line);background:var(--card);box-shadow:none;backdrop-filter:none;}
body[data-season] .today-keystone-dock.is-visible{display:block;}
.nutrition-details{margin-top:20px;border-top:1px solid var(--line);}
.nutrition-details>summary{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;font-weight:600;list-style:none;}
.nutrition-details>summary::-webkit-details-marker{display:none;}
.nutrition-details>summary>span{font-size:10px;font-weight:400;color:var(--ink-soft);}
.nutrition-details>summary::after{content:"+";font-size:20px;font-weight:400;}
.nutrition-details[open]>summary::after{content:"−";}
body[data-season] #todayProgressCard{padding:14px;background:var(--card);box-shadow:none;border-color:var(--line);}
body[data-season] #todayProgressCard .ring{background:none;box-shadow:none;}
body[data-season] #todayPlanNote{font-size:10px;border:0;background:none;box-shadow:none;}
body[data-season] .tabbar{height:var(--nav-height);padding:10px 12px env(safe-area-inset-bottom);background:var(--paper);backdrop-filter:none;border-top:1px solid var(--line);align-items:flex-start;}
body[data-season] .tab{width:25%;min-height:54px;gap:5px;color:var(--ink-soft);border-radius:12px;}
body[data-season] .tab.on{color:var(--sage-deep);background:var(--surface-strong);}
body[data-season] .tab svg{width:23px;height:23px;stroke-width:1.6;}
body[data-season] .tab .tl{font-size:10px;font-weight:500;}
body[data-season] .toast{bottom:calc(var(--nav-height) + 14px);}
body[data-season] .editor-actionbar{bottom:var(--nav-height);}
body[data-season] .login-gate .boot-mark{font-family:var(--font-serif);color:var(--ink);}
/* Occasion editions have dedicated header/feature compositions, not just recolors. */
body[data-month][data-holiday="thanksgiving"] .seasonal-occasion{border-left:3px solid #ab6035;border-radius:0 12px 12px 0;}
body[data-month][data-holiday="christmas"] .seasonal-header{border-bottom:1px solid var(--sage);padding-bottom:12px;}
body[data-month][data-holiday="christmas"] .seasonal-occasion{text-align:center;letter-spacing:.2px;border:0;background:var(--surface-strong);}
body[data-month][data-holiday="new-year"] .seasonal-occasion{text-align:center;text-transform:uppercase;font-family:inherit;font-style:normal;font-size:11px;font-weight:600;letter-spacing:2px;border:0;border-top:1px solid #bca77b;border-bottom:1px solid #bca77b;border-radius:0;}
body[data-month][data-holiday="valentines"] .seasonal-occasion{text-align:center;border-radius:24px;background:var(--surface-strong);border:0;}
body[data-month][data-holiday="valentines"] :is(#today,#dayView) .meal-featured{border-radius:24px;}
@media(min-width:760px){
  body[data-season] .screen{padding-left:max(36px,calc((100% - 850px)/2));padding-right:max(36px,calc((100% - 850px)/2));}
  body[data-season] :is(#today,#dayView){display:none;}
  body[data-season] :is(#today,#dayView).active{display:block;}
  body[data-season] :is(#today,#dayView) .seasonal-header{min-height:205px;}
  body[data-season] .seasonal-header::after{width:270px;height:270px;top:-20px;right:25px;}
  body[data-season] .today-heading{max-width:60%;}
  body[data-season] :is(#today,#dayView) .topbar h1{font-size:72px;}
  body[data-season] .today-summary{padding-top:22px;padding-bottom:22px;}
  body[data-season] .summary-heading b{font-size:44px;}
  body[data-season] .summary-macros{font-size:13px;justify-content:flex-start;gap:45px;}
  body[data-season] :is(#today,#dayView) .meal-featured{grid-template-columns:45% minmax(0,1fr);align-items:stretch;}
  body[data-season] :is(#today,#dayView) .meal-featured .thumb{height:240px;}
  body[data-season] :is(#today,#dayView) .meal-featured .info{align-self:center;padding:24px;}
  body[data-season] .tabbar{padding-left:max(24px,calc((100% - 850px)/2));padding-right:max(24px,calc((100% - 850px)/2));}
}
@media(max-width:360px){
  body[data-season] .screen{padding-left:16px;padding-right:16px;}
  .seasonal-label{font-size:8px;}.seasonal-header::after{width:155px;height:155px;right:-16px;top:41px;}
  body[data-season] :is(#today,#dayView) .topbar h1{font-size:52px;}
  body[data-season] :is(#today,#dayView) .meal .thumb{width:58px;flex-basis:58px;}
  body[data-season] :is(#today,#dayView) .meal-featured .thumb{width:100%;height:160px;}
  .summary-macros{font-size:10px;}.summary-macros b{margin-left:1px;}
  body[data-season] #todayProgressCard .ring-wrap{gap:9px;}
  body[data-season] #todayProgressCard .ring{width:112px;flex-basis:112px;}
}
@media(prefers-reduced-motion:reduce){
  body[data-season] *,body[data-season] *::before,body[data-season] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}

/* Selected dates share the daily layout, with room for long weekday names. */
body[data-season] #dayView .topbar h1{font-size:clamp(32px,9.5vw,48px);letter-spacing:-1.5px;margin:8px 0 4px;}
body[data-season] #dayView .today-heading{max-width:72%;}
body[data-season] #dayView .meal .tag-undo{min-width:44px;padding:0 9px;}
body[data-season] #dayView .nutrition-details{padding:12px;}

/* Generic category art makes a poor full-bleed hero: contain it on paper, keep it compact. */
body[data-season] :is(#today,#dayView) .meal-featured.hero-generic .thumb{height:120px;background:var(--paper);}
body[data-season] :is(#today,#dayView) .meal-featured.hero-generic .thumb .meal-thumb-art{object-fit:contain;transform:none;}
@media(min-width:760px){
  body[data-season] :is(#today,#dayView) .meal-featured .thumb{height:auto;min-height:240px;}
  body[data-season] :is(#today,#dayView) .meal-featured.hero-generic .thumb{min-height:160px;}
}

/* Person switch + profile avatar form ONE pill in the header's top-right corner, clear of the botanical art. */
body[data-season] :is(#today,#dayView) .topbar{position:static;min-height:96px;}
body[data-season] :is(#today,#dayView) .brandbar{flex-direction:column;align-items:flex-start;gap:0;padding-bottom:10px;}
body[data-season] :is(#today,#dayView) .seasonal-label{padding-right:0;}
body[data-season] :is(#today,#dayView) .top-actions{position:absolute;top:0;right:0;z-index:2;margin:0;flex-direction:row;align-items:center;gap:4px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--card);max-width:calc(100% - 140px);}
body[data-season] :is(#today,#dayView) .top-actions .seg{margin:0;max-width:none;min-width:0;background:transparent;border:0;box-shadow:none;border-radius:999px;padding:0;gap:2px;}
body[data-season] :is(#today,#dayView) .top-actions .seg button{min-height:38px;min-width:0;padding:5px 11px;border-radius:999px;}
body[data-season] :is(#today,#dayView) .top-actions .profile-icon-btn{width:38px;height:38px;}
body[data-season] :is(#today,#dayView) .seasonal-header::after{top:58px;}
@media(min-width:760px){
  body[data-season] :is(#today,#dayView) .seasonal-header::after{top:-20px;}
}

/* Card text alignment: top-align thumb + text, and let title/kcal share one baseline row.
   The whole card is the tap target, so the title button needn't enforce a 44px box. */
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured){align-items:flex-start;}
body[data-season] :is(#today,#dayView) .meal .meal-title-button{min-height:0;display:block;line-height:1.3;padding:0;margin:0;}
body[data-season] :is(#today,#dayView) .meal .info .row.between{align-items:baseline;}
body[data-season] :is(#today,#dayView) .meal .info .t{margin:0;}
body[data-season] :is(#today,#dayView) .meal .kcal{padding-top:0;}
body[data-season] :is(#today,#dayView) .meal .meal-slot-label{margin-bottom:2px;line-height:1.2;}
body[data-season] :is(#today,#dayView) .meal .info{min-width:0;flex:1;}

/* Lucide icons that replace emoji (js/icons.js): scale with the surrounding font size. */
.ic{width:1.1em;height:1.1em;display:inline-block;vertical-align:-.17em;flex:none;stroke-width:2;}
.thumb > .ic,.detail-hero-media > .ic{width:46%;height:46%;stroke-width:1.4;opacity:.55;vertical-align:middle;}
.thumb:has(> .ic),.detail-hero-media:has(> .ic){display:flex;align-items:center;justify-content:center;}
.ck > .ic{width:100%;height:100%;padding:2px;}

/* Ingredients list: compact, editorial cards in the Today-card language. */
body[data-season] #libFoodList .shop-cat{margin:18px 0 2px;font-size:10px;font-weight:700;letter-spacing:1.3px;text-transform:uppercase;color:var(--ink-soft);}
body[data-season] .altrow.food-row{align-items:center;gap:10px;padding:8px 8px 8px 10px;margin-top:6px;min-height:0;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:none;}
body[data-season] .food-row .ae{width:40px;height:40px;flex:0 0 40px;font-size:20px;border-radius:11px;background:var(--paper);display:grid;place-items:center;overflow:hidden;}
body[data-season] .food-row .ae img{width:100%;height:100%;object-fit:contain;}
body[data-season] .food-row .at{min-width:0;flex:1;}
body[data-season] .food-row .an{font-size:14px;font-weight:600;line-height:1.25;letter-spacing:-.1px;color:var(--ink);}
body[data-season] .food-row .ad{font-size:10px;line-height:1.4;margin-top:2px;color:var(--ink-soft);}
body[data-season] .food-row .ad b{font-weight:600;color:var(--ink);}
body[data-season] .food-row .food-per{opacity:.8;}
body[data-season] .food-row .lib-food-actions{flex-direction:row;flex:0 0 auto;gap:2px;}
body[data-season] .food-row .lib-edit,body[data-season] .food-row .lib-del{width:36px;height:36px;min-width:36px;flex:0 0 36px;border-radius:10px;background:transparent;color:var(--ink-soft);display:grid;place-items:center;padding:0;font-size:15px;}
body[data-season] .food-row .lib-edit:hover,body[data-season] .food-row .lib-del:hover{background:var(--paper);color:var(--sage-deep);}
body[data-season] .food-row .food-seg{white-space:nowrap;}

/* Meal cards: calories sit top-left beside the slot label, on every card, whatever the title length. */
body[data-season] :is(#today,#dayView) .meal .info{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:baseline;}
body[data-season] :is(#today,#dayView) .meal .info > *{grid-column:1 / -1;}
body[data-season] :is(#today,#dayView) .meal .info > .meal-slot-label{grid-column:1;grid-row:1;margin:0;}
body[data-season] :is(#today,#dayView) .meal .info > .row.between{display:contents;}
body[data-season] :is(#today,#dayView) .meal .info .kcal{grid-column:2;grid-row:1;justify-self:start;font-size:10px;font-weight:600;letter-spacing:.2px;color:var(--ink-soft);padding:0;}
body[data-season] :is(#today,#dayView) .meal .info .kcal::before{content:"·";margin-right:8px;font-weight:400;}
body[data-season] :is(#today,#dayView) .meal .info .kcal::after{font-size:10px;}
body[data-season] :is(#today,#dayView) .meal .info > .row.between > :is(.t,.meal-title-button){grid-column:1 / -1;grid-row:2;margin-top:3px;}
body[data-season] :is(#today,#dayView) .meal .info > .today-actions{grid-row:3;}

/* Ingredients: the picture leads. */
body[data-season] .food-row .ae{width:64px;height:64px;flex:0 0 64px;border-radius:14px;}
body[data-season] .altrow.food-row{gap:12px;padding:8px 8px 8px 8px;}
body[data-season] .food-row .ad.food-meta{margin-top:1px;opacity:.85;}

/* ===== Button system =====
   1 Primary   .cta / .week-tool.primary : solid deep tone, 48px, 14px radius
   2 Secondary .cta.ghostbtn / .week-tool / .library-action / .recipe-filter-toggle : soft tinted surface, no border
   3 Text      .backbtn / .summary-detail : plain deep-tone label
   (A specificity slip used to turn every .cta.ghostbtn solid; they are now truly secondary.) */
body[data-season] .cta{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;margin-top:14px;border:0;border-radius:14px;font-size:14px;font-weight:600;letter-spacing:.1px;background:var(--sage-deep);color:#fff5f3;box-shadow:none;}
body[data-season] .cta + .cta{margin-top:8px;}
body[data-season] .cta.ghostbtn{background:var(--surface-strong);color:var(--sage-deep);border:0;}
body[data-season] .cta:active{transform:scale(.985);}
body[data-season] .cta:disabled,body[data-season] .cta[aria-disabled="true"]{opacity:.5;}
body[data-season] .editor-actionbar .cta{min-height:46px;margin-top:0;padding:0 16px;}

body[data-season] .week-tool,body[data-season] .library-action,body[data-season] .recipe-filter-toggle{min-height:44px;border:0;border-radius:999px;background:var(--surface-strong);color:var(--sage-deep);font-size:12px;font-weight:600;box-shadow:none;}
body[data-season] .week-tool.primary{background:var(--sage-deep);color:#fff5f3;}
body[data-season] .week-tool.ghost{background:var(--surface-strong);color:var(--sage-deep);}
body[data-season] .week-toolbar{gap:8px;}
body[data-season] .week-tool-icon .ic,body[data-season] .recipe-filter-toggle svg{width:15px;height:15px;}
body[data-season] .library-action-row{gap:8px;}
body[data-season] .library-action{display:flex;align-items:center;justify-content:center;gap:6px;}

/* Expand / minimise toggles: a quiet chevron instead of a heavy + / − glyph. */
.nutrition-details>summary::after,body[data-season] .nutrition-details[open]>summary::after{content:"";width:18px;height:18px;flex:0 0 18px;background:var(--sage-deep);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/18px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/18px no-repeat;transition:transform .18s ease;font-size:0;}
.nutrition-details[open]>summary::after{transform:rotate(180deg);}

/* Specificity: beat the shared primary-colour rule above (it contains .seg button.on). */
body[data-season] button.cta.ghostbtn{background:var(--surface-strong);color:var(--sage-deep);border:0;box-shadow:none;}
body[data-season] :is(.filter-toggle,.recipe-filter-toggle){display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border:0;border-radius:999px;background:var(--surface-strong);color:var(--sage-deep);font-size:12px;font-weight:600;}
body[data-season] input.inp[type="search"],body[data-season] input.inp[type="text"]{min-height:44px;padding:0 14px;border-radius:12px;background:var(--card);font-size:14px;}
body[data-season] button.cta.ghostbtn.danger{color:#a4472f;background:rgba(190,108,69,.12);}

/* ===== Recipe editor: image card, ingredient rows, view switch ===== */
.recipe-image-card{display:flex;align-items:center;gap:12px;width:100%;margin-top:14px;padding:8px 12px 8px 8px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink);font:inherit;text-align:left;cursor:pointer;}
.recipe-image-card-art{flex:0 0 72px;width:72px;height:72px;border-radius:12px;overflow:hidden;background:var(--paper);display:block;}
.recipe-image-card-art img{width:100%;height:100%;object-fit:cover;display:block;}
.recipe-image-card-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.recipe-image-card-text b{font-size:14px;font-weight:600;}
.recipe-image-card-text small{font-size:11px;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.recipe-image-card-cta{flex:0 0 auto;padding:8px 14px;border-radius:999px;background:var(--surface-strong);color:var(--sage-deep);font-size:12px;font-weight:600;}
.recipe-photo-pane{margin-top:14px;display:flex;flex-direction:column;gap:8px;}
.recipe-photo-preview{aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:var(--card);border:1px solid var(--line);display:grid;place-items:center;color:var(--ink-soft);font-size:13px;}
.recipe-photo-preview img{width:100%;height:100%;object-fit:cover;display:block;}
.recipe-photo-pick{cursor:pointer;margin-top:4px;}
[data-role="recipe-image-grid"] .icon-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
[data-role="recipe-image-grid"] .icon-tile{border-radius:14px;}
[data-role="recipe-image-grid"] .icon-tile.sel{outline:2px solid var(--sage-deep);outline-offset:-2px;}

.ing-edit-head{margin-top:20px;gap:10px;align-items:center;}
.ing-view-switch{flex:0 0 auto;min-width:0;}
.ing-view-switch button{min-height:34px;padding:0 12px;font-size:12px;}
.ing-edit-row{margin-top:8px;padding:10px 10px 10px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);}
.ing-edit-top{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.ing-edit-name{font-size:14px;font-weight:600;min-width:0;overflow-wrap:anywhere;}
.ing-edit-actions{display:flex;gap:2px;flex:0 0 auto;}
.ing-edit-icon{width:38px;height:38px;border:0;border-radius:10px;background:transparent;color:var(--ink-soft);display:grid;place-items:center;cursor:pointer;}
.ing-edit-icon:hover,.ing-edit-icon:active{background:var(--paper);color:var(--sage-deep);}
.ing-edit-icon .ic{width:18px;height:18px;}
.ing-edit-qty{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px;}
.ing-edit-stepper{display:inline-flex;align-items:center;gap:2px;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:2px;}
.ing-edit-stepper button{width:38px;height:38px;border:0;border-radius:10px;background:transparent;color:var(--sage-deep);font:inherit;font-size:18px;font-weight:600;cursor:pointer;}
.ing-edit-input{width:56px;min-height:38px;border:0;background:transparent;text-align:center;font:inherit;font-size:15px;font-weight:600;color:var(--ink);padding:0;}
.ing-edit-alt .ing-edit-input{width:58px;border:1px solid var(--line);border-radius:10px;background:var(--paper);font-size:13px;font-weight:500;}
.ing-edit-unit{font-size:12px;color:var(--ink-soft);padding:0 6px 0 2px;}
.ing-edit-alt{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--ink-soft);}
.dm-e .recipe-list-image,.li-i .recipe-list-image{width:100%;height:100%;object-fit:cover;border-radius:8px;display:block;}
.dm-e .ic,.li-i .ic,.ae .ic{width:1.1em;height:1.1em;}
.recipe-builder-identity{display:block;}

/* Review fixes: confirm dialog buttons sit side by side; ingredient actions keep 44px targets. */
body[data-season] .confirm-actions .cta{margin-top:0;}
body[data-season] .food-row .lib-food-actions{gap:6px;}
body[data-season] .food-row .lib-edit,body[data-season] .food-row .lib-del{width:44px;height:44px;min-width:44px;flex:0 0 44px;}
body[data-season] .food-row .lib-del{color:#a4472f;}

/* Ingredients, unframed: watercolor cutouts sit directly on the seasonal wash.
   Keep every existing row action and option control; only the presentation changes. */
body[data-season] .ingredient-icon,body[data-season] .ingredient-icon-lg{background:transparent;border-radius:0;object-fit:contain;}
body[data-season] .altrow.food-row{min-height:100px;margin:0;padding:12px 0;gap:13px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;}
body[data-season] .altrow.food-row:hover{background:rgba(255,255,255,.16);}
body[data-season] .food-row .ae{width:68px;height:76px;flex:0 0 68px;background:transparent;border-radius:0;overflow:visible;}
body[data-season] .food-row .ae img{width:100%;height:100%;object-fit:contain;background:transparent;border-radius:0;filter:drop-shadow(0 3px 2px rgba(62,40,29,.10));}
body[data-season] .food-row .an{font-family:var(--font-serif);font-size:20px;line-height:1.2;font-weight:400;letter-spacing:-.35px;overflow-wrap:anywhere;}
body[data-season] .food-row .ad{font-size:10px;line-height:1.5;}
body[data-season] .food-row .lib-food-actions{flex-direction:column;flex:0 0 44px;gap:2px;}
body[data-season] .ingredient-detail-intro{padding:0;margin-top:12px;background:transparent;border:0;box-shadow:none;}
body[data-season] .ingredient-detail-top{grid-template-columns:minmax(0,1fr);gap:10px;}
body[data-season] .ingredient-detail-image{width:100%;height:200px;overflow:visible;border-radius:0;background:transparent;}
body[data-season] .ingredient-detail-image .ingredient-icon-lg{width:190px;height:190px;max-width:100%;padding:0;background:transparent;border-radius:0;object-fit:contain;filter:drop-shadow(0 6px 4px rgba(62,40,29,.10));}
body[data-season] .ingredient-detail-copy h2{font-size:36px;line-height:1.15;margin:4px 0 8px;}
body[data-season] .ingredient-detail-copy .eyebrow{font-size:10px;letter-spacing:1.6px;}
body[data-season] .ingredient-detail-nutrition{grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-top:20px;border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--line);}
body[data-season] .ingredient-detail-nutrition .n{min-width:0;border:0;border-radius:0;background:var(--card);padding:12px 10px;}
body[data-season] .ingredient-detail-nutrition .nt{display:flex;flex-direction:column;gap:4px;align-items:flex-start;font-size:10px;}
body[data-season] .ingredient-detail-nutrition .nt b{font-size:18px;font-weight:500;color:var(--ink);white-space:nowrap;}
body[data-season] .ingredient-detail-nutrition .ndetail{font-size:9px;gap:2px;line-height:1.5;}
@media(max-width:350px){
  body[data-season] .food-row .ae{width:56px;height:68px;flex-basis:56px;}
  body[data-season] .altrow.food-row{gap:9px;}
  body[data-season] .food-row .an{font-size:18px;}
  body[data-season] .ingredient-detail-nutrition .n{padding:10px 7px;}
  body[data-season] .ingredient-detail-nutrition .nt b{font-size:16px;}
}
.recipe-image-card-text small{white-space:normal;line-height:1.35;}

/* ===== One person chip everywhere: the switch + avatar share a single pill (Today, Day view, Week, Profile) ===== */
body[data-season] .person-chip{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--card);flex:0 0 auto;max-width:100%;}
body[data-season] .person-chip .seg{margin:0;max-width:none;min-width:0;background:transparent;border:0;box-shadow:none;border-radius:999px;padding:0;gap:2px;flex:0 1 auto;}
body[data-season] .person-chip .seg button{min-height:38px;min-width:0;padding:5px 11px;border-radius:999px;font-size:11px;}
body[data-season] .person-chip .profile-icon-btn{width:38px;height:38px;flex:0 0 38px;margin:0;}
/* The brand row is just the wordmark now (no season label / tagline). */
body[data-season] :is(#today,#dayView) .brandbar{padding-bottom:6px;}
body[data-season] :is(#today,#dayView) .topbar{min-height:78px;}

/* ===== Meal cards v2 (Today + day view) =====
   [slot label][kcal]            <- header line; label sits over the picture, kcal over the title
   [picture 84px] [dish title / sides / macros]  [actions in a column]
   The picture lines up with the recipe name, not the meal name. The hero card keeps its own layout. */
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured){display:grid;grid-template-columns:84px minmax(0,1fr) auto;column-gap:12px;row-gap:0;align-items:start;position:relative;padding:10px 10px 12px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info{display:contents;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > *{grid-column:2 / -1;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > .meal-slot-label{grid-column:1;grid-row:1;margin:0 0 8px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info .kcal{grid-column:2 / -1;grid-row:1;justify-self:start;margin:0 0 8px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info .kcal::before{display:none;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .thumb{grid-column:1;grid-row:2 / span 3;width:84px;height:84px;flex:none;border-radius:14px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > .row.between > :is(.t,.meal-title-button){grid-column:2;grid-row:2;margin:0;display:block;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > .today-actions{grid-column:3;grid-row:2 / span 3;margin:0;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > .d{grid-column:2;grid-row:3;margin-top:5px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > .tags{grid-column:2;grid-row:4;margin-top:6px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > [id$="Boost"]{grid-column:1 / -1;}

/* actions: a quiet column of icon buttons on the side */
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) .meal-actions-row,
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) .tag-controls{display:flex;flex-direction:column;gap:6px;align-items:stretch;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) .tag-row{display:flex;flex-direction:column;align-items:flex-end;gap:6px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) :is(.meal-log-btn,.meal-act-btn,.tag-undo){width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:12px;font-size:0;display:grid;place-items:center;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) :is(.meal-log-btn,.meal-act-btn,.tag-undo) .ic{width:18px;height:18px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) .state-tag{position:absolute;top:11px;right:12px;font-size:10px;font-weight:600;letter-spacing:.2px;padding:0;background:none;border:0;color:var(--ink-soft);}

/* title: dish leads, sides sit beneath, quieter */
body[data-season] :is(#today,#dayView) .meal .t-main{display:block;}
body[data-season] :is(#today,#dayView) .meal .t-sides{display:block;margin-top:3px;font-size:11.5px;font-weight:400;line-height:1.35;letter-spacing:0;color:var(--ink-soft);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) :is(.meal-log-btn,.meal-act-btn,.tag-undo){width:38px;min-width:38px;height:38px;min-height:38px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) :is(.meal-actions-row,.tag-controls){gap:4px;}

/* ===== Meal cards v3 =====
   Header row: slot label (left edge = picture edge)  ·········  actions (small, inline)
   Body: picture 84px | title / "with sides" / bold kcal + macros / tags
   Calories live in the details line; no side column, so nothing is taller than the text. */
body[data-season] :is(#today,#dayView) .meal .kcal{display:none;}
body[data-season] :is(#today,#dayView) .meal .meal-kcal{font-weight:600;color:var(--ink);}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured){grid-template-columns:84px minmax(0,1fr);padding:6px 10px 12px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > .meal-slot-label{grid-column:1;grid-row:1;align-self:center;margin:0;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > .today-actions{grid-column:2;grid-row:1;justify-self:end;margin:0 -4px 4px 0;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) :is(.meal-actions-row,.tag-controls){flex-direction:row;gap:2px;align-items:center;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) .tag-row{flex-direction:row;align-items:center;gap:6px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) :is(.meal-log-btn,.meal-act-btn,.tag-undo){width:36px;min-width:36px;height:36px;min-height:36px;border-radius:11px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) .state-tag{position:static;white-space:nowrap;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > .row.between > :is(.t,.meal-title-button){grid-row:2;margin-top:2px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > .d{grid-row:3;margin-top:4px;}
body[data-season] :is(#today,#dayView) .meal:not(.meal-featured) > .info > .tags{grid-row:4;margin-top:6px;}
/* hero card: the same header, actions inline in it */
body[data-season] :is(#today,#dayView) .meal-featured > .info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;}
body[data-season] :is(#today,#dayView) .meal-featured > .info > *{grid-column:1 / -1;}
body[data-season] :is(#today,#dayView) .meal-featured > .info > .meal-slot-label{grid-column:1;grid-row:1;margin:0;}
body[data-season] :is(#today,#dayView) .meal-featured > .info > .today-actions{grid-column:2;grid-row:1;margin:-6px -6px 0 0;}
body[data-season] :is(#today,#dayView) .meal-featured > .info > .row.between > :is(.t,.meal-title-button){grid-column:1 / -1;grid-row:2;margin-top:2px;}
body[data-season] :is(#today,#dayView) .meal-featured :is(.meal-actions-row,.tag-controls){display:flex;flex-direction:row;gap:2px;}
body[data-season] :is(#today,#dayView) .meal-featured :is(.meal-log-btn,.meal-act-btn,.tag-undo){width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border-radius:11px;font-size:0;display:grid;place-items:center;}
body[data-season] :is(#today,#dayView) .meal-featured :is(.meal-log-btn,.meal-act-btn,.tag-undo) .ic{width:18px;height:18px;}
body[data-season] :is(#today,#dayView) .meal-featured .state-tag{position:static;white-space:nowrap;}
body[data-season] :is(#today,#dayView) .meal-featured .tag-row{display:flex;align-items:center;gap:6px;}
/* week rows / log lines: small line icon */
.dm-e,.li-i{display:grid;place-items:center;color:var(--sage-deep);}
.dm-e .ic,.li-i .ic{width:20px;height:20px;}
.recipe-icon-hint{display:flex;align-items:center;gap:6px;}.recipe-icon-hint .ic{width:14px;height:14px;color:var(--sage-deep);}

/* ===== Week: no wall of text ===== */
body[data-season] .day .dmeals{display:grid;gap:6px;margin-top:10px;font-size:12.5px;line-height:1.3;}
body[data-season] .day .dm-line{display:flex;align-items:center;gap:8px;min-width:0;color:var(--ink);}
body[data-season] .day .dm-line > span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body[data-season] .day .dm-line .ic{width:15px;height:15px;flex:0 0 15px;color:var(--sage-deep);}
body[data-season] .day-meal-row .dm-t .t-main{display:block;font-weight:600;}
body[data-season] .day-meal-row .dm-t .t-sides{display:block;margin-top:2px;font-size:11.5px;font-weight:400;color:var(--ink-soft);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body[data-season] .day.expanded .dmeals{display:none;}

/* ===== Meal view vs recipe view ===== */
.recipe-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.3px;text-transform:uppercase;color:var(--ink-soft);margin:4px 0 0;}
.recipe-inline-link{display:inline;border:0;background:none;padding:0;font:inherit;font-weight:600;color:var(--sage-deep);text-decoration:underline;text-underline-offset:2px;cursor:pointer;}
.recipe-edit-note{flex:1 1 100%;margin:2px 0 0;font-size:11px;}
#serveRowShared .serve-card{flex:1;}

/* Composite meal rows: sub-meal name, stepper, kcal, swap */
.madeof-row{flex-wrap:wrap;gap:6px 10px;align-items:center;}
.madeof-row .madeof-name{flex:1 1 140px;min-width:0;}
.madeof-row .madeof-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.madeof-swap{width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--ink-soft);display:grid;place-items:center;cursor:pointer;flex:0 0 36px;}
.madeof-swap:hover,.madeof-swap:active{background:var(--paper);color:var(--sage-deep);}
.madeof-swap .ic{width:18px;height:18px;}
#mealCompSwapResults .altrow{margin-top:8px;}

/* ===== Manage-meal sheet ===== */
.meal-extra-btns{display:inline-flex;gap:2px;flex:0 0 auto;}
.meal-extra-btns .tag-undo{width:36px;height:36px;min-width:36px;padding:0;border:0;background:transparent;border-radius:10px;display:grid;place-items:center;color:var(--ink-soft);}
.meal-extra-btns .tag-undo:hover,.meal-extra-btns .tag-undo:active{background:var(--paper);color:var(--sage-deep);}
.meal-extra-btns .ic{width:18px;height:18px;}
.meal-extra-row .an-row{display:flex;align-items:center;justify-content:space-between;gap:8px;}
#sheetBody .shop-cat{margin:18px 0 4px;}
#sheetBody input[type="search"].inp{min-height:44px;border-radius:12px;background:var(--card);padding:0 14px;}

/* ===== Manage-meal sheet v2: one reading path (options -> contents -> add), nothing hidden ===== */
.mm-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px;}
.mm-chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:0;border-radius:999px;background:var(--surface-strong);color:var(--sage-deep);font:inherit;font-size:12px;font-weight:600;cursor:pointer;}
.mm-chip .ic{width:16px;height:16px;}
.mm-chip.on{background:var(--sage-deep);color:#fff5f3;}
.mm-link{display:block;margin:4px 2px 0;font-size:12px;color:var(--ink-soft);text-decoration:underline;text-underline-offset:2px;background:none;border:0;padding:6px 0;text-align:left;cursor:pointer;}
.mm-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:18px 0 4px;}
.mm-section-head .shop-cat{margin:0;}
.mm-total{font-size:11px;color:var(--ink-soft);}
.mm-list{border:1px solid var(--line);border-radius:16px;background:var(--card);overflow:hidden;}
.altrow.mm-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:center;margin:0;padding:10px 6px 10px 12px;border:0;border-radius:0;border-top:1px solid var(--line);background:transparent;cursor:default;min-height:0;}
.altrow.mm-row:first-child{border-top:0;}
.mm-ico{grid-row:1 / span 2;grid-column:1;width:40px;height:40px;border-radius:11px;background:var(--paper);display:grid;place-items:center;overflow:hidden;font-size:18px;}
.mm-ico img{width:100%;height:100%;object-fit:contain;}
.mm-ico .ic{width:20px;height:20px;color:var(--sage-deep);}
.mm-name{grid-column:2;grid-row:1;font-size:14px;font-weight:600;line-height:1.25;min-width:0;overflow-wrap:anywhere;}
.mm-tag{margin-left:8px;font-size:9px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;color:var(--ink-soft);vertical-align:1px;}
.mm-btns{grid-column:3;grid-row:1;display:flex;gap:0;}
.mm-ibtn{width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--ink-soft);display:grid;place-items:center;cursor:pointer;padding:0;}
.mm-ibtn:hover,.mm-ibtn:active{background:var(--paper);color:var(--sage-deep);}
.mm-ibtn .ic{width:18px;height:18px;}
.mm-meta{grid-column:2;grid-row:2;font-size:11px;color:var(--ink-soft);}
.mm-step{grid-column:2 / -1;grid-row:3;justify-self:start;display:inline-flex;align-items:center;gap:2px;margin-top:6px;padding:2px;border:1px solid var(--line);border-radius:12px;background:var(--paper);}
.mm-step button{width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:var(--sage-deep);font:inherit;font-size:18px;font-weight:600;cursor:pointer;}
.mm-val,.mm-val-input{min-width:44px;text-align:center;font:inherit;font-size:14px;font-weight:600;color:var(--ink);}
.mm-val-input{width:54px;border:0;background:transparent;padding:0;}
.mm-unit,.mm-unit-static{font:inherit;font-size:12px;color:var(--ink-soft);background:transparent;border:0;padding:0 4px;}
.mm-unit{min-height:34px;cursor:pointer;}
.altrow.mm-add{margin-top:8px;display:flex;align-items:center;gap:12px;}
.mm-plus{flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:var(--surface-strong);color:var(--sage-deep);display:grid;place-items:center;}
.mm-plus .ic{width:18px;height:18px;}

/* ===== Ingredient options ===== */
.ing-options-card{margin-top:12px;padding:14px;}
.ing-options-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.opt-chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:0;border-radius:999px;background:var(--surface-strong);color:var(--sage-deep);font:inherit;font-size:13px;font-weight:600;cursor:pointer;}
.opt-chip small{font-size:10px;font-weight:600;letter-spacing:.4px;opacity:.75;text-transform:uppercase;}
.opt-chip.on{background:var(--sage-deep);color:#fff5f3;}
.opt-current{font-size:13px;font-weight:500;color:var(--ink-soft);font-family:inherit;letter-spacing:0;margin-left:6px;}
.opt-edit-list{border:1px solid var(--line);border-radius:16px;background:var(--card);overflow:hidden;}
.opt-edit-row{display:flex;align-items:center;gap:8px;padding:10px 6px 10px 12px;border-top:1px solid var(--line);}
.opt-edit-row:first-child{border-top:0;}
.opt-edit-main{flex:1;min-width:0;}
.opt-edit-main .inp{width:100%;box-sizing:border-box;min-height:40px;border:1px solid var(--line);border-radius:10px;padding:0 10px;font:inherit;font-size:14px;}
.opt-edit-food{font-size:11px;color:var(--ink-soft);margin-top:3px;}
.opt-default{flex:0 0 auto;min-height:36px;padding:0 12px;border:0;border-radius:999px;background:var(--surface-strong);color:var(--sage-deep);font:inherit;font-size:12px;font-weight:600;cursor:pointer;}
.opt-default.on{background:var(--sage-deep);color:#fff5f3;}
.ing-edit-opt,.mm-opt{display:inline-block;margin-left:8px;min-height:28px;max-width:140px;border:1px solid var(--line);border-radius:999px;background:var(--surface-strong);color:var(--sage-deep);font:inherit;font-size:11px;font-weight:600;padding:0 8px;cursor:pointer;vertical-align:1px;}

/* Recipes, off the page — transparent watercolor art and a calm cooking view. */
body[data-season] .recipe-list-image{object-fit:contain;background:transparent;border-radius:0;}
body[data-season] .altrow .ae.recipe-list-art{background:transparent;border:0;border-radius:0;overflow:visible;}
body[data-season] #libraryRecipes .altrow[data-recipe-id]{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;column-gap:14px;row-gap:7px;min-height:128px;margin:0;padding:16px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;}
body[data-season] #libraryRecipes .altrow[data-recipe-id]:hover{background:rgba(255,255,255,.14);}
body[data-season] #libraryRecipes .ae.recipe-list-art{grid-column:1;grid-row:1 / span 2;width:82px;height:92px;flex:none;filter:drop-shadow(0 4px 3px rgba(62,40,29,.10));}
body[data-season] #libraryRecipes .altrow[data-recipe-id] .at{grid-column:2;grid-row:1;min-width:0;}
body[data-season] #libraryRecipes .altrow[data-recipe-id] .an{font-family:var(--font-serif);font-weight:400;font-size:21px;line-height:1.2;letter-spacing:-.35px;overflow-wrap:anywhere;}
body[data-season] #libraryRecipes .altrow[data-recipe-id] .ad{font-size:11px;line-height:1.5;margin-top:5px;}
body[data-season] #libraryRecipes .lib-recipe-actions{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;min-width:0;flex:none;}
body[data-season] #libraryRecipes .lib-recipe-actions :is(.lib-edit,.lib-del,.lib-add-book){width:44px;height:44px;min-width:44px;flex:0 0 44px;background:transparent;color:var(--ink-soft);border-radius:12px;}
body[data-season] #libraryRecipes .lib-recipe-actions .is-pref{background:var(--surface-strong);color:var(--sage-deep);}
body[data-season] #libraryRecipes .lib-recipe-actions .lib-del{color:var(--terra);}
body[data-season] #libraryRecipes .lib-recipe-actions button:hover{background:var(--paper);}
body[data-season] #recipe .recipe-topline{align-items:center;margin-bottom:8px;}
body[data-season] #recipe .recipe-topline .backbtn{margin:0;}
body[data-season] #recipe .recipe-detail-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:none;margin-top:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;}
body[data-season] #recipe .recipe-hero-media{width:100%;height:260px;min-height:0;border-radius:0;background:transparent;overflow:visible;display:grid;place-items:center;}
body[data-season] #recipe .recipe-image{width:270px;height:260px;max-width:100%;padding:0;border-radius:0;background:transparent;object-fit:contain;filter:drop-shadow(0 7px 5px rgba(62,40,29,.12));}
body[data-season] #recipe .recipe-image.recipe-photo{width:min(100%,480px);border-radius:18px;object-fit:cover;filter:none;}
body[data-season] #recipe #recipeTitle{font-size:36px;line-height:1.12;letter-spacing:-1.2px;margin:0 0 12px;overflow-wrap:anywhere;}
body[data-season] #recipe .meta-line{display:flex;flex-wrap:wrap;gap:7px 14px;color:var(--ink-soft);}
body[data-season] #recipe :is(#rsKcal,#rsProt){display:none;}
body[data-season] #recipe .detail-hero-badges{margin-top:9px;}
body[data-season] #recipe .recipe-nutrition-section{margin-top:18px;}
body[data-season] #recipe .recipe-nutrition-section h2{font-family:inherit;font-size:11px;letter-spacing:0;color:var(--ink-soft);margin:0 0 10px;}
body[data-season] #recipe #recipeNutri{grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:15px;overflow:hidden;}
body[data-season] #recipe #recipeNutri .n{min-width:0;border:0;border-radius:0;background:var(--card);padding:11px 10px;}
body[data-season] #recipe #recipeNutri .nt{display:flex;flex-direction:column;gap:5px;font-size:10px;line-height:1.35;}
body[data-season] #recipe #recipeNutri .nt b{font-size:18px;font-weight:500;color:var(--ink);}
body[data-season] #recipe #recipeKcalSplit{font-size:10px;}
body[data-season] #recipe .recipe-content-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-top:24px;}
body[data-season] #recipe .recipe-content-tabs button{min-height:44px;padding:10px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--ink-soft);font:inherit;font-size:13px;}
body[data-season] #recipe .recipe-content-tabs button[aria-selected="true"]{border-bottom-color:var(--sage-deep);color:var(--sage-deep);font-weight:600;}
body[data-season] #recipe :is([role="tabpanel"],.recipe-content-tabs)[hidden]{display:none!important;}
body[data-season] #recipe .recipe-servings-section{margin-top:16px;}
body[data-season] #recipe .recipe-servings-section h2{font-family:inherit;font-size:13px;letter-spacing:0;}
body[data-season] #recipe .recipe-servings-section .sub{font-size:10px;}
body[data-season] #recipe .serve-card{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border:0;background:transparent;}
body[data-season] #recipe .serve-card .sv-name{margin:0;font-size:12px;}
body[data-season] #recipe :is(#ingHeader,#madeOfSection>h2){font-family:inherit;font-size:13px;letter-spacing:0;line-height:1.4;}
body[data-season] #recipe #recipeMethodSection>h2{display:none;}
body[data-season] #recipe .ing li{background:transparent;}
body[data-season] .recipe-image-card-art{background:transparent;overflow:visible;border-radius:0;}
body[data-season] .recipe-image-card-art img{object-fit:contain;background:transparent;}
body[data-season] .recipe-image-tile{background:transparent;object-fit:contain;}
@media(max-width:350px){
  body[data-season] #libraryRecipes .altrow[data-recipe-id]{grid-template-columns:60px minmax(0,1fr);column-gap:10px;}
  body[data-season] #libraryRecipes .ae.recipe-list-art{width:60px;height:76px;}
  body[data-season] #libraryRecipes .altrow[data-recipe-id] .an{font-size:19px;}
  body[data-season] #recipe #recipeTitle{font-size:31px;}
  body[data-season] #recipe #recipeNutri .n{padding:10px 7px;}
  body[data-season] #recipe #recipeNutri .nt b{font-size:16px;}
}
body[data-season] #recipe #recipeNutri{display:block;background:transparent;border:0;border-radius:0;overflow:visible;}
body[data-season] #recipe .recipe-nutrition-primary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:15px;overflow:hidden;}
body[data-season] #recipe .recipe-nutrition-more{margin-top:9px;}
body[data-season] #recipe .recipe-nutrition-more summary{min-height:44px;display:flex;align-items:center;gap:6px;color:var(--ink-soft);font-size:11px;cursor:pointer;}
body[data-season] #recipe .recipe-nutrition-more summary::after{content:'＋';font-size:14px;}
body[data-season] #recipe .recipe-nutrition-more[open] summary::after{content:'−';}
body[data-season] #recipe .recipe-nutrition-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:13px;overflow:hidden;}
body[data-season] :is(#today,#dayView) .meal .thumb:not(.has-photo):not(.has-direct-photo){background:transparent;}
body[data-season] :is(#today,#dayView) .meal .thumb:not(.has-photo):not(.has-direct-photo) .meal-thumb-art{object-fit:contain;transform:none;filter:drop-shadow(0 4px 3px rgba(62,40,29,.10));}

/* Today watercolor heroes need a full-bleed surface; compact tiles stay transparent. */
body[data-season] :is(#today,#dayView) .meal-featured .thumb:not(.has-photo):not(.has-direct-photo){background-color:#eee2ce;background-image:radial-gradient(ellipse at 50% 35%,#fbf4e5 0%,#e8d8bd 100%);border:0;border-radius:0;box-shadow:none;}
body[data-season] :is(#today,#dayView) .meal-featured .thumb:not(.has-photo):not(.has-direct-photo) .meal-thumb-art{width:100%;height:100%;object-fit:contain;transform:none;filter:drop-shadow(0 5px 4px rgba(62,40,29,.13));}

/* Meal/recipe identity: a compact illustration beside the title, rather than a tall hero. */
body[data-season] #recipe .recipe-detail-hero{grid-template-columns:104px minmax(0,1fr);align-items:center;gap:14px;}
body[data-season] #recipe .recipe-hero-media{width:104px;height:112px;}
body[data-season] #recipe .recipe-image{width:104px;height:112px;}
body[data-season] #recipe .recipe-image.recipe-photo{width:104px;height:112px;border-radius:12px;}
body[data-season] #recipe #recipeTitle{font-size:30px;line-height:1.12;margin-bottom:8px;}
body[data-season] #recipe .meta-line{font-size:11px!important;gap:5px 10px;}
body[data-season] #recipe .detail-hero-badges{margin-top:7px;}

/* Ingredient artwork is decorative and travels with the clickable ingredient name. */
body[data-season] #recipe .recipe-ingredient-label{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;vertical-align:middle;}
body[data-season] #recipe .recipe-ingredient-label .ingredient-icon{width:28px;height:30px;flex:0 0 28px;object-fit:contain;background:transparent;border-radius:0;}
body[data-season] #recipe .recipe-ingredient-text{min-width:0;overflow-wrap:anywhere;}
body[data-season] #recipe #ingList li{align-items:center;gap:8px;}
body[data-season] #recipe #ingList li>span:first-child{min-width:0;flex:1;}
body[data-season] #recipe #ingList .ing-sub-right{flex:0 0 auto;}
body[data-season] #recipe .ing-sub-removed .ingredient-icon{opacity:.45;}
@media(max-width:350px){
  body[data-season] #recipe .recipe-detail-hero{grid-template-columns:84px minmax(0,1fr);gap:10px;}
  body[data-season] #recipe .recipe-hero-media,body[data-season] #recipe .recipe-image,body[data-season] #recipe .recipe-image.recipe-photo{width:84px;height:96px;}
  body[data-season] #recipe #recipeTitle{font-size:27px;}
  body[data-season] #recipe .recipe-ingredient-label{gap:6px;}
  body[data-season] #recipe .recipe-ingredient-label .ingredient-icon{width:24px;flex-basis:24px;}
}

/* Uploaded photographs fill the same frame as editorial photos, without watercolor padding. */
body[data-season] :is(#today,#dayView) .meal-featured .thumb.has-direct-photo{background:transparent;border:0;border-radius:0;}
body[data-season] :is(#today,#dayView) .meal-featured .thumb.has-direct-photo .meal-thumb-art{width:100%;height:100%;object-fit:cover;object-position:center;transform:none;filter:none;}

/* Put cooking content in the first screen: one portion row and its related actions. */
body[data-season] #recipe.screen{padding-top:12px;}
body[data-season] #recipe .recipe-topline{margin-bottom:2px;}
body[data-season] #recipe .recipe-detail-hero{grid-template-columns:80px minmax(0,1fr);gap:12px;}
body[data-season] #recipe .recipe-hero-media,body[data-season] #recipe .recipe-image,body[data-season] #recipe .recipe-image.recipe-photo{width:80px;height:88px;}
body[data-season] #recipe #recipeTitle{font-size:28px;margin-bottom:6px;}
body[data-season] #recipe .recipe-nutrition-section{margin-top:12px;}
body[data-season] #recipe .recipe-nutrition-section h2{margin-bottom:7px;}
body[data-season] #recipe .recipe-nutrition-more{margin-top:3px;}
body[data-season] #recipe .recipe-nutrition-more summary{min-height:32px;}
body[data-season] #recipe #recipeKcalSplit{margin:8px 0 0;font-size:10px;}
body[data-season] #recipe .recipe-content-tabs{margin-top:8px;}
body[data-season] #recipe .recipe-servings-section{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 8px;margin-top:8px;padding-bottom:10px;border-bottom:1px solid var(--line);}
body[data-season] #recipe .recipe-servings-section .recipe-section-heading{grid-column:1;grid-row:1;}
body[data-season] #recipe #recipeServingsSub,body[data-season] #recipe .recipe-servings-section .sv-name{display:none;}
body[data-season] #recipe .recipe-servings-section .serve-row{grid-column:2;grid-row:1;margin:0;}
body[data-season] #recipe .recipe-servings-section .serve-card{padding:0;gap:0;}
body[data-season] #recipe .recipe-servings-section .sv-stepper{margin:0;gap:7px;}
body[data-season] #recipe .recipe-servings-section .sv-stepper button{width:44px;height:44px;min-width:44px;}
body[data-season] #recipe .recipe-servings-section input.sv-val{width:2.5em;}
body[data-season] #recipe #sharedCaption{grid-column:1 / -1;margin:0!important;font-size:10px;}
body[data-season] #recipe .recipe-detail-actions{grid-column:1 / -1;margin-top:0;gap:6px;align-items:center;}
body[data-season] #recipe .recipe-action{font-size:11px;padding:0 10px;min-height:44px;border-radius:11px;}
body[data-season] #recipe .recipe-detail-actions .recipe-action-quiet{border:0;background:transparent;padding:0 3px;margin-left:auto;}
body[data-season] #recipe #ingredientsSection,body[data-season] #recipe #madeOfSection{margin-top:12px;}
body[data-season] #recipe #ingList{margin-top:7px;}
body[data-season] #recipe .ing-sub-hint{font-size:11px;line-height:1.4;font-style:normal;padding:0 0 7px!important;}
@media(max-width:350px){body[data-season] #recipe #recipeTitle{font-size:25px;}}

/* Recipe management stays available above the cooking tabs without pushing food down. */
body[data-season] #recipe .recipe-actions-toolbar{display:flex;margin-top:2px;}
body[data-season] #recipe .recipe-actions-toolbar[hidden]{display:none;}
body[data-season] #recipe .recipe-actions-menu{position:relative;}
body[data-season] #recipe .recipe-actions-menu summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;list-style:none;border:1px solid var(--line);border-radius:12px;background:var(--surface-strong);color:var(--ink);font-size:24px;cursor:pointer;}
body[data-season] #recipe .recipe-actions-menu summary::-webkit-details-marker{display:none;}
body[data-season] #recipe .recipe-actions-menu summary:focus-visible{outline:2px solid var(--sage-deep);outline-offset:3px;}
body[data-season] #recipe .recipe-actions-menu-body{position:absolute;top:calc(100% + 6px);left:0;width:min(290px,calc(100vw - 44px));z-index:20;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px rgba(62,40,29,.18);}
body[data-season] #recipe .recipe-actions-menu .recipe-detail-actions{display:flex;flex-direction:column;align-items:stretch;gap:3px;margin:0;}
body[data-season] #recipe .recipe-actions-menu .recipe-action{width:100%;margin:0;padding:0 12px;border:0;border-radius:8px;text-align:left;font-size:13px;background:transparent;color:var(--ink);}
body[data-season] #recipe .recipe-actions-menu .recipe-action:hover{background:var(--surface-strong);}
body[data-season] #recipe .recipe-actions-menu .recipe-action-danger{color:#b25e35;}
body[data-season] #recipe .recipe-actions-menu .recipe-edit-note{margin:6px 8px;font-size:11px;line-height:1.5;}

/* Recipe browsing: a denser list and a watercolor card grid share the same filters/actions. */
body[data-season] #libraryRecipes .recipe-filter-toolbar{gap:8px;flex-wrap:wrap;}
body[data-season] #libraryRecipes .recipe-layout-toggle{display:flex;margin-left:auto;border:1px solid var(--line);border-radius:12px;overflow:hidden;}
body[data-season] #libraryRecipes .recipe-layout-toggle button{width:44px;min-height:44px;border:0;border-radius:0;background:transparent;color:var(--ink-soft);font-size:23px;}
body[data-season] #libraryRecipes .recipe-layout-toggle button[aria-pressed="true"]{background:var(--surface-strong);color:var(--sage-deep);}
body[data-season] #libraryRecipes .recipe-meal-chips{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0;}
body[data-season] #libraryRecipes .recipe-meal-chips button{min-height:36px;padding:0 10px;font-size:11px;}
body[data-season] #libraryRecipes .altrow[data-recipe-id]{grid-template-columns:66px minmax(0,1fr);column-gap:10px;row-gap:2px;min-height:106px;padding:10px 0;}
body[data-season] #libraryRecipes .ae.recipe-list-art{width:66px;height:74px;}
body[data-season] #libraryRecipes .altrow[data-recipe-id] .an{font-size:19px;}
body[data-season] #libraryRecipes .altrow[data-recipe-id] .ad{margin-top:3px;font-size:10px;}
body[data-season] #libraryRecipes .lib-recipe-actions{gap:0;}
body[data-season] #libraryRecipes .recipe-collection-grid .recipe-meal-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
body[data-season] #libraryRecipes .recipe-collection-grid .altrow[data-recipe-id]{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.16);min-width:0;}
body[data-season] #libraryRecipes .recipe-collection-grid .ae.recipe-list-art{width:100%;height:115px;flex:none;}
body[data-season] #libraryRecipes .recipe-collection-grid .recipe-list-image{width:100%;height:100%;}
body[data-season] #libraryRecipes .recipe-collection-grid .at{flex:1;}
body[data-season] #libraryRecipes .recipe-collection-grid .an{font-size:18px;}
body[data-season] #libraryRecipes .recipe-collection-grid .lib-recipe-actions{display:grid;grid-template-columns:repeat(2,44px);justify-content:end;align-self:stretch;margin-top:auto;}
body[data-season] #libraryRecipes .recipe-collection-grid .lib-recipe-actions.market{display:flex;}
@media(min-width:720px){body[data-season] #libraryRecipes .recipe-collection-grid .recipe-meal-group{grid-template-columns:repeat(3,minmax(0,1fr));}}

/* Recipe top bar: Back on the left (platform convention), view label centred, recipe actions (⋯) on the right —
   one bar, so the menu is no longer an orphan button floating between the nutrition card and the tabs. */
body[data-season] #recipe .recipe-topline{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;margin:0 0 4px;}
body[data-season] #recipe .recipe-topline .backbtn{justify-self:start;min-height:44px;margin:0 0 0 -6px;padding:0 8px 0 2px;gap:2px;}
body[data-season] #recipe .recipe-topline .recipe-eyebrow{margin:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body[data-season] #recipe .recipe-topline .recipe-actions-toolbar{justify-self:end;margin:0 -6px 0 0;}
body[data-season] #recipe .recipe-topline .recipe-actions-menu summary{width:44px;height:44px;border:0;background:transparent;border-radius:50%;color:var(--sage-deep);font-size:0;}
body[data-season] #recipe .recipe-topline .recipe-actions-menu summary:hover,
body[data-season] #recipe .recipe-topline .recipe-actions-menu[open] summary{background:var(--surface-strong);}
body[data-season] #recipe .recipe-topline .recipe-actions-menu-body{left:auto;right:0;top:calc(100% + 2px);width:min(260px,calc(100vw - 32px));}
/* "More nutrition": quiet chevron instead of ＋/− (Mesa button rules). */
body[data-season] #recipe .recipe-nutrition-more summary::after{content:'';width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;}
body[data-season] #recipe .recipe-nutrition-more[open] summary::after{content:'';transform:rotate(180deg);}
