/* Kitchen and Brief views. Uses the variables from app.css. */
.feeds-view { overflow-y: auto; padding: 0 var(--gutter) 6rem; -webkit-overflow-scrolling: touch; }
.feeds-wrap { max-width: 1100px; margin: 0 auto; padding-top: .5rem; }
.feeds-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: .5rem 0; }
.feeds-head h2 { margin: 0; font-size: 1.3rem; }
.feeds-head .spacer { flex: 1; }
.pending-badge { background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: .15rem .7rem; font-size: .8rem; font-weight: 600; }
.muted { color: var(--muted); }
.feeds-card, .meal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.feeds-card h3, .meal-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.feeds-card h4 { margin: .9rem 0 .2rem; font-size: .95rem; color: var(--muted); }
.meal-grid, .feeds-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin: .75rem 0 1rem; }
.meal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.status-chip { border-radius: 999px; padding: .15rem .7rem; font-size: .8rem; font-weight: 600; background: var(--surface-3); white-space: nowrap; }
.status-chip.eaten { background: var(--accent-soft); color: var(--ok); }
.status-chip.skipped { background: var(--warn-soft); color: var(--warn); }
.meal-card.eaten h3 { text-decoration: line-through; opacity: .7; }
.row-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.recipe-box { margin: .6rem 0; }
.recipe-box summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.recipe ol, .recipe ul { padding-left: 1.3rem; }
.recipe li { margin: .35rem 0; }
.safety { background: var(--warn-soft); border-radius: var(--radius-sm); padding: .5rem .75rem; }
.day-strip, .brief-bar { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 .5rem; align-items: center; }
.chip-btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.brief-bar select { font: inherit; padding: .4rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 40px; }
.todo-row { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--line); min-height: 44px; cursor: pointer; }
.todo-row input { width: 22px; height: 22px; margin-top: .15rem; flex: 0 0 auto; }
.todo-row.done .todo-text { text-decoration: line-through; color: var(--muted); }
.todo-row.busy { opacity: .5; }
.todo-text small { color: var(--muted); }
.todo-note { display: block; }
.due { color: var(--muted); margin-left: 2.2rem; }
.due.soon { color: var(--warn); font-weight: 600; }
.best-shop { margin-top: 1rem; }
.cat-head { margin: 1.4rem 0 .4rem; }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin: .5rem 0; padding: 0 1rem .8rem; }
.story summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: .6rem; padding: .5rem 0; flex-wrap: wrap; }
.story-title { font-weight: 600; }
.story-detail p { margin: .5rem 0; }
.level-badge { border-radius: 6px; padding: .1rem .5rem; font-size: .75rem; font-weight: 700; background: var(--surface-3); }
.level-badge.act { background: var(--crit-soft); color: var(--crit); }
.level-badge.watch { background: var(--warn-soft); color: var(--warn); }
.level-badge.fyi { background: var(--info-soft); color: var(--info); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { background: var(--surface-2); border-radius: 999px; padding: .15rem .65rem; font-size: .8rem; border: 0; color: var(--text); }
.btn-tag { cursor: pointer; min-height: 36px; font: inherit; font-size: .8rem; }
.muted-tag { background: var(--crit-soft); color: var(--crit); }
.mute-form { display: flex; gap: .5rem; margin: .5rem 0; }
.mute-form input { flex: 1; font: inherit; padding: .5rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 44px; }
.short-list { padding-left: 1.2rem; }
.reader { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.reader-bar { position: sticky; top: 0; display: flex; align-items: center; gap: 1rem; padding: .6rem var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.reader-body { max-width: 42rem; margin: 0 auto; padding: 1rem var(--gutter) 6rem; font-size: 1.08rem; line-height: 1.65; }
.reader-body h2 { font-size: 1.7rem; line-height: 1.25; }
.reader-body h3 { margin-top: 1.8rem; }
.reader-body .dek { font-size: 1.2rem; color: var(--muted); }
.reader-body code { background: var(--surface-2); padding: 0 .3em; border-radius: 4px; font-family: var(--mono); font-size: .92em; }
.takeaways { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem 1rem; }
.md-scroll { overflow-x: auto; }
.md-table { border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: .4rem .7rem; text-align: left; vertical-align: top; }
.md-table th { background: var(--surface-2); }

/* ---- wall panel (?mode=panel): the tabs come back (Rooms, Kitchen, Brief), chat stays the drawer */
html.panel .tabs { display: flex; margin-left: .75rem; }
html.panel .tab[data-view="chat"] { display: none; }
html.panel .tab { min-height: 56px; font-size: .95rem; padding: 0 1.1rem; }
html.panel #view-rooms[hidden] { display: none !important; }
html.panel .feeds-view { padding-bottom: 7rem; }
html.panel .btn.small { min-height: 52px; padding: .5rem 1.1rem; }
html.panel .todo-row { min-height: 56px; }
html.panel .todo-row input { width: 28px; height: 28px; }
html.panel .story summary, html.panel .recipe-box summary { min-height: 56px; }
html.panel .alerts-btn { margin-left: .75rem; }
