@font-face {font-family:Inter; src:url("/static/home-assets/inter.woff2") format("woff2"); font-weight:100 900; font-display:swap}
@font-face {font-family:"Roboto Mono"; src:url("/static/home-assets/roboto-mono.woff2") format("woff2"); font-weight:100 900; font-display:swap}
:root {
  color-scheme: light;
  --sand: #ebe7e0;
  --ink: #0e0f12;
  --lime: #b6f734;
  --header-height: max(44px, calc(env(safe-area-inset-top) + 42px));
  --controls-height: calc(clamp(76px, 11.55svh, 110px) + env(safe-area-inset-bottom));
  --card-width: min(541px, calc(100vw - 36px), max(165px, calc(60svh - 29px)));
  --control-size: clamp(76px, 15svh, 110px);
  --control-gap: clamp(8px, 1.4vw, 12px);
}
* {box-sizing:border-box}
html {background:var(--sand); color:var(--ink); font:400 16px/1.4 Inter, Arial, sans-serif; -webkit-text-size-adjust:100%}
body {margin:0; min-height:100svh; overflow-x:clip}
button, input {font:inherit}
button, summary {cursor:pointer; -webkit-tap-highlight-color:transparent}
a {color:inherit}
:focus-visible {outline:3px solid #557713; outline-offset:4px}
.shopper-header {position:relative; height:var(--header-height); display:grid; justify-items:center; align-content:start; padding-top:max(10px, env(safe-area-inset-top))}
.brand {position:absolute; top:max(3px, env(safe-area-inset-top)); left:max(13px, env(safe-area-inset-left)); display:block; border-radius:8px}
.brand img {display:block; width:40px; height:40px}
.shopper-progress {width:min(448px, calc(100% - 132px)); text-align:center}
.shopper-progress label {display:block; color:#4a4946; font-size:12px; line-height:16px}
.shopper-progress progress {
  display:block; appearance:none; width:100%; height:4px; margin-top:6px; border:0; border-radius:8px;
  background:#d4d0ca; color:#668c16; overflow:hidden;
}
progress::-webkit-progress-bar {background:#d4d0ca; border-radius:inherit}
progress::-webkit-progress-value {background:#76a911; border-radius:inherit; transition:width .22s}
progress::-moz-progress-bar {background:#76a911; border-radius:inherit}
#shopper-root {min-height:calc(100svh - var(--header-height)); display:grid}
.initial-status, .shopper-error {place-self:center; text-align:center; padding:1rem; color:#504e4b}
.shopper-error button, .shopper-error a, .shopper-complete .btn, .swipe-deck [data-retry] {
  display:inline-flex; align-items:center; justify-content:center; padding:.65rem 1.2rem; border:1px solid #c9c7c1;
  border-radius:999px; background:white; color:var(--ink); font:600 14px/1.35 Inter,sans-serif; text-decoration:none;
}
.shopper-error p {margin:0 0 1rem}
.swipes-page > .reference-swipes:not(.swipe-flight-layer) {
  display:grid; grid-template-rows:minmax(0, 1fr) var(--controls-height); align-items:center; justify-items:center;
  width:100%; margin:0; position:relative;
}
.reference-swipes .swipe-deck {width:var(--card-width); position:relative; margin:0; padding:0}
.shopper-header, .shopper-help {z-index:5}
.reference-swipes .reference-swipe-card {
  border:0; border-radius:clamp(20px, 3.4vw, 31px); padding:clamp(11px, 2vw, 16px); background:white;
  color:var(--ink); box-shadow:0 16px 42px rgb(48 43 36 / 22%); user-select:none; -webkit-user-select:none; touch-action:pan-y;
}
.reference-swipes .reference-swipe-card .product-photo {
  display:grid; place-items:center; width:100%; aspect-ratio:1; overflow:hidden; background:#f0efeb;
  border-radius:clamp(14px, 2.3vw, 23px); isolation:isolate;
}
.reference-swipes .reference-swipe-card .product-photo img {width:100%; height:100%; object-fit:cover; display:block; -webkit-user-drag:none}
.photo-unavailable {color:#605e58; font-size:13px}
.reference-swipes .reference-swipe-card .product-info {padding:clamp(9px, 1.4svh, 13px) clamp(4px, 1vw, 9px) 0}
.reference-swipes .reference-swipe-card h2 {margin:0; font:540 16px/1.2 Inter,sans-serif; letter-spacing:-.026em}
.reference-swipe-card h2 a {max-width:100%; gap:5px; color:var(--ink); text-decoration:none}
.reference-swipe-card h2 a:hover span {text-decoration:underline}
.reference-swipe-card h2 .icon {color:var(--ink); width:17px; height:17px; flex-shrink:0}
.reference-swipes .reference-swipe-card .price-line {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;
  margin-top:6px; padding-top:6px; border:0; border-top:1px dashed #dedfdc;
  text-transform:uppercase; color:#74746f; font:450 10px/1.35 Inter,sans-serif; letter-spacing:.045em;
}
.reference-swipes .reference-swipe-card .price-line b {
  display:block; margin-top:0; color:var(--ink); letter-spacing:0; font:600 16px/1.3 "Roboto Mono",monospace;
}
.reference-swipes .reference-swipe-card .price-line span:last-child b {color:#858580; font:400 15px/1.38 Inter,sans-serif; letter-spacing:-.02em}
.icon, .shopper-help summary svg {fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round}
.swipe-stamp {display:none; position:absolute; border:3px solid; transform:rotate(-8deg)}
.swipes-page .actions {
  position:relative; display:grid; grid-template-columns:repeat(2, var(--control-size)); align-self:end; align-items:center;
  gap:var(--control-gap); margin:0 0 max(18px, calc(25px + env(safe-area-inset-bottom)));
}
.swipes-page .actions > div:first-child {position:absolute; right:calc(100% + var(--control-gap)); top:50%; transform:translateY(-50%)}
.swipes-page .actions kbd {display:none}
.swipes-page .actions .round-button {
  display:grid; place-items:center; width:var(--control-size); height:clamp(49px, 8.75svh, 70px);
  border:0; border-radius:30px; font:inherit; padding:0; line-height:1; touch-action:manipulation;
}
.swipes-page .round-button.reject {background:var(--ink); color:white}
.swipes-page .round-button.save {background:var(--lime); color:var(--ink)}
.swipes-page .round-button:is(.save,.reject) .icon {display:block; width:38px; height:38px; stroke-width:2.9}
.swipes-page .round-button.save .icon {fill:currentColor; stroke-width:1.1}
.swipes-page .actions .round-button.undo {
  width:40px; height:40px; margin:0; border-radius:14px; color:var(--ink); background:#dedbd4;
}
.swipes-page .round-button[aria-disabled="true"] {cursor:default}
.swipes-page .round-button.undo[aria-disabled="true"] {opacity:.29}
.swipes-page .round-button.undo .icon {width:22px; height:22px; stroke-width:2.5}
.swipes-page .round-button[aria-disabled="true"]:hover {transform:none}
.swipe-feedback.error {
  position:absolute; bottom:var(--controls-height); left:50%; transform:translateX(-50%);
  width:max-content; max-width:calc(100% - 32px); margin:0; padding:.4rem .7rem; border-radius:.5rem;
  color:#792c25; background:#fff; box-shadow:0 2px 10px #0001; font-size:13px;
}
.shopper-help {position:fixed; right:max(18px,env(safe-area-inset-right)); bottom:max(20px,env(safe-area-inset-bottom))}
.shopper-help summary {
  width:60px; height:60px; display:grid; place-items:center; border:1px solid #c9c6c0; border-radius:50%;
  background:#fff; box-shadow:0 3px 9px #0001; list-style:none;
}
.shopper-help summary::-webkit-details-marker {display:none}
.shopper-help summary svg {width:24px; height:24px}
.help-panel {position:absolute; right:0; bottom:calc(100% + 10px); width:min(290px, calc(100vw - 32px)); padding:20px; border:1px solid #d5d3cb; border-radius:17px; background:#fff; box-shadow:0 10px 28px #0002}
.help-panel h2 {margin:0; font-size:17px}
.help-panel p {margin:.5rem 0 .85rem; font-size:14px}
.help-panel nav {display:flex; flex-wrap:wrap; gap:.35rem 1rem; font-size:14px}
.shopper-complete {padding:clamp(20px,3vw,30px); border-radius:24px; background:#fff; text-align:center; box-shadow:0 12px 35px #302b2418}
.shopper-complete h2 {font:550 clamp(25px,4vw,34px)/1.1 Inter,sans-serif; letter-spacing:-.055em; margin:0}
.shopper-complete p {font-size:14px; margin:.75rem 0; color:#52544e}
.shopper-complete h3 {font-size:15px; margin:1rem 0 .6rem; text-align:left}
.shopper-complete ul {display:grid; grid-template-columns:repeat(auto-fit,minmax(72px,1fr)); gap:10px; list-style:none; padding:0; margin:0}
.shopper-complete li a {display:block; font-size:11px; text-decoration:none; text-align:left}
.shopper-complete li img {width:100%; max-height:90px; aspect-ratio:1; object-fit:cover; border-radius:9px; display:block; margin-bottom:3px}
.shopper-complete nav {display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin-top:1rem}
.shopper-complete .btn.primary {border-color:var(--lime); background:var(--lime)}
.swipes-page:has(.shopper-complete) .swipe-deck {width:min(100% - 32px, 542px); margin:20px 0}
.swipes-page:has(.shopper-complete) .actions {grid-template-columns:auto}
.swipes-page:has(.shopper-complete) .actions > div:first-child {position:static; transform:none}
.swipes-page:has(.shopper-complete) .actions > div:not(:first-child) {display:none}
@media (min-width:1024px) {
  .shopper-progress, .reference-swipes .swipe-deck, .swipes-page .actions {position:relative; left:-13px}
  .reference-swipes .reference-swipe-card {padding-bottom:15px}
}
@media (max-width:600px) {
  :root {--control-size:clamp(66px,20vw,94px); --control-gap:8px}
  .brand {left:max(10px,env(safe-area-inset-left)); top:max(8px,env(safe-area-inset-top))}
  .brand img {width:32px; height:32px}
  .shopper-progress {width:min(70vw, 300px)}
  .shopper-help {right:max(8px,env(safe-area-inset-right)); bottom:calc(28px + env(safe-area-inset-bottom))}
  .shopper-help summary {width:39px; height:39px}
  .shopper-help summary svg {width:20px; height:20px}
  .swipes-page .actions .round-button {height:54px}
  .swipes-page .actions .round-button.undo {width:34px; height:34px}
  .swipes-page .round-button:is(.save,.reject) .icon {width:31px; height:31px}
}
@media (max-height:520px) and (min-width:601px) {
  :root {--header-height:34px; --controls-height:58px; --card-width:min(36vw,calc(100svh - 201px)); --control-size:74px}
  .shopper-header {padding-top:3px}
  .brand img {width:30px; height:30px}
  .shopper-progress progress {margin-top:2px}
  .swipes-page .actions {margin-bottom:8px}
  .swipes-page .actions .round-button {height:42px}
  .swipes-page .actions .round-button.undo {height:30px; width:30px}
  .shopper-help {bottom:8px; right:12px}
  .shopper-help summary {width:40px; height:40px}
}
@media (prefers-reduced-motion:reduce) { .shopper-progress progress::-webkit-progress-value {transition:none} }
