/* LISTRAK STORES & LOYALTY - the page's own styles (go.rcsbuilder.com/discover/stores-and-loyalty/ - docs/claude/
   CONVERSATION-RUNNER.md section 1c). Over assets/discover.css: its tokens (--dc-*, light and dark), its panels, buttons and
   browser window. Every colour is a token or GregMart's own teal and gold; phone first - one column under 760 px. */

.sal-page {
  --sal-teal: #0f6b5c;
  --sal-teal-ink: #ffffff;
  --sal-gold: #f2a900;
  --sal-soft: rgba(15, 107, 92, 0.08);
}

.sal-page *,
.sal-page *::before,
.sal-page *::after { box-sizing: border-box; }

/* THE PHONE VIEW: inside the phone (?view=frame) the whole page shows, not only a concept page. */
.sc-view-frame body.sal-page > main.sal-main,
.sc-view-frame body.sal-page > footer.dc-foot { display: block !important; }

/* ── The bar's own tools ───────────────────────────────────────────────────────────── */

.sal-playing {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(242, 169, 0, 0.16);
  color: #ffd56b;
  font-weight: 700;
  white-space: nowrap;
}

.sal-brand { display: inline-flex; align-items: center; gap: 6px; }

.sal-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.sal-swatch[data-sal-accent="#0f6b5c"] { background: #0f6b5c; }
.sal-swatch[data-sal-accent="#b4232c"] { background: #b4232c; }
.sal-swatch[data-sal-accent="#5b3cc4"] { background: #5b3cc4; }
.sal-swatch[data-sal-accent="#1a56c8"] { background: #1a56c8; }
.sal-swatch[aria-pressed="true"] { border-color: #ffffff; box-shadow: 0 0 0 2px var(--dc-mint); }

.sal-swatch-pick { background: conic-gradient(#f2a900, #b4232c, #5b3cc4, #1a56c8, #0f6b5c, #f2a900); }
.sal-swatch-pick input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

.sal-langs { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; overflow: hidden; }

.sal-langs button {
  border: 0;
  background: transparent;
  color: #c4cad8;
  font: 700 0.72rem var(--dc-font);
  padding: 4px 8px;
  cursor: pointer;
}

.sal-langs button[aria-pressed="true"] { background: #ffffff; color: #0e1523; }

.sal-play-btn { background: var(--sal-gold) !important; color: #1b1300 !important; border-color: var(--sal-gold) !important; }

/* ── The hero: the deck, the box, the wallet ───────────────────────────────────────── */

.sal-hero {
  padding: 40px 0 56px;
  background: radial-gradient(120% 90% at 85% 0%, rgba(15, 107, 92, 0.16) 0%, rgba(15, 107, 92, 0) 60%), var(--dc-ink);
}

.sal-hero .dc-h1 { max-width: 16ch; }
.sal-hero .dc-lede { max-width: 70ch; }
/* The hero sits on the page's own ink - white in light mode, near-black in dark - so its heading, kicker and concept line take
   the theme's words (the navy-panel words they wore by default were white on white in light mode). */
.sal-hero .dc-h1,
.sal-hero .dc-kicker { color: var(--dc-head); }
.sal-hero .dc-concept-line { color: var(--dc-body); border-color: var(--dc-line); }

.sal-hero-grid {
  display: grid;
  grid-template-columns: 220px 420px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.sal-deck { display: flex; flex-direction: column; gap: 8px; }

.sal-deck-title {
  margin: 0 0 2px;
  font: 700 0.78rem var(--dc-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dc-muted);
}

.sal-cmd {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--dc-line);
  background: var(--dc-card);
  color: var(--dc-body);
  font: 500 0.78rem/1.3 var(--dc-font);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s var(--dc-ease), transform 0.2s var(--dc-ease);
}

.sal-cmd b { font-size: 0.9rem; color: var(--dc-head); letter-spacing: 0.02em; }
.sal-cmd i { font-style: normal; font-weight: 700; color: var(--sal-teal); }
.sal-cmd:hover { border-color: var(--sal-teal); transform: translateY(-1px); }
.sal-cmd[aria-pressed="true"] { border-color: var(--sal-teal); box-shadow: inset 4px 0 0 var(--sal-teal); }
/* Two classes, so its white words beat ".dc-page a" (which hands a link its panel's colour - dark words on teal). */
.sal-cmd.sal-cmd-text { background: var(--sal-teal); color: var(--sal-teal-ink); border-color: var(--sal-teal); font-weight: 700; }
.sal-cmd-text span { font-weight: 500; opacity: 0.85; }

.sal-box-col { display: flex; flex-direction: column; gap: 10px; }

.sal-box,
.sal-looks-stage { min-height: 680px; }

.sal-box .sc-stage-poster,
.sal-poster {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed var(--dc-line);
  background: var(--dc-card-2);
  color: var(--dc-body);
}

.sal-poster b { font-size: 1.05rem; color: var(--dc-head); }

.sal-poster-dark {
  background: #0b111d;
  border-color: #2c3340;
  color: #c4cad8;
}

.sal-poster-dark b { color: #f5f7ff; }

.sal-door-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sal-soft);
  color: var(--dc-body);
  font-size: 0.86rem;
}

.sal-deck-note { margin: 4px 0 0; font-size: 0.78rem; line-height: 1.45; color: var(--dc-muted); }
.sal-deck-note i { font-style: normal; font-weight: 700; color: var(--sal-teal); }

.sal-sell { margin-top: 36px; }
.sal-live-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font: 800 0.72rem var(--dc-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--sal-teal);
  color: var(--sal-teal-ink);
}

.sal-cues {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--dc-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sal-wallet-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.sal-mockhead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--sal-teal);
  color: var(--sal-teal-ink);
  min-height: 64px;
}

.sal-mockhead-logo { font: 800 1.15rem var(--dc-font); letter-spacing: -0.01em; }
.sal-mockhead-logo b { color: var(--sal-gold); }
/* The points badge is a DROPDOWN: the header keeps its height and the badge sits top right; closed, its frame is clipped to
   the pill; open, the panel drops down OVER the content below instead of growing the header. */
/* Scoped to the header so it outranks .sal-slot's position: relative below (equal specificity, later in the file - which is
   what made the open panel a 700px item centred in a 64px header, growing UP over the page). */
.sal-mockhead { position: relative; height: 64px; }
.sal-mockhead .sal-points { position: absolute; top: 4px; right: 8px; width: min(280px, calc(100% - 140px)); height: 56px;
  overflow: hidden; border-radius: 28px; }
/* Open: a real dropdown - anchored at the badge, wide enough for the wallet card, dropping DOWN over the content below, and
   scrolling vertically only (never sideways). */
.sal-mockhead .sal-points.sal-open { z-index: 30; width: min(400px, calc(100vw - 32px)); height: auto;
  max-height: min(680px, calc(100vh - 120px)); overflow-x: hidden; overflow-y: auto; scrollbar-width: thin;
  border-radius: 18px; box-shadow: 0 18px 44px rgb(0 0 0 / .45); }

.sal-slot { position: relative; min-width: 0; }
.sal-slot iframe { display: block; max-width: 100%; }

.sal-wallet { min-height: 420px; }

/* The box's card was opened - the face beside the box, as Jordan R. (sal.js openFaceBeside). */
.sal-sheetbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px;
  padding: 8px 10px; border-radius: 10px; background: var(--sal-soft); font: 600 0.85rem var(--dc-font);
}

.sal-arrive {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--dc-line);
  background: var(--dc-card);
  font-size: 0.86rem;
}

.sal-arrive p { margin: 0; }
.sal-arrive .dc-btn { align-self: flex-start; }
.sal-arrive.sal-flash { border-color: var(--sal-gold); box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.25); }

.sal-shared {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(242, 169, 0, 0.12);
  color: var(--dc-body);
  font-size: 0.9rem;
  max-width: 80ch;
}

/* ── The three buttons every tile carries, and its doc drawer ──────────────────────── */

.sal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.sal-doc { flex: 1 1 100%; }

.sal-doc > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font: 700 0.92rem var(--dc-font);
  color: var(--dc-teal-ink);
  padding: 10px 0;
  list-style: none;
}

.sal-doc > summary::-webkit-details-marker { display: none; }
.sal-doc > summary::after { content: "\25BE"; font-size: 0.8em; }
.sal-doc[open] > summary::after { content: "\25B4"; }

.sal-doc-in {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--dc-line);
  background: var(--dc-card);
  max-width: 820px;
}

.sal-doc-in p { margin: 0 0 8px; font-size: 0.92rem; }

.sal-links { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.sal-links a { color: var(--dc-teal-ink); font-weight: 600; }
.sal-links-row { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }

.sal-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--dc-line);
  font: 600 0.7rem var(--dc-font);
  color: var(--dc-muted);
  vertical-align: 1px;
  white-space: nowrap;
}

.dc-dark .sal-links a { color: #7fe3c9; }
.dc-dark .sal-badge { color: #939aad; border-color: #2c3340; }
.dc-dark .sal-doc-in { background: #16202f; border-color: #2c3340; }

/* ── On your customer's phone ──────────────────────────────────────────────────────── */

.sal-handset-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: center;
}

.sal-device-pick { display: inline-flex; gap: 0; border-radius: 999px; border: 1px solid #2c3340; overflow: hidden; padding: 0; }

.sal-device-pick button {
  border: 0;
  background: transparent;
  color: #c4cad8;
  font: 600 0.86rem var(--dc-font);
  padding: 8px 16px;
  cursor: pointer;
}

.sal-device-pick button[aria-pressed="true"] { background: var(--dc-mint); color: #0b111d; }

.sal-textit { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 18px 0; }
.sal-phone-col { display: flex; justify-content: center; }
.sal-handset-mount { width: 380px; max-width: 100%; min-height: 760px; display: flex; align-items: center; justify-content: center; }

.sal-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--dc-muted); }

.sal-qr .dc-qr {
  width: 132px;
  height: 132px;
  padding: 6px;
  border-radius: 10px;
  background: #ffffff;
  color: #0b111d;
}

.sal-qr .dc-qr:empty { display: none; }
.sal-qr-small .dc-qr { width: 108px; height: 108px; }

/* ── On a store's own website ──────────────────────────────────────────────────────── */

.sal-browser { margin-top: 24px; }

.sal-tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }

.sal-tabs button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: 600 0.82rem var(--dc-font);
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.sal-tabs button[aria-selected="true"] { background: var(--sal-teal); color: var(--sal-teal-ink); }

.sal-site { padding: 16px; min-height: 560px; background: var(--dc-card-2); }

.sal-cue { margin: 14px 0 0; font-size: 0.9rem; color: var(--dc-muted); }

.sal-tag {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0b111d;
  color: #c4cad8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sal-tag pre { margin: 0; overflow-x: auto; font: 0.8rem/1.45 var(--dc-mono); white-space: pre; }
.sal-tag-label { margin: 0; font: 700 0.75rem var(--dc-font); letter-spacing: 0.08em; text-transform: uppercase; color: #939aad; }
/* The tag's panel is always navy, so its Copy wears a dark panel's words (the page's own were dark on navy in light mode). */
.sal-tag .dc-btn { align-self: flex-start; color: #f5f7ff; border-color: rgba(245, 247, 255, 0.28); }
.sal-made-up { margin: 16px 0 0; font-size: 0.82rem; color: var(--dc-muted); }

/* ── The deal sniffer's dial ───────────────────────────────────────────────────────── */

.sal-dial-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }

.sal-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--dc-line);
  background: var(--dc-card);
}

.sal-rail fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sal-rail legend { font: 700 0.75rem var(--dc-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dc-muted); margin-bottom: 4px; padding: 0; }
.sal-rail label { font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; }
.sal-rail .sal-wide-label { flex: 1 1 100%; justify-content: space-between; }
.sal-rail input[type="search"],
.sal-rail select { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--dc-line); background: var(--dc-card-2); color: var(--dc-body); font: inherit; }

.sal-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.sal-chips button {
  border: 1px solid var(--dc-line);
  border-radius: 999px;
  background: var(--dc-card-2);
  color: var(--dc-body);
  font: 600 0.8rem var(--dc-font);
  padding: 5px 10px;
  cursor: pointer;
}

.sal-chips button[aria-pressed="true"] { background: var(--sal-teal); border-color: var(--sal-teal); color: var(--sal-teal-ink); }

.sal-dial-mount { min-height: 560px; }

.sal-big-line {
  margin: 26px 0 0;
  font: 600 clamp(1.15rem, 2.2vw, 1.5rem)/1.35 var(--dc-display);
  color: var(--dc-head);
  max-width: 40ch;
}

/* ── The same conversation, everywhere ─────────────────────────────────────────────── */

/* Positioned, so the table's screen-reader-only header (absolute) stays inside the scroller instead of widening the page. */
.sal-table-wrap { position: relative; overflow-x: auto; margin-top: 22px; }
/* A real table on the theme's own card (dc-table is a white mini-invoice card - its text follows the theme, so in the dark
   theme it read light grey on white). */
.sal-table { min-width: 760px; width: 100%; border-collapse: collapse; background: var(--dc-card); border: 1px solid var(--dc-line);
  color: var(--dc-body); font-size: 0.9rem; line-height: 1.45; }
.sal-table th { text-align: left; padding: 12px 14px; color: var(--dc-head); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid var(--dc-line); }
.sal-table td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--dc-line); }
.sal-table tbody tr:last-child td { border-bottom: 0; }
.sal-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--dc-head) 4%, transparent); }
.sal-table td:first-child { color: var(--dc-head); font-weight: 800; white-space: nowrap; }
.sal-table td:last-child { vertical-align: middle; }
.sal-table code { font-size: 0.8rem; color: var(--dc-teal-ink); }

.sal-mini {
  border: 1px solid var(--sal-teal);
  border-radius: 999px;
  background: transparent;
  color: var(--dc-teal-ink);
  font: 700 0.78rem var(--dc-font);
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.sal-textit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 36px; }

.sal-looks { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; margin-top: 36px; align-items: start; }
.sal-looks-stage { min-height: 600px; }

/* ── One card, and Open: the cards to ask for, a second box whose page slides up INSIDE it (no faces: "host"), and the
      member card on a phone ─────────────────────────────────────────────────────────── */

.sal-ov-grid {
  display: grid;
  grid-template-columns: 220px 420px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.sal-ov-tip { margin: 4px 0 0; font-size: 0.84rem; line-height: 1.45; color: var(--dc-body); }
.sal-ov-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sal-ov-card .dc-h3 { margin: 0; }
.sal-ov-card p { margin: 0; font-size: 0.92rem; }
.sal-ov-phone { min-height: 420px; }

/* ── On the way and Coming next ─────────────────────────────────────────────────────── */

.sal-onway-tag,
.sal-next-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font: 800 0.72rem var(--dc-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--dc-card-2);
  color: var(--dc-muted);
}

.sal-onway-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--dc-line);
  background: var(--dc-card);
}

.sal-onway-card p { margin: 6px 0 0; font-size: 0.92rem; }

/* New this week: a card that is live wears a solid line and a mint tag - the dashed card and the grey tag mean "coming". */
.sal-new-card { border-style: solid; }
.sal-new-tag { background: var(--dc-mint-btn); color: var(--dc-navy); }
.sal-onway-wide { max-width: 860px; }
.sal-onway-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.sal-next-card {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 24px;
  background: linear-gradient(135deg, #0f6b5c 0%, #0b2f43 55%, #1b1240 100%);
  color: #e9f3f1;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  max-width: 980px;
}

.sal-next-card .dc-h2 { color: #ffffff; }
.sal-next-card p { max-width: 64ch; font-size: 1.02rem; }
.sal-next-tag { background: var(--sal-gold); color: #1b1300; }

/* ── At the till ───────────────────────────────────────────────────────────────────── */

.sal-till-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; margin-top: 20px; }

.sal-steps { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 0.94rem; }

.sal-note { font-size: 0.84rem; color: var(--dc-muted); }

.sal-presenter {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 2px solid var(--sal-gold);
  background: rgba(242, 169, 0, 0.08);
}

.sal-till-phone { display: flex; justify-content: center; }

/* The till IS a phone app - drawn in a phone's frame (not the RCS emulator: the box rule is for the conversation). */
.sal-tillframe {
  width: 360px;
  max-width: 100%;
  height: 740px;
  border-radius: 48px;
  padding: 12px;
  background: #0b0d12;
  box-shadow: 0 0 0 2px #2a2f3a, 0 30px 80px rgba(0, 0, 0, 0.4);
}

.sal-tillscreen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #ffffff; display: flex; align-items: center; justify-content: center; }
.sal-tillscreen iframe { width: 100%; height: 100%; border: 0; }
.sal-tillscreen .sal-poster { border: 0; border-radius: 0; height: 100%; justify-content: center; }

/* The redemption app: four screenshots of the phone till (the demo walk-through's own pictures, staged under docs/img), each in
   the till's slim phone frame with a one-line caption - four across on a wide screen, two on a phone. */
.sal-tillshots { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--dc-line); }
.sal-tillshots-head { max-width: 70ch; }
.sal-tillshots-head p { margin: 6px 0 0; color: var(--dc-body); }
.sal-tillshots-row { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.sal-tillshots-row figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sal-tillshots-row img {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  border-radius: 26px;
  border: 7px solid #0b0d12;
  background: #ffffff;
  box-shadow: 0 0 0 1px #2a2f3a, 0 16px 40px rgba(14, 21, 35, 0.18);
}
.sal-tillshots-row figcaption { max-width: 230px; text-align: center; font-size: 0.86rem; line-height: 1.35; color: var(--dc-muted); }
.sal-tillshots-more { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* Clip it from the weekly ad (inside the website section): the words and two buttons beside a page of the ad with its tap areas
   and an item's sheet with Clip - the walk-through's own pictures, staged under docs/img. */
.sal-adclip { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--dc-line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.sal-adclip-text p { margin: 8px 0 0; color: var(--dc-body); }
.sal-adclip-text .dc-btns { margin-top: 16px; }
.sal-adclip-shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sal-adclip-shots figure,
.sal-pv-shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sal-adclip-shots img,
.sal-pv-shot img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--dc-line);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(14, 21, 35, 0.14);
}
.sal-adclip-shots figcaption,
.sal-pv-shot figcaption { max-width: 300px; text-align: center; font-size: 0.86rem; line-height: 1.35; color: var(--dc-muted); }

/* Points and visits: how the points look on the phone and the website beside two real screens, the three cards that say how they
   add up, and the one call that adds points from a store's own systems. */
.sal-pv-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.85fr); gap: 26px; margin-top: 26px; align-items: start; }
.sal-pv-col p { margin: 6px 0 0; color: var(--dc-body); }
.sal-pv-col .dc-btns { margin: 14px 0 22px; }
.sal-pv-shot img[src*="till-real"] { border: 7px solid #0b0d12; border-radius: 26px; box-shadow: 0 0 0 1px #2a2f3a, 0 16px 40px rgba(14, 21, 35, 0.18); }
.sal-pv-api { margin-top: 32px; max-width: 80ch; }
.sal-pv-api p { margin: 6px 0 0; color: var(--dc-body); }
.sal-pv-api .sal-pre { margin-top: 12px; }
/* A poster the page hid stays hidden: its own display rule would otherwise beat the hidden attribute, and the opened frame
   then sat BESIDE it in the flex screen - the poster squeezed into a strip, the till pushed right and cut off. */
.sal-poster[hidden] { display: none !important; }

.sal-cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sal-cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sal-cards .dc-card p { font-size: 0.94rem; }

.sal-pre {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b111d;
  color: #c4cad8;
  font: 0.76rem/1.5 var(--dc-mono);
  overflow-x: auto;
  white-space: pre;
}

.sal-hybrid { margin: 18px 0 0; }

/* ── What we measure ───────────────────────────────────────────────────────────────── */

.sal-measure-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 26px; margin-top: 26px; align-items: start; }

.sal-tape {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
  font: 0.8rem/1.4 var(--dc-mono);
}

.sal-tape li { padding: 8px 10px; border-radius: 10px; background: #16202f; color: #c4cad8; }
.sal-tape li b { color: #f5f7ff; }
.sal-tape li span { display: block; color: #7fe3c9; }
.sal-tape-empty { color: #939aad !important; font-family: var(--dc-font); }
.sal-tape-foot { font-size: 0.8rem; color: #939aad; }

.sal-funnel { margin: 0; }
.sal-funnel svg { width: 100%; height: auto; display: block; }
.sal-fn rect { fill: rgba(15, 107, 92, 0.35); stroke: #1eea8f; stroke-width: 1; }
.sal-fn-h { fill: #f5f7ff; font: 700 16px var(--dc-font); }
.sal-fn-s { fill: #c4cad8; font: 12px var(--dc-mono); }
.sal-fn-n { fill: #f2a900; font: 11px var(--dc-font); }

.sal-today p { font-size: 0.92rem; }

/* GregMart, live: the demo workspace's own counts (sal.js readLiveNumbers - public/demo-numbers), today or the last 30 days. */
.sal-live { margin: 14px 0; padding: 14px; border-radius: 16px; background: #16202f; border: 1px solid #2c3340; }
.sal-live-head { display: inline-flex; border: 1px solid #2c3340; border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.sal-live-head button { border: 0; background: transparent; color: #c4cad8; font: 700 0.8rem var(--dc-font); padding: 6px 12px; cursor: pointer; }
.sal-live-head button[aria-pressed="true"] { background: var(--dc-mint); color: #0b111d; }
.sal-live-tiles { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sal-live-tiles div { padding: 10px 12px; border-radius: 12px; background: #0e1523; }
.sal-live-tiles dt { font-size: 0.78rem; color: #939aad; }
.sal-live-tiles dd { margin: 2px 0 0; font: 800 1.5rem/1.1 var(--dc-font); color: #f5f7ff; font-variant-numeric: tabular-nums; }
.sal-live-foot { margin: 10px 0 0; font-size: 0.78rem !important; color: #939aad; }

/* ── Deals, gift certificates and a coupon for a friend ─────────────────────────────── */

.sal-gc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: start; margin-top: 26px; }
.sal-gc-text p { margin: 8px 0 0; color: var(--dc-body); }
.sal-gc-text .sal-live-tag { margin: 0 0 8px; color: var(--sal-teal-ink); }
.sal-gc-facts { margin: 14px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--dc-body); }
.sal-gc-paper { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sal-gc-paper figcaption { font-size: 0.84rem; color: var(--dc-muted); text-align: center; }

/* A still of the printed certificate, drawn in HTML: the paper stays white in either theme, like a printed page. */
.sal-gc-sheet {
  width: 100%;
  max-width: 360px;
  padding: 22px 22px 18px;
  border-radius: 14px;
  border: 2px dashed rgba(15, 107, 92, 0.45);
  background: #ffffff;
  color: #1a1f2b;
  box-shadow: 0 18px 44px rgba(14, 21, 35, 0.16);
  text-align: center;
}

.sal-gc-sheet p { margin: 0; }
.sal-gc-brand { font: 800 1.25rem var(--dc-font); color: var(--sal-teal); }
.sal-gc-brand b { color: var(--sal-gold); }
.sal-gc-kind { margin-top: 2px !important; font: 700 0.74rem var(--dc-font); letter-spacing: 0.12em; text-transform: uppercase; color: #5a6275; }
.sal-gc-amount { margin-top: 10px !important; font: 800 2.4rem/1 var(--dc-font); color: #0e1523; }
.sal-gc-words { font-size: 0.86rem; color: #5a6275; }
.sal-gc-who { margin: 14px 0 0; display: flex; justify-content: center; gap: 24px; }
.sal-gc-who dt { font: 700 0.7rem var(--dc-font); letter-spacing: 0.08em; text-transform: uppercase; color: #5a6275; }
.sal-gc-who dd { margin: 0; font-weight: 700; }
.sal-gc-message { margin-top: 8px !important; font-style: italic; font-size: 0.9rem; }
.sal-gc-codes { margin-top: 14px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.sal-gc-bars { width: 150px; height: 46px; background: repeating-linear-gradient(90deg, #0e1523 0 2px, transparent 2px 4px, #0e1523 4px 5px, transparent 5px 8px, #0e1523 8px 11px, transparent 11px 13px); }
.sal-gc-qr {
  width: 52px;
  height: 52px;
  background:
    linear-gradient(90deg, #0e1523 0 14px, transparent 14px 38px, #0e1523 38px 52px) top / 100% 14px no-repeat,
    linear-gradient(90deg, #0e1523 0 14px, transparent 14px) bottom / 100% 14px no-repeat,
    repeating-conic-gradient(#0e1523 0 25%, transparent 0 50%) center / 8px 8px;
}
.sal-gc-code { margin-top: 10px !important; font: 600 0.86rem var(--dc-mono); letter-spacing: 0.04em; }
.sal-gc-use { margin-top: 8px !important; font-size: 0.8rem; color: #5a6275; }
.sal-gifts .sal-cards { margin-top: 30px; }
.sal-gifts .sal-links-row { margin-top: 18px; }

/* ── Your homepage, with deals ─────────────────────────────────────────────────────── */

.sal-site-form { max-width: 640px; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.sal-site-form label { font-weight: 700; }
.sal-site-row { display: flex; gap: 10px; }
.sal-site-row input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--dc-line); background: var(--dc-card); color: var(--dc-body); font: inherit; }
.sal-status { margin: 0; min-height: 1.3em; font-size: 0.9rem; color: var(--dc-muted); }

.sal-mock {
  margin-top: 22px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--dc-line);
  background: #ffffff;
  color: #1a1a1a;
}

.sal-mock-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.sal-mock-head img { max-height: 36px; max-width: 160px; }
.sal-mock-name { font: 800 1.1rem var(--dc-font); }
.sal-mock-hero { padding: 28px 18px; }
.sal-mock-hero h3 { margin: 0; font: 800 clamp(1.3rem, 3vw, 2rem)/1.15 var(--dc-font); }
.sal-mock-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 16px; background: #f6f7f9; }

/* ── Build it ──────────────────────────────────────────────────────────────────────── */

.sal-docmap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin: 22px 0; }
.sal-docmap .sal-links { padding-left: 16px; }

/* ── Play the day ──────────────────────────────────────────────────────────────────── */

.sal-cue-card {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147482500;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 18px;
  background: #0e1523;
  color: #c4cad8;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid #2c3340;
}

.sal-cue-time { margin: 0; font: 800 0.8rem var(--dc-font); color: var(--sal-gold); letter-spacing: 0.06em; }
.sal-cue-title { margin: 4px 0 0; font: 700 1.05rem var(--dc-font); color: #f5f7ff; }
.sal-cue-text { margin: 6px 0 12px; font-size: 0.9rem; }
.sal-cue-btns { display: flex; gap: 8px; }
.sal-cue-btns .dc-btn { padding: 8px 14px; font-size: 0.86rem; }
/* The card is always navy, so Back and Close wear a dark panel's words (the page's own were dark on navy in light mode). */
.sal-cue-btns .dc-btn:not(.dc-btn-mint) { color: #f5f7ff; border-color: rgba(245, 247, 255, 0.28); }
.sal-cue-btns .dc-btn:disabled { opacity: 0.45; }
.sal-highlight { outline: 3px solid var(--sal-gold); outline-offset: 6px; border-radius: 12px; }

.sal-codes code { font-size: 0.8rem; }

/* ── A phone's width: one column, nothing live before a tap ───────────────────────── */

@media (max-width: 1180px) {
  .sal-hero-grid,
  .sal-ov-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .sal-wallet-col,
  .sal-ov-card { grid-column: 1 / -1; }
  .sal-docmap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sal-measure-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sal-pv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sal-pv-col { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* THE BAR scrolls away on a phone, with only what a phone can use - the brand swatches, the languages, the embed code, Play the
     day and Wide | Phone are wide-screen tools (index.html's sc-wide-only). */
  .sal-page .sc-bar { position: static; }
  .sal-page .sc-bar-title { flex-basis: 100%; }
  .sal-cue-card { display: none !important; }

  .sal-hero { padding-top: 24px; }
  .sal-hero-grid,
  .sal-ov-grid,
  .sal-handset-grid,
  .sal-dial-grid,
  .sal-looks,
  .sal-till-grid,
  .sal-measure-grid,
  .sal-textit-row,
  .sal-cards,
  .sal-cards-two,
  .sal-gc-grid,
  .sal-mock-body,
  .sal-docmap { grid-template-columns: minmax(0, 1fr); }

  /* THE DECK: the commands as chips that wrap - their words (Outcome / Measured as) and the deck's note are a wide screen's. */
  .sal-deck { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .sal-deck-title,
  .sal-ov-tip { flex: 1 1 100%; }
  .sal-cmd { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; }
  .sal-cmd span,
  .sal-deck-note { display: none; }
  .sal-box,
  .sal-looks-stage { min-height: 0; }
  .sal-points { display: none; }
  .sal-wallet,
  .sal-ov-phone { min-height: 0; }
  .sal-handset-mount { min-height: 0; }
  .sal-site,
  .sal-dial-mount { min-height: 0; }
  .sal-site { padding: 10px; }

  /* The store's window: its address on one line, its pages on the next - scrolled sideways inside the bar, never the page. */
  .sal-browser .dc-browser-bar { flex-wrap: wrap; row-gap: 8px; }
  .sal-tabs { margin-left: 0; flex: 1 1 100%; }
  .sal-looks-window .sc-looks-tabs { max-width: 100%; overflow-x: auto; }

  /* A QR is for a phone to scan - on a phone the link beside it is the way in. */
  .sal-qr { display: none; }

  /* THE COMMAND TABLE as cards: one card a command, each line its column's name (data-label). */
  .sal-table-wrap { overflow: visible; }
  .sal-table { min-width: 0; border: 0; background: transparent; }
  .sal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sal-table,
  .sal-table tbody,
  .sal-table tr,
  .sal-table td { display: block; width: 100%; }
  .sal-table tr { margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--dc-line); background: var(--dc-card); }
  .sal-table td { padding: 4px 0; border: 0; }
  .sal-table tbody tr:nth-child(even) td { background: transparent; }
  .sal-table td:first-child { font-size: 1.02rem; }
  .sal-table td[data-label]:not(:first-child):not(:last-child)::before {
    content: attr(data-label);
    display: block;
    font: 700 0.7rem var(--dc-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dc-muted);
  }
  .sal-table td:last-child { padding-top: 8px; }

  .sal-tillframe { height: 620px; border-radius: 40px; }
  .sal-tillshots-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sal-adclip { grid-template-columns: minmax(0, 1fr); }
  .sal-adclip-shots,
  .sal-pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sal-site-row { flex-direction: column; }
  .sal-big-line { font-size: 1.1rem; }
}

@media (max-width: 400px) {
  .sal-adclip-shots,
  .sal-pv-grid { grid-template-columns: minmax(0, 1fr); }
  .sal-live-tiles dd { font-size: 1.25rem; }
}
