/* Wallet Loyalty: one stylesheet. Each page sets --brand, --paper, --ink and --on-brand
   from the business's own colours, so every business gets its own look. */

@font-face {
  font-family: "Fraunces";
  src: url("/static/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/static/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("/static/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --brand: #1f2a44;
  --paper: #f6f1e7;
  --ink: #1b1b1b;
  --on-brand: #ffffff;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --gutter: 16px;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --soft: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --field: color-mix(in srgb, var(--paper) 55%, #ffffff);
  --danger: #b3261e;
}
.font-sans { --display: "Bricolage", ui-sans-serif, system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Masthead ---------- */
.masthead { display: flex; align-items: center; gap: 12px; padding: 18px 0 14px; }
.masthead img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.masthead .name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: 0.01em; font-variation-settings: "SOFT" 100, "opsz" 24; }
.masthead .spacer { flex: 1; }
.on-brand .masthead { color: var(--on-brand); }

/* ---------- Hero band with a torn-ticket edge ---------- */
.band {
  background: var(--brand);
  color: var(--on-brand);
  position: relative;
  padding-bottom: 40px;
  --notch: 11px;
  -webkit-mask: radial-gradient(var(--notch) at 50% 100%, #0000 98%, #000) 50% 100% / calc(var(--notch) * 2.6) 100% repeat-x;
  mask: radial-gradient(var(--notch) at 50% 100%, #0000 98%, #000) 50% 100% / calc(var(--notch) * 2.6) 100% repeat-x;
}
.kicker { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; opacity: 0.78; margin: 18px 0 10px; }
.reward-line {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(40px, 11.5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  text-wrap: balance;
}
.font-sans .reward-line { font-weight: 700; letter-spacing: -0.035em; }

.stamp-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.stamp-row li {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--on-brand) 55%, transparent);
  display: grid; place-items: center;
}
.stamp-row li svg { width: 20px; height: 20px; stroke: var(--on-brand); opacity: 0.85; }
.stamp-row li.on { background: var(--paper); border-style: solid; border-color: var(--paper); }
.stamp-row li.on svg { stroke: var(--brand); opacity: 1; }
.stamp-row li.prize { border-style: solid; }
.band-note { font-size: 15px; opacity: 0.85; margin: 0; max-width: 30ch; }

/* ---------- Forms ---------- */
.sheet { padding: 28px 0 8px; }
.sheet h2 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.01em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin: 0 0 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  min-height: 52px;
  appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus, .field select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field .err, .form-error { color: var(--danger); font-size: 14px; margin: 6px 0 0; font-weight: 500; }
.form-error { margin: 0 0 16px; }
.field.invalid input { border-color: var(--danger); }
.phone { display: flex; align-items: stretch; }
.phone .cc { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: color-mix(in srgb, var(--ink) 5%, var(--field)); font-weight: 600; font-size: 16px; }
.phone input { border-radius: 0 12px 12px 0; }
.hint { font-size: 13px; color: var(--soft); margin: 6px 0 0; }

.consent { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 7%, var(--paper)); margin: 4px 0 18px; font-size: 15px; line-height: 1.45; }
.consent input { width: 26px; height: 26px; margin: 0; accent-color: var(--brand); }
.consent.invalid { box-shadow: inset 0 0 0 1.5px var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 14px 22px;
  border: 0; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font: inherit; font-weight: 650; font-size: 18px; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.985); }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { min-height: 44px; font-size: 15px; width: auto; padding: 8px 16px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Footer ---------- */
.foot { padding: 34px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* Customer pages: a small, quiet "powered by Amplifier" line in the business's own colours. */
.foot .powered { flex-basis: 100%; margin: 6px 0 0; font-size: 12px; color: var(--soft); opacity: 0.75; }

/* ---------- Wallet card preview ---------- */
.greet { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 8vw, 42px); line-height: 1.05; letter-spacing: -0.02em; margin: 10px 0 8px; text-wrap: balance; }
.lede { margin: 0 0 22px; color: var(--soft); }
.pass {
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 18px 40px -18px color-mix(in srgb, var(--brand) 70%, #000);
  margin: 0 0 22px;
}
.pass-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.pass-top img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; }
.pass-top .org { font-weight: 650; font-size: 16px; flex: 1; }
.pass-top .count { text-align: right; line-height: 1.1; }
.pass-label { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; font-weight: 600; }
.pass-value { font-size: 19px; font-weight: 650; }
.pass-strip { aspect-ratio: 1032 / 338; width: 100%; height: auto; background: color-mix(in srgb, var(--on-brand) 8%, var(--brand)); }
.pass-fields { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; padding: 14px 16px 6px; }
.pass-fields .pass-value.long { font-size: 16px; line-height: 1.25; }
.pass-code { padding: 12px 16px 18px; display: grid; place-items: center; }
.pass-code .qr { background: #fff; padding: 10px; border-radius: 12px; width: 168px; height: 168px; }
.pass-code .qr svg { width: 100%; height: 100%; display: block; }
.pass-code .alt { font-size: 12px; opacity: 0.8; margin-top: 8px; }
.pass.void { filter: grayscale(1); opacity: 0.6; }

.wallet-buttons { display: grid; gap: 12px; margin: 0 0 14px; }
.wallet-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; }
.wallet-btn:hover { text-decoration: none; filter: brightness(1.2); }
.wallet-btn svg { width: 26px; height: 26px; }
.wallet-btn.google { background: #1f1f1f; }
.dev-note { font-size: 14px; border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, #f4b400 18%, var(--paper)); margin: 0 0 18px; }
.dev-note code { font-size: 12px; word-break: break-all; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; margin: 18px 0 0; }

.panel { padding: 22px 0; }
.panel h1 { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.08; letter-spacing: -0.015em; margin: 8px 0 12px; text-wrap: balance; }
.panel p { margin: 0 0 16px; }
.stack { display: grid; gap: 12px; margin-top: 18px; }

/* ---------- Privacy notice ---------- */
.prose h1 { font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 1.05; margin: 12px 0 18px; letter-spacing: -0.02em; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 28px 0 8px; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
.prose ul { padding-left: 20px; }

/* ---------- Owner view ---------- */
.stats { display: grid; gap: 0; margin: 8px 0 26px; border-top: 1.5px solid var(--ink); }
.stat { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.stat .num { font-family: var(--display); font-weight: 560; font-size: clamp(54px, 16vw, 84px); line-height: 0.9; letter-spacing: -0.04em; color: var(--brand); font-variation-settings: "opsz" 144, "SOFT" 50; min-width: 2.2ch; }
.stat .what { font-weight: 650; font-size: 18px; }
.stat .why { display: block; font-size: 14px; color: var(--soft); font-weight: 400; }
.section-title { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin: 26px 0 8px; color: var(--soft); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.feed .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.feed .dot.signup { background: transparent; box-shadow: inset 0 0 0 2px var(--brand); }
.feed .dot.redeem { background: #c98b00; }
.feed time { font-size: 13px; color: var(--soft); white-space: nowrap; }
.owner-actions { display: grid; gap: 12px; margin: 26px 0 0; }

/* ---------- Staff counter screen ---------- */
.staff { background: #0f0f0f; color: #fff; min-height: 100dvh; display: flex; flex-direction: column; }
.staff-bar { display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); background: var(--brand); color: var(--on-brand); }
.staff-bar img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; }
.staff-bar .name { font-weight: 700; flex: 1; font-size: 17px; }
.staff-bar form { margin: 0; }
.staff-bar button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--on-brand) 50%, transparent); background: transparent; color: var(--on-brand); font: inherit; font-weight: 600; font-size: 15px; }
.viewport { position: relative; flex: 1 1 auto; min-height: 36dvh; max-height: 52dvh; background: #000; overflow: hidden; }
.viewport video { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewport .frame { position: absolute; inset: 50% auto auto 50%; width: min(62vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0,0,0,0.42); outline: 3px solid rgba(255,255,255,0.9); outline-offset: -3px; }
.viewport .start { position: absolute; inset: 0; display: grid; place-items: center; background: #000; }
.viewport .start[hidden] { display: none; }
.viewport .start button { min-height: 64px; padding: 0 28px; border-radius: 999px; border: 0; background: #fff; color: #000; font: inherit; font-size: 19px; font-weight: 700; }
.viewport .status { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 15px; font-weight: 600; text-shadow: 0 1px 4px #000; }
.result { background: #161616; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.result .who { font-family: var(--display); font-size: clamp(34px, 10vw, 48px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; margin: 0; }
.result .count { font-size: 20px; font-weight: 600; color: #cfcfcf; margin: 0; }
.dots { display: flex; flex-wrap: wrap; gap: 8px; }
.dots span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #5a5a5a; }
.dots span.on { background: var(--paper); border-color: var(--paper); }
.big { width: 100%; min-height: 96px; border: 0; border-radius: 22px; font: inherit; font-size: 26px; font-weight: 750; letter-spacing: 0.01em; background: var(--paper); color: var(--brand); touch-action: manipulation; }
.big:active { transform: scale(0.99); }
.big[disabled] { opacity: 0.35; }
.big.redeem { background: #f2b705; color: #111; }
.big.confirm { background: #fff; color: #111; outline: 4px solid #f2b705; }
.second { min-height: 60px; border-radius: 18px; border: 2px solid #444; background: transparent; color: #fff; font: inherit; font-size: 18px; font-weight: 650; touch-action: manipulation; }
.toast { min-height: 28px; font-size: 18px; font-weight: 650; color: #9be29b; margin: 0; }
.toast.bad { color: #ff9b91; }
.idle { color: #bdbdbd; font-size: 18px; margin: 0; }
.devpaste summary { color: #9a9a9a; font-size: 14px; cursor: pointer; }
.devpaste input { width: 100%; margin-top: 8px; padding: 12px; border-radius: 10px; border: 1px solid #444; background: #222; color: #fff; font: inherit; font-size: 14px; }

/* PIN pad */
.pin-screen { min-height: 100dvh; background: var(--brand); color: var(--on-brand); display: flex; flex-direction: column; }
.pin-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom)); max-width: 420px; width: 100%; margin: 0 auto; }
.pin-body h1 { font-family: var(--display); font-weight: 600; font-size: 34px; margin: 0 0 6px; letter-spacing: -0.015em; }
.pin-body p { margin: 0 0 18px; opacity: 0.85; }
.pin-input { width: 100%; font: inherit; font-size: 34px; letter-spacing: 0.5em; text-align: center; padding: 12px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--on-brand) 40%, transparent); background: color-mix(in srgb, var(--on-brand) 10%, transparent); color: var(--on-brand); margin-bottom: 16px; }
.pin-error { background: #fff; color: var(--danger); border-radius: 12px; padding: 10px 14px; font-weight: 600; margin: 0 0 14px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.keypad button { min-height: 76px; border-radius: 20px; border: 0; background: color-mix(in srgb, var(--on-brand) 14%, transparent); color: var(--on-brand); font: inherit; font-size: 30px; font-weight: 600; touch-action: manipulation; }
.keypad button:active { background: color-mix(in srgb, var(--on-brand) 28%, transparent); }
.keypad .go { background: var(--paper); color: var(--brand); font-size: 20px; font-weight: 750; }
.keypad .clear { font-size: 18px; }

/* ---------- Admin (the platform's own look, never shown to customers) ---------- */
.admin { --brand: #111111; --paper: #f3f1ec; --ink: #151515; --on-brand: #ffffff; --display: "Bricolage", system-ui, sans-serif; }
.admin .wrap { max-width: 960px; }
.admin-top { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1.5px solid var(--ink); margin-bottom: 18px; }
.admin-top .title { font-weight: 750; font-size: 18px; letter-spacing: -0.01em; flex: 1; }
.admin-top form { margin: 0; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.chip.live { background: #e5f4e8; }
.chip.dev { background: #fff3cd; }
.mlist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mcard { display: block; text-decoration: none; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.mcard:hover { text-decoration: none; box-shadow: inset 0 0 0 2px var(--ink); }
.mcard .sw { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 14px; font-weight: 700; }
.mcard .meta { padding: 12px 14px; font-size: 14px; color: var(--soft); display: grid; gap: 2px; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset legend { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--soft); padding: 18px 0 10px; }
.grid2 { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.colour { display: flex; gap: 8px; }
.colour input[type="color"] { width: 56px; min-width: 56px; padding: 4px; }
.admin-preview { border-radius: 18px; overflow: hidden; margin: 6px 0 18px; box-shadow: inset 0 0 0 1px var(--line); }
.admin-preview .pv-band { padding: 16px; }
.admin-preview .pv-reward { font-family: "Fraunces", Georgia, serif; font-size: 30px; line-height: 1; font-weight: 560; margin: 6px 0 0; }
.admin-preview.font-sans .pv-reward { font-family: "Bricolage", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.03em; }
.admin-preview .pv-paper { padding: 12px 16px; font-size: 14px; }
.notice { padding: 12px 14px; border-radius: 12px; background: #e5f4e8; color: #14321f; margin: 0 0 16px; }
.notice.warn { background: #fff3cd; }
.danger-zone { margin: 36px 0 60px; padding: 18px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--danger); }
.danger-zone h2 { margin: 0 0 6px; font-size: 20px; color: var(--danger); }
.outbox-item { background: #fff; border-radius: 14px; padding: 14px; margin: 0 0 12px; box-shadow: inset 0 0 0 1px var(--line); }
.outbox-item pre { white-space: pre-wrap; font-size: 14px; margin: 8px 0 0; }

/* ---------- Sign-up opt-ins and customer message choices ---------- */
.optins { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.optins legend { font-size: 14px; font-weight: 600; margin: 0 0 6px; padding: 0; }
.optins legend span { font-weight: 400; color: var(--soft); }
.optins.tight { margin: 8px 0 4px; }
.optin { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; cursor: pointer; }
.optin input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand); }

/* ---------- Owner: tabs and Messages ---------- */
.tabs { display: flex; gap: 6px; margin: 0 0 6px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, var(--paper)); width: max-content; max-width: 100%; }
.tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--soft); }
.tabs a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.back { margin: 14px 0 0; font-size: 15px; }
.page-title { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 7vw, 34px); line-height: 1.1; letter-spacing: -0.015em; margin: 8px 0 10px; text-wrap: balance; overflow-wrap: anywhere; }
.status-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.status-row .pill { margin-top: 14px; }
.block { padding: 18px 0 8px; border-top: 1.5px solid var(--ink); margin-top: 22px; }
.block > .kicker:first-child { margin-top: 0; }
.pill { flex: none; display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; white-space: nowrap; background: color-mix(in srgb, var(--ink) 9%, var(--paper)); color: var(--ink); }
.pill.s-sent { background: #dcefe0; color: #14532d; }
.pill.s-scheduled, .pill.s-sending { background: #dbe8fb; color: #1e3a8a; }
.pill.s-waiting { background: #fff1c2; color: #6b4a00; }
.pill.s-cancelled { opacity: 0.7; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: 0.02em; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, var(--paper)); color: var(--ink); }
.callout { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #f4b400 20%, var(--paper)); margin: 0 0 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.facts > div { padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, var(--paper)); display: grid; gap: 2px; }
.fact-num { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; color: var(--brand); }
.fact-label { font-size: 13px; color: var(--soft); line-height: 1.3; }
.templates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 8px; }
.template { display: grid; gap: 4px; padding: 14px; border-radius: 16px; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); min-height: 92px; align-content: start; }
.template:hover { text-decoration: none; box-shadow: inset 0 0 0 2px var(--brand); }
.template strong { font-size: 16px; }
.template span { font-size: 14px; color: var(--soft); line-height: 1.35; }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ol-main { display: grid; gap: 3px; min-width: 0; }
.ol-head { font-weight: 650; overflow-wrap: anywhere; }
.ol-meta { font-size: 13px; color: var(--soft); }
.thumbs { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumbs li { display: grid; gap: 4px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.linkish { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: inherit; cursor: pointer; min-height: 32px; }
.danger-text { color: var(--danger); }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.file { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px; overflow: hidden; max-width: 100%; }
.file input { font-size: 14px; max-width: 200px; margin-left: 10px; }

/* Composer and editor */
.composer textarea { min-height: 0; resize: vertical; line-height: 1.45; }
.composer fieldset.field { border: 0; padding: 0; min-width: 0; }
.composer legend, .field legend { font-size: 14px; font-weight: 600; margin: 0 0 8px; padding: 0; }
.opt { font-weight: 400; color: var(--soft); font-size: 13px; }
.counter { font-size: 13px; color: var(--soft); margin: 6px 0 0; }
.counter.warn { color: #8a5a00; }
.counter.over { color: var(--danger); font-weight: 600; }
.msg-card { padding: 16px 0 10px; border-top: 1.5px solid var(--ink); margin-top: 18px; }
.msg-card h2 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0 0 2px; }
.msg-card > .hint { margin: 0 0 14px; }
.lock { display: grid; gap: 4px; padding: 12px 14px; border-radius: 18px; background: rgba(28, 28, 30, 0.86); color: #fff; margin: 0 0 14px; font-size: 15px; line-height: 1.35; box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.lock-app { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.85; }
.lock-app img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; background: #fff; }
.lock-text { overflow-wrap: anywhere; }
details.channel { border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 14px; margin: 0 0 12px; }
details.channel summary { min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; cursor: pointer; font-weight: 650; }
details.channel summary .hint { margin: 0; font-weight: 400; }
details.channel[open] { padding-bottom: 14px; }
.email-frame { border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 6px 22px rgba(0,0,0,0.08); margin: 6px 0 14px; max-width: 100%; }
.email-frame table { max-width: 100%; }
.email-frame img { max-width: 100%; height: auto; }
.email-frame h1, .email-frame p { overflow-wrap: anywhere; }
.sms-bubble { white-space: pre-wrap; overflow-wrap: anywhere; background: #e9e9eb; color: #111; padding: 10px 14px; border-radius: 20px 20px 20px 6px; max-width: 88%; font-size: 16px; line-height: 1.35; margin: 4px 0 8px; font-family: -apple-system, system-ui, sans-serif; }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 75%, transparent); margin-top: 8px; }
.compose-grid { display: grid; gap: 8px; }
.previews .section-title:first-child { margin-top: 10px; }
.pick-images { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick .none { display: grid; place-items: center; height: 100%; font-size: 13px; text-align: center; color: var(--soft); padding: 4px; }
.pick:has(input:checked) { box-shadow: 0 0 0 3px var(--brand); }
.pick:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand); flex: none; }
.big-check { font-weight: 600; margin: 0 0 8px; }
.audiences { display: grid; gap: 8px; }
.audience { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.audience:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--paper)); }
.audience input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.audience > span { display: grid; gap: 2px; }
.audience .hint { margin: 0; }
.audience .count { font-size: 14px; font-weight: 600; }
.audience-line { font-size: 18px; margin: 0 0 8px; }
.credits-line { margin: 0 0 8px; }
.credits-line.short { color: var(--danger); font-weight: 600; }
.inline-form { margin: 10px 0; }
.send-form { display: grid; gap: 10px; margin-top: 10px; }
.when { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.when .field { flex-basis: 100%; margin: 4px 0 0; }
.responsibility { margin: 4px 0; }
.dirty-note { color: #8a5a00; }

/* Admin messages */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .n { text-align: right; white-space: nowrap; }
.ledger { margin: 14px 0; overflow-x: auto; }
.ledger summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.topup .field { margin-bottom: 10px; }
.admin-top { flex-wrap: wrap; }
.admin-top .btn.small { flex: none; }

@media (min-width: 960px) {
  .compose-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .previews { position: sticky; top: 12px; }
}

@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .band { padding-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.timing { padding: 4px 0 12px; }
.switch-row { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand); }
.switch-row > span { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.switch-row .hint { margin: 0; }
.timing .row { margin-top: 14px; }
.card-settings { margin-top: 26px; }
.pass-news { padding: 4px 16px 6px; }
.outbox-item a { word-break: break-all; }
/* Tick boxes and radio buttons inside .field keep their native look (the text-input rule above
   would otherwise turn them into blank full-width boxes). */
.field input[type="checkbox"], .field input[type="radio"], .composer input[type="checkbox"], .composer input[type="radio"] {
  appearance: auto; -webkit-appearance: auto; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; flex: none; accent-color: var(--brand);
}
.audience input[type="radio"] { margin-top: 2px; width: 20px; height: 20px; }
.pick input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.field label.check, .field label.audience, .field label.pick { margin: 0; font-weight: 400; font-size: 16px; }
.field label.check { display: flex; }
.field label.audience { display: grid; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.status-row { flex-wrap: wrap; }
.status-row .page-title { flex: 1 1 14ch; overflow-wrap: break-word; }
.status-row .pill { margin-top: 12px; }

/* Billing */
.pill.s-failed { background: #fbdcdc; color: #7f1d1d; }
.ticks { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.35em; width: 6px; height: 11px; border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.bill-actions { display: grid; gap: 12px; margin: 8px 0 6px; }
.bill-actions form, .pack-row form { margin: 0; }
.bill-actions .hint { margin-top: -4px; }
.pack-row { display: grid; gap: 10px; margin: 14px 0 6px; }
.mcard-wrap { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); display: grid; }
.mcard-wrap .mcard { border-radius: 0; box-shadow: none; }
.mcard-wrap .bill { padding: 10px 14px 12px; border-top: 1px solid var(--line); font-size: 14px; display: grid; gap: 8px; }
.mcard-wrap .bill-line { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--soft); }
.mcard-wrap .bill-line strong { color: var(--ink); }
.mcard-wrap .bill-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mcard-wrap .bill-acts form { margin: 0; }
.flag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fbdcdc; color: #7f1d1d; font-weight: 650; font-size: 13px; }
.kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kicker-row .kicker { margin: 0; }

/* Amplifier support page */
.prose h3 { font-weight: 600; font-size: 17px; margin: 20px 0 4px; }
.form-ok { background: #EAF6EE; border-radius: 12px; padding: 14px 16px; }
.prose .sheet { margin-top: 12px; }

/* Owner: is it paying for itself? */
.payback { margin: 8px 0 8px; }
.payback-big { font-family: var(--display); font-size: 22px; line-height: 1.25; margin: 4px 0 6px; }
.payback-big .up { color: #1C7C4A; font-weight: 700; }
.payback-big .down { color: var(--danger); font-weight: 700; }
.payback-form { margin-top: 14px; }


/* =====================================================================================
   D2 (Nov 2026): the Amplifier Loyalty look. Geist type, pill buttons, soft inputs, white
   cards in place of ruled lines, a ribbed-glass brand band, sentence-case labels. Café pages
   keep the café's own colours (and its serif, if chosen); Amplifier's own pages use .amp.
   ===================================================================================== */
:root {
  --text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --card: #ffffff;
  --radius: 22px;
  --line: color-mix(in srgb, var(--ink) 11%, transparent);
}
.font-sans { --display: "Geist", ui-sans-serif, system-ui, sans-serif; }
body { font-size: 17px; letter-spacing: -0.005em; }
h1, h2, h3 { text-wrap: balance; }
.font-sans .reward-line, .font-sans .greet, .font-sans .page-title, .font-sans .panel h1, .font-sans .prose h1, .font-sans .pin-body h1 { font-weight: 600; letter-spacing: -0.045em; }
.font-sans .stat .num, .font-sans .fact-num { font-weight: 600; letter-spacing: -0.05em; }

/* The brand band: the café colour with ribbed glass, rounded at the bottom */
.band { -webkit-mask: none; mask: none; border-radius: 0 0 32px 32px; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--on-brand) 8%, transparent) 0 1px, transparent 1px 16px); }
.masthead .name { letter-spacing: -0.01em; }

/* Labels: sentence case, quiet */
.kicker, .section-title, .fieldset legend { text-transform: none; letter-spacing: -0.005em; font-size: 15px; font-weight: 500; }
.section-title { margin: 30px 0 10px; }

/* Buttons and inputs */
.btn { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; min-height: 54px; }
.btn.ghost { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { min-height: 44px; }
.field input, .field select, .field textarea { background: var(--card); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 14px; min-height: 52px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.phone .cc { border-width: 1px; border-radius: 14px 0 0 14px; background: color-mix(in srgb, var(--ink) 4%, var(--card)); }
.phone input { border-radius: 0 14px 14px 0; }
.consent, .optin, .audience, details.channel, .template, .pick { border-radius: 16px; }
.consent { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.optin, .audience, .template, details.channel { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }

/* Cards in place of heavy rules */
.stats { border-top: 0; gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.block, .msg-card { border-top: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 14px; }
.facts > div { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; }
.payback { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 18px; }
.payback .section-title { margin-top: 18px; }
.feed { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 16px; }
.feed li:last-child { border-bottom: 0; }
.pass { border-radius: 22px; }
.tabs { background: color-mix(in srgb, var(--ink) 6%, var(--paper)); }
.tabs a[aria-current="page"] { background: var(--card); }
.form-ok, .notice, .callout { border-radius: 16px; }
.dev-note { border-radius: 16px; }

/* PIN pad and staff screen: the same band treatment */
.pin-screen { position: relative; isolation: isolate; }
.pin-screen::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--on-brand) 7%, transparent) 0 1px, transparent 1px 16px); }
.keypad button { border-radius: 999px; }
.keypad .go { border-radius: 999px; }
.pin-input { border-radius: 999px; }
.big { border-radius: 999px; font-weight: 650; letter-spacing: -0.01em; }
.second { border-radius: 999px; }

/* ---------- Amplifier's own pages: support, terms, privacy and admin ---------- */
.amp { --brand: #2B59FF; --paper: #F7F2E8; --ink: #0E2A33; --on-brand: #FCFAF5; --display: "Geist", ui-sans-serif, system-ui, sans-serif; --danger: #B3261E; }
.amp .wrap { max-width: 760px; }
.amp-band { position: relative; background: var(--brand); color: var(--on-brand); border-radius: 0 0 32px 32px; overflow: hidden; isolation: isolate; }
.amp-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 16px); }
.amp-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; flex-wrap: wrap; }
.amp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.amp-brand img { height: 26px; width: auto; }
.amp-brand span { font-weight: 500; opacity: 0.88; }
.amp-links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); }
.amp-links a { text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.amp-links a[aria-current="page"] { background: rgba(255,255,255,0.22); }
.amp-head { padding: 20px 0 44px; }
.amp-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 9vw, 64px); line-height: 0.98; letter-spacing: -0.05em; margin: 0 0 12px; }
.amp-head p { margin: 0; max-width: 34em; opacity: 0.9; }
.amp .prose { padding-top: 20px; }
.amp .prose h1 { letter-spacing: -0.045em; font-weight: 600; font-size: clamp(30px, 7vw, 40px); margin-top: 44px; }
.amp .prose h2 { letter-spacing: -0.02em; font-weight: 600; }
.amp .prose .sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 16px; }
.amp-foot { margin-top: 48px; background: #081F26; color: rgba(239,230,212,0.75); font-size: 14px; }
.amp-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.amp-foot a { color: inherit; text-decoration: none; }
.amp-foot a:hover { color: #EFE6D4; }
.amp-foot nav { display: flex; gap: 18px; }
.admin { --brand: #2B59FF; --paper: #F7F2E8; --ink: #0E2A33; --on-brand: #FCFAF5; --display: "Geist", system-ui, sans-serif; }
.admin-top { border-bottom: 1px solid var(--line); }
.admin-preview.font-sans .pv-reward { font-family: "Geist", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.045em; }
.mcard, .mcard-wrap, .outbox-item { border-radius: var(--radius); }
.payback-form .row { align-items: end; }

/* ---------- Card page (D2): the café band, pill buttons, the pass as the hero object ---------- */
.card-band { padding-bottom: 34px; }
.card-band .greet { margin: 14px 0 10px; color: var(--on-brand); }
.card-band .band-note { max-width: 34ch; }
.card-main { padding-top: 22px; }
.wallet-btn { border-radius: 999px; min-height: 56px; font-size: 17px; letter-spacing: -0.01em; }
.pass { border-radius: 26px; position: relative; isolation: isolate; box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--brand) 75%, #000); }
.pass::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--on-brand) 6%, transparent) 0 1px, transparent 1px 16px); }
.pass-top { padding: 16px 18px; }
.pass-fields { padding: 14px 18px 6px; }
.pass-code .qr { border-radius: 18px; }
.keep-note { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: var(--soft); margin: 0 0 12px; }
.keep-note svg { flex: none; margin-top: 1px; color: var(--brand); }
.card-links { gap: 8px; margin: 0; }
.card-links a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; }
.card-links a:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.dev-note { margin-top: 4px; }

/* ---------- Owner pages (D2): the café band with the tabs ---------- */
.owner-band { padding-bottom: 22px; }
.owner-band .tabs { background: color-mix(in srgb, var(--on-brand) 14%, transparent); margin: 6px 0 0; }
.owner-band .tabs a { color: color-mix(in srgb, var(--on-brand) 82%, transparent); }
.owner-band .tabs a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: none; }
.owner-main { padding-top: 18px; }
.owner-main > .kicker:first-child { margin-top: 4px; }
@media (min-width: 720px) {
  .owner-main .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .owner-main .stat { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ---------- Self-serve sign-up (/start, /start/build) ---------- */
.start-panel { padding-top: 28px; }
.start-steps { margin: 0 0 24px; padding-left: 20px; display: grid; gap: 8px; }
.start-panel form { display: grid; gap: 6px; max-width: 460px; }
.start-panel .btn { margin-top: 10px; justify-self: start; }
.amp .wrap:has(.build) { max-width: 1040px; }
.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px; align-items: start; padding: 12px 0 48px; }
.build-fields .btn { margin-top: 14px; }
.build-preview { position: sticky; top: 20px; }
.build-preview-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--soft); margin: 18px 0 10px; }
.build-preview .pv-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.build-preview .pv-logo { width: 36px; height: 36px; border-radius: 50%; background: currentColor center / cover no-repeat; opacity: .9; flex: none; }
.build-preview .pv-logo[style*="url"] { opacity: 1; background-color: #fff; }
.build-preview .pv-name { font-weight: 600; font-size: 15px; }
.build-preview .pv-stamps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.build-preview .pv-stamp { width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed currentColor; opacity: .7; }
.build-preview .pv-stamp.on { background: var(--pv-on, currentColor); border-style: solid; opacity: 1; }
.build-preview .pv-stamp.prize { border-style: solid; }
@media (max-width: 860px) {
  .build { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .build-preview { position: static; order: -1; }
}
.pending-note { background: #FFF6E0; border: 1px solid #F0D58A; color: #5A4300; border-radius: 14px; padding: 12px 14px; margin: 12px 0; }

/* ---------- Counter pack (/{slug}/owner/print) ---------- */
.print-pack { background: #ECEAE4; color: #111; font-family: var(--text); }
.pp-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 794px; margin: 0 auto; padding: 18px 16px 6px; }
.pp-intro { max-width: 794px; margin: 0 auto 14px; padding: 0 16px; color: #444; font-size: 15px; }
.pp-sheet { box-sizing: border-box; width: 100%; max-width: 794px; margin: 0 auto 20px; background: #fff; padding: 28px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.pp-sheet:first-of-type { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.pp-card { border: 1px dashed #bbb; display: flex; flex-direction: column; min-height: 520px; }
.pp-card-band { background: var(--brand); color: var(--paper); padding: 22px 20px 20px; text-align: center; }
.pp-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; background: #fff; margin: 0 auto 10px; }
.pp-name { font-weight: 650; font-size: 18px; margin: 0; }
.pp-reward { font-family: var(--display); font-size: 26px; line-height: 1.1; margin: 8px 0 0; text-wrap: balance; }
.pp-card-body { padding: 18px 20px 22px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.pp-ask { font-weight: 700; font-size: 20px; margin: 0; }
.pp-qr { width: 220px; max-width: 100%; }
.pp-qr svg, .pp-staff-qr svg { width: 100%; height: auto; display: block; }
.pp-how { font-size: 14px; color: #333; margin: 0; max-width: 28ch; }
.pp-url { font-size: 12px; color: #666; margin: 0; word-break: break-all; }
.pp-staff h1 { font-size: 24px; margin: 0 0 16px; }
.pp-staff-grid { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 24px; align-items: start; }
.pp-steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; font-size: 15px; line-height: 1.45; }
.pp-staff-qr { text-align: center; font-size: 13px; color: #444; }
.pp-mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; word-break: break-all; }
.pp-note { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid #ddd; font-size: 13px; color: #444; }
@media (max-width: 640px) {
  .pp-sheet:first-of-type { grid-template-columns: 1fr; }
  .pp-staff-grid { grid-template-columns: 1fr; }
  .pp-staff-qr { width: 160px; }
}
@media print {
  @page { size: A4; margin: 10mm; }
  .print-pack { background: #fff; }
  .no-print { display: none !important; }
  .pp-sheet { box-shadow: none; margin: 0; max-width: none; break-after: page; }
  .pp-sheet:first-of-type { grid-template-columns: 1fr 1fr; }
  .pp-card { min-height: 0; height: 270mm; }
  .pp-card-band { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Owner page: first-week checklist */
.getting-started { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 14px 0 18px; }
.getting-started h2 { font-size: 18px; margin: 0 0 10px; }
.getting-started ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.pp-bar .btn { width: auto; flex: none; }

/* Tooltips (partials/tip.eta + tips.js) */
.tip { position: relative; display: inline-block; vertical-align: middle; margin-left: 4px; }
.tip-btn { width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; opacity: 0.6; font: 600 12px/1 system-ui, sans-serif; padding: 0; cursor: help; }
.tip-btn:hover, .tip-btn:focus-visible, .tip.open .tip-btn { opacity: 1; }
.tip-text { position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: min(280px, 80vw); transform: translate(-50%, 4px); padding: 10px 12px; border-radius: 10px; background: #0E2A33; color: #FCFAF5; font: 400 14px/1.4 system-ui, sans-serif; letter-spacing: 0; text-transform: none; box-shadow: 0 8px 24px rgba(0,0,0,0.18); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease-out, transform .15s ease-out, visibility .15s; }
.tip:hover .tip-text, .tip-btn:focus-visible + .tip-text, .tip.open .tip-text { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 520px) { .tip-text { left: auto; right: -8px; transform: translate(0, 4px); } .tip:hover .tip-text, .tip-btn:focus-visible + .tip-text, .tip.open .tip-text { transform: none; } }
.help-link { font-size: 14px; margin-left: 8px; }

/* Help centre */
.help-jump { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 8px 0 32px; }
.help-jump ul { list-style: none; margin: 4px 0 8px; padding: 0; }
.help-jump li { margin: 4px 0; }
.help-article { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.help-article h2 { margin: 4px 0 6px; }
.help-summary { font-size: 18px; margin: 0 0 16px; opacity: 0.85; }
.help-steps li, .help-tips li { margin: 6px 0; }
.help-tips { padding-left: 1.1em; opacity: 0.85; }
.help-video { width: 100%; border-radius: var(--radius); background: #000; margin: 4px 0 16px; }
.help-copy { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 16px 18px; margin: 12px 0; }
.help-copy h3 { margin: 0 0 6px; font-size: 16px; }
.help-copy-text { margin: 0 0 12px; }

/* Help demos: small looping walkthroughs drawn with HTML */
.help-demo { margin: 4px 0 16px; padding: 20px; border-radius: var(--radius); background: var(--paper, #F7F2E8); border: 1px solid var(--line); }
.d-stage { position: relative; min-height: 300px; }
.d-scene { position: absolute; inset: 0; display: grid; justify-items: center; align-content: start; gap: 12px; opacity: 0; transform: translateX(24px); transition: opacity .35s ease-out, transform .35s ease-out; pointer-events: none; }
.d-scene.on { opacity: 1; transform: none; }
.d-phone { width: 190px; height: 240px; border-radius: 28px; border: 2px solid #0E2A33; background: #fff; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 16px; box-shadow: 0 10px 30px rgba(14,42,51,0.12); }
.d-cap { margin: 0; text-align: center; font-weight: 500; }
.d-qr { width: 88px; height: 88px; border-radius: 8px; background:
  conic-gradient(#0E2A33 25%, transparent 0 50%, #0E2A33 0 75%, transparent 0) 0 0 / 22px 22px; border: 6px solid #fff; outline: 2px solid #0E2A33; }
.d-label { margin: 0; font-size: 13px; font-weight: 600; }
.d-field { width: 100%; padding: 8px 10px; border: 1px solid #cfd6d8; border-radius: 8px; font-size: 13px; }
.d-btn { width: 100%; padding: 10px; border-radius: 999px; background: var(--brand, #2B59FF); color: #fff; text-align: center; font-size: 13px; font-weight: 600; }
.d-btn-alt { background: #0E2A33; }
.d-wallet { padding: 10px 14px; border-radius: 10px; background: #000; color: #fff; font-size: 13px; font-weight: 600; }
.d-card { width: 100%; border-radius: 14px; padding: 12px; background: var(--brand, #2B59FF); color: #fff; display: grid; gap: 8px; }
.d-card small { font-size: 12px; opacity: 0.9; }
.d-dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.d-dots i { aspect-ratio: 1; border-radius: 50%; border: 2px solid currentColor; opacity: 0.55; }
.d-dots i.full { background: currentColor; opacity: 1; }
.d-scene.on .d-dots i.fresh { animation: d-land .5s cubic-bezier(.16,.84,.24,1) .3s both; }
@keyframes d-land { from { transform: scale(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
.d-pin { font-size: 28px; letter-spacing: 6px; }
.d-who { margin: 0; font-weight: 600; }
.d-scan { position: relative; padding: 10px; }
.d-beam { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: #E3342F; box-shadow: 0 0 8px #E3342F; }
.d-scene.on .d-beam { animation: d-beam 1.4s ease-in-out infinite alternate; }
@keyframes d-beam { to { top: calc(100% - 12px); } }
.d-note { width: 100%; border-radius: 12px; padding: 12px; background: #0E2A33; color: #FCFAF5; font-size: 13px; line-height: 1.35; }
.d-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.d-play { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.d-progress { display: flex; gap: 6px; }
.d-progress i { width: 22px; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.d-progress i.done { background: var(--brand, #2B59FF); }
.help-demo.still .d-stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; min-height: 0; }
.help-demo.still .d-scene { position: static; opacity: 1; transform: none; }
.help-demo.still .d-controls { display: none; }
@media (prefers-reduced-motion: reduce) { .d-scene, .tip-text { transition: none; } .d-beam, .d-dots i.fresh { animation: none !important; } }

/* Card link with a fixed prefix (start-build) */
.prefixed { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card, #fff); }
.prefixed .prefix { display: flex; align-items: center; padding: 0 4px 0 12px; color: var(--soft, #5b6b70); white-space: nowrap; font-size: 15px; background: rgba(0,0,0,0.03); }
.prefixed input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; }
@media (max-width: 420px) { .prefixed { flex-direction: column; } .prefixed .prefix { padding: 8px 12px 0; background: none; } }

/* Owner first week: sign-up QR inline in the checklist */
.gs-qr { width: 160px; margin: 10px 0 4px; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid var(--line, #e3e0d8); }
.gs-qr svg { display: block; width: 100%; height: auto; }
/* Checkbox labels with links: keep the text as one flowing block */
.check > span { flex: 1; line-height: 1.45; }

/* Owner area: Amplifier header and buttons; the shop's colours stay on their card and previews. */
.owner-band { padding-bottom: 24px; }
.owner-band .owner-id { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; }
.owner-band .owner-id img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: #fff; }
.owner-band .owner-id .name { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.03em; }
.owner-area .wrap { max-width: 640px; }
.owner-area:has(.compose-grid) .wrap { max-width: 1040px; }
.amp .previews, .amp .shop-colours {
  --brand: var(--shop-brand, #1f2a44); --paper: var(--shop-paper, #f6f1e7); --ink: var(--shop-ink, #1b1b1b);
  --on-brand: var(--shop-on-brand, #fff); --display: var(--shop-display, "Fraunces", Georgia, serif);
}
/* Mixed tones are worked out where they're declared, so redeclare them wherever the base colours change. */
.amp, .amp .previews, .amp .shop-colours {
  --line: color-mix(in srgb, var(--ink) 11%, transparent);
  --soft: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --field: color-mix(in srgb, var(--paper) 55%, #ffffff);
}

/* Admin dashboard */
.dash { margin: 0 0 28px; }
.dash-h { font-size: 15px; font-weight: 700; margin: 26px 0 10px; }
.dash-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.dt { background: #fff; border-radius: 14px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 4px; }
.dt .n { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dt .l { font-size: 13px; color: var(--soft); }
.dt.warn { background: #fff3cd; }
.needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.need { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.need a { font-weight: 650; }
.need .why { color: var(--soft); font-size: 14px; flex: 1; min-width: 12em; }
.need form { margin: 0; }
.need .dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa0a6; flex: none; }
.need.approve .dot { background: #2B59FF; }
.need.trial .dot { background: #e0a100; }
.need.payment .dot { background: #b3261e; }
.tbl-wrap { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: 12px; font-weight: 650; color: var(--soft); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.quiet td { color: var(--soft); }
.admin-export { margin: 28px 0 0; }

/* Address ask (Messages) and the composer's own photo upload */
.address-ask { display: grid; gap: 8px; }
.address-ask .hint { margin: 0; }
.address-row { display: flex; flex-wrap: wrap; gap: 8px; }
.address-row input { flex: 1 1 260px; min-width: 0; }
.upload-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.upload-inline .hint { margin: 0; }
.upload-inline label.btn { margin: 0; font-weight: 600; font-size: 14px; }
#image-upload:focus-visible + .hint, .upload-inline:has(#image-upload:focus-visible) label.btn { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Message editor: a bar that stays at the bottom with Save, Test and Review and send */
.compose-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.compose-bar .hint { margin: 0; }
.compose-bar [aria-disabled="true"] { opacity: .45; pointer-events: none; }
/* Review and send pop-up */
.review-dialog { width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.25); overflow: auto; }
.review-dialog::backdrop { background: rgba(14,42,51,.45); }
.review-close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.send-block.in-dialog { margin: 0; padding: 24px; border: 0; box-shadow: none; background: transparent; display: grid; gap: 14px; }
@media (min-width: 860px) {
  .send-block.in-dialog { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .send-block.in-dialog > .section-title { grid-column: 1 / -1; }
  .send-block.in-dialog > .review-preview { grid-row: 2 / span 20; }
}
.review-preview .email-frame { max-height: 70vh; overflow: auto; }
.review-preview .sms-bubble { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) { .review-dialog[open] { animation: review-in .18s ease-out; } }
@keyframes review-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.compose-bar .btn { width: auto; flex: 0 0 auto; margin: 0; }
.compose-bar #review-open { margin-left: auto; }
@media (max-width: 560px) { .compose-bar .btn { flex: 1 1 auto; } .compose-bar #review-open { flex-basis: 100%; margin-left: 0; } }

/* ===== Amplifier pages match the product site (weareamplifier.co.uk/loyalty) =====
   Owner area, sign-up and admin only (body.amp / body.admin). Customer pages keep each shop's look.
   Same tokens as the site: cobalt band, paper, petrol ink, cream, white cards with a soft shadow. */
:is(.amp, .admin) {
  --cream: #EFE6D4; --ink-2: rgba(14,42,51,.72); --ink-3: rgba(14,42,51,.56);
  --shadow: 0 1px 2px rgba(14,42,51,.05), 0 10px 28px rgba(14,42,51,.07);
  --shadow-lift: 0 2px 4px rgba(14,42,51,.06), 0 18px 40px rgba(14,42,51,.11);
  --soft: var(--ink-3);
}
.admin .wrap { max-width: 1040px; }
.admin-band { padding-bottom: 6px; margin-bottom: 8px; }
.amp-links form { margin: 0; display: contents; }
.amp-links button { font: inherit; font-size: 15px; color: inherit; background: none; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.amp-links a:hover, .amp-links button:hover { background: rgba(255,255,255,0.16); }
.admin .admin-top { border: 0; padding: 26px 0 8px; margin-bottom: 10px; }
.admin .admin-top .title { font-family: var(--display); font-size: clamp(28px, 5vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.admin .admin-top a { color: var(--ink-2); }

/* Headings and labels: big and tight like the site; small labels as eyebrows */
:is(.amp, .admin) .page-title { font-size: clamp(30px, 6vw, 44px); letter-spacing: -0.035em; line-height: 1.05; }
:is(.amp, .admin) :is(.section-title, .dash-h) { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* Cards: white, rounder, soft shadow instead of a hairline */
:is(.amp, .admin) :is(.block, .facts > div, .dt, .need, .tbl-wrap, .mcard-wrap, .template, .outbox-item, .consent, details.channel, .audience, .optin, .admin-preview) {
  background: #fff; box-shadow: var(--shadow); border: 0;
}
:is(.amp, .admin) :is(.block, .tbl-wrap, .mcard-wrap, .template, .admin-preview) { border-radius: 22px; }
:is(.amp, .admin) :is(.facts > div, .dt, .need, .audience, .optin, details.channel, .outbox-item, .consent) { border-radius: 18px; }
:is(.amp, .admin) :is(.template, .mcard-wrap) { transition: transform .18s ease, box-shadow .18s ease; }
:is(.amp, .admin) :is(.template, .mcard-wrap):hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
:is(.amp, .admin) :is(.audience, .optin):has(input:checked) { box-shadow: 0 0 0 2px var(--brand), var(--shadow); background: #fff; }
@media (prefers-reduced-motion: reduce) { :is(.amp, .admin) :is(.template, .mcard-wrap) { transition: none; } :is(.amp, .admin) :is(.template, .mcard-wrap):hover { transform: none; } }

/* Numbers: ink, large and tight, like the site's stat cards */
:is(.amp, .admin) :is(.fact-num, .dt .n) { color: var(--ink); font-size: clamp(30px, 5vw, 40px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
:is(.amp, .admin) .stat .num { color: var(--ink); }

/* Notices in the site's palette: cobalt tint for good news, cream when something needs you */
:is(.amp, .admin) .notice { background: rgba(43,89,255,.08); color: var(--ink); }
:is(.amp, .admin) :is(.notice.warn, .callout, .dt.warn) { background: var(--cream); color: var(--ink); }

/* Admin status chips: white pills with a coloured dot */
.admin .chip { background: #fff; box-shadow: var(--shadow); padding: 6px 12px 6px 10px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.admin .chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c98a00; }
.admin .chip.live::before { background: #1f9d55; }
.admin .chip.live, .admin .chip.dev { background: #fff; }
:is(.amp, .admin) :is(.stat, .getting-started) { background: #fff; border: 0; box-shadow: var(--shadow); border-radius: 22px; }
:is(.amp, .admin) .pending-note { background: var(--cream); border: 0; color: var(--ink); border-radius: 18px; padding: 14px 16px; }
:is(.amp, .admin) .kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3) !important; }
:is(.amp, .admin) .kicker .help-link { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }

:is(.amp, .admin) .feed { background: #fff; border: 0; box-shadow: var(--shadow); border-radius: 22px; padding: 4px 18px; }
.owner-area .owner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.owner-area .owner-actions .btn { width: auto; flex: 0 1 auto; }
@media (max-width: 520px) { .owner-area .owner-actions .btn { flex: 1 1 100%; } }
.owner-area .sign-out { margin: 22px 0 0; }

/* Monthly or yearly plan choice */
.plan-choice { border: 0; padding: 0; margin: 4px 0 6px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.plan-choice legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.plan-choice > .hint { grid-column: 1 / -1; margin: 0; }
.plan-opt { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow, inset 0 0 0 1px var(--line)); cursor: pointer; }
.plan-opt:has(input:checked) { box-shadow: 0 0 0 2px var(--brand), var(--shadow, none); }
.plan-opt input { margin: 3px 0 0; accent-color: var(--brand); }
.plan-opt > span { display: grid; gap: 2px; }
.plan-opt .plan-price { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.plan-opt .hint { margin: 0; }

/* Staff: group stamps, the stamped confirmation with Undo, paper card carry-over, offline bar */
.stamp-row { display: flex; gap: 10px; align-items: stretch; }
.stamp-row .big { flex: 1 1 auto; }
.stamp-row .plus { flex: 0 0 76px; border-radius: 22px; border: 2px solid color-mix(in srgb, var(--paper) 60%, transparent); background: transparent; color: var(--paper); font: inherit; font-size: 22px; font-weight: 750; touch-action: manipulation; }
.stamp-row .plus[hidden] { display: none; }
.stamp-row[hidden] { display: none; }
.link-btn { background: none; border: 0; padding: 6px 0; color: #d8d8d8; font: inherit; font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.carry-pick p { margin: 4px 0 10px; color: #e6e6e6; font-size: 17px; }
.carry-nums { display: flex; flex-wrap: wrap; gap: 8px; }
.carry-nums .num { width: 56px; height: 56px; border-radius: 16px; border: 2px solid #555; background: #222; color: #fff; font: inherit; font-size: 20px; font-weight: 700; touch-action: manipulation; }
.carry-nums .num.on { background: var(--paper); color: var(--brand); border-color: var(--paper); }
.carry-nums .big { margin-top: 6px; min-height: 72px; font-size: 20px; }
.hint-dark { color: #a8a8a8 !important; font-size: 14px !important; }
/* Staff: stamp by phone number */
.byphone { margin-top: 14px; }
.phone-form { display: grid; gap: 8px; margin-top: 6px; }
.phone-form[hidden], .phone-new[hidden] { display: none; }
.phone-form label { color: #e6e6e6; font-size: 16px; font-weight: 600; }
.phone-form input { min-height: 56px; border-radius: 14px; border: 2px solid #555; background: #222; color: #fff; font: inherit; font-size: 22px; padding: 0 14px; letter-spacing: 0.02em; }
.phone-new { display: grid; gap: 10px; margin-top: 6px; }
.phone-new .who b { font-size: 1.15em; letter-spacing: 0.06em; }
.offline-bar { margin: 0; padding: 10px var(--gutter); background: #f2b705; color: #111; font-weight: 650; font-size: 15px; }
.stamped { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--brand) 92%, #000); color: var(--on-brand); display: grid; place-items: center; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); animation: stamped-in .18s ease-out; }
.stamped.full { background: #1f6b3a; color: #fff; }
.stamped[hidden] { display: none; }
.stamped-in { width: 100%; max-width: 460px; display: grid; gap: 14px; text-align: center; }
.stamped .tick { margin: 0 auto; width: 96px; height: 96px; border-radius: 50%; background: var(--paper); color: var(--brand); display: grid; place-items: center; font-size: 56px; font-weight: 800; line-height: 1; }
.stamped.full .tick { background: #fff; color: #1f6b3a; }
.stamped-what { margin: 0; font-size: 22px; font-weight: 700; }
.stamped-who { margin: 0; font-family: var(--display); font-size: clamp(36px, 11vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.stamped-count { margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.stamped .undo { border-color: color-mix(in srgb, currentColor 45%, transparent); color: inherit; }
.stamped .big { background: var(--paper); color: var(--brand); }
.stamped.full .big { background: #fff; color: #1f6b3a; }
@keyframes stamped-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stamped { animation: none; } }
.send-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.send-links .hint { margin: 0; }
