/* Pantry & Plate — a pocket-sized, happy little grocery shop. */
.install-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 18px;margin-top:22px;border:2px solid var(--ink);border-radius:15px;background:var(--accent-soft);box-shadow:2px 3px 0 var(--ink)}
.install-banner b{font-size:13px}.install-banner p{margin:2px 0;font-size:11px}.install-banner button{flex:none;font-size:12px}
#install-status{padding:12px;border-radius:9px;background:var(--accent-soft);line-height:1.6}
@media(max-width:760px){.install-banner{margin-top:16px;padding:9px 12px;gap:9px}.install-banner b{font-size:11px}.install-banner p{display:none}.install-banner button{font-size:11px;padding:8px 10px}}
:root {
  color-scheme: light;
  --ink: #263b32;
  --paper: #fff8eb;
  --surface: #fffef7;
  --accent: #abe2ba;
  --accent-2: #ffda78;
  --accent-soft: #e1f3df;
  --muted: #5c685f;
  --line: #263b32;
  --pink: #ffcfcc;
  --lavender: #e5dcff;
  --peach: #ffe9d9;
  --green: var(--ink);
  --shadow: 4px 5px 0 var(--ink);
  --shadow-small: 2px 3px 0 var(--ink);
}
:root[data-grocery-theme="berry"] {
  --ink: #49304d;
  --paper: #fff2f4;
  --surface: #fffaf5;
  --accent: #f6b7d5;
  --accent-2: #c9c0f4;
  --accent-soft: #ffe0ec;
  --muted: #725d70;
  --line: #49304d;
  --pink: #ffd4c4;
  --lavender: #e8dcff;
  --peach: #ffedcd;
}
:root[data-grocery-theme="ocean"] {
  --ink: #223f52;
  --paper: #effaff;
  --surface: #fffef5;
  --accent: #9cdeec;
  --accent-2: #bde3c4;
  --accent-soft: #daf3f5;
  --muted: #526b78;
  --line: #223f52;
  --pink: #ffd3bf;
  --lavender: #d7e0ff;
  --peach: #fff0cf;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button {
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 750;
  box-shadow: var(--shadow-small);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
button:hover { background: var(--accent-soft); }
button:active { transform: translate(2px, 2px); box-shadow: none; }
button:disabled { opacity: .55; box-shadow: none; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
.primary { background: var(--accent); color: var(--ink); border-color: var(--ink); }
.primary:hover { background: var(--accent-2); }
input, textarea, select {
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  padding: 12px 13px;
  min-height: 48px;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .9; }
input[type="checkbox"] { min-height: 0; }
label { font-weight: 700; }
.ui-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: none;
  vertical-align: middle;
  color: inherit;
  overflow: visible;
}
button .ui-icon { width: 20px; height: 20px; }
button:has(> .ui-icon) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
header {
  padding: 17px max(28px, calc((100vw - 1164px) / 2));
  border-bottom: 2px solid var(--ink);
  gap: 20px;
  background: var(--surface);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.9px;
  white-space: nowrap;
  color: var(--ink);
}
.brand i { font: inherit; }
.brand > span { display: block; font: inherit; color: var(--ink); letter-spacing: inherit; line-height: 1.08; }
.brand small { display: block; margin-top: 6px; font-size: 8px; font-weight: 800; letter-spacing: 1.15px; line-height: 1.3; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 13px; margin-left: auto; flex: none; }
.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--accent-2);
  box-shadow: var(--shadow-small);
  transform: rotate(-5deg);
  color: var(--ink);
}
.brand-icon .ui-icon { width: 29px; height: 29px; }
img.brand-icon { display: block; object-fit: cover; flex: none; }
header > span { color: var(--muted); font-size: 12px; max-width: 150px; line-height: 1.45; }
header button { margin-left: 0; font-size: 11px; padding: 9px 12px; white-space: nowrap; }
.theme-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
}
.theme-picker select { display: inline-block; margin: 0; width: auto; min-height: 44px; padding: 8px 29px 8px 10px; font-size: 12px; background: var(--accent-soft); }
.theme-picker .ui-icon { width: 18px; height: 18px; }
main { max-width: 1240px; padding: 0 38px; }
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 34px 8px 26px;
  isolation: isolate;
}
.intro::after { display: none; }
.intro-copy { min-width: 0; flex: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  color: var(--ink);
  background: var(--accent-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.15px;
  line-height: 1.4;
  transform: rotate(-2deg);
}
h1, .intro h1 {
  margin: 15px 0 12px;
  max-width: 720px;
  font-family: inherit;
  font-size: clamp(36px, 4.4vw, 53px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2.2px;
}
p { color: var(--muted); line-height: 1.6; }
.intro p { margin: 0; font-size: 14px; max-width: 490px; }
.mascot-stage {
  width: 245px;
  height: 205px;
  flex: 0 0 245px;
  position: relative;
  display: grid;
  place-items: center;
}
.mascot-stage::before {
  content: "";
  position: absolute;
  inset: 19px 9px 8px 16px;
  background: var(--peach);
  border: 2px solid var(--ink);
  border-radius: 45% 55% 47% 53% / 59% 39% 61% 41%;
  transform: rotate(-8deg);
  z-index: -1;
}
.grocery-mascot { width: 203px; height: 183px; overflow: visible; transform: rotate(4deg); }
.hero-sticker {
  position: absolute;
  right: -4px;
  top: 8px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--accent-2);
  box-shadow: var(--shadow-small);
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  transform: rotate(8deg);
}
.stats { gap: 14px; margin: 2px 0 26px; }
.stat {
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: var(--accent);
  padding: 16px 20px;
  gap: 13px;
  box-shadow: var(--shadow-small);
}
.stat:nth-child(2) { background: var(--accent-2); }
.stat:nth-child(3) { background: var(--lavender); }
.stat-icon {
  width: 45px;
  height: 45px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  transform: rotate(-5deg);
}
.stat-icon .ui-icon { width: 27px; height: 27px; }
.stat-copy { display: flex; flex-direction: column; gap: 0; }
.stat b { font: 900 29px/1.1 ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink); font-size: 11px; font-weight: 650; }
nav {
  gap: 8px;
  border-bottom: 0;
  padding: 5px 0 18px;
  margin-bottom: 17px;
  background: var(--paper);
  top: 0;
  z-index: 3;
}
nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  box-shadow: none;
}
nav button.active { border: 2px solid var(--ink); background: var(--accent-2); color: var(--ink); font-weight: 850; box-shadow: var(--shadow-small); }
.nav-icon { display: inline-flex; align-items: center; }
.nav-icon .ui-icon { width: 21px; height: 21px; }
#badge:not(:empty) { padding: 1px 6px; margin-left: 0; border: 1px solid var(--ink); color: var(--surface); background: var(--ink); font-size: 10px; min-width: 20px; }
.dashboard-layout { grid-template-columns: minmax(0, 1fr) 284px; gap: 26px; }
.quick-entry {
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 23px;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}
.quick-entry > label { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 20px; font-weight: 850; letter-spacing: -.45px; }
.quick-entry > label .ui-icon { width: 25px; height: 25px; }
.quick-entry form { gap: 10px; }
.quick-entry input[name="name"] { background: var(--paper); }
.quick-entry form > .primary { padding: 10px 20px; min-width: 93px; width: auto; margin: 0; flex: none; }
.quick-entry details { color: var(--muted); font-weight: 650; }
summary { min-height: 39px; padding: 9px 0 5px; }
.quick-options { padding-top: 8px; }
.quick-options input, .quick-options select { font-size: 14px; background: var(--paper); }
.list-heading { gap: 12px; margin: 0 0 17px; align-items: center; }
.list-heading h2, .toolbar h2 { font: 850 25px/1.15 ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif; letter-spacing: -.8px; }
.list-heading p { font-size: 12px; margin: 7px 0 0; }
.list-heading button { background: var(--accent-soft); font-size: 11px; padding: 9px 12px; white-space: nowrap; }
.aisle-group {
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: var(--surface);
  margin-bottom: 21px;
  overflow: hidden;
  box-shadow: var(--shadow-small);
}
.aisle-group h3 {
  padding: 11px 16px;
  font: 800 12px/1.35 ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  letter-spacing: .4px;
  text-transform: none;
  background: var(--accent-soft);
  color: var(--ink);
  align-items: center;
}
.aisle-group:nth-child(3n+2) h3 { background: var(--peach); }
.aisle-group:nth-child(3n) h3 { background: var(--lavender); }
.aisle-group h3 > span:last-child:not(.aisle-label) { color: var(--ink); font-size: 11px; }
.aisle-label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink) !important; }
.section-icon { display: inline-flex; color: var(--ink); }
.section-icon .ui-icon { width: 20px; height: 20px; }
.section-icon.ui-icon { width: 20px; height: 20px; }
.grocery-row { padding: 5px 9px; border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); gap: 1px; }
.grocery-check { gap: 11px; padding: 8px; min-height: 64px; font-weight: 650; }
.grocery-check input { width: 24px; height: 24px; accent-color: var(--ink); }
.item-icon { display: grid; place-items: center; width: 34px; height: 37px; border-radius: 10px; background: var(--peach); flex: none; }
.item-icon .ui-icon { width: 25px; height: 25px; }
.item-text { gap: 2px; }
.item-text strong { font-size: 14px; font-weight: 750; }
.item-text small { font-size: 11px; font-weight: 550; color: var(--muted); }
.grocery-row > button { border: 0; box-shadow: none; min-width: 42px; min-height: 44px; padding: 8px; color: var(--muted); font-size: 11px; border-radius: 10px; }
.grocery-row > button .ui-icon { width: 17px; height: 17px; }
.grocery-row > button:hover { background: var(--accent-soft); color: var(--ink); }
.is-checked { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.is-checked .item-icon { background: var(--surface); opacity: .7; }
.is-checked strong { color: var(--muted); }
.cart-group { background: var(--surface); }
.cart-group h3 { background: var(--accent) !important; }
.cart-group .note { font-size: 11px; line-height: 1.6; padding: 0 17px; }
.kitchen-links {
  position: relative;
  padding: 25px 22px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--pink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.kitchen-links .eyebrow { background: var(--surface); font-size: 9px; }
.kitchen-links h3 { font: 850 26px/1.15 ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif; letter-spacing: -.8px; margin: 21px 0 12px; }
.kitchen-links p { color: var(--ink); font-size: 12px; }
.kitchen-links > button { margin: 12px 0; padding: 11px 13px; font-size: 12px; gap: 8px; align-items: center; }
.kitchen-links > button > .ui-icon:first-child { width: 21px; height: 21px; }
.kitchen-links > button > span:not(.ui-icon) { margin-left: auto; }
.phone-note { border-color: color-mix(in srgb, var(--ink) 30%, transparent); margin-top: 24px; padding-top: 20px; font-size: 12px; }
.phone-note b { display: flex; align-items: center; gap: 7px; }
.phone-note b .ui-icon { width: 19px; height: 19px; }
.phone-note small { color: var(--muted); font-size: 10px; }
.list-empty, .empty { border: 2px dashed var(--ink); border-radius: 19px; padding: 37px 20px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.list-empty > span { width: 58px; height: 58px; border: 2px solid var(--ink); border-radius: 18px; background: var(--accent-2); color: var(--ink); box-shadow: var(--shadow-small); transform: rotate(-7deg); }
.list-empty > span .ui-icon { width: 31px; height: 31px; }
.list-empty h3 { font: 850 23px/1.2 ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif; letter-spacing: -.6px; margin-top: 22px; }
.list-empty p { font-size: 12px; }
.toolbar { gap: 12px; margin-bottom: 23px; }
.toolbar h2 { max-width: 440px; }
.toolbar .primary { font-size: 12px; }
.toolbar input, .toolbar select { font-size: 13px; }
.grid { gap: 22px; }
.card { border: 2px solid var(--ink); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); }
.art { height: 160px; background: var(--accent); border-bottom: 2px solid var(--ink); }
.card:nth-child(3n+2) .art { background: var(--pink); }
.card:nth-child(3n) .art { background: var(--lavender); }
.art > span { display: inline-block; transform: rotate(-7deg); filter: drop-shadow(2px 3px 0 #0002); }
.heart { top: 11px; right: 11px; width: 43px; height: 43px; min-height: 43px; padding: 5px; border: 2px solid var(--ink); border-radius: 13px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-small); }
.card-body { padding: 21px; }
.meta { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .7px; }
h3 { font: 850 24px/1.15 ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif; letter-spacing: -.6px; }
.card h3 { font-size: 23px; }
.match { color: var(--ink); font-size: 11px; font-weight: 650; }
.bar { height: 7px; background: var(--paper); border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; margin: 10px 0 18px; }
.bar span { background: var(--accent); }
.card-body > button { font-size: 12px; border-radius: 11px; }
.row { margin-bottom: 10px; border: 2px solid var(--ink); border-radius: 14px; background: var(--surface); padding: 15px 17px; }
.row:first-child { border-radius: 14px; }
.row strong { font-weight: 750; }
.row > span { font-size: 12px; font-weight: 700; }
.row small { color: var(--muted); font-size: 11px; }
.row button { border-radius: 10px; font-size: 11px; min-height: 44px; }
.row button[data-remove] { box-shadow: none; border: 0; }
dialog { padding: 26px; width: 560px; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 7px 8px 0 var(--ink); }
dialog::backdrop { background: #23352e99; backdrop-filter: blur(4px); }
.modal-head { gap: 15px; align-items: flex-start; }
.modal-head h2 { font: 850 28px/1.15 ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif; letter-spacing: -.8px; margin: 3px 0 17px; }
.modal-head button { border: 2px solid var(--ink); box-shadow: none; padding: 7px; min-width: 40px; min-height: 40px; background: var(--surface); }
dialog label { color: var(--ink); font-size: 12px; margin-top: 17px; }
dialog label input, dialog label select, dialog label textarea { background: var(--surface); margin-top: 7px; font-size: 15px; }
dialog .note { font-size: 11px; }
dialog h3 { font-size: 21px; margin-top: 24px; }
dialog p { font-size: 13px; }
.ingredients li { padding: 12px 0; border-color: color-mix(in srgb, var(--ink) 25%, transparent); font-size: 13px; }
.have { color: #2b6b43; }
.need { color: #964624; }
.actions button { font-size: 12px; }
form > .primary { margin-top: 24px; min-height: 49px; }
footer { padding: 43px 0 28px; font-size: 10px; line-height: 1.7; color: var(--muted); }
#toast { border: 2px solid var(--ink); border-radius: 13px; background: var(--accent-2); color: var(--ink); box-shadow: var(--shadow-small); font-size: 12px; font-weight: 750; z-index: 20; }
.note { font-size: 11px; line-height: 1.6; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  header { gap: 14px; padding: 16px 28px; }
  header > span { display: none; }
  .dashboard-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 21px; }
  .kitchen-links { padding: 23px 18px; }
  .kitchen-links h3 { font-size: 25px; }
  .stat { padding: 15px; gap: 10px; }
  .stat-icon { width: 39px; height: 41px; }
  .stat b { font-size: 27px; }
  .stat span { font-size: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(93px + env(safe-area-inset-bottom)); }
  header { flex-wrap: wrap; gap: 8px; padding: calc(9px + env(safe-area-inset-top)) 18px 9px; }
  .brand { gap: 8px; font-size: 23px; letter-spacing: -.8px; margin-right: 0; flex: 1 0 100%; }
  header .brand > span { display: block; font: inherit; color: var(--ink); letter-spacing: inherit; }
  .brand small { margin-top: 5px; font-size: 7.5px; letter-spacing: 1px; }
  header .brand-icon { display: block; width: 41px; height: 41px; border-radius: 12px; }
  .header-actions { width: 100%; margin-left: 0; display: flex; justify-content: space-between; gap: 12px; }
  .brand-icon .ui-icon { width: 25px; height: 25px; }
  header > span { display: none; }
  header button { min-height: 44px; font-size: 10px; padding: 8px 10px; margin-left: 0; }
  header button .ui-icon { width: 16px; height: 16px; }
  .theme-picker { order: 0; margin: 0; font-size: 10px; gap: 7px; min-width: 0; }
  .theme-picker select { min-height: 44px; font-size: 16px; padding: 7px 20px 7px 9px; border-radius: 10px; max-width: 168px; }
  .theme-picker .ui-icon { display: inline-block; width: 17px; height: 17px; }
  main { padding: 0 18px; }
  .intro { padding: 25px 1px 23px; gap: 4px; align-items: center; }
  .intro-copy { flex: 1 1 auto; position: relative; z-index: 1; }
  .intro .eyebrow { font-size: 8px; padding: 4px 7px; letter-spacing: .7px; max-width: 100%; }
  .intro .eyebrow .ui-icon { width: 14px; height: 14px; }
  .intro h1 { font-size: clamp(28px, 6.6vw, 43px); letter-spacing: -1.3px; margin: 13px 0 10px; max-width: 100%; }
  .intro p { font-size: 11px; max-width: 250px; }
  .mascot-stage { flex: 0 0 132px; width: 132px; height: 155px; margin-right: -4px; }
  .mascot-stage::before { inset: 23px 0 8px 1px; }
  .grocery-mascot { width: 132px; height: 133px; }
  .hero-sticker { right: -1px; top: 6px; padding: 4px 6px; font-size: 7px; border-width: 1.5px; box-shadow: 1.5px 2px 0 var(--ink); border-radius: 6px; }
  .stats { gap: 9px; margin: 0 0 24px; }
  .stat { flex-direction: row; align-items: center; justify-content: flex-start; border-radius: 14px; padding: 12px 10px; gap: 8px; box-shadow: 2px 3px 0 var(--ink); min-width: 0; }
  .stat-icon { width: 30px; height: 33px; border-radius: 10px; border-width: 1.5px; }
  .stat-icon .ui-icon { width: 21px; height: 21px; }
  .stat-copy { min-width: 0; gap: 1px; }
  .stat b { font-size: 25px; line-height: 1; }
  .stat span { font-size: 8px; line-height: 1.25; }
  nav { position: fixed; top: auto; left: 0; right: 0; bottom: 0; margin: 0; padding: 9px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 2px solid var(--ink); border-radius: 20px 20px 0 0; gap: 8px; background: var(--surface); box-shadow: 0 -4px 0 color-mix(in srgb, var(--ink) 8%, transparent); z-index: 6; }
  nav button { display: flex; flex: 1 1 0; flex-direction: column; gap: 3px; border: 0; border-radius: 12px; padding: 7px 4px; min-height: 56px; color: var(--muted); background: transparent; font-size: 10px; position: relative; box-shadow: none; }
  nav button.active { border: 1.5px solid var(--ink); padding: 5.5px 2.5px; background: var(--accent-2); box-shadow: 2px 2px 0 var(--ink); }
  .nav-icon .ui-icon { width: 24px; height: 24px; }
  .nav-label { line-height: 1.2; }
  #badge:not(:empty) { position: absolute; top: 4px; right: calc(50% - 28px); font-size: 8px; min-width: 16px; padding: 0 4px; border: 1px solid var(--surface); }
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .quick-entry { padding: 18px; border-radius: 18px; margin: 0 0 28px; box-shadow: 3px 4px 0 var(--ink); }
  .quick-entry > label { font-size: 18px; gap: 8px; margin-bottom: 13px; }
  .quick-entry > label .ui-icon { width: 23px; height: 23px; }
  .quick-entry form { gap: 9px; }
  .quick-entry input[name="name"] { width: 60%; padding: 11px 12px; min-height: 49px; font-size: 16px; }
  .quick-entry form > .primary { padding: 10px 15px; min-width: 80px; min-height: 49px; font-size: 13px; }
  .quick-entry details { font-size: 11px; }
  .quick-options { gap: 11px; }
  .quick-options input, .quick-options select { font-size: 16px; }
  .list-heading { gap: 8px; margin-bottom: 16px; }
  .list-heading h2 { font-size: 23px; letter-spacing: -.7px; }
  .list-heading p { font-size: 10px; max-width: 190px; }
  .list-heading button { font-size: 10px; padding: 8px 10px; min-height: 44px; }
  .list-heading button .ui-icon { width: 17px; height: 17px; }
  .aisle-group { border-radius: 15px; margin-bottom: 19px; }
  .aisle-group h3 { padding: 10px 12px; font-size: 11px; }
  .grocery-row { padding: 4px 5px; }
  .grocery-check { padding: 8px 6px; gap: 10px; min-height: 65px; }
  .grocery-check input { width: 23px; height: 23px; }
  .item-icon { width: 31px; height: 34px; border-radius: 9px; }
  .item-icon .ui-icon { width: 23px; height: 23px; }
  .item-text strong { font-size: 13px; }
  .item-text small { font-size: 10px; }
  .grocery-row > button { font-size: 10px; min-width: 38px; padding: 8px 7px; }
  .grocery-row > button[data-grocery-remove] { min-width: 32px; }
  .grocery-row > button .ui-icon { width: 16px; height: 16px; }
  .kitchen-links { border-radius: 19px; padding: 23px; box-shadow: 3px 4px 0 var(--ink); }
  .kitchen-links h3 { max-width: 290px; margin-top: 17px; font-size: 27px; }
  .kitchen-links > button { min-height: 48px; font-size: 13px; }
  .phone-note { margin-top: 22px; padding-top: 20px; }
  .toolbar { margin-top: 3px; gap: 12px; }
  .toolbar h2 { font-size: 25px; flex: 1 1 100%; max-width: 100%; }
  .toolbar input, .toolbar select { font-size: 16px; min-width: 0; }
  .toolbar input { flex: 1 1 120px; width: 130px; }
  .toolbar select { flex: 1 1 135px; width: 130px; }
  .toolbar .primary { min-height: 47px; font-size: 12px; }
  .grid { gap: 17px; }
  .card { border-radius: 18px; box-shadow: 3px 4px 0 var(--ink); }
  .art { height: 142px; }
  .card-body { padding: 18px; }
  .card h3 { font-size: 23px; }
  .row { padding: 13px; gap: 10px; border-radius: 14px; }
  .row strong { flex-basis: 55%; font-size: 13px; }
  .row small { flex: 1; width: auto; }
  .empty, .list-empty { padding: 32px 19px; }
  dialog { padding: 23px 20px; max-width: calc(100vw - 26px); max-height: 88dvh; border-radius: 21px; box-shadow: 4px 5px 0 var(--ink); }
  .modal-head h2 { font-size: 26px; }
  dialog label input, dialog label select, dialog label textarea { font-size: 16px; }
  .actions { gap: 11px; }
  .actions > button { width: 100%; min-height: 48px; }
  footer { padding: 34px 7px 14px; font-size: 9px; }
  #toast { bottom: calc(95px + env(safe-area-inset-bottom)); font-size: 11px; padding: 11px 16px; max-width: calc(100vw - 32px); }
}

@media (max-width: 460px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .art { height: 154px; }
}
@media (max-width: 380px) {
  header { padding-left: 14px; padding-right: 14px; }
  main { padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 22px; }
  header button { font-size: 9px; padding: 8px; }
  .intro h1 { font-size: 27px; }
  .mascot-stage { flex-basis: 105px; width: 105px; height: 137px; }
  .grocery-mascot { width: 112px; height: 117px; }
  .hero-sticker { right: -2px; top: 1px; font-size: 6px; }
  .intro p { font-size: 10px; }
  .stat { gap: 6px; padding: 11px 8px; }
  .stat-icon { width: 26px; height: 29px; border-radius: 8px; }
  .stat-icon .ui-icon { width: 18px; height: 18px; }
  .stat b { font-size: 23px; }
  .stat span { font-size: 7.5px; }
  .list-heading h2 { font-size: 21px; }
  .list-heading button { font-size: 9px; padding: 8px; }
  .grocery-check { gap: 8px; }
  .item-icon { width: 27px; height: 31px; }
  .grocery-row > button { min-width: 32px; padding: 7px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
