/* Menu and meal history, using the existing local palette and touch targets. */
.topbar a:not(.brand), .history-card > a, .history-empty > a, #empty-book > a {
  display: inline-flex; align-items: center; min-height: 48px; padding-block: 8px;
}
#menu-conflict summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; }
.week-picker { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 12px; align-items: end; margin-bottom: 24px; }
.week-picker .field { margin: 0; }
.week-picker input { width: 100%; }
.planning-actions { flex-wrap: wrap; }
.planning-actions .button { flex: 1 1 120px; min-width: 0; padding-inline: 12px; }
.slot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-actions .button { padding: 10px 14px; font-size: 14px; }
.meal-content { min-width: 0; overflow-wrap: anywhere; }
.meal-content p { font-size: 14px; color: var(--ink-muted); margin-bottom: 12px; }
.meal-content .eaten-note { color: var(--ok-ink); margin-top: 12px; }
.history-intro { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.history-list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 16px; }
.history-list .section { margin: 0; }
.history-card { overflow-wrap: anywhere; }
.history-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 24px; margin: 12px 0 8px; font-weight: 600; }
.history-card .section-head { flex-wrap: wrap; }
.history-card .section-head p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.history-card footer { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 16px; }
.history-card footer .button { flex-shrink: 0; padding: 10px 14px; font-size: 14px; }
.history-filters { margin-top: 16px; }
.history-filters .button { margin-top: 16px; }
.history-empty { text-align: center; padding-block: 32px; }
.history-empty h2 { font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
#menu-conflict { scroll-margin-top: 16px; }
#recipe-plan-intent { overflow-wrap: anywhere; }
#menu-conflict li { margin-top: 8px; }
dialog form { margin: 0; }
dialog .field:first-child { margin-top: 0; }
.slot-suggestions { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.slot-suggestions h3 { margin-bottom: 8px; }
.suggestions-list, .meal-candidates { display: grid; gap: 8px; }
.suggestions-list .button { margin: 0; text-align: left; justify-content: flex-start; }
.meal-candidates { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.meal-candidates .hint { margin-bottom: 0; }
.meal-candidates .button { text-align: left; justify-content: flex-start; }
@media (max-width: 360px) {
  .week-picker { gap: 6px; }
  .meal { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
}


.history-card { box-shadow: none; }
.history-card footer .button { color: var(--tomato); border-color: var(--tomato); }
.meal-candidates .button { background: var(--surface); color: var(--ink); border-color: var(--line); }
.meal-candidates { background: var(--bg); padding: 16px; border-radius: var(--radius-md); }
.history-card:has(> a) { border-inline-start: 4px solid var(--accent); }
.history-card > a { color: var(--ok-ink); }
@media (max-width: 620px) {
  #slot-dialog { margin: auto auto 0; width: 100%; max-height: calc(100dvh - 24px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--bg); padding: 24px 16px; }
}
