/* v1.5: compact daily strip, independent from the contextual meal footer. */
:root{--daily-height:0px}
.app-page-view[hidden]{display:none!important}.app-page-view{min-width:0}
body.page-navigating .topbar:after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--purple);animation:page-progress .8s ease-in-out infinite alternate;transform-origin:left}
@keyframes page-progress{from{transform:scaleX(.12);opacity:.4}to{transform:scaleX(.9);opacity:1}}
@media(prefers-reduced-motion:reduce){body.page-navigating .topbar:after{animation:none}}
html{scroll-padding-top:calc(var(--top-height) + var(--daily-height) + 10px)}
.dashboard-sentinel{height:1px;pointer-events:none}
.daily-dashboard{position:sticky;top:var(--top-height);z-index:32;background:#f6f7fa;padding:5px 0 7px;margin-bottom:8px}
.daily-dashboard.is-stuck{box-shadow:0 5px 10px #25263a0a}
.daily-dashboard .dashboard-caption{margin:0 0 4px;font-size:10px}
.daily-dashboard .summary-grid{gap:7px;margin:0;grid-template-columns:repeat(5,minmax(0,1fr))}
.daily-dashboard .summary-card{padding:8px 12px;min-height:0;border-radius:12px;box-shadow:none}
.daily-dashboard .summary-label{font-size:10px;margin:0 0 2px}
.daily-dashboard .summary-value{font-size:23px;line-height:1.2;margin:0 0 3px}
.daily-dashboard .summary-value small{font-size:10px}
.daily-dashboard .summary-reference{display:block;font-size:10px;line-height:1.3;margin:0;white-space:normal;overflow-wrap:anywhere}
.daily-dashboard progress{height:3px;margin:5px 0 2px}
.daily-dashboard .range-status{display:block;font-size:10px;line-height:1.25;min-height:0}
.food-row{min-height:48px;padding:4px 0}
.food-columns.composition-heading{padding:8px 0}
.picker-macros{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:7px;font-variant-numeric:tabular-nums;text-align:right}
.picker-macros>span{min-width:0}.picker-macros small{display:block!important;color:var(--muted);font-size:9px;margin:0!important}.picker-macros b{display:block;font-weight:550;font-size:12px;line-height:1.5}
.mobile-food-options [aria-selected=true],.food-results [aria-selected=true]{background:var(--purple-soft);outline:1px solid #b6a0de;outline-offset:-1px}
.mobile-food-options button{padding:10px 12px}.mobile-food-options button>small{font-size:10px}.food-results button{width:100%;text-align:left}
.history-list{display:grid;gap:5px}.history-entry{border:1px solid var(--line);border-radius:9px;background:#fff;padding:12px;text-align:left;color:var(--ink)}.history-entry small{display:block;color:var(--muted);margin-top:3px}.history-entry:disabled{background:var(--purple-soft);opacity:1}
.toolbar-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end}.toolbar-actions .small-btn{min-height:34px;padding:6px 10px}.toolbar-actions .save-state{display:inline-block;font-size:10px}
.meal-body input{scroll-margin-top:calc(var(--top-height) + var(--daily-height) + 15px)}
.top-sync-mark{font-size:17px;color:#638a72}
.top-sync-mark[data-state=pending],.top-sync-mark[data-state=saving]{color:#a17b43}.top-sync-mark[data-state=offline],.top-sync-mark[data-state=conflict]{color:#ba4b61}
@media(max-width:600px){
 .daily-dashboard{padding:3px 0 5px}.daily-dashboard .dashboard-caption{display:none}.daily-dashboard .summary-grid{gap:4px}
 .daily-dashboard .summary-card{padding:6px 5px;border-radius:9px;border-top-width:2px}
 .daily-dashboard .summary-label{font-size:8px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .daily-dashboard .summary-value{font-size:17px;letter-spacing:-.4px}.daily-dashboard .summary-value small{font-size:8px}
 .daily-dashboard .summary-reference{display:block;font-size:8px;letter-spacing:-.1px;line-height:1.3}
 .daily-dashboard .range-status{font-size:8px;line-height:1.3}.daily-dashboard progress{margin:4px 0 2px}
 .daily-dashboard[data-mode=structure] .summary-value{font-size:14px;overflow-wrap:anywhere}
 .food-row{min-height:46px;padding:3px 0}.editor-toolbar{gap:6px;flex-wrap:wrap}.toolbar-actions{margin-left:auto}.save-state{margin:0 4px 0 0}
}
@media(max-width:350px){.daily-dashboard .summary-value{font-size:15px}.daily-dashboard .summary-reference{font-size:7px}.daily-dashboard .summary-value small{display:none}}
