/* Food at a change stop (js/snack.js), rain on a walk (js/rainwalk.js) and the night plan (js/nightplan.js). Tokens from app.css only,
   so every theme colour and dark mode follow. 360 px: 16 px edges, 44 px targets. */
.snack-card, .night-card { margin: var(--card-gap, 12px) 0; padding: var(--card-pad, 14px); border-radius: var(--r-card, 18px); background: var(--surface-2); }
.sn-head, .nt-head { display: flex; gap: var(--sp-2, 8px); align-items: flex-start; margin: 0; font-size: var(--fs-row, 16px); line-height: 1.3; }
.sn-head b, .nt-head span { font-weight: 800; }
.sn-list { list-style: none; margin: var(--sp-3, 12px) 0 0; padding: 0; display: grid; gap: var(--sp-1, 4px); }
.sn-item, .nt-food { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: var(--sp-3, 12px); padding: 8px 12px; border-radius: var(--r-chip, 12px); background: var(--surface, #fff); color: var(--text); text-align: left; font: inherit; border: 0; }
.nt-food.static { cursor: default; }
.sn-name { min-width: 0; font-weight: 700; display: grid; }
.sn-name small, .sn-meta small { display: block; font-size: var(--fs-detail, 13px); font-weight: 500; color: var(--muted); }
.sn-meta { flex: none; text-align: right; font-weight: 700; font-size: var(--fs-detail, 14px); white-space: nowrap; }
.sn-note { margin: var(--sp-3, 10px) 0 0; font-size: var(--fs-detail, 12.5px); color: var(--muted); }
.rain-note small.rn-credit { display: block; margin-top: 2px; font-size: var(--fs-cap); color: var(--muted); }
.nt-sum { margin: var(--sp-2, 8px) 0 0; font-size: var(--fs-row, 16px); line-height: 1.4; }
.nt-times { margin: var(--sp-2, 8px) 0 0; font-size: var(--fs-detail, 14px); color: var(--muted); }
.nt-times b { color: var(--text); }
.nt-late { display: flex; gap: 8px; margin: var(--sp-2, 8px) 0 0; color: var(--warn); font-weight: 600; font-size: var(--fs-sub); }
.nt-use { margin-top: var(--sp-3, 12px); min-height: 44px; }
.nt-wait { margin: 12px 0 0; font-size: var(--fs-sub); color: var(--muted); }
.ak-extra { margin-top: 4px; }
/* the walk-and-countdown sheet */
.snack-go { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .35); }
.sg-card { width: 100%; max-height: 86vh; overflow: auto; padding: 18px var(--edge, 16px) calc(20px + var(--safe-bot, 0px)); border-radius: 22px 22px 0 0; background: var(--bg, #fff); color: var(--text); animation: sg-up .24s var(--ease, ease-out) both; }
@keyframes sg-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sg-card { animation: none; } }
.sg-top { display: flex; align-items: center; justify-content: space-between; }
.sg-kicker { font-size: var(--fs-foot); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sg-x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); border: 0; }
.sg-name { margin: 6px 0 0; font-size: var(--fs-title); line-height: 1.15; }
.sg-sub { margin: 4px 0 0; color: var(--muted); }
.sg-back { margin: 16px 0; padding: 14px 16px; border-radius: var(--r-card, 18px); background: var(--surface-2); display: grid; gap: 2px; }
.sg-back small { font-size: var(--fs-foot); font-weight: 700; color: var(--muted); }
.sg-time { font-size: 40px; line-height: 1.05; font-weight: 800; }
.sg-left { font-size: var(--fs-row); font-weight: 700; font-variant-numeric: tabular-nums; }
.sg-say { font-size: var(--fs-sub); }
.sg-back.tight { background: var(--warn-soft); color: var(--warn); }
.sg-back.late { background: var(--warn-soft); color: var(--bad, var(--warn)); }
.sg-steps { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 6px; font-size: var(--fs-sub); }
.sg-credit { list-style: none; margin-left: -22px; font-size: var(--fs-cap); color: var(--muted); }
.nw { white-space: nowrap; }
