/* Shared kitchen artwork and the browse/sync surfaces. Tokens live in app.css. */
.page-head .eyebrow { margin-bottom: 6px; }
.kitchen-art { width: 112px; height: 84px; flex: none; }
.page-welcome { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 12px; }
.page-welcome p { max-width: 17em; margin: 0; color: var(--text-2); font: 500 var(--fs-lg)/1.4 var(--serif); }
.page-welcome .kitchen-art { width: 80px; height: 60px; }
.tonight { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--surface), var(--accent-soft)); }
.tonight-art { float: right; margin: -8px -8px 0 12px; width: 96px; height: 72px; }
.tonight .btn { clear: both; }
.login-art { display: block; width: 160px; height: 120px; margin: 0 auto 16px; }
.section-head h2, .section-head h3, .card h2 { display: flex; align-items: center; gap: 8px; }
.section-head h2 > .icon, .section-head h3 > .icon, .card h2 > .icon { color: var(--accent-text); width: 20px; height: 20px; }
.list { overflow: hidden; box-shadow: 0 3px 14px rgb(70 40 15 / .025); }
.list-row { gap: 12px; padding: 14px; }
.list-row .title { display: block; line-height: 1.4; }
.recipe-symbol { display: grid; place-items: center; width: 44px; height: 48px; flex: none; border-radius: 13px; background: var(--accent-soft); color: var(--accent-text); }
.recipe-symbol .icon { width: 25px; height: 25px; }
.list > li:nth-child(3n + 2) .recipe-symbol { background: var(--herb-soft); color: var(--herb); }
.list > li:nth-child(3n) .recipe-symbol { background: var(--sunken); color: var(--text-2); }
.freezer-row > .recipe-symbol { width: 36px; height: 40px; background: var(--herb-soft); color: var(--herb); }
.segmented button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.segmented .icon { width: 18px; height: 18px; }

.filter-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.filter-card .search input { background: var(--bg); }
.browse-toggles { gap: 8px; margin: 12px 0; }
.browse-toggles .chip { font-size: var(--fs-xs); padding: 0 12px; margin: 0; }
.browse-toggles .chip .icon { width: 17px; height: 17px; }
/* The native checkbox covers the whole chip for touch and keyboard interaction. */
.browse-toggles .chip input { inset: 0; width: 100%; height: 100%; margin: 0; pointer-events: auto; cursor: pointer; z-index: 1; }
.browse-grid { gap: 12px; }
.filter-label { display: flex; align-items: center; gap: 6px; }
.filter-label .icon { width: 17px; height: 17px; color: var(--text-2); }
.filter-card select { min-width: 0; }
.filter-details { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0; margin: 12px 0; }
.filter-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; list-style: none; }
.filter-details > summary::-webkit-details-marker { display: none; }
.filter-details > summary span { display: flex; align-items: center; gap: 8px; }
.filter-details > summary .icon { width: 18px; height: 18px; }
.filter-details[open] > summary > .icon { transform: rotate(180deg); }
.filter-details .hint { margin-top: 8px; }
.browse-actions { gap: 8px; }
.browse-actions .btn-primary { flex: 1; }
.active-filters { gap: 6px; }
.active-filters .chip { padding: 6px 12px; font-size: var(--fs-xs); }
.ideas-status { min-height: 1.55em; margin: 0 0 8px; }
.meal-target { position: sticky; top: 8px; z-index: 10; display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 12px 0; background: var(--herb-soft); border: 1px solid var(--herb); border-radius: var(--r-input); font-size: var(--fs-xs); }
.meal-target > .icon { color: var(--herb); }
.meal-target strong { flex: 1; min-width: 0; }
.meal-target .btn { flex: none; padding: 0 8px; }
.meal-choice .btn-block { display: flex; }
.browse-primary > label:last-child { grid-column: 1 / -1; }
#recipe-inspiration > summary { display: flex; align-items: center; gap: 8px; }

.shopping-heading { padding-bottom: 0; }
.shopping-sync { border: 1px solid var(--border); border-radius: var(--r-card); padding: 12px; background: var(--surface); }
.sync-line { display: flex; gap: 8px; align-items: center; color: var(--herb); }
.sync-line p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.shopping-sync[data-state="error"] .sync-line, .shopping-sync[data-state="waiting"] .sync-line { color: var(--saffron); }
.shopping-sync .actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.shopping-sync .btn { min-height: 44px; padding: 0 8px; font-size: var(--fs-xs); }
.shopping-sync ul { margin: 8px 0; padding-left: 20px; }
.shopping-sync ul:empty { display: none; }

@media (max-width: 899px) {
  .tabbar a[aria-current="page"] .icon { background: var(--accent-soft); box-sizing: content-box; padding: 3px 10px; border-radius: 10px; }
  .account { flex-wrap: wrap; justify-content: flex-start; gap: 4px 16px; }
  .account > span { flex-basis: 100%; }
  .account > a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
  .account > .btn { margin-left: auto; }
}
@media (max-width: 380px) {
  .filter-card { padding: 12px; }
  .browse-primary { grid-template-columns: minmax(0, 1fr); }
  .plan-recipe-link + form .btn { padding: 0 10px; }
  .freezer-row > .recipe-symbol { display: none; }
}
@media (min-width: 900px) {
  .meal-target { top: 76px; }
  .browse-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .browse-primary > label:last-child { grid-column: auto; }
  .page-welcome .kitchen-art { width: 120px; height: 90px; }
  .page-welcome p { font-size: var(--fs-xl); max-width: none; }
  .filter-card { padding: 20px; }
  .browse-more .browse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
