body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.site-version { margin-top: auto; padding: 0 4vw .8rem; text-align: end; color: var(--muted); }
.site-version small { font-size: .75rem; }
.household-main { max-width: 42rem; }
.household-main h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.panel-form { margin-top: 1.5rem; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: 12px; background: white; }
.account { display: flex; margin-left: auto; align-items: center; gap: .75rem; }
.account > * + * { margin-top: 0; }
.form-field label { display: block; margin-bottom: .25rem; }
.panel-form .actions { gap: 1rem; }
.panel-form small { display: block; margin-top: .25rem; }
.qr { display: block; image-rendering: pixelated; }
.manual-key code { overflow-wrap: anywhere; }
.manual-key strong { display: block; }
.errorlist { padding: .5rem 0 .5rem 1.25rem; font-weight: 600; }
.recipe-library, .recipe-detail { max-width: 68rem; overflow-wrap: anywhere; }
.recipe-library .button, .recipe-detail .button { text-decoration: none; }
.recipe-search { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: .5rem; }
.recipe-search > * { margin: 0; }
.browse-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .5rem; margin-top: .6rem; font-size: .9rem; }
.browse-line strong { min-width: 4rem; }
.browse-line a { padding: .3rem .65rem; text-underline-offset: .18em; }
.browse-line [aria-current] { border-radius: .45rem; background: var(--soft); color: var(--ink); text-decoration: none; }
.tag, .browse-line a.tag, .choices label.tag-choice { background: var(--tag-color, var(--soft)); color: var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.tag, .choices .tag-choice { border: 1px solid color-mix(in srgb, var(--frost) 70%, var(--steel)); }
.browse-line a.tag { border-radius: 1rem; text-decoration: none; }
.browse-line .tag:hover { border-color: var(--steel); }
.browse-line .tag[aria-current] { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); font-weight: 600; }
.recipe-library .catalog-grid, .recipe-library .empty { margin-top: 1.25rem; }
.recipe-card h2 { font-size: 1.55rem; }
.recipe-card h2 a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .13em; }
.recipe-sheet { background: white; border: 1px solid var(--line); border-radius: 12px; padding: clamp(1rem, 3vw, 2rem); overflow-wrap: anywhere; }
.recipe-sheet .tags { margin-top: .5rem; }
.recipe-sheet .cook-grid { margin-top: 1.5rem; }
.recipe-sheet .ingredient-list strong { white-space: normal; text-align: right; }
.conflict { margin-top: 1rem; border-left: 4px solid var(--steel); }
.conflict h2 { font-size: 1.4rem; }
.conflict > h3, .draft-title { margin-top: 1rem; }
.recipe-form .form-field { min-width: 0; }
.recipe-form .choices { margin-bottom: .6rem; }
.recipe-form .ingredient-row[hidden] { display: none; }
.week-main a.button, .day-strip a, .week-main .dinner-line { text-decoration: none; }
.week-main .day-tab { color: var(--muted); }
.week-main .day-tab.selected { color: white; }
.plan-back { margin-bottom: 1rem; }
.plan-summary { padding-top: .6rem; }
.plan-form .choices { margin-bottom: .4rem; }
.plan-form input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; flex-shrink: 0; accent-color: var(--action); }
.sitehead .bar { flex-wrap: wrap; }
@media (max-width: 900px) {
  .sitehead .bar { flex-direction: row; align-items: center; gap: .35rem 1rem; padding-block: .65rem; }
  .sitehead nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); order: 1; width: 100%; margin: 0; }
  .sitehead nav a { justify-content: center; text-align: center; white-space: normal; }
}
@media (max-width: 650px) {
  .ingredient-row > .form-field:first-of-type { grid-column: 1/-1; }
  .recipe-form .ingredient-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; }
  .recipe-form .ingredient-row + .ingredient-row { padding-top: .75rem; border-top: 1px solid var(--line); }
  .browse-line a { display: inline-flex; align-items: center; min-height: 44px; }
}
.catalog-tabs { margin-bottom: 1rem; }
.meal-contents { list-style: none; padding: 0; }
.meal-contents li { padding: .6rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.meal-contents li:last-child { border-bottom: 0; }

.plan-summary, .meal-contents, .page-head h1 { overflow-wrap: anywhere; }
.plan-footer { margin-top: 1rem; }
.shopping-page .button { text-decoration: none; }
.shopping-page .grocery-name { display: flex; align-items: center; }
.shopping-page [hidden] { display: none; }
#shopping-marks > *, #shopping-filter > * { margin-top: 0; }
.week-main .shop-link { margin-top: .75rem; }
.shopping-page .shopping-dates { text-underline-offset: .18em; }
.shopping-page .grocery-name:focus-visible { outline-offset: -3px; }
.shop-progress strong span { color: inherit; font-size: inherit; }
.grocery-table .mark-error td { padding: .6rem 1rem; background: var(--soft); color: var(--ink); }
.mark-error a { white-space: nowrap; }
.grocery-table tbody + tbody .shop-row:first-child > * { border-top: 1px solid var(--soft); }
@media (max-width: 850px) {
  .shopping-ledger { display: block; }
  .grocery-table + .grocery-table { border-left: 0; }
}
