:root {
    color-scheme: light;
    --ink: #192538;
    --navy: #17243b;
    --muted: #7f8b9d;
    --paper: #f5f7fb;
    --dashboard-background: linear-gradient(135deg, #1b3e68, #526c8c);
    --surface: #fff;
    --line: #e9edf3;
    --green: #15966a;
    --green-soft: #e7f6ef;
    --blue: #4a78d0;
    --blue-soft: #edf3ff;
    --amber: #d49a3e;
    --shadow: 0 12px 34px rgba(31, 50, 79, .055);
    font-family: "Segoe UI", system-ui, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e4ebf5;
    --navy: #e4ebf5;
    --muted: #a1aec0;
    --paper: #111923;
    --dashboard-background: linear-gradient(135deg, #101a28, #263c5b);
    --surface: #1b2633;
    --line: #344154;
    --green-soft: #173b32;
    --blue-soft: #202f49;
    --shadow: 0 12px 34px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -.04em; }
.brand strong { font-weight: 800; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(140deg, #337be8, #668ce1 55%, #344e7b); box-shadow: 0 6px 15px rgba(74, 120, 208, .25); font-size: 19px; font-weight: 750; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .15em; }

.auth-page { display: flex; min-height: 100vh; flex-direction: column; color: #fff; background: var(--dashboard-background); }
.auth-header { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(28px, calc((100% - 1280px) / 2)); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.auth-header .brand, .expired-layout + .app-footer .brand { color: #fff; }
.auth-navigation { display: flex; align-items: center; gap: 9px; }
.product-switcher { position: relative; }
.product-switcher summary, .auth-nav-link { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 7px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; text-decoration: none; }
.product-switcher summary::-webkit-details-marker { display: none; }
.product-switcher summary::after { margin-left: 8px; content: "⌄"; }
.product-switcher nav { display: grid; position: absolute; z-index: 10; top: calc(100% + 7px); right: 0; min-width: 190px; gap: 3px; padding: 7px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 7px; background: #1b3e68; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.product-switcher nav a { padding: 9px 10px; border-radius: 5px; color: #fff; font-size: 12px; text-decoration: none; }
.product-switcher nav a:hover, .auth-nav-link:hover, .auth-header .theme-toggle:hover { background: rgba(255, 255, 255, .15); }
.icon-button { display: grid; width: 40px; min-width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: transparent; cursor: pointer; font-size: 19px; }
.auth-header .theme-toggle { border-color: rgba(255, 255, 255, .35); color: #fff; }
.auth-layout { display: grid; flex: 1; width: 100%; place-items: center; padding: 42px 20px; }
.auth-main { width: min(530px, 100%); }
.auth-card { padding: 38px 42px; border: 1px solid rgba(23, 36, 59, .08); border-radius: 15px; color: #192538; background: #fff; box-shadow: 0 18px 55px rgba(7, 24, 42, .2); }
:root[data-theme="dark"] .auth-card { border-color: var(--line); color: var(--ink); background: var(--surface); }
.auth-card > .eyebrow { margin-bottom: 20px; color: #4a78d0; }
.auth-card h1 { margin: 0; color: #17243b; font-size: clamp(29px, 4vw, 38px); font-weight: 750; letter-spacing: -.05em; line-height: 1.16; }
:root[data-theme="dark"] .auth-card h1 { color: var(--ink); }
.auth-subtitle { margin: 13px 0 0; color: #66758a; font-size: 15px; line-height: 1.55; }
:root[data-theme="dark"] .auth-subtitle { color: var(--muted); }
.form-stack { display: grid; gap: 15px; margin-top: 25px; }
.form-stack label, .recipe-form label { display: grid; gap: 7px; color: #486078; font-size: 12px; font-weight: 700; }
:root[data-theme="dark"] .form-stack label { color: #a8c2f2; }
.form-stack input, .recipe-form input, .recipe-form select, .recipe-form textarea, .week-controls input, .meal-slot select, .meal-serving-row input, .serving-control input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; outline-color: #4a78d0; color: var(--ink); background: var(--surface); font-size: 13px; font-weight: 400; }
.form-stack input:focus, .recipe-form input:focus, .recipe-form select:focus, .recipe-form textarea:focus, .week-controls input:focus, .meal-slot select:focus, .meal-serving-row input:focus, .serving-control input:focus { border-color: #4a78d0; box-shadow: 0 0 0 3px rgba(74, 120, 208, .12); outline: none; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 750; text-decoration: none; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button-primary { color: #fff; background: linear-gradient(135deg, #337be8, #668ce1 55%, #344e7b); box-shadow: 0 7px 17px rgba(74, 120, 208, .2); }
.button-primary:hover { background: linear-gradient(135deg, #2865c2, #5278ce 55%, #2c4268); }
.button-secondary { border-color: var(--line); color: var(--ink); background: var(--surface); }
.button-full { width: 100%; min-height: 47px; }
.button-small { min-height: 33px; padding: 0 10px; font-size: 10px; }
.auth-switch { margin: 17px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch a { color: #3970c8; font-weight: 750; text-decoration: none; }
.trial-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 15px; border: 1px solid #d9e5f5; border-radius: 9px; background: #f2f6fd; }
:root[data-theme="dark"] .trial-note { border-color: var(--line); background: var(--blue-soft); }
.trial-note strong { color: #304d7c; font-size: 12px; }
:root[data-theme="dark"] .trial-note strong { color: #c1d3fa; }
.trial-note p { margin: 4px 0 0; color: #6e7f98; font-size: 10px; line-height: 1.45; }
.alert { padding: 11px 13px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.alert-error { border-color: #f4cbc8; color: #a43d36; background: #fff3f1; }
.alert-success { border-color: #cce8d9; color: #24734f; background: #effaf4; }
.auth-card > .alert { margin-top: 16px; }
.site-footer, .app-footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px max(28px, calc((100% - 1280px) / 2)); font-size: 10px; }
.site-footer { min-height: 60px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer a { color: inherit; text-decoration: none; }

.app-page { min-height: 100vh; background: var(--dashboard-background); }
.app-topbar { display: flex; min-height: 66px; align-items: center; justify-content: space-between; padding: 9px max(28px, calc((100% - 1280px) / 2)); border-bottom: 1px solid rgba(255, 255, 255, .18); background: var(--dashboard-background); }
.app-topbar .brand { color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions form { margin: 0; }
.trial-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 99px; color: #fff; background: rgba(255, 255, 255, .11); font-size: 11px; font-weight: 750; }
.trial-dot { width: 7px; height: 7px; border-radius: 50%; background: #80d3a2; box-shadow: 0 0 0 3px rgba(128, 211, 162, .18); }
.app-topbar .icon-button { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .1); }
.app-topbar .icon-button:hover { background: rgba(255, 255, 255, .2); }
.signout-button { min-height: 37px; }
.dashboard { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 33px 0 22px; }
.dashboard .eyebrow { color: #dce8ff; }
.welcome-row .eyebrow { margin-bottom: 7px; }
.welcome-row h1 { margin: 0; color: #fff; font-size: clamp(27px, 3vw, 34px); letter-spacing: -.05em; }
.wave { color: #efc76e; font-size: .8em; }
.welcome-copy { margin: 8px 0 0; color: rgba(255, 255, 255, .78); font-size: 13px; }
.app-tabs { display: flex; gap: 5px; padding-bottom: 13px; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.app-tab { min-height: 37px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; color: rgba(255, 255, 255, .8); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.app-tab:hover, .app-tab.is-active { border-color: rgba(255, 255, 255, .38); color: #fff; background: rgba(255, 255, 255, .14); }
.workspace { min-height: 60vh; padding: 25px 0 47px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; color: #fff; font-size: 22px; letter-spacing: -.04em; }
.section-copy { margin: 6px 0 0; color: rgba(255, 255, 255, .76); font-size: 11px; }
.search-box { display: flex; width: min(280px, 100%); min-height: 39px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); }
.search-box > span { font-size: 19px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.filter-chip { min-height: 32px; padding: 0 11px; border: 1px solid transparent; border-radius: 7px; color: rgba(255, 255, 255, .8); background: transparent; cursor: pointer; font-size: 10px; font-weight: 650; }
.filter-chip:hover, .filter-chip.is-active { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .13); }
.recipe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.recipe-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.recipe-card-main { display: grid; width: 100%; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.recipe-photo { display: grid; height: 150px; place-items: center; overflow: hidden; color: #6784ad; background: linear-gradient(145deg, #e6edf7, #d0dced); font-size: 46px; }
:root[data-theme="dark"] .recipe-photo { color: #b1c8ed; background: linear-gradient(145deg, #29384d, #202d40); }
.recipe-photo img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card-copy { display: grid; gap: 5px; padding: 12px 13px 10px; }
.recipe-category { color: #4a78d0; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.recipe-card-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.recipe-meta { color: var(--muted); font-size: 10px; }
.recipe-card-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 11px 10px; }
.text-button { padding: 5px 2px; border: 0; color: #4671b9; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.danger-text { color: #bb5a55; }
.empty-state, .loading-state { grid-column: 1 / -1; display: grid; min-height: 220px; place-content: center; justify-items: center; padding: 30px 18px; border: 1px dashed rgba(255, 255, 255, .4); border-radius: 12px; color: #fff; text-align: center; }
.empty-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 9px; border-radius: 14px; color: #4a78d0; background: #edf3ff; font-size: 23px; }
.empty-state h3 { margin: 5px 0; font-size: 15px; }
.empty-state p, .loading-state p { max-width: 390px; margin: 4px 0 13px; color: rgba(255, 255, 255, .77); font-size: 11px; line-height: 1.55; }
.error-state .empty-icon { color: #a43d36; background: #fff0ed; }
.loader { width: 26px; height: 26px; border: 3px solid rgba(255, 255, 255, .28); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.week-controls { display: flex; align-items: center; gap: 7px; }
.week-controls input { width: 155px; min-height: 38px; padding: 7px 9px; }
.week-controls .icon-button { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .1); }
.week-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 12px; }
.day-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.day-card h3 { margin: 0 0 12px; color: var(--navy); font-size: 12px; text-transform: capitalize; }
.meal-slot { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.meal-slot + .meal-slot { margin-top: 11px; }
.meal-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.meal-slot select { min-height: 35px; padding: 7px 8px; font-size: 10px; }
.meal-serving-row { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.meal-serving-row label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.meal-serving-row input { width: 68px; min-height: 30px; padding: 5px 7px; font-size: 10px; }
.meal-serving-row input:disabled { opacity: .55; }
.shopping-list { padding-bottom: 30px; }
.shopping-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 11px; color: #fff; font-size: 11px; }
.shopping-progress progress { width: min(260px, 42vw); height: 8px; overflow: hidden; appearance: none; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .25); }
.shopping-progress progress::-webkit-progress-bar { border-radius: 8px; background: rgba(255, 255, 255, .25); }
.shopping-progress progress::-webkit-progress-value { border-radius: 8px; background: #77d2a2; transition: width .18s ease; }
.shopping-progress progress::-moz-progress-bar { border-radius: 8px; background: #77d2a2; }
.shopping-items { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); list-style: none; }
.shopping-items li { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 14px; border-top: 1px solid var(--line); }
.shopping-items li:first-child { border-top: 0; }
.shopping-items label { display: flex; min-width: 0; align-items: center; gap: 10px; cursor: pointer; }
.shopping-items input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkmark { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border: 1px solid #b8c2cf; border-radius: 5px; color: #fff; }
.shopping-items input:checked + .checkmark { border-color: #15966a; background: #15966a; }
.shopping-items input:checked + .checkmark::after { content: "✓"; font-size: 13px; }
.shopping-name { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.shopping-items li > strong { color: var(--muted); font-size: 11px; white-space: nowrap; }
.shopping-items li.is-checked .shopping-name { color: var(--muted); text-decoration: line-through; }
.app-footer { border-top: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .78); }
.footer-star { color: #efc76e; }
.expired-layout { display: grid; min-height: calc(100vh - 66px); place-items: center; padding: 30px 18px; }
.expired-card { width: min(540px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.expired-card h1 { margin: 0 0 12px; font-size: 28px; letter-spacing: -.04em; }
.expired-card p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.6; }
.logout-form { display: inline-block; margin-left: 7px; }
.recipe-dialog, .recipe-detail-dialog { width: min(700px, calc(100% - 26px)); max-height: min(91vh, 850px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 90px rgba(0, 0, 0, .3); }
.recipe-dialog::backdrop, .recipe-detail-dialog::backdrop { background: rgba(13, 27, 44, .58); backdrop-filter: blur(3px); }
.recipe-form, .recipe-detail { padding: 23px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.dialog-heading .eyebrow { margin-bottom: 4px; }
.dialog-heading h2 { margin: 0; color: var(--navy); font-size: 21px; letter-spacing: -.04em; }
.recipe-form .dialog-heading .icon-button, .recipe-detail .dialog-heading .icon-button { border: 0; background: var(--paper); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field-wide { grid-column: 1 / -1; }
.recipe-form label { gap: 5px; color: var(--muted); font-size: 10px; }
.recipe-form input, .recipe-form select, .recipe-form textarea { min-height: 39px; padding: 8px 10px; font-size: 11px; }
.recipe-form textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.ingredient-editor { display: grid; gap: 9px; }
.subheading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--navy); font-size: 12px; }
.ingredient-rows { display: grid; gap: 7px; }
.ingredient-row { display: grid; grid-template-columns: minmax(130px, 1.5fr) minmax(85px, .65fr) minmax(85px, .7fr) 35px; align-items: end; gap: 7px; }
.ingredient-row .icon-button { width: 33px; min-width: 33px; height: 37px; border: 0; color: #a24a46; background: #fff0ed; }
.field-hint { margin: 0; color: var(--muted); font-size: 9px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-error { margin: -5px 0 14px; padding: 9px 11px; border: 1px solid #f4cbc8; border-radius: 7px; color: #a43d36; background: #fff3f1; font-size: 11px; }
.notice { position: fixed; z-index: 20; right: 20px; bottom: 20px; max-width: min(390px, calc(100% - 40px)); padding: 12px 15px; transform: translateY(12px); border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; color: #fff; background: #1b3e68; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; font-size: 12px; }
.notice.is-visible { transform: translateY(0); opacity: 1; }
.notice.is-error { background: #923e3a; }
.serving-control { display: flex; max-width: 250px; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.serving-control input { max-width: 95px; }
.recipe-detail h3 { margin: 17px 0 8px; color: var(--navy); font-size: 13px; }
.detail-meta { margin: 0; color: var(--muted); font-size: 11px; }
.detail-ingredients { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.detail-ingredients li { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.detail-ingredients strong { color: var(--navy); text-align: right; }
.detail-instructions { color: var(--ink); font-size: 12px; line-height: 1.7; }

@media (max-width: 950px) {
    .recipe-grid, .week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .auth-header { min-height: 68px; padding: 9px 15px; }
    .auth-navigation { gap: 5px; }
    .auth-navigation .product-switcher { display: none; }
    .auth-nav-link { min-height: 35px; padding: 0 8px; font-size: 10px; }
    .auth-card { padding: 28px 23px; }
    .auth-card h1 { font-size: 30px; }
    .trial-note { align-items: flex-start; flex-direction: column; }
    .site-footer { align-items: flex-start; flex-direction: column; padding: 14px 18px; }
    .app-topbar { min-height: 60px; padding: 8px 15px; }
    .dashboard { width: min(100% - 30px, 1280px); }
    .welcome-row { align-items: flex-start; flex-direction: column; padding: 25px 0 17px; }
    .welcome-row .add-button { align-self: stretch; }
    .app-tabs { overflow-x: auto; }
    .app-tab { flex: 0 0 auto; padding: 0 10px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .section-heading > .button, .search-box { width: 100%; }
    .recipe-grid, .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .recipe-photo { height: 125px; }
    .day-card { padding: 10px; }
    .week-controls { width: 100%; }
    .week-controls input { flex: 1; }
    .week-heading { flex-direction: column; }
    .ingredient-row { grid-template-columns: minmax(0, 1.3fr) minmax(75px, .7fr) 32px; }
    .ingredient-row label:nth-child(3) { grid-column: 1 / 3; }
    .ingredient-row .icon-button { grid-column: 3; grid-row: 1 / 3; align-self: center; }
    .recipe-form, .recipe-detail { padding: 18px; }
    .app-footer { align-items: flex-start; flex-direction: column; padding: 14px 16px; }
}
@media (max-width: 420px) {
    .auth-navigation .auth-nav-link { display: none; }
    .auth-navigation .auth-nav-link:first-of-type { display: inline-flex; }
    .topbar-actions { gap: 6px; }
    .trial-badge { padding: 7px 8px; font-size: 9px; }
    .recipe-grid, .week-grid { grid-template-columns: 1fr; }
    .recipe-photo { height: 160px; }
    .form-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .ingredient-row { grid-template-columns: minmax(0, 1fr) 35px; }
    .ingredient-row label:nth-child(2), .ingredient-row label:nth-child(3) { grid-column: 1; }
    .ingredient-row .icon-button { grid-column: 2; grid-row: 1 / 4; }
    .shopping-items li { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
