/* Today's Supply card (SUPPLY_ESTIMATE_ENABLED; supply-card.js). Inside home-v2's .h2-page, so it takes the page's
   glass card, theme tokens and type. Every rule is scoped to .sup-*; with the flag off nothing here matches anything.
   Fixed row heights per shape, so the skeleton and the real card are the same height (rule 3). Lab-scale colours only:
   bronze (healthy), the warning token (at or under the reminder lead), the red token (0-2 days). */
.sup-card { gap: 6px; }
.sup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sup-row { display: flex; flex-direction: column; justify-content: center; gap: 6px; height: 56px; padding: 6px 0; border-top: 1px solid var(--hair, var(--line, rgba(0,0,0,.1))); box-sizing: border-box; }
.sup-row:first-child { border-top: 0; }
.sup-row[data-shape*="q"], .sup-row[data-shape*="s"] { height: 74px; }
.sup-row[data-prompt] { height: 136px; }
.sup-row[data-prompt][data-shape*="q"], .sup-row[data-prompt][data-shape*="s"] { height: 154px; }
.sup-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; height: 20px; }
.sup-name { font-size: 15px; font-weight: 600; line-height: 20px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sup-days { flex: 0 0 auto; font-size: 13.5px; line-height: 20px; color: var(--ink-2, var(--ink)); font-variant-numeric: tabular-nums; }
.sup-meter { display: block; position: relative; height: 6px; border-radius: 999px; background: var(--sand-soft, rgba(122,98,71,.18)); overflow: hidden; }
.sup-meter > i { position: absolute; inset: 0 auto 0 0; width: calc(var(--f, 0) * 100%); border-radius: inherit; background: var(--h2-primary, #7A6247); }
.sup-row[data-tone="warn"] .sup-meter > i { background: var(--warn, #8F5714); }
.sup-row[data-tone="red"] .sup-meter > i { background: var(--red, #B04A3A); }
.sup-row[data-tone="red"] .sup-days { color: var(--red, #B04A3A); }
.sup-tags { display: flex; gap: 8px; height: 16px; align-items: center; }
.sup-q, .sup-auto { font-size: 12px; line-height: 16px; color: var(--sand-text, var(--ink-2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-auto { font: 10.5px/16px var(--h2-label, "Russo One", sans-serif); letter-spacing: .1em; text-transform: uppercase; }
.sup-prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.sup-note { font-size: 13.5px; line-height: 18px; color: var(--ink-2, var(--ink)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: 54px; min-width: 0; }
.sup-pri, html[data-theme] #app.app main .sup-card .sup-pri, html[data-theme] .sup-pop .sup-pri { flex: 0 0 auto; min-height: 44px; min-width: 96px; border-radius: 999px !important; background: var(--h2-primary, var(--primary, #7A6247)) !important; color: var(--h2-on, #FAF8F4) !important; font: 12px/1 var(--h2-label, "Russo One", sans-serif) !important; letter-spacing: .1em !important; text-transform: uppercase !important; padding: 0 18px !important; display: inline-flex; align-items: center; justify-content: center; border: 0 !important; box-shadow: none !important; cursor: pointer; text-decoration: none; }
.sup-pri[disabled] { opacity: .7; cursor: default; }
.sup-all, html[data-theme] #app.app main .sup-card .sup-all { background: none !important; border: 0 !important; box-shadow: none !important; cursor: pointer; padding: 0 !important; font: 11px/1 var(--h2-label, "Russo One", sans-serif) !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--sand-text) !important; min-height: 32px; }
/* Skeleton: the same boxes, quiet fills. */
.sup-sk .sup-name, .sup-sk .sup-days, .sup-sk .sup-q, .sup-sk .sup-note { display: block; height: 12px; border-radius: 6px; background: var(--sand-soft, rgba(122,98,71,.14)); }
.sup-sk .sup-name { width: 46%; } .sup-sk .sup-days { width: 26%; } .sup-sk .sup-q { width: 40%; } .sup-sk .sup-note { width: 60%; }
.sup-sk .sup-pri { opacity: .35; }
/* The popup: fixed over the page, so nothing under it moves (rule 3). */
.sup-pop { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
.sup-scrim { position: absolute; inset: 0; background: rgba(20,14,9,.42); }
.sup-sheet { position: relative; width: min(560px, 100%); max-height: 82vh; overflow: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; background: var(--glass-strong, rgba(250,246,240,.94)); color: var(--ink); border: 1px solid var(--hair, rgba(0,0,0,.1)); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2); box-shadow: var(--shadow, 0 10px 40px rgba(0,0,0,.2)); display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 720px) { .sup-pop { align-items: center; } .sup-sheet { border-radius: 24px; } }
.sup-sh { display: flex; align-items: center; justify-content: space-between; }
.sup-sh .h2-eye { font: 11px/1.2 var(--h2-label, "Russo One", sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--sand-text, var(--ink-2)); }
.sup-done { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--ink-2, var(--ink)); font-size: 15px; cursor: pointer; }
.sup-foot { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-3, var(--ink-2)); }
.sup-sheet > .sup-pri { align-self: flex-end; }
