/* Product fragments, rebuilt from the user's UI screens (_input/ui). Root of each carries data-ui.
   Values measured from the source: phone column 390, fields 48/12px, primary 56/14px, scanner button 64/16px. */

[data-ui] { font-family: var(--font); color: var(--ink); text-align: left; letter-spacing: 0; }

/* Wallet pass of the sample shop. Colour comes from --card so the designer swatches can recolour it. */
.pass { --card: var(--shop); --card-2: var(--shop-2); width: 334px; max-width: 100%; border-radius: 18px; overflow: hidden; background: var(--card);
  color: var(--shop-cream); transition: background-color 320ms var(--ease-out); }
.pass-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; }
.mono { width: 30px; height: 30px; border-radius: 8px; background: var(--shop-cream); color: var(--shop); display: grid; place-items: center;
  font-weight: 800; font-size: 12px; letter-spacing: 0.02em; flex: none; }
.pass-name { font-weight: 800; font-size: 15px; }
.pass-count { margin-left: auto; text-align: right; line-height: 1.1; }
.pass-count small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.75; }
.pass-count b { font-size: 19px; font-weight: 800; }
.pass-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 16px 18px; background: var(--card-2);
  transition: background-color 320ms var(--ease-out); }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgb(243 231 214 / 0.45); display: grid; place-items: center; }
.stamp.on { border: 0; background: var(--shop-cream); color: var(--shop); }
.stamp.gift { border: 2.5px solid var(--gold); }
.stamp.gift.on { background: var(--gold); color: var(--ink); }
.stamp::after { content: ""; width: 46%; height: 46%; background: currentColor; opacity: 0.85; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h12v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V9Z'/%3E%3Cpath d='M16 11h1.5a2.5 2.5 0 0 1 0 5H16'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h12v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V9Z'/%3E%3Cpath d='M16 11h1.5a2.5 2.5 0 0 1 0 5H16'/%3E%3C/svg%3E") center / contain no-repeat; }
.stamp:not(.on)::after { opacity: 0.4; background: var(--shop-cream); }
.pass-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px 16px; font-size: 13px; line-height: 1.25; }
.pass-foot small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.75; }
.pass-foot b { font-weight: 700; }
.pass-qr { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 8px; background: var(--shop-cream); display: grid; place-items: center; }
.pass-qr svg { width: 74px; height: 74px; color: var(--shop); }
.pass-gift-note { margin: 0 18px 16px; padding: 10px 12px; border-radius: 12px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 14px; }

/* Customer sign-up screen (UI 1) */
.screen { width: 360px; max-width: 100%; background: var(--ground); border-radius: 18px; padding: 18px 20px 20px; display: grid; gap: 14px; }
.screen-shop { display: flex; align-items: center; gap: 10px; }
.screen-shop .mono { width: 40px; height: 40px; border-radius: 10px; background: var(--shop); color: var(--shop-cream); font-size: 14px; }
.screen-shop b { font-size: 16px; }
.screen-shop .langs { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.screen h3 { font-size: 23px; line-height: 1.15; letter-spacing: -0.01em; }
.screen p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.field-ui { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.field-ui span.input { height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; align-items: center; /* taste-skill-ignore: data-ui field */
  padding: 0 14px; font-size: 15px; font-weight: 400; color: var(--ink); }
.ui-btn { height: 52px; border-radius: 14px; background: var(--green); color: #fff; font-weight: 700; font-size: 16px; display: grid; place-items: center; }
.ui-btn--big { height: 60px; border-radius: 16px; font-weight: 800; font-size: 19px; }
.screen-by { text-align: center; font-size: 12px; color: var(--muted); }

/* Staff scanner (UI 3) */
.scanner { width: 360px; max-width: 100%; border-radius: 18px; overflow: hidden; background: var(--ink); color: #fff; }
.scanner-head { display: flex; align-items: center; padding: 16px 18px 12px; gap: 10px; }
.scanner-head b { display: block; font-size: 15px; }
.scanner-head small { font-size: 12px; color: var(--on-dark-muted); }
.scanner-head .pill { margin-left: auto; background: var(--mint); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.scanner-cam { margin: 0 14px; height: 180px; border-radius: 14px; background: var(--dark-2); display: grid; place-items: center; position: relative; }
.scanner-cam::before { content: ""; width: 116px; height: 116px; border: 3px solid var(--mint); border-radius: 16px; }
.scanner-cam span { position: absolute; bottom: 12px; font-size: 13px; color: var(--on-dark-muted); }
.scanner-sheet { margin-top: 14px; background: #fff; color: var(--ink); border-radius: 18px 18px 0 0; padding: 16px 18px 18px; display: grid; gap: 12px; }
.scanner-sheet .who { display: flex; justify-content: space-between; align-items: end; }
.scanner-sheet .who b { font-size: 19px; font-weight: 800; }
.scanner-sheet .who small { display: block; font-size: 12px; color: var(--muted); }
.scanner-sheet .who .num { font-size: 26px; font-weight: 800; }
.scanner-sheet .who .num em { font-style: normal; font-size: 14px; color: var(--muted); }
.dots10 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.dots10 i { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); }
.dots10 i.on { background: var(--green); border-color: var(--green); }

/* Lock-screen preview (UI 5) */
.lock { width: 360px; max-width: 100%; border-radius: 18px; background: #1F2638; color: #fff; padding: 18px 16px 16px; text-align: center; }
.lock small { font-size: 13px; color: #C7CEDA; }
.lock .time { display: block; font-size: 58px; font-weight: 800; line-height: 1; margin: 2px 0 14px; letter-spacing: -0.02em; }
.notif { display: flex; gap: 12px; align-items: center; background: rgb(255 255 255 / 0.92); color: var(--ink); border-radius: 14px; padding: 10px 12px; text-align: left; }
.notif .mono { width: 34px; height: 34px; background: var(--shop); color: var(--shop-cream); }
.notif b { display: block; font-size: 14px; }
.notif span { font-size: 13px; color: #3D4642; }
.lock .note { display: block; margin-top: 12px; font-size: 12px; color: #C7CEDA; }

/* Owner fragments (UI 4 + 5), enlarged on the features board through font-size on the data-ui root */
.kpi { background: #fff; border-radius: 1em; padding: 0.9em 1.1em; display: grid; gap: 0.15em; width: max-content; }
.kpi small { font-size: 0.8em; font-weight: 600; color: var(--muted); }
.kpi b { font-size: 2.3em; font-weight: 800; line-height: 1; }
.kpi em { font-style: normal; font-size: 0.8em; font-weight: 700; color: var(--green); }
.swatches { display: flex; gap: 0.6em; }
.swatches button { width: max(2.6em, 44px); height: max(2.6em, 44px); border-radius: 0.7em; border: 0; cursor: pointer; outline-offset: 3px;
  transition: transform var(--dur-press) var(--ease-out); }
.swatches button:active { transform: scale(0.94); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px var(--green); } /* taste-skill-ignore: selection ring, not depth */
.chips { display: flex; flex-wrap: wrap; gap: 0.5em; }
.chips span { padding: 0.45em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 0.95em; } /* taste-skill-ignore: data-ui chip */
.chips span.sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips span.sel-mint { background: var(--mint-soft); border-color: var(--green); color: var(--ink); }
.export { display: inline-flex; gap: 0.5em; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 0.8em; padding: 0.6em 1.1em; font-weight: 700; } /* taste-skill-ignore: data-ui button */
.export svg { width: 1.1em; height: 1.1em; }
.staff { display: grid; gap: 0.1em; background: var(--ink); color: #fff; border-radius: 1em; padding: 0.8em 1.1em; width: max-content; }
.staff small { color: var(--on-dark-muted); font-size: 0.8em; }
.staff b { font-size: 1.15em; }
.gifts { background: var(--ink); color: #fff; border-radius: 1em; padding: 0.8em 1.1em; width: max-content; display: grid; }
.gifts small { font-size: 0.8em; font-weight: 700; }
.gifts b { font-size: 2.6em; font-weight: 800; line-height: 1.05; }
.demo-tag { display: inline-block; font-size: 13px; font-weight: 700; background: var(--ink); color: #fff; padding: 3px 10px; border-radius: var(--r-pill); }

/* Motion: a stamp fills from empty (WAAPI adds the pop; this carries the colour change) */
.stamp { transition: background-color var(--dur-swap) var(--ease-out), border-color var(--dur-swap) var(--ease-out); }
@media (max-width: 400px) { .screen, .scanner, .lock { width: calc(100vw - 40px); } .pass { width: min(334px, calc(100vw - 48px)); } }
/* Real shop data is longer than the sample: the Wallet shows short lines, so clamp instead of growing */
.pass-name, .pass-foot b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.pass-head .pass-name { min-width: 0; }
