/* Plate & Cart: one stylesheet for every page. Ported from the approved design
   (design/project/*.dc.html, 2026-10-04): palette, Poppins, layout. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --purple: #4B2A85;
  --purple-dark: #2F1A57;
  --ink: #2B2730;
  --text-2: #3D3842;
  --text-3: #4F4955;
  --muted: #6B6470;
  --cream: #FFF8F3;
  --white: #FFFFFF;
  --line: #EDE4DC;
  --line-2: #DCD2C8;
  --line-3: #E6DCD2;
  --lilac: #EFE9F8;
  --lilac-line: #C9BFD8;
  --teal: #0F7A70;
  --teal-dark: #0B5F57;
  --mint: #DDF1EA;
  --mint-2: #D7F2EC;
  --peach: #FDE7DE;
  --rust: #9A3412;
  --rust-dark: #6B2C12;
  --sand: #F3EBE3;
  --font: Poppins, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); min-height: 100vh; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
img { max-width: 100%; }
button { font-family: inherit; }
button:disabled, .is-disabled { cursor: not-allowed !important; opacity: 0.55; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--purple); color: var(--white); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; color: var(--white); }
[hidden] { display: none !important; }

/* Header -------------------------------------------------------------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple); min-height: 44px; }
.brand__name { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav__link[aria-current="page"] { background: var(--lilac); color: var(--purple); font-weight: 600; }
.brand__amp { color: var(--teal); }
.household { margin-left: auto; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }

/* Page shells --------------------------------------------------------- */
.page { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; }
.page--home { padding: 40px 24px 64px; gap: 32px; }
.page--week { padding: 28px 24px 64px; gap: 20px; }
.page--recipe { max-width: 1100px; padding: 24px 24px 64px; gap: 24px; }
.page--narrow { max-width: 900px; padding: 32px 24px 64px; gap: 22px; }

.title-xl { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -1px; }
.title-lg { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
.lead { margin: 8px 0 0; font-size: 17px; color: var(--text-3); }
.sublead { margin: 6px 0 0; color: var(--text-3); font-size: 16px; }
.heading-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.heading-row__text { flex: 1 1 480px; }
.heading-row__text--wide { flex-basis: 520px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; align-self: flex-start; }

/* Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--primary { border: 0; background: var(--purple); color: var(--white); }
.btn--primary:hover { background: var(--purple-dark); color: var(--white); }
.btn--secondary { border: 2px solid var(--purple); background: var(--white); color: var(--purple); }
.btn--dark-outline { border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.btn--dark-outline:hover { color: var(--ink); background: var(--white); }
.btn--plain { border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-weight: 400; padding: 0 16px; }
.btn--small { font-size: 14px; padding: 0 16px; }
.btn--link { border: 0; background: transparent; color: var(--rust-dark); text-decoration: underline; font-weight: 400; padding: 0 12px; }
.btn--block { width: 100%; min-height: 48px; }

/* Home: week tabs and week sections ---------------------------------- */
.week-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.week-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white); color: var(--ink); text-decoration: none; }
.week-tab--current { border: 2px solid var(--purple); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.dot--diamond { border-radius: 0; background: var(--purple); transform: rotate(45deg); }
.dot--locked { background: var(--purple); }
.dot--skipped { background: var(--rust); }
.dot--saved { background: var(--teal-dark); }

.week-section { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.week-section__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.week-section__title { margin: 0; font-size: 24px; font-weight: 600; }
.week-section__title a { color: var(--ink); text-decoration: none; }
.week-section__title a:hover { text-decoration: underline; }
.week-section__meta { margin-left: auto; font-size: 15px; color: var(--text-3); }
.week-section__action { margin-left: auto; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge--teal { background: var(--mint-2); color: var(--teal-dark); }
.badge--peach { background: var(--peach); color: var(--rust); }
.badge--lilac { background: var(--lilac); color: var(--purple); }

.progress-row { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-3); }
.progress { flex: 0 1 240px; height: 8px; border-radius: 999px; background: var(--lilac); overflow: hidden; }
.progress--full { flex: none; width: 100%; }
.progress__bar { height: 8px; background: var(--purple); transition: width 0.15s ease; }

.card-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 6px; }
.meal-card { flex: 0 0 240px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.meal-card:hover { color: var(--ink); border-color: var(--line-2); }
.meal-card__media { position: relative; height: 170px; background: var(--sand); }
.meal-card__media img { width: 100%; height: 170px; object-fit: cover; display: block; }
.meal-card__servings { position: absolute; top: 10px; right: 10px; background: var(--white); border: 1px solid var(--teal); border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 600; }
.meal-card__count { position: absolute; bottom: 10px; left: 10px; background: var(--purple); color: var(--white); border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 600; }
.meal-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.meal-card__name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.meal-card__time { font-size: 14px; color: var(--muted); }

.empty-box { border: 2px dashed var(--line-2); border-radius: 14px; padding: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; color: var(--text-3); font-size: 16px; text-align: center; }

/* Week page ----------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lock-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.lock-toggle__track { width: 48px; height: 26px; border-radius: 999px; background: var(--lilac-line); position: relative; display: inline-block; transition: background 0.15s ease; }
.lock-toggle__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform 0.15s ease; }
.lock-toggle[aria-pressed="true"] .lock-toggle__track { background: var(--purple); }
.lock-toggle[aria-pressed="true"] .lock-toggle__knob { transform: translateX(22px); }
.lock-toggle.is-busy { opacity: 0.7; cursor: progress; }

.notice { padding: 12px 16px; border-radius: 12px; background: var(--lilac); color: var(--purple-dark); font-size: 15px; }
.notice--error { background: var(--peach); color: var(--rust-dark); }
.notice--skipped { padding: 16px 20px; background: var(--peach); color: var(--rust-dark); font-size: 16px; font-weight: 500; }
.notice--ordered { background: var(--mint-2); color: var(--teal-dark); }
.retry-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.retry-row form { margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--purple); background: var(--purple); color: var(--white); }

.week-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tile-grid { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tile { background: var(--white); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.tile--picked { border-color: var(--purple); }
.tile__open { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; font-family: inherit; color: inherit; cursor: pointer; }
.tile__media { position: relative; height: 160px; background: var(--sand); }
.tile__media img { width: 100%; height: 160px; object-fit: cover; display: block; }
.tile__badge { position: absolute; bottom: 10px; left: 10px; background: var(--peach); color: var(--rust-dark); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.tile__body { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 4px; }
.tile__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.tile__time { font-size: 13px; color: var(--text-3); }
.tile__tags { font-size: 12px; color: var(--teal-dark); font-weight: 600; }
.tile__actions { padding: 10px 14px 14px; margin-top: auto; display: flex; justify-content: flex-end; }
.btn-add { min-height: 44px; padding: 0 16px; border: 1px solid var(--purple); border-radius: 999px; background: var(--white); color: var(--purple); font-size: 14px; font-weight: 600; cursor: pointer; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--purple); border-radius: 999px; padding: 2px; }
.stepper__btn { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--white); font-size: 20px; cursor: pointer; }
.stepper__count { min-width: 22px; text-align: center; color: var(--white); font-weight: 600; }
.tile-grid__empty { grid-column: 1 / -1; }

.order { flex: 1 1 340px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.order__title { margin: 0; font-size: 20px; font-weight: 600; }
.order__summary { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text-3); }
.order__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.order__item { display: flex; align-items: center; gap: 10px; }
.order__thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--mint); }
.order__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-stepper { flex: none; display: flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 999px; }
.mini-stepper__btn { width: 36px; height: 44px; border: 0; border-radius: 999px; background: transparent; font-size: 16px; cursor: pointer; color: var(--ink); }
.mini-stepper__count { min-width: 16px; text-align: center; font-size: 14px; font-weight: 600; }
.order__count-static { font-size: 14px; font-weight: 600; color: var(--text-3); }
.order__empty { margin: 0; padding: 16px; border: 2px dashed var(--line-2); border-radius: 12px; color: var(--text-3); font-size: 14px; text-align: center; }
.order__budget { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: var(--text-3); }

/* Recipe popup -------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(43, 39, 48, 0.55); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 10; }
.modal { width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; background: var(--white); border-radius: 20px; }
.modal__media { position: relative; }
.modal__media img { width: 100%; height: 280px; object-fit: cover; display: block; border-radius: 20px 20px 0 0; background: var(--sand); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.modal__title { margin: 0; font-size: 24px; font-weight: 700; }
.modal__meta { color: var(--text-3); font-size: 15px; }
.modal__subtitle { margin: 6px 0 0; font-size: 17px; font-weight: 600; }
.modal__ingredients { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.4; }
.modal__note { margin: 0; font-size: 13px; color: var(--text-3); }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
body.has-modal { overflow: hidden; }

/* Recipe page --------------------------------------------------------- */
.crumbs { display: flex; align-items: center; gap: 12px; }
.crumbs__source { margin-left: auto; font-size: 14px; color: var(--text-3); }
.hero-media { position: relative; border-radius: 20px; overflow: hidden; background: var(--sand); }
.hero-media img { width: 100%; height: 420px; object-fit: cover; display: block; }
.hero-media .tile__badge { bottom: 16px; left: 16px; padding: 4px 10px; font-size: 13px; }
.recipe-layout { display: flex; flex-wrap: wrap; gap: 40px; }
.recipe-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.recipe-tags { margin: 10px 0 0; font-size: 14px; color: var(--teal-dark); font-weight: 600; }
.recipe-section { border-top: 1px solid var(--line-3); padding-top: 20px; }
.recipe-section__title { margin: 0 0 10px; font-size: 24px; font-weight: 600; }
.recipe-section__note { margin: 0 0 14px; font-size: 13px; color: var(--text-3); }
.recipe-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.ingredient-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.ingredient { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ingredient__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; }
.ingredient__text { font-size: 14px; line-height: 1.35; }
.ingredient__as-written { display: block; font-size: 12px; color: var(--text-3); }
.ingredient-heading { grid-column: 1 / -1; margin: 6px 0 0; font-size: 16px; font-weight: 600; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.step__num { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--purple); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.step__text { font-size: 16px; line-height: 1.6; }
.step__title { display: block; font-weight: 600; }
.recipe-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel--list { gap: 8px; }
.panel__title { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.panel__title + .panel__title, .panel__item + .panel__title { margin-top: 12px; }
.panel__item { font-size: 15px; }
.fact__label { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--text-3); text-transform: uppercase; }
.fact__value { font-size: 16px; }
.fact__value--small { font-size: 15px; line-height: 1.5; }
.aside-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; }

/* Account ------------------------------------------------------------- */
.account-section { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.account-section__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.account-section__title { margin: 0; font-size: 20px; font-weight: 600; }
.account-section__head .btn { margin-left: auto; }
.account-note { margin: 0; font-size: 14px; color: var(--text-3); }
.people { display: flex; flex-wrap: wrap; gap: 12px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.avatar--teal { background: var(--teal); }
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.address--default { border-color: var(--purple); }
.address__lines { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.address__label { font-weight: 600; }
.address__line { font-size: 15px; color: var(--text-2); }
.address-form { border: 1px dashed var(--lilac-line); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.address-form__actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font-family: inherit; font-size: 15px; color: var(--ink); background: var(--white); width: 100%; }
.input--money { width: 90px; }
.setting-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.setting-row__label { font-size: 15px; font-weight: 500; min-width: 140px; }
.setting-row__value { flex: 1 1 260px; font-size: 15px; color: var(--text-2); }
.store-current { display: flex; flex-direction: column; gap: 2px; }
.store-current__name { color: var(--ink); font-weight: 600; }
.store-list { display: flex; flex-direction: column; gap: 16px; }
.store-list__set { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.store-option { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--white); cursor: pointer; }
.store-option:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.store-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--purple); flex: none; }
.store-option__lines { display: flex; flex-direction: column; gap: 2px; }
.store-option__name { font-weight: 600; }
.store-option__address { font-size: 15px; color: var(--text-2); }
.segmented { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.segmented__btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.segmented__btn[aria-pressed="true"] { background: var(--purple); color: var(--white); }
.money { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.staples { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.staple { display: flex; align-items: center; gap: 4px; padding: 0 0 0 14px; border-radius: 999px; background: var(--mint); color: var(--teal-dark); font-size: 14px; font-weight: 500; }
.staple__remove { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--teal-dark); cursor: pointer; font-size: 18px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1 1 220px; }
.inline-form form, form.inline { display: contents; }

/* Phase placeholder page --------------------------------------------- */
.coming { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.coming__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }


/* Shared bits for phase 2 --------------------------------------------- */
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--tall { min-height: 48px; padding: 0 26px; }
.intro { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--text-3); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--sand); color: var(--text-3); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag--staple { background: var(--mint); color: var(--teal-dark); }
.map-row__source { flex-basis: 100%; font-size: 13px; color: var(--text-3); }
.tag--removed { background: var(--peach); color: var(--rust-dark); }
.tile__removed, .meal-card__removed { font-size: 12px; font-weight: 600; color: var(--rust-dark); }
.week-section__actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.week-section__foot { display: flex; justify-content: flex-end; }
.week-section__foot .btn--link { color: var(--rust-dark); }
.ingredient__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; background: var(--mint); }
.address__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.address .address-form { flex: 1 1 100%; }
.input--short { width: 110px; }
.input--unit { width: 110px; }
.input--file { padding: 8px 12px; }
select.input { padding-right: 8px; }

/* Week: phone order bar ------------------------------------------------- */
.mobile-bar { display: none; }

/* Review --------------------------------------------------------------- */
.page--review { max-width: 980px; padding: 28px 24px 40px; gap: 20px; }
.shared { background: var(--lilac); border-radius: 14px; padding: 14px 18px; font-size: 15px; color: var(--purple-dark); line-height: 1.5; }
.review-recipe { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.review-recipe__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.review-recipe__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--sand); flex: none; }
.review-recipe__title { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.review-recipe__name { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.review-recipe__name a { color: var(--ink); text-decoration: none; }
.review-recipe__name a:hover { text-decoration: underline; }
.review-recipe__meta, .review-recipe__count { font-size: 14px; color: var(--text-3); }
.review-lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; }
.review-lines__title { grid-column: 1 / -1; margin-top: 6px; font-size: 15px; font-weight: 600; }
.review-line { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; color: var(--ink); }
.review-line input { width: 22px; height: 22px; margin: 0; accent-color: var(--purple); flex: none; cursor: pointer; }
.review-line__text { flex: 1; line-height: 1.35; }
.review-line--off { color: var(--muted); }
.review-line--off .review-line__text { text-decoration: line-through; text-decoration-color: var(--line-2); }
/* Keep focused or scrolled-to items clear of the sticky footer and the phone bar. */
html:has(.sticky-footer) { scroll-padding-bottom: 120px; }
.sticky-footer { position: sticky; bottom: 0; z-index: 5; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; box-shadow: 0 -6px 18px rgba(43, 39, 48, 0.06); }
.sticky-footer__count { font-size: 16px; }
.sticky-footer__note { font-size: 14px; color: var(--text-3); flex: 1 1 220px; }
.sticky-footer .btn { margin-left: auto; }

/* Shopping list -------------------------------------------------------- */
.page--list { max-width: 900px; padding: 28px 24px 64px; gap: 18px; }
.list-meta { margin: -6px 0 0; font-size: 14px; color: var(--text-3); }
.list-group { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; break-inside: avoid-page; }
.list-group__title { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: var(--purple); }
.list-group--check .list-group__title { color: var(--rust-dark); }
.list-note { margin: 0 0 4px; font-size: 14px; color: var(--text-3); }
.list-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.list-item:first-child { border-top: 0; }
.list-item__check { width: 24px; height: 24px; margin: 0; accent-color: var(--teal); flex: none; cursor: pointer; }
.list-item__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--mint); }
.list-item__body { flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 2px; cursor: pointer; }
.list-item__name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.list-item__amount { font-size: 15px; line-height: 1.35; }
.list-item__amount strong { font-weight: 600; color: var(--teal-dark); }
.list-item__buy { color: var(--text-3); }
.list-item__changed { font-size: 13px; font-weight: 600; color: var(--rust-dark); }
.list-item__variant { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--peach); color: var(--rust-dark); font-size: 13px; font-weight: 600; }
.list-item__note, .list-item__llm { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.list-item__for { font-size: 13px; color: var(--text-3); line-height: 1.35; }
.list-item--got .list-item__name, .list-item--got .list-item__amount { text-decoration: line-through; color: var(--muted); }
.left-off { font-size: 14px; color: var(--text-3); }
.left-off summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 500; }
.left-off ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* Settings and photos -------------------------------------------------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; }
.map-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.map-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.map-row__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 320px; }
.map-row__label { font-weight: 500; }
.map-row__input { flex: 1 1 160px; width: auto; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photo-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; text-align: center; }
.photo-tile:hover { border-color: var(--purple); color: var(--ink); }
.photo-tile img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.photo-tile__name { font-size: 13px; line-height: 1.3; }
.photo-current { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.photo-current img { width: 160px; height: 160px; border-radius: 16px; object-fit: cover; }
.photo-current__credit { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-2); }
.candidate-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.candidate { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.candidate img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; object-fit: cover; background: var(--sand); }
.candidate__title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.candidate__credit { font-size: 12px; color: var(--text-3); }


/* Cart, Items and Item (phase 3) ---------------------------------------- */
.page--cart { max-width: 1100px; margin: 0 auto; padding: 28px 24px 64px; gap: 20px; }
.cart-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cart-lines { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cart-line { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.cart-line__need { font-size: 13px; color: var(--text-3); line-height: 1.4; }
.cart-line__need strong { color: var(--ink); }
.cart-pick { display: flex; align-items: center; gap: 14px; }
.cart-pick__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-pick__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cart-pick__name { font-size: 16px; font-weight: 600; color: var(--ink); }
.cart-pick__meta { font-size: 14px; color: var(--text-3); line-height: 1.45; }
.cart-pick__view { font-weight: 600; display: inline-block; padding: 10px 0; margin: -10px 0; }
.cart-pick__price { text-align: right; flex: none; }
.cart-pick__total { font-size: 18px; font-weight: 700; }
.cart-pick__regular { font-size: 13px; color: var(--muted); }
.cart-photo { flex: none; display: block; border-radius: 12px; object-fit: contain; background: var(--white); border: 1px solid var(--line-3); }
.cart-photo--lg { width: 64px; height: 64px; }
.cart-photo--md { width: 56px; height: 56px; }
.cart-photo--sm { width: 40px; height: 40px; border-radius: 8px; }
.cart-photo--xl { width: 96px; height: 96px; }
.cart-photo--stock { object-fit: cover; }
.cart-photo--none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-3); }
.cart-photo--none span { font-size: 9px; font-weight: 600; letter-spacing: 0.3px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 1px 8px; }
.pill--store { color: var(--teal-dark); background: var(--mint); }
.pill--sale { color: var(--white); background: #B23A12; margin-left: 4px; }
.pill--close { color: var(--rust-dark); background: var(--peach); }
.cart-reason { font-size: 14px; color: var(--text-2); background: #F7F2FC; border-radius: 10px; padding: 8px 12px; line-height: 1.45; display: flex; flex-wrap: wrap; gap: 0 6px; }
.cart-reason__note { flex-basis: 100%; color: var(--rust-dark); }
.cart-line__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cart-line__actions form { margin: 0; }
.cart-alts { margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.cart-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; }
.cart-alt form { margin: 0; }
.cart-alt__text { flex: 1 1 220px; line-height: 1.4; }
.cart-alt__name { color: var(--ink); }
.cart-alt__diff { color: var(--text-3); font-variant-numeric: tabular-nums; }
.btn-swap { min-height: 44px; padding: 0 16px; border: 1px solid var(--purple); border-radius: 999px; background: var(--white); color: var(--purple); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-swap:hover { background: var(--lilac); }
.cart-alts-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 14px; color: var(--purple); font-weight: 600; padding-left: 14px; }
.cart-jump { display: none; }
.cart-hidden { font-size: 12px; color: var(--muted); }
.cart-push { margin: 0; font-size: 14px; border-radius: 10px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cart-push form { margin: 0; }
.cart-push--ok { background: var(--mint); color: var(--teal-dark); }
.cart-push--warn, .cart-push--error { background: var(--peach); color: var(--rust-dark); }
.cart-more { display: flex; flex-direction: column; gap: 14px; }
.cart-more > summary { min-height: 52px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-2); border-radius: 16px; background: var(--white); color: var(--ink); font-size: 15px; cursor: pointer; list-style: none; padding: 0 16px; text-align: center; }
.cart-more > summary::-webkit-details-marker { display: none; }
.cart-more[open] > summary { margin-bottom: 14px; }
.cart-more__lines { display: flex; flex-direction: column; gap: 14px; }
.cart-aside { flex: 1 1 300px; position: sticky; top: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-aside form { margin: 0; }
.cart-aside__title { margin: 0; font-size: 20px; font-weight: 600; }
.cart-aside__sub { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.cart-total { font-size: 34px; font-weight: 700; color: var(--teal-dark); }
.cart-budget { display: flex; flex-direction: column; gap: 6px; }
.progress__bar--over { background: #B23A12; }
.cart-budget-tips ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cart-budget-tips li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cart-budget-tips li span { flex: 1 1 180px; }
.cart-delivery { font-size: 14px; color: var(--text-2); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 12px; }
.cart-warning { font-size: 13px; color: var(--rust-dark); background: var(--peach); border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.cart-sent { background: var(--mint); color: var(--teal-dark); border-radius: 12px; padding: 14px; font-size: 15px; line-height: 1.45; }
.cart-empty { flex-direction: column; }
.setting-row__value--ok { color: var(--teal-dark); }
.setting-row__value--warn { color: var(--rust); }
.setting-row__note { flex-basis: 100%; }
.alert-row--open { border-color: var(--rust); }
.settings-stack { display: flex; flex-direction: column; gap: 8px; }
.input--area { min-height: 120px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.items-search__row { display: flex; gap: 10px; flex-wrap: wrap; }
.items-search__row .input { flex: 1 1 220px; width: auto; }
.items-search { display: flex; flex-direction: column; gap: 6px; }
.table-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.items-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.items-table th { text-align: left; color: var(--text-3); font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; padding: 14px 12px; }
.items-table td { padding: 12px; border-top: 1px solid #F0E8E0; vertical-align: middle; }
.items-table th:first-child, .items-table td:first-child { padding-left: 20px; }
.items-table th:last-child, .items-table td:last-child { padding-right: 20px; }
.items-table .num { text-align: right; }
.items-table .center { text-align: center; }
.items-table .tabular { font-variant-numeric: tabular-nums; color: var(--text-3); }
.items-table__photo { width: 76px; }
.items-table__name { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-block; padding: 10px 0; margin: -10px 0; }
.items-table__name:hover { text-decoration: underline; }
.items-table__meta { font-size: 13px; color: var(--text-3); }
.items-table__price { font-weight: 700; }
.items-table__trend { font-size: 13px; color: var(--text-3); }
.items-table__trend--down { color: var(--teal-dark); }
.items-table__trend--up { color: var(--rust); }
.item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.item-head__text { flex: 1 1 320px; }
.strong-link { font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat__value { font-size: 24px; font-weight: 700; }
.stat__value--low { color: var(--teal-dark); }
.stat__value--high { color: var(--rust); }
.chart { display: flex; gap: 10px; }
.chart__y { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--text-3); height: 240px; text-align: right; min-width: 48px; }
.chart__plot { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.chart__plot svg { width: 100%; height: 240px; display: block; background: #FBF8F5; border-radius: 10px; }
.chart__x { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.chart__x--one { justify-content: center; }
@media (max-width: 640px) {
  .page--cart { padding-left: 16px; padding-right: 16px; }
  .cart-line { padding: 16px; }
  .cart-pick { flex-wrap: wrap; }
  .cart-pick__body { flex-basis: calc(100% - 78px); }
  .cart-pick__price { flex-basis: 100%; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .cart-aside { position: static; }
  .cart-jump { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--teal-dark); font-weight: 600; text-decoration: none; }
  .items-table__photo { width: 64px; }
  .items-table th:first-child, .items-table td:first-child { padding-left: 12px; }
  .items-table th:last-child, .items-table td:last-child { padding-right: 12px; }
}

/* Small screens ------------------------------------------------------- */
@media (max-width: 640px) {
  .site-header__inner { padding: 10px 16px; gap: 10px; }
  .household__name { display: none; }
  .page--home, .page--week, .page--recipe, .page--narrow { padding-left: 16px; padding-right: 16px; }
  .page--home { padding-top: 24px; gap: 24px; }
  .title-xl { font-size: 30px; }
  .title-lg { font-size: 26px; }
  .week-section { padding: 20px; border-radius: 16px; }
  .week-section__meta, .week-section__action { margin-left: 0; }
  .hero-media img { height: 260px; }
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal__media img { height: 200px; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .tile__media, .tile__media img { height: 130px; }
  .step { padding: 16px; gap: 12px; }
  .step__num { flex-basis: 44px; height: 44px; font-size: 18px; }
  .page--review, .page--list { padding-left: 16px; padding-right: 16px; }
  .review-recipe, .list-group { padding: 16px; }
  .sticky-footer { padding: 12px 16px; border-radius: 14px; }
  .sticky-footer__note { display: none; }
  .week-section__actions { margin-left: 0; }
  .page--week { padding-bottom: 96px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(43, 39, 48, 0.08); }
  .mobile-bar__summary { font-size: 15px; }
  html:has(.mobile-bar) { scroll-padding-bottom: 96px; }
  .mini-stepper__btn { width: 44px; }
  body.has-modal .mobile-bar { display: none; }
}

/* Print: the shopping list on paper ----------------------------------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; color: #000; min-height: 0; }
  .site-header, .skip-link, .no-print, .mobile-bar, .notice, .back-link { display: none !important; }
  .page, .page--list { max-width: none; padding: 0; gap: 8px; }
  .title-lg { font-size: 20px; }
  .sublead, .list-meta { font-size: 11px; color: #000; margin: 0; }
  .list-group { border: 0; border-radius: 0; padding: 0; gap: 0; }
  .list-group__title { font-size: 13px; color: #000; border-bottom: 1px solid #000; margin: 6px 0 2px; text-transform: uppercase; letter-spacing: 0.5px; }
  .list-note { font-size: 10px; color: #000; }
  .list-item { padding: 3px 0; gap: 8px; border-top: 1px solid #ccc; }
  .list-item__photo { display: none; }
  .list-item__check { width: 12px; height: 12px; }
  .list-item__body { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .list-item__name { font-size: 12px; }
  .list-item__amount, .list-item__amount strong { font-size: 12px; color: #000; }
  .list-item__for, .list-item__buy { font-size: 10px; color: #333; }
  .list-item--got .list-item__name, .list-item--got .list-item__amount { color: #555; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.btn--start { align-self: flex-start; }

/* Accounts, set-up and admin (phase B) ------------------------------------- */
.auth { max-width: 520px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-direction: column; gap: 20px; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.steps li { padding: 4px 12px; border-radius: 999px; background: var(--sand); }
.steps li[aria-current="step"] { background: var(--lilac); color: var(--purple); font-weight: 600; }
.qr { width: 220px; max-width: 100%; height: auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.qr svg { width: 100%; height: auto; display: block; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; letter-spacing: 1px; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.codes li { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; padding: 8px 12px; background: var(--sand); border-radius: 10px; text-align: center; }
.store-option__banner { font-size: 12px; font-weight: 600; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.4px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-weight: 600; color: var(--text-3); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-size: 24px; font-weight: 700; }
.stat__label { font-size: 13px; color: var(--muted); }
.mail-body { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--sand); border-radius: 12px; padding: 16px; margin: 0; }
.ok { color: var(--teal-dark); font-weight: 600; }
.bad { color: var(--rust); font-weight: 600; }
.prose { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.prose h2 { font-size: 18px; margin: 18px 0 6px; color: var(--ink); }
@media (max-width: 640px) {
  .auth { padding: 24px 16px 48px; }
  .auth-card { padding: 20px; }
}
