/* Basqet: the phone's internals (the app screens and sheets the demo engine renders), shared by every phone on the page:
   the hero loop, the scroll story and Try it yourself. Moved out of styles.css on Oct 22, 2026 with the rules unchanged;
   the page's own styles (tokens included) live in styles.css, which loads first. Engine: demo.js. */

/* store chips */
.stc { display: inline-block; font: 700 12px Rubik; padding: 4px 9px; border-radius: 999px; color: #fff; }
.stc.ss { background: var(--ss); } .stc.nf { background: var(--nf); color: #16211B; } .stc.so { background: var(--so); } .stc.wm { background: var(--wm); } .stc.sw { background: var(--sw); } .stc.fc { background: var(--fc); }
.stc.big { font-size: clamp(15px, 1.4vw, 21px); padding: 12px 18px; border-radius: 999px; }
/* the phone frame */
.phone { position: relative; width: 100%; max-width: 360px; aspect-ratio: 360 / 740; border-radius: 48px; background: #0F1512; padding: 12px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 2px #3a4a41, inset 0 1px 0 3px rgba(255,255,255,.06); }
.phone .screen { position: absolute; inset: 12px; border-radius: 38px; overflow: hidden; background: var(--dh-pg); }
/* the Basqet+ badge, everywhere a paid feature appears */
.plus { display: inline-flex; align-items: center; font: 800 9px Rubik; letter-spacing: .04em; color: var(--fg-brand); background: var(--mint); padding: 1px 6px; border-radius: 999px; line-height: 1.5; vertical-align: 1px; font-style: normal; white-space: nowrap; }
.band .plus, .scr .bar .plus, .scr .shopact .plus { background: var(--mint); color: var(--forest); }
.scr .barhd .plus { margin-right: 4px; }
.scr .sh .plus { margin-left: 8px; }
/* ---------- part 2: the demo phone's internals (the hands-on demo screen) ---------- */

.scr { position: absolute; inset: 0; background: var(--dh-pg); color: var(--ink); font-family: Figtree, system-ui, sans-serif; overflow: hidden; display: flex; flex-direction: column; border-radius: inherit; text-align: left; }
.scr.inert { pointer-events: none; }
.scr > * { flex: none; }
.scr .body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 8px; scrollbar-width: none; }
.scr .body::-webkit-scrollbar { display: none; }
.scr button { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; transition: transform .08s ease-out, opacity .08s ease-out; }
.scr button:active { transform: scale(.96); opacity: .85; }
/* swipes on the phone only ever scroll the phone: scrollers contain, everything else swallows the pan */
.scr { touch-action: none; }
.scr .body, .scr .svscroll, .scr .finish { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.scr .pressed { transform: scale(.94) !important; transition: transform .12s !important; }
.scr .status { display: flex; justify-content: space-between; align-items: center; padding: 10px 22px 0; font: 700 15px Rubik; font-variant-numeric: tabular-nums; }
.scr .status .isl { width: 96px; height: 26px; border-radius: 20px; background: #16211B; }
.scr .status .ico { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.scr .ahd { display: flex; align-items: flex-start; justify-content: space-between; padding: 8px 16px 0; }
.scr .lname { font: 800 22px/1.1 Rubik; letter-spacing: -.02em; display: flex; align-items: center; gap: 4px; min-height: 30px; }
.scr .lname svg { color: var(--muted); }
.scr .ahd small { display: block; font: 500 13px Figtree; color: var(--muted); margin-top: 2px; }
.scr .pill { font: 700 13px Figtree; padding: 0 12px; min-height: 32px; border-radius: 999px; background: var(--soft); }
/* the Q goal: a slider with a floor on every stop; the thumb is the Q badge */
.scr .gbar { margin: 6px 10px 10px; background: var(--fill); color: var(--fill-ink); border-radius: 16px; padding: 9px 12px 10px; box-shadow: 0 12px 30px -12px rgba(29,74,52,.6); display: grid; gap: 7px; }
.scr .goal { position: relative; display: grid; gap: 2px; --gtrack: rgba(255,255,255,.18); --gtick: #2F6B4B; --gring: var(--forest); --glab: #BFD6C6; --gname: #F5F1E8; --gcur: var(--mint); --gstop: #A8C4B2; }
.scr .sheet .goal { --gtrack: var(--sand); --gtick: var(--line); --gring: var(--paper); --glab: var(--body); --gname: var(--forest); --gcur: var(--forest); --gstop: var(--muted); margin-bottom: 8px; flex: none; }
.scr .ghd { display: flex; justify-content: space-between; align-items: center; font: 600 12px Figtree; color: var(--glab); min-height: 20px; }
.scr .ghd label { display: inline-flex; align-items: center; gap: 6px; }
.scr .ghd b { font: 800 13px Rubik; color: var(--gname); }
.scr .ghd b em { font: 700 12px Figtree; font-style: normal; color: var(--gcur); margin-left: 2px; }
.scr .ghd .plus { background: rgba(127,224,166,.18); color: var(--mint); } .scr .sheet .ghd .plus { background: var(--mint); color: var(--forest); }
.scr .gslider { position: relative; height: 40px; margin: 0 17px; }
.scr .gtrack { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--gtrack); }
.scr .gfill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 3px; background: var(--gcur); transform-origin: 0 50%; transform: scaleX(calc(var(--i, 0) / 4)); transition: transform .4s var(--ease-out); }
.scr .gtick { position: absolute; top: 50%; left: calc(var(--i) * 25%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gtick); box-shadow: 0 0 0 2px var(--gring); }
.scr .gtick.on { background: var(--gcur); }
.scr .gthumb { position: absolute; inset: 0; transform: translateX(calc(var(--i, 0) * 25%)); transition: transform .4s var(--ease-out); will-change: transform; pointer-events: none; }
.scr .gth { position: absolute; left: -17px; top: 3px; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(0,0,0,.6), 0 0 0 2px var(--gcur); }
.scr .gth .qb { gap: 0; } .scr .gth .qb b { display: none; }
.scr .goal.bump .gth { animation: thumbBump .45s var(--ease-pop); }
@keyframes thumbBump { 0% { transform: scale(1); } 50% { transform: scale(1.14); } 100% { transform: scale(1); } }
.scr .range { position: absolute; left: -17px; top: 0; width: calc(100% + 34px); height: 40px; margin: 0; opacity: 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; touch-action: none; }
.scr .range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 40px; }
.scr .range::-moz-range-thumb { width: 34px; height: 40px; border: 0; }
.scr .gslider:focus-within .gth { box-shadow: 0 0 0 3px var(--yellow); }
.scr .gstops { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 2px; }
.scr .gstops button { display: grid; justify-items: center; text-align: center; font: 700 12px Figtree; color: var(--gstop); min-height: 30px; align-content: start; line-height: 1.15; }
.scr .gstops button small { font: 600 12px/1.1 Figtree; opacity: .85; white-space: normal; max-width: 62px; }
.scr .gstops button.cur { color: var(--gcur); }
.scr .gstops button:first-child { justify-items: start; text-align: left; } .scr .gstops button:last-child { justify-items: end; text-align: right; }
.scr .goal .chg { position: absolute; right: 0; top: -2px; margin: 0; z-index: 1; }
.scr .sheet .goal .chg { background: var(--fill); color: var(--fill-ink); }
.scr .abtn.find { background: var(--mint); color: var(--forest); min-height: 46px; font-size: 15px; gap: 8px; }
.scr .abtn.find .plus { background: var(--forest); color: var(--mint); }
.scr .chev { color: var(--muted); display: inline-flex; transition: transform .25s; }
.scr .chev.col { transform: rotate(-90deg); }
.scr .srch { margin: 6px 12px 0; display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 13px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); position: relative; }
.scr .srch:focus-within, .scr .srch.has { box-shadow: inset 0 0 0 2px var(--fg-brand); }
.scr .srch i { width: 32px; height: 32px; border-radius: 9px; background: var(--fill); color: var(--fill-ink); display: grid; place-items: center; flex: none; }
.scr .srch input { flex: 1; min-width: 0; border: 0; background: none; font: 600 15px Figtree; color: var(--ink); min-height: 32px; outline: none; }
.scr .srch input::placeholder { color: var(--muted); font-weight: 500; }
.scr .caret { position: absolute; left: 0; top: 11px; width: 2px; height: 20px; background: var(--forest); animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: 0; } }
.scr .results:empty { display: none; }
.scr .drop { margin: 6px 12px 2px; padding: 8px 10px; border-radius: 13px; background: var(--paper); box-shadow: 0 10px 30px -12px rgba(22,33,27,.3), 0 0 0 1px var(--sand); }
.scr .drop > small { display: block; font: 600 12px Figtree; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.scr .dropin { display: flex; flex-wrap: wrap; gap: 6px; }
.scr .rchip { display: inline-flex; flex-direction: column; padding: 6px 11px; border-radius: 11px; font: 700 13px Figtree; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); min-height: 42px; justify-content: center; }
.scr .rchip.hl { background: var(--fill); color: var(--fill-ink); box-shadow: none; }
.scr .rchip em { font: 500 12px Figtree; font-style: normal; opacity: .8; }
.scr .rnote { display: inline-flex; flex-direction: column; padding: 6px 11px; border-radius: 11px; font: 700 13px Figtree; border: 1.5px dashed var(--line); min-height: 42px; justify-content: center; }
.scr .rnote em { font: 500 12px Figtree; font-style: normal; color: var(--muted); }
.scr .chips { display: flex; gap: 6px; padding: 7px 12px 2px; overflow-x: auto; scrollbar-width: none; align-items: center; touch-action: pan-x; overscroll-behavior-x: contain; }
.scr .chips::-webkit-scrollbar { display: none; }
.scr .hist { color: var(--muted); display: inline-flex; flex: none; }
.scr .qc { white-space: nowrap; font: 600 13px Figtree; padding: 0 10px; min-height: 32px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--paper); flex: none; }
.scr .qc.on { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--dh-sage-2); color: var(--fg-brand); }
.scr .sec { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 3px; font: 800 12px Figtree; letter-spacing: .06em; text-transform: uppercase; color: var(--body); }
.scr .sec em { font-style: normal; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.scr .rows { list-style: none; margin: 0 10px; padding: 0; background: var(--paper); border: 1px solid var(--sand); border-radius: 14px; overflow: hidden; }
.scr .lrow { display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 2px; border-top: 1px solid var(--hair); min-height: 42px; }
.scr .lrow:first-child { border-top: 0; }
.scr .lrow.land { animation: land .5s var(--ease-pop) both; }
.scr .lrow.clearing { animation: clearout .32s var(--ease-out) both; }
@keyframes clearout { to { opacity: 0; transform: translateX(-24px); } }
.scr .lrow.clearing:nth-child(2) { animation-delay: 30ms; } .scr .lrow.clearing:nth-child(3) { animation-delay: 60ms; } .scr .lrow.clearing:nth-child(4) { animation-delay: 90ms; }
@keyframes land { 0% { opacity: 0; transform: translateY(-18px) scale(.96); } 60% { opacity: 1; transform: translateY(3px) scale(1.01); } 100% { transform: none; } }
.scr .lrow.done .nm > b { color: var(--muted); }
.scr .cbw { width: 38px; height: 38px; display: grid; place-items: center; flex: none; }
.scr .cb { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--muted); background: var(--paper); display: grid; place-items: center; color: var(--fill-ink); transition: background .2s, border-color .2s; overflow: visible; }
.scr .cb.done { background: var(--fill); border-color: var(--fill); }
.scr .cb.stamped { animation: boxpop .45s var(--ease-pop); }
.scr .cb.stamped .mk { animation: stampin .42s var(--ease-pop) both; }
@keyframes boxpop { 0% { transform: scale(1); } 45% { transform: scale(1.14, .9); } 100% { transform: scale(1); } }
@keyframes stampin { 0% { transform: scale(2.1) rotate(-14deg); opacity: 0; } 55% { transform: scale(.92) rotate(2deg); opacity: 1; } 100% { transform: none; } }
.scr .minus { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.scr .minus i { width: 22px; height: 22px; border-radius: 50%; background: var(--ss); position: relative; }
.scr .minus i:after { content: ""; position: absolute; left: 5px; right: 5px; top: 10px; height: 2.5px; background: var(--paper); border-radius: 2px; }
.scr .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.scr .nm1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.scr .nm1 > b, .scr .nmb { font: 800 15px Figtree; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; min-height: 30px; display: inline-flex; align-items: center; }
.scr .nmb { flex: 0 1 auto; }
.scr .lrow.done .nmb { color: var(--muted); }
.scr .nm .pl { display: block; font: 500 12px Figtree; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .nm .pl b { font: 700 12px Figtree; color: var(--fg-green); font-variant-numeric: tabular-nums; }
.scr .lrow { min-height: 50px; }
.scr .nm .pl em { font-style: normal; color: var(--muted); }
.scr .nm .pl.flip { animation: flip .5s var(--ease-out); }
/* the change chip after a level switch */
.scr .chg { display: inline-flex; gap: 4px; margin: 0 2px 6px; font: 600 12px Figtree; color: var(--fg-brand); background: var(--tint); border-radius: 999px; padding: 3px 9px; }
.scr .chg b { font: 800 12px Rubik; font-variant-numeric: tabular-nums; }
.scr .top3 > li { transition: transform .45s var(--ease-out); will-change: transform; }
/* setting icons: one per setting the person put on the item */
.scr .sets { display: inline-flex; gap: 3px; flex: none; }
.scr .si { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--fg-brand); flex: none; }
.scr .si svg { width: 13px; height: 13px; }
.scr .si.add { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); border-style: dashed; }
.scr .si.add svg { width: 11px; height: 11px; }
.scr .sets.snap .si:not(.add) { animation: snap .5s var(--ease-pop) both; }
.scr .tchip { flex: none; font: 600 12px Figtree; color: var(--muted); padding: 2px 7px; min-height: 22px; border-radius: 999px; border: 1.5px dashed var(--line); }
.scr .tchip.on { background: var(--tint); color: var(--fg-brand); border: 1.5px solid var(--tint); font-weight: 700; }
.scr .tchip.nt { border-style: solid; border-color: transparent; background: var(--soft); }
@keyframes snap { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: none; } }
.scr .dots { display: inline-flex; gap: 3px; flex: none; margin-top: 4px; }
.scr .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--muted); }
.scr .dot svg { width: 12px; height: 12px; }
.scr .dot.up { background: var(--green); } .scr .dot.swap { background: #1D63C4; } .scr .dot.sale, .scr .dot.drop { background: var(--ss); }
.scr .stepper { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.scr .stepper button { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--fg-brand); font: 800 17px Rubik; display: grid; place-items: center; }
.scr .stepper b { font: 800 13px Rubik; min-width: 14px; text-align: center; }
.scr .qty { font: 700 12px Rubik; color: var(--muted); background: var(--soft); padding: 0 5px; min-height: 22px; border-radius: 6px; flex: none; display: inline-grid; place-items: center; }
.scr .qty.many { color: var(--ink); font-weight: 800; background: var(--tint); }
/* the Q badge: a whole letter Q at every score; the fill inside is the score */
.qb { position: relative; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.qb svg { width: var(--s); height: var(--s); overflow: visible; flex: none; }
.qb .qo { fill: none; stroke: currentColor; stroke-width: 11; }
.qb .qtl { fill: none; stroke: currentColor; stroke-width: 12; stroke-linecap: round; }
.qb .qfl { fill: currentColor; }
.qb b { font: 800 12.5px Rubik; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 22px; }
.scr .empty { text-align: center; padding: 40px 20px; color: var(--body); }
.scr .empty span { display: inline-flex; color: var(--muted); }
.scr .empty b { display: block; font: 800 17px Figtree; margin-top: 8px; }
.scr .empty small { display: block; font: 500 13px Figtree; color: var(--muted); margin-top: 4px; }
.scr .foot { margin: 6px 10px 0; display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 12px; background: var(--tint); font: 700 13px Figtree; color: var(--fg-brand); min-height: 44px; }
.scr .foot.quiet { background: var(--soft); color: var(--body); justify-content: center; }
.scr .abtn { background: var(--fill); color: var(--fill-ink); font: 800 15px Rubik; padding: 0 16px; min-height: 48px; border-radius: 13px; width: 100%; text-align: center; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s var(--ease-pop); }
.scr .abtn:active { transform: scale(.97); }
.scr .abtn.sm { width: auto; font-size: 13px; min-height: 34px; padding: 0 12px; border-radius: 9px; }
.scr .toast { position: absolute; left: 12px; right: 12px; bottom: 124px; background: var(--inkfill); color: #F5F1E8; padding: 10px 12px; border-radius: 12px; font: 600 13px/1.35 Figtree; display: flex; align-items: center; justify-content: space-between; gap: 10px; z-index: 12; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.scr .toast button { color: var(--mint); font: 800 13px Rubik; letter-spacing: .06em; min-height: 30px; padding: 0 6px; flex: none; }
/* the verdict: top 3 stores at this level, always. Tap one for its list. */
.scr .bar { margin: 6px 10px 10px; background: var(--fill); color: var(--fill-ink); border-radius: 15px; padding: 8px 6px 6px 10px; box-shadow: 0 12px 30px -12px rgba(29,74,52,.6); }
.scr .barhd { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 12px Figtree; color: #BFD6C6; margin: 0 4px 4px 0; }
.scr .barhd b { font: 800 13px Rubik; color: #F5F1E8; }
.scr .barhd b em { font: 700 12px Figtree; font-style: normal; color: var(--mint); margin-left: 2px; }
.scr .top3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.scr .t3 { width: 100%; display: grid; grid-template-columns: 74px 1fr auto 16px; align-items: center; gap: 8px; min-height: 28px; padding: 2px 0 2px 4px; margin-left: -4px; border-radius: 9px; transition: background .2s, transform .2s var(--ease-pop); color: inherit; }
.scr .t3:active { transform: scale(.985); }
.scr .t3.best { background: rgba(127,224,166,.12); }
.scr .t3v { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.scr .t3 .stc { font-size: 12px; padding: 2px 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .t3track { height: 9px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; }
.scr .t3bar { display: block; height: 100%; width: 100%; border-radius: 5px; background: rgba(245,241,232,.45); transform-origin: 0 50%; transform: scaleX(var(--w, 1)); transition: transform .55s var(--ease-out); will-change: transform; }
.scr .t3.best .t3bar { background: var(--mint); box-shadow: 0 0 10px rgba(127,224,166,.5); }
.scr .t3 b { font: 800 13px Rubik; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.scr .t3.best b { color: var(--mint); }
.scr .t3 small { font: 600 12px Figtree; color: #BFD6C6; }
.scr .t3 .chev.r { transform: rotate(-90deg); color: #BFD6C6; }
.scr .t3.best .chev.r { color: var(--mint); }
/* shop mode: running total */
.scr .bar.shop { padding: 10px 12px 10px; }
.scr .bar.shop .barhd { margin: 0; align-items: flex-start; }
.scr .run { text-align: right; }
.scr .run small { display: block; font: 600 12px Figtree; letter-spacing: .08em; text-transform: uppercase; color: #BFD6C6; }
.scr .run b { display: block; font: 800 22px Rubik; color: var(--mint); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.scr .shopact { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.scr .shopact .quiet { font: 600 13px Figtree; color: #BFD6C6; }
.scr .lnk { font: 700 13px Figtree; color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 3px; min-height: 34px; padding: 0 4px; }
.scr .moved { animation: numGlow .7s var(--ease-out); }
@keyframes numGlow { 0% { color: var(--mint); } 100% { } }
.scr .stc { display: inline-block; font: 700 12px Rubik; padding: 3px 7px; border-radius: 999px; vertical-align: 1px; }
.stc2 { display: inline-grid; grid-auto-flow: column; gap: 3px; justify-items: start; align-items: center; }
.stc2 .stc { font-size: 9px !important; padding: 2px 6px !important; line-height: 1.3; white-space: nowrap; }
.scr .t3.sp { grid-template-columns: auto 1fr auto 16px; }
.scr .t3.sp .t3track { min-width: 40px; }
.scr .t3note { grid-column: 1 / -1; font: 600 12px Figtree; color: #BFD6C6; margin: -2px 0 2px; }
.scr .t3track { position: relative; }
.scr .t3c { display: inline-flex; gap: 4px; align-items: center; }
.scr .t3 .usual { font: 800 12px Rubik; font-style: normal; letter-spacing: .08em; text-transform: uppercase; background: var(--yellow); color: #16211B; padding: 1px 5px; border-radius: 999px; line-height: 1.3; }
.scr .t3 .usual.sp { background: var(--paper); color: var(--fg-brand); }
.scr .barusual { display: block; width: 100%; margin-top: 6px; padding: 5px 6px; border-top: 1px solid rgba(255,255,255,.14); font: 600 12px Figtree; color: #BFD6C6; text-align: left; }
.scr .barusual b { color: #FFFDF8; font: 800 12px Rubik; }
.scr .sec.sto { display: flex; padding: 8px 16px 3px; }
.scr .dim { position: absolute; inset: 0; background: var(--dim); z-index: 8; animation: fade .3s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.scr .menu { position: absolute; left: 16px; top: 56px; z-index: 9; background: var(--paper); border-radius: 14px; padding: 8px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4), 0 0 0 1px var(--sand); min-width: 210px; }
.scr .menu > b { display: block; font: 700 12px Figtree; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; }
.scr .menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 12px; min-height: 42px; border-radius: 10px; font: 700 15px Figtree; color: var(--ink); } /* the panel is white in both modes */
.scr .menu button.on { background: var(--tint); color: var(--fg-brand); }
.scr .menu button small { font: 500 13px Figtree; color: var(--muted); }
/* Share this list (Nov 8): an ordinary row, last, under a hairline: a 20 px icon, the label, Free as a small grey pill where the counts sit */
.scr .menu .msep { display: block; height: 1px; margin: 4px 6px; background: var(--sand); }
.scr .menu button.shl { justify-content: flex-start; gap: 10px; font-weight: 600; color: var(--ink); }
.scr .menu .shl .ic { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; color: var(--fg-brand); flex: none; }
.scr .menu .shl .ic svg { width: 20px; height: 20px; }
.scr .menu .shl .pillf { margin-left: auto; font: 600 12px/1 Figtree; color: var(--muted); background: var(--soft); padding: 4px 8px; border-radius: 999px; }
.scr .sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; background: var(--sheet); border-radius: 24px 24px 0 0; padding: 8px 14px 14px; box-shadow: 0 -20px 50px -20px rgba(0,0,0,.4); max-height: 92%; display: flex; flex-direction: column; touch-action: none; }
.scr .sheet.rise, .scr .receipt.rise { animation: sheetUp .4s var(--ease-out) both; }
@keyframes sheetUp { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.scr .handle { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 8px; flex: none; }
.scr .sh { display: flex; justify-content: space-between; align-items: center; font: 800 17px Rubik; margin-bottom: 8px; flex: none; }
.scr .sh .x { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--body); }
.scr .shsub { display: block; font: 500 13px Figtree; color: var(--muted); margin: -4px 0 10px; }
.scr .opts { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; padding-bottom: 12px; flex: none; }
.scr .opts button { display: inline-flex; align-items: center; gap: 7px; font: 700 15px Figtree; padding: 0 14px 0 8px; min-height: 42px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); transition: transform .15s var(--ease-pop), background .15s; }
.scr .opts button svg { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--tint); color: var(--fg-brand); flex: none; }
.scr .opts button.on { background: var(--fill); color: var(--fill-ink); border-color: var(--fg-brand); }
.scr .opts button.on svg { background: rgba(255,255,255,.18); color: #F5F1E8; }
.scr .opts button.none { opacity: .5; cursor: default; }
.scr .opts button small { font: 600 12px Figtree; color: var(--muted); }
.scr .sh b span { font: 700 13px Figtree; color: var(--body); margin-left: 4px; }
.scr .svscroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px; }
.scr .svscroll::-webkit-scrollbar { display: none; }
.scr .swp { display: inline-flex; align-items: center; gap: 4px; font: 700 12px Figtree; color: var(--fg-brand); background: var(--tint); padding: 0 8px; min-height: 24px; border-radius: 999px; }
.scr .swp em { font: 800 12px Rubik; font-style: normal; background: var(--paper); color: var(--fg-brand); padding: 0 5px; border-radius: 999px; min-width: 16px; text-align: center; line-height: 16px; }
.scr .swp.on { background: var(--fill); color: var(--fill-ink); }
.scr .swp.did { background: #1D63C4; color: #fff; } .scr .swp.did em { color: #1D63C4; }
.scr .only { font: 600 12px Figtree; color: var(--muted); }
.scr .svrow.flip { animation: flip .5s var(--ease-out); }
@keyframes flip { 0% { background: var(--tint); } 100% { background: transparent; } }
.scr .svexp { display: block; background: var(--cream); border-top: 1px solid var(--hair); }
.scr .svexpin { padding: 7px 8px; transition: opacity .15s linear; }
.scr .svexp.closing .svexpin { opacity: 0; }
.scr .svexp small:first-child { display: block; font: 700 12px Figtree; color: var(--body); margin-bottom: 5px; }
.scr .opt .stc { flex: none; font-size: 12px; padding: 2px 6px; }
.scr .opt { display: flex; align-items: center; gap: 8px; background: var(--paper); border-top: 3px solid var(--fg-brand); border-radius: 10px; padding: 6px 8px; margin-top: 5px; font: 700 13px Figtree; width: 100%; min-height: 46px; animation: rise .28s var(--ease-out) both; }
.scr .opt .onm { flex: 1; min-width: 0; }
.scr .opt .onm b { font-weight: 800; display: block; line-height: 1.2; }
.scr .opt .onm small { display: block; font: 500 12px/1.3 Figtree; color: var(--muted); margin-top: 2px; }
.scr .opt > b { font: 800 13px Rubik; flex: none; }
.scr .opt em { flex: none; font: 800 12px Rubik; font-style: normal; background: var(--tint); color: var(--fg-brand); padding: 2px 6px; border-radius: 999px; }
.scr .opt.cur { box-shadow: 0 0 0 2px var(--forest); }
.scr .opt.low { opacity: .7; }
.scr .unpin { display: block; margin: 8px auto 2px; font: 700 13px Figtree; color: var(--fg-green); min-height: 34px; text-decoration: underline; text-underline-offset: 3px; }
.scr .svfoot { padding-top: 10px; flex: none; display: grid; gap: 6px; justify-items: center; }
.scr .svhint { font: 500 12px Figtree; color: var(--muted); text-align: center; }
.scr .abtn.go { background: var(--mint); color: var(--forest); }
.scr .svfoot .lnk { color: var(--fg-green); opacity: 1; }
.scr .receipt { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; justify-content: center; padding: 16px; gap: 12px; }
/* the finish screen: usual store vs Basqet's pick, example prices */
.scr .finish { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; justify-content: flex-start; padding: 14px 12px; overflow-y: auto; scrollbar-width: none; }
.scr .finish::-webkit-scrollbar { display: none; }
.scr .fcard2 { background: var(--paper); border-radius: 22px; padding: 18px 16px 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); display: grid; gap: 9px; justify-items: start; margin: auto 0; }
.scr .fchips { display: flex; align-items: center; gap: 8px; }
.scr .fchips .arrow { font-style: normal; color: var(--muted); font-weight: 700; }
.scr .fhead { font: 800 20px/1.15 Rubik; letter-spacing: -.02em; }
.scr .fline { font: 500 15px/1.4 Figtree; color: var(--body); }
.scr .fline b { color: var(--fg-green); font-weight: 800; font-variant-numeric: tabular-nums; }
.scr .fyear { font-size: 13px; margin-top: -3px; }
.scr .fyear .fict { display: inline-block; font: 700 12px/1.6 Figtree; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--sand); padding: 0 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.scr .fnote { font: 500 12px/1.4 Figtree; color: var(--muted); }
.scr .fq { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--tint); width: 100%; }
.scr .fq .qb { --s: 44px !important; gap: 0; }
.scr .fq .qb b { display: none; }
.scr .fq > span b { display: block; font: 800 15px Rubik; }
.scr .fq > span small { display: block; font: 600 12px Figtree; color: var(--body); }
.scr .fq .share { margin-left: auto; flex: none; font: 800 13px Rubik; color: var(--fg-brand); background: var(--paper); border: 1.5px solid var(--fg-brand); border-radius: 999px; min-height: 32px; padding: 0 12px; }
.scr .fform { width: 100%; flex-direction: column; gap: 6px; margin-top: 2px; }
.scr .fform input { min-height: 44px; font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--line); }
.scr .fform .abtn { min-height: 44px; font-size: 15px; }
.scr .fcard2 .fnote b { color: var(--fg-green); }
.scr .fcard2 .fnote.msg { color: var(--ink); font-weight: 700; }
.scr .fcard2 .lnk { justify-self: center; color: var(--fg-green); opacity: 1; }
.scr .flinks { display: flex; gap: 18px; justify-self: center; }
/* where do you usually shop? */
.scr .sheet.usual { touch-action: auto; }
.scr .opts.storepick button { background: var(--c); color: var(--i); border-color: transparent; font: 800 15px Rubik; padding: 0 16px; }
.scr .opts.storepick button.on { box-shadow: 0 0 0 3px var(--ink); }
.scr .abtn[disabled] { opacity: .45; cursor: default; }
.scr .abtn.sm.go { background: var(--mint); color: var(--forest); font-size: 15px; min-height: 38px; padding: 0 16px; }
.scr .paper { background: var(--paper); color: var(--ink); padding: 16px 14px 20px; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); font: 600 13px/1.4 Figtree; position: relative; max-height: 100%; overflow: hidden; }
.scr .paper:after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px -2px, transparent 6px, var(--paper) 6.5px) left/12px 8px repeat-x; }
.scr .paper .rs { display: block; font: 800 17px Rubik; }
.scr .paper > small { display: block; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.scr .pline { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--sand); animation: rise .3s var(--ease-out) both; font-variant-numeric: tabular-nums; }
.scr .pline span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .ptot { display: flex; justify-content: space-between; margin-top: 10px; font: 800 13px Rubik; letter-spacing: .04em; }
.scr .ptot.sm { font-size: 12px; color: var(--body); margin-top: 6px; }
.scr .pnote { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 8px; }
.scr .stamp { position: absolute; right: 14px; bottom: 30px; border: 3px solid var(--fg-green); color: var(--fg-green); border-radius: 10px; padding: 6px 12px; font: 800 12px Rubik; letter-spacing: .12em; rotate: -8deg; animation: slam .5s var(--ease-pop) both; text-align: center; }
.scr .stamp b { display: block; font-size: 20px; letter-spacing: -.02em; }
@keyframes slam { from { opacity: 0; scale: 1.8; } to { opacity: 1; scale: 1; } }
.rise { animation: rise .35s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pop { animation: popin .5s var(--ease-pop) both; }
@keyframes popin { from { opacity: 0; transform: scale(.9) translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .scr *, .rise, .pop, .qb .qfl { animation: none !important; transition: none !important; } }

/* ---------- round 9 additions ---------- */
/* the top 3 sheet, on paper */
.scr .sheet.top3s { max-height: 95%; }
.scr .pitch { font: 600 13px/1.35 Figtree; color: var(--body); margin: -2px 0 10px; flex: none; }
.scr .top3.big { gap: 5px; flex: none; }
.scr .top3.big .t3 { grid-template-columns: minmax(84px, auto) 1fr auto 16px; min-height: 46px; padding: 5px 4px 5px 8px; margin: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--sand); color: var(--ink); }
.scr .top3.big .t3c { flex-wrap: wrap; max-width: 132px; }
.scr .top3.big .t3 .stc { font-size: 12px; }
.scr .top3.big .t3track { background: var(--sand); height: 8px; min-width: 34px; }
.scr .top3.big .t3bar { background: var(--dh-sage-2); box-shadow: none; }
.scr .top3.big .t3.best { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--fg-brand); }
.scr .top3.big .t3.best .t3bar { background: var(--forest); box-shadow: none; }
.scr .top3.big .t3 b { font-size: 15px; min-width: 40px; color: var(--ink); }
.scr .top3.big .t3.best b { color: var(--fg-brand); }
.scr .top3.big .t3 small { color: var(--muted); font-size: 12px; }
.scr .top3.big .t3 .chev.r { color: var(--muted); } .scr .top3.big .t3.best .chev.r { color: var(--fg-brand); }
.scr .top3.big .t3note { color: var(--muted); }
.scr .t3 .bt { font: 800 12px Rubik; font-style: normal; letter-spacing: .08em; text-transform: uppercase; background: var(--fill); color: var(--fill-ink); padding: 1px 5px; border-radius: 999px; line-height: 1.3; }
.scr .shsub.how { margin: 10px 0 4px; flex: none; }
.scr .disc { display: block; font: 500 12px/1.35 Figtree; color: var(--muted); flex: none; }
/* the store list: Best pick per item, More options folded under it */
.scr .more { display: inline-flex; align-items: center; gap: 4px; font: 700 12px Figtree; color: var(--fg-brand); background: var(--tint); padding: 0 6px 0 8px; min-height: 24px; border-radius: 999px; white-space: nowrap; }
.scr .more em { font: 800 12px Rubik; font-style: normal; background: var(--paper); color: var(--fg-brand); padding: 0 5px; border-radius: 999px; min-width: 14px; text-align: center; line-height: 15px; }
.scr .more svg { transition: transform .25s var(--ease-out); width: 13px; height: 13px; }
.scr .more.on { background: var(--fill); color: var(--fill-ink); } .scr .more.on svg { transform: rotate(180deg); }
.scr .opt .dir { flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; width: 46px; font: 800 12px Rubik; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-brand); }
.scr .opt .dir svg { width: 15px; height: 15px; }
.scr .opt.save { border-top-color: #1D63C4; } .scr .opt.save .dir { color: #1D63C4; }
.scr .opt.both { border-top-color: var(--mint); }
.scr .opt.other { border-top-color: var(--muted); } .scr .opt.other .dir { color: var(--muted); }
.scr .opt .op { font: 800 13px Rubik; flex: none; font-variant-numeric: tabular-nums; }
.scr .opt .qb { --s: 18px !important; gap: 3px; } .scr .opt .qb b { font-size: 12px; min-width: 0; }
.scr .lowtag { display: inline-block; font: 700 12px Figtree; color: var(--dh-gold); background: var(--soft); padding: 1px 6px; border-radius: 999px; margin-top: 3px; font-style: normal; }
.scr .svrow.picked { animation: picked .8s var(--ease-out); }
@keyframes picked { 0% { background: var(--tint); } 100% { background: transparent; } }
.scr .svrow.picked .bp, .scr .svrow.picked .pr > b { animation: textin .35s var(--ease-out) both; }
.scr .lnk.back { color: var(--fg-green); opacity: 1; font-size: 13px; min-height: 28px; }
.scr .svexpin .lnk.back { display: block; margin: 6px auto 0; }
/* why this Q */
.scr .sheet.why { max-height: 72%; }
.scr .whyhd { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex: none; }
/* the score beside its badge (Oct 26): "9.0 · Organic. One ingredient. Nothing added." */
.scr .whyhd .qb { --s: 48px !important; gap: 6px; flex: none; } .scr .whyhd .qb b { display: inline; font-size: 22px; min-width: 0; }
.scr .whyhd > div { flex: 1; min-width: 0; }
.scr .whyhd b { display: block; font: 800 17px/1.2 Rubik; }
.scr .whyhd small { display: block; font: 500 13px Figtree; color: var(--muted); margin-top: 2px; }
.scr .reasons { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; overflow-y: auto; min-height: 0; }
.scr .reasons li { display: flex; align-items: center; gap: 9px; font: 700 15px Figtree; padding: 9px 11px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--sand); }
.scr .reasons li:before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.scr .reasons li.bad:before { background: var(--ss); }
.scr .qbw { display: inline-flex; flex: none; padding: 4px; margin: -4px; border-radius: 10px; }
/* settings sheet: the toggle pops */
.scr .opts button:active { transform: scale(.96); }
.scr .opts button.pop { animation: optpop .45s var(--ease-pop); }
@keyframes optpop { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
/* the live line: Basqet's pick vs your store, for the list so far */
.scr .vs { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font: 600 12px Figtree; color: #BFD6C6; margin: -1px 0 2px; min-height: 18px; }
.scr .vs .vsl { white-space: nowrap; }
.scr .vs .vsm { font: 800 13px Rubik; color: var(--mint); font-variant-numeric: tabular-nums; }
.scr .vs .vsm.more { color: #F5F1E8; }
.scr .vs .vsq { font: 800 12px Rubik; font-style: normal; color: #F5F1E8; background: rgba(255,255,255,.12); padding: 1px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.scr .vs .vsq.down { background: rgba(210,54,60,.35); }
.scr .vs .moved { animation: numGlow .7s var(--ease-out); }
/* the bottom bar, compact: a slim slider, small stop labels, the button right under, tight to the screen edge */
.scr .gbar { margin: 4px 8px 6px; padding: 5px 10px 7px; gap: 3px; border-radius: 14px; }
.scr .vs { margin: 0; min-height: 15px; font-size: 12px; gap: 5px; }
.scr .vs .vsm { font-size: 13px; } .scr .vs .vsq { font-size: 12px; padding: 0 6px; }
.scr .goal { gap: 0; }
.scr .ghd { font-size: 12px; min-height: 16px; }
.scr .ghd b { font-size: 12px; } .scr .ghd b em { font-size: 12px; }
.scr .ghd .plus { font-size: 12px; padding: 0 5px; }
.scr .gslider { height: 30px; margin: 0 13px; }
.scr .gtrack { height: 4px; margin-top: -2px; }
.scr .gtick { width: 8px; height: 8px; margin: -4px 0 0 -4px; box-shadow: 0 0 0 1.5px var(--gring); }
.scr .gth { left: -13px; top: 2px; width: 26px; height: 26px; box-shadow: 0 4px 10px -5px rgba(0,0,0,.6), 0 0 0 1.5px var(--gcur); }
.scr .gth .qb { --s: 18px !important; }
.scr .range { left: -13px; width: calc(100% + 26px); top: -7px; height: 44px; }
.scr .range::-webkit-slider-thumb { width: 26px; height: 44px; }
.scr .range::-moz-range-thumb { width: 26px; height: 44px; }
.scr .gstops { margin: -2px 0 0; }
.scr .gstops button { min-height: 22px; font-size: 12px; line-height: 1.05; padding: 2px 0 0; }
.scr .gstops button small { font-size: 12px; max-width: 54px; }
.scr .goal .chg { top: -1px; font-size: 12px; padding: 2px 8px; }
.scr .abtn.find { min-height: 44px; font-size: 15px; border-radius: 11px; margin-top: 2px; }
.scr .abtn.find .plus { font-size: 12px; }
.scr .sheet .goal { margin-bottom: 4px; }
/* one tap band for the whole control: the slider's hit area covers the stop labels too, so every tap is 44px+ and lands on the range */
.scr .gslider { z-index: 1; }
.scr .range { top: -7px; height: 62px; }
.scr .range::-webkit-slider-thumb { height: 62px; }
.scr .range::-moz-range-thumb { height: 62px; }
.scr .gstops { pointer-events: none; position: relative; }
/* the bottom bar: the live line, a clear slider with readable stop names, a tall button: about 120px */
.scr .gbar { padding: 5px 8px 7px; gap: 2px; }
.scr .gmain { display: grid; gap: 0; }
.scr .goal.compact .gslider { height: 34px; margin: 0 15px; }
.scr .goal.compact .gtrack { height: 6px; margin-top: -3px; }
.scr .goal.compact .gtick { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.scr .goal.compact .gth { left: -16px; top: 1px; width: 32px; height: 32px; }
.scr .goal.compact .gth .qb { --s: 22px !important; }
.scr .goal.compact .range { left: -16px; width: calc(100% + 32px); top: -6px; height: 56px; }
.scr .goal.compact .range::-webkit-slider-thumb { width: 32px; height: 56px; }
.scr .goal.compact .range::-moz-range-thumb { width: 32px; height: 56px; }
.scr .goal.compact .gstops { margin: -2px 0 0; }
.scr .goal.compact .gstops button { min-height: 15px; font-size: 12px; padding: 0; }
.scr .goal.compact .gstops button small { display: none; }
.scr .goal.compact .chg { top: -20px; right: 0; }
.scr .gmain .abtn.find { width: 100%; min-height: 48px; padding: 0 12px; font-size: 15px; margin: 1px 0 0; border-radius: 12px; gap: 6px; position: relative; z-index: 2; }
.scr .gmain .abtn.find .plus { font-size: 12px; padding: 0 5px; }
/* suggestions on a store list: a strip of tappable cards, one reason each */
/* ---------- My List rows, as in the real app: a stepper, the name with its settings spot, an X ---------- */
.scr .lrow { gap: 4px; padding: 3px 6px 3px 6px; min-height: 50px; }
.scr .step { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.scr .step button { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--fg-brand); font: 800 17px Rubik; display: grid; place-items: center; transition: transform .15s var(--ease-pop); }
.scr .step button:active { transform: scale(.92); }
.scr .step button[disabled] { opacity: .35; cursor: default; }
.scr .step b { font: 800 13px Rubik; min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.scr .rx { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; margin-right: -4px; }
.scr .rx:active { background: var(--soft); }
.scr .lrow.shop { padding-left: 2px; }
.scr .ns { font: 700 12px Figtree; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); flex: none; }
.scr .pill.shr { display: inline-flex; align-items: center; gap: 5px; padding: 0 11px 0 9px; }
.scr .pill.shr svg { width: 15px; height: 15px; }
.scr .top3.big .t3 small { white-space: nowrap; }

/* ---------- the store sheet, redesigned: the store is the headline, pictures on the rows, an upgrade chip per row;
   shared with the hero mock, which shows the same anatomy ---------- */
.scr .sheet.sv .sh.svbar { margin-bottom: 0; min-height: 36px; }
.scr .sheet.sv .sh.svbar .plus { margin: 0; }
.svhead { text-align: center; display: grid; justify-items: center; gap: 2px; padding: 0 2px 10px; flex: none; }
.svlist { font: 700 12px Figtree; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.svname { font: 800 30px/1.05 Rubik; letter-spacing: -.02em; }
.svname i { font-style: normal; color: var(--muted); margin: 0 6px; font-weight: 600; }
.svnums { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 6px; }
.svt, .svq { display: flex; align-items: center; gap: 7px; }
.svt b { font: 800 26px Rubik; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.svt small, .svq small { font: 700 12px/1.15 Figtree; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 3.2ch; text-align: left; }
.svq .qb { --s: 34px !important; }
.svcov { font: 600 13px Figtree; color: var(--muted); margin-top: 2px; }
.svrows { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--sand); border-radius: 14px; overflow: hidden; }
.svrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 9px 10px; border-top: 1px solid var(--hair); }
.svrows li:first-child { border-top: 0; }
.svrow .thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--sand); display: block; }
.svrow .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svrow .nm { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.svrow .nm > b { font: 800 15px/1.2 Figtree; color: var(--ink); }
.svrow .bp { font: 500 13px/1.3 Figtree; color: var(--body); }
.svrow .bp em { display: inline-block; font: 800 12px/1.5 Rubik; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--sand); border-radius: 999px; padding: 0 5px; margin-right: 5px; vertical-align: 2px; background: none; }
.svrow .whyl { font: 600 12px/1.3 Figtree; color: var(--fg-green); }
.svrow .stc.sm { font-size: 12px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.scr .upchip, .hm .upchip { display: inline-flex; align-items: center; margin-top: 3px; font: 700 12px/1.2 Figtree; color: var(--fg-brand); background: none; border: 1.5px solid var(--fg-brand); border-radius: 999px; padding: 3px 9px; min-height: 24px; max-width: 100%; text-align: left; cursor: pointer; }
.scr .upchip.back { color: var(--body); border-color: var(--line); }
.svrow .pr { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.svrow .prq { display: flex; align-items: center; gap: 6px; }
.svrow .prq .qb { --s: 22px !important; }
.svrow .prq > b { font: 800 15px Rubik; font-variant-numeric: tabular-nums; color: var(--ink); }
/* the demo's rows (87px; five fully above the Start shop button; the hero mock above keeps its own anatomy): a 56px
   picture with the BEST PICK tag as a caption under it; line 1 the name (16px) with the 24px Q and the 17px price at the
   right; line 2 the product · size at 14px on one line, the size always whole (the product name ellipsises when it must);
   line 3 the upgrade chip at the left, ellipsised, and More options at the right; the density rules sit further down */
.scr .sheet.sv { max-height: 96%; }
.scr .sheet.sv .svhead { padding-bottom: 6px; } .scr .sheet.sv .svnums { margin-top: 4px; }
.scr .sheet.sv { padding-left: 16px; padding-right: 16px; }
.scr .sheet.sv .svscroll { margin: 0 -4px; padding: 0; } /* the rows sit 12 px in from the screen's edge (Nov 8), a sliver of background beside each photo, like the summary above */
.scr .sheet.sv .svrows { border: 0; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); border-radius: 0; }
.scr .svrow { grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: 56px auto; grid-template-areas: 'th tx' 'tg tx'; gap: 0 8px; padding: 9px 12px; } /* 12px inset and an 8px gap: the text column is 242px, room for the widest upgrade chip beside More options */
.scr .svrow .svtx { gap: 1px; }
.scr .svrow .thumb { grid-area: th; width: 56px; height: 56px; border-radius: 10px; position: relative; }
.scr .svrow .thumb::after, .scr .lrow.shop .sth::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(22,33,27,.08); pointer-events: none; }
.scr .svrow .svtx { grid-area: tx; display: flex; flex-direction: column; align-items: stretch; gap: 1.5px; min-width: 0; }
.scr .svrow .svtop { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 24px; min-width: 0; }
.scr .svrow .svn1 { display: block; flex: 1 1 auto; min-width: 0; }
.scr .svrow .svn1 > b { display: block; font: 800 17px/1.25 Rubik; letter-spacing: -.02em; color: var(--ink); min-width: 0; max-width: 100%; } /* wraps rather than cuts if a name ever outgrows its column */
/* the BEST PICK tag is a caption under the picture: after the name there is no room for it on a 330px screen once the
   Q and the price take the right of that line (the name column is about 110px, "Chicken thighs" alone is 107) */
.scr .svrow .bpt { grid-area: tg; display: block; width: 56px; margin-top: 3px; font: 800 12px/1.2 Rubik; font-style: normal; letter-spacing: .04em; text-transform: uppercase; text-align: center; white-space: nowrap; color: var(--muted); }
.scr .svrow .pr { flex: none; gap: 0; }
.scr .svrow .prq { gap: 5px; }
.scr .svrow .prq .qb { --s: 24px !important; gap: 2px; } .scr .svrow .prq .qb b { font-size: 13px; min-width: 0; }
.scr .svrow .prq > b { font: 800 17px/1 Rubik; letter-spacing: -.02em; font-variant-numeric: normal; } /* proportional figures: the price is right-aligned, and "$19.09" must leave the name its room */
.scr .svrow .bp { display: flex; align-items: baseline; gap: 0 5px; min-width: 0; font: 500 15px/1.3 Figtree; color: var(--body); white-space: nowrap; }
.scr .svrow .bp .pn { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.scr .svrow .bp .ps { flex: none; }
.scr .svrow .stc.sm { flex: none; vertical-align: 0; margin-left: 0; font-size: 12px; padding: 1px 6px; align-self: center; }
.scr .svrow .l3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.scr .svrow .whyl { flex: 1 1 auto; min-width: 0; font: 600 13px/1.3 Figtree; color: var(--fg-green); white-space: normal; overflow: visible; }
/* the two tappable things in a row besides the row itself: outlined 28px pills, a 36px hit area around each */
.scr .svrow .more { flex: none; align-self: center; position: relative; color: var(--fg-brand); background: none; box-shadow: none; border: 1.5px solid var(--fg-brand); border-radius: 999px; font: 700 13px/1 Figtree; text-decoration: none; padding: 0 10px; margin: 0 0 0 auto; min-height: 28px; gap: 4px; }
.scr .svrow .more::before, .scr .svrow .upchip::before { content: ""; position: absolute; inset: -4px; }
.scr .svrow .more em { display: none; } /* the count stays in the DOM for the hooks */
.scr .svrow .more svg { width: 13px; height: 13px; }
.scr .svrow .more.on { background: none; color: var(--fg-brand); box-shadow: none; } .scr .svrow .more.on em { background: none; }
.scr .svrow .upchip { display: inline-flex; align-items: center; position: relative; width: auto; max-width: 100%; align-self: flex-start; margin: 3px 0 0; padding: 0 10px; font: 700 13px/1.25 Figtree; white-space: normal; overflow: visible; text-overflow: clip; border: 1.5px solid var(--fg-brand); border-radius: 999px; min-height: 28px; }
.scr .svrow .upchip.back { color: var(--body); border-color: var(--line); }
/* the head gives the rows a few pixels: 32px close button, 28px store name, 30px list Q, tighter gaps above and below */
.scr .sheet.sv { padding-top: 6px; } .scr .sheet.sv .handle { margin-bottom: 4px; }
.scr .sheet.sv .sh.svbar { min-height: 32px; } .scr .sheet.sv .sh.svbar .x { width: 32px; height: 32px; }
.scr .sheet.sv .sh.svbar .svlist { flex: 1 1 auto; text-align: center; padding: 0 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr .sheet.sv .svhead { gap: 0; padding-bottom: 0; } .scr .sheet.sv .svname { font-size: 28px; } .scr .sheet.sv .svnums { margin-top: 0; } .scr .sheet.sv .svq .qb { --s: 30px !important; } .scr .sheet.sv .svcov { margin-top: 0; }
.scr .sheet.sv .svfoot { padding-top: 8px; }
.scr .sheet.sv .svfoot .abtn { min-height: 52px; font-size: 17px; border-radius: 14px; } /* the one loud thing */
/* the open reveal: the word is there at once; the picture, product and price fade in top to bottom, about 500 ms in all */
.scr .sheet.sv.reveal .svrow .thumb, .scr .sheet.sv.reveal .svrow .bpt, .scr .sheet.sv.reveal .svrow .bp, .scr .sheet.sv.reveal .svrow .whyl, .scr .sheet.sv.reveal .svrow .more, .scr .sheet.sv.reveal .svrow .upchip, .scr .sheet.sv.reveal .svrow .pr, .scr .sheet.sv.reveal .svsec > span { animation: svin .26s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 40ms); } /* about 500 ms for six rows */
/* the density pass (Oct 17): exactly three lines a row, every one of them a single line. Line 1 the name with the Q and
   the price; line 2 the product · size, muted, the name ellipsising first; line 3 the upgrade chip at the left (or the
   reason, when there is no chip) and More options at the right on the same line, the chip ellipsising so it never wraps
   or pushes the button. 56px picture, the BEST PICK tag a size smaller under it. Rows are 86px: five and a half clear
   Start shop. The open More options list is its own row below, so nothing in the row moves on a tap. */
.scr .svrow .svtx { gap: 1px; min-height: 68px; justify-content: flex-start; }
.scr .svrow .bp { display: flex; align-items: baseline; gap: 0 5px; min-width: 0; white-space: nowrap; overflow: hidden; line-height: 1.3; }
.scr .svrow .bp .pn { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.scr .svrow .bp .ps { display: block; flex: none; margin-left: 0; }
.scr .svrow .bp .pw { display: block; flex: none; color: var(--fg-green); font-weight: 600; }
.scr .svrow .l3 { min-height: 24px; gap: 3px; margin-top: 1px; }
.scr .svrow .l3 .more { margin-left: auto; }
.scr .svrow .whyl { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 24px; }
.scr .svrow .more, .scr .svrow .upchip { min-height: 24px; padding: 0 9px; }
.scr .svrow .more { font: 600 12px/1 Figtree; padding: 0 4px 0 6px; gap: 2px; } .scr .svrow .more svg { width: 10px; height: 10px; } /* the button gives way: the chip is the line that says something */
.scr .svrow .upchip { flex: 0 1 auto; min-width: 0; max-width: 100%; margin: 0; padding: 0 6px; align-self: center; overflow: visible; white-space: nowrap; font: 600 13px/1 Figtree; letter-spacing: -.01em; }
.scr .svrow .upchip i { font-style: normal; margin: 0 3px; } /* the dot between the claim and the price, a hair tighter than a spaced one */
.scr .svrow .upchip > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 21px; }
.scr .svrow .more::before, .scr .svrow .upchip::before { inset: -6px; } /* the 36px hit area stays */
/* a split: the rows grouped under store headers in store order, as shop mode does it */
.scr .svsec { display: flex; align-items: center; padding: 12px 16px 4px; background: var(--paper); font: 800 12px Figtree; letter-spacing: .06em; text-transform: uppercase; color: var(--body); }
.scr .svsec > span { display: inline-flex; align-items: center; gap: 4px; }
.scr .svsec em { display: none; } /* as the shop-mode headers: the count stays in the DOM, the pill alone is the header */
.scr .svsec + .svrow { border-top: 0; }
.scr .svrow + .svsec { border-top: 1px solid var(--sand); }
@keyframes svin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* footer photo credits */
.credits { margin-top: 10px; font: 500 12px/1.5 Figtree; color: var(--muted); }
.credits summary { cursor: pointer; font-weight: 700; color: var(--body); }
.credits p { margin: 6px 0 0; }
.credits a { color: var(--fg-green); display: inline-block; padding: 13px 0; margin: -12px 0; }
.credits summary { min-height: 44px; display: flex; align-items: center; }

/* ---------- My List density: 52px rows with 8px vertical padding and a hairline, one card per section, quiet 12px headers;
   the goal bar loses its top padding ---------- */
.scr .lrow { min-height: 52px; padding: 8px 8px 8px 6px; gap: 4px; }
.scr .lrow.shop { padding-left: 2px; }
.scr .sec { font-size: 13px; padding: 12px 16px 6px; }
.scr .sec.sto { padding: 12px 16px 6px; }
.scr .rows { margin: 0 10px; }
.scr .gbar { padding-top: 0; }
.scr .vs { min-height: 12px; }

/* ---------- My List, denser: 44px rows, the name first, one 28px stepper pill and the X on the right; 11px headers without
   the count; the goal bar shows only the active stop's label and sits about 20px shorter ---------- */
.scr .lrow { min-height: 44px; padding: 4px 6px 4px 12px; gap: 6px; }
.scr .lrow.shop { padding-left: 2px; }
.scr .nm1 > b, .scr .nmb { min-height: 28px; font-size: 15px; }
.scr .step { height: 28px; border-radius: 999px; background: var(--tint); padding: 0 2px; gap: 0; }
.scr .step button { width: 26px; height: 24px; border-radius: 999px; background: transparent; font-size: 17px; }
.scr .step b { min-width: 16px; font-size: 13px; }
.scr .rx { width: 30px; height: 30px; margin-right: 0; }
.scr .rx svg { width: 15px; height: 15px; }
.scr .sec { font-size: 12px; padding: 8px 16px 4px; }
.scr .sec.sto { padding: 8px 16px 4px; }
.scr .sec em { display: none; }
.scr .gbar, .scr .goal.compact + .abtn.find { }
.scr .gbar { margin: 2px 8px 4px; padding: 0 8px 5px; gap: 1px; }
.scr .goal.compact .gslider { height: 26px; margin: 0 15px; }
.scr .goal.compact .gth { top: -3px; }
.scr .goal.compact .range { top: -10px; height: 46px; }
.scr .goal.compact .gstops { margin: -2px 0 0; }
.scr .goal.compact .gstops button { min-height: 12px; font-size: 12px; }
.scr .goal.compact .gstops button:not(.cur) { visibility: hidden; }
.scr .gmain .abtn.find { margin-top: 0; }

/* ---------- goal bar: all five labels back; the track sits 12px under the live line and 11px above the labels, the 28px knob
   inside those gaps so it never touches either; a 6px bullet before each list name ---------- */
.scr .gbar { padding: 4px 8px 4px; gap: 0; }
.scr .vs { min-height: 14px; }
.scr .goal.compact .gslider { height: 6px; margin: 13px 15px 13px; overflow: visible; }
.scr .goal.compact .gtrack { top: 0; height: 6px; margin-top: 0; }
.scr .goal.compact .gtick { width: 10px; height: 10px; margin: -5px 0 0 -5px; top: 50%; }
.scr .goal.compact .gth { left: -14px; top: -11px; width: 28px; height: 28px; }
.scr .goal.compact .gth .qb { --s: 20px !important; }
.scr .goal.compact .range { left: -14px; width: calc(100% + 28px); top: -14px; height: 34px; }
.scr .goal.compact .range::-webkit-slider-thumb { width: 28px; height: 34px; }
.scr .goal.compact .range::-moz-range-thumb { width: 28px; height: 34px; }
.scr .goal.compact .gstops { margin: 0; }
.scr .goal.compact .gstops button, .scr .goal.compact .gstops button:not(.cur) { visibility: visible; min-height: 14px; font-size: 13px; line-height: 14px; padding: 0; }
.scr .gmain .abtn.find { margin-top: 2px; }
.scr .lrow:not(.shop) .nm1::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--forest); flex: none; margin-right: 4px; }

/* ---------- goal bar as the feature: ~150px. Live line 14px, the 4px track 18px below it and 18px above the 13px labels so the
   36px knob and its ring clear both, the active label bold, 16px to the 52px button, 12px bottom padding ---------- */
.scr .gbar { padding: 8px 10px 12px; gap: 0; }
.scr .vs { min-height: 14px; }
.scr .goal.compact .gslider { height: 4px; margin: 18px 18px 18px; overflow: visible; }
.scr .goal.compact .gtrack { top: 0; height: 4px; margin-top: 0; }
.scr .goal.compact .gtick { width: 10px; height: 10px; margin: -5px 0 0 -5px; top: 50%; }
.scr .goal.compact .gth { left: -18px; top: -16px; width: 36px; height: 36px; }
.scr .goal.compact .gth .qb { --s: 24px !important; }
.scr .goal.compact .range { left: -18px; width: calc(100% + 36px); top: -19px; height: 42px; }
.scr .goal.compact .range::-webkit-slider-thumb { width: 36px; height: 42px; }
.scr .goal.compact .range::-moz-range-thumb { width: 36px; height: 42px; }
.scr .goal.compact .gstops { margin: 0; }
.scr .goal.compact .gstops button, .scr .goal.compact .gstops button:not(.cur) { min-height: 14px; font-size: 13px; line-height: 14px; font-weight: 600; }
.scr .goal.compact .gstops button.cur { font-weight: 800; }
.scr .gmain .abtn.find { margin-top: 16px; min-height: 52px; font-size: 17px; }
/* the transient "−$x at Good" pop after a slider move sat over the live line; the live line already morphs to the new figure */
.scr .goal.compact .chg { display: none; }

/* ---------- demo chips row arrows, desktop only: 28px round buttons over the row's ends, a cream fade behind each ---------- */
@media (min-width: 1024px) {
  .scr .chipsw { position: relative; }
  .scr .chipsw::before, .scr .chipsw::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .15s ease-out; }
  .scr .chipsw::before { left: 0; background: linear-gradient(to right, var(--dh-pg) 40%, transparent); }
  .scr .chipsw::after { right: 0; background: linear-gradient(to left, var(--dh-pg) 40%, transparent); }
  .scr .chipsw.can-l::before, .scr .chipsw.can-r::after { opacity: 1; }
  .scr .carr { position: absolute; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 4px rgba(22, 33, 27, .14); display: grid; place-items: center; color: var(--ink); z-index: 2; padding: 0; }
  .scr .carr:hover { color: var(--fg-brand); box-shadow: inset 0 0 0 1.5px var(--dh-sage-2), 0 1px 4px rgba(22, 33, 27, .14); }
  .scr .carr.l { left: 10px; } .scr .carr.r { right: 10px; }
  .scr .carr[hidden] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scr .chipsw::before, .scr .chipsw::after { transition: none; } }

/* ---------- shop mode as a receipt: the tick, a 44px picture, the list word small above the exact product, its size (and store
   chip in a split), the Q and the price at the right; ticked rows fade to half and never move; the running total sits in the
   header's sub line ---------- */
.scr .lrow.shop { display: grid; grid-template-columns: 38px 44px minmax(0, 1fr) auto; gap: 0 8px; align-items: center; padding: 8px 16px 8px 4px; min-height: 60px; transition: opacity .2s linear; }
.scr .lrow.shop.done { opacity: .5; }
.scr .lrow.shop .cbw { width: 38px; height: 38px; }
.scr .lrow.shop .sth { position: relative; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--sand); display: block; }
.scr .lrow.shop .sth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scr .lrow.shop .nm { gap: 1px; min-width: 0; }
.scr .lrow.shop .lw { display: block; font: 700 12px/1.2 Figtree; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .lrow.shop .nm1 { min-height: 0; }
.scr .lrow.shop .nm1 > b { min-height: 0; font: 800 15px/1.2 Rubik; letter-spacing: -.02em; color: var(--ink); white-space: normal; }
.scr .lrow.shop .pl { display: flex; align-items: center; gap: 6px; font: 500 13px/1.3 Figtree; color: var(--body); white-space: nowrap; }
.scr .lrow.shop .pl .stc.sm { font-size: 12px; padding: 1px 6px; margin: 0; vertical-align: 0; }
.scr .lrow.shop .srt { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.scr .lrow.shop .srt .qb { --s: 22px !important; gap: 2px; } .scr .lrow.shop .srt .qb b { font-size: 13px; min-width: 0; }
.scr .lrow.shop .rp { font: 800 17px/1 Rubik; letter-spacing: -.02em; color: var(--ink); text-align: right; }
.scr .lrow.shop .tchip.nt { margin-left: 6px; }
.scr .ahd small .run { font: 800 13px Rubik; color: var(--fg-brand); font-variant-numeric: tabular-nums; }
.scr .bar.shop .barhd { align-items: center; }
/* the Done card: the total loudest, the yearly figure second, the difference line in green, one Share */
.scr .fcard2.calm { gap: 6px; padding: 18px 18px 14px; }
.scr .fcard2.calm .fchips { width: 100%; justify-content: space-between; }
.scr .fcard2.calm .fict { display: inline-block; font: 700 12px/1.6 Figtree; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--sand); padding: 0 6px; border-radius: 999px; }
.scr .fcard2.calm .fhead { display: block; font-size: 15px; color: var(--muted); letter-spacing: 0; margin-top: 4px; padding: 0; }
.scr .ftot { font: 800 44px/1 Rubik; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.scr .ftotl { display: inline-flex; align-items: center; gap: 5px; font: 500 13px/1.3 Figtree; color: var(--body); } .scr .ftotl b { font-weight: 800; color: var(--ink); }
.scr .ftotl .qb { --s: 22px !important; gap: 0; } .scr .ftotl .qb b { display: none; }
.scr .fdiff { font: 700 15px/1.35 Figtree; color: var(--fg-green); margin-top: 6px; } .scr .fdiff.more { color: var(--body); }
.scr .fcard2.calm .fyear { display: grid; gap: 1px; margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--tint); width: 100%; font-size: 13px; }
.scr .fcard2.calm .fyear b { font: 800 24px/1.1 Rubik; letter-spacing: -.02em; color: var(--fg-brand); font-variant-numeric: tabular-nums; }
.scr .fcard2.calm .fyear span { font: 600 13px/1.3 Figtree; color: var(--body); }
.scr .fshare { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 8px; border-radius: 12px; font: 800 15px Rubik; color: var(--fg-brand); background: var(--paper); border: 1.5px solid var(--fg-brand); text-align: center; }

/* ---- shop mode swap and Save more (Oct 18, 2026): one icon per row, two quick sheets, one crossfade, one ticking total ---- */
.scr .lrow.shop { grid-template-columns: 38px 44px minmax(0, 1fr) auto 28px; position: relative; }
.scr .swb { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--muted); background: var(--paper); display: grid; place-items: center; font: 600 15px/1 "Helvetica Neue", Arial, sans-serif; position: relative; transition: color .15s, border-color .15s, background .15s; }
.scr .swb::before { content: ""; position: absolute; inset: -6px; }
.scr .swb.on, .scr .swb:active { color: var(--fg-brand); border-color: var(--fg-brand); background: var(--tint); }
.scr .swb.none { border: 0; background: none; }
.scr .lrow.shop.gone { opacity: .45; }
.scr .lrow.shop.gone .nm1 > b, .scr .lrow.shop.gone .rp { text-decoration: line-through; text-decoration-thickness: 2px; }
.scr .lrow.shop.swapped .nm, .scr .lrow.shop.swapped .srt, .scr .svrow.swapped .svtx { animation: xfade .35s var(--ease-out) both; }
@keyframes xfade { from { opacity: 0; } to { opacity: 1; } }
.scr .svrow { position: relative; }
.scr .swtag { position: absolute; left: 42px; top: 6px; z-index: 2; font: 800 12px Rubik; letter-spacing: .06em; text-transform: uppercase; color: #F5F1E8; background: var(--green); padding: 3px 6px; border-radius: 999px; animation: swtag 1.3s var(--ease-out) both; pointer-events: none; }
.scr .svrow .swtag { left: 10px; top: 8px; }
@keyframes swtag { 0% { opacity: 0; transform: translateY(3px); } 15% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; } }
.scr .sheet.quick { max-height: 80%; touch-action: auto; }
.scr .sheet.quick.rise { animation: sheetUp .2s var(--ease-out) both; }
.scr .sheet.quick.down { animation: sheetDn .2s ease-in both; pointer-events: none; }
@keyframes sheetDn { from { transform: none; opacity: 1; } to { transform: translateY(48px); opacity: 0; } }
.scr .dim.out { animation: fadeout .2s ease-in both; pointer-events: none; }
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }
.scr .swopts, .scr .scards { list-style: none; margin: 0; padding: 0 0 6px; overflow: auto; display: grid; gap: 6px; }
.scr .swopt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; min-height: 60px; transition: transform .15s var(--ease-pop); }
.scr .swopt:active { transform: scale(.985); }
.scr .swopt .thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; background: var(--sand); }
.scr .swopt .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scr .swopt .swn { flex: 1; min-width: 0; }
.scr .swopt .swn b { display: block; font: 800 15px/1.2 Figtree; color: var(--ink); }
.scr .swopt .swn small { display: block; font: 600 12px/1.3 Figtree; color: var(--fg-green); margin-top: 2px; }
.scr .swopt .swp { font: 800 15px Rubik; letter-spacing: -.02em; flex: none; font-variant-numeric: tabular-nums; color: var(--ink); }
.scr .swopt .qb { --s: 22px !important; flex: none; }
.scr .swopt.gone { background: var(--soft); border-color: transparent; min-height: 52px; }
.scr .swopt.gone .swn b { color: var(--body); }
.scr .swopt.gone .swn small { color: var(--muted); font-weight: 500; }
.scr .swnone { font: 500 13px Figtree; color: var(--muted); padding: 10px 2px; }
.scr .scard { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 12px; }
.scr .scard span { flex: 1; font: 700 13px/1.3 Figtree; color: var(--ink); }
.scr .sparkb { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-brand); background: var(--tint); flex: none; }
.scr .sparkb.off { color: var(--muted); background: var(--soft); }
.scr .sparkb svg { width: 17px; height: 17px; }
.scr .sparkb em { position: absolute; top: -4px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--fill); color: var(--fill-ink); font: 800 12px/16px Rubik; font-style: normal; text-align: center; }
.scr .sparkb::before { content: ""; position: absolute; inset: -6px; }
.scr .sheet.sv .svnums { gap: 14px; }
.scr .runt { font-weight: 800; }
.scr .swopt .swp { background: none; padding: 0; border-radius: 0; }
.scr .lrow.shop { gap: 0 6px; padding-right: 10px; }
/* a product line with both a chip and a reason: the green tail gives way four times faster than the name and never
   takes more than half the line, so the product name stays readable and the tail ellipsises */
.scr .svrow .bp .pw { flex: 0 4 auto; min-width: 0; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.scr .swopt .swn small.dn { color: var(--muted); }

/* Settings row at the top of a store row's More options: the same sheet as the list icon, opened over the store sheet */
.scr .setrow { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 34px; padding: 4px 8px 7px; margin: -2px 0 2px; border-bottom: 1px solid var(--hair); font: 700 13px Figtree; color: var(--fg-brand); text-align: left; }
.scr .setrow small { font: 500 12px Figtree; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr .setrow svg { flex: none; margin-left: auto; width: 13px; height: 13px; color: var(--fg-brand); }
.scr .setrow:active { opacity: .7; }

/* buttons lift a pixel on hover over 120 ms; chips press a pixel on tap */
.scr .abtn { transition: transform .12s ease-out, background .2s; }
@media (hover: hover) { .scr .abtn:hover { transform: translateY(-1px); } }
.scr .qc, .scr .upchip, .scr .more, .scr .swb, .scr .sparkb { transition: transform .08s ease-out, background .2s, box-shadow .2s; }
.scr .qc:active, .scr .upchip:active, .scr .more:active, .scr .swb:active, .scr .sparkb:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .scr .abtn:hover, .scr .qc:active, .scr .upchip:active, .scr .more:active { transform: none; } }

/* ---------- My List as a handwritten list (Oct 19, 2026): centred header, one-line search, a bare item word per row with a
   strip that slides in on tap, and the goal bar on the cream card with the answer sentence above the slider ---------- */
.scr .ahd { position: relative; display: block; text-align: center; padding: 10px 56px 0; }
.scr .ahd .ahc { display: grid; justify-items: center; }
.scr .ahd .lname { justify-content: center; margin: 0 auto; }
.scr .ahd small { text-align: center; }
.scr .ahd .pill { position: absolute; right: 16px; top: 10px; }
.scr .srch { margin: 8px 16px 0; padding: 0 12px 0 14px; gap: 8px; border-radius: 12px; }
.scr .srch i { width: 14px; height: 14px; border-radius: 0; background: none; color: var(--muted); }
.scr .srch i svg { width: 14px; height: 14px; }
.scr .srch input { min-height: 38px; font-weight: 500; }
.scr .chips { padding: 8px 16px 0; }
.scr .chipsw { position: relative; }
.scr .chipsw::before, .scr .chipsw::after { content: ''; position: absolute; top: 0; bottom: 0; width: 48px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .15s ease-out; }
.scr .chipsw::before { left: 0; background: linear-gradient(to right, var(--dh-pg) 40%, transparent); }
.scr .chipsw::after { right: 0; background: linear-gradient(to left, var(--dh-pg) 40%, transparent); }
.scr .chipsw.can-l::before, .scr .chipsw.can-r::after { opacity: 1; }
.scr .carr { position: absolute; top: 50%; translate: 0 -50%; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 4px rgba(22, 33, 27, .14); display: grid; place-items: center; color: var(--body); z-index: 2; margin-top: 4px; }
.scr .carr.l { left: 10px; } .scr .carr.r { right: 10px; }
.scr .carr[hidden] { display: none; }
.scr .body { padding-bottom: 6px; }
.scr .body > .sec, .scr .sec { padding: 20px 16px 8px; font: 700 12px/1 Figtree; letter-spacing: .08em; text-transform: uppercase; color: var(--body); }
.scr .body > .sec:first-child { padding-top: 8px; }
.scr .sec em { display: none; }
.scr .rows { margin: 0 10px; }
.scr .lrow:not(.shop) { display: block; padding: 0; min-height: 0; gap: 0; }
.scr .lrow:not(.shop).edit { display: flex; align-items: center; padding-right: 16px; }
.scr .lrow:not(.shop).edit .rowbtn { flex: 1 1 auto; min-width: 0; }
.scr .lrow:not(.shop) .nm1::before { content: none; }
.scr .rowbtn { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 16px; text-align: left; font: inherit; color: inherit; background: none; }
.scr .rowbtn .nm1 { gap: 0; min-width: 0; }
.scr .rowbtn .nm1 > b { font: 600 17px/1.2 Figtree; color: var(--ink); min-height: 0; letter-spacing: -.005em; }
.scr .lrow.done .rowbtn .nm1 > b { color: var(--muted); }
.scr .qsuf { font: 500 15px/1.2 Figtree; color: var(--muted); margin-left: 6px; white-space: nowrap; flex: none; }
.scr .rowbtn .tchip.nt { margin-left: 8px; }
.scr .lrow.open { background: var(--soft); }
.scr .qstrip { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px 4px; overflow: hidden; animation: stripIn .15s ease-out both; }
.scr .qstrip.fold { animation: stripOut .15s ease-in both; pointer-events: none; }
@keyframes stripIn { from { height: 0; opacity: 0; } to { height: 40px; opacity: 1; } }
@keyframes stripOut { from { height: 40px; opacity: 1; } to { height: 0; opacity: 0; } }
.scr .qs { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.scr .qs button { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--fg-brand); font: 700 17px/1 Rubik; display: grid; place-items: center; transition: transform .12s var(--ease-pop); }
.scr .qs button:active { transform: scale(.92); }
.scr .qs button[disabled] { opacity: .35; }
.scr .qs b { font: 700 13px Rubik; color: var(--ink); min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.scr .hyl { display: inline-flex; align-items: center; gap: 5px; font: 600 13px Figtree; color: var(--fg-brand); white-space: nowrap; min-width: 0; }
.scr .hyl > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.scr .hyl .plus { flex: none; }
.scr .qstrip { gap: 10px; }
.scr .qs b { min-width: 46px; }
.scr .hyl .plus { font-size: 12px; padding: 0 5px; }
.scr .rmv { margin-left: auto; font: 600 13px Figtree; color: var(--muted); flex: none; padding: 4px 0; }
.scr .rmv.rest { margin-left: auto; }
/* the goal bar on the cream card: the answer, 12px, the slider, 8px, the names, then the one green block */
.scr .gbar { margin: 0; padding: 10px 16px 12px; background: none; box-shadow: none; border-radius: 0; border-top: 1px solid var(--sand); color: var(--ink); gap: 0; }
.scr .ans { display: grid; gap: 2px; }
.scr .ans1 { font: 700 15px/1.25 Figtree; color: var(--ink); }
.scr .ans2 { font: 500 13px/1.3 Figtree; color: var(--muted); }
.scr .gbar .goal.compact { --gtrack: var(--sand); --gtick: var(--paper); --gring: var(--dh-sage-2); --gcur: var(--forest); --gstop: var(--muted); --gname: var(--ink); }
.scr .gbar .goal.compact .gslider { height: 2px; margin: 12px 8px 8px; overflow: visible; }
.scr .gbar .goal.compact .gtrack { top: 0; height: 2px; margin-top: 0; border-radius: 1px; background: var(--gtrack); }
.scr .gbar .goal.compact .gfill { display: none; }
.scr .gbar .goal.compact .gtick, .scr .gbar .goal.compact .gtick.on { top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--gtick); box-shadow: inset 0 0 0 1.5px var(--gring); }
.scr .gbar .goal.compact .gth { left: -7px; top: -6px; width: 14px; height: 14px; background: var(--forest); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px rgba(29, 74, 52, .35); }
.scr .gbar .goal.compact .gth .qb { display: none; }
.scr .gbar .goal.compact .range { left: -16px; width: calc(100% + 32px); top: -20px; height: 42px; }
.scr .gbar .goal.compact .range::-webkit-slider-thumb { width: 32px; height: 42px; }
.scr .gbar .goal.compact .range::-moz-range-thumb { width: 32px; height: 42px; }
.scr .gbar .goal.compact .gslider:focus-within .gth { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--yellow); }
.scr .gbar .goal.compact .gstops { margin: 0; align-items: start; }
.scr .gbar .goal.compact .gstops button, .scr .gbar .goal.compact .gstops button:not(.cur) { visibility: visible; min-height: 16px; padding: 0; font: 500 12px/16px Figtree; color: var(--muted); }
.scr .gbar .goal.compact .gstops button.cur { font: 700 13px/16px Figtree; color: var(--ink); }
.scr .gbar .abtn.find { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .scr .qstrip, .scr .qstrip.fold { animation: none; } }
.scr .sec { line-height: 1; min-height: 0; }
.scr .sec > span:first-child { line-height: 11px; }
.scr .sec .chev { display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; }
/* the strip's parts sized so "How you like it" with its pill reads whole beside − 1.5 kg + and Remove at 336px */
.scr .qstrip { gap: 8px; }
.scr .qs { gap: 4px; }
.scr .qs button { width: 26px; height: 26px; font-size: 17px; }
.scr .qs b { min-width: 40px; font-size: 13px; }
.scr .hyl { font-size: 12px; gap: 4px; }
.scr .hyl .plus { font-size: 12px; padding: 0 4px; }
.scr .rmv { font-size: 12px; }
.scr .qstrip { gap: 6px; }
.scr .qs button { width: 24px; height: 24px; font-size: 15px; }
.scr .qs b { min-width: 34px; }
.scr .rmv { font-size: 12px; }

/* ---------- Home and Shop done (Oct 20, 2026): Home is the first screen (kept since October, the last shop, the list as a
   card), the Done card is five plain lines with one coloured one, and Share slides up the card people get ---------- */
.scr .ahd .hbk { position: absolute; left: 16px; top: 10px; display: inline-flex; align-items: center; gap: 2px; padding: 0 12px 0 6px; color: var(--fg-brand); }
.scr .ahd .hbk svg { width: 14px; height: 14px; transform: rotate(90deg); color: var(--fg-brand); }
.scr .home { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.scr .home::-webkit-scrollbar { display: none; }
.scr .hhero { padding: 40px 2px 22px; }
.scr .hkept { display: block; font: 800 56px/1 Rubik; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.scr .hhero span { display: block; font: 500 15px/1.3 Figtree; color: var(--muted); margin-top: 8px; }
.scr .hlast { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 10px 8px 14px; background: var(--paper); border-radius: 16px; box-shadow: 0 0 0 1px var(--sand); font: 600 13px/1.3 Figtree; color: var(--body); text-align: left; transition: transform .15s var(--ease-pop); }
.scr .hlast:active { transform: scale(.985); }
.scr .hlast .stc, .scr .hlast .stc2 { flex: none; }
.scr .hlast .hlt { flex: 1 1 auto; min-width: 0; } /* a split's two chips leave less room: the words wrap inside the one row */
.scr .hlast .chev { flex: none; color: var(--muted); }
.scr .hlast .chev.r { transform: rotate(-90deg); }
.scr .hcard { background: var(--paper); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 0 0 1px var(--sand); display: grid; gap: 12px; }
.scr .hct b { display: block; font: 800 17px/1.15 Rubik; letter-spacing: -.01em; color: var(--ink); }
.scr .hct small { display: block; font: 500 13px/1.3 Figtree; color: var(--muted); margin-top: 3px; }
.scr .hcard .abtn .plus { margin-left: 6px; background: var(--mint); color: var(--forest); }
.scr.tabin > :not(.status) { animation: rise .3s var(--ease-out) both; }
/* the Done card: five plain lines, each its own weight; the yearly line is the only coloured text */
.scr .fcard2.done { gap: 0; padding: 22px 18px 14px; justify-items: stretch; }
.scr .fcard2.done .fhead { display: flex; align-items: center; gap: 8px; font: 800 20px/1.15 Rubik; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.scr .fcard2.done .fhead .mk { width: 18px; height: 18px; color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .25s var(--ease-out), transform .25s var(--ease-pop); }
.scr .fcard2.done .fhead.ticked .mk { opacity: 1; transform: none; }
.scr .fspent { display: flex; align-items: baseline; gap: 7px; margin-top: 14px; font: 600 15px/1.2 Figtree; color: var(--body); }
.scr .fspent .fnum { font: 800 36px/1 Rubik; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; transform-origin: left center; }
.scr .fspent .fnum.tick { animation: softtick .24s var(--ease-out); }
@keyframes softtick { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
.scr .favg { font: 500 13px/1.4 Figtree; color: var(--muted); margin: 8px 0 0; }
.scr .fyr { font: 700 15px/1.35 Figtree; color: var(--fg-green); margin: 6px 0 0; } .scr .fyr.more { color: var(--body); }
.scr .fcart, .scr .fnext { font: 500 15px/1.4 Figtree; color: var(--body); margin: 10px 0 0; }
.scr .fnext { margin-top: 4px; }
.scr .fcard2.done .fshare { margin-top: 16px; }
.scr .fcard2.done .flinks { margin-top: 6px; }
/* the share preview sits over the Done card */
.scr .dim.over { z-index: 11; }
.scr .sheet.sharep { z-index: 12; }
.scr .shcard { background: var(--paper); border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 0 0 1px var(--sand), 0 18px 30px -22px rgba(0,0,0,.35); display: grid; gap: 5px; margin: 2px 0 12px; }
.scr .shcard .shmk { display: flex; align-items: center; gap: 6px; font: 800 13px Rubik; color: var(--fg-brand); margin-bottom: 6px; }
.scr .shcard .shmk .mk { width: 18px; height: 18px; }
.scr .shcard .shmk .stc, .scr .shcard .shmk .stc2 { margin-left: auto; }
.scr .shcard .shm { font: 800 22px/1.15 Rubik; letter-spacing: -.02em; color: var(--ink); }
.scr .shcard .shy { font: 700 15px/1.35 Figtree; color: var(--fg-green); } .scr .shcard .shy.more { color: var(--body); }
.scr .shcard .shc { font: 500 13px/1.4 Figtree; color: var(--body); }
.scr .shcard .shd { font: 600 12px/1.4 Figtree; color: var(--muted); margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .scr.tabin > :not(.status), .scr .fspent .fnum.tick { animation: none; } .scr .fcard2.done .fhead .mk { transition: none; } }

/* ---------- My List, second pass (Oct 20, 2026): 40px rows, the word at 16px, two quiet icons at the right (the amount
   pill and the tune glyph, 18px, 12px apart, var(--muted) at rest and green on press), no tap-to-open strip; a one-line legend
   above the goal bar; "Pick a Quality" until Optimize has run ---------- */
.scr .lrow:not(.shop) { display: flex; align-items: center; height: 40px; min-height: 40px; padding: 0 16px; gap: 10px; background: none; }
.scr .lrow:not(.shop).open { background: none; }
.scr .lrow:not(.shop).edit { padding-right: 16px; }
.scr .lrow:not(.shop) .nm1 { flex: 1 1 auto; min-width: 0; gap: 0; }
.scr .lrow:not(.shop) .nm1 > b { font: 600 17px/1.2 Figtree; color: var(--ink); min-height: 0; letter-spacing: -.005em; }
.scr .lrow:not(.shop) .nm1 .tchip.nt { margin-left: 8px; }
.scr .lrow.done .nm1 > b { color: var(--muted); }
.scr .ric { display: inline-flex; align-items: center; gap: 12px; flex: none; height: 40px; }
.scr .qpill, .scr .tune { position: relative; height: 18px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; transition: color .12s linear, box-shadow .12s linear; -webkit-tap-highlight-color: transparent; }
.scr .qpill::before, .scr .tune::before { content: ""; position: absolute; inset: -11px -8px; } /* a 40px-tall hit area around an 18px glyph */
.scr .qpill { padding: 0 7px; border-radius: 9px; font: 500 12px/18px Figtree; letter-spacing: 0; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.scr .tune { width: 18px; height: 18px; }
.scr .tune svg { width: 18px; height: 18px; }
.scr .tune.set { color: var(--fg-brand); }
.scr .qpill:active, .scr .tune:active, .scr .qpill.on, .scr .tune.on { color: var(--fg-brand); }
.scr .qpill:active { box-shadow: inset 0 0 0 1px var(--forest); }
@media (hover: hover) { .scr .qpill:hover, .scr .tune:hover { color: var(--fg-brand); } .scr .qpill:hover { box-shadow: inset 0 0 0 1px var(--dh-sage-2); } }
/* the amount, open in place: − amount + at the pill's spot, 24px round buttons, settles back after three quiet seconds */
.scr .qinl { display: inline-flex; align-items: center; gap: 4px; height: 24px; animation: qin .15s var(--ease-out) both; }
.scr .qinl.fold { animation: qout .15s ease-in both; pointer-events: none; }
@keyframes qin { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
@keyframes qout { from { opacity: 1; } to { opacity: 0; } }
.scr .qinl button { width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--fg-brand); font: 700 15px/1 Rubik; display: grid; place-items: center; transition: transform .12s var(--ease-pop); }
.scr .qinl button:active { transform: scale(.92); }
.scr .qinl button[disabled] { opacity: .35; }
.scr .qinl b { font: 700 13px Rubik; color: var(--fg-brand); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.scr .lrow:not(.shop) .rmv.rest { margin-left: auto; font: 600 13px Figtree; color: var(--muted); flex: none; padding: 4px 0; }
/* the legend: one muted line, 11px, the two real glyphs */
.scr .legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; padding: 4px 16px 6px; font: 500 12px/14px Figtree; color: var(--muted); flex: none; background: var(--dh-pg); position: relative; z-index: 1; }
.scr .legend span { display: inline-flex; align-items: center; gap: 4px; }
.scr .legend svg { width: 13px; height: 13px; color: var(--muted); }
.scr .legend i { font-style: normal; }
/* the first-tap bubble: a small dark line above the icon, cleared after a moment */
.scr .rtip { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -100%) translateY(-7px); z-index: 20; background: var(--inkfill); color: #F5F1E8; font: 600 12px/1 Figtree; padding: 7px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; animation: tipin .15s var(--ease-out) both; }
.scr .rtip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: var(--inkfill); transform: translateX(-50%) rotate(45deg); border-radius: 1px; }
@keyframes tipin { from { opacity: 0; transform: translate(-50%, -100%) translateY(-2px); } to { opacity: 1; transform: translate(-50%, -100%) translateY(-7px); } }
/* the list word and the goal names share the section headers' face, one weight above body */
.scr .gbar .goal.compact .gstops button, .scr .gbar .goal.compact .gstops button:not(.cur) { font: 600 12px/16px Figtree; color: var(--muted); }
.scr .gbar .goal.compact .gstops button.cur { font: 700 13px/16px Figtree; color: var(--ink); }
.scr .legend + .gbar { padding-top: 10px; }
@media (prefers-reduced-motion: reduce) { .scr .qinl, .scr .qinl.fold, .scr .rtip { animation: none; } }

/* ---------- the Optimize block and the store sheet (Oct 21, 2026): the quality slider has one look everywhere (a 2px track,
   five dots, the current name bold, the others muted, the stop's meaning under it); the block under the list is a section
   title, the slider and the Basqet mark as a 56px round green button with "See stores" under it; the store sheet carries the
   same slider at the top and up to five store rows, the winner first ---------- */
.scr .goal.compact { --gtrack: var(--sand); --gtick: var(--paper); --gring: var(--dh-sage-2); --gcur: var(--forest); --gstop: var(--muted); --gname: var(--ink); margin: 0; gap: 0; }
.scr .goal.compact .gslider { height: 2px; margin: 12px 8px 8px; overflow: visible; z-index: 1; }
.scr .goal.compact .gtrack { top: 0; height: 2px; margin-top: 0; border-radius: 1px; background: var(--gtrack); }
.scr .goal.compact .gfill { display: none; }
.scr .goal.compact .gtick, .scr .goal.compact .gtick.on { top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--gtick); box-shadow: inset 0 0 0 1.5px var(--gring); }
.scr .goal.compact .gth { left: -7px; top: -6px; width: 14px; height: 14px; background: var(--forest); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px rgba(29, 74, 52, .35); }
.scr .goal.compact .gth .qb { display: none; }
.scr .goal.compact .range { left: -16px; width: calc(100% + 32px); top: -20px; height: 42px; }
.scr .goal.compact .range::-webkit-slider-thumb { width: 32px; height: 42px; }
.scr .goal.compact .range::-moz-range-thumb { width: 32px; height: 42px; }
.scr .goal.compact .gslider:focus-within .gth { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--yellow); }
.scr .goal.compact .gstops { margin: 0; align-items: start; }
.scr .goal.compact .gstops button, .scr .goal.compact .gstops button:not(.cur) { visibility: visible; min-height: 16px; padding: 0; font: 600 12px/16px Figtree; color: var(--muted); }
.scr .goal.compact .gstops button.cur { font: 700 13px/16px Figtree; color: var(--ink); }
.scr .goal.compact .gstops button small { display: none; }
.scr .goal.compact .chg { display: none; }
.scr .gsub { display: block; text-align: center; font: 500 13px/16px Figtree; color: var(--muted); margin-top: 6px; }
.scr .gbar.optb { margin: 0; padding: 10px 16px 14px; background: none; box-shadow: none; border-radius: 0; border-top: 1px solid var(--sand); color: var(--ink); gap: 0; display: block; }
.scr .legend + .gbar.optb { padding-top: 8px; }
.scr .obhd { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 16px; }
.scr .obhd > span { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 Figtree; letter-spacing: .08em; text-transform: uppercase; color: var(--body); }
.scr .obhd > span .plus { letter-spacing: 0; text-transform: none; }
.scr .obhd > small { font: 500 12px/16px Figtree; color: var(--muted); }
.scr .obgo { display: grid; justify-items: center; align-content: center; gap: 5px; margin-top: 10px; width: 100%; min-height: 44px; } /* Nov 11: one button, the circle and its label, the whole row */
.scr .qmark { width: 56px; height: 56px; border-radius: 50%; background: var(--fill); color: var(--fill-ink); display: grid; place-items: center; box-shadow: 0 10px 22px -10px rgba(29,74,52,.6); transition: transform .15s var(--ease-pop); }
.scr .qmark .mk { width: 28px; height: 28px; }
.scr .obgo:active { transform: none; opacity: 1; }
.scr .obgo:active .qmark, .scr .dhgo .qmark:active { transform: scale(.94); }
.scr .obgo > small { font: 600 13px/14px Figtree; color: var(--muted); }
/* the store sheet: the slider, then the rows, 200 ms for everything that moves */
.scr .sheet.top3s .goal.compact { margin: 0 2px 10px; }
.scr .sheet.top3s .top3.big { gap: 6px; }
.scr .sheet.top3s .t3 { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 4px 10px; align-items: center; min-height: 54px; padding: 8px 12px 8px 10px; margin: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--sand); color: var(--ink); }
.scr .sheet.top3s .t3.best { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--fg-brand); }
.scr .sheet.top3s .t3c { max-width: none; flex-wrap: nowrap; min-width: 0; }
.scr .sheet.top3s .t3 .stc { font-size: 12px; }
.scr .sheet.top3s .t3p { font: 800 15px/1 Rubik; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; min-width: 0; }
.scr .sheet.top3s .t3.best .t3p { color: var(--fg-brand); }
.scr .sheet.top3s .t3track { height: 6px; min-width: 0; background: var(--sand); border-radius: 3px; }
.scr .sheet.top3s .t3bar { background: var(--dh-sage-2); box-shadow: none; transition: transform .2s var(--ease-out); }
.scr .sheet.top3s .t3.best .t3bar { background: var(--forest); box-shadow: none; }
.scr .sheet.top3s .t3m { grid-column: 1 / -1; display: inline-flex; align-items: baseline; gap: 4px; justify-self: start; white-space: nowrap; font: 600 12px/1 Figtree; color: var(--muted); }
.scr .sheet.top3s .t3m i { font-style: normal; }
.scr .sheet.top3s .t3m b { font: 700 12px Figtree; color: var(--body); font-variant-numeric: tabular-nums; min-width: 0; }
.scr .sheet.top3s .t3gap { font: 600 12px/1 Figtree; font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; min-height: 11px; }
.scr .sheet.top3s .t3f.amber { color: var(--dh-gold); font-weight: 700; }
.scr .sheet.top3s .top3 > li { transition: transform .2s var(--ease-out); }
.scr .sheet.top3s .shsub.how { margin: 8px 0 4px; }

/* ---------- quality icons on the rows (Oct 21, 2026): grey outline glyphs at the right of the row, 18px, 10px apart, one
   per claim the catalogue has for the item; a tap fills one green with a pop, a ring and its word sliding out for a second;
   the chosen ones ride small beside the product name on store lists and shop rows; the legend names the ones in use ---------- */
.scr .ric { gap: 10px; }
.scr .ric .qpill, .scr .ric .qinl { margin-right: 2px; } /* 12px from the amount to the first icon, 10px between icons */
.scr .qi { position: relative; width: 18px; height: 18px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: color .12s linear; -webkit-tap-highlight-color: transparent; }
.scr button.qi::before { content: ""; position: absolute; inset: -11px -5px; }
.scr .qi svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; margin: 0; color: inherit; }
.scr .qi.on { color: var(--fg-brand); }
.scr .qi.on svg path:not(.cut), .scr .qi.on svg circle:not(.cut) { fill: currentColor; }
.scr .qi.on svg .cut { stroke: var(--fill); }
.scr .qi.sm { width: var(--s, 14px); height: var(--s, 14px); }
.scr .qis { display: inline-flex; align-items: center; gap: 4px; flex: none; vertical-align: middle; }
@media (hover: hover) { .scr button.qi:hover { color: var(--fg-brand); } }
.scr .qi.pop svg { animation: qpop .15s var(--ease-out) both; }
@keyframes qpop { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
.scr .qi.pop::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--fg-brand); animation: qring .5s ease-out both; pointer-events: none; }
@keyframes qring { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.scr .qword { position: absolute; right: calc(100% + 8px); top: 50%; z-index: 3; font: 600 12px/1 Figtree; font-style: normal; color: var(--fg-brand); background: var(--paper); box-shadow: 0 0 0 1px var(--tint), 0 4px 10px -6px rgba(22,33,27,.3); padding: 4px 7px; border-radius: 999px; white-space: nowrap; pointer-events: none; animation: qword 1.3s var(--ease-out) both; }
@keyframes qword { 0% { opacity: 0; transform: translate(8px, -50%); } 14% { opacity: 1; transform: translate(0, -50%); } 82% { opacity: 1; transform: translate(0, -50%); } 100% { opacity: 0; transform: translate(8px, -50%); } }
/* the item word is a button when the item has varieties; the chosen ones follow it, muted */
.scr .lrow:not(.shop) .nm1.vb { display: flex; align-items: center; min-height: 40px; background: none; padding: 0; text-align: left; font: inherit; color: inherit; }
.scr .lrow:not(.shop) .vset { font: 500 13px/1 Figtree; color: var(--muted); margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* the product line on a store list and a shop row: the chosen icons small after the name */
.scr .svrow .bp .qis { margin-left: 4px; align-self: center; }
.scr .lrow.shop .nm1 .qis { margin-left: 5px; }
/* the legend: the icons used on this list with their words */
.scr .legend { flex-wrap: wrap; gap: 4px 6px; }
.scr .legend .qi { color: var(--muted); }
/* How you like it, in a store row's More options: the icons as toggles and the varieties link */
.scr .setrow { gap: 10px; cursor: default; }
.scr .setrow > span:first-child { flex: none; }
.scr .setrow .qis { gap: 10px; }
.scr .setrow .qi { color: var(--muted); } .scr .setrow .qi.on { color: var(--fg-brand); }
.scr .setrow .varb { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font: 600 12px Figtree; color: var(--fg-brand); min-height: 28px; padding: 0 2px 0 6px; }
.scr .setrow .varb svg { width: 12px; height: 12px; margin: 0; transform: rotate(-90deg); }
.scr .setrow:active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .scr .qi.pop svg, .scr .qi.pop::after, .scr .qword { animation: none; } }

/* ---------- Home, direction C (Nov 9, 2026, docs/basqet-screens.md §0, tokens in docs/tokens.json): the list is the hero card, Saved is
   the proof, Top deals and Search a compact pair; one botanical line-icon family, tinted, no discs; no photos. The same tokens theme
   every screen: the light set on .scr (a cream page, white cards, forest titles, sage figures, wheat for Saved and the achievement bar,
   plum for the Basqet+ door), the dark set on .scr.dark (a deep forest page, cards one step lighter with a hairline, no white or cream
   surface anywhere), which app.js sets from the system on a phone. Every other rule in this file reads these names, so the dark set
   re-themes the list, the sheets, shop mode, the receipt, Search, Top deals and Saved with it. ---------- */
.scr { --dh-pg: #F6F2E9; --dh-tile: #FEFCF7; --dh-tile-2: #F9F5EC; --dh-line: rgba(29, 74, 52, .10); --dh-ink: #16211B; --dh-body: #3E4A43; --dh-muted: #73807A; --dh-title: #1D4A34;
  --dh-sage: #E2EBDC; --dh-sage-2: #C9DBC6; --dh-sage-ink: #4F7A5A; --dh-bar: #86AD90; --dh-bar-ghost: #DDE5D7; --dh-gold: #B48A2A; --dh-gold-soft: rgba(180, 138, 42, .14); --dh-red: #C9705F; --dh-track: #ECE7DB; --dh-field: #FEFCF7;
  /* the screen's own values for the shared names: the page's dark mode never changes these (styles.css), the screen's does */
  --paper: var(--dh-tile); --cream: var(--dh-pg); --sand: #E6E0D2; --tint: var(--dh-sage); --tint-2: var(--dh-sage-2); --line: rgba(29, 74, 52, .16); --hair: rgba(29, 74, 52, .09); --soft: #F0EBE0;
  --ink: var(--dh-ink); --body: var(--dh-body); --muted: var(--dh-muted); --fg-brand: var(--forest); --fg-green: var(--green); --fill: var(--forest); --fill-ink: #F5F1E8; --inkfill: #16211B; --dim: rgba(22, 33, 27, .32);
  --sheet: var(--dh-tile-2); --plum-soft: #EFEAF8;
  /* depth (Nov 9; docs/tokens.json depth): one light, top-left and slightly warm; the page a gentle gradient lighter at the top; a 1 px top-edge highlight one step lighter than the card, a visible hairline, a two-layer soft shadow below-right (tight 2 px, wide 24 px); the hero card one step closer; sheets float with the same language */
  --pg-grad: linear-gradient(180deg, #F9F6EF 0%, #F6F2E9 45%, #F2EDE2 100%); --dh-pg-2: #F2EDE2; --hi: #FFFFFF; --hi-hero: #FFFFFF;
  --sh: 2px 2px 2px rgba(22, 59, 42, .07), 6px 14px 24px -8px rgba(22, 59, 42, .2); --sh-hero: 3px 3px 3px rgba(22, 59, 42, .08), 10px 22px 36px -10px rgba(22, 59, 42, .26);
  --sh-sheet: 0 -8px 40px rgba(22, 59, 42, .16), 0 24px 60px -20px rgba(22, 59, 42, .3); --wm-op: .07;
  --card-shadow: inset 0 1px 0 var(--hi), var(--sh); background-color: var(--dh-pg); background-image: var(--pg-grad); color: var(--ink); }
.scr.dark { --dh-pg: #163527; --dh-tile: #244C3B; --dh-tile-2: #1E4232; --dh-line: rgba(255, 255, 255, .13); --dh-ink: #F2F0E8; --dh-body: #D3DCD2; --dh-muted: #A3B5A6; --dh-title: #ECF2E8;
  --dh-sage: #2C5C44; --dh-sage-2: #3F7156; --dh-sage-ink: #B4D4B7; --dh-bar: #9DC4A3; --dh-bar-ghost: rgba(255, 255, 255, .12); --dh-gold: #DDB86A; --dh-gold-soft: rgba(221, 184, 106, .14); --dh-red: #E09A8E; --dh-track: #2F5D48; --dh-field: #12301F;
  --sand: #2F5D48; --line: rgba(255, 255, 255, .16); --hair: rgba(255, 255, 255, .09); --soft: rgba(255, 255, 255, .07);
  --fg-brand: #DCEBDD; --fg-green: var(--mint); --fill: var(--mint); --fill-ink: #16211B; --inkfill: #0D2A1D; --dim: rgba(0, 0, 0, .45);
  --plum-soft: rgba(185, 162, 232, .18); --plum: var(--plum-dark); --plum-ink: #16211B;
  --pg-grad: linear-gradient(180deg, #1A3F30 0%, #163527 45%, #112A1F 100%); --dh-pg-2: #112A1F; --hi: #35684D; --hi-hero: #3F7659;
  --sh: 0 2px 4px rgba(6, 20, 13, .55), 2px 8px 28px rgba(6, 20, 13, .55); --sh-hero: 0 3px 6px rgba(6, 20, 13, .6), 3px 14px 40px rgba(6, 20, 13, .6);
  --sh-sheet: 0 -10px 44px rgba(6, 20, 13, .5), 0 24px 60px -20px rgba(6, 20, 13, .7); --wm-op: .08;
  --card-shadow: inset 0 1px 0 var(--hi), var(--sh); }
.scr.dark .status .isl { background: #000; }
.scr .status .ico { color: var(--ink); }
/* the list, the sub-screens and the shop header in dark read the same tokens; the few places that named a colour outright */
.scr.dark .ahd .edl:active, .scr.dark .ahd .hbk.rnd:active { background: var(--soft); }
.scr.dark .chips .qc { background: var(--dh-tile); color: var(--dh-ink); box-shadow: inset 0 0 0 1px var(--line); }
.scr.dark .chips .qc.on { background: var(--fill); color: var(--fill-ink); box-shadow: none; }
.scr.dark .ahd .edl { color: var(--fg-green); }
.scr.dark .srch { background: var(--dh-field); }
.scr.dark .thint { color: var(--dh-muted); }
.scr .home.dh { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 4px 20px 18px; display: flex; flex-direction: column; gap: 14px; color: var(--dh-ink); }
.scr .home.dh::-webkit-scrollbar { display: none; }
/* the slim bar back to an open shop: a sage bar, the store's progress as a deeper sage fill behind the words */
.scr .dhbar { position: relative; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px 0 14px; border-radius: 12px; background: var(--dh-sage); color: var(--dh-sage-ink); overflow: hidden; font: 600 13px/1.2 Figtree; margin-bottom: -2px; }
.scr .dhbar > i { position: absolute; inset: 0; width: calc(var(--w, 0) * 100%); background: var(--dh-sage-2); opacity: .55; transition: width .4s var(--ease-out); }
.scr .dhbar > span { position: relative; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .dhbar > svg { position: relative; flex: none; transform: rotate(-90deg); }
/* the title and the day: Home in the serif at 34 px, the date muted under it */
.scr .dhhd { display: grid; gap: 5px; padding: 6px 2px 0; }
.scr .dhtitle { display: block; font: 400 34px/1 var(--serif); letter-spacing: -.01em; color: var(--dh-title); }
.scr .hgreet { display: block; font: 600 13px/1.3 Figtree; color: var(--dh-muted); }
/* the cards: white (one step lighter than the page in dark), a hairline edge, 26 px corners, 18 px inset */
.scr .dht { position: relative; display: block; width: 100%; background: var(--dh-tile); border: 1px solid var(--dh-line); border-radius: 26px; box-shadow: inset 0 1px 0 var(--hi), var(--sh); padding: 18px; text-align: left; color: var(--dh-ink); transition: transform .15s var(--ease-pop); }
.scr button.dht:active { transform: scale(.985); opacity: 1; }
.scr .dht.ghost { color: var(--dh-muted); }
/* one botanical line family for the cards: 22 px, a 1.5 px stroke, tinted sage; wheat on Saved alone */
.scr .hic { display: inline-flex; width: 22px; height: 22px; color: var(--dh-sage-ink); flex: none; }
.scr .hic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* the list, the hero: the name in the serif at 36 px, the count, the first four items with their quality leaves, the rest in a line, one plum button */
.scr button.dht.dhmain { display: grid; align-content: start; justify-items: stretch; font: inherit; color: var(--dh-ink); cursor: pointer; }
.scr .htitle { display: block; margin: 0; font: 400 36px/1 var(--serif); letter-spacing: -.012em; color: var(--dh-title); text-wrap: balance; }
.scr .dhcount { display: block; margin-top: 7px; font: 600 13px/1.3 Figtree; color: var(--dh-muted); }
.scr .hitems { list-style: none; margin: 12px 0 0; padding: 0; display: block; }
.scr .hitems li { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 32px; border-top: 1px solid var(--hair); font: 500 17px/1 Figtree; color: var(--dh-ink); }
.scr .hitems li:first-child { border-top: 0; }
.scr .hitems li > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .hitems .hqs { display: inline-flex; gap: 8px; flex: none; }
.scr .hq { display: inline-flex; width: 18px; height: 18px; color: var(--dh-sage-ink); }
.scr .hq svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.scr .hmore { display: block; margin-top: 10px; font: 500 13px/1.3 Figtree; color: var(--dh-muted); }
.scr .hnext.hfirst { display: block; margin-top: 12px; font: 500 15px/1.35 Figtree; color: var(--dh-title); }
.scr .dhgo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.scr .dhgo .qmark, html.demo-open .scr .dhgo .qmark { width: auto; height: 44px; border-radius: 999px; padding: 0 18px 0 12px; display: inline-flex; align-items: center; gap: 9px; font: 700 15px/1 Figtree; box-shadow: none; }
.scr .dhgo .qmark .mk, html.demo-open .scr .dhgo .qmark .mk { width: 22px; height: 22px; }
.scr.dark .svname { filter: brightness(1.45) saturate(.85); } /* a store-coloured title on the dark sheet reads brighter */
.scr .dhgo > small { font: 500 13px/1.2 Figtree; color: var(--dh-muted); text-align: right; }
/* Saved, the proof: the running total large in sage with the twelve-week sparkline, the nearest achievement as one quiet line under a hairline with its thin wheat bar */
.scr .dht.tkept { padding: 18px 18px 14px; }
.scr .dhsv { display: block; width: 100%; text-align: left; font: inherit; color: inherit; }
.scr .dhlab { display: flex; align-items: center; gap: 8px; font: 700 15px/1 Figtree; color: var(--dh-ink); }
.scr .dhlab .hic { color: var(--dh-gold); }
.scr .dhrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.scr .dhrow > span { display: block; min-width: 0; }
.scr .hkept { display: block; font: 700 44px/.95 Rubik; letter-spacing: -.03em; color: var(--dh-sage-ink); font-variant-numeric: tabular-nums; }
.scr .hsince { display: block; margin-top: 8px; font: 500 13px/1.3 Figtree; color: var(--dh-muted); max-width: 196px; }
.scr .dht.ghost .hkept { font: 500 15px/1.35 Figtree; color: var(--dh-muted); letter-spacing: 0; margin-top: 2px; }
.scr .dhbars { display: block; flex: none; color: var(--dh-bar); overflow: visible; margin: 0 0 3px; }
.scr .dhbars rect { fill: currentColor; } .scr .dhbars rect.ghost { fill: var(--dh-bar-ghost); }
.scr .dhach { display: block; width: 100%; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--dh-line); text-align: left; font: 500 13px/1.3 Figtree; color: var(--dh-muted); }
.scr .dhach b { color: var(--dh-body); font-weight: 600; }
.scr .achbar { display: block; height: 3px; border-radius: 2px; background: var(--dh-gold-soft); margin-top: 9px; position: relative; overflow: hidden; }
.scr .achbar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--dh-gold); border-radius: 2px; transition: width .4s var(--ease-out); }
/* Saved (§0f): the total large in sage, the twelve weeks as a chart with their weeks labelled, then every shop as a row, newest first */
.scr .svtot { display: flex; align-items: baseline; gap: 8px; padding: 10px 0 0; flex-wrap: wrap; }
.scr .svfig { font: 700 44px/1 Rubik; letter-spacing: -.03em; color: var(--dh-sage-ink); font-variant-numeric: tabular-nums; }
.scr .svtot > span { font: 500 15px/1.2 Figtree; color: var(--dh-muted); }
.scr .svchart { margin-top: 18px; padding: 14px 14px 10px; border-radius: 16px; background: var(--dh-sage); color: var(--dh-bar); }
.scr .svchart .dhbars.big { width: 100%; height: 96px; margin: 0; }
.scr .svwk { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 2px; margin-top: 8px; }
.scr .svwk span { font: 600 12px/1.2 Figtree; color: var(--dh-sage-ink); text-align: center; white-space: nowrap; overflow: visible; visibility: hidden; }
.scr .svwk span.odd { visibility: visible; }
.scr .sgrows { list-style: none; margin: 14px 0 0; padding: 0; }
.scr .sgrow { border-bottom: 1px solid var(--dh-line); }
.scr .sgrow .svopen { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 10px; align-items: center; width: 100%; min-height: 56px; padding: 8px 0; text-align: left; font: inherit; color: inherit; border-radius: 10px; } /* the row is the button (Nov 8): it opens the shop's receipt */
.scr .sgrow .svopen:active { background: var(--soft); }
.scr .sgrow .svch { display: inline-flex; gap: 3px; min-width: 64px; }
.scr .sgrow .svch .stc { font-size: 12px; padding: 2px 7px; }
.scr .sgrow .svch .stc2 { display: inline-flex; gap: 3px; }
.scr .svwho { display: grid; gap: 2px; min-width: 0; }
.scr .svwho b { font: 700 15px/1.2 Figtree; color: var(--dh-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .svwho small { font: 500 13px/1.2 Figtree; color: var(--dh-muted); }
.scr .svamt { display: grid; gap: 2px; justify-items: end; text-align: right; }
.scr .svamt b { font: 800 15px/1.2 Rubik; letter-spacing: -.01em; color: var(--dh-ink); font-variant-numeric: tabular-nums; }
.scr .svamt small { font: 600 13px/1.2 Figtree; color: var(--dh-sage-ink); font-variant-numeric: tabular-nums; }
.scr .svamt small:empty { display: none; }
.scr .dsfoot { display: block; margin-top: 14px; text-align: center; font: 500 13px/1.45 Figtree; color: var(--dh-muted); text-wrap: balance; }
/* the compact pair: the icon top-left, the store chip or the Basqet+ tag top-right, the title and one fact at the foot */
.scr .dhgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.scr .dhgrid .dht { display: grid; align-content: start; justify-items: start; min-height: 104px; padding: 16px 16px 14px; }
.scr .dhgrid .dht .hic { margin-bottom: 20px; }
.scr .dhgrid .dht > b { display: block; font: 700 15px/1.2 Figtree; letter-spacing: -.005em; color: inherit; }
.scr .dhgrid .dht > small { display: block; margin-top: 5px; font: 500 13px/1.3 Figtree; color: var(--dh-muted); max-width: 100%; }
.scr .dhgrid .dht > small > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .dhgrid .dht > small > span:first-child { color: var(--dh-body); font-weight: 600; }
.scr .dht .dcorner { position: absolute; top: 15px; right: 14px; display: inline-flex; gap: 3px; }
.scr .dht .dcorner .stc { font-size: 12px; padding: 2px 8px; }
.scr .dht .dcorner .stc2 { display: inline-flex; gap: 3px; }
.scr .dht .dtag { position: absolute; top: 15px; right: 14px; font-size: 12px; padding: 2px 8px; }
.scr .dht .ddot { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-green); box-shadow: 0 0 0 3px var(--dh-tile); }
/* the progress ring on the Achievements screen: a thin wheat arc around a badge */
.scr .bring { position: relative; display: inline-block; width: var(--bs); height: var(--bs); }
.scr .bring .bdg { position: relative; z-index: 1; }
.scr .bring .ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); overflow: visible; }
.scr .bring .ring circle { fill: none; stroke: var(--dh-track); stroke-width: 2; }
.scr .bring .ring .arc { stroke: var(--dh-gold); stroke-linecap: round; }
/* one quiet line under the cards: the freshness stamp */
.scr .dhline { display: block; text-align: center; font: 500 13px/1.45 Figtree; color: var(--dh-muted); padding: 0 8px; text-wrap: balance; }
.scr .dhline span { white-space: nowrap; }
/* ---------- Home's sub-screens: Top deals (§0a) and Achievements (§0b): the list header's round ‹ and centred title, then a scroller ---------- */
.scr .dsub { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; color: var(--dh-ink); }
.scr .dsub .ahd { flex: none; }
.scr .dst { display: flex; align-items: center; min-height: 34px; font: 400 30px/1.05 var(--serif); letter-spacing: -.012em; color: var(--dh-title); }
.scr .dsb { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 0 16px 18px; }
.scr .dsb::-webkit-scrollbar { display: none; }
/* the quality chips, the Search card's segmented control: Standard first, since Top deals never lists what Standard drops */
.scr .dstops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 12px 16px 0; padding: 3px; border-radius: 12px; background: var(--dh-track); }
.scr .dstops button { min-height: 34px; padding: 0 2px; border-radius: 9px; text-align: center; color: var(--dh-body); font: 600 13px/1 Figtree; white-space: nowrap; transition: background .2s var(--ease-out), color .2s var(--ease-out); }
.scr .dstops button[aria-pressed="true"] { background: var(--fill); color: var(--fill-ink); }
.scr .dstops.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } .scr .dstops.five button { font-size: 13px; }
/* Search (§0e): the list's field at the top, the Try words, the item's name over its rows, the gap column */
.scr .ssrch { margin: 10px 16px 0; }
/* the size words (Nov 23, 2026): under the quality chips when the item has sizes; the five chips fill the row, so the sizes take
   the next line, a step smaller than the control above them, the same word chips My List's amount pill opens */
.scr .sszw { flex: none; }
.scr .ssz { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 16px 0; }
.scr .ssz .szc { min-height: 30px; padding: 0 12px; font-size: 14px; }
.scr .sword { font: inherit; color: var(--fg-green); text-decoration: underline; text-underline-offset: 3px; }

.scr .dsum.miss b { color: var(--dh-ink); }
.scr .shead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.scr .shead b { font: 700 17px/1.2 Figtree; color: var(--dh-ink); }
.scr .shead .for { margin-left: auto; }
.scr .sgap { font: 600 13px/1.2 Figtree; }
.scr .sbest.closest, .scr .dwas .sbest.closest { color: var(--body); background: var(--soft); } /* nothing meets the tier: the top row is the closest, not a pick (Nov 8) */
.scr .dwhen .sbest { margin-left: 6px; }
.scr .sbest, .scr .dwas .sbest { display: inline-flex; align-items: center; font: 800 12px/1.6 Rubik; letter-spacing: .04em; text-transform: uppercase; color: var(--plum-ink); background: var(--plum); padding: 0 7px; border-radius: 999px; font-style: normal; }
.scr .srow .dwhen { margin-top: 1px; }

.scr .dsum { margin: 12px 2px 6px; font: 500 13px/1.4 Figtree; color: var(--dh-muted); }
.scr .drows { list-style: none; margin: 0; padding: 0; }
/* a deal row: three lines, the item word with its Q and the deal price, the exact product with the regular struck through and the
   dollars off in gold, the store and the week with Add to list */
.scr .drow { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; align-items: center; padding: 11px 0 12px; border-bottom: 1px solid var(--dh-line); }
.scr .drow.pic { grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 8px; }
.scr .drow .dth { grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--dh-track); position: relative; align-self: start; margin-top: 2px; }
.scr .drow .dth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scr .drow .dth::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(22, 33, 27, .08); }
.scr .drow .dth .ph { display: grid; place-items: center; width: 100%; height: 100%; font: 800 20px Rubik; color: var(--dh-muted); }
.scr .drow:last-child { border-bottom: 0; }
.scr .dname { font: 700 15px/1.25 Figtree; color: var(--dh-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr .dpr { display: inline-flex; align-items: center; gap: 8px; justify-self: end; }
.scr .dpr > b { font: 800 17px/1 Rubik; letter-spacing: -.02em; color: var(--dh-title); font-variant-numeric: tabular-nums; }
.scr .dpr .qb b { font-size: 13px; min-width: 0; color: var(--dh-ink); } .scr .dpr .qb { gap: 3px; }
.scr .dprod { font: 500 13px/1.3 Figtree; color: var(--dh-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr .dwas { display: inline-flex; align-items: baseline; gap: 7px; justify-self: end; font: 500 13px/1.2 Figtree; color: var(--dh-muted); font-variant-numeric: tabular-nums; }
.scr .dwas s { text-decoration-thickness: 1px; }
.scr .dwas em { font: 700 13px/1.2 Figtree; font-style: normal; color: var(--dh-gold); }
.scr .dwhen { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1.2 Figtree; color: var(--dh-muted); margin-top: 3px; white-space: nowrap; min-width: 0; }
.scr .dwhen .stc.sm { font-size: 12px; padding: 2px 7px; }
.scr .dadd { justify-self: end; margin-top: 3px; display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 999px; font: 700 13px/1 Figtree; color: var(--fg-brand); border: 1.5px solid var(--fg-brand); background: none; }
.scr .dadd.on { color: var(--dh-muted); border-color: transparent; padding: 0 2px; }

.scr .dfree { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 0 6px; font: 600 13px/1.2 Figtree; color: var(--dh-muted); }
.scr .dfree .plus { margin: 0; }
.scr .dnote { margin: 14px 0 0; text-align: center; font: 500 13px/1.4 Figtree; color: var(--dh-muted); }
/* achievements: six tiles two across, the earned in colour with the date of the shop that earned them, the rest ghosted with the gold ring */
.scr .bgrid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scr .btile { background: var(--dh-tile); border-radius: 20px; box-shadow: 0 0 0 1px var(--dh-line); padding: 18px 14px 16px; display: grid; justify-items: center; text-align: center; gap: 2px; color: var(--dh-muted); }
.scr .btile.on { color: var(--dh-ink); }
.scr .btile .bdg, .scr .btile .bring { margin-bottom: 10px; }
.scr .btile .bdg { overflow: visible; }
.scr .btile > b { font: 700 15px/1.2 Figtree; letter-spacing: -.005em; color: inherit; }
.scr .btile > small { font: 500 13px/1.35 Figtree; color: var(--dh-muted); text-wrap: balance; }

/* ---------- the shop header (Oct 21, 2026): the store chip at full size as the title, the list's name under it, the running
   total at the right, a 2px progress bar in the store colour; the green bar below keeps the live line and the action row ---------- */
.scr .shd { position: relative; display: block; padding: 10px 16px 0 8px; }
.scr .shr1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.scr .shr2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; padding: 6px 0 0 40px; }
.scr .shname { font: 500 13px/1.2 Figtree; color: var(--dh-muted, var(--muted)); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .shd .hbk.sm { position: static; width: 32px; min-height: 32px; padding: 0; justify-content: center; border-radius: 50%; }
.scr .shdt { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.scr .shdc { display: inline-flex; gap: 4px; max-width: 100%; }
.scr .stc.shbig { font: 800 20px/1.1 Rubik; letter-spacing: -.01em; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.scr .shdt small { font: 500 13px/1.2 Figtree; color: var(--muted); padding-left: 2px; }
.scr .shrun { flex: none; font: 600 13px/1.2 Figtree; color: var(--dh-muted, var(--muted)); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.scr .shrun .run { font: 800 13px/1 Rubik; color: var(--fg-brand); letter-spacing: -.01em; }
.scr .shrun .runt { font-weight: 700; color: var(--dh-ink, var(--ink)); } /* the dark tokens where the screen is dark */
.scr .shbar { grid-column: 1 / -1; display: block; height: 2px; margin: 10px -16px 0 -8px; background: var(--sand); overflow: hidden; }
.scr .shfill { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--w, 0)); transition: transform .3s var(--ease-out); }
.scr .shd + .body { padding-top: 4px; }
.scr .shd .hbk svg { width: 14px; height: 14px; transform: rotate(90deg); color: var(--fg-brand); }
.scr .legend i { display: none; } /* the icons and their words alone, 12px apart, so a wrapped legend never ends a line on a dot */
.scr .legend { gap: 4px 12px; }

/* ---------- six fixes from a phone walk-through (Oct 21, 2026, second pass) ---------- */
/* 1. the row: word · icons · amount pill; same sizes, 10px between icons, 12px from the last icon to the pill */
.scr .ric .qpill, .scr .ric .qinl { margin: 0 0 0 2px; }
/* 2. the list header: the name centred as the title, 26px bold forest with its chevron in green (Oct 26), the count under it
   in muted 13px, centred, never beside it; a small round ‹ at the far left and Edit as plain text at the far right, all on
   the cream, no box */
.scr .ahd { padding: 8px 56px 0; }
.scr .ahd .ahc { display: grid; justify-items: center; }
.scr .ahd .lname { font: 400 30px/1.05 var(--serif); letter-spacing: -.012em; color: var(--dh-title); min-height: 34px; gap: 6px; }
.scr .ahd .lname svg { width: 15px; height: 15px; color: var(--fg-brand); }
.scr .ahd small { font: 500 13px/1.3 Figtree; color: var(--muted); text-align: center; margin-top: 1px; }
.scr .ahd .hbk.rnd { left: 10px; top: 6px; width: 32px; height: 32px; min-height: 32px; padding: 0; justify-content: center; border-radius: 50%; background: none; }
.scr .ahd .hbk.rnd svg { width: 15px; height: 15px; }
.scr .ahd .hbk.rnd:active { background: var(--soft); }
.scr .ahd .edl { position: absolute; right: 12px; top: 6px; min-height: 32px; padding: 0 4px; font: 600 15px Figtree; color: var(--fg-brand); background: none; border-radius: 8px; }
.scr .ahd .edl:active { background: var(--soft); }
/* 5. the More options panel is a different place: the open row's card gets a 2px green left edge; the panel under it sits on
   a darker cream inset 8px with a 12px radius and a soft inner shadow, How you like it first, the options as rows with a
   thin divider, a small notch under the More options button; the rest of the list dims 20% while a panel is open */
.scr .svrow.openrow { box-shadow: inset 2px 0 0 var(--fg-brand); }
.scr .svexp { background: none; border-top: 0; padding: 0 8px 8px; position: relative; }
.scr .svexp::before { content: ""; position: absolute; top: 1px; right: 44px; width: 10px; height: 10px; background: var(--soft); transform: rotate(45deg); border-radius: 2px; box-shadow: inset 1px 1px 0 rgba(22,33,27,.06); z-index: 1; }
.scr .svexpin { background: var(--soft); border-radius: 12px; box-shadow: inset 0 2px 6px rgba(22,33,27,.07), inset 0 0 0 1px rgba(22,33,27,.04); padding: 6px 10px 6px; margin-top: 6px; }
.scr .svexpin .setrow { margin: 0; padding: 6px 2px 8px; border-bottom: 1px solid rgba(22,33,27,.1); }
.scr .svexpin .opt, .scr .svexpin .opt.save, .scr .svexpin .opt.both, .scr .svexpin .opt.other { background: none; border: 0; border-top: 1px solid rgba(22,33,27,.08); border-radius: 0; margin: 0; padding: 8px 2px; animation: none; min-height: 48px; }
.scr .svexpin .setrow + .opt { border-top: 0; }
.scr .svexpin .opt.cur { box-shadow: none; }
.scr .svexpin .lnk.back { margin: 6px auto 2px; }
.scr .svrows.panel .svrow:not(.openrow), .scr .svrows.panel .svsec { opacity: .8; transition: opacity .2s linear; }
.scr .svrow { transition: opacity .2s linear, box-shadow .2s linear; }
/* 6. the store sheet head: the name as the title at 20px in the store colour, the sparkle at the right of it, one line under */
.scr .sheet.sv .svhead, .svhead { display: block; text-align: left; padding: 0 2px 8px; }
.scr .svtl { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.scr .sheet.sv .svname, .svname { font: 800 20px/1.15 Rubik; letter-spacing: -.015em; }
.scr .svline { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 3px; font: 500 13px/1.3 Figtree; color: var(--muted); }
.scr .svline > b { font: 800 13px Rubik; color: var(--ink); font-variant-numeric: tabular-nums; }
.scr .svline i { font-style: normal; }
.scr .svqb { display: inline-flex; align-items: center; gap: 2px; font: 600 12px/16px Figtree; color: var(--muted); background: var(--soft); padding: 0 6px; border-radius: 999px; }
.scr .svqb b { font: 700 12px Figtree; color: var(--body); font-variant-numeric: tabular-nums; }
.scr .sheet.sv .sh.svbar { justify-content: space-between; }
/* the empty state: a compact 140px card under the chips, the Optimize block pinned under it in its disabled state */
.scr .empty { margin: 10px 10px 0; height: 140px; padding: 0 16px; box-sizing: border-box; display: grid; place-content: center; justify-items: center; gap: 2px; background: var(--paper); border: 1px solid var(--sand); border-radius: 14px; text-align: center; }
.scr .empty span { color: var(--muted); } .scr .empty span svg { width: 26px; height: 26px; }
.scr .empty b { margin-top: 4px; font: 700 15px Figtree; color: var(--ink); }
.scr .empty small { margin: 0; font: 500 13px Figtree; color: var(--muted); }
.scr .gbar.optb.off .obgo { opacity: .45; }
.scr .obgo[disabled] { cursor: default; }
.scr .obgo[disabled] .qmark { box-shadow: none; }
.scr .obgo[disabled]:active .qmark { transform: none; }
/* the takeover on phones (under 768px): the screen is the viewport; denser inside (one-line header, 40px add field, 32px chips, 40px rows) and the Optimize block as its own card */
@media (max-width: 767px) {
  .scr .body { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  /* the pinned block, the shop bar and the sheets keep clear of the home indicator */
  .scr .gbar.optb { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .scr .bar.shop { margin-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .scr .sheet { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .scr .finish { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  html.demo-open .scr .ahd { padding: 6px 48px 0; }
  html.demo-open .scr .ahd small { margin: 0; }
  html.demo-open .scr .ahd .hbk.rnd, html.demo-open .scr .ahd .edl { top: 4px; }
  html.demo-open .scr .srch { margin: 4px 12px 0; }
  html.demo-open .scr .srch input { min-height: 40px; }
  html.demo-open .scr .chips { padding: 6px 12px 0; }
  html.demo-open .scr .body > .sec, html.demo-open .scr .sec { padding: 16px 16px 6px; }
  html.demo-open .scr .body > .sec:first-child { padding-top: 8px; }
  html.demo-open .scr .rows { margin: 0 8px; }
  html.demo-open .scr .lrow:not(.shop) { padding: 0 12px; }
  html.demo-open .scr .legend { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 4px 12px; gap: 10px; font-size: 12px; line-height: 14px; }
  html.demo-open .scr .legend::-webkit-scrollbar { display: none; }
  html.demo-open .scr .legend span { flex: none; }
  /* the Optimize block as its own control: a white card with the hairline, a 12px radius, 8px inset, a faint top shadow and a
     2px green rule along its top; the label in small caps on the slider's row, the Q mark at 48px with See stores beside it */
  html.demo-open .scr .gbar.optb { margin: 4px 8px calc(8px + env(safe-area-inset-bottom)); padding: 8px 12px 10px; background: var(--paper); border: 1px solid var(--sand); border-top: 2px solid var(--fg-brand); border-radius: 12px; box-shadow: 0 -8px 16px -12px rgba(22,33,27,.3); }
  html.demo-open .scr .legend + .gbar.optb { padding-top: 8px; }
  html.demo-open .scr .obhd { min-height: 14px; }
  html.demo-open .scr .obhd > span { font: 600 13px/1 Figtree; font-variant: small-caps; letter-spacing: .04em; text-transform: none; }
  html.demo-open .scr .obhd > span .plus { font-variant: normal; }
  html.demo-open .scr .goal.compact .gslider { margin: 10px 8px 7px; }
  html.demo-open .scr .gsub { margin-top: 4px; }
  html.demo-open .scr .obgo { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; min-height: 48px; }
  html.demo-open .scr .qmark { width: 48px; height: 48px; }
  html.demo-open .scr .qmark .mk { width: 24px; height: 24px; }
  html.demo-open .scr .obgo > small { font-size: 13px; }
}
/* 3. the receipt: a cream slip with a torn top edge that feeds up from the bottom edge over 500 ms, its lines printing one by
   one, the mark stamped last; the share slip and the page's result are the same slip, still */
.rcpt { position: relative; background: var(--paper); color: var(--ink); padding: 22px 16px 14px; font: 500 13px/1.4 Figtree; clip-path: polygon(0 6px, 2% 2px, 5% 8px, 11% 3px, 14% 7px, 21% 1px, 24% 6px, 30% 4px, 36% 8px, 39% 2px, 46% 7px, 52% 3px, 56% 8px, 63% 1px, 67% 5px, 74% 8px, 78% 2px, 85% 6px, 90% 1px, 94% 7px, 100% 4px, 100% 100%, 0 100%); border-radius: 0 0 6px 6px; display: grid; gap: 6px; justify-items: start; }
.rcpt .rl { margin: 0; animation: lineIn .22s ease-out both; animation-delay: calc(.5s + var(--i, 0) * .18s); }
.rcpt.still .rl, .rcpt.still .rmk { animation: none; }
@keyframes lineIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.rcpt .rst { display: flex; align-items: center; gap: 8px; width: 100%; padding-bottom: 8px; border-bottom: 1px dashed var(--sand); }
.rcpt .rst small { font: 600 12px Figtree; color: var(--muted); margin-left: auto; white-space: nowrap; }
.rcpt .rspent { display: flex; align-items: baseline; gap: 7px; font: 600 15px Figtree; color: var(--body); }
.rcpt .rspent b { font: 800 32px/1 Rubik; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rcpt .rsaved { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: 7px; font: 600 15px Figtree; color: var(--body); }
.rcpt .rsaved .rvs { grid-column: 1 / -1; font: 500 12px/1.3 Figtree; color: var(--muted); } /* the one small line under the saved figure (Nov 8) */
.rcpt .rsaved b { font: 800 22px/1 Rubik; letter-spacing: -.025em; color: var(--fg-green); font-variant-numeric: tabular-nums; }
/* the slip fits the screen it is on: every line wraps inside it, nothing runs off the right edge */
.rcpt { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.rcpt .rl { min-width: 0; max-width: 100%; }
.rcpt .rst { flex-wrap: wrap; row-gap: 4px; }
.rcpt .rst small { white-space: normal; text-align: right; }
.rcpt .rcart, .rcpt .rnext { font: 500 13px/1.4 Figtree; color: var(--body); }
/* a past shop's items (Nov 8): what was bought, where, for how much; one line each */
/* a past shop's lines (Nov 22, 2026): the item's word as a small label, under it the exact product (brand, product, size) wrapping as
   far as it needs, the line's price at the right on the product's first line; a two-store shop groups them under each store's pill */
.rcpt .ritems { list-style: none; margin: 2px 0 0; padding: 10px 0 2px; width: 100%; display: grid; gap: 9px; border-top: 1px dashed var(--sand); }
.rcpt .ritems li.rit { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 1px; align-items: start; min-width: 0; }
.rcpt .ritems .ritw { grid-column: 1 / -1; font: 700 12px/1.25 Figtree; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rcpt .ritems .ritp { font: 500 15px/1.3 Figtree; color: var(--ink); min-width: 0; overflow-wrap: break-word; }
.rcpt .ritems .ritp.none { color: var(--muted); }
.rcpt .ritems .ritz { color: var(--muted); } /* the size, lighter; demo.js sizeTail glues the dot so a wrapped line never opens on it */
.rcpt .ritems li.rit > b { font: 700 15px/1.3 Rubik; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcpt .ritems li.ritg { display: flex; align-items: center; gap: 8px; min-width: 0; padding-top: 2px; }
.rcpt .ritems li.ritg ~ li.ritg { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--sand); }
.rcpt .ritems li.ritg .stc { font-size: 12px; padding: 2px 8px; margin: 0; flex: none; }
.rcpt .ritems li.ritg span:not(.stc) { font: 500 13px/1.3 Figtree; color: var(--muted); }
.rcpt .ritems li.ritg b { margin-left: auto; font: 700 13px/1.3 Rubik; color: var(--body); font-variant-numeric: tabular-nums; }
.scr .finish.print .fshare.fagain { background: var(--fill); color: var(--fill-ink); border-color: var(--fg-brand); }
/* a past shop's + (Nov 23, 2026): on the item's label line at the right, over the price; quiet beside Shop again, a 44 px reach.
   Tapped, the item joins the current list as bought and the line reads On your list in its place. */
.rcpt .ritems li.rit.ad .ritw { grid-column: 1; align-self: center; }
.rcpt .ritems .radd { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
.rcpt .ritems button.radd { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: var(--fg-green); cursor: pointer; }
.rcpt .ritems button.radd svg { width: 14px; height: 14px; }
.rcpt .ritems button.radd::after { content: ""; position: absolute; inset: -10px; }
.rcpt .ritems span.radd.on { font: 600 12px/24px Figtree; color: var(--fg-green); white-space: nowrap; }
.rcpt .ritems span.radd.on.fresh { animation: lineIn .2s ease-out both; }
@media (prefers-reduced-motion: reduce) { .rcpt .ritems span.radd.on.fresh { animation: none; } }
/* printed once, a re-render keeps the slip where it is (no second feed) */
.scr .finish.print.shown .rwrap, .scr .finish.print.shown .ract { animation: none; }
/* Save as template, in edit mode, under the rows */
.scr .tplsave { display: block; margin: 14px auto 6px; min-height: 40px; padding: 0 16px; border-radius: 12px; font: 700 15px Figtree; color: var(--fg-brand); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--fg-brand); }

.rcpt .rmk { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font: 800 13px Rubik; color: var(--fg-brand); transform-origin: left center; animation: stamp .15s var(--ease-pop) both; animation-delay: calc(.5s + (var(--n, 5) + .4) * .18s); }
.rcpt .rmk .mk { width: 22px; height: 22px; }
@keyframes stamp { from { opacity: 0; transform: scale(1.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
.rcpt .rdisc { font: 500 12px/1.3 Figtree; color: var(--muted); margin-top: 2px; }
.scr .finish.print { justify-content: flex-end; padding: 0; overflow: hidden; }
.scr .finish.print .rwrap { display: grid; gap: 12px; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); width: 100%; min-width: 0; animation: feed .5s cubic-bezier(.22, .9, .3, 1) both; filter: drop-shadow(0 -10px 22px rgba(20,30,24,.18)); }
@keyframes feed { from { transform: translateY(110%); } to { transform: none; } }
.scr .finish.print .ract { display: grid; gap: 12px; justify-items: center; animation: lineIn .25s ease-out 1.9s both; }
.scr .finish.print .fshare { margin-top: 0; }
.scr .finish.print .ract .lnk { color: var(--fg-green); opacity: 1; }
.scr .shwrap { margin: 2px 0 12px; }
.scr .shwrap .rcpt { box-shadow: 0 0 0 1px var(--sand); }
/* the cascade on Finish shop: the ticked rows pop one by one, 60 ms apart, while the total recounts them */
.scr .lrow.shop.casc { animation: casc .32s ease-out both; animation-delay: calc(var(--n, 0) * 60ms); }
.scr .lrow.shop.casc .cb { animation: boxpop .45s var(--ease-pop) both; animation-delay: calc(var(--n, 0) * 60ms); }
@keyframes casc { 0% { opacity: .5; } 45% { opacity: 1; transform: translateX(3px); } 100% { opacity: .5; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rcpt .rl, .rcpt .rmk, .scr .finish.print .rwrap, .scr .finish.print .ract, .scr .lrow.shop.casc, .scr .lrow.shop.casc .cb { animation: none !important; } }
/* the slip and its buttons sit on cream from just under the torn edge down, so nothing of the shop bar shows through */
.scr .finish.print .rwrap { background: linear-gradient(to bottom, transparent 8px, var(--dh-pg) 8px); }
.scr .finish.print .ract { padding-bottom: 2px; }

/* ---------- the slider step explores (Oct 21, 2026): each stop reached lights its name briefly, the sub-line crossfades
   (150 ms), and a small "Done, this one" pill completes the step once two or more stops have been touched ---------- */
.scr .goal.bump .gstops button.cur span { animation: litname .6s ease-out both; border-radius: 6px; padding: 0 4px; margin: 0 -4px; }
@keyframes litname { 0% { background: var(--tint); color: var(--fg-brand); } 100% { background: transparent; } }
.scr .gsub.flip { animation: subfade .15s ease-out both; }
@keyframes subfade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scr .goal.bump .gstops button.cur span, .scr .gsub.flip { animation: none; } }


/* ---------- the grown catalogue (Oct 25, 2026) ---------- */
/* not-scored goods (household): the words sit where the Q badge would */
.scr .nsq { font: 600 12px/1.2 Figtree; color: var(--muted); white-space: nowrap; }
.scr .svrow .prq .nsq { margin-right: 6px; }
/* a row not in the demo: the word, and a quiet line under it */
.scr .nm1.ntw { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
.scr .nm1.ntw > b { min-height: 0; }
.scr .ntl { display: block; font: 500 12px/1.3 Figtree; color: var(--muted); white-space: normal; }
.scr .lrow.shop .ntl { margin-top: 2px; }
/* an item without a photo: a plain sand tile with its first letter */
.scr .ph { display: grid; place-items: center; width: 100%; height: 100%; font: 800 17px/1 Rubik; font-style: normal; color: var(--muted); background: var(--sand); }
/* Back to stores (Oct 28): ‹ All stores at the store sheet's top left, back to Where to shop this list; a return slides in from the left */
.scr .sheet.sv .svback { display: inline-flex; align-items: center; gap: 1px; min-height: 32px; padding: 0 10px 0 2px; margin-left: -4px; border: 0; border-radius: 999px; background: none; color: var(--fg-brand); font: 700 13px/1 Figtree; cursor: pointer; }
.scr .sheet.sv .svback svg { width: 15px; height: 15px; transform: rotate(90deg); }
.scr .sheet.sv .svback:active { background: var(--soft); }
.scr .sheet.sv .sh.svbar .plus { position: absolute; left: 50%; translate: -50% 0; }
.scr .sheet.sv .sh.svbar { position: relative; }
.scr .sheet.back { animation: sheetBack .24s cubic-bezier(.22, .8, .24, 1) both; }
@keyframes sheetBack { from { transform: translateX(-18px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- the store sheet head (Oct 28, 2026): the total and the list Q are a pair on one baseline, the total at 22px in
   ink and the Q badge at 22px in its colour (the number too); the coverage and the rank at this stop drop to a muted 13px
   line under them. Tapping the badge opens Why this list Q. ---------- */
.scr .sheet.sv .svpair { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; min-height: 26px; }
.scr .sheet.sv .svtot { font: 800 22px/1 Rubik; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.scr .sheet.sv .svq { display: inline-flex; align-items: baseline; border: 0; background: none; padding: 6px 8px; margin: -6px -8px; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; color: inherit; font: inherit; }
.scr .sheet.sv .svq:active { background: var(--soft); }
.scr .sheet.sv .svq .qb { --s: 22px !important; gap: 3px; align-items: baseline; }
.scr .sheet.sv .svq .qb b { font: 800 15px/1 Rubik; letter-spacing: -.02em; color: inherit; min-width: 0; }
.scr .sheet.sv .svline { margin-top: 3px; font: 500 13px/1.3 Figtree; color: var(--muted); gap: 5px; }
/* Why this list Q: the items under the list's average, lowest first, each with its product, its reason and its Q */
.scr .sheet.why.whyl { max-height: 80%; }
.scr .wrows { list-style: none; margin: 0 0 10px; padding: 0; overflow-y: auto; min-height: 0; border-top: 1px solid var(--sand); }
.scr .wrows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--sand); }
.scr .wrows .wln { display: grid; gap: 1px; min-width: 0; }
.scr .wrows .wln b { font: 700 15px/1.25 Figtree; color: var(--ink); }
.scr .wrows .wln small { font: 500 13px/1.3 Figtree; color: var(--muted); }
.scr .wrows .qb { --s: 20px !important; gap: 3px; } .scr .wrows .qb b { font-size: 13px; min-width: 0; }
.scr .wnone { margin: 0 0 12px; font: 500 15px/1.4 Figtree; color: var(--body); }

/* ---------- the amount everywhere (Oct 28, 2026): the same pill on store sheet rows (line 2, after the size) and shop rows
   (line 2, beside the size, left of the Q badge); tapped, the inline − amount + takes its place. Ticked shop rows glide
   down under the In cart divider; the running total's "3 to go" sits under it in the header. ---------- */
.scr .svrow .bp .pamt { display: inline-flex; align-items: center; flex: none; }
.scr .svrow .bp .qpill, .scr .lrow.shop .pl .qpill { height: 18px; font-size: 12px; line-height: 18px; }
.scr .svrow .bp .qinl, .scr .lrow.shop .pl .qinl { height: 22px; gap: 3px; }
.scr .svrow .bp .qinl button, .scr .lrow.shop .pl .qinl button { width: 22px; height: 22px; font-size: 15px; }
.scr .svrow .bp .qinl b, .scr .lrow.shop .pl .qinl b { font-size: 13px; min-width: 40px; }
.scr .lrow.shop .pl .qpill { color: var(--muted); }
.scr .lrow.shop.done .pl .qpill, .scr .lrow.shop.gone .pl .qpill { pointer-events: none; }
.scr .lrow.shop { transition: opacity .2s linear, transform .32s var(--ease-out); }
.scr .sec.sto.incart { padding-top: 14px; }
.scr .sec.sto.incart > span { display: flex; align-items: center; gap: 8px; width: 100%; }
.scr .sec.sto.incart > span::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--sand); }
.scr .shtogo { font: 600 13px/1.2 Figtree; color: var(--dh-muted, var(--muted)); white-space: nowrap; }
.scr .shopact .quiet:empty { min-height: 1px; }
@media (prefers-reduced-motion: reduce) { .scr .lrow.shop { transition: none; } }

/* ---------- quality icons as chips (Oct 31, 2026): off = a 24px round chip, light sage, the glyph stroked in the forest green at
   about 1.75px, so they read as buttons; on = forest fill, the glyph in cream, with the pop and the ring as before. The small
   marks beside a product name (store sheet, shop rows) are the same chip at their own size. The legend under the list shows the
   chips with their words at full size, wrapping so no line holds more than three ---------- */
.scr .qi { width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--fg-brand); transition: background-color .12s linear, color .12s linear, transform .12s var(--ease-pop); }
.scr .qi svg { width: 16px; height: 16px; stroke-width: 2.5; }
.scr button.qi::before { inset: -8px -4px; }
.scr button.qi:active { transform: scale(.94); }
.scr .qi.on { background: var(--fill); color: var(--fill-ink); }
.scr .qi.on svg .cut { stroke: var(--fill); }
@media (hover: hover) { .scr button.qi:hover { color: var(--fg-brand); background: var(--tint-2); } .scr button.qi.on:hover { background: var(--fill); color: var(--fill-ink); } }
.scr .qi.sm { width: var(--s, 14px); height: var(--s, 14px); }
.scr .qi.sm svg { width: 70%; height: 70%; stroke-width: 2.6; }
.scr .qi.pop::after { inset: -2px; }
.scr .ric { gap: 8px; }
.scr .ric .qpill, .scr .ric .qinl { margin: 0 0 0 4px; }
.scr .setrow .qis { gap: 8px; }
.scr .setrow .qi, .scr .legend .qi { color: var(--fg-brand); }
.scr .setrow .qi.on { color: var(--fill-ink); }
.scr .legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 6px 16px 8px; font: 500 13px/16px Figtree; color: var(--body); }
.scr .legend span { gap: 6px; }
.scr .legend svg { width: 16px; height: 16px; color: inherit; }
html.demo-open .scr .legend { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 6px 16px 8px; gap: 6px 18px; font-size: 13px; line-height: 16px; }
.scr .legend i.qi { display: inline-flex; } /* the dot separators are gone; the chip is an <i> too */

/* ---------- Shop mode, Nov 8, 2026: 64 px rows with a 48 px picture, the product name on one line (the full name on a tap-and-hold),
   the list word, the size and the pill on one line under it; the check fills in 150 ms and holds 400 ms before the row slides
   (300 ms) under the In cart divider, the rows around it closing the gap; one 56 px footer, Finish shop filled at the left (live
   once one row is in cart), End shop quiet at the right. The money line is gone: the saved figure belongs to the receipt. ---------- */
.scr .lrow.shop { grid-template-columns: 36px 48px minmax(0, 1fr) auto 26px; gap: 0 8px; padding: 8px 10px 8px 2px; min-height: 64px; height: 64px; box-sizing: border-box; transition: opacity .2s linear, transform .3s cubic-bezier(.25, .75, .3, 1); }
.scr .lrow.shop .cbw { width: 36px; height: 36px; }
.scr .lrow.shop .sth { width: 48px; height: 48px; border-radius: 11px; }
.scr .lrow.shop .nm { display: grid; gap: 2px; min-width: 0; max-width: 100%; align-content: center; justify-items: stretch; text-align: left; }
.scr .lrow.shop .nm1 { display: flex; align-items: center; justify-content: flex-start; min-width: 0; max-width: 100%; width: 100%; text-align: left; }
.scr .lrow.shop .nm1 > b { display: block; min-width: 0; flex: 1 1 auto; font: 800 15px/1.2 Rubik; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; max-width: 100%; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.scr .lrow.shop .nm1 .qis { flex: none; margin-left: 5px; }
.scr .lrow.shop .pl { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font: 500 13px/1.3 Figtree; color: var(--body); white-space: nowrap; overflow: hidden; }
.scr .lrow.shop .pl > span { overflow: hidden; text-overflow: ellipsis; }
.scr .lrow.shop .pl .lw { display: inline-block; font: 700 12px/1.2 Figtree; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex: none; }
.scr .lrow.shop .pl .qpill, .scr .lrow.shop .pl .qinl, .scr .lrow.shop .pl .stc { flex: none; }
.scr .lrow.shop .srt { gap: 2px; }
.scr .lrow.shop .rp { font-size: 15px; }
.scr .lrow.shop .swb { width: 26px; height: 26px; }
.scr .cb { transition: background .15s linear, border-color .15s linear; }
.scr .cb.stamped { animation: boxpop .3s var(--ease-pop); }
.scr .cb.stamped .mk { animation: stampin .15s var(--ease-out) both; }
@keyframes stampin { 0% { transform: scale(.5); opacity: 0; } 100% { transform: none; opacity: 1; } }
.scr .sec.sto.incart { transition: transform .3s cubic-bezier(.25, .75, .3, 1); }
.scr .rows.plain { overflow: visible; } /* a sliding shop row is never clipped by the card it is leaving */
.scr .lrow.shop.done, .scr .lrow.shop.gone { opacity: 1; } /* the fade sits on the row's parts, so the row itself stays opaque while it glides over others */
.scr .lrow.shop > * { transition: opacity .2s linear; }
.scr .lrow.shop.done > * { opacity: .5; }
.scr .lrow.shop.gone > * { opacity: .45; }
.scr .lrow.shop.gliding { z-index: 3; background: var(--paper); border-radius: 10px; box-shadow: 0 6px 16px -8px rgba(22, 33, 27, .28); border-top-color: transparent; }
.scr .shbot { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; flex: none; padding: 0 16px; border-top: 1px solid var(--sand); background: var(--dh-pg); }
.scr .shbot .abtn.fin { width: auto; min-height: 40px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.scr .shbot .abtn.fin[disabled] { opacity: .35; cursor: default; transform: none; }
.scr .shbot .lnk.end { color: var(--muted); opacity: 1; text-decoration: none; font: 600 15px Figtree; min-height: 40px; padding: 0 4px; }
.scr .shbot .lnk.end:active { color: var(--ink); }
@media (hover: hover) { .scr .shbot .lnk.end:hover { color: var(--ink); } }
.scr .legend, html.demo-open .scr .legend { position: static; z-index: auto; background: none; padding: 14px 16px 10px; font: 500 13px/16px Figtree; font-size: 13px; line-height: 16px; color: var(--muted); gap: 4px 12px; justify-content: center; flex-wrap: wrap; }
.scr .legend span { gap: 4px; }
.scr .legend .qi, .scr .legend i.qi { width: 16px; height: 16px; background: none; box-shadow: none; color: var(--muted); } /* glyphs alone, not chips: a muted line, not a row of buttons */
.scr .legend .qi svg, .scr .legend svg { width: 13px; height: 13px; color: inherit; }
.scr .legend + .gbar.optb, .scr .legend + .gbar { padding-top: 10px; }
@media (max-width: 767.98px) { .scr .shbot { height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); } }
@media (prefers-reduced-motion: reduce) { .scr .lrow.shop, .scr .sec.sto.incart, .scr .cb { transition: none; } .scr .cb.stamped, .scr .cb.stamped .mk { animation: none; } }

/* ---------- Nov 9, 2026, after the direction C build: the tier knob and the control fills ---------- */
/* 1. the tier knob is plum in both modes, 22 px, with a 2 px ring in the page colour so it reads on the card and on the sheet; the
   unselected stops are hairline rings; the selected tier's name is plum. (It was a 14 px forest dot: invisible on the forest card in dark.) */
.scr .goal.compact, .scr .gbar .goal.compact, .scr .sheet .goal.compact { --gtick: transparent; --gring: var(--line); --gcur: var(--plum); }
.scr .goal.compact .gtick, .scr .goal.compact .gtick.on, .scr .gbar .goal.compact .gtick, .scr .gbar .goal.compact .gtick.on { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gring); }
.scr .goal.compact .gth, .scr .gbar .goal.compact .gth { left: -11px; top: -10px; width: 22px; height: 22px; background: var(--plum); box-shadow: 0 0 0 2px var(--dh-pg); }
.scr .goal.compact .gslider:focus-within .gth, .scr .gbar .goal.compact .gslider:focus-within .gth { box-shadow: 0 0 0 2px var(--dh-pg), 0 0 0 4px var(--yellow); }
.scr .goal.compact .gstops button.cur, .scr .gbar .goal.compact .gstops button.cur { color: var(--plum); }
/* 2. the list header: the name alone, no count under it (the counts live on the Lists menu rows) */
.scr .ahd .ahc .lname { min-height: 40px; }
/* 3. the Lists card on Home: the title is Lists; the current list is a chip that opens the Lists menu; the card holds exactly three
   item rows (or one line while empty), one "and N more" line, the button row, and never grows */
.scr .dht.dhmain { display: block; padding: 18px; }
.scr .dhtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scr .lchip { display: inline-flex; align-items: center; gap: 4px; max-width: 55%; min-height: 32px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--soft); color: var(--dh-ink); font: 600 13px/1 Figtree; }
.scr .lchip > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .lchip svg { flex: none; width: 13px; height: 13px; color: var(--dh-muted); }
.scr .dhbody { display: block; width: 100%; text-align: left; font: inherit; color: inherit; margin-top: 12px; }
.scr .hitems { height: 96px; margin: 0; overflow: hidden; }
.scr .hempty { display: flex; align-items: center; height: 96px; font: 500 15px/1.3 Figtree; color: var(--dh-muted); }
.scr .hmore { display: block; min-height: 17px; margin-top: 8px; font: 500 13px/17px Figtree; color: var(--dh-muted); }
.scr .dhgo { margin-top: 14px; }
.scr .home.dh { position: relative; }
.scr .hmenu { position: absolute; left: 38px; top: 150px; right: auto; z-index: 9; } /* the Lists menu on Home sits under the chip, a sibling of the card so it stands above the dim (z 8); the glass card is its own stacking context */
/* 4. control fills: a control that sits on a card never shares the card's colour; --ctrl is a clear step above the card in dark
   (the audit, Nov 9: the knob, the stop dots, the tick box, the swap button, the quick-add result chips, the setting chips, Share
   and Save as template, the swap and Save more cards) */
.scr { --ctrl: var(--paper); }
.scr.dark { --ctrl: #2D5B48; }
.scr .cb, .scr .swb, .scr .rchip, .scr .opts button, .scr .fshare, .scr .tplsave, .scr .swopt, .scr .scard, .scr .carr, .scr .fq .share { background: var(--ctrl); }
.scr .rchip.hl { background: var(--fill); }
.scr .opts button.on { background: var(--fill); }
.scr .cb.done { background: var(--fill); }
.scr .swopt.gone { background: var(--soft); }
.scr .finish.print .fshare.fagain { background: var(--fill); }
.scr .menu button.nl { justify-content: flex-start; gap: 10px; color: var(--fg-brand); }
.scr .menu .nl .ic { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; flex: none; }
.scr .menu .nl .ic svg { width: 18px; height: 18px; }
/* the audit's other finds in dark: the quality chips at rest (a sage tint 8–19 levels off the card, no edge) take a hairline ring; the
   current list's highlight in the Lists menu takes the deeper sage; the quick-add chips and the store rows on the Find my stores sheet
   take the control fill, a clear step above their surface */
.scr.dark .ric .qi:not(.on), .scr.dark .setrow .qi:not(.on) { box-shadow: inset 0 0 0 1px var(--line); }
.scr.dark .menu button.on { background: var(--dh-sage-2); }
.scr.dark .chips .qc { background: var(--ctrl); }
.scr.dark .sheet.top3s .t3:not(.best) { background: var(--ctrl); }

/* ---------- depth (Nov 9, 2026): one light, top-left; shadow, highlight and layering, never bevels. docs/tokens.json depth ---------- */
.scr .dht.dhmain { box-shadow: inset 0 1px 0 var(--hi-hero), var(--sh-hero); }
.scr .rows, .scr .menu, .scr .drop, .scr .empty, .scr .btile, .scr .fcard2, .scr .shwrap .rcpt { box-shadow: inset 0 1px 0 var(--hi), var(--sh); }
.scr .rows, .scr .empty { border-color: var(--dh-line); }
.scr .menu { box-shadow: inset 0 1px 0 var(--hi), 0 0 0 1px var(--dh-line), 4px 10px 30px -8px rgba(0, 0, 0, .3), var(--sh); }
/* sheets and the Find my stores panel float over the page: page → cards → sheet */
.scr .sheet { box-shadow: inset 0 1px 0 var(--hi), var(--sh-sheet); }
html.demo-open .scr .gbar.optb, .scr .gbar.optb { box-shadow: inset 0 1px 0 var(--hi), var(--sh-sheet); }
.scr .shbot { background: var(--dh-pg-2); }
.scr .finish.print .rwrap { background: linear-gradient(to bottom, transparent 8px, var(--dh-pg-2) 8px); }
/* the icon is the tile: one botanical line icon at 44 px in wheat on each Home card, a single 1.5 px line at any size; the same icon as a
   watermark at 120 px, 7–8%, bleeding off the card's bottom-right (clipped by its own corner box, so the Lists menu is never clipped) */
.scr .hic { width: 44px; height: 44px; color: var(--dh-gold); }
.scr .hic svg path, .scr .hic svg circle, .scr .wm svg path, .scr .wm svg circle { vector-effect: non-scaling-stroke; }
.scr .wm { position: absolute; right: 0; bottom: 0; width: 104px; height: 104px; overflow: hidden; border-radius: 0 0 26px 0; pointer-events: none; opacity: var(--wm-op); color: var(--dh-gold); }
.scr .wm svg { position: absolute; left: 20px; top: 22px; width: 120px; height: 120px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.scr .dht > *:not(.wm):not(.dcorner):not(.dtag):not(.ddot):not(.menu) { position: relative; z-index: 1; }
.scr .dht .dcorner, .scr .dht .dtag, .scr .dht .ddot { z-index: 2; }
/* card titles in the serif at 22 px beside the icon; the Saved total and the plum button stay the loudest things */
.scr .dhtop { align-items: center; }
.scr .dhtl { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.scr .htitle { font: 400 22px/1.1 var(--serif); letter-spacing: -.01em; }
.scr .dhlab { gap: 12px; font: 400 22px/1.1 var(--serif); letter-spacing: -.01em; color: var(--dh-title); }
.scr .dhlab .hic { color: var(--dh-gold); }
.scr .dhgrid .dht { min-height: 128px; padding: 16px 16px 14px; }
.scr .dhgrid .dht .hic { margin-bottom: 14px; }
.scr .dhgrid .dht > b { font: 400 22px/1.1 var(--serif); letter-spacing: -.01em; color: var(--dh-title); }
.scr .dhgrid .dht > small { margin-top: 6px; }
/* the store pill in a card's corner is outlined in the store's colour, not filled; the Basqet+ tag smaller */
.scr .dht .dcorner .stc { background: none !important; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 12px; padding: 2px 8px; } /* the chip carries its store colour inline; here the colour is the outline and the text */
.scr.dark .dht .dcorner .stc { filter: brightness(1.35) saturate(.9); }
.scr .dht .dtag { font-size: 12px; padding: 1px 6px; top: 16px; }
/* the header: Home in the serif with a small wheat sprout mark, the date under it, 8 px more air above the hero card */
.scr .dhhd { padding-bottom: 8px; }
.scr .dhtitle { display: inline-flex; align-items: center; gap: 10px; }
.scr .dhtitle .hic { width: 22px; height: 22px; color: var(--dh-gold); }
.scr .dhtitle .hic svg { stroke-width: 1.5; }
/* Home, two fixes (Nov 9, night): the empty Lists card shows its icon at 56 px, centred, with one muted line under it, in the same
   96 px block as three rows; the whole card opens the list (the chip opens the menu, the plum button opens it with the store sheet) */
.scr .hempty { flex-direction: column; justify-content: center; gap: 8px; height: 96px; text-align: center; font: 500 13px/1.3 Figtree; color: var(--dh-muted); cursor: pointer; }
.scr .hempty .hic { width: 56px; height: 56px; }
.scr .dht.dhmain { cursor: pointer; }
.scr .dhbody { margin-top: 12px; }
.scr .dhgo .qmark { cursor: pointer; }
.scr .dht.dhmain:active { transform: none; opacity: 1; }

/* ---------- Nov 9, late: the Saved strip, about 110 px; the dark steps raised (tokens above) ---------- */
.scr .dht.tkept { padding: 14px 16px 12px; }
.scr .tkept .dhsv { display: flex; align-items: center; gap: 12px; }
.scr .tkept .dhlab { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.scr .tkept .dhlab .hic { width: 28px; height: 28px; }
.scr .tkept .dhrow { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; margin: 0; flex: 1 1 auto; min-width: 0; }
.scr .tkept .dhrow .hkept { font: 700 32px/1 Rubik; letter-spacing: -.025em; color: var(--dh-sage-ink); margin: 0; text-align: right; }
.scr .tkept .dhbars { margin: 0 0 2px; width: 60px; height: 20px; flex: none; }
.scr .tkept .dhach { margin-top: 10px; padding-top: 10px; }
.scr .tkept .wm { width: 72px; height: 72px; } .scr .tkept .wm svg { width: 88px; height: 88px; left: 14px; top: 16px; }

/* ---------- the material (Nov 9, late; docs/tokens.json material): a lit backdrop with grain, cards as frosted glass over it ---------- */
.scr { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  --light-pool: radial-gradient(ellipse 90% 60% at 18% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  --glass: rgba(255, 255, 255, .7); --glass-sheet: rgba(250, 247, 240, .86); --glass-hi: rgba(255, 255, 255, .6); --glass-line: rgba(29, 74, 52, .1);
  --glass-sh: 0 2px 6px rgba(60, 50, 30, .08), 0 24px 56px rgba(60, 50, 30, .16); --glass-sh-hero: 0 3px 8px rgba(60, 50, 30, .1), 0 30px 64px rgba(60, 50, 30, .2);
  --blur: 20px; --dh-muted: #66746D; --muted: var(--dh-muted);
  background-image: var(--grain), var(--light-pool), var(--pg-grad); }
.scr.dark { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  --light-pool: radial-gradient(ellipse 90% 60% at 18% 0%, rgba(120, 190, 150, .22), rgba(120, 190, 150, 0) 70%);
  --glass: rgba(36, 76, 59, .62); --glass-sheet: rgba(30, 66, 50, .84); --glass-hi: rgba(255, 255, 255, .14); --glass-line: rgba(255, 255, 255, .08);
  --glass-sh: 0 2px 6px rgba(6, 20, 13, .45), 0 24px 56px rgba(6, 20, 13, .45); --glass-sh-hero: 0 3px 8px rgba(6, 20, 13, .5), 0 30px 64px rgba(6, 20, 13, .55);
  --dh-muted: #A3B5A6; }
/* glass: the fill at 60–70% over the lit backdrop, the backdrop blurred behind it, a 1 px inner top highlight, a hairline, a long soft shadow and a tight one */
.scr .dht, .scr .rows, .scr .menu, .scr .drop, .scr .empty, .scr .btile, .scr .fcard2, .scr .shwrap .rcpt, .scr .finish.print .rcpt { background-color: var(--glass); border-color: var(--glass-line); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-sh); }
.scr .dht.dhmain { box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-sh-hero); }
.scr .menu { box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-line), var(--glass-sh-hero); }
.scr .sheet, html.demo-open .scr .gbar.optb, .scr .gbar.optb { background-color: var(--glass-sheet); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); box-shadow: inset 0 1px 0 var(--glass-hi), var(--sh-sheet); }
.scr .sheet { border-top: 1px solid var(--glass-line); }
html.demo-open .scr .gbar.optb { border-color: var(--glass-line); border-top: 1px solid var(--glass-line); }
/* the phone's Home: no band above the title; the gradient starts at the very top and the title sits 12 px under the close button */
.scr .home.dh { padding-top: 8px; }

/* ---------- The scale (Nov 16, 2026; docs/tokens.json "scale", the same numbers the app build reads): type and density between the
   old demo and a standard iOS app. Page title 30 serif, card title 20, row name 17, details 15, captions 13, nothing under 12 (every
   font size above this block was moved onto those steps in place). Side margins 16, card padding 16, rows 52 to 56, every tap target
   44 or more: a small control keeps its size and grows an invisible hit area instead. Padding was cut before text. The prefix
   html:is(.demo-open, html) matches every page and carries the weight of the Try it rules above, so one block sets the film's phone
   and the full-screen Try it alike. ---------- */
.scr { --m: 16px; --pad: 16px; --row: 52px; --tap: 44px; }
.scr .plus { font-size: 12px; padding: 2px 7px; }
.scr .stc { font-size: 12px; }
.scr .qb b { font-size: 13px; }

/* the list screen: a 44 px header, the field, the chips, 34 px section labels, 52 px rows */
html:is(.demo-open, html) .scr .ahd { padding: 0 56px; min-height: 44px; }
html:is(.demo-open, html) .scr .ahd .hbk.rnd { left: 4px; top: 0; width: 44px; height: 44px; min-height: 44px; }
html:is(.demo-open, html) .scr .ahd .edl { right: 4px; top: 0; min-height: 44px; padding: 0 12px; font-size: 17px; }
html:is(.demo-open, html) .scr .ahd .ahc .lname { min-height: 44px; }
html:is(.demo-open, html) .scr .srch { margin: 4px var(--m) 0; padding: 0 12px 0 14px; }
html:is(.demo-open, html) .scr .srch input { min-height: 44px; font-size: 17px; }
html:is(.demo-open, html) .scr .chips { padding: 8px var(--m) 4px; }
.scr .qc { position: relative; font-size: 13px; }
.scr .qc::after { content: ""; position: absolute; inset: -6px 0; }
html:is(.demo-open, html) .scr .body > .sec, html:is(.demo-open, html) .scr .sec { position: relative; min-height: 32px; padding: 13px var(--m) 7px; }
html:is(.demo-open, html) .scr .body > .sec:first-child { padding-top: 13px; }
.scr button.sec::after { content: ""; position: absolute; inset: -6px 0; }
html:is(.demo-open, html) .scr .rows { margin: 0 var(--m); position: relative; }
html:is(.demo-open, html) .scr .lrow:not(.shop) { height: auto; min-height: var(--row); box-sizing: border-box; padding: 0 6px 0 var(--pad); gap: 0; flex-wrap: wrap; }
.scr .lrow + .lrow { margin-top: 0; }
.scr .lrow:not(.shop) .nm1 { flex: 1 0.001 auto; min-width: 0; height: var(--row); min-height: var(--row); align-items: center; }
.scr .lrow:not(.shop) .nm1 > b { font-size: 17px; line-height: 22px; min-height: 0; }
/* the quality icons and the amount: each icon is its own 44 px column, the full height of the row, and gives up width (never under 32)
   only when a long name needs the room; the amount pill is 24 px high inside a 44 px hit area */
.scr .lrow:not(.shop) .ric { display: contents; }
.scr .lrow:not(.shop) .ric button.qi { flex: 0 1 44px; min-width: 32px; width: auto; height: var(--row); border-radius: 0; background: none; display: grid; place-items: center; box-shadow: none; }
.scr .lrow:not(.shop) .ric button.qi::before { content: ""; position: static; inset: auto; grid-area: 1 / 1; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); transition: background-color .12s linear; }
.scr .lrow:not(.shop) .ric button.qi svg { grid-area: 1 / 1; position: relative; }
.scr .lrow:not(.shop) .ric button.qi.on::before { background: var(--fill); }
.scr .lrow:not(.shop) .ric button.qi.on, .scr .lrow:not(.shop) .ric button.qi.on:hover { background: none; }
.scr.dark .lrow:not(.shop) .ric .qi:not(.on) { box-shadow: none; }
.scr.dark .lrow:not(.shop) .ric button.qi:not(.on)::before { box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) { .scr .lrow:not(.shop) .ric button.qi:hover { background: none; } .scr .lrow:not(.shop) .ric button.qi:not(.on):hover::before { background: var(--tint-2); } }
.scr .qpill { height: 24px; padding: 0 9px; border-radius: 12px; font: 500 13px/24px Figtree; }
.scr .qpill::before { inset: -10px -4px; }
.scr .lrow:not(.shop) .ric .qpill, .scr .lrow:not(.shop) .ric .qinl { margin: 0 10px 0 6px; flex: none; }
.scr .qinl { height: 44px; gap: 2px; }
.scr .qinl button { width: 44px; height: 44px; background: none; display: grid; place-items: center; font-size: 17px; position: relative; z-index: 0; }
.scr .qinl button::before { content: ""; position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); z-index: -1; }
.scr .qinl b { font-size: 15px; min-width: 48px; }
.scr .lrow:not(.shop) .ric .qinl { margin: 0 0 0 2px; }
/* plain-word sizes: the words on their own line under the open row, each a 32 px chip in a 44 px hit area */
.scr .lrow.sized.open, .scr .lrow.sized { align-content: flex-start; }
.scr .szl { flex: 0 0 100%; display: flex; gap: 8px; padding: 2px 0 12px; animation: qin .15s var(--ease-out) both; }
.scr .szl.fold { animation: qout .15s ease-in both; pointer-events: none; }
.scr .szc { position: relative; min-height: 32px; padding: 0 14px; border-radius: 999px; font: 600 15px/1 Figtree; color: var(--body); background: var(--ctrl, var(--paper)); box-shadow: inset 0 0 0 1.5px var(--line); white-space: nowrap; }
.scr .szc::after { content: ""; position: absolute; inset: -6px 0; }
.scr .szc.on { background: var(--fill); color: var(--fill-ink); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .scr .szl, .scr .szl.fold { animation: none; } }
.scr .legend, html:is(.demo-open, html) .scr .legend { padding: 12px var(--m) 10px; }

/* Find my stores, the panel under the list */
html:is(.demo-open, html) .scr .gbar.optb { margin: 4px var(--m) calc(8px + env(safe-area-inset-bottom)); padding: 8px var(--pad) 8px; }
html:is(.demo-open, html) .scr .legend + .gbar.optb { padding-top: 8px; }
html:is(.demo-open, html) .scr .obgo { margin-top: 4px; }
.scr .gstops button { position: relative; }
.scr .goal.compact .gstops button::after { content: ""; position: absolute; inset: -26px 0 -6px; }
.scr .obgo { min-height: 48px; }

/* Where to shop this list: each row is the store, its total and its distance on one line; the bar; the list Q, the coverage and the
   tier line; and, on a store ranked above a cheaper one for being closer, why */
.scr .sheet .sh b { font-size: 17px; }
.scr .sheet .sh .x { position: relative; }
.scr .sheet .sh .x::after { content: ""; position: absolute; inset: -4px; }
html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3 { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; gap: 5px 10px; min-height: 64px; padding: 10px var(--pad); }
.scr .sheet.top3s .t3r { display: inline-flex; align-items: baseline; justify-self: end; white-space: nowrap; }
html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3p { font: 800 17px/22px Rubik; }
html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3km { font: 500 15px/22px Figtree; color: var(--muted); font-variant-numeric: tabular-nums; }
html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3 .stc { font-size: 13px; padding: 3px 9px; }
html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3 .bt, html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3 .usual { font-size: 12px; padding: 2px 8px; letter-spacing: .04em; }
html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3 .bt { justify-self: end; line-height: 13px; }
.scr .sheet.top3s .t3track { height: 4px; border-radius: 2px; }
html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3gap { font: 600 13px/1 Figtree; min-height: 13px; }
html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3m { font: 500 13px/17px Figtree; gap: 5px; flex-wrap: wrap; white-space: normal; }
html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3m b { font: 700 13px/17px Figtree; }
.scr .sheet.top3s .t3t.amber { color: var(--dh-gold); font-weight: 600; }
html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3cl { grid-column: 1 / -1; font: 600 13px/17px Figtree; color: var(--fg-brand); margin-top: -2px; }
.scr .sheet.top3s .shsub.how { font-size: 13px; line-height: 18px; margin: 10px 0 4px; }
.scr .disc { font-size: 12px; }
html:is(.demo-open, html) .scr .sheet.top3s .top3 .t3km { margin-left: 4px; }

/* sheets: 16 px margins; the close and back controls sit in 44 px hit areas */
.scr .sheet { padding-left: var(--m); padding-right: var(--m); }
.scr .sheet .sh .x::after { inset: -6px; }
.scr .svbar .svback { min-height: 44px; font-size: 15px; }
.scr .sparkb::before { inset: -8px; }
.scr .svq { position: relative; }
.scr .svq::after { content: ""; position: absolute; inset: -4px 0; }
.scr .whyhd .x { position: relative; }
.scr .whyhd .x::after { content: ""; position: absolute; inset: -14px; }
.scr .menu button { min-height: 44px; }
.scr .opts button { min-height: 44px; }
.scr .rchip, .scr .rnote { min-height: 44px; justify-content: center; }
.scr .tplsave { min-height: 44px; }

/* a store's list: the item at 17, the product at 15, the chips at 13; the label under the picture in sentence case so it fits */
.scr .svrow { padding: 12px 12px; } /* 12 at the sides, not 16: on the 336 px phone an item name like Ground beef then clears its column by 8 px, so it sits on one line on every platform's text rendering (at 16 it fit to the pixel on a Mac and wrapped on Linux, which the drift guard caught) */
.scr .svrow .bpt { font: 700 12px/1.2 Figtree; letter-spacing: 0; text-transform: none; margin-top: 4px; }
.scr .svrow .qbw, .scr .lrow.shop .qbw { position: relative; }
.scr .svrow .qbw::after, .scr .lrow.shop .qbw::after { content: ""; position: absolute; inset: -7px 0; }
.scr .svrow .bp .qpill, .scr .lrow.shop .pl .qpill { height: 22px; font-size: 13px; line-height: 22px; padding: 0 8px; }
.scr .svrow .bp .qpill::before, .scr .lrow.shop .pl .qpill::before { inset: -11px -4px; }
.scr .svrow .more::before, .scr .svrow .upchip::before { inset: -10px 0; }
.scr .svrow .qis button.qi::before { inset: -10px -6px; }
.scr .scard .abtn.sm { position: relative; }
.scr .scard .abtn.sm::after { content: ""; position: absolute; inset: -5px 0; }
.scr .svfoot .abtn { font-size: 17px; }

/* shop mode: the tick, the swap and the Q each in a 44 px hit area; the bottom bar's two buttons 44 high */
.scr .shd .hbk.sm::after { content: ""; position: absolute; inset: -6px; }
.scr .shd .hbk.sm { position: relative; }
.scr .lrow.shop .cbw { width: 44px; height: 44px; margin: 0 -4px; }
.scr .swb::before { inset: -9px; }
.scr .shbot .abtn.fin { min-height: 44px; font-size: 17px; }
.scr .shbot .lnk.end { min-height: 44px; padding: 0 8px; margin-left: -8px; }
.scr .ract .lnk { min-height: 44px; padding: 0 12px; }
.scr .rcpt .rbr { display: block; font: 500 13px/1.3 Figtree; color: var(--muted); margin-top: -6px; }

/* Home: the title at 30, card titles at 20, 16 px margins and card padding */
.scr .home.dh { padding-left: var(--m); padding-right: var(--m); }
.scr .dhtitle { font-size: 30px; }
.scr .htitle, .scr .dhsv .dhlab, .scr .dhgrid .dht > b { font-size: 20px; }
.scr .dht { padding: var(--pad); }
html:is(.demo-open, html) .scr .dhgrid .dht { padding: var(--pad); }
.scr .lchip { position: relative; }
.scr .lchip::after { content: ""; position: absolute; inset: -6px 0; }
.scr .tkept .dhsv { position: relative; }
.scr .tkept .dhsv::after { content: ""; position: absolute; inset: -6px 0; }
.scr .tkept .dhach { min-height: 44px; }

/* Search and Top deals: the tier tabs and Add to list in 44 px hit areas */
.scr .dstops button { position: relative; }
.scr .dstops button::after { content: ""; position: absolute; inset: -5px 0; }
.scr .sword { position: relative; }
.scr .sword::after { content: ""; position: absolute; inset: -13px -4px; }
.scr .dadd { position: relative; min-height: 32px; padding: 0 12px; }
.scr .dadd::after { content: ""; position: absolute; inset: -6px 0; }
html:is(.demo-open, html) .scr .sheet .svbar .svback { min-height: 44px; }
.scr .qpill::before, .scr .svrow .bp .qpill::before, .scr .lrow.shop .pl .qpill::before { left: -8px; right: -8px; }
.scr .lrow:not(.shop) .rmv.rest { min-height: 44px; padding: 0 10px; font-size: 15px; }
.scr .svrow .qis button.qi::before, .scr .svexp button.qi::before { inset: -10px -6px; }
.scr .svrow .qis button.qi::before, .scr .svexp button.qi::before { inset: -10px; }

/* More options: the direction label in sentence case so it fits its column at 12 */
.scr .opt .dir { width: 54px; font: 700 12px/1.2 Figtree; letter-spacing: 0; text-transform: none; }
.scr .opt .onm b { font-size: 15px; }
.scr .opt .op { font-size: 15px; }
.scr .rtip { left: clamp(76px, var(--x), calc(100% - 76px)); }
/* Search, Top deals, Saved, Achievements: the row's name at 17, padding cut so six rows and the note fit */
.scr .drow .dname { font-size: 17px; line-height: 22px; }
.scr .drow { padding: 9px 0 10px; row-gap: 2px; }
.scr .drow .dpr > b { font-size: 17px; }
.scr .sgrow .svwho b { font-size: 17px; }
.scr .sgrow .svamt b { font-size: 17px; }
.scr .btile > b { font-size: 17px; }
.scr .menu button { font-size: 17px; }
.scr .hitems li { font-size: 17px; }

/* shop mode: the exact product's name wraps to a second line before it is cut */
.scr .lrow.shop .nm1 > b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.2; }
.scr .carr { position: relative; }
.scr .carr::after { content: ""; position: absolute; inset: -9px; } /* the chip row's arrows on a desktop pointer: drawn 26, hit 44 */

/* ---------- Nov 22, 2026: shop rows rebuilt, a long receipt scrolls ----------
   Shop mode rows (docs/basqet-screens.md §5B). Nothing in a row is clipped or cut at 390: the tick and the picture at the left, the
   swap icon at the top right, and between them the item's word as a small label over the exact product (brand, product, size),
   which wraps as far as it needs. Under it one line of its own: the amount pill and the quality marks at the left, the Q and the
   price at the row's right edge. The line wraps before anything on it is squeezed. No store pill: the group header names the
   store. The row is as tall as its content, never under 68 px. */
.scr .lrow.shop { display: grid; grid-template-columns: 36px 48px minmax(0, 1fr) 26px; grid-template-areas: "tick pic head swap" "tick pic foot foot"; grid-template-rows: auto auto; align-content: center; align-items: center; gap: 6px 8px; height: auto; min-height: 68px; padding: 10px 12px 10px 2px; box-sizing: border-box; }
.scr .lrow.shop .cbw { grid-area: tick; }
.scr .lrow.shop .sth { grid-area: pic; }
.scr .lrow.shop .swb { grid-area: swap; align-self: start; }
.scr .lrow.shop .shx { grid-area: head; min-width: 0; display: grid; gap: 2px; align-self: end; text-align: left; }
.scr .lrow.shop .shw { font: 700 12px/1.25 Figtree; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); overflow-wrap: break-word; }
.scr .lrow.shop .shn { font: 800 15px/1.25 Rubik; letter-spacing: -.02em; color: var(--ink); overflow-wrap: break-word; min-width: 0; }
.scr .lrow.shop .shz { font: 500 14px/1.25 Figtree; letter-spacing: 0; color: var(--muted); }
.scr .lrow.shop .shno { font: 500 13px/1.3 Figtree; color: var(--muted); }
.scr .lrow.shop .shf { grid-area: foot; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; align-self: start; min-height: 24px; } /* 6 px, not 8: a size word, two quality marks, the Q and a $22.35 then share the line at 390 */
.scr .lrow.shop .shf .qpill, .scr .lrow.shop .shf .qinl, .scr .lrow.shop .shf .qis { flex: none; }
.scr .lrow.shop .shf .qpill { color: var(--body); }
.scr .lrow.shop.done .shf .qpill, .scr .lrow.shop.gone .shf .qpill { pointer-events: none; }
.scr .lrow.shop .shf .qinl { height: 28px; gap: 2px; }
.scr .lrow.shop .shf .qinl button { position: relative; width: 30px; height: 28px; }
.scr .lrow.shop .shf .qinl button::before { left: 1px; top: 0; }
.scr .lrow.shop .shf .qinl button::after { content: ""; position: absolute; inset: -8px -3px; }
.scr .lrow.shop .shf .qinl b { min-width: 44px; font-size: 13px; }
.scr .lrow.shop .srt { margin-left: auto; display: inline-flex; flex-direction: row; align-items: center; gap: 6px; flex: none; white-space: nowrap; }
.scr .lrow.shop .srt .nsq { font: 500 12px/1 Figtree; color: var(--muted); }
.scr .lrow.shop .rp { font: 800 17px/1 Rubik; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.scr .lrow.shop.gone .shn, .scr .lrow.shop.gone .rp { text-decoration: line-through; text-decoration-thickness: 2px; }
.scr .lrow.shop.swapped .shx, .scr .lrow.shop.swapped .shf { animation: xfade .35s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .scr .lrow.shop.swapped .shx, .scr .lrow.shop.swapped .shf { animation: none; } }

/* a receipt longer than the screen (a thirty-item shop with its products spelled out): the slip keeps to the screen, its lines
   scroll inside it, and the buttons under it stay in view */
.scr .finish.print .rwrap { box-sizing: border-box; max-height: calc(100% - 52px); min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.scr .finish.print .rcpt { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.scr .finish.print .rcpt::-webkit-scrollbar { display: none; }

/* Top deals and Search rows: the name and the product line wrap, never cut (the long names of the Nov 22 deals: "Spring Creek Ranch
   seasoned inside round roast · 1.2 kg"); the figures at the right stay level with each line's first row */
.scr .drow .dname, .scr .drow .dprod { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; align-self: start; }
.scr .drow .dpr, .scr .drow .dwas { align-self: start; }
.scr .drow .dpr { min-height: 22px; }

/* A store's list, the product line and the chip (Nov 22, 2026): nothing on a row is cut. The product (brand, product · size) wraps to
   a second line, with the quality marks, the amount pill and the reason flowing after it like words; the chip's text is whole,
   shortened by the engine until it fits beside More options (demo.js fitChips), and a chip marked tight gives up 2 px a side. */
.scr .svrow .bp { display: block; white-space: normal; overflow: visible; line-height: 22px; overflow-wrap: break-word; }
.scr .svrow .bp .pn { display: inline; overflow: visible; text-overflow: clip; }
.scr .svrow .bp .ps { display: inline; }
.scr .svrow .bp .pw { display: inline; white-space: nowrap; max-width: none; overflow: visible; }
.scr .svrow .bp .qis, .scr .svrow .bp .pamt { display: inline-flex; vertical-align: middle; margin-left: 2px; }
.scr .svrow .upchip > span { text-overflow: clip; }
.scr .svrow .upchip.tight { padding: 0 4px; }
.scr .svrow .upchip.tight i { margin: 0 2px; }
.scr .svrow .more .mo { margin-left: -2px; } /* the button's 2 px gap and the word's own space would make two */
.scr .svrow .more.short .mo { display: none; } /* More options reads More when the chip beside it needs the room for its claim word */

/* The Lists menu's Edit (Nov 23, 2026; §0): Edit at the header's right; editing, each list and template is its name and count with
   a Delete at the right, and Delete asks once on the row's own line, naming the list. The one warm red is used only here. */
.scr { --del: #A3402E; --del-ink: #FFFFFF; }
.scr.dark { --del: #F2A291; --del-ink: #2A120C; }
.scr .menu { max-width: calc(100% - 32px); box-sizing: border-box; }
.scr .menu.editing { width: calc(100% - 32px); }
.scr .menu .mhd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scr .menu .mhd b { display: block; font: 700 12px Figtree; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; }
.scr .menu .mhd button.medit { position: relative; width: auto; min-height: 32px; padding: 0 10px; border-radius: 8px; font: 600 15px Figtree; color: var(--fg-green); }
.scr .menu .mhd button.medit::after { content: ""; position: absolute; inset: -6px 0; }
.scr .menu .mrow { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 0 0 12px; border-radius: 10px; }
.scr .menu .mrow.on { background: var(--tint); }
.scr.dark .menu .mrow.on { background: var(--dh-sage-2); }
.scr .menu .mnm { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 700 17px Figtree; color: var(--ink); overflow-wrap: break-word; }
.scr .menu .mrow.on .mnm { color: var(--fg-brand); }
.scr .menu .mnm small { font: 500 13px Figtree; color: var(--muted); flex: none; }
.scr .menu button.mdel { width: auto; flex: none; min-height: 44px; padding: 0 12px; font: 600 15px Figtree; color: var(--del); }
.scr .menu .mconf { display: flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 0 0 12px; border-radius: 10px; background: var(--soft); animation: lineIn .18s ease-out both; }
.scr .menu .mconf span { flex: 1 1 auto; min-width: 0; font: 600 14px/1.25 Figtree; color: var(--ink); overflow-wrap: break-word; }
.scr .menu .mconf button { width: auto; flex: none; min-height: 44px; padding: 0 6px; font: 600 15px Figtree; }
.scr .menu .mconf button.mkeep { color: var(--body); }
.scr .menu .mconf button.mdelok { position: relative; min-height: 32px; margin: 0 4px 0 4px; padding: 0 10px; border-radius: 999px; background: var(--del); color: var(--del-ink); }
.scr .menu .mconf button.mdelok::after { content: ""; position: absolute; inset: -6px -2px; }
@media (prefers-reduced-motion: reduce) { .scr .menu .mconf { animation: none; } }
