/* Meals: the pieces of this redesigned screen only (docs/mockups/redesign/); shared ones are
   css/widgets.css. Colours come from the tokens in style.css only. The list fills Food's column (#app.screen),
   whose width the top bar shares, so the title lines up with the list's edge at every width. */
.mls{display:flex;flex-direction:column;gap:18px;inline-size:100%;padding-block-end:24px}
.mls .card{margin:0}
.mls .state{display:flex;flex-direction:column}
.mls-day{display:flex;flex-direction:column;gap:8px}
.mls-day>.card{padding-block:14px}

/* the search, then the Filter, Select and More buttons under it, each with its word */
.mls-tools{display:flex;flex-direction:column;gap:8px}
.mls-acts{display:flex;flex-wrap:wrap;gap:8px}
.mls-search{flex:1;min-width:0}
.mls-search>.i{position:absolute;inset-inline-start:14px;top:16px;color:var(--mut);pointer-events:none}
.mls-acts .btn.on{background:var(--a-soft);border-color:var(--a);color:var(--a)}

/* a row: the response number in the ink colour, the time aligned on tabular figures */
.mls-row{color:var(--ink);font:inherit}
/* Food's "Usually around now": the name opens the meal, the pill beside it logs it again; two buttons in one row */
.mls-usualrow{grid-template-columns:minmax(0,1fr) auto;cursor:default}
.mls-usualname{display:flex;align-items:center;min-width:0;min-height:44px;padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.mls-row .when{font-variant-numeric:tabular-nums}
.mls-row.sel{background:var(--a-soft);border-radius:var(--rm);padding-inline:10px}
.mls-tick{width:26px;height:26px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;color:var(--a)}
.mls-row.sel .mls-tick{border-color:var(--a)}
.mls-tick .ic,.mls-tick .i{width:15px;height:15px}
.mls-ctxic{color:var(--mut)}

/* the selection bar stays in view while scrolling the list */
.mls-selbar{background:var(--surface);position:sticky;top:6px;z-index:var(--z-page);padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.mls-selhead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mls-selacts{display:flex;flex-wrap:wrap;gap:8px}

/* the sheets */
.mls-sheet{display:flex;flex-direction:column;gap:18px}
/* "Kind of meal" holds two fields, the category and what the entry is made of: each row has its own small heading */
.mls-fsub{margin:4px 0 0;font-size:.82rem;font-weight:700;color:var(--ink2)}
.mls-check{width:24px;height:24px;accent-color:var(--a);margin:10px}
.mls-item{cursor:pointer}
.mls-search input::-webkit-search-cancel-button{display:none}
/* spark() scales from 6 mg/dL under the baseline, so a dip after the peak runs under its box: drawn into the row's
   padding instead of cut off */
.mls-row .mspark{overflow:visible}
.mls .orb .i{width:34px;height:34px}

/* the main action: log a meal, and the round voice button beside it (the mock's mainact) */
.mls-mainact{display:flex;gap:12px;align-items:center}
.mls-micbtn{width:58px;height:58px;flex:none;border-radius:50%;display:grid;place-items:center;color:var(--a);background:var(--surface);border:1.5px solid var(--a);box-shadow:var(--glow);cursor:pointer}
.mls-micbtn .i{width:26px;height:26px}

/* All meals: the quick filter chips scroll sideways in one line; a day's heading, with its copy button, stays at the
   top while its rows scroll under it (the top bar is in the flow, so 0 is just under it) */
.mls-quick{flex-wrap:nowrap}
.mls-quick .chip{flex:none}
.mls-dayhead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mls-list .mls-dayhead{position:sticky;top:0;z-index:2;background:var(--paper);padding-block:4px}
.mls-dayhead .sec{margin:0}

/* Food's root (views/food.js): the Water and Fasting rows, then its doors two by two; a door's line may wrap */
.fd-none{margin:0;color:var(--mut)}
.fd-intro{margin:0;color:var(--ink2)}
.fd-daily{padding-block:2px}
.fd-daily .lrow:first-child{border-top:0}
.fd-row{cursor:default}
.fd-row .btn{white-space:nowrap}
.fd-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fd-segs,.kit-segs{margin-block-end:4px}

/* "Usually around now" (views/meals-usual.js): a row logs the meal again; the arrow says so */
.mls-usual{display:flex;flex-direction:column;gap:8px}
.mls-usual>.card{padding-block:10px}
.mls-usual .lrow{grid-template-columns:minmax(0,1fr) auto}
/* Log again: the row's small pill, as on Today's Food row (css/today.css) */
.mls-again{flex:none}
