/* =====================================================================
   Midwood Bins scan page + sign-in page: the Stageshow look (11/25/2026)

   Tyler picked the Stageshow look for the scan screen in the taste test of
   11/23/2026. Spec: stageshow-taste-test/LIVE-LOOK-SPEC.md.

   SCOPE: only public/index.html and public/login.html load this file, and
   every rule starts with `body.ss`. Receiving, Orders, Reprint and the label
   pages keep public/style.css (the look Tyler chose for them on 9/16/2026).
   Take the `ss` class off <body> and the page is the old look again.

   LOOK ONLY. No scan, undo, recount, PO or sign-out behavior lives here.

   Scanner guns (Zebra Android, old Chrome) rules for this file:
   - literal colors only: no color-mix(), no relative color syntax
   - no :has(), :is(), :where(), aspect-ratio, container queries
   - every motion sits inside prefers-reduced-motion: no-preference, uses
     transform/opacity only, and never holds back a scan (the new state is
     in the page from the first frame)
   - the band colors keep their meaning: green = into a PO, red = scan out,
     amber = recount. Blue is the plain "scan in, no PO" focus color.
   ===================================================================== */

body.ss {
  --ss-canvas: #f6f5f4;
  --ss-surface: #ffffff;
  --ss-well: #efeeec;
  --ss-soft: #faf9f8;
  --ss-ink: #262628;
  --ss-ink-2: #45454a;
  --ss-text: #52525b;          /* secondary text: darker than the kit's #7a7a7d, a gun is read at arm's length */
  --ss-faint: #8e8e93;
  --ss-line: #e9e8e5;
  --ss-line-2: #d8d7d3;
  --ss-accent: #3b82f6;
  --ss-accent-text: #306bca;
  --ss-accent-soft: #e7f0fe;
  --ss-dot-ok: #22c55e;
  --ss-dot-warn: #f59e0b;
  --ss-dot-bad: #ef4444;
  --ss-po: #0e8345;            /* band + PO buttons: white text needs the dark green */
  --ss-out: #c81e1e;
  --ss-recount: #b45309;
  --ss-ring: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --ss-card: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.08);
  --ss-float: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12), 0 12px 32px rgba(0, 0, 0, 0.08);

  /* The page's own tokens, re-pointed, so its inline styles follow the look. */
  --paper: #f6f5f4;
  --paper-2: #efeeec;
  --surface: #ffffff;
  --ink: #262628;
  --ink-2: #45454a;
  --muted: #52525b;
  --hairline: #e9e8e5;
  --hairline-2: #d8d7d3;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;   /* no monospace in this look */

  background: var(--ss-canvas);
  color: var(--ss-ink);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}

/* === Photo tile ===================================================== */
body.ss .ss-ph {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; overflow: hidden;
  background: #ffffff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  vertical-align: middle;
}
body.ss .ss-ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
body.ss .ss-ph-none { background: var(--ss-well); box-shadow: none; }
body.ss .ss-ph-lg { width: 72px; height: 72px; border-radius: 10px; }

/* === Header (the shared header, on this page only) ================== */
body.ss .mwnav { background: #ffffff; border-bottom: 1px solid var(--ss-line); font-family: var(--sans); }
body.ss .mwnav-brand { color: var(--ss-ink); font-size: 15px; font-weight: 600; }
body.ss .mwnav-links > a { color: var(--ss-text); }
body.ss .mwnav-links > a:hover { background: var(--ss-well); color: var(--ss-ink); }
body.ss .mwnav-links > a.on { background: var(--ss-accent-soft); color: var(--ss-accent-text); }
body.ss .mwnav-out { color: var(--ss-text); }
body.ss .mwnav-out:hover { background: var(--ss-well); color: var(--ss-ink); }
body.ss .mwnav .user-chip { color: var(--ss-ink); font-size: 13px; font-weight: 600; }
body.ss .kebab-btn { min-width: 40px; min-height: 40px; color: var(--ss-ink-2); border-radius: 8px; }
body.ss .kebab-btn:hover { background: var(--ss-well); }
body.ss .kebab-menu {
  border: 0; border-radius: 12px; padding: 6px; min-width: 240px;
  box-shadow: var(--ss-float);
}
body.ss .kebab-menu a, body.ss .kebab-menu button {
  min-height: 44px; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--ss-ink); border-radius: 8px;
}
body.ss .kebab-menu a:hover, body.ss .kebab-menu button:hover { background: var(--ss-well); }
body.ss .kebab-menu hr { border-top-color: var(--ss-line); }

/* === Buttons ======================================================== */
body.ss .btn {
  min-height: 40px; padding: 8px 14px;
  background: var(--ss-ink); border: 1px solid var(--ss-ink); color: #ffffff;
  border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.2;
}
body.ss .btn:hover { background: #3a3a3d; border-color: #3a3a3d; }
body.ss .btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
body.ss .btn-ghost {
  background: #ffffff; color: var(--ss-ink); border-color: transparent; font-weight: 500;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}
body.ss .btn-ghost:hover { background: var(--ss-soft); border-color: transparent; }
body.ss .btn-danger {
  background: #ffffff; color: var(--ss-out); border-color: transparent; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(200, 30, 30, 0.45), 0 1px 2px rgba(0, 0, 0, 0.04);
}
body.ss .btn-danger:hover { background: #fff5f5; border-color: transparent; }
body.ss .btn-green, body.ss .btn-gold { background: var(--ss-po); border-color: var(--ss-po); color: #ffffff; box-shadow: none; }
body.ss .btn-green:hover, body.ss .btn-gold:hover { background: #0b6b39; border-color: #0b6b39; }
body.ss .btn-amber { background: var(--ss-recount); border-color: var(--ss-recount); color: #ffffff; box-shadow: none; }
body.ss .btn:disabled { opacity: 0.45; }
/* Primary actions that are not about a PO are ink, so green keeps one
   meaning on this page: "into a PO". */
body.ss #a-close, body.ss #m-add, body.ss #pal-add, body.ss #rc-post, body.ss #vendor-add {
  background: var(--ss-ink); border-color: var(--ss-ink); color: #ffffff;
}
body.ss #a-close:hover, body.ss #m-add:hover, body.ss #pal-add:hover, body.ss #rc-post:hover, body.ss #vendor-add:hover { background: #3a3a3d; border-color: #3a3a3d; }
/* The confirm dialog's destructive button is a solid red. */
body.ss #c-ok.btn-danger { background: var(--ss-out); border-color: var(--ss-out); color: #ffffff; box-shadow: none; }
body.ss #c-ok.btn-danger:hover { background: #a81818; border-color: #a81818; }
/* The picked range in the Undo sheet. */
body.ss #undo-range-visit.btn-green, body.ss #undo-range-today.btn-green { background: var(--ss-ink); border-color: var(--ss-ink); }

/* === Inputs ========================================================= */
body.ss .input, body.ss input[type="text"], body.ss input[type="password"], body.ss input[type="number"],
body.ss input[type="search"], body.ss input[type="date"] {
  min-height: 44px; padding: 10px 12px;
  background: #ffffff; color: var(--ss-ink);
  border: 1px solid var(--ss-line-2); border-radius: 8px;
  font-family: var(--sans); font-size: 16px;
}
body.ss .input:focus, body.ss input:focus {
  border-color: var(--ss-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
body.ss input::placeholder { color: var(--ss-faint); }
body.ss input:disabled { background: var(--ss-soft); }
body.ss input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--ss-ink); }
body.ss label { font-size: 13px; font-weight: 600; color: var(--ss-ink-2); }
body.ss select, body.ss .select {
  min-height: 40px; border: 0; border-radius: 8px; color: var(--ss-ink); font-weight: 500;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}
body.ss select:focus { box-shadow: 0 0 0 1px var(--ss-accent), 0 0 0 4px rgba(59, 130, 246, 0.25); }

/* === Scan box ======================================================= */
body.ss main { gap: 14px; }
body.ss .omni-wrap { gap: 8px; }
body.ss .omni-wrap input#omni {
  min-height: 56px; padding: 0 16px 0 50px;
  font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: 0;
  border: 1px solid var(--ss-line-2); border-radius: 12px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23707074' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2M8 8v8M12 8v8M16 8v8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
body.ss .omni-wrap input#omni::placeholder { color: #6b6b70; }
body.ss .omni-wrap input#omni.in-bin::placeholder { color: #45454a; }
body.ss .omni-wrap input#omni:focus { border-color: var(--ss-accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28); }
/* In a bin the ring takes the band color, so the box and the band agree. */
body.ss .omni-wrap input#omni.in-bin { border-color: var(--ss-accent) !important; background-color: #ffffff; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28); }
body.ss[data-ss-mode="po"] .omni-wrap input#omni.in-bin { border-color: var(--ss-po) !important; box-shadow: 0 0 0 3px rgba(14, 131, 69, 0.26); }
body.ss[data-ss-mode="out"] .omni-wrap input#omni.in-bin,
body.ss .omni-wrap input#omni.in-bin.out { border-color: var(--ss-out) !important; background-color: #ffffff; box-shadow: 0 0 0 3px rgba(200, 30, 30, 0.24); }
body.ss[data-ss-mode="recount"] .omni-wrap input#omni.in-bin { border-color: var(--ss-recount) !important; box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.26); }
/* The answer to a scan: a short flash on the box (as before). */
body.ss .omni-wrap input#omni.flash-ok { border-color: #16a34a !important; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4) !important; }
body.ss .omni-wrap input#omni.flash-err { border-color: var(--ss-out) !important; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.4) !important; }
body.ss .omni-wrap .hint { font-size: 13px; color: var(--ss-ink-2); padding-left: 2px; line-height: 1.4; }

body.ss .omni-toolbar { flex-wrap: wrap; gap: 8px; margin-top: 0; }
body.ss .filter-chips:empty { display: none; }
body.ss .chip {
  min-height: 32px; padding: 4px 10px; white-space: nowrap;
  background: #ffffff; color: var(--ss-ink-2); border: 0; border-radius: 8px; font-size: 13px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
body.ss .chip:hover { color: var(--ss-ink); }
body.ss .chip .x { color: var(--ss-text); }

/* === "PO selected" strip ============================================ */
body.ss .po-strip, body.ss .po-strip.po-armed {
  flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px;
  background: #ffffff; color: var(--ss-ink); border: 0; border-radius: 10px; font-size: 14px; line-height: 1.4;
  box-shadow: var(--ss-ring);
}
body.ss .po-strip .po-dot { width: 8px; height: 8px; background: var(--ss-dot-ok); animation: none; }
body.ss .po-strip .po-text { flex: 1 1 200px; min-width: 0; }
body.ss .po-strip .spacer { display: none; }

/* === Active bin card ================================================ */
body.ss .active-card {
  background: #ffffff; border: 0; border-radius: 12px; overflow: hidden;
  box-shadow: var(--ss-card);
}
body.ss .bin-band { padding: 12px 16px; border-bottom: 0; }
body.ss .bin-band .bt { font-size: 20px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
body.ss .bin-band .bs { font-size: 13px; margin-top: 2px; }
body.ss .bin-band.band-po { background: var(--ss-po); color: #ffffff; }
body.ss .bin-band.band-in { background: var(--ss-well); color: var(--ss-ink); }
body.ss .bin-band.band-in .bs { color: var(--ss-ink-2); }
body.ss .bin-band.band-out { background: var(--ss-out); color: #ffffff; }
body.ss .bin-band.band-recount { background: var(--ss-recount); color: #ffffff; }

body.ss .active-card .active-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--ss-line);
}
body.ss .active-card .active-head .code {
  font-family: var(--sans); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1;
  white-space: nowrap; color: var(--ss-ink);
}
/* Status = dot + word, no tinted pill. */
body.ss .active-card .active-head .label {
  display: inline-flex; align-items: center; gap: 6px; align-self: center;
  padding: 0; border-radius: 0; background: none;
  font-size: 14px; font-weight: 600; color: var(--ss-ink); white-space: nowrap;
}
body.ss .active-card .active-head .label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ss-accent);
}
body.ss[data-ss-mode="po"] .active-card .active-head .label::before { background: var(--ss-dot-ok); }
body.ss[data-ss-mode="out"] .active-card .active-head .label::before { background: var(--ss-dot-bad); }
body.ss[data-ss-mode="recount"] .active-card .active-head .label::before { background: var(--ss-dot-warn); }
body.ss .active-card .active-head .totals { margin-left: auto; font-size: 14px; color: var(--ss-text); white-space: nowrap; }

/* Add / Remove: a segmented control. The picked side is a white key with a dot. */
body.ss .mode-seg { margin-left: 0; padding: 2px; border: 0; border-radius: 8px; background: var(--ss-well); }
body.ss .mode-seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--ss-text); background: transparent;
}
body.ss .mode-seg button.on, body.ss .mode-seg button.on.seg-in, body.ss .mode-seg button.on.seg-out {
  background: #ffffff; color: var(--ss-ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.1);
}
body.ss .mode-seg button.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ss-accent); }
body.ss[data-ss-mode="po"] .mode-seg button.on.seg-in::before { background: var(--ss-dot-ok); }
body.ss .mode-seg button.on.seg-out::before { background: var(--ss-dot-bad); }

/* Last scan: the focal point of the card. Photo, size, count. */
body.ss .ss-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--ss-line); background: #ffffff;
}
body.ss .ss-hero-what { flex: 1; min-width: 0; }
body.ss .ss-hero-status { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ss-ink); }
body.ss .ss-hero-status .w { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ss .ss-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ss-accent); }
body.ss .ss-tone-po .ss-dot { background: var(--ss-dot-ok); }
body.ss .ss-tone-out .ss-dot { background: var(--ss-dot-bad); }
body.ss .ss-tone-recount .ss-dot { background: var(--ss-dot-warn); }
body.ss .ss-hero-title {
  margin-top: 2px; font-size: 15px; line-height: 1.27; color: var(--ss-ink);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
body.ss .ss-hero-size { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 6px; }
body.ss .ss-hero-size .k { font-size: 14px; color: var(--ss-text); }
body.ss .ss-hero-size b { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; color: var(--ss-ink); }
body.ss .ss-hero-size .sku { font-size: 13px; color: var(--ss-text); }
body.ss .ss-hero-count { flex: none; text-align: right; }
body.ss .ss-hero-count .n { overflow: hidden; padding: 2px 0; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; color: var(--ss-ink); }
body.ss .ss-hero-count .k { margin-top: 2px; font-size: 13px; color: var(--ss-text); white-space: nowrap; }
body.ss .ss-tone-out .ss-hero-count .n { color: var(--ss-out); }
body.ss .ss-roll { position: relative; display: inline-block; }
body.ss .ss-roll-old { position: absolute; right: 0; top: 0; opacity: 0; pointer-events: none; }
body.ss .ss-roll-new { display: inline-block; }

/* The list */
body.ss .active-items .empty { padding: 20px 16px; color: var(--ss-text); font-style: normal; font-size: 14px; }
body.ss .item-row {
  grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 16px 10px 13px; border-bottom: 1px solid var(--ss-line); border-left: 3px solid transparent;
}
body.ss .item-row .product { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ss-ink); }
body.ss .item-row .meta { margin-top: 2px; font-size: 14px; color: var(--ss-text); }
body.ss .item-row .meta .size { color: var(--ss-ink); font-weight: 600; }
body.ss .item-row .qty { min-width: 44px; font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--ss-ink); }
body.ss .item-row.just-scanned { background: #edf8f1; border-left-color: var(--ss-dot-ok); }
body.ss .item-row.just-scanned .qty { color: var(--ss-po); }
body.ss .item-row.just-scanned.removed { background: #fdf0f0; border-left-color: var(--ss-dot-bad); }
body.ss .item-row.just-scanned.removed .qty { color: var(--ss-out); }
/* A barcode that is not in Shopify keeps its red mark wherever the row shows. */
body.ss .item-row.unknown { background: #fdf6f6; border-left-color: var(--ss-dot-bad); }
body.ss .item-row.unknown .product { color: var(--ss-out); }
body.ss .item-row.just-scanned.unknown { background: #fdeaea; border-left-color: var(--ss-dot-bad); }
body.ss .item-row.just-scanned.unknown .qty { color: var(--ss-out); }

body.ss .active-actions { flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: #ffffff; border-top: 1px solid var(--ss-line); }

/* === Warehouse list ================================================= */
body.ss .wh-meta { align-items: center; padding: 6px 2px 0; }
body.ss .section-label { font-size: 16px; font-weight: 600; color: var(--ss-ink); }
body.ss .wh-meta .stats { font-size: 13px; color: var(--ss-text); }
body.ss .bin-list { background: #ffffff; border: 0; border-radius: 12px; box-shadow: var(--ss-ring); }
body.ss .bin-list .empty-warehouse { padding: 48px 20px; color: var(--ss-text); }
body.ss .aisle-head { min-height: 48px; padding: 0 16px; gap: 12px; background: #ffffff; border-bottom: 1px solid var(--ss-line); }
body.ss .aisle-head:hover { background: var(--ss-soft); }
body.ss .aisle-group.open > .aisle-head { background: var(--ss-soft); }
body.ss .aisle-head .a-label { font-size: 15px; font-weight: 600; color: var(--ss-ink); }
body.ss .aisle-head .a-stats { font-size: 13px; color: var(--ss-text); }
/* the arrows: drawn, so they look the same on every gun */
body.ss .aisle-head .chev, body.ss .bin-head .chev {
  flex: none; width: 7px; height: 7px; font-size: 0; line-height: 0; color: transparent;
  border-right: 2px solid #8e8e93; border-bottom: 2px solid #8e8e93;
  transform: rotate(-45deg); transition: none; justify-self: center;
}
body.ss .aisle-group.open > .aisle-head .chev, body.ss .bin.expanded > .bin-head .chev { transform: rotate(45deg); border-color: var(--ss-ink); color: transparent; }
body.ss .bin { border-bottom: 1px solid var(--ss-line); }
body.ss .bin-head { grid-template-columns: 14px auto 1fr auto; gap: 12px; min-height: 48px; padding: 6px 16px; }
body.ss .bin-head:hover, body.ss .bin.expanded .bin-head { background: var(--ss-soft); }
body.ss .bin.active .bin-head { background: var(--ss-accent-soft); border-left: 3px solid var(--ss-accent); padding-left: 13px; }
body.ss .bin-head .code { font-family: var(--sans); font-size: 14px; font-weight: 600; margin-right: 0; min-width: 62px; color: var(--ss-ink); }
body.ss .bin-head .preview { font-size: 13px; color: var(--ss-text); }
body.ss .bin-head .preview .more { color: var(--ss-text); font-size: 13px; }
body.ss .bin-head .preview.empty { color: var(--ss-faint); font-style: normal; }
body.ss .bin-head .pairs { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ss-ink); }
body.ss .bin-head .pairs .unit { color: var(--ss-text); }
body.ss .bin-head .pairs.zero { color: var(--ss-faint); font-weight: 500; }
body.ss .bin-body { padding: 0 0 12px; background: var(--ss-soft); border-top: 1px solid var(--ss-line); }
body.ss .bin-body .item-row { padding-left: 39px; padding-right: 16px; }
body.ss .bin-body .item-row .ss-ph { background: #ffffff; }
body.ss .bin-body .row-actions { padding: 12px 16px 0; flex-wrap: wrap; }

/* === "Where is this shoe" results =================================== */
body.ss #prod-results { background: #ffffff; border: 0; border-radius: 12px; box-shadow: var(--ss-card); }
body.ss .pr-row { position: relative; min-height: 64px; padding: 12px 16px 12px 68px; border-bottom: 1px solid var(--ss-line); }
body.ss .pr-row > .ss-ph { position: absolute; left: 16px; top: 12px; }
body.ss .pr-row.pr-grand { min-height: 0; padding-left: 16px; background: var(--ss-soft); }
body.ss .pr-title { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ss-ink); }
body.ss .pr-meta { font-family: var(--sans); font-size: 13px; color: var(--ss-text); }
body.ss .pr-total { font-family: var(--sans); font-size: 17px; font-weight: 700; margin-left: 10px; }
body.ss .pr-bin {
  min-height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; border: 0; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
body.ss .pr-bin b { color: var(--ss-ink); font-weight: 700; }
body.ss .pr-bin:hover { box-shadow: 0 0 0 1px var(--ss-ink); }
body.ss .pr-none { color: var(--ss-text); font-style: normal; }
body.ss .pr-grand .pr-title { font-size: 13px; font-weight: 500; color: var(--ss-text); text-transform: none; letter-spacing: 0; }

/* === Sheets and dialogs ============================================= */
body.ss .overlay { background: rgba(20, 20, 22, 0.38); }
body.ss .overlay-panel { border-radius: 14px; padding: 24px; box-shadow: var(--ss-float); }
body.ss .overlay-panel h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--ss-ink); }
body.ss .overlay-panel .sub { margin: 4px 0 16px; font-size: 14px; line-height: 1.45; color: var(--ss-ink-2); }
body.ss .overlay-panel a { color: var(--ss-accent-text); }
body.ss .manual-actions { gap: 8px; margin-top: 16px; }
body.ss .manual-preview {
  gap: 14px; padding: 12px 14px; min-height: 64px;
  background: var(--ss-soft); border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
body.ss .manual-preview .placeholder { color: var(--ss-text); font-style: normal; font-size: 14px; }
body.ss .manual-preview .product { font-size: 15px; font-weight: 600; line-height: 1.3; }
body.ss .manual-preview .meta { color: var(--ss-ink-2); }
body.ss .manual-preview .err { color: var(--ss-out); font-weight: 600; font-size: 14px; }
body.ss .manual-preview .warn { font-size: 14px; }
body.ss .manual-recent { border-top-color: var(--ss-line); }
body.ss .manual-recent .item { border-bottom-color: var(--ss-line); padding: 8px 0; }
body.ss .manual-recent .item .qty-tag { font-family: var(--sans); color: var(--ss-po); }

/* Bin card chooser: one big key per choice. A dot ties each key to its band color. */
body.ss .bc-opt { min-height: 60px; padding: 12px 14px; border-radius: 10px; }
body.ss .bc-opt .l { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; font-weight: 600; line-height: 1.25; }
body.ss .bc-opt .s { margin-top: 3px; font-size: 13px; line-height: 1.35; opacity: 1; }
body.ss .bc-opt.btn-ghost .s { color: var(--ss-ink-2); padding-left: 16px; }
body.ss .bc-opt.btn-ghost .l::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #8e8e93; }
body.ss .bc-opt[data-bc="in"] .l::before { background: var(--ss-accent); }
body.ss .bc-opt[data-bc="out"] .l::before { background: var(--ss-dot-bad); }
body.ss .bc-opt[data-bc="recount"] .l::before { background: var(--ss-dot-warn); }

/* Undo scans */
body.ss .undo-row { gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--ss-line); }
body.ss .undo-row img, body.ss .undo-row .ph { border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
body.ss .undo-row .ph { background: var(--ss-well); box-shadow: none; }
body.ss .undo-row .n { font-size: 14px; font-weight: 500; line-height: 1.3; }
body.ss .undo-row .m { font-size: 14px; color: var(--ss-text); }
body.ss .undo-row .m b, body.ss .ev-row .what .p b { font-weight: 700; color: var(--ss-ink); }
body.ss .undo-row .q { font-size: 16px; }

/* Recount post */
body.ss .rc-row { gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ss-line); font-size: 14px; align-items: center; }
body.ss .rc-row.head { font-size: 13px; color: var(--ss-text); }
body.ss .rc-row .r { font-size: 15px; }
body.ss .rc-row.head .r { font-size: 13px; }
body.ss .rc-shoe { display: flex; align-items: center; gap: 10px; min-width: 0; line-height: 1.3; }
body.ss .rc-shoe .ss-ph { width: 36px; height: 36px; }
body.ss .rc-down { color: var(--ss-out); }
body.ss .rc-up { color: var(--ss-po); }
body.ss #rc-check-wrap {
  padding: 12px; border-radius: 10px; font-size: 14px !important; font-weight: 600; line-height: 1.35; color: var(--ss-ink);
  box-shadow: inset 0 0 0 1.5px var(--ss-dot-warn);
}
/* Confirm: the tick box is a ruled box, not a tinted block. */
body.ss #c-check-wrap {
  background: #ffffff !important; border-radius: 10px !important; font-weight: 600; line-height: 1.35; color: var(--ss-ink);
  box-shadow: inset 0 0 0 1.5px var(--ss-dot-bad);
}
body.ss #c-check-wrap input[type="checkbox"] { width: 22px !important; height: 22px !important; }

/* Make a pallet */
body.ss .pal-warn {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 12px;
  background: #ffffff; color: var(--ss-ink); border-radius: 10px; font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
body.ss .pal-warn::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ss-dot-bad); }
body.ss .pal-img { border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
body.ss .pal-line { border-bottom-color: var(--ss-line); padding: 10px 0; font-size: 14px; }
body.ss .pal-line .pal-thumb { border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
body.ss .pal-line .pal-thumb.none { background: var(--ss-well); box-shadow: none; }
body.ss .pal-line .what .m { font-family: var(--sans); color: var(--ss-text); }
body.ss .pal-line .q { font-family: var(--sans); font-size: 16px; }
body.ss .pal-lines { border-top-color: var(--ss-line); }
body.ss .pal-lines-head .tot { font-family: var(--sans); font-weight: 600; color: var(--ss-ink-2); }
body.ss .pal-empty { color: var(--ss-text); font-style: normal; }

/* Scrolling lists clip a button's ring at the edge: give the ring room. */
body.ss .scroll-table, body.ss #undo-list, body.ss #rc-list { padding-left: 2px; padding-right: 2px; }

/* Tables inside sheets */
body.ss table.data th, body.ss table.data td { padding: 12px 12px; border-bottom: 1px solid var(--ss-line); font-size: 14px; vertical-align: middle; }
body.ss table.data th { font-size: 12px; font-weight: 500; color: var(--ss-text); }
body.ss table.data tr:hover td { background: var(--ss-soft); }
body.ss table.data td.num { font-family: var(--sans); font-size: 14px; white-space: nowrap; }
body.ss table.data td .ss-ph { margin-right: 10px; }
body.ss table.data td .ss-name { vertical-align: middle; }
body.ss table.data td.muted[style*="italic"] { font-style: normal !important; }
/* PO type: dot + word, no pill */
body.ss .po-kind, body.ss .po-kind.returns {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border-radius: 0; background: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ss-ink-2); white-space: nowrap;
}
body.ss .po-kind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; }
body.ss .po-kind.returns::before { background: var(--ss-dot-warn); }
body.ss tr.po-group td, body.ss table.data tr.po-group:hover td { background: var(--ss-soft); color: var(--ss-text); font-size: 12px; font-weight: 600; padding: 8px 12px; }
body.ss tr.po-unknown td { background: transparent; }
body.ss #pos-tbody tr[style*="background"] { background: var(--ss-accent-soft) !important; }
body.ss #pos-tbody tr[style*="background"]:hover td { background: transparent; }
body.ss .po-status-open { color: var(--ss-po); }
body.ss input.po-money.saved { border-color: var(--ss-po); }

/* Recent scans + activity report: the change is a plain signed number */
body.ss .ev-row { gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ss-line); }
body.ss .ev-row .when { font-size: 13px; color: var(--ss-text); min-width: 62px; }
body.ss .ev-row .what .m { color: var(--ss-text); font-size: 13px; }
body.ss .ev-badge, body.ss .ev-badge.in, body.ss .ev-badge.out, body.ss .ev-badge.unk {
  min-width: 30px; padding: 0; border-radius: 0; background: none; text-align: right;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
}
body.ss .ev-badge.in { color: var(--ss-po); }
body.ss .ev-badge.out { color: var(--ss-out); }
body.ss .ev-badge.unk { color: var(--ss-recount); }
body.ss .rep-card { border: 0; border-radius: 10px; padding: 12px 14px; box-shadow: var(--ss-ring); }
body.ss .rep-card .u { font-size: 15px; font-weight: 600; }
body.ss .rep-card .n { color: var(--ss-text); }

/* === Toast ========================================================== */
body.ss .toast {
  bottom: 24px; max-width: calc(100vw - 24px);
  padding: 12px 16px; border-radius: 12px;
  background: var(--ss-ink); color: #ffffff; font-size: 15px; font-weight: 600; line-height: 1.35;
  box-shadow: var(--ss-float);
}
body.ss .toast.ok { background: var(--ss-ink); }
body.ss .toast.ok::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%;
  background: var(--ss-dot-ok); vertical-align: 1px;
}
body.ss .toast.err { background: var(--ss-out); }

/* === Reload notice + inactivity warning ============================
   nav.js and idle.js draw these with inline styles. idle.js is the same
   file in the ops portal, so it is not edited: the look is set from here. */
body.ss #mw-idle, body.ss #mw-update {
  gap: 12px !important; padding: 10px 10px 10px 14px !important;
  background: #262628 !important; color: #ffffff !important; border-radius: 12px !important;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1.35 !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12), 0 12px 32px rgba(0, 0, 0, 0.08) !important;
}
body.ss #mw-idle #mw-idle-t::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%;
  background: #f59e0b; vertical-align: 1px;
}
body.ss #mw-idle button, body.ss #mw-update button {
  min-height: 40px; padding: 8px 14px !important; border-radius: 8px !important;
  background: #ffffff !important; color: #262628 !important; font-weight: 600 !important;
}

/* === Sign-in page =================================================== */
body.ss .login-card {
  background: #ffffff; border: 0; border-radius: 14px; padding: 32px 28px;
  box-shadow: var(--ss-card);
}
body.ss .login-card .brand { margin-bottom: 24px; }
body.ss .login-card .brand .wordmark { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--ss-ink); }
body.ss .login-card .brand .wordmark .sep { color: var(--ss-ink); font-weight: 600; }
body.ss .login-card .brand .tag { color: var(--ss-text); }
body.ss .login-card input { min-height: 48px; }
body.ss .login-card .btn-submit { min-height: 48px; margin-top: 20px; font-size: 15px; }
body.ss .login-card .note {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 12px;
  border: 0; border-radius: 10px; font-size: 14px; line-height: 1.4; color: var(--ss-ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
body.ss .login-card .note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ss-dot-warn); }
body.ss .login-card .alt { min-height: 44px; line-height: 44px; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--ss-accent-text); }
body.ss .login-card .err { color: var(--ss-out); font-weight: 600; }

/* === Phone and scanner gun ========================================== */
@media (max-width: 720px) {
  body.ss { font-size: 15px; }
  body.ss main { padding: 12px 12px 88px; gap: 12px; }

  /* Header: brand, who is scanning, the menu and Sign out on one row; the
     page links on the row under it. */
  body.ss .mwnav-in { padding: 4px 8px 4px 12px; gap: 0 6px; }
  body.ss .mwnav-brand { order: 1; }
  body.ss .mwnav-sp { order: 2; flex: 1 1 0; }
  body.ss .mwnav-slot { order: 3; flex: 0 0 auto; gap: 4px; }
  body.ss .mwnav-out { order: 4; min-height: 40px; }
  body.ss .mwnav-links { order: 5; flex: 1 0 100%; margin: 0 -4px; overflow-x: auto; }
  body.ss .mwnav-links > a { min-height: 40px; padding: 8px 12px; }
  body.ss .mwnav-slot .kebab-menu { left: auto; right: 0; }

  body.ss .btn { min-height: 44px; }
  body.ss .btn-sm { min-height: 40px; }
  body.ss select, body.ss .select { min-height: 44px; font-size: 15px; }

  /* Order on a gun: scan box, its hint, then the bin card. In a bin the
     aisle filter and Make a pallet move under the card, so the band and the
     last scan sit as high on the screen as they can. Nothing is hidden. */
  body.ss .omni-wrap { display: contents; }
  body.ss .omni-wrap input#omni { order: 1; }
  body.ss .omni-wrap .hint { order: 2; margin-top: -6px; }
  body.ss .omni-toolbar { order: 3; }
  body.ss #prod-results { order: 4; }
  body.ss #po-strip { order: 5; }
  body.ss #active-card { order: 6; }
  body.ss[data-ss-mode="in"] .omni-toolbar, body.ss[data-ss-mode="po"] .omni-toolbar,
  body.ss[data-ss-mode="out"] .omni-toolbar, body.ss[data-ss-mode="recount"] .omni-toolbar { order: 7; }
  body.ss .wh-meta { order: 8; }
  body.ss #bin-list { order: 9; }
  body.ss .omni-toolbar .filter-chips { order: 3; flex: 1 0 100%; }
  body.ss .po-strip, body.ss .po-strip.po-armed { flex-wrap: nowrap; }
  body.ss .po-strip .po-text { flex: 1 1 0; }

  body.ss .wh-meta { display: block; }
  body.ss .wh-meta > .row { justify-content: space-between; flex-direction: row-reverse; margin-top: 6px; }

  body.ss .active-card .active-head { padding: 12px 14px; }
  body.ss .mode-seg { order: 4; display: flex; flex: 1 0 100%; }
  body.ss .mode-seg button { flex: 1; min-height: 44px; }
  body.ss .bin-band { padding: 12px 14px; }
  body.ss .ss-hero { gap: 12px; padding: 10px 14px; }
  body.ss .ss-ph-lg { width: 64px; height: 64px; }
  body.ss .ss-hero-size { margin-top: 4px; }
  body.ss .item-row { padding: 10px 14px 10px 11px; }
  body.ss .active-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 12px 14px; }
  body.ss .active-actions .btn { min-width: 0; padding: 6px 8px; white-space: normal; text-align: center; }
  body.ss .active-actions #a-close { grid-column: 1 / -1; min-height: 52px; font-size: 16px; }

  body.ss .aisle-head { padding: 0 14px; }
  body.ss .bin-head { grid-template-columns: 14px auto 1fr auto; gap: 10px; padding: 6px 14px; }
  body.ss .bin.active .bin-head { padding-left: 11px; }
  body.ss .bin-head .code, body.ss .bin-head .preview, body.ss .bin-head .pairs { font-size: 14px; }
  body.ss .bin-body .item-row { padding-left: 14px; padding-right: 14px; }
  body.ss .bin-body .row-actions { padding: 12px 14px 0; }
  body.ss .bin-body .row-actions .btn { flex: 1; }

  body.ss .pr-row { padding: 12px 14px 12px 64px; }
  body.ss .pr-row > .ss-ph { left: 14px; }
  body.ss .pr-row.pr-grand { padding-left: 14px; }

  /* Sheets use the whole width of the gun's screen. */
  body.ss .overlay { padding: 10px; }
  body.ss .overlay-panel { margin: 0 auto; padding: 18px 16px 16px; }
  body.ss .manual-actions { flex-wrap: wrap; }
  body.ss .manual-actions .btn { flex: 1 1 auto; min-height: 48px; }
  body.ss .manual-actions .spacer { display: none; }
  body.ss .bc-opt { min-height: 64px; }
  body.ss .undo-row { grid-template-columns: 40px 1fr auto; align-items: start; }
  body.ss .undo-row > :nth-child(1) { grid-row: 1 / span 2; }
  body.ss .undo-row > :nth-child(2) { grid-row: 1 / span 2; }
  body.ss .undo-row .q { grid-column: 3; grid-row: 1; justify-self: end; }
  body.ss .undo-row .btn { grid-column: 3; grid-row: 2; justify-self: end; }
  body.ss .ev-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 10px; align-items: center; }
  body.ss .ev-row .ss-ph { grid-column: 1; grid-row: 1 / span 2; }
  body.ss .ev-row .what { grid-column: 2; grid-row: 1; }
  body.ss .ev-row .what .p { white-space: normal; line-height: 1.3; }
  body.ss .ev-row .ev-badge { grid-column: 3; grid-row: 1; justify-self: end; }
  body.ss .ev-row .when { grid-column: 2; grid-row: 2; min-width: 0; }
  body.ss .ev-row .btn { grid-column: 3; grid-row: 2; }
  body.ss #pos-modal .overlay-panel > .row > select, body.ss #pos-modal .overlay-panel > .row > input { flex: 1 1 40%; max-width: none !important; }
  body.ss #pos-modal #po-vendor { flex: 1 0 100%; }
  body.ss #pos-modal #po-create { flex: 1 0 100%; min-height: 48px; }
  body.ss #pos-modal #pos-status { flex: 1 0 100%; }
  body.ss .rc-row { grid-template-columns: 1fr 44px 44px 48px; }
  body.ss .rc-shoe .ss-ph { display: none; }
  body.ss .overlay-panel .row { flex-wrap: wrap; }

  /* Tables in sheets: one block per row, the column names ride with the values. */
  body.ss .overlay table.data thead { display: none; }
  body.ss .overlay table.data, body.ss .overlay table.data tbody { display: block; }
  body.ss .overlay table.data tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--ss-line); }
  body.ss .overlay table.data tr:last-child { border-bottom: 0; }
  body.ss .overlay table.data td { display: block; padding: 0; border: 0; text-align: left; }
  body.ss .overlay table.data tr:hover td { background: transparent; }
  body.ss .overlay table.data td::before { color: var(--ss-text); font-weight: 400; }
  body.ss .overlay table.data tr.po-group { padding: 8px 10px; background: var(--ss-soft); border-radius: 8px; border-bottom: 0; margin-top: 4px; }
  body.ss .overlay table.data tr.po-group td { padding: 0; background: transparent; }
  body.ss #pos-tbody tr[style*="background"] { padding-left: 10px; padding-right: 10px; border-radius: 10px; }

  body.ss #pos-tbody td:nth-child(1) { flex: 1 0 100%; font-size: 16px; }
  body.ss #pos-tbody td:nth-child(3)::before { content: "Units "; }
  body.ss #pos-tbody td:nth-child(5)::before { content: "Last scan "; }
  body.ss #pos-tbody td:nth-child(6) { flex: 1 0 100%; display: flex; gap: 8px; margin-top: 6px; }
  body.ss #pos-tbody td:nth-child(6) .btn { flex: 1; min-height: 44px; }
  body.ss #pos-tbody td[colspan] { flex: 1 0 100%; font-size: 14px; }

  body.ss #po-view-tbody td:nth-child(1) { flex: 1 0 100%; display: flex; align-items: center; font-weight: 500; }
  body.ss #po-view-tbody td:nth-child(2)::before { content: "Size "; }
  body.ss #po-view-tbody td:nth-child(2) { font-weight: 600; }
  body.ss #po-view-tbody td:nth-child(3) { color: var(--ss-text); }
  body.ss #po-view-tbody td:nth-child(4) { margin-left: auto; font-size: 16px; }
  body.ss #po-view-tbody td:nth-child(4)::before { content: "Qty "; font-size: 13px; }
  body.ss #po-view-tbody td:nth-child(5) { flex: 1 0 100%; }
  body.ss #po-view-tbody td:nth-child(5):empty { display: none; }
  body.ss #po-view-tbody td[colspan] { flex: 1 0 100%; }

  body.ss #rep-tbody td:nth-child(2) { font-weight: 600; }
  body.ss #rep-tbody td:nth-child(4) { margin-left: auto; font-weight: 600; }
  body.ss #rep-tbody td:nth-child(4)::before { content: "Bin "; }
  body.ss #rep-tbody td:nth-child(5) { flex: 1 0 100%; display: flex; align-items: center; }
  body.ss #rep-tbody td[colspan] { flex: 1 0 100%; }

  body.ss #rec-tbody td:nth-child(1) { flex: 1 0 100%; font-weight: 500; }
  body.ss #rec-tbody td:nth-child(2)::before { content: "Size "; }
  body.ss #rec-tbody td:nth-child(2) { font-weight: 600; }
  body.ss #rec-tbody td:nth-child(3) { flex: 1 0 50%; }
  body.ss #rec-tbody td:nth-child(4) { margin-right: 8px; }
  body.ss #rec-tbody td:nth-child(4)::before { content: "Shopify "; }
  body.ss #rec-tbody td:nth-child(5)::before { content: "Scanned "; }
  body.ss #rec-tbody td:nth-child(6) { margin-left: auto; }
  body.ss #rec-tbody td:nth-child(6)::before { content: "Δ "; }

  body.ss #unknowns-tbody td:nth-child(1) { font-weight: 600; font-size: 15px; }
  body.ss #unknowns-tbody td:nth-child(2) { margin-left: auto; }
  body.ss #unknowns-tbody td:nth-child(2)::before { content: "Qty "; }
  body.ss #unknowns-tbody td:nth-child(3) { flex: 1 0 100%; }
  body.ss #unknowns-tbody td:nth-child(3)::before { content: "Where "; }
  body.ss #unknowns-tbody td:nth-child(4) { flex: 1 0 100%; }
  body.ss #unknowns-tbody td:nth-child(4) input { flex: 1; width: auto !important; font-size: 16px !important; }
  body.ss #unknowns-tbody td[colspan] { flex: 1 0 100%; }

  body.ss #vendors-tbody td:nth-child(1) { flex: 1; font-weight: 500; }
  body.ss #vendors-tbody td:nth-child(2) { display: flex; gap: 8px; }

  /* The toast and the two notices span the screen: read at arm's length. */
  body.ss .toast { left: 12px; right: 12px; bottom: 16px; max-width: none; transform: translateY(8px); text-align: left; }
  body.ss .toast.show { transform: none; }
  body.ss #mw-idle, body.ss #mw-update {
    left: 12px !important; right: 12px !important; bottom: 16px !important; transform: none !important; max-width: none !important;
    justify-content: space-between !important;
  }

  body.ss .login-card { width: calc(100vw - 24px); padding: 28px 20px; }
}

@media (min-width: 721px) {
  body.ss .bin-body .row-actions { justify-content: flex-end; }
  body.ss .overlay-panel .sub { max-width: 68ch; }
}

/* === Motion: each one has a cause, none delays a scan ================
   - the count rolls when the same shoe is scanned again
   - the scanned row and the last-scan panel arrive
   - a sheet rises when it opens
   The new value is in the page before any of these start. */
@media (prefers-reduced-motion: no-preference) {
  body.ss .ss-roll-up .ss-roll-new { animation: ss-in-up 0.22s cubic-bezier(0.2, 0.7, 0.3, 1); }
  body.ss .ss-roll-up .ss-roll-old { animation: ss-out-up 0.22s cubic-bezier(0.2, 0.7, 0.3, 1); }
  body.ss .ss-roll-down .ss-roll-new { animation: ss-in-down 0.22s cubic-bezier(0.2, 0.7, 0.3, 1); }
  body.ss .ss-roll-down .ss-roll-old { animation: ss-out-down 0.22s cubic-bezier(0.2, 0.7, 0.3, 1); }
  body.ss .ss-hero.ss-new > * { animation: ss-arrive 0.18s cubic-bezier(0.2, 0.7, 0.3, 1); }
  body.ss .item-row.just-scanned { animation: ss-arrive 0.2s cubic-bezier(0.2, 0.7, 0.3, 1); }
  body.ss .overlay.show .overlay-panel { animation: ss-rise 0.14s cubic-bezier(0.2, 0.7, 0.3, 1); }
}
@keyframes ss-in-up { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ss-out-up { from { transform: none; opacity: 1; } to { transform: translateY(-70%); opacity: 0; } }
@keyframes ss-in-down { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ss-out-down { from { transform: none; opacity: 1; } to { transform: translateY(70%); opacity: 0; } }
@keyframes ss-arrive { from { transform: translateY(-6px); opacity: 0.2; } to { transform: none; opacity: 1; } }
@keyframes ss-rise { from { transform: translateY(8px); opacity: 0.4; } to { transform: none; opacity: 1; } }
