/* recommender.css — the rules of styles/components.css that only solution-recommender.html uses, moved out of the shared file
   (2026-09-30) in their original order. Loaded right after components.css on solution-recommender.html only; a rule that another
   page or a prototype in claude-design-blocks/ can use stays in components.css. */

/* ============================================================
   PROVEN IN A/B · SHARED BASELINE RAIL  (solution-recommender "What we build")
   One full-width comparative chart; four variant/control pairs stand on a
   single baseline rail that spans edge to edge. The tallest variant bar
   breaks above the panel's top hairline.
   ============================================================ */
.sb-section { position: relative; padding: clamp(72px, 9vw, 124px) 0 0; overflow: hidden; }
.sb-head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); margin-bottom: clamp(56px, 8vw, 104px); display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.sb-head-main { min-width: 0; }
.sb-key { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; text-transform: none; color: var(--text-muted); padding-bottom: 4px; }
.sb-key span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.sb-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.sb-key .kc { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); border: 1px solid color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.sb-key .kv { background: linear-gradient(90deg, var(--accent-2), var(--accent) 38%, var(--pos) 70%, var(--warn)); }
.sb-head .h {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.035em; line-height: 0.98;
  margin-top: 18px; max-width: 16ch;
}
.sb-panel { position: relative; width: 100%; padding-top: clamp(40px, 6vw, 84px); }
.sb-rail-wrap { position: relative; width: 100%; }
/* the four pairs spread across full width, sitting ON the rail */
.sb-items {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end;
  height: clamp(220px, 30vw, 320px); padding: 0 var(--gutter); max-width: var(--maxw); margin: 0 auto;
}
.sb-item { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; overflow: visible; --c: var(--accent-2); --c-text: var(--accent-2-text); }
.sb-item + .sb-item::before { content: ""; position: absolute; left: 0; bottom: 0; top: 14%; width: 1px; background: linear-gradient(to top, rgba(255,255,255,0.10), transparent); }
.sb-pair { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 1.1vw, 16px); height: 100%; width: 100%; }
.sb-bar { position: relative; width: clamp(26px, 3.4vw, 48px); border-radius: 6px 6px 0 0; transform: scaleY(0); transform-origin: bottom center; transition: transform 1s var(--ease); }
.sb.in .sb-bar { transform: scaleY(1); }
.sb-bar.control {
  background: linear-gradient(to top, color-mix(in srgb, var(--accent-soft) 22%, transparent), color-mix(in srgb, var(--accent-soft) 9%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent-soft) 26%, transparent); border-bottom: none;
}
.sb-bar.variant {
  background: linear-gradient(to top, color-mix(in srgb, var(--c) 80%, transparent), color-mix(in srgb, var(--c) 34%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); border-bottom: none;
  box-shadow: 0 0 22px -4px color-mix(in srgb, var(--c) 55%, transparent);
}
.sb-cap {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(8px); bottom: 100%;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--c-text); white-space: nowrap;
  opacity: 0; transition: opacity 0.5s var(--ease) 0.7s, transform 0.6s var(--ease) 0.7s;
}
.sb.in .sb-cap { opacity: 1; transform: translateX(-50%) translateY(0); }
/* readout row below the rail: title / metric / note per pair */
.sb-readout { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--maxw); margin: 0 auto; padding: clamp(26px, 3vw, 40px) var(--gutter) clamp(72px, 9vw, 120px); }
.sb-ro { position: relative; padding: 0 clamp(12px, 1.6vw, 24px); --c: var(--accent-2); --c-text: var(--accent-2-text); }
.sb-ro + .sb-ro::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 18px; width: 1px; background: var(--border); }
.sb-ro-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; text-transform: none; color: var(--text-muted); margin: 0 0 14px; }
.sb-ro-metric { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1; color: var(--c-text); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; }
.sb-ro-unit { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--text-faint); text-transform: none; }
.sb-ro-note { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 16px 0 0; max-width: 30ch; }
/* color per index; --c-text is the one text uses (equal in A, AA in the light concepts) */
.sb-item:nth-child(1), .sb-ro:nth-child(1) { --c: var(--accent-2); --c-text: var(--accent-2-text); }
.sb-item:nth-child(2), .sb-ro:nth-child(2) { --c: var(--accent); }
.sb-item:nth-child(3), .sb-ro:nth-child(3) { --c: var(--pos); --c-text: var(--pos-text); }
.sb-item:nth-child(4), .sb-ro:nth-child(4) { --c: var(--warn); --c-text: var(--warn-text); }
.sb-item:nth-child(2) .sb-cap, .sb-ro:nth-child(2) .sb-ro-metric { color: var(--accent-text); }
@media (max-width: 860px) {
  .sb-items, .sb-readout { grid-template-columns: repeat(2, 1fr); }
  .sb-items { height: auto; }
  .sb-item { height: clamp(180px, 42vw, 240px); padding-bottom: 0; }
  .sb-item:nth-child(2)::before { display: none; }
  .sb-item:nth-child(3), .sb-item:nth-child(4) { border-top: 1px solid var(--border); }
  .sb-item:nth-child(3)::before, .sb-item:nth-child(4)::before { top: 0; }
  .sb-readout { row-gap: 40px; padding-bottom: clamp(56px, 12vw, 80px); }
  .sb-ro:nth-child(3)::before, .sb-ro:nth-child(2n+1)::before { display: none; }
}
@media (max-width: 460px) {
  .sb-items, .sb-readout { grid-template-columns: 1fr; }
  .sb-item { height: 150px; }
  .sb-item::before { display: none; }
  .sb-ro::before { display: none; }
  .sb-readout { row-gap: 34px; }
  .sb-bar { width: clamp(34px, 12vw, 52px); }
}
@media (prefers-reduced-motion: reduce) {
  .sb-bar, .sb-cap { transition: none !important; }
  .sb-bar { transform: scaleY(1); }
  .sb-cap { opacity: 1; transform: translateX(-50%); }
}
/* Recommender hero — crisp in-focus "personalization engine" phone screen (data-rp) */
/* recommender hero: keep the live phone screen softly blurred (frosted backdrop) —
   the crisp metric callouts float over it; bezel + reflection stay sharp.
   scale(1.04) lets the blur fill to the screen edge (no soft inset gap). */
.fph-app.rph { filter: blur(3px); opacity: .92; transform: scale(1.02); gap: 9px; padding: 15px 17px 15px; }
.fph-app.rph .fph-foot { margin-top: 12px; }
.fph-app.rph .fph-head .env { transition: color .4s var(--ease); }
.fph-app.rph .fph-head .env.warm { color: var(--accent-2); }
/* session context + real-time signal chips */
.rph-sess { display: flex; flex-direction: column; gap: 7px; background: var(--s-tile); border: 1px solid var(--s-line); border-radius: 12px; padding: 9px 11px; }
.rph-sess-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 10px; }
.rph-sess-h span:first-child { color: var(--accent-2); }
.rph-sess-h span:last-child { color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rph-sig { display: flex; flex-wrap: wrap; gap: 5px; }
.rph-sig .chip { font-family: var(--font-mono); font-size: 9px; letter-spacing: .02em; color: var(--s-muted); padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.045); border: 1px solid var(--s-line); opacity: 0; transform: translateY(-4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rph-sig .chip.in { opacity: 1; transform: none; }
/* three pipeline stages */
.rph-pipe { display: flex; flex-direction: column; }
.rph-stage { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--s-line); font-family: var(--font-mono); font-size: 11px; color: var(--s-faint); opacity: .5; transition: opacity .35s var(--ease), color .35s var(--ease); }
.rph-stage:first-child { border-top: none; }
.rph-dot { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--s-line); flex: 0 0 auto; transition: background .3s var(--ease), border-color .3s var(--ease); }
.rph-st-l { color: var(--s-muted); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rph-st-l small { color: var(--s-faint); font-size: 9px; letter-spacing: .04em; }
.rph-st-v { color: var(--s-faint); font-size: 10px; white-space: nowrap; }
.rph-stage.run { opacity: 1; }
.rph-stage.run .rph-dot { border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 22%, transparent); }
.rph-stage.run .rph-st-v { color: var(--accent-2); }
.rph-stage.done { opacity: 1; color: var(--s-text); }
.rph-stage.done .rph-dot { background: var(--accent-2); border-color: var(--accent-2); position: relative; }
.rph-stage.done .rph-dot::after { content: ""; position: absolute; left: 4.2px; top: 1.8px; width: 2.6px; height: 5.6px; border: solid #04060b; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
/* ranked recommendation list with score bars (scores decrease down the list) */
.rph-list { display: flex; flex-direction: column; gap: 2px; }
.rph-rec { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--s-line); opacity: 0; transform: translateY(-5px); transition: opacity .35s var(--ease), transform .4s var(--ease); }
.rph-rec:first-child { border-top: none; }
.rph-rec.in { opacity: 1; transform: none; }
.rph-rec.drop { opacity: 0; transform: translateY(-4px); }
.rph-rec-m { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rph-rec-n { font-family: var(--font-mono); font-size: 10.5px; color: var(--s-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rph-rec-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.rph-rec-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--accent-2); transition: width .55s var(--ease); }
.rph-rec-s { font-family: var(--font-mono); font-size: 10px; color: var(--s-muted); flex: 0 0 auto; }
.rph-rec.hot .rph-rec-n { color: var(--pos); }
.rph-rec.hot .rph-rec-bar i { background: var(--pos); }
.rph-rec.hot .rph-rec-s { color: var(--pos); }
/* online A/B readout */
.rph-ab { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 10px; }
.rph-ab-l { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--s-faint); grid-column: 1 / -1; }
.rph-ab-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.rph-ab-fill { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--pos); transition: width .7s var(--ease); }
.rph-ab-v { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: -.01em; color: var(--pos); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .rph-sig .chip, .rph-rec, .rph-rec-bar i, .rph-ab-fill { transition: none; }
}
/* ============================================================
   RECOMMENDER — A/B EXPERIMENT (mbab/mbd/mbc) — fraud-console-style window
   ("Inside the decision" language): reuses .fd-stage/.fd-win/.fd-chrome/.fd-lights.
   Phases (cumulative): idle → sample → split → run → win (rests on win).
   accent-2 (cyan) = variant; accent-soft (violet) = control; pos (green) = win.
   Choreography in recommender.js (initABTest) via data-phase on [data-mbab].
   ============================================================ */
/* console window = reused .fd-win, content-driven height (not the 16/10 device box) */
.abx-win { width: min(1080px, 100%); aspect-ratio: auto; min-height: 0;
  --d-line: rgba(255,255,255,.09); --d-line2: rgba(255,255,255,.14);
  --d-faint: #7C8396; --d-muted: #A2A9BA; --d-body: #DfE2EA; --d-strong: #F5F6FA;
  --d-panel: rgba(255,255,255,.022); }
[data-concept="b"] .abx-win, [data-concept="c"] .abx-win {
  --d-line: color-mix(in srgb, var(--text) 9%, transparent); --d-line2: color-mix(in srgb, var(--text) 14%, transparent);
  --d-faint: var(--text-faint); --d-muted: var(--text-muted); --d-body: var(--text); --d-strong: var(--text);
  --d-panel: color-mix(in srgb, var(--text) 3%, transparent); }
/* chrome row (reuses .fd-chrome + .fd-lights) → experiment path + live status */
.mbd-path { font: 500 12px/1 var(--font-mono); color: var(--d-muted); letter-spacing: .02em; margin-left: 14px; }
.mbd-path b { color: var(--d-body); font-weight: 500; }
.mbd-status { margin-left: auto; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--d-faint); transition: color .5s var(--ease); display: inline-flex; align-items: center; gap: 7px; }
.mbd-status .mbd-spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; opacity: 0; }
.mbab[data-phase="sample"] .mbd-spin, .mbab[data-phase="split"] .mbd-spin, .mbab[data-phase="run"] .mbd-spin { opacity: .8; animation: mbSpin 1s linear infinite; }
@keyframes mbSpin { to { transform: rotate(360deg); } }
/* dashboard fills the window below the chrome */
.mbd { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px 22px 22px;
  background: radial-gradient(130% 120% at 82% -20%, rgba(6,182,212,.08), transparent 55%); }
.mbd-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1.92fr; gap: 26px; }
.mbd-label { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--d-muted); }
/* cohort panel */
.mbd-cohort { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mbd-pop { display: flex; flex-direction: column; gap: 4px; }
.mbd-pop-n { font: 600 30px/1 var(--font-display); color: var(--d-strong); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mbd-pop-l { font: 400 11px/1 var(--font-mono); color: var(--d-muted); }
.mbd-dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; padding: 2px 0; }
.mbd-dot { width: 100%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.12); opacity: 0; transform: scale(.3); transition: opacity .45s var(--ease), transform .5s var(--ease-spring), background .55s var(--ease); }
.mbab:is([data-phase="sample"],[data-phase="split"],[data-phase="run"],[data-phase="win"]) .mbd-dot { opacity: 1; transform: none; }
.mbab:is([data-phase="split"],[data-phase="run"],[data-phase="win"]) .mbd-dot.a { background: var(--accent-soft); }
.mbab:is([data-phase="split"],[data-phase="run"],[data-phase="win"]) .mbd-dot.b { background: var(--accent-2); }
.mbd-assign { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; }
.mbd-arm { display: inline-flex; align-items: center; gap: 7px; font: 400 12px/1.2 var(--font-mono); color: var(--d-muted); opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mbd-arm b { color: var(--d-body); font-weight: 500; }
.mbab:is([data-phase="split"],[data-phase="run"],[data-phase="win"]) .mbd-arm { opacity: 1; transform: none; }
.mbab:is([data-phase="split"],[data-phase="run"],[data-phase="win"]) .mbd-arm:nth-child(2) { transition-delay: .1s; }
.mbd-sw { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.mbd-sw.a { background: var(--accent-soft); }
.mbd-sw.b { background: var(--accent-2); }
/* chart panel */
.mbd-chart { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mbd-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mbd-legend { display: inline-flex; gap: 16px; }
.mbd-leg { display: inline-flex; align-items: center; gap: 7px; font: 400 11px/1 var(--font-mono); color: var(--d-muted); }
.mbd-line { width: 18px; height: 0; border-top-width: 2px; border-top-style: solid; display: inline-block; }
.mbd-line.b { border-top-color: var(--accent-2); }
.mbd-line.a { border-top-color: var(--accent-soft); border-top-style: dashed; }
.mbc { width: 100%; height: auto; display: block; overflow: visible; }
.mbd-xaxis { font: 400 11px/1 var(--font-mono); color: var(--d-muted); text-align: center; }
/* chart elements */
.mbc-grid { stroke: var(--d-line); stroke-width: 1; }
.mbc-axis { stroke: var(--d-line2); stroke-width: 1.2; }
.mbc-ylab { font: 500 9.5px/1 var(--font-mono); fill: var(--d-muted); text-anchor: end; }
.mbc-band { fill: var(--accent-2); opacity: 0; transition: opacity 1.1s var(--ease) .35s; }
.mbab:is([data-phase="run"],[data-phase="win"]) .mbc-band { opacity: .13; }
.mbc-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mbc-line.a { stroke: var(--accent-soft); stroke-dasharray: 5 5; opacity: 0; transition: opacity 1s var(--ease) .2s; }
.mbab:is([data-phase="run"],[data-phase="win"]) .mbc-line.a { opacity: .75; }
.mbc-line.b { stroke: var(--accent-2); stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent-2) 55%, transparent)); transition: stroke-dashoffset 2.2s var(--ease); }
.mbab:is([data-phase="run"],[data-phase="win"]) .mbc-line.b { stroke-dashoffset: 0; }
.mbc-scrub { stroke: var(--accent-2); stroke-width: 1.4; opacity: 0; }
.mbab[data-phase="run"] .mbc-scrub { animation: mbScrub 2.2s var(--ease) 1 forwards; }
@keyframes mbScrub { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: .85; } 88% { opacity: .85; } 100% { transform: translateX(462px); opacity: 0; } }
.mbc-sig { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .55s var(--ease), transform .55s var(--ease-spring); }
.mbab[data-phase="win"] .mbc-sig { opacity: 1; transform: none; }
.mbc-sig-ring { fill: none; stroke: var(--pos); stroke-width: 1.6; }
.mbc-sig-dot { fill: var(--pos); }
.mbab[data-phase="win"] .mbc-sig-ring { animation: mbPulse 1.8s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mbPulse { 0% { transform: scale(.7); opacity: .9; } 70% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
.mbc-sig-l { font: 500 11px/1 var(--font-mono); fill: var(--pos); }
/* KPI row */
.mbd-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mbd-kpi { border: 1px solid var(--d-line); border-radius: 12px; background: var(--d-panel); padding: 13px 15px 11px; display: flex; flex-direction: column; gap: 6px; }
.mbd-kpi-v { font: 600 26px/1 var(--font-display); color: var(--d-strong); letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .55s var(--ease); }
.mbab[data-phase="win"] .mbd-kpi-v { color: var(--pos); }
.mbd-kpi-l { font: 400 10.5px/1.2 var(--font-mono); color: var(--d-muted); }
/* verdict bar */
.mbd-verdict { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--pos) 32%, var(--d-line));
  background: color-mix(in srgb, var(--pos) 9%, transparent);
  font: 500 13px/1.3 var(--font-mono); color: var(--d-body); letter-spacing: .02em;
  opacity: 0; transform: translateY(7px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mbab[data-phase="win"] .mbd-verdict { opacity: 1; transform: none; }
.mbd-verdict .mbd-check { width: 22px; height: 22px; border-radius: 50%; background: var(--pos); color: #04130d; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mbd-verdict b { color: var(--pos); font-weight: 600; }
@media (max-width: 1024px) { .mbd-body { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) { .mbd { padding: 16px; } .mbd-kpis { grid-template-columns: repeat(2, 1fr); } .mbd-path { display: none; }
}
/* ---- footer: caption + replay ---- */
.mbab-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1000px; margin: 30px auto 0; }
.mbab-caption { font: 400 13.5px/1.5 var(--font-body); color: var(--text-muted); margin: 0; max-width: 720px; }
@media (max-width: 620px) { .mbab-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .mbd-dot, .mbd-arm, .mbc-line.a, .mbc-line.b, .mbc-band, .mbc-sig, .mbd-kpi-v, .mbd-verdict { transition: none !important; }
  .mbc-scrub, .mbc-sig-ring, .mbd-spin { animation: none !important; }
  .mbc-line.b { stroke-dashoffset: 0; }
}

/* ============================================================
   What we do (W v2) and Loyalty (L2), the owner's picks of 2026-10-22 (docs/superpowers/plans/2026-10-22-solutions-blocks.md):
   one matrix, three shelves — the columns are three shoppers, the rows the same products; the scan fills each cell
   with the share of similar shoppers who bought it, and each shopper's phone builds its own «For you» shelf. Loyalty:
   a member's week, today's picks re-scored at 06:00 and the same list in the member app.
   ============================================================ */
/* ================= the phone: the site's frame, the page's own screen ================= */
.sp {
  position: relative; width: var(--pw, 270px); max-width: 100%; aspect-ratio: 1419 / 2796; flex: none;
  --sp-bg-a: #0B0C13; --sp-bg-b: #07080E; --sp-card-a: #111119; --sp-card-b: #08080D; --sp-tile: #1B1D29;
  --sp-line: rgba(255,255,255,.10); --sp-line-2: rgba(255,255,255,.18);
  --sp-text: #F0F0F5; --sp-muted: #A2A9BA; --sp-faint: #8A909C;
  --sp-acc: #A78BFA; --sp-cy: #22C3DE; --sp-pos: #34C99A; --sp-star: #F5B638;
  --sp-wall-a: rgba(124,58,237,.22); --sp-wall-b: rgba(6,182,212,.16); --sp-dock: #181A26; --sp-ink: #08080D; --sp-paper: #F6F7FA;
  --t-g-a: #24242E; --t-g-b: #131319; --t-e-a: #186B4D; --t-e-b: #0C4734; --t-v-a: #3A2D63; --t-v-b: #221A3E;
  --t-t-a: #185C6E; --t-t-b: #0C3A48; --t-a-a: #7C5C20; --t-a-b: #4E3A13;
}
.sp-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; filter: drop-shadow(0 34px 48px rgba(0,0,0,.42)) drop-shadow(0 12px 20px rgba(0,0,0,.34)); }
.sp-scr {
  position: absolute; top: 3.1%; left: 7.7%; right: 7.8%; bottom: 3.1%; border-radius: 8.5% / 4.4%; overflow: hidden; z-index: 2;
  container-type: inline-size; background: linear-gradient(180deg, var(--sp-bg-a), var(--sp-bg-b)); color: var(--sp-text); font-family: var(--font-body);
}
.sp-scr::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(133deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 18%, transparent 36%); }
/* the status bar sits level with the frame's island: the time centred in the left ear, the glyphs in the right one */
.sp-bar { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 4; color: var(--sp-text); }
.sp-time, .sp-gl { position: absolute; top: 10.18cqw; transform: translate(-50%, -50%); }
.sp-time { left: 18cqw; font: 600 4.44cqw/1 var(--font-body); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.sp-gl { left: 82cqw; display: flex; align-items: center; gap: 1.6cqw; }
.sp-gl svg { display: block; height: 3.2cqw; width: auto; }
.sp-ind { position: absolute; left: 50%; bottom: 5.1cqw; width: 35.5cqw; height: 1.34cqw; margin-left: -17.75cqw; border-radius: 1cqw; background: rgba(240,240,245,.86); z-index: 4; }

/* home screen: the page's apps and dock, their tile colours */
.sh { position: absolute; inset: 0; background: radial-gradient(95% 60% at 22% 6%, var(--sp-wall-a), transparent 60%), radial-gradient(110% 70% at 88% 24%, var(--sp-wall-b), transparent 62%), linear-gradient(168deg, #11121C 0%, var(--sp-bg-a) 52%, var(--sp-bg-b) 100%); }

/* the store app: header + a two-column feed; each cell holds the cold card and the personal card in one place */
.sa { position: absolute; inset: 0; z-index: 2; background: radial-gradient(120% 60% at 50% -4%, rgba(167,139,250,.08), transparent 58%), linear-gradient(180deg, var(--sp-bg-a), var(--sp-bg-b)); transform-origin: 14.8cqw 109.5cqw; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.sa-head { position: absolute; left: 5.38cqw; top: 20.44cqw; right: 30cqw; }
.sa-tt, .sa-sub { display: grid; }
.sa-tt > *, .sa-sub > * { grid-area: 1 / 1; transition: opacity .35s var(--ease); white-space: nowrap; }
.sa-tt b { font: 600 8.07cqw/1 var(--font-display); letter-spacing: -.03em; color: var(--sp-text); }
.sa-sub { margin-top: 2.42cqw; }
.sa-sub span { font: 400 4.1cqw/1.2 var(--font-body); color: var(--sp-muted); }
.sa .c { opacity: 0; } .sa.cold .c { opacity: 1; } .sa.cold .sa-tt .w, .sa.cold .sa-sub .w { opacity: 0; }
.sa-av { position: absolute; right: 5.38cqw; top: 19.9cqw; width: 11.83cqw; height: 11.83cqw; border-radius: 50%; display: grid; place-items: center; background: #1F212B; box-shadow: inset 0 0 0 1.5px var(--sp-line-2); }
.sa-av svg, .sa-bag svg { fill: none; stroke: var(--sp-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sa-av svg { width: 6.45cqw; height: 6.45cqw; stroke: var(--sp-muted); }
.sa-av.who-b { background: #12424D; } .sa-av.who-c { background: #154334; }
.sa-av.who-b svg, .sa-av.who-c svg { stroke: var(--sp-text); }
.sa-bag { position: absolute; right: 20.98cqw; top: 22.05cqw; width: 7.53cqw; height: 7.53cqw; }
.sa-bag svg { width: 100%; height: 100%; }
.sa-grid { position: absolute; left: 4.84cqw; right: 4.84cqw; top: 40.34cqw; display: grid; grid-template-columns: 1fr 1fr; gap: 3.23cqw; }
.sa-cell { position: relative; aspect-ratio: .8; border-radius: 4.3cqw; background: linear-gradient(180deg, var(--sp-card-a), var(--sp-card-b)); box-shadow: inset 0 0 0 1px var(--sp-line), inset 0 1px 0 rgba(255,255,255,.05); }
.sa-lay { position: absolute; inset: 0; padding: 2.15cqw; display: flex; flex-direction: column; border-radius: inherit; overflow: hidden; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.sa-cell .sa-lay.c { opacity: 0; }
.sa-cell.cold .sa-lay.c { opacity: 1; }
.sa-cell.cold .sa-lay.w { opacity: 0; transform: translateY(3cqw); }
.sa-thumb { position: relative; flex: 1; border-radius: 2.96cqw; background: var(--sp-card-b) center / cover no-repeat; }
.sa-save { position: absolute; top: 2.15cqw; right: 2.15cqw; width: 7.53cqw; height: 7.53cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(5,5,9,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.sa-save svg { width: 4.03cqw; height: 4.03cqw; fill: none; stroke: var(--sp-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sa-name { margin: 2.2cqw .54cqw 0; font: 500 4.8cqw/1.15 var(--font-body); letter-spacing: -.01em; color: var(--sp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-meta { margin: 1.3cqw .54cqw 0; display: flex; align-items: center; gap: 1.88cqw; font: 400 4.1cqw/1 var(--font-mono); color: var(--sp-muted); white-space: nowrap; }
.sa-price { color: var(--sp-text); }
.sa-sep { width: 1px; height: 3.23cqw; background: var(--sp-line-2); }
.sa-star { display: inline-flex; align-items: center; gap: .8cqw; }
.sa-star svg { width: 3.9cqw; height: 3.9cqw; fill: var(--sp-star); }
/* a lit card: corner brackets (the Agent Platform figure's «precision» language), never a glow */
.sa-br { position: absolute; inset: -1.5cqw; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); --c: var(--sp-acc); --l: 4.6cqw;
  background: linear-gradient(var(--c), var(--c)) 0 0 / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 0 0 / 1.5px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 100% 0 / 1.5px var(--l),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 0 100% / 1.5px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 100% 100% / 1.5px var(--l);
  background-repeat: no-repeat; }
.sa-cell.lit .sa-br { opacity: 1; }

/* ================= page-side shared: the rough panel (EMPHASIS-PATTERNS, приём 7) ================= */
.rx-panel {
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 38%), var(--surface-solid);
}
.rx-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); background-size: 140px 140px; opacity: .05; mix-blend-mode: overlay; }
.rx-k { display: flex; flex-direction: column; gap: 4px; padding: 0 22px; border-left: 1px solid var(--border); }
.rx-k:last-child { padding-right: 0; }
.rx-k span { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.rx-k b { font: 500 22px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.rx-sh { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.rx-sh b { font: 500 16px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.rx-sh span { font-size: 13px; color: var(--text-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rx-sh em { font-style: normal; color: var(--text); }
.rx-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 12px 24px 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.rx-foot b { font: 500 13px var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.th { display: block; flex: none; background: var(--bg-deep) center / cover no-repeat; }

/* the shopper avatars (W2) */
.w2-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.w2-av svg { width: 20px; height: 20px; fill: none; stroke: var(--text-muted); stroke-width: 1.7; stroke-linecap: round; }
.w2-av.who-b { background: color-mix(in srgb, var(--accent-2) 22%, var(--surface-solid)); } .w2-av.who-c { background: color-mix(in srgb, var(--pos) 22%, var(--surface-solid)); }
.w2-av.who-b svg, .w2-av.who-c svg { stroke: var(--text); }
/* ================= loyalty: the member's app (inside the phone) ================= */
.la { position: absolute; inset: 0; padding: 19cqw 5.4cqw 0; display: flex; flex-direction: column; gap: 3.2cqw; }
.la-head { display: flex; justify-content: space-between; align-items: flex-start; }
.la-tt { display: block; font: 600 7.3cqw/1 var(--font-display); letter-spacing: -.03em; color: var(--sp-text); }
.la-sub { display: block; margin-top: 1.9cqw; font: 400 4.1cqw/1.2 var(--font-body); color: var(--sp-muted); }
.la-pts { font: 500 4.1cqw/1 var(--font-mono); color: var(--sp-text); padding: 1.9cqw 2.7cqw; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--sp-line-2); white-space: nowrap; }
.la-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 3cqw 3.5cqw; border-radius: 3.6cqw; background: var(--sp-tile); box-shadow: inset 0 0 0 1px var(--sp-line); font: 400 4.2cqw/1.2 var(--font-body); color: var(--sp-muted); }
.la-sum b { font: 600 5cqw/1 var(--font-display); color: var(--sp-text); font-variant-numeric: tabular-nums; }
.la-sum > span:last-child b { color: var(--sp-text); }
.la-list { display: flex; flex-direction: column; }
.la-it { display: grid; grid-template-columns: 13.5cqw minmax(0, 1fr) auto 7.6cqw; gap: 2.7cqw; align-items: center; padding: 2.15cqw 0; border-bottom: 1px solid var(--sp-line); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.la-ph { position: relative; width: 13.5cqw; height: 13.5cqw; border-radius: 2.7cqw; background: var(--sp-card-b) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.la-ph em { position: absolute; left: 0; top: 0; font: 600 3.3cqw/1 var(--font-mono); font-style: normal; color: var(--sp-ink); background: var(--sp-cy); padding: .6cqw 1.1cqw; border-radius: 2.7cqw 0 1.6cqw 0; }
.la-m { min-width: 0; display: flex; flex-direction: column; gap: .9cqw; }
.la-m b { font: 500 4.5cqw/1.15 var(--font-body); color: var(--sp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-m span { font: 400 4.1cqw/1.1 var(--font-body); color: var(--sp-faint); }
.la-pr { display: flex; flex-direction: column; align-items: flex-end; gap: .8cqw; }
.la-pr b { font: 600 4.5cqw/1 var(--font-display); color: var(--sp-text); font-variant-numeric: tabular-nums; }
.la-pr s { font: 400 4.1cqw/1 var(--font-mono); color: var(--sp-faint); }
.la-add { width: 7.6cqw; height: 7.6cqw; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--sp-line-2); }
.la-add svg { width: 3.8cqw; height: 3.8cqw; fill: none; stroke: var(--sp-text); stroke-width: 1.8; stroke-linecap: round; }
.la-note { margin: 0; font: 400 4.1cqw/1.3 var(--font-body); color: var(--sp-faint); }
.la-qr { position: absolute; left: 5.4cqw; right: 5.4cqw; bottom: 11.5cqw; display: flex; align-items: center; gap: 3.2cqw; padding: 2.7cqw; border-radius: 3.6cqw; background: var(--sp-tile); box-shadow: inset 0 0 0 1px var(--sp-line); }
.la-qm { width: 12cqw; height: 12cqw; flex: none; border-radius: 1.6cqw; background: var(--sp-paper); padding: .8cqw; }
.la-qm svg { display: block; width: 100%; height: 100%; fill: var(--sp-ink); }
.la-qr b { display: block; font: 600 4.4cqw/1.15 var(--font-display); color: var(--sp-text); }
.la-qr span span { display: block; margin-top: .8cqw; font: 400 4.1cqw/1.2 var(--font-body); color: var(--sp-muted); }

/* ================= page-side loyalty: the four points as plain text ================= */
.lx-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px 36px; }
.lx-pts li { padding-top: 14px; border-top: 1px solid var(--border); }
.lx-pts h3 { font: 500 16px/1.3 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.lx-pts p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }

/* ================= L2 · a member's week ================= */
.l2 { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px 52px; align-items: center; }
.l2-pts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.l2-side { display: flex; justify-content: center; }
.l2-main { min-width: 0; }
.l2-panel .rx-sh { padding: 16px 24px 12px; }
.l2-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, .62fr); padding: 12px 14px 12px; }
.l2-d { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px 12px 8px; min-width: 0; }
.l2-d + .l2-d::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.l2-d.today { background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 0; }
.l2-d.today::before, .l2-d.today + .l2-d::before { display: none; }
.l2-dh { display: flex; flex-direction: column; gap: 1px; padding: 0 2px 8px; }
.l2-dh b { font: 500 13.5px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.l2-d.today .l2-dh b { color: var(--accent-text); }
.l2-dh span { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; min-height: 1.3em; }
.l2-t { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; height: 54px; transition: opacity .35s var(--ease) calc(var(--k, 0) * 60ms), transform .35s var(--ease) calc(var(--k, 0) * 60ms); }
.l2-t .th { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.l2-t .nm { align-self: end; font-size: 12.5px; line-height: 1.25; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l2-t .st { align-self: start; font-size: 11.5px; line-height: 1.35; color: var(--text-faint); min-height: 1.35em; white-space: nowrap; }
.l2-t.red .th { opacity: .45; }
.l2-t.red .nm { color: var(--text-muted); }
.l2-t.red .st { color: var(--pos-text); }
.l2-t.new .th { box-shadow: 0 0 0 1.5px var(--accent-text); }
.l2-t.new .st { color: var(--accent-text); }
.l2-t.plan .th { background: none; box-shadow: none; border: 1px dashed color-mix(in srgb, var(--text) 24%, transparent); }
.l2-at { margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--text-faint); text-wrap: balance; }
.l2-d.next .l2-t { grid-template-columns: 40px; }
.l2-key { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text-faint); }
.l2-key .sw { width: 12px; height: 12px; border-radius: 3px; box-shadow: 0 0 0 1px var(--accent-text); }
.l2.armed .l2-d:not(.next):not(.on) .l2-t:not(.on) { opacity: 0; transform: translateY(5px); }
.l2-d.today .l2-t { transition-delay: 0s; }
.l2.armed .la-it { opacity: 0; transform: translateX(3cqw); }
.l2.armed .la-it.on { opacity: 1; transform: none; }

/* ================= W v2 · one matrix, three shelves ================= */
.wv-scroll { margin: 0 -4px; padding: 0 4px; }
.wv { --cw: 232px; --rh: 176px; --cg: 36px; display: grid; grid-template-columns: var(--rh) repeat(3, var(--cw)); column-gap: var(--cg); justify-content: center; }
.wv-heads, .wv-row, .wv-foot { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.wv-corner { align-self: end; display: flex; flex-direction: column; gap: 2px; padding: 0 0 12px 2px; }
.wv-corner b { font: 500 14px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.wv-corner span { font-size: 12.5px; color: var(--text-faint); }
.wv-hd { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; padding: 0 10px 12px; transition: opacity .4s var(--ease); }
.wv-hd .w2-av { grid-row: 1 / 3; width: 34px; height: 34px; }
.wv-hl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.wv-hl b { font: 500 15px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.wv-n { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.wv-did { font-size: 13px; line-height: 1.35; color: var(--text-muted); }
.wv-hd em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wv-sv { grid-column: 1 / -1; margin-top: 8px; font: 400 12px/1.3 var(--font-mono); color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wv-row { border-top: 1px solid var(--border); transition: background-color .25s var(--ease); }
.wv-row.last { border-bottom: 1px solid var(--border); }
.wv-row.scan { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.wv-rh { display: flex; align-items: center; gap: 10px; height: 25px; padding-left: 2px; min-width: 0; }
.wv-rh .th { width: 24px; height: 24px; border-radius: 6px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.wv-rh .nm { font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-c { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 10px; align-items: center; padding: 0 10px; transition: background-color .3s var(--ease); }
.wv-c .tr { position: relative; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--text) 7%, transparent); overflow: hidden; }
.wv-c .tr i { position: absolute; inset: 0; border-radius: 3px; background: color-mix(in srgb, var(--text) 30%, transparent); transform: scaleX(var(--v)); transform-origin: left center; transition: transform .45s var(--ease), background-color .3s var(--ease); }
.wv-c b { font: 400 12.5px var(--font-mono); text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; transition: opacity .25s var(--ease), color .3s var(--ease); }
.wv-c.top .tr i { background: var(--accent-text); }
.wv-c.top b { color: var(--accent-text); font-weight: 500; }
/* the top four of a column: corner brackets, as on the lit cards of the phone */
.wv-c.top::after { content: ""; position: absolute; inset: 3px 2px; pointer-events: none; --c: var(--accent-text); --l: 7px;
  background: linear-gradient(var(--c), var(--c)) 0 0 / var(--l) 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--l);
  background-repeat: no-repeat; transition: opacity .3s var(--ease); }
.wv-foot { padding-top: 20px; }
.wv-ph { display: flex; justify-content: center; }
.wv-sp { --pw: var(--cw) !important; }
.wv-side { display: flex; flex-direction: column; gap: 22px; padding: 4px 0 0 2px; min-width: 0; }
.wv-state { display: grid; }
.wv-state p { grid-area: 1 / 1; margin: 0; font: 500 15px/1.4 var(--font-display); letter-spacing: -.01em; color: var(--text); text-wrap: balance; transition: opacity .4s var(--ease); }
.wv-state .c { opacity: 0; }
.wv-key { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.wv-key .br { flex: none; width: 22px; height: 14px; margin-top: 2px; --c: var(--accent-text); --l: 5px;
  background: linear-gradient(var(--c), var(--c)) 0 0 / var(--l) 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--l);
  background-repeat: no-repeat; }
.wv-proof { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.wv-proof .rx-k { padding: 0; border: 0; }
.wv-proof p { margin: 0; font-size: 13px; color: var(--text-faint); }
/* armed by rec-v2.js: without a script the figure stands in its final frame */
.wv.armed .wv-c:not(.on) .tr i { transform: scaleX(0); }
.wv.armed .wv-c:not(.on) b { opacity: 0; }
.wv.armed:not(.ranked) .wv-c.top::after { opacity: 0; }
.wv.armed:not(.ranked) .wv-c.top .tr i { background: color-mix(in srgb, var(--text) 30%, transparent); }
.wv.armed:not(.ranked) .wv-c.top b { color: var(--text-muted); font-weight: 400; }
.wv.armed:not(.warm) .wv-state .c { opacity: 1; }
.wv.armed:not(.warm) .wv-state .w { opacity: 0; }
.wv.focus-0 .wv-c[data-k="0"], .wv.focus-1 .wv-c[data-k="1"], .wv.focus-2 .wv-c[data-k="2"] { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* ================= ≤1180 / ≤1024 / phones ================= */
@media (max-width: 1180px) {
  .wv { --cw: 224px; --rh: 146px; --cg: 20px; }
  .l2-t { grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; height: 58px; }
  .l2-t .th { width: 34px; height: 34px; }
  .l2-t .nm { white-space: normal; font-size: 12px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .l2-d.next .l2-t { grid-template-columns: 34px; }
  .l2-d { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 1024px) {
  .wv { --cw: 232px; --rh: 136px; --cg: 22px; }
  .l2 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .l2-pts { grid-template-columns: 1fr 1fr; gap: 20px 32px; }
}
@media (max-width: 960px) {
  .wv-scroll { overflow-x: auto; }
  .wv { width: max-content; justify-content: start; }
}
@media (max-width: 760px) {
  .l2-board { overflow-x: auto; grid-template-columns: repeat(4, 112px) 92px; }
  .l2-pts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sa, .sa-lay, .sa-br, .wv-hd, .wv-row, .wv-c, .wv-c .tr i, .wv-c b, .wv-state p, .la-it, .l2-t { transition: none !important; }
}

/* the shopper switch is a phone's; the desktop shows all three columns */
.wv-pick { display: none; }
/* What we do up to a small tablet: one shopper at a time — the switch on top, that shopper's column beside the
   products and only their phone below; the other two columns stay in the HTML (no sideways scroll at any width) */
@media (max-width: 960px) {
  .wv-scroll { margin: 0; padding: 0; overflow: visible; }
  .wv { --cw: minmax(0, 132px); --rh: minmax(0, 1fr); --cg: 12px; width: auto; max-width: 560px; margin: 0 auto; grid-template-columns: var(--rh) var(--cw); justify-content: stretch; }
  .wv-pick { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-deep); }
  .wv-pick button { min-height: 44px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--text-muted); font: 500 14px var(--font-body); cursor: pointer; }
  .wv-pick button[aria-selected="true"] { background: var(--surface-solid); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-card); }
  .wv-corner { display: none; }
  .wv-heads .wv-hd, .wv-row .wv-c, .wv-foot .wv-ph { display: none; }
  .wv[data-col="0"] .wv-hd[data-k="0"], .wv[data-col="1"] .wv-hd[data-k="1"], .wv[data-col="2"] .wv-hd[data-k="2"] { display: grid; grid-column: 1 / -1; padding: 0 0 12px; }
  .wv[data-col="0"] .wv-row > .wv-c:nth-child(2), .wv[data-col="1"] .wv-row > .wv-c:nth-child(3), .wv[data-col="2"] .wv-row > .wv-c:nth-child(4) { display: grid; }
  .wv-foot { grid-template-columns: minmax(0, 1fr); }
  .wv-side { grid-row: 2; padding-top: 18px; }
  .wv[data-col="0"] .wv-ph[data-k="0"], .wv[data-col="1"] .wv-ph[data-k="1"], .wv[data-col="2"] .wv-ph[data-k="2"] { display: flex; }
  .wv-sp { --pw: 232px !important; }
}

/* Loyalty on a phone: the member app a size smaller, the week as a row of days to swipe (today in view); nothing
   scrolls the page sideways */
@media (max-width: 640px) {
  .l2-side { display: flex; justify-content: center; }
  .l2-ph { --pw: 256px !important; }
  .l2-board { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 46%; }
  .l2-board::-webkit-scrollbar { display: none; }
  .l2-d { scroll-snap-align: start; }
  /* the four points: a row to swipe, the next one peeking */
  .l2-pts { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); }
  .l2-pts::-webkit-scrollbar { display: none; }
  .l2-pts li { scroll-snap-align: start; }
}

