
/* Amy's Kitchen. Fresh Market Dark: sidebar + content, landscape touch screen (1280x800 target). Single dark theme by design. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/kitchen/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/kitchen/fonts/figtree.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --pink-deep: #F80078;   /* the logo's deeper pink */
  --bg: #130F12;
  --surface: #1D171B;
  --surface-2: #271F25;
  --side: #171216;
  --line: #352A32;
  --fg: #F3EAEF;
  --muted: #AD9CA6;
  --accent: #F82090;
  --tab-on: #3A1429;
  --alert: #FF7A45;
  --on-fill: #1A0610;

  --a-produce: #4CAF50;
  --a-meat: #E35D5B;
  --a-dairy: #4A90D9;
  --a-bakery: #D4A256;
  --a-pantry: #E8833A;
  --a-frozen: #5BC0DE;
  --a-household: #9B6BCC;
  --a-other: #AD9CA6;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --r: 4px;
  --tap: 52px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 17px/1.45 var(--body);
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
  overflow: hidden;
}
input, textarea { user-select: text; -webkit-user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.app { display: grid; grid-template-columns: 200px minmax(0, 1fr); height: 100%; }

/* ---------- Sidebar ---------- */
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; padding: 20px 12px 16px; min-height: 0; }
.brand { font: 800 1.7rem/1 var(--display); color: var(--accent); padding: 2px 12px 4px; }
.today { color: var(--muted); font-size: .9rem; padding: 0 12px 18px; }
.tab { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 14px; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); font-weight: 600; font-size: 1.02rem; text-align: left; }
.tab svg { width: 24px; height: 24px; flex: none; }
.tab.on { background: var(--tab-on); color: var(--accent); }
.tab .badge { margin-left: auto; min-width: 28px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--accent); color: var(--on-fill); font-size: .82rem; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.side .spacer { flex: 1; }
.foot-note { font-size: .75rem; color: var(--muted); padding: 10px 12px 0; border-top: 1px solid var(--line); line-height: 1.4; }

/* ---------- Main screen ---------- */
.main { min-width: 0; min-height: 0; position: relative; }
.screen { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-inline: 26px; padding-block: 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.head h1 { margin: 0; font: 800 2.05rem/1.05 var(--display); text-wrap: balance; }
.head .grow { flex: 1; }
.eyebrow { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 700; font-size: 1rem; white-space: nowrap; transition: transform .08s ease, background-color .15s ease; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-fill); }
.btn.danger { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 45%, var(--line)); }
.btn.danger.solid { background: var(--alert); color: var(--on-fill); border-color: var(--alert); }
.btn.icon { padding: 0; width: var(--tap); }
.btn svg { width: 22px; height: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-fill); font-weight: 800; font-size: .95rem; border: 0; font-variant-numeric: tabular-nums; }

input[type="text"], input[type="url"], input[type="number"], textarea {
  width: 100%; min-height: var(--tap); padding: 12px 16px; border-radius: var(--r);
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); font: 500 1.05rem var(--body);
}
textarea { resize: none; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
label.f { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--muted); }

/* ---------- Quick Add ---------- */
.quick-grid { flex: 1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: minmax(96px, 1fr); gap: 10px; }
@media (max-width: 1100px) { .quick-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); } }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 12px 16px; border: 0; border-radius: var(--r); background: var(--surface); text-align: left; box-shadow: inset 0 -6px 0 var(--aisle); transition: transform .08s ease, background-color .15s ease; min-width: 0; }
.tile:active { transform: scale(.95); }
.tile .name { font-weight: 700; font-size: 1.04rem; line-height: 1.15; overflow-wrap: anywhere; }
.tile .sub { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.tile.on { background: var(--aisle); color: var(--tile-ink, var(--on-fill)); box-shadow: none; }
.tile.on .sub { color: var(--tile-ink, var(--on-fill)); }

/* ---------- Menu ---------- */
.week-nav { display: flex; align-items: center; gap: 10px; }
.week-label { font-weight: 700; min-width: 170px; text-align: center; font-variant-numeric: tabular-nums; }
.week { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; min-height: 320px; }
@media (max-width: 1000px) { .week { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.day { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: left; min-width: 0; }
.day.today { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.day .dname { font: 800 1.25rem/1 var(--display); }
.day .ddate { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.day .dish { font-weight: 700; font-size: 1.08rem; line-height: 1.25; overflow-wrap: anywhere; }
.day .meta { color: var(--muted); font-size: .85rem; }
.day .note { font-style: italic; color: var(--muted); font-weight: 600; }
.day .empty { margin-top: auto; margin-bottom: auto; color: var(--accent); font-weight: 700; }
.day .now { align-self: flex-start; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--on-fill); background: var(--accent); padding: 3px 8px; border-radius: 3px; }

/* ---------- Recipes ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .search { flex: 1 1 280px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .92rem; color: var(--muted); }
.chip.on { background: var(--tab-on); border-color: var(--accent); color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: left; min-height: 150px; min-width: 0; }
.card h3 { margin: 0; font: 700 1.3rem/1.15 var(--display); padding-right: 52px; overflow-wrap: anywhere; }
.card .meta { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tag { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 3px; background: var(--surface-2); color: var(--muted); }
.tag.ex { color: var(--a-bakery); }
.star { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); }
.star svg { width: 26px; height: 26px; }
.star.on { color: #F2C94C; }
.empty-state { padding: 40px 0; color: var(--muted); text-align: center; }

/* ---------- Groceries ---------- */
.addbar { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.addrow { display: flex; gap: 10px; }
.addrow input { flex: 1; }
.aisle-chip { display: inline-flex; align-items: center; gap: 8px; }
.aisle-chip i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); display: inline-block; }
.aisle-chip.on { border-color: var(--c); color: var(--fg); background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
.glist { columns: 320px; column-gap: 14px; }
.group { break-inside: avoid; margin-bottom: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.group h2 { margin: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font: 700 1rem var(--body); border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--c); }
.group h2 .n { margin-left: auto; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.gi { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.gi:last-child { border-bottom: 0; }
.gi .tick { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 6px 14px; border: 0; background: transparent; text-align: left; font-size: 1.05rem; font-weight: 600; min-width: 0; }
.gi .box { flex: none; width: 30px; height: 30px; border-radius: 4px; border: 2px solid var(--muted); display: grid; place-items: center; }
.gi .box svg { width: 20px; height: 20px; opacity: 0; color: var(--on-fill); }
.gi.done .box { background: var(--accent); border-color: var(--accent); }
.gi.done .box svg { opacity: 1; }
.gi.done .txt .t { text-decoration: line-through; color: var(--muted); }
.gi .txt { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.gi .src { font-size: .74rem; color: var(--muted); font-weight: 600; text-decoration: none; }
.gi .x { width: 58px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; }
.gi .x svg { width: 20px; height: 20px; }

/* ---------- Recipe detail ---------- */
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stat b { font-size: 1.1rem; }
.stat span { color: var(--muted); font-size: .85rem; }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.stepper button { width: 56px; height: var(--tap); border: 0; background: transparent; font-size: 1.5rem; font-weight: 700; }
.stepper .v { min-width: 120px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.panel { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; min-width: 0; }
.panel h2 { margin: 0 0 10px; font: 700 1.1rem var(--display); }
.ing { list-style: none; margin: 0; padding: 0; }
.ing li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ing li:last-child { border-bottom: 0; }
.ing .q { flex: none; min-width: 78px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }
.ing .dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); align-self: center; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); max-width: 70ch; }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); font: 800 1.15rem var(--display); color: var(--accent); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mock-badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; background: color-mix(in srgb, var(--a-bakery) 22%, transparent); color: var(--a-bakery); }

/* ---------- Edit form ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form .row4 { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .form, .form .row4 { grid-template-columns: 1fr; } }
.form textarea { min-height: 300px; }
.hint { color: var(--muted); font-size: .85rem; font-weight: 500; }
.err { color: var(--alert); font-weight: 700; }

/* ---------- Cook view ---------- */
.cook { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.cook aside { background: var(--side); border-right: 1px solid var(--line); padding: 22px 18px; overflow-y: auto; }
.cook aside h2 { margin: 0 0 4px; font: 800 1.3rem/1.15 var(--display); }
.cook aside .ing li { font-size: .95rem; padding: 7px 0; }
.cook aside .ing .q { min-width: 64px; }
.cook main { display: grid; grid-template-rows: auto 1fr auto; padding: 22px 30px 26px; gap: 18px; min-height: 0; }
.cook .bar { display: flex; align-items: center; gap: 14px; }
.cook .bar .grow { flex: 1; }
.progress { display: flex; gap: 6px; }
.progress i { width: 34px; height: 6px; border-radius: 3px; background: var(--line); }
.progress i.on { background: var(--accent); }
.cook .stepnum { font: 800 1.1rem var(--display); color: var(--accent); }
.cook .steptext { align-self: center; font: 600 clamp(1.6rem, 3.2vw, 2.5rem)/1.3 var(--body); max-width: 28ch; text-wrap: pretty; }
.cook .nav { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.cook .nav .btn { min-height: 76px; font-size: 1.25rem; }

/* ---------- Sheet + toast ---------- */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(8, 4, 7, .7); display: grid; place-items: center; padding: 24px; }
.sheet { width: min(820px, 100%); max-height: calc(100% - 24px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: grid; gap: 16px; }
.sheet h2 { margin: 0; font: 800 1.5rem/1.1 var(--display); }
.sheet p { margin: 0; color: var(--muted); }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pick .btn { justify-content: flex-start; min-height: 64px; text-align: left; white-space: normal; background: var(--surface-2); }
.pick .btn.on { border-color: var(--accent); color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; transform: translateX(-50%); background: var(--fg); color: var(--bg); font-weight: 700; padding: 14px 22px; border-radius: 6px; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); max-width: calc(100% - 32px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn:active, .tile:active { transform: none; } }

/* ---------- Tonight strip ---------- */
.tonight { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--accent); }
.tonight .lbl { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.tonight .what { font: 800 1.35rem/1.15 var(--display); min-width: 0; overflow-wrap: anywhere; }
.tonight .what.muted { color: var(--muted); font-weight: 700; }
.tonight .meta { color: var(--muted); font-size: .9rem; }
.tonight .grow { flex: 1; }

/* ---------- Timers ---------- */
.tbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 2px 12px; margin: 2px 2px; border-radius: 999px; border: 1px solid var(--accent); background: var(--tab-on); color: var(--accent); font-weight: 800; font-size: .95em; vertical-align: baseline; }
.tbtn svg { width: 18px; height: 18px; }
.timers { position: fixed; left: 200px; right: 0; bottom: 0; z-index: 45; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--side); border-top: 1px solid var(--accent); }
body.cooking .timers { left: 300px; }
body.has-timers .screen { padding-bottom: 96px; }
body.has-timers .cook main { padding-bottom: 92px; }
.timer { display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.timer .t-left { font: 800 1.5rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--accent); min-width: 84px; }
.timer .t-label { font-weight: 700; font-size: .9rem; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer .btn { min-height: 48px; }
.alarm { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; gap: 18px; padding: calc(18px + env(safe-area-inset-top, 0px)) 24px 18px; background: var(--accent); color: var(--on-fill); border: 0; width: 100%; text-align: left; animation: pulse 1s ease-in-out infinite alternate; }
.alarm b { font: 800 1.8rem/1.1 var(--display); }
.alarm span { font-weight: 700; }
.alarm .grow { flex: 1; }
.alarm .stop { min-height: 60px; padding: 0 28px; border-radius: var(--r); background: var(--on-fill); color: var(--accent); font-weight: 800; font-size: 1.15rem; display: inline-flex; align-items: center; }
@keyframes pulse { from { filter: brightness(1); } to { filter: brightness(1.18); } }

/* ---------- Toast with undo ---------- */
.toast { display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 22px; }
.toast[hidden] { display: none; }
.toast .undo { min-height: 46px; padding: 0 18px; border: 0; border-radius: 4px; background: var(--bg); color: var(--accent); font-weight: 800; }

/* ---------- Offline ---------- */
.offline { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(8, 4, 7, .9); text-align: center; }
.offline[hidden] { display: none; }
.offline h2 { margin: 0 0 8px; font: 800 2rem var(--display); color: var(--alert); }
.offline p { margin: 0; color: var(--fg); font-size: 1.1rem; }

.err-inline { color: var(--alert); font-weight: 700; }
.busy { opacity: .6; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .alarm { animation: none; } }
body.has-timers .toast { bottom: 96px; }

/* ---------- Disabled buttons + Email the list ---------- */
.btn:disabled, .chip:disabled { opacity: .45; cursor: default; }
.btn:disabled:active { transform: none; }
.mail-people { gap: 12px; }
.mail-people .person { display: inline-flex; align-items: center; gap: 12px; min-height: 68px; padding: 0 26px 0 16px; font-size: 1.2rem; color: var(--fg); }
.mail-people .person .mark { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; font-size: 1rem; font-weight: 800; }
.mail-people .person.on { color: var(--accent); }
.mail-people .person.on .mark { background: var(--accent); border-color: var(--accent); color: var(--on-fill); }
.sheet .actions .btn.primary { min-width: 140px; }

/* ---------- Recipe filters, crowd servings, diets, web buttons ---------- */
.frow { display: flex; align-items: flex-start; gap: 12px; }
.frow .chips { flex: 1; min-width: 0; }
.flabel { flex: none; min-width: 96px; padding-top: 12px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.chip .cnt { margin-left: 4px; font-size: .78rem; font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
.chip.more { border-style: dashed; }
.chip.clear { border-color: var(--alert); color: var(--alert); }
#recipe-filters { display: grid; gap: 8px; }
.more-row { display: flex; justify-content: center; padding: 16px 0 4px; }
.crowd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crowd .flabel { padding-top: 0; min-width: 0; }
.crowd .chip { min-width: 52px; justify-content: center; }
.diets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.diets .flabel { padding-top: 0; min-width: 0; }
.tag.diet { background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); color: var(--accent); }
.tab.web { min-height: 52px; }
.tab.web svg { width: 22px; height: 22px; }
#pick-q, #coll-new { width: 100%; }
.sheet .pick { max-height: 40vh; overflow-y: auto; }
.empty-state .btn { margin-top: 10px; }
@media (max-width: 900px) { .frow { flex-direction: column; gap: 4px; } .flabel { padding-top: 0; } }

.import-note{margin:0 0 12px;padding:12px 16px;border:1px solid var(--accent);border-radius:12px;background:rgba(248,32,144,.14);font-size:18px}

/* Screensaver: the logo bounces about when nobody has touched the screen for a while. */
#saver { position: fixed; inset: 0; z-index: 90; background: #0B080A; overflow: hidden; cursor: none; touch-action: none; }
#saver img { position: absolute; left: 0; top: 0; display: block; will-change: transform; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.brand-logo { display: block; width: 100%; max-width: 150px; margin: 4px auto 10px; }

/* ---------- 1.3.6 ---------- */
/* Text size (admin > Screen): the content scales, the sidebar keeps its size. */
html[data-text="large"] .main, html[data-text="large"] #cook, html[data-text="large"] #sheet .sheet { zoom: 1.15; }
html[data-text="xl"] .main, html[data-text="xl"] #cook, html[data-text="xl"] #sheet .sheet { zoom: 1.3; }

/* Menu: dinner every day, lunch and dinner on the weekend. */
.week .day { padding: 12px 10px; gap: 8px; }
.week .day.today { color: var(--fg); font-size: inherit; }
.slot { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); text-align: left; min-width: 0; }
.slot.open { border-style: dashed; background: transparent; }
.slot .dish { font-weight: 700; font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.slot .meta { color: var(--muted); font-size: .82rem; }
.slot .note { font-style: italic; color: var(--muted); font-weight: 600; }
.slot .empty { margin: auto 0; color: var(--accent); font-weight: 700; }
.slot .mlabel { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.day.weekend .slot { flex: 1 1 0; }

/* Your rating, "I made this", notes */
.mine-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mine-row .grow { flex: 1; }
.stars { display: inline-flex; gap: 2px; }
.star-btn { width: 48px; height: 48px; border: 0; background: transparent; font-size: 1.9rem; line-height: 1; color: var(--line); padding: 0; }
.star-btn.on { color: #F2C94C; }
.notes-panel .notes-text { margin: 0; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
#notes-text { width: 100%; min-height: 220px; }
.card .meta.mine { color: var(--fg); }
.stars-sm { color: #F2C94C; margin-right: 8px; letter-spacing: 1px; }

/* What can I make with… */
.chip.have { color: var(--accent); }
.cm-suggest .chip { min-height: 40px; font-weight: 600; }
.cm-count { margin: 4px 0 10px; }
.cm-card .cm-uses { color: var(--a-produce); font-weight: 700; font-size: .9rem; }
.cm-card .cm-miss { color: var(--muted); font-size: .92rem; margin-top: auto; }
.cm-card .cm-miss b { color: var(--fg); }
.cm-card .cm-all { color: var(--a-produce); font-weight: 800; margin-top: auto; }
#web-q, #cm-input { flex: 1; }

/* ---------- 1.3.7 ---------- */
/* Menu: entree + up to two sides */
.slot .sides { display: flex; flex-direction: column; gap: 1px; }
.slot .sd { font-size: .84rem; font-weight: 600; color: var(--fg); opacity: .85; overflow-wrap: anywhere; line-height: 1.25; }
.tonight .with { font: 600 1rem/1.2 var(--body); color: var(--muted); }
.sides-box { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.sides-box .eyebrow .hint { text-transform: none; letter-spacing: 0; }
.side-list { display: grid; gap: 8px; }
.side-chip { display: flex; align-items: center; gap: 8px; }
.side-chip .sname { flex: 1; min-height: var(--tap); padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-align: left; font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
#side-q { width: 100%; }

/* Groceries: where a line came from, and the "Already have" pantry box */
.gi .src { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gi .mini { flex: none; align-self: center; min-height: 40px; margin-right: 6px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .82rem; }
.have-box { border-radius: var(--r); background: var(--surface); border: 1px dashed var(--line); overflow: hidden; }
.have-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 16px; border: 0; background: transparent; text-align: left; font-weight: 800; font-size: 1.05rem; flex-wrap: wrap; }
.have-head .n { min-width: 30px; height: 28px; padding: 0 9px; border-radius: 14px; background: var(--surface-2); color: var(--fg); display: inline-grid; place-items: center; font-size: .85rem; font-variant-numeric: tabular-nums; }
.have-head .hint { font-weight: 500; flex: 1; min-width: 200px; }
.have-head .chev { transition: transform .15s ease; color: var(--muted); }
.have-box.open .have-head .chev { transform: rotate(180deg); }
.have-list { border-top: 1px solid var(--line); columns: 320px; column-gap: 0; }
.hv { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 12px 6px 16px; border-bottom: 1px solid var(--line); break-inside: avoid; }
.hv .dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.hv .txt { flex: 1; display: flex; flex-direction: column; min-width: 0; color: var(--muted); font-weight: 600; }
.hv .txt .t { color: var(--fg); }
.hv .src { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv .btn { min-height: 46px; padding: 0 16px; }

/* Pantry */
.lede { margin: -6px 0 0; color: var(--muted); max-width: 80ch; }
.sugg { display: flex; align-items: flex-start; gap: 12px; }
.sugg .chips { flex: 1; min-width: 0; }
.sugg .chip { min-height: 42px; font-weight: 600; }
@media (max-width: 900px) { .sugg { flex-direction: column; gap: 4px; } }
.pi { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.pi:last-child { border-bottom: 0; }
.pi .pname { flex: 1; display: flex; align-items: center; min-height: 58px; padding: 6px 14px; font-weight: 600; font-size: 1.05rem; min-width: 0; overflow-wrap: anywhere; }
.pi .lowbtn { flex: none; align-self: center; min-height: 44px; margin-right: 8px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .88rem; }
.pi .lowbtn.on { background: var(--accent); border-color: var(--accent); color: var(--on-fill); }
.pi.low .pname { color: var(--accent); }
.pi .x { width: 58px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; }
.pi .x svg { width: 20px; height: 20px; }
/* The screen is a flex column: the column lists must keep their full height, or they overlap what follows them. */
.screen > .glist, .screen > .have-box, .screen > .addbar, .screen > .lede { flex: none; }

/* 1.3.8.1: one Quick Add grid, filled left-to-right and sized to the screen. */
.quick-screen { overflow: hidden; }
.quick-screen > .head, .quick-screen > .tonight { flex: none; }
.quick-screen .quick-grid { flex: 1; min-height: 0; grid-auto-rows: minmax(0, 1fr); }
.quick-screen .tile { min-height: 0; overflow: hidden; padding: clamp(5px, 1vh, 12px); gap: 3px; }
.quick-screen .tile .name { font-size: clamp(.8rem, 1.8vh, 1.04rem); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.quick-screen .tile .sub { font-size: clamp(.58rem, 1.2vh, .68rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 1.3.9.1: polish (same theme, colors and layout; softer surfaces, clearer states) ---------- */
:root {
  --r: 10px;
  --r-lg: 14px;
  --surface-hi: #231B21;
  --line-hi: #4A3A45;
  --lift: inset 0 1px 0 rgba(255, 255, 255, .035), 0 8px 20px -14px rgba(0, 0, 0, .8);
  --glow: 0 10px 26px -14px rgba(248, 32, 144, .75);
}
body { background: radial-gradient(1100px 520px at 100% -8%, rgba(248, 32, 144, .07), transparent 62%), var(--bg); }
.head h1 { letter-spacing: -.01em; }

/* Sidebar: a clear "you are here" marker */
.side { background: linear-gradient(180deg, #1B1519, var(--side) 45%); }
.tab { position: relative; transition: background-color .15s ease, color .15s ease; }
.tab.on { background: linear-gradient(90deg, rgba(248, 32, 144, .22), rgba(248, 32, 144, .06)); }
.tab.on::before { content: ""; position: absolute; left: -12px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); box-shadow: 0 0 12px rgba(248, 32, 144, .7); }
.tab .badge { box-shadow: 0 2px 8px -2px rgba(248, 32, 144, .7); }
.foot-note { opacity: .8; }

/* Buttons */
.btn { background: linear-gradient(180deg, #251E23, var(--surface)); box-shadow: var(--lift); transition: transform .08s ease, background-color .15s ease, border-color .15s ease, filter .15s ease; }
.btn.primary { background: linear-gradient(180deg, #FF3D9F, var(--accent)); box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.danger { background: linear-gradient(180deg, #251E23, var(--surface)); }
.btn:disabled { box-shadow: none; }
.pill { box-shadow: var(--glow); }
.pick .btn { box-shadow: none; }
@media (hover: hover) {
  .btn:not(:disabled):hover, .chip:not(:disabled):hover, .slot:hover, .card:hover { border-color: var(--line-hi); }
  .btn.primary:not(:disabled):hover { filter: brightness(1.07); }
  .tab:not(.on):hover { background: var(--surface); color: var(--fg); }
}

/* Inputs */
input[type="text"], input[type="url"], input[type="number"], textarea { transition: border-color .15s ease, box-shadow .15s ease; }
input[type="text"]:focus, input[type="url"]:focus, input[type="number"]:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(248, 32, 144, .22); }

/* Raised panels */
.day, .card, .panel, .group, .addbar, .tonight, .have-box, .sides-box { border-radius: var(--r-lg); }
.day, .card, .panel, .group, .addbar, .tonight { background: linear-gradient(180deg, var(--surface-hi), var(--surface) 140px); box-shadow: var(--lift); }
.tonight { box-shadow: inset 4px 0 0 var(--accent), var(--lift); }
.card { transition: border-color .15s ease, transform .08s ease; }
.card:active { transform: scale(.985); }
.chip.on { box-shadow: 0 0 0 1px var(--accent) inset; }
.tag { border-radius: 6px; }
.empty-state { border: 1px dashed var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .012); padding: 36px 20px; }
.sheet { border-radius: 18px; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .85); }
.toast { border-radius: 14px; }
.toast .undo { border-radius: 10px; }

/* Menu */
.menu-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.week-label { line-height: 1.25; }
.day { gap: 8px; }
.day.today { background: linear-gradient(180deg, rgba(248, 32, 144, .13), var(--surface) 150px); box-shadow: inset 0 3px 0 var(--accent), var(--glow); }
.day .now { border-radius: 999px; padding: 3px 10px; }
.dhead { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.slot { border-radius: var(--r); border-color: transparent; transition: border-color .15s ease, background-color .15s ease, transform .08s ease; }
.slot:active { transform: scale(.98); }
.slot.has-dish { background: linear-gradient(180deg, #2C232A, var(--surface-2)); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 75%, transparent); }
.slot.has-note { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--muted); }
.slot.open { border-color: var(--line); background: transparent; justify-content: center; }
.slot.open .empty { margin: 0; }
.day.weekend .slot { flex: 1 0 auto; }   /* lunch with sides grows instead of running into dinner */
.week .day { padding: 12px 8px 10px; }
.slot { padding: 10px 8px 10px 11px; }
.slot .dish { font-size: .98rem; }
.slot .dish, .day .dish, .tonight .what, .card h3, .slot .sd { overflow-wrap: break-word; hyphens: auto; }
.dclear { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 0 6px; border-radius: var(--r); border: 1px dashed var(--line); white-space: nowrap;
  background: transparent; color: var(--muted); font-weight: 700; font-size: .82rem; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.dclear svg { width: 15px; height: 15px; flex: none; }
.dclear:active { color: var(--alert); border-color: var(--alert); background: color-mix(in srgb, var(--alert) 10%, transparent); }
.dclear:disabled { visibility: hidden; }
@media (hover: hover) { .dclear:not(:disabled):hover { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 55%, var(--line)); } }

/* Quick Add tiles */
.tile { border-radius: var(--r); background: linear-gradient(180deg, #251D23, var(--surface)); box-shadow: inset 0 -5px 0 var(--aisle), var(--lift); }
.tile.on { box-shadow: 0 8px 20px -12px var(--aisle); }

/* Groceries + pantry: each store section carries a hint of its color */
.group h2 { background: color-mix(in srgb, var(--c) 9%, transparent); }
.gi .box { border-radius: 8px; transition: background-color .12s ease, border-color .12s ease; }

/* Groceries: Kroger estimate */
.screen > .pricebar { flex: none; }
.pricebar { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 10px 12px 10px 18px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(76, 175, 80, .11), var(--surface) 60%); box-shadow: inset 4px 0 0 var(--a-produce), var(--lift); }
.pricebar .grow { flex: 1; }
.pb-total { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.pb-total .lbl { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--a-produce); }
.pb-total b { font: 800 1.75rem/1 var(--display); color: #8EE092; font-variant-numeric: tabular-nums; }
.pb-total b.muted { color: var(--muted); font-size: 1.3rem; }
.pb-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--muted); font-size: .88rem; font-weight: 600; }
.pb-err { color: var(--alert); }
.pb-bar { display: block; width: 240px; max-width: 100%; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--a-produce); transition: width .4s ease; }
.pricebar.busy .pb-total b { animation: pulse 1s ease-in-out infinite alternate; }
.price-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pl { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pl:last-child { border-bottom: 0; }
.pl.low { background: color-mix(in srgb, var(--a-bakery) 8%, transparent); }
.pl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pl-item { font-weight: 700; overflow-wrap: break-word; }
.pl-prod { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-flag { color: var(--a-bakery); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pl-cost { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.pl-cost b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pl-cost span { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.pl-offer { color: var(--a-produce); font-size: .78rem; font-weight: 700; }
.pl-cost .pl-weighed { color: var(--a-bakery); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* Cook view */
.progress i { border-radius: 999px; }
.cook .nav .btn { border-radius: var(--r-lg); }

/* Smaller landscape screens (1024x600 kitchen panels, small laptops): a slim sidebar gives the week its room.
   Phones held sideways keep the phone layout below (same test as PHONE_QUERY in app.js). */
@media (min-width: 951px) and (max-width: 1100px), (min-width: 768px) and (max-width: 950px) and (min-height: 501px), (min-width: 768px) and (max-width: 950px) and (pointer: fine) {
  .app { grid-template-columns: 92px minmax(0, 1fr); }
  .side { padding: 12px 8px 10px; gap: 4px; }
  .brand-logo { max-width: 60px; margin: 0 auto 6px; }
  .side .today { display: none; }
  .tab { flex-direction: column; justify-content: center; gap: 3px; min-height: 62px; padding: 6px 2px; font-size: .72rem; text-align: center; }
  .tab svg { width: 22px; height: 22px; }
  .tab.on::before { left: -8px; top: 12px; bottom: 12px; }
  .tab .badge { position: absolute; top: 3px; right: 6px; min-width: 22px; height: 20px; padding: 0 6px; font-size: .68rem; }
  .tab.web { min-height: 54px; }
  .foot-note { font-size: .6rem; padding: 8px 2px 0; text-align: center; }
  .timers { left: 92px; }
  .screen { padding-inline: 18px; padding-block: 14px 18px; gap: 12px; }
  .head { gap: 10px; }
  .head h1 { font-size: 1.7rem; }
  .head .btn, .head .pill { min-height: 46px; padding: 0 14px; font-size: .94rem; }
  .head .btn.icon { width: 46px; padding: 0; }
  .menu-actions { gap: 8px; }
  .week { gap: 7px; min-height: 0; }
  .week .day { padding: 10px 7px 8px; gap: 6px; }
  .day .dname { font-size: 1.08rem; }
  .day .ddate { font-size: .76rem; }
  .slot { padding: 8px 7px 8px 9px; }
  .slot .dish { font-size: .9rem; line-height: 1.2; }
  .slot .sd, .slot .meta { font-size: .74rem; }
  .slot .empty { font-size: .86rem; }
  .dclear { min-height: 36px; padding: 0 4px; font-size: .74rem; gap: 4px; }
  .quick-screen .quick-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .tonight { padding: 8px 12px; gap: 12px; }
  .tonight .what { font-size: 1.12rem; }
  .tonight .btn { min-height: 44px; }
}

/* iPhone layout: desktop/kitchen geometry above remains unchanged. */
@media (max-width:767px), (max-width:950px) and (max-height:500px) and (pointer:coarse) {
  html, body { height:100%; height:100dvh; }
  body { font-size:16px; }
  .app { display:block; height:100%; padding-bottom:calc(68px + env(safe-area-inset-bottom, 0px)); }
  .main { height:100%; }
  .side { position:fixed; z-index:25; left:0; right:0; bottom:0; height:calc(68px + env(safe-area-inset-bottom, 0px)); padding:4px max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px)); border-right:0; border-top:1px solid var(--line); display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:2px; }
  .side .brand-logo,.side .today,.side .spacer,.side .web,.side .foot-note { display:none; }
  .side .tab { position:relative; min-height:60px; padding:5px 2px; flex-direction:column; justify-content:center; gap:2px; font-size:.75rem; text-align:center; }
  .side .tab .badge { position:absolute; top:1px; right:6px; min-width:20px; height:20px; padding:0 5px; font-size:.65rem; }
  .screen { padding: max(16px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 24px max(14px, env(safe-area-inset-left, 0px)); gap:14px; overflow-x:hidden; }
  .head { gap:10px; }
  .head h1 { font-size:1.8rem; width:100%; }
  .head .grow { display:none; }
  .head>.btn { flex:1 1 auto; white-space:normal; padding:9px 12px; }
  .btn,.pill,.chip { min-height:48px; }
  input,textarea,select { font-size:16px!important; min-width:0; }
  .toolbar,.addrow { min-width:0; }
  .addrow input { width:0; }
  .addrow .btn { padding:0 14px; }
  .week-nav { width:100%; justify-content:space-between; }
  .week-label { min-width:0; }
  .week { display:flex; flex-direction:column; flex:none; min-height:0; }
  .week .day.today { order:-1; }
  .day { flex:none; padding:16px; }
  .slot { min-height:70px; }
  .quick-screen { overflow-y:auto; }
  .quick-screen .quick-grid { flex:none; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:minmax(100px,auto); gap:8px; }
  .quick-screen .tile { padding:10px; min-height:100px; }
  .quick-screen .tile .name { font-size:1rem; display:block; overflow:visible; }
  .quick-screen .tile .sub { font-size:.65rem; }
  .tonight { gap:10px; padding:12px; }
  .tonight .what { width:100%; }
  .tonight .grow { display:none; }
  .tonight .btn { flex:1; padding:8px; white-space:normal; }
  .cards,.two,.form,.form .row4,.pick { grid-template-columns:minmax(0,1fr); }
  .glist,.have-list { columns:1; }
  .gi .tick { padding:10px; gap:10px; min-height:64px; }
  .gi .x,.pi .x { flex:none; width:48px; }
  .hv { flex-wrap:wrap; }
  .hv .txt { flex-basis:50%; }
  .actions .btn { flex:1 1 180px; white-space:normal; padding:10px 12px; }
  .ing li>span:last-child,.steps li>span { min-width:0; overflow-wrap:anywhere; }
  .panel { padding:14px; }
  .ing .q { min-width:64px; }
  .stepper { max-width:100%; }
  .stepper .v { min-width:80px; }
  .backdrop { padding:8px; padding-bottom:max(8px,env(safe-area-inset-bottom,0px)); }
  .sheet { max-height:calc(100dvh - 24px); padding:18px; }
  .toast { bottom:calc(78px + env(safe-area-inset-bottom,0px)); width:max-content; max-width:calc(100% - 24px); }
  .timers { left:0; bottom:calc(68px + env(safe-area-inset-bottom,0px)); max-height:25dvh; overflow:auto; }
  body.cooking .timers { bottom:0; }
  .cook { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); height:100dvh; }
  .cook aside { max-height:25dvh; padding:12px; border-right:0; border-bottom:1px solid var(--line); }
  .cook main { padding:12px 14px max(14px,env(safe-area-inset-bottom,0px)); gap:10px; overflow:auto; }
  .cook .bar { flex-wrap:wrap; gap:8px; }
  .cook .progress { display:none; }
  .cook .steptext { font-size:1.45rem; overflow-wrap:anywhere; }
  .cook .nav { gap:8px; }
  .cook .nav .btn { min-height:54px; font-size:1rem; }
  .more-links { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .more-links .btn { justify-content:flex-start; white-space:normal; text-decoration:none; padding:14px; min-height:72px; }
  /* 1.3.9.1 */
  .side { background:var(--side); }
  .side .tab.on::before { left:30%; right:30%; top:0; bottom:auto; width:auto; height:3px; border-radius:0 0 3px 3px; }
  .menu-actions { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .menu-actions .btn { white-space:normal; padding:8px 6px; font-size:.92rem; line-height:1.2; }
  .menu-actions .btn.primary { grid-column:1 / -1; }
  .dclear { min-height:44px; }
  .dclear:disabled { display:none; }
  .pricebar { padding:10px 12px 12px 16px; gap:8px 14px; }
  .pricebar .grow { display:none; }
  .pricebar .btn { flex:1 1 40%; padding:0 10px; }
  .pb-info { flex:1 1 50%; font-size:.82rem; }
  .pl { padding:10px; gap:10px; }
  .pl-cost span { max-width:110px; }
}

.pb-deal { color: #8EE092; font-weight: 700; }
