@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-900-normal.woff2") format("woff2");
}

:root {
  --color-bg: #f3f5ee;
  --color-surface: #fff;
  --color-surface-tint: #eaf0e4;
  --color-primary-tint: #dde8d3;
  --color-track: #e6ece0;
  --color-ink: #18241c;
  --color-muted: #56645a;
  --color-muted-strong: #3e4a42;
  --color-placeholder: #6b776e;
  --color-primary: #2f5d3a;
  --color-primary-hover: #244a2e;
  --color-highlight: #f2d04b;
  --color-border: #ccd6c4;
  --color-border-control: #7f8f7b;
  --color-border-dashed: #9fb39a;
  --color-divider: #dde3d6;
  --color-divider-soft: #eef1ea;
  --color-warning-bg: #fbf1c9;
  --color-warning-ink: #4a3d00;
  --color-error: #b42318;
  --color-scrim: rgba(24, 36, 28, .55);
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 999px;
  --shadow-menu: 0 0 0 1px var(--color-divider), 0 18px 48px rgba(24, 36, 28, .18);
  --shadow-dialog: 0 24px 64px rgba(24, 36, 28, .28);
  --ring-hover: 0 0 0 2px var(--color-primary);
  --ring-tonight: 0 0 0 3px var(--color-ink);
  --duration-fast: 150ms;

  /* Legacy aliases while the static prototype is progressively componentized. */
  --paper: var(--color-bg);
  --paper-deep: var(--color-surface-tint);
  --ink: var(--color-ink);
  --muted: var(--color-muted);
  --rule: var(--color-divider);
  --accent: var(--color-primary);
  --accent-dark: var(--color-primary-hover);
  --sage: var(--color-primary);
  --white: var(--color-surface);
  --sans: var(--font-sans);
  --serif: var(--font-sans);
}

html { background: var(--color-bg); }
[hidden] { display: none !important; }
body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
}
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, select, textarea, [tabindex]):focus { outline: 0; }
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.topbar {
  align-items: center;
  backdrop-filter: none;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 30px;
  height: 74px;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
}
.brand {
  align-items: center;
  color: var(--color-ink);
  display: inline-flex;
  gap: 10px;
  font: 900 22px/1 var(--font-sans);
  letter-spacing: -.055em;
  min-height: 44px;
  white-space: nowrap;
}
.brand-mark {
  flex: 0 0 auto;
  height: 30px;
  object-fit: contain;
  width: 30px;
}
.brand-wordmark {
  display: inline-block;
  letter-spacing: -.055em;
}
.primary-nav {
  align-items: center;
  align-self: center;
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  gap: 0;
  height: auto;
  padding: 4px;
}
.nav-link {
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  min-height: 40px;
  padding: 0 18px;
  text-transform: none;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}
.nav-link:hover { background: var(--color-surface); }
.nav-link[aria-current="page"] { background: var(--color-primary); color: #fff; font-weight: 700; }
.account { position: relative; }
.button {
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  min-height: 44px;
  padding: 0 18px;
  transform: none;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease, opacity var(--duration-fast) ease;
}
.button:hover { transform: none; }
.button svg { height: 18px; width: 18px; }
.button.primary, .button.accent { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.button.primary:hover, .button.accent:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.button.dark { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.button.dark:hover { background: color-mix(in srgb, var(--color-ink) 90%, white); }
.button.secondary { background: var(--color-surface); border-color: var(--color-border); color: var(--color-ink); }
.button.secondary:hover { background: var(--color-bg); }
.button.small { font-size: 14px; min-height: 40px; padding: 0 14px; }
.add-recipe-button { justify-self: end; }
.avatar {
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  height: 44px;
  width: 44px;
}
.avatar[aria-expanded="true"] { background: var(--color-primary); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-primary); color: #fff; }
.auth-pending .avatar, .is-signed-out .avatar, .is-demo .avatar { min-height: 44px; }
.is-demo .avatar { border-color: var(--color-border); color: var(--color-ink); }

main { max-width: 1280px; padding: 0 24px 64px; }
.plan-content { padding-top: 40px; }
h1, h2, h3 { color: var(--color-ink); font-family: var(--font-sans); }
.eyebrow { color: var(--color-muted); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.meta { color: var(--color-muted); font-size: 13px; letter-spacing: 0; line-height: 1.4; }
.text-action {
  align-items: center;
  color: var(--color-primary);
  display: inline-flex;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 40px;
  padding: 0;
  text-transform: none;
}
.text-action:hover { color: var(--color-primary-hover); }
.text-action svg { height: 17px; width: 17px; }

.account-menu {
  background: var(--color-surface);
  border-radius: 18px;
  box-shadow: var(--shadow-menu);
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 58px;
  width: 340px;
  z-index: 70;
}
.account-menu[hidden] { display: none; }
.account-menu-person { align-items: center; display: flex; gap: 14px; padding: 20px; }
.account-menu-avatar { align-items: center; background: var(--color-primary-tint); border-radius: 50%; color: var(--color-primary); display: flex; flex: 0 0 auto; font-weight: 800; height: 52px; justify-content: center; width: 52px; }
.account-menu-person strong, .account-menu-person small, .account-sync strong, .account-sync small { display: block; }
.account-menu-person strong { font-size: 16px; }
.account-menu-person small { color: var(--color-muted); font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-sync { align-items: start; background: var(--color-surface-tint); border-radius: var(--radius-md); display: flex; gap: 10px; margin: 0 12px 10px; padding: 14px; }
.account-sync strong { font-size: 14px; }
.account-sync small { color: var(--color-muted-strong); font-size: 13px; line-height: 1.45; }
.sync-dot { background: var(--color-primary); border-radius: 50%; flex: 0 0 auto; height: 10px; margin-top: 5px; width: 10px; }
.account-menu-actions { border-top: 1px solid var(--color-divider); padding: 8px 0; }
.account-menu-actions button { align-items: center; background: transparent; border: 0; cursor: pointer; display: flex; gap: 14px; font-size: 15px; font-weight: 600; min-height: 48px; padding: 0 20px; text-align: left; width: 100%; }
.account-menu-actions button:hover { background: var(--color-surface-tint); }
.account-menu-actions svg { color: var(--color-muted); height: 18px; width: 18px; }

.household-modal { border-radius: var(--radius-lg); max-height: calc(100dvh - 32px); overflow: hidden; }
.household-modal .modal-head p { color: var(--color-muted); font-size: 14px; margin: 6px 0 0; }
.household-modal .modal-body { max-height: calc(100dvh - 148px); overflow-y: auto; }
.household-invite { background: var(--color-surface-tint); border-radius: var(--radius-md); margin-bottom: 28px; padding: 18px; }
.household-invite h3, .household-section h3 { font-size: 18px; font-weight: 800; margin: 0; }
.household-invite > p { color: var(--color-muted); font-size: 13px; margin: 5px 0 15px; }
.household-invite form { align-items: end; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
.household-invite .field { margin: 0; }
.household-invite .field > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.household-section + .household-section { border-top: 1px solid var(--color-divider); margin-top: 24px; padding-top: 24px; }
.household-section-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 8px; }
.household-section-head > span { color: var(--color-muted); font-size: 13px; }
.household-person { align-items: center; border-bottom: 1px solid var(--color-divider); display: grid; gap: 12px; grid-template-columns: 38px minmax(0, 1fr) auto; min-height: 64px; padding: 9px 0; }
.household-person:last-child { border-bottom: 0; }
.household-person-avatar { align-items: center; background: var(--color-primary-tint); border-radius: 50%; color: var(--color-primary); display: flex; font-size: 12px; font-weight: 800; height: 38px; justify-content: center; width: 38px; }
.household-person strong, .household-person small { display: block; }
.household-person strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.household-person small { color: var(--color-muted); font-size: 12px; margin-top: 2px; }
.household-person-actions { align-items: center; display: flex; gap: 8px; }
.household-person-actions button { background: transparent; border: 0; color: var(--color-primary); cursor: pointer; font-size: 12px; font-weight: 700; min-height: 36px; padding: 0 5px; }
.household-person-actions button[data-remove-member], .household-person-actions button[data-revoke-invite] { color: var(--color-error); }
.household-loading { color: var(--color-muted); font-size: 13px; padding: 14px 0; }

/* Signed-out landing */
.welcome { min-height: calc(100vh - 74px); padding: clamp(56px, 8vw, 108px) 0 72px; }
.welcome-copy h1 { font-size: clamp(58px, 8vw, 96px); font-weight: 900; letter-spacing: -.04em; line-height: .95; }
.welcome-copy > p { color: var(--color-muted); font-size: 17px; }
.welcome-preview { border-color: var(--color-divider); border-radius: var(--radius-xl); box-shadow: none; }
.welcome-preview-head h2 { font-size: 26px; font-weight: 800; }
.welcome-preview-head span, .welcome-day-date { letter-spacing: 0; text-transform: none; }
.welcome-day h3 { font-size: 17px; font-weight: 700; }
.preview-notice { background: var(--color-warning-bg); border-color: var(--color-border); border-radius: var(--radius-md); }
.demo-notice { background: var(--color-ink); border-radius: 0 0 var(--radius-md) var(--radius-md); margin-top: 0; }
.demo-reset { font-size: 13px; letter-spacing: 0; min-height: 40px; text-transform: none; }

/* Plan */
.plan-header-row { align-items: center; display: flex; gap: 20px; justify-content: space-between; }
.week-switcher { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.week-switcher h1, .shop-header-row h1 {
  font-size: clamp(42px, 4.1vw, 52px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0 12px 0 0;
}
.week-switcher h1.is-past { color: var(--color-muted); }
.week-date-tag { align-items: center; background: var(--color-primary-tint); border-radius: var(--radius-pill); color: var(--color-primary); display: inline-flex; font-size: 15px; font-weight: 700; height: 32px; padding: 0 13px; }
.week-date-tag.is-past { background: var(--color-track); color: var(--color-muted); }
.icon-button {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}
.icon-button:hover { background: var(--color-bg); }
.icon-button:disabled { cursor: not-allowed; opacity: .4; }
.icon-button svg { height: 20px; width: 20px; }
.plan-header-actions { align-items: center; display: flex; gap: 10px; }
.week-cycle-controls { align-items: center; display: flex; gap: 8px; }
.meal-list {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 40px;
  overflow: visible;
}
.meal-row {
  align-items: stretch;
  align-content: start;
  background: var(--color-surface);
  border: 0;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  min-height: 304px;
  padding: 10px 10px 14px;
  position: relative;
}
.meal-row:hover { background: var(--color-surface); }
.meal-row.planned:hover { box-shadow: var(--ring-hover); }
.meal-row.past .meal-thumb { filter: saturate(.5); opacity: .6; }
.meal-row.past h3, .meal-row.past .meal-date strong { color: var(--color-muted); }
.meal-row.open { background: transparent; border: 1.5px dashed var(--color-border-dashed); }
.meal-row.open:hover { background: var(--color-surface-tint); border-color: var(--color-primary); border-style: solid; }
.meal-row.past.open { border-color: var(--color-border); }
.meal-row.tonight { background: var(--color-highlight); box-shadow: var(--ring-tonight); }
.meal-row.tonight:hover { background: var(--color-highlight); box-shadow: var(--ring-tonight); }
.meal-date { align-items: center; color: var(--color-muted); display: flex; flex-direction: row; justify-content: space-between; min-height: 28px; padding: 0 4px 6px; text-transform: none; }
.meal-date strong { color: var(--color-ink); font-size: 15px; font-weight: 800; letter-spacing: 0; }
.meal-date span { font-size: 14px; letter-spacing: 0; }
.meal-row.tonight .meal-date strong { font-weight: 900; }
.meal-row.tonight .meal-date span { color: var(--color-ink); font-weight: 700; }
.meal-card-open, .meal-title-open { background: transparent; border: 0; cursor: pointer; padding: 0; text-align: left; width: 100%; }
.meal-card-open { display: block; height: 100%; }
.meal-title-open:focus-visible, .meal-card-open:focus-visible { border-radius: var(--radius-md); box-shadow: none !important; outline: 3px solid var(--color-primary) !important; outline-offset: 2px; }
.meal-photo-wrap { aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; position: relative; width: 100%; }
.meal-thumb, .meal-photo-wrap .image-fallback { height: 100%; object-fit: cover; width: 100%; }
.meal-row h3 { display: -webkit-box; font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.25; margin: 11px 4px 6px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.meal-row .meta { display: block; margin: 0 4px; }
.meal-photo-actions { align-items: center; background: linear-gradient(transparent, rgba(24,36,28,.55)); bottom: 0; display: flex; gap: 6px; left: 0; opacity: 0; padding: 26px 7px 7px; position: absolute; right: 0; transition: opacity var(--duration-fast) ease; }
.meal-row:hover .meal-photo-actions, .meal-row:focus-within .meal-photo-actions { opacity: 1; }
.meal-photo-actions button { background: #fff; border: 0; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; font-weight: 700; height: 38px; }
.meal-photo-actions .swap-planned { flex: 1; }
.meal-photo-actions .meal-remove { flex: 0 0 38px; position: relative; width: 38px; }
.meal-empty-content { align-content: center; display: grid; min-height: 246px; padding: 8px 0; text-align: center; }
.meal-empty-content .button { margin: 0 auto 8px; width: 100%; }
.meal-empty-content .button.soft { background: var(--color-primary-tint); border: 0; color: var(--color-primary); }
.meal-row.open:hover .button.soft { background: var(--color-primary); color: #fff; }
.meal-choice { justify-content: center; margin-top: 0; }
.choice-chip { border: 0; border-radius: 0; color: var(--color-primary); font-size: 13px; min-height: 40px; padding: 0 5px; text-decoration: underline; }
.choice-chip:hover { background: transparent; border: 0; color: var(--color-primary-hover); }
.tonight-copy { font-size: 18px; font-weight: 800; line-height: 1.12; margin: 14px 4px 12px; text-align: left; }
.tonight-actions { display: grid; gap: 8px; }
.tonight-actions .choice-chip { border: 1.5px solid var(--color-ink); border-radius: var(--radius-md); color: var(--color-ink); text-decoration: none; width: 100%; }
.tonight-actions .choice-chip:hover { background: rgba(255,255,255,.22); }
.meal-choice-card { align-content: center; min-height: 246px; text-align: center; }
.meal-choice-card svg { color: var(--color-primary); height: 30px; margin-bottom: 12px; width: 30px; }
.meal-choice-card h3 { font-size: 18px; margin: 0 0 8px; }

.quick-swaps { margin-top: 40px; position: static; }
.quick-swap-heading { align-items: center; display: flex; justify-content: space-between; }
.quick-swap-heading h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.quick-swaps > p { display: none; }
.swap-list { border: 0; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.swap-item { background: var(--color-surface); border: 0; border-radius: var(--radius-lg); display: block; padding: 0; position: relative; transition: background var(--duration-fast) ease; }
.swap-item:hover { background: var(--color-surface-tint); }
.swap-open { border-radius: var(--radius-lg); display: grid; gap: 12px; grid-template-columns: 76px minmax(0, 1fr); min-height: 96px; padding: 10px; width: 100%; }
.swap-open > img, .swap-open > .image-fallback { border-radius: var(--radius-md); height: 76px; width: 76px; }
.swap-open > .image-fallback svg { height: 34px; width: 34px; }
.swap-copy { align-self: center; padding: 0; }
.swap-item h3 { display: -webkit-box; font-size: 15px; font-weight: 700; line-height: 1.25; margin: 0 0 5px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.swap-open:hover h3 { color: var(--color-ink); }
.swap-hint { background: var(--color-primary); border-radius: var(--radius-pill); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; padding: 7px 10px; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); transition: opacity var(--duration-fast) ease; }
.swap-item:hover .swap-hint, .swap-item:focus-within .swap-hint { opacity: 1; }

/* Recipes */
#recipesView { padding-top: 40px; }
.tools { gap: 24px; padding: 0 0 28px; }
.search-wrap { max-width: 600px; }
.search { border: 1.5px solid var(--color-border); border-radius: 14px; font-size: 16px; min-height: 48px; padding-left: 46px; }
.search:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-tint); }
.filters { align-items: center; gap: 8px; max-width: none; width: 100%; }
.chip { background: var(--color-surface); border: 1.5px solid var(--color-border); font-size: 14px; font-weight: 600; height: 40px; padding: 0 15px; }
.chip:hover { border-color: var(--color-primary); }
.chip.active { background: var(--color-ink); border-color: var(--color-ink); font-weight: 700; }
.filter-divider { background: var(--color-divider); height: 26px; margin: 0 8px; width: 1px; }
.favorites-filter { align-items: center; background: transparent; border: 0; color: var(--color-primary); cursor: pointer; display: inline-flex; gap: 7px; font-size: 14px; font-weight: 700; min-height: 40px; }
.favorites-filter svg { height: 17px; width: 17px; }
.favorites-filter.active svg { fill: currentColor; }
.sort-control { align-items: center; display: flex; font-size: 14px; font-weight: 600; margin-left: auto; white-space: nowrap; }
.sort-control select { appearance: none; background: transparent; border: 0; color: var(--color-ink); cursor: pointer; font-weight: 600; padding: 8px 22px 8px 5px; }
.sort-control::after { border-bottom: 1.5px solid; border-right: 1.5px solid; content: ""; height: 6px; margin-left: -17px; pointer-events: none; transform: translateY(-2px) rotate(45deg); width: 6px; }
.results-status { font-size: 14px; margin: -8px 0 0; }
.results-status:empty { display: none; }
.recipe-grid { background: transparent; border: 0; border-radius: 0; box-shadow: none; display: grid; gap: 22px 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; overflow: visible; }
.recipe-card { align-content: start; background: transparent; border: 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr) 44px; padding: 0; position: relative; }
.recipe-card:hover { background: transparent; }
.recipe-row-open { align-items: start; display: contents; }
.recipe-image { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); grid-column: 1 / -1; height: auto; overflow: hidden; width: 100%; }
.recipe-image img { transition: transform 250ms ease; }
.recipe-card:hover .recipe-image img { transform: scale(1.04); }
.recipe-info { grid-column: 1; min-width: 0; padding: 11px 10px 0 0; }
.recipe-info h2 { display: -webkit-box; font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 4px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.recipe-card:hover .recipe-info h2 { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
.recipe-card .add-meal { align-self: start; background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); grid-column: 2; height: 44px; margin-top: 9px; width: 44px; }
.recipe-card .add-meal::before, .recipe-card .add-meal::after { display: none; }
.recipe-card .add-meal svg { color: var(--color-primary); height: 20px; width: 20px; }
.recipe-card .add-meal:hover { background: var(--color-primary); border-color: var(--color-primary); }
.recipe-card .add-meal:hover svg { color: #fff; }
.recipe-card .add-meal.planned { background: var(--color-primary-tint); border-color: transparent; }
.favorite-button { align-items: center; background: rgba(255,255,255,.95); border: 0; border-radius: 50%; cursor: pointer; display: flex; height: 40px; justify-content: center; padding: 0; position: absolute; right: 10px; top: 10px; width: 40px; z-index: 2; }
.favorite-button svg { height: 18px; width: 18px; }
.favorite-button[aria-pressed="true"] { color: var(--color-primary); }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }
.planned-day-tag { align-items: center; background: var(--color-highlight); border-radius: var(--radius-pill); display: flex; font-size: 13px; font-weight: 800; height: 30px; left: 10px; padding: 0 11px; position: absolute; top: 10px; z-index: 2; }
.recipe-image .image-fallback, .meal-photo-wrap .image-fallback, .swap-open > .image-fallback { background: var(--color-primary-tint); color: var(--color-primary); flex-direction: column; font-family: var(--font-sans); gap: 14px; }
.recipe-image .image-fallback svg { height: 48px; width: 48px; }
.image-fallback .fallback-add { background: transparent; border: 1px solid var(--color-primary); border-radius: var(--radius-pill); color: var(--color-primary); font-size: 13px; font-weight: 700; min-height: 36px; padding: 0 14px; }
.last-made { display: none; }
.empty-search { border: 0; font-size: 15px; padding: 30px 0; }

/* Shop */
.shop-header-row { align-items: end; display: flex; gap: 20px; justify-content: space-between; }
.shop-header-row p { color: var(--color-muted); font-size: 17px; margin: 7px 0 0; }
.shop-header-actions { display: flex; gap: 10px; }
.grocery-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 360px; margin-top: 28px; }
.shop-summary { background: var(--color-surface); border-radius: var(--radius-lg); display: grid; gap: 12px 20px; grid-template-columns: 1fr auto; margin: 0 0 16px; padding: 18px 20px; }
.shop-summary strong { font-family: var(--font-sans); font-size: 20px; font-weight: 800; }
.details-switch { align-items: center; cursor: pointer; display: flex; font-size: 14px; font-weight: 700; gap: 10px; }
.details-switch input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.switch-track { background: var(--color-border); border-radius: var(--radius-pill); height: 28px; position: relative; transition: background var(--duration-fast) ease; width: 48px; }
.switch-track::after { background: #fff; border-radius: 50%; content: ""; height: 22px; left: 3px; position: absolute; top: 3px; transition: transform var(--duration-fast) ease; width: 22px; }
.details-switch input:checked + .switch-track { background: var(--color-primary); }
.details-switch input:checked + .switch-track::after { transform: translateX(20px); }
.details-switch input:focus-visible + .switch-track { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.shop-progress { background: var(--color-track); border-radius: var(--radius-pill); grid-column: 1 / -1; height: 10px; }
.shop-progress span { background: var(--color-primary); border-radius: inherit; }
.grocery-groups { border: 0; display: grid; gap: 16px; }
.grocery-group { background: var(--color-surface); border: 0; border-radius: var(--radius-lg); display: block; padding: 8px 20px 12px; }
.grocery-group-head { align-items: center; border-bottom: 1px solid var(--color-divider-soft); display: flex; justify-content: space-between; min-height: 52px; }
.grocery-group h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 0; text-transform: none; }
.grocery-group-count { color: var(--color-muted); font-size: 15px; }
.grocery-item { border-bottom: 1px solid var(--color-divider-soft); display: block; padding: 0; }
.grocery-item:last-child { border-bottom: 0; }
.grocery-row { align-items: center; border-radius: var(--radius-sm); display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) auto; min-height: 56px; transition: background var(--duration-fast) ease; }
.grocery-row:hover { background: var(--color-surface-tint); }
.grocery-check { align-items: center; cursor: pointer; display: grid; gap: 14px; grid-template-columns: 22px minmax(0, 1fr); padding: 7px 0; }
.grocery-check input { accent-color: var(--color-primary); height: 22px; margin: 0; width: 22px; }
.grocery-label { display: block; font-size: 16px; font-weight: 700; }
.grocery-quantity { color: var(--color-muted); font-weight: 500; }
.grocery-sources { color: var(--color-muted); display: block; font-size: 13px; font-weight: 400; margin-top: 1px; }
.grocery-detail-button { align-items: center; background: transparent; border: 0; border-radius: var(--radius-sm); color: var(--color-primary); cursor: pointer; display: flex; font-size: 13px; font-weight: 700; gap: 9px; height: 40px; padding: 0 10px; white-space: nowrap; }
.grocery-detail-button:hover { background: var(--color-surface-tint); }
.grocery-detail-button[aria-expanded="true"] { background: var(--color-primary-tint); }
.grocery-detail-button svg { height: 16px; transition: transform 200ms ease; width: 16px; }
.grocery-detail-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.grocery-breakdown { background: var(--color-bg); border: 0; border-radius: var(--radius-md); display: grid; gap: 0; margin: 0 0 12px 36px; padding: 4px 14px; }
.grocery-breakdown[hidden] { display: none; }
.grocery-use { align-items: center; background: transparent; border: 0; border-bottom: 1px solid var(--color-divider); color: var(--color-ink); cursor: pointer; display: grid; gap: 10px; grid-template-columns: 40px minmax(0, 1fr) auto; padding: 8px 0; text-align: left; }
.grocery-use:last-child { border-bottom: 0; }
.grocery-use img, .grocery-use .image-fallback { border-radius: var(--radius-sm); height: 40px; object-fit: cover; width: 40px; }
.grocery-use strong, .grocery-use span { display: block; }
.grocery-use strong { font-size: 14px; }
.grocery-use .use-day { color: var(--color-muted); font-weight: 400; }
.grocery-use .use-line { color: var(--color-muted-strong); font-size: 14px; }
.optional-tag { background: #fff; border-radius: var(--radius-pill); color: var(--color-muted); font-size: 12px; font-weight: 700; padding: 4px 8px; }
.grocery-use > svg { color: var(--color-muted); height: 16px; width: 16px; }
.in-cart { background: transparent; border: 1.5px dashed var(--color-border); }
.in-cart .grocery-label { color: var(--color-muted); font-weight: 500; text-decoration: line-through; }
.in-cart .grocery-sources, .in-cart .grocery-detail-button { display: none; }
.grocery-empty { background: var(--color-surface); border-radius: var(--radius-lg); padding: 30px; }
.staples-panel { background: var(--color-surface); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 98px; }
.staples-heading h2 { font-size: 20px; font-weight: 800; margin: 0; }
.staples-panel > p { font-size: 15px; line-height: 1.45; margin: 12px 0 22px; }
.staples-list { border: 0; }
.staples-group { margin-top: 18px; }
.staples-group:first-child { margin-top: 0; }
.staples-group-label { font-size: 14px; font-weight: 700; letter-spacing: 0; padding: 0 0 7px; text-transform: none; }
.staples-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.staple-chip { background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius-pill); cursor: pointer; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 14px; }
.staple-chip:hover { border-color: var(--color-primary); }
.staple-chip[aria-pressed="true"] { background: var(--color-highlight); border-color: transparent; font-weight: 700; }

/* Dialogs */
dialog {
  background: var(--color-surface);
  border: 0;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-dialog);
  color: var(--color-ink);
  padding: 0;
}
dialog::backdrop { background: var(--color-scrim); }
dialog[open] { animation: dialog-in 200ms ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.recipe-editor-modal { max-height: calc(100dvh - 96px); max-width: 760px; width: calc(100% - 40px); }
.recipe-editor-scroll { max-height: inherit; }
.modal-head { align-items: start; border-color: var(--color-divider); padding: 24px 28px; }
.modal-head h2 { font-size: 30px; font-weight: 900; letter-spacing: -.025em; line-height: 1.1; }
.modal-head p { color: var(--color-muted); font-size: 15px; margin: 8px 0 0; max-width: 56ch; }
.close { align-items: center; background: var(--color-bg); border: 0; border-radius: var(--radius-md); display: flex; font-size: 24px; height: 44px; justify-content: center; line-height: 1; padding: 0 0 3px; width: 44px; }
.modal-body { padding: 28px; }
.field { gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.field label span { color: var(--color-muted); font-weight: 500; }
.field input, .field textarea, .manager-row input, .manager-row select, .add-staple input, .add-staple select {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border-control);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-size: 16px;
  min-height: 48px;
  padding: 11px 13px;
}
.field input::placeholder, .field textarea::placeholder, .add-staple input::placeholder { color: var(--color-placeholder); }
.field input:focus, .field textarea:focus, .manager-row input:focus, .manager-row select:focus, .add-staple input:focus, .add-staple select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-tint); }
.editor-intro { color: var(--color-muted); margin: 0 0 16px; }
.editor-import { align-items: stretch; background: var(--color-surface-tint); border-radius: var(--radius-lg); display: block; margin: 0; padding: 20px; }
.editor-import h3 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.editor-import p { color: var(--color-muted-strong); font-size: 13px; margin: 10px 0 0; }
.import-row { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
.link-input { position: relative; }
.link-input svg { color: var(--color-muted); height: 18px; left: 15px; position: absolute; top: 15px; width: 18px; }
.link-input input { border: 1.5px solid var(--color-border-control); border-radius: var(--radius-md); font-size: 16px; height: 48px; padding: 0 14px 0 44px; width: 100%; }
.editor-status { margin: 10px 0 0; min-height: 0; }
.editor-status:empty { display: none; }
.editor-status.error { color: var(--color-error); }
.editor-or { align-items: center; color: var(--color-muted); display: flex; font-size: 13px; font-weight: 700; gap: 14px; margin: 28px 0; }
.editor-or::before, .editor-or::after { background: var(--color-divider); content: ""; height: 1px; width: 100%; }
.editor-or span { flex: 0 0 auto; }
.editor-photo-name { align-items: start; display: grid; gap: 20px; grid-template-columns: 180px minmax(0, 1fr); }
.editor-photo-drop { cursor: pointer; }
.editor-photo-drop > input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.editor-photo-preview { border: 1.5px dashed var(--color-border-dashed); border-radius: var(--radius-lg); display: block; height: 200px; overflow: hidden; }
.editor-photo-drop.is-dragging .editor-photo-preview { background: var(--color-surface-tint); box-shadow: var(--ring-hover); }
.editor-photo-preview img { height: 100%; object-fit: cover; }
.editor-photo-preview .image-fallback { background: var(--color-bg); color: var(--color-primary); display: flex; flex-direction: column; font-family: var(--font-sans); gap: 6px; text-align: center; }
.editor-photo-preview .image-fallback svg { height: 28px; margin-bottom: 4px; width: 28px; }
.editor-photo-preview .image-fallback strong { font-size: 15px; }
.editor-photo-preview .image-fallback small { color: var(--color-muted); font-size: 12px; line-height: 1.35; }
.editor-name-fields .field:last-of-type { margin-bottom: 0; }
.editor-name-fields textarea { min-height: 96px; }
.remove-photo { margin-top: 6px; }
.editor-grid { gap: 14px; }
.duration-field > span, .total-field > span { display: block; position: relative; }
.duration-field input { padding-right: 52px; }
.duration-field b { color: var(--color-muted); font-size: 14px; font-weight: 500; position: absolute; right: 14px; top: 14px; }
.total-field input { background: var(--color-bg); font-weight: 700; padding-right: 112px; }
.total-field b { color: var(--color-muted); font-size: 12px; font-weight: 500; position: absolute; right: 13px; top: 15px; }
.editor-divider { margin: 24px 0; }
.editor-section-title { margin: 0 0 12px; }
.editor-section-title h3 { font-size: 22px; font-weight: 800; }
.editor-section-title > span { color: var(--color-muted); font-size: 13px; }
.ingredient-editor-section { background: transparent; border: 0; margin: 0 0 12px; padding: 0; }
.ingredient-editor-head { margin-bottom: 8px; }
.ingredient-editor-head input { border: 0; border-radius: 0; border-bottom: 1px solid var(--color-divider); font-family: var(--font-sans); font-size: 15px; font-weight: 700; }
.ingredient-editor-section textarea { background: var(--color-surface); border: 1.5px solid var(--color-border-control); border-radius: var(--radius-md); font-size: 16px; min-height: 144px; padding: 12px 14px; }
.add-group-button { background: transparent; border: 1.5px dashed var(--color-border-dashed); border-radius: var(--radius-sm); color: var(--color-primary); cursor: pointer; font-size: 14px; font-weight: 700; min-height: 44px; padding: 0 14px; }
.steps-title { margin-top: 24px; }
.steps-field textarea { min-height: 160px; }
.recipe-editor-modal .modal-actions { background: var(--color-surface); border-top: 1px solid var(--color-divider); bottom: 0; margin: 28px -28px -28px; padding: 16px 28px; position: sticky; z-index: 2; }

#staplesModal { max-width: 640px; width: calc(100% - 40px); }
#staplesModal .modal-head { border-bottom: 0; padding-bottom: 10px; }
#staplesModal .modal-body { padding-top: 10px; }
.add-staple { background: var(--color-surface-tint); border-radius: var(--radius-lg); grid-template-columns: minmax(0, 1fr) 130px auto; margin: 0 0 20px; padding: 14px; }
.add-staple .button { min-height: 48px; }
.manager-list { border: 0; margin-bottom: 20px; }
.manager-group { margin-top: 22px; }
.manager-group:first-child { margin-top: 0; }
.manager-group-head { align-items: center; border-bottom: 1px solid var(--color-divider-soft); display: flex; justify-content: space-between; min-height: 40px; }
.manager-group-head h3 { font-size: 18px; font-weight: 800; margin: 0; }
.manager-group-head span { color: var(--color-muted); }
.manager-row { border-color: var(--color-divider-soft); grid-template-columns: minmax(0, 1fr) 124px 44px; min-height: 56px; padding: 5px 0; }
.manager-row input { border-color: transparent; font-size: 15px; font-weight: 600; }
.manager-row input:hover { border-color: var(--color-border); }
.manager-row select { appearance: auto; font-size: 14px; min-height: 40px; padding: 0 8px; }
.manager-remove { align-items: center; border: 0; border-radius: var(--radius-sm); display: flex; height: 44px; justify-content: center; width: 44px; }
.manager-remove svg { height: 18px; width: 18px; }
.manager-empty { border: 1.5px dashed var(--color-border); border-radius: var(--radius-md); color: var(--color-muted); padding: 15px; }
.staples-actions { align-items: center; border-top: 1px solid var(--color-divider); justify-content: space-between; margin: 0 -28px -28px; padding: 16px 28px; }
.staples-actions > span { align-items: center; color: var(--color-muted); display: flex; gap: 7px; font-size: 14px; }
.staples-actions svg { color: var(--color-primary); height: 16px; width: 16px; }

#detailModal { max-height: calc(100dvh - 48px); max-width: 860px; width: calc(100% - 40px); }
.detail-hero { height: 320px; }
.detail-close { border: 0; border-radius: var(--radius-md); }
.detail-body { padding: 30px; }
.detail-body h2 { font-size: 38px; font-weight: 900; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 18px; }
.detail-actions { margin-top: 0; }
.primary-actions { margin-bottom: 22px; }
.detail-favorite { align-items: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; display: flex; gap: 8px; font-weight: 700; min-height: 44px; padding: 0 14px; }
.detail-favorite svg { height: 18px; width: 18px; }
.detail-favorite[aria-pressed="true"] { background: var(--color-primary-tint); color: var(--color-primary); }
.detail-favorite[aria-pressed="true"] svg { fill: currentColor; }
.detail-source { color: var(--color-primary); font-size: 14px; font-weight: 700; letter-spacing: 0; margin: 0; text-transform: none; }
.detail-meta-grid { color: var(--color-muted); display: flex; flex-wrap: wrap; font-size: 14px; gap: 8px 22px; }
.detail-meta-grid span strong { color: var(--color-ink); font-weight: 700; }
.detail-description { font-size: 16px; }
.detail-columns { gap: 48px; }
.detail-section h3, .detail-steps h3 { font-family: var(--font-sans); font-size: 20px; font-weight: 800; }
.detail-section ul, .detail-steps ol { font-size: 15px; line-height: 1.55; }
.detail-steps ol { counter-reset: detail-step; list-style: none; padding: 0; }
.detail-steps li { counter-increment: detail-step; padding-left: 36px; position: relative; }
.detail-steps li::before { color: var(--color-primary); content: counter(detail-step); font-size: 20px; font-weight: 800; left: 0; position: absolute; top: -4px; }

.night-picker-modal { max-width: 520px; width: calc(100% - 40px); }
.night-picker-modal .modal-head p { margin-top: 5px; }
.night-week-picker { display: grid; gap: 7px; margin-bottom: 20px; }
.night-week-picker > span { font-size: 14px; font-weight: 700; }
.night-week-picker select {
  appearance: none;
  background-color: var(--color-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235b645c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  border: 1.5px solid var(--color-border-control);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
  padding: 0 46px 0 14px;
  width: 100%;
}
.night-week-picker select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-tint); outline: 0; }
.night-picker-list { display: grid; gap: 8px; }
.night-option { align-items: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; display: grid; gap: 12px; grid-template-columns: 64px minmax(0, 1fr) auto; min-height: 60px; padding: 8px 12px; text-align: left; }
.night-option:hover { background: var(--color-surface-tint); border-color: var(--color-primary); }
.night-option strong, .night-option span { display: block; }
.night-option > strong { font-size: 14px; }
.night-option span strong { font-size: 15px; }
.night-option small { color: var(--color-muted); font-size: 13px; }
.night-option .open-label { color: var(--color-primary); font-size: 13px; font-weight: 700; }

#accountModal { max-width: 620px; width: calc(100% - 40px); }
.account-status.error { color: var(--color-error); }
.assignment-row strong { font-family: var(--font-sans); font-size: 16px; font-weight: 700; }
.toast { background: var(--color-primary); border-radius: var(--radius-md); }

@media (hover: none) {
  .meal-photo-actions, .swap-hint { opacity: 1; }
  .swap-hint { display: none; }
}

@media (max-width: 1100px) {
  .meal-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grocery-layout { grid-template-columns: 1fr; }
  .staples-panel { position: static; }
}

@media (max-width: 760px) {
  .topbar { gap: 14px; grid-template-columns: 1fr auto; padding: 0 18px; }
  .primary-nav {
    background: var(--color-surface);
    border-top: 1px solid var(--color-divider);
    border-radius: 0;
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(24,36,28,.08);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: calc(64px + env(safe-area-inset-bottom));
    left: 0;
    padding: 6px 12px env(safe-area-inset-bottom);
    position: fixed;
    width: 100%;
    z-index: 60;
  }
  .nav-link { min-height: 48px; }
  .nav-link[aria-current="page"] { background: var(--color-primary-tint); color: var(--color-primary); }
  .add-recipe-button { border-radius: var(--radius-md); font-size: 0; height: 44px; padding: 0; width: 44px; }
  .add-recipe-button svg { height: 20px; width: 20px; }
  main { padding: 0 16px 120px; }
  .plan-content, #recipesView { padding-top: 28px; }
  .plan-header-row, .shop-header-row { align-items: stretch; flex-direction: column; }
  .week-switcher h1, .shop-header-row h1 { font-size: 42px; }
  .plan-header-actions, .shop-header-actions { justify-content: flex-start; }
  .meal-list { display: grid; grid-template-columns: 1fr; margin-top: 28px; }
  .meal-row { align-items: center; min-height: 0; padding: 10px; }
  .meal-row.planned { grid-template-columns: 72px minmax(0, 1fr) 44px; }
  .meal-row.planned .meal-date { grid-column: 2 / 3; grid-row: 1; }
  .meal-row.planned .meal-photo-wrap { grid-column: 1; grid-row: 1 / 3; }
  .meal-row.planned .meal-title-open { grid-column: 2 / 4; grid-row: 2; }
  .meal-row.planned .meal-photo-wrap { grid-column: 1; grid-row: 1 / 3; height: 64px; width: 64px; }
  .meal-row.planned .meal-title-open h3 { margin: 0 0 4px; }
  .meal-row.planned .meal-title-open .meta { margin: 0; }
  .meal-photo-actions { display: none; }
  .meal-row.open, .meal-row.tonight { min-height: 210px; }
  .meal-empty-content, .meal-choice-card { min-height: 150px; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-divider { display: none; }
  .favorites-filter { order: 2; }
  .sort-control { margin-left: 0; order: 3; }
  .grocery-layout { margin-top: 22px; }
  .details-switch > span:first-child { display: none; }
  .grocery-breakdown { margin-left: 0; }
  .grocery-detail-button { font-size: 0; padding: 0 8px; }
  .grocery-detail-button svg { height: 18px; width: 18px; }
  dialog, .recipe-editor-modal, #detailModal, #staplesModal, #accountModal, #householdModal, .night-picker-modal {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    height: calc(100dvh - 16px);
    margin: 16px 0 0;
    max-height: none;
    max-width: none;
    width: 100%;
  }
  .recipe-editor-scroll, .detail-scroll { max-height: 100%; }
  .editor-photo-name { grid-template-columns: 120px minmax(0, 1fr); }
  .editor-photo-preview { height: 150px; }
  .editor-grid, .editor-grid.three { grid-template-columns: 1fr; }
  .import-row { grid-template-columns: 1fr; }
  .detail-columns { grid-template-columns: 1fr; }
  .account-menu { position: fixed; right: 16px; top: 70px; width: calc(100% - 32px); }
  .household-modal .modal-body { max-height: calc(100% - 104px); }
}

@media (max-width: 480px) {
  .brand { font-size: 20px; }
  .meal-list, .swap-list, .recipe-grid { grid-template-columns: 1fr; }
  .week-switcher { gap: 8px; }
  .week-switcher h1 { flex: 1 0 100%; }
  .plan-header-actions { align-items: center; flex-direction: row; flex-wrap: wrap; }
  .week-cycle-controls { flex: 1 1 auto; }
  .shop-header-actions .button { flex: 1; }
  .shop-summary { grid-template-columns: 1fr auto; padding: 16px; }
  .shop-summary strong { font-size: 18px; }
  .grocery-group { padding-left: 14px; padding-right: 14px; }
  .grocery-row { gap: 6px; }
  .editor-photo-name { grid-template-columns: 1fr; }
  .editor-photo-preview { height: 180px; }
  .add-staple { grid-template-columns: 1fr; }
  .manager-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .manager-row select { grid-column: 1 / -1; grid-row: 2; }
  .manager-remove { grid-column: 2; grid-row: 1; }
  .staples-actions > span { display: none; }
  .household-invite form { grid-template-columns: 1fr; }
  .household-invite .button { width: 100%; }
  .household-person { grid-template-columns: 36px minmax(0, 1fr); }
  .household-person-actions { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
