.lifeos-meals { display: grid; gap: 1rem; min-width: 0; }
#root .lifeos-meals .lifeos-meals-hero { min-height: 0; padding: clamp(1.1rem, 3vw, 2.35rem); color: #fff6e3; background: linear-gradient(120deg, #101f34, #1c3954 78%, #36536a); border: 1px solid #b99761; border-radius: 1.1rem; }
#root .lifeos-meals-hero h1 { color: inherit; margin: 0; }
.lifeos-meals .lifeos-overview-switch { width: fit-content; max-width: 100%; flex-wrap: wrap; }
.lifeos-meals-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; }
.lifeos-meals-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: .85rem; }
.lifeos-meals-day { display: grid; align-content: start; justify-items: start; gap: .6rem; min-width: 0; }
#root .lifeos-meals-day[data-today=true] { border-color: #b69354; box-shadow: inset 0 2px #d7b780; }
#root .lifeos-meals-day h2 { font-size: 1.45rem; margin: 0; }
.lifeos-meals-entries, .lifeos-meals-list { list-style: none; padding: 0; margin: 0; }
.lifeos-meals-entries li { display: grid; justify-items: start; gap: .15rem; margin-bottom: .65rem; }
#root .lifeos-meals-list { padding: 0; border-color: #c4a776; }
.lifeos-meals-list-row { display: flex; flex-wrap: wrap; align-items: start; gap: .45rem .85rem; padding: .8rem 1rem; }
.lifeos-meals-list-row + .lifeos-meals-list-row { border-top: 1px solid #e1d5bf; }
.lifeos-meals-list-row > div { flex: 1 1 10rem; min-width: 0; }
.lifeos-meals-record { color: #162c45; text-align: left; font-weight: 700; overflow-wrap: anywhere; }
.lifeos-meals-record:hover { text-decoration: underline; }
.lifeos-meals-dialog { width: min(calc(100% - 2rem), 32rem); max-height: 90vh; padding: 1.2rem; border: 1px solid #bd9b60; border-radius: 1rem; background: #fff9ed; color: #162c45; }
.lifeos-meals-dialog::backdrop { background: #081626a6; }
.lifeos-meals-dialog form, .lifeos-meals-field { display: grid; gap: .45rem; }
.lifeos-meals-dialog form { gap: .85rem; }
.lifeos-meals-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lifeos-meals-dialog h2 { font: 400 1.8rem var(--lifeos-serif, Georgia, serif); }
.lifeos-meals-field { font-weight: 650; }
.lifeos-meals-field :is(input, select, textarea) { min-height: 2.5rem; border: 1px solid #baad96; border-radius: .5rem; padding: .35rem .55rem; background: #fffefa; color: #162c45; font: inherit; font-weight: 400; width: 100%; }
.lifeos-meals-check { display: flex; align-items: center; gap: .5rem; }
.lifeos-meals :is(button, a, input, select, textarea):focus-visible { outline: 2px solid #805c25; outline-offset: 2px; }
@media (pointer: coarse) { .lifeos-meals :is(button, input, select) { min-height: 2.75rem; } .lifeos-meals input[type=checkbox] { min-height: 0; } }
