:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --ink: #253d33;
  --muted: #647068;
  --green: #254d3e;
  --border: #dedfd4;
  --soft: #edf0e6;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, input, select { min-height: 48px; border-radius: 9px; border: 1px solid var(--border); }
button { cursor: pointer; background: white; color: var(--ink); padding: 10px 16px; font-weight: 600; }
button:hover { background: var(--soft); }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #936018; outline-offset: 3px; }
[hidden] { display: none !important; }
.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: 16px; top: -80px; z-index: 10; background: white; padding: 16px; color: var(--ink); }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1200px; margin: auto; min-height: 110px; display: flex; align-items: center; justify-content: space-between; padding: 24px 40px; border-bottom: 1px solid var(--border); gap: 20px; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font: 700 25px Georgia, serif; }
.brand-caption { display: block; font: 600 9px "Segoe UI", sans-serif; letter-spacing: 1.7px; margin-top: 6px; }
.sync-status-button { display: flex; align-items: center; gap: 8px; min-height: 42px; border-radius: 30px; padding: 8px 13px; background: var(--soft); font-size: 12px; white-space: nowrap; }
.sync-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #7c857d; }
.sync-status-button[data-tone="synced"] .sync-dot { background: #3f7a50; }
.sync-status-button[data-tone="pending"] .sync-dot { background: #b67717; }
.sync-status-button[data-tone="attention"] .sync-dot { background: #b04432; }
.sync-status-button[data-tone="offline"] .sync-dot { background: #69736a; }
main { max-width: 1200px; margin: auto; padding: 44px 40px 20px; }
.section-tabs { display: flex; gap: 8px; padding: 0 0 12px; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.section-tabs button { min-width: 112px; border: 0; background: transparent; color: var(--muted); }
.section-tabs .admin-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 76px; margin-left: auto; padding: 5px 8px; font-size: 11px; }
.admin-icon { font-size: 18px; line-height: 1; }
.section-tabs button[aria-selected="true"] { background: var(--green); color: white; }
.section-tabs button[aria-selected="true"]:hover { background: #183a2d; }
.action-status { min-height: 20px; margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.section-heading h2 { font-size: clamp(29px, 3vw, 38px); margin-bottom: 10px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 12px; font-size: 10px; font-weight: 700; letter-spacing: 2px; color: #687356; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 400 clamp(32px, 4vw, 46px)/1.15 Georgia, serif; letter-spacing: -1.3px; margin-bottom: 12px; }
h2 { font: 400 26px/1.2 Georgia, serif; margin-bottom: 22px; }
.intro { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 0; }
.chapter { color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.account-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 20px 22px; margin-bottom: 30px; border: 1px solid var(--border); border-radius: 12px; background: #fffefa; }
.account-copy { flex: 1; min-width: min(100%, 240px); }
.account-copy h2 { font-size: 21px; margin-bottom: 8px; }
.account-copy p { font-size: 12px; line-height: 1.6; margin-bottom: 0; overflow-wrap: anywhere; }
#account-scope { color: var(--muted); margin-top: 6px; }
#account-button { font-size: 13px; }
.sync-check-link { display: inline-flex; align-items: center; min-height: 48px; color: var(--green); font-size: 13px; font-weight: 650; }
#account-status, #account-error { width: 100%; margin: 0; font-size: 12px; line-height: 1.6; }
#account-status:empty { display: none; }
.conflict-panel { display: flex; align-items: center; gap: 12px; padding: 18px 22px; margin: -12px 0 30px; border: 1px solid #d1a24d; border-radius: 12px; background: #fff8e6; }
.conflict-panel div { flex: 1; }
.conflict-panel p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sync-dialog { inset: 92px max(20px, calc((100vw - 1200px) / 2 + 40px)) auto auto; width: min(430px, calc(100% - 32px)); margin: 0; }
.sync-dialog-content > h2 { margin-bottom: 10px; }
.sync-explanation { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; padding: 15px; border-radius: 10px; background: var(--soft); }
.sync-explanation > span { font-size: 22px; }
.sync-explanation p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.sync-dialog .conflict-panel { align-items: stretch; flex-direction: column; margin: 0 0 22px; padding: 16px; }
.sync-dialog-actions { align-items: center; justify-content: space-between; }
.workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; align-items: start; }
.entry-panel { padding: 28px; background: #fffefa; border: 1px solid var(--border); border-radius: 14px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; font-size: 12px; font-weight: 650; margin: 0 0 8px; }
input, select { width: 100%; color: var(--ink); background: white; padding: 11px 12px; margin-bottom: 20px; }
input::placeholder { color: #788078; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.primary-button { background: var(--green); color: white; border-color: var(--green); }
.primary-button:hover { background: #183a2d; }
.entry-panel .primary-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.primary-button span { font-size: 22px; font-weight: 400; }
.entry-note { border-top: 1px dashed var(--border); padding-top: 22px; margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.entry-note > span { font-size: 30px; color: #8e9b6d; }
.entry-note p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0; }
.list-panel { min-width: 0; background: white; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.list-heading { display: flex; justify-content: space-between; align-items: center; padding: 26px 26px 18px; }
.list-heading h2 { margin-bottom: 7px; }
.list-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.list-mark { display: grid; place-items: center; border-radius: 50%; background: var(--soft); width: 40px; height: 40px; font-size: 21px; }
.filters { display: flex; gap: 8px; padding: 0 26px 20px; border-bottom: 1px solid var(--border); }
.filters button { font-size: 12px; padding: 8px 12px; border-color: transparent; border-radius: 8px; }
.filters button[aria-pressed="true"] { background: var(--green); color: white; }
.filters span { margin-left: 7px; opacity: .85; font-size: 11px; }
.category-heading { font: 700 10px "Segoe UI", sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); background: #fafbf7; border-bottom: 1px solid #eef0e7; padding: 12px 26px; margin: 0; }
.shopping-group + .shopping-group { border-top: 8px solid #f4f6f0; }
.shopping-group-heading { margin: 0; padding: 17px 26px; font: 600 16px/1.3 "Segoe UI", sans-serif; color: var(--green); background: #f8faf5; border-bottom: 1px solid var(--border); scroll-margin-top: 12px; }
.shopping-group-empty { margin: 0; padding: 18px 26px; color: var(--muted); font-size: 13px; }
.item-list { list-style: none; padding: 0; margin: 0; }
.shopping-item { display: flex; gap: 6px; align-items: center; padding: 10px 15px; border-bottom: 1px solid #edf0e8; }
.shopping-item { flex-wrap: wrap; }
.check-button { flex-shrink: 0; width: 48px; padding: 12px; display: grid; place-items: center; background: none; border-color: transparent; }
.check-box { width: 23px; height: 23px; border: 1.5px solid #88977f; border-radius: 7px; display: grid; place-items: center; font-size: 15px; }
.completed .check-box { background: var(--green); color: white; border-color: var(--green); }
.item-copy { flex: 1; min-width: 0; padding: 4px 6px; }
.item-name { display: block; font-size: 14px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.completed .item-name { text-decoration: line-through; color: #6e786f; }
.item-detail { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.item-action { flex-shrink: 0; width: 44px; height: 48px; padding: 11px; background: transparent; border-color: transparent; color: #69736a; }
.item-action svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.item-action:hover { color: var(--green); }
.empty-state { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 26px; text-align: center; }
.empty-state .empty-symbol { font: 40px Georgia, serif; color: #80916f; margin-bottom: 15px; }
.empty-state h3 { font: 400 24px Georgia, serif; margin-bottom: 10px; }
.empty-state p { color: var(--muted); max-width: 270px; font-size: 13px; line-height: 1.7; margin-bottom: 0; }
.list-footnote { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0; padding: 17px 26px; background: #fcfcf9; }
.feedback-bar { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin: 22px 0 34px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; }
.feedback-bar.undo-only { justify-content: flex-end; }
.feedback-bar p { font-size: 13px; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.feedback-bar button { flex-shrink: 0; font-size: 12px; }
.mobile-quick-add { display: none; }
footer { border-top: 1px solid var(--border); padding: 22px 0 4px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; line-height: 1.6; }
footer span span { padding: 0 8px; }
.error-message { padding: 14px 16px; border: 1px solid #d5a49c; border-radius: 8px; color: #813526; background: #fff2ee; font-size: 13px; line-height: 1.6; }
dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 1px solid var(--border); border-radius: 16px; padding: 28px; color: var(--ink); background: #fffefa; box-shadow: 0 20px 80px #16271e30; }
dialog::backdrop { background: #172b2166; }
dialog h2 { margin-bottom: 10px; }
.dialog-intro { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 24px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }
.sync-dialog-actions { flex-wrap: wrap; }
.entry-panel h3, .list-heading h3 { font: 400 25px/1.2 Georgia, serif; margin-bottom: 20px; }
.list-heading h3 { margin-bottom: 7px; }
.pantry-hint { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.pantry-item { display: flex; gap: 6px; align-items: center; padding: 10px 15px; border-bottom: 1px solid #edf0e8; }
.pantry-item .item-copy { padding-left: 10px; }
.pantry-unknown { color: #805d2b; }
.transfer-history:not(:empty) { padding: 18px 24px; border-top: 1px solid var(--border); background: #fcfcf9; }
.transfer-history h4 { font-size: 12px; margin: 0 0 10px; }
.transfer-history ul { list-style: none; padding: 0; margin: 0; }
.transfer-history li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 12px; }
.transfer-history li span { overflow-wrap: anywhere; }
.transfer-history button { min-height: 44px; flex-shrink: 0; font-size: 12px; padding: 8px 12px; }
.install-panel { display: flex; align-items: center; gap: 24px; margin: 30px 0; padding: 24px; border-radius: 14px; color: #f8f6ee; background: var(--green); }
.install-panel div { flex: 1; }
.install-panel h2 { margin-bottom: 8px; }
.install-panel p { margin-bottom: 0; font-size: 13px; line-height: 1.7; }
.install-panel p + p { margin-top: 8px; }
.install-panel .eyebrow { color: #cbd7c5; margin-bottom: 8px; }
.install-panel .primary-button { background: white; border-color: white; color: var(--green); flex-shrink: 0; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { margin-bottom: 0; }
.family-dialog-content > p, #invite-result p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.family-dialog-content h3 { margin-top: 28px; font-size: 16px; }
.member-list { list-style: none; padding: 0; margin: 0 0 20px; }
.member-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.member-list button { min-height: 40px; padding: 7px 10px; }
.access-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #e9eee6; }
.access-card { width: min(520px, 100%); padding: 42px; border: 1px solid var(--border); border-radius: 18px; background: #fffefa; box-shadow: 0 18px 70px #1a332515; }
.access-card > img { margin-bottom: 24px; }
.access-card > p { color: var(--muted); line-height: 1.7; }
.access-card form, .access-card section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--border); }
.access-card form > p, .access-card section > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.access-card .access-note { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12px; }
.sync-details { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 13px; }
.sync-details dt { color: var(--muted); }
.sync-details dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 800px) {
  .site-header { padding: 22px 24px; }
  main { padding: 30px 24px 18px; }
  .workspace { grid-template-columns: 280px minmax(0, 1fr); gap: 18px; }
  .entry-panel { padding: 22px; }
  .chapter { display: none; }
  .filters { padding-left: 15px; padding-right: 15px; gap: 3px; }
  .shopping-item { padding-left: 5px; padding-right: 5px; gap: 0; }
}
@media (max-width: 640px) {
  .site-header { min-height: 86px; padding: 18px 18px; gap: 10px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .brand-caption { font-size: 7px; letter-spacing: 1px; }
  .sync-status-button { max-width: 132px; padding: 8px 10px; font-size: 10px; white-space: normal; }
  #sync-status-label { overflow: hidden; text-overflow: ellipsis; }
  main { padding: 28px 16px calc(176px + env(safe-area-inset-bottom)); }
  .section-tabs { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 74px; gap: 0; margin: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); border-bottom: 0; background: #fffefa; box-shadow: 0 -6px 24px #16271e18; }
  .section-tabs:has(#tab-recipes) { grid-template-columns: repeat(3, minmax(0, 1fr)) 68px; }
  .section-tabs button { min-width: 0; min-height: 52px; padding: 10px 6px; font-size: 13px; }
  .section-tabs .admin-tab { width: 68px; min-width: 0; min-height: 52px; margin-left: 6px; padding: 4px; font-size: 10px; }
  .action-status { margin-bottom: 20px; }
  .page-heading { margin-bottom: 22px; }
  .intro { max-width: 290px; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  #panel-list .workspace { display: block; }
  #panel-list .entry-panel { display: none; }
  .entry-panel { padding: 22px; }
  .entry-panel .eyebrow, .entry-note { display: none; }
  .entry-panel h2 { font-size: 24px; margin-bottom: 20px; }
  .list-heading { padding: 22px 22px 16px; }
  .filters { padding: 0 16px 16px; gap: 6px; }
  .filters button { flex: 1; }
  .category-heading { padding-left: 22px; }
  .shopping-group-heading { padding-left: 22px; }
  .shopping-group-empty { padding-left: 22px; }
  .shopping-item { padding: 10px 8px; }
  .pantry-item { padding: 10px 8px; }
  .feedback-bar { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .feedback-bar.undo-only { align-items: flex-end; }
  .mobile-quick-add { position: fixed; z-index: 6; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); display: block; padding: 8px; border: 1px solid #d4d9cd; border-radius: 14px; background: #fffefa; box-shadow: 0 -5px 24px #16271e24; }
  .quick-add-suggestions { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #fffefa; box-shadow: 0 -8px 30px #16271e24; }
  .quick-suggestion { display: flex; width: 100%; min-height: 58px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; border: 0; border-bottom: 1px solid #edf0e8; border-radius: 0; padding: 9px 16px; text-align: left; }
  .quick-suggestion:last-child { border-bottom: 0; }
  .quick-suggestion span { font-size: 14px; }
  .quick-suggestion small { color: var(--muted); font-size: 11px; font-weight: 500; }
  .mobile-quick-add fieldset { display: flex; align-items: center; gap: 8px; }
  .mobile-quick-add input, .mobile-quick-add select, .mobile-quick-add button { min-height: 48px; margin: 0; }
  .mobile-quick-add input, .mobile-quick-add select { border-color: transparent; background: transparent; }
  .mobile-quick-add input:focus, .mobile-quick-add select:focus { border-color: var(--border); background: white; }
  .quick-add-symbol { flex: 0 0 32px; color: var(--green); font-size: 26px; text-align: center; }
  #mobile-item-name { flex: 1; min-width: 0; }
  .quick-next, .quick-back { flex: 0 0 48px; padding: 4px; border-color: transparent; color: var(--green); background: transparent; font-size: 32px; line-height: 1; }
  .quick-quantity-copy { flex: 1; min-width: 0; padding: 0 4px; }
  .quick-quantity-copy span { display: block; color: var(--muted); font-size: 10px; }
  .quick-quantity-copy strong { display: block; overflow: hidden; margin-top: 3px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  #mobile-item-quantity { flex: 0 1 72px; min-width: 58px; padding-left: 8px; padding-right: 8px; text-align: center; }
  #mobile-item-unit { flex: 0 1 94px; min-width: 76px; padding-left: 6px; padding-right: 4px; }
  .quick-confirm { flex: 0 0 auto; padding: 8px 13px; }
  .conflict-panel, .install-panel { align-items: stretch; flex-direction: column; }
  .sync-dialog { inset: auto 8px 8px; width: auto; max-height: calc(100% - 16px); margin: 0; border-radius: 18px; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
  .sync-dialog-actions { align-items: stretch; flex-wrap: wrap; }
  .access-card { padding: 28px 22px; }
  footer { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: no-preference) { button { transition: background-color 120ms ease; } }

.recipe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0; }
.recipe-note { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 10px 0; }
#recipe-search { width: 100%; margin: 8px 0 18px; padding: 12px; }
.recipe-browser-controls { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.recipe-browser-controls > div { flex: 1 1 160px; }
.recipe-browser-controls .recipe-search-field { flex: 3 1 240px; }
.recipe-browser-controls label { display: block; }
.recipe-browser-controls #recipe-search, #recipe-sort, #recipe-category-filter { width: 100%; margin: 8px 0 12px; padding: 12px; }
.recipe-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.recipe-letters button { min-width: 44px; min-height: 44px; padding: 8px 12px; }
.recipe-letters button[aria-pressed="true"] { background: var(--ink); color: white; }
.recipe-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#recipe-list { display: grid; gap: 20px; }
.recipe-group h3 { margin: 0 0 8px; color: var(--muted); font: 600 15px/1.4 sans-serif; }
.recipe-group-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.recipe-show-more { display: block; margin: 20px auto; }
.saved-recipe-card { width: 100%; min-height: 48px; padding: 10px 8px; border: 0; border-radius: 6px; background: transparent; overflow-wrap: anywhere; text-align: left; font: 400 16px/1.4 Georgia, serif; }
.saved-recipe-card:hover { background: var(--soft); }
.recipe-dialog-content { padding: 26px; }
.recipe-dialog-content li { margin: 8px 0; }
.recipe-multiline { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.7; }
#recipe-editor textarea { width: 100%; padding: 12px; font: inherit; line-height: 1.6; color: var(--ink); border: 1px solid var(--border); border-radius: 9px; resize: vertical; }
.recipe-confirm { display: flex !important; align-items: center; gap: 12px; margin: 18px 0; line-height: 1.5; }
.recipe-confirm input { flex-shrink: 0; width: 22px; min-height: 22px; height: 22px; }
#recipe-editor .recipe-confirm input { width: 22px; }
@media (max-width: 600px) { .recipe-dialog-content { padding: 20px; } }

.recipe-serving-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.recipe-serving-controls > div { flex: 1; min-width: 100px; }
.recipe-serving-controls label { display: block; margin-bottom: 8px; }
.recipe-serving-controls input { width: 100%; padding: 10px; }
.recipe-amount-check { display: inline-block; margin: 4px 0 4px 8px; padding: 3px 8px; border-radius: 6px; background: #fff2d8; color: #795315; font-size: 12px; font-weight: 600; }
.recipe-amount-reason { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }

.saved-recipe-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 4px; align-items: center; }
.recipe-icon-button { min-width: 44px; width: 44px; min-height: 48px; padding: 10px; border: 0; background: transparent; color: var(--muted); }
.recipe-icon-button:hover { background: var(--soft); color: var(--ink); }
.recipe-icon-button svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.recipe-pantry-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.recipe-pantry-summary { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.recipe-pantry-pick { display: flex; align-items: center; gap: 10px; min-height: 44px; flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; }
.recipe-pantry-pick span { overflow-wrap: anywhere; }
.recipe-pantry-pick input { width: 22px; height: 22px; min-height: 22px; flex: 0 0 22px; margin: 0; }
.recipe-pantry-badge { flex: 0 0 auto; max-width: 110px; font-size: 12px; color: var(--green); text-align: right; }
.recipe-pantry-badge[data-state="check"] { color: #795315; }
.recipe-pantry-row details { margin-left: 32px; }
.recipe-pantry-row summary { padding: 10px 0; min-height: 44px; cursor: pointer; font-size: 12px; color: var(--muted); }
.recipe-pantry-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding-bottom: 8px; }
.recipe-pantry-fields label:first-child { grid-column: 1 / -1; }
.recipe-pantry-fields label { font-size: 12px; min-width: 0; }
.recipe-pantry-fields input, .recipe-pantry-fields select { width: 100%; margin: 6px 0 0; padding: 10px; min-height: 44px; }

.week-navigation { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.week-navigation > div { flex: 1; min-width: 0; }
.week-navigation label { display: block; font-size: 12px; margin-bottom: 6px; }
.week-navigation input { width: 100%; margin: 0; }
.week-navigation button { min-width: 48px; font-size: 25px; padding: 4px 14px; }
.week-day { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--border); }
.week-day button { min-height: 64px; border: 0; background: transparent; text-align: left; padding: 10px 8px; }
.week-date-button { color: var(--muted); font-size: 13px; }
.week-dinner-button { font: 400 16px/1.4 Georgia,serif; overflow-wrap: anywhere; }
.week-day button:hover { background: var(--soft); }
.week-day-actions { display: flex; align-items: center; }
.week-day .week-day-actions .item-action { min-height: 48px; padding: 11px; text-align: center; }
#dinner-editor textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 9px; font: inherit; line-height: 1.5; margin: 8px 0 18px; }
#dinner-editor details { margin: 12px 0 20px; }
#dinner-editor summary { color: var(--muted); font-size: 13px; min-height: 44px; padding: 12px 0; cursor: pointer; }
#dinner-editor .dialog-actions { flex-wrap: wrap; }
@media(max-width:640px){
  .section-tabs:has(#tab-week) { grid-template-columns: repeat(4,minmax(0,1fr)) 48px; }
  .section-tabs:has(#tab-week) button { font-size: 12px; }
  .section-tabs:has(#tab-week) .admin-tab { width: 48px; font-size: 10px; margin-left: 0; }
}

.list-switch { padding: 0; margin-bottom: 18px; border: 0; }
@media (max-width: 640px) {
  #once-off-mobile-name { flex: 1; min-width: 0; }
  #once-off-mobile-quantity { flex: 0 0 56px; width: 56px; padding: 8px 2px; }
  #once-off-mobile-add-form .quick-confirm { flex: 0 0 52px; width: 52px; padding: 6px; }
}
