.loyalty-workspace{max-width:1500px;margin:auto}.loyalty-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.loyalty-heading h1,.loyalty-customer h1{margin:0;font-size:30px}.loyalty-heading p{color:var(--muted);margin:6px 0}.loyalty-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);overflow-x:auto;margin-bottom:24px}.loyalty-tabs a{padding:12px 0;white-space:nowrap;text-decoration:none;color:var(--muted);border-bottom:2px solid transparent}.loyalty-tabs a[aria-current=page]{border-color:var(--primary);color:var(--ink);font-weight:700}.loyalty-panel{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:22px}.loyalty-panel h2,.loyalty-preview h2{font-size:16px;margin:0 0 8px}.loyalty-studio{display:grid;grid-template-columns:minmax(280px,5fr) minmax(350px,7fr);gap:18px}.loyalty-form{display:grid;gap:16px}.loyalty-form .field,.loyalty-panel .field{display:grid;gap:6px}.loyalty-colors{display:flex;gap:24px}.loyalty-colors input{width:72px;height:42px}.loyalty-check{display:flex;align-items:center;gap:10px}.loyalty-preview{background:var(--raised);border-radius:9px;padding:22px}.loyalty-card{border-radius:12px;padding:30px;min-height:240px;margin:24px 0}.loyalty-card-header{display:flex;justify-content:space-between;align-items:center;font-size:21px}.loyalty-card-header img{max-width:110px;max-height:64px;object-fit:contain}.loyalty-card-member{display:grid;gap:5px;margin-top:30px}.loyalty-card-member strong{font-size:21px}.loyalty-progress{display:grid;gap:8px;margin:18px 0}.loyalty-progress-track{height:8px;background:var(--line);border-radius:9px;overflow:hidden}.loyalty-progress-track span{display:block;height:100%;background:var(--primary)}.loyalty-card .loyalty-progress-track{background:#ffffff55}.loyalty-card .loyalty-progress-track span{background:currentColor}.loyalty-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}.loyalty-row:last-child{border-bottom:0}.loyalty-row span:first-child{display:grid;gap:4px}.loyalty-row small,.loyalty-row time{color:var(--muted)}.loyalty-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.loyalty-member-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,3fr);gap:18px}.loyalty-stack{display:grid;gap:16px}.loyalty-code{display:block;font-size:30px;letter-spacing:.05em}.loyalty-qr{width:160px;height:160px;background:white;padding:6px;object-fit:contain}.loyalty-error{color:var(--red);min-height:1em}.loyalty-customer{max-width:560px;margin:auto;padding:24px 18px 60px}.loyalty-customer header{padding-bottom:22px;margin-bottom:24px;border-bottom:1px solid var(--line)}.loyalty-customer .loyalty-panel{margin:12px 0}.loyalty-customer-id{display:flex;align-items:center;gap:20px}.loyalty-customer form{display:grid;gap:14px;margin-top:18px}@media(max-width:700px){.loyalty-studio,.loyalty-member-layout{grid-template-columns:1fr}.loyalty-heading h1,.loyalty-customer h1{font-size:25px}.loyalty-panel,.loyalty-preview{padding:16px}.loyalty-card{padding:22px}.loyalty-customer-id .loyalty-qr{width:120px;height:120px}}
.loyalty-milestone{display:grid;gap:14px;margin:12px 0;padding:18px;border:1px solid var(--line);border-radius:9px}.loyalty-milestone legend,.loyalty-form fieldset legend{font-weight:700}.loyalty-form fieldset{min-width:0}.loyalty-form fieldset .loyalty-check{margin:8px 0}.loyalty-milestone [data-reward-product],.loyalty-milestone [data-reward-discount]{display:grid;gap:12px}.loyalty-milestone [hidden]{display:none}
.loyalty-colors{flex-wrap:wrap;align-items:end;gap:12px}.loyalty-colors .field:has(input[type=text]){flex:1 1 100px}.loyalty-colors input[type=text]{width:100%;min-width:0}.loyalty-preview .loyalty-card{max-width:620px;margin-inline:auto}
.qr-loyalty-offers{padding:16px;margin:12px 0;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.qr-loyalty-offers h2{font-size:16px;margin:0 0 8px}.qr-loyalty-offers p{margin:6px 0;color:var(--muted)}.qr-loyalty-offers .button{margin-top:8px}
.loyalty-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.loyalty-stat-grid section{display:grid;gap:8px}.loyalty-stat-grid strong{font-size:30px}.loyalty-filter{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:18px}.loyalty-filter .field{min-width:150px;flex:1}.loyalty-filter button{min-height:42px}@media(max-width:700px){.loyalty-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.loyalty-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:16px}@media print{.loyalty-print-qr{text-align:center;color:#202020;background:#fff;overflow-wrap:anywhere}.loyalty-print-qr .loyalty-qr{display:block;width:64mm;height:64mm;margin:8mm auto}.loyalty-print-qr button{display:none}}
.loyalty-card-hero{display:block;width:100%;max-height:160px;object-fit:cover;border-radius:8px;margin-top:18px}
.loyalty-wallet-button{display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;cursor:pointer;margin:8px;min-height:50px}.loyalty-wallet-button img{display:block;width:auto;height:50px}.loyalty-wallet-button:focus-visible{outline:2px solid var(--primary);outline-offset:4px}.loyalty-wallet-button:disabled{opacity:.55;cursor:wait}
.loyalty-card-headline{margin:6px 0 0}.loyalty-card-member{border-top:1px solid currentColor;padding-top:20px;margin-top:22px}.loyalty-card .loyalty-progress{margin-top:24px}.loyalty-card .loyalty-progress strong{font-size:14px}.loyalty-stamps{display:flex;flex-wrap:wrap;gap:clamp(6px,2vw,16px);padding:5px 0}.loyalty-stamp{width:clamp(28px,7vw,44px);aspect-ratio:1;border:2px solid currentColor;border-radius:50%;display:grid;place-items:center;flex:none}.loyalty-stamp.is-earned{background:currentColor}.loyalty-stamp.is-earned span{color:var(--loyalty-card-bg);font-size:21px;font-weight:800;line-height:1}.loyalty-card .loyalty-progress small{opacity:.88}
.loyalty-design-group{display:grid;gap:12px;border-top:1px solid var(--line);padding-top:18px}.loyalty-design-group h3{font-size:15px;margin:0}.loyalty-design-group p{margin:-6px 0 0}.loyalty-design-group details .field{margin-top:12px}.loyalty-logo-preview{display:block;max-width:160px;max-height:70px;object-fit:contain}.loyalty-preview-note{text-align:center;font-size:13px}
.loyalty-progress--accent .loyalty-stamp{color:var(--line)}.loyalty-progress--accent .loyalty-stamp.is-earned{color:var(--primary);border-color:var(--primary)}.loyalty-progress--accent .loyalty-stamp.is-earned span{color:var(--on-primary)}.pos-loyalty-identity{display:flex;align-items:center;gap:14px;padding:16px;background:var(--raised);border-radius:9px;margin:18px 0}.pos-loyalty-identity p,.pos-loyalty-reward p{margin:4px 0 0;color:var(--muted);font-size:13px}.loyalty-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--surface);font-weight:700;flex:none}.pos-loyalty-section{padding:20px 0;border-top:1px solid var(--line)}.pos-loyalty-section h2{font-size:16px;margin:0 0 12px}.pos-loyalty-reward{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--line);border-radius:9px;margin:10px 0}.pos-loyalty-reward .button{min-height:42px}.pos-loyalty-section .loyalty-progress{margin:14px 0}.pos-loyalty-section>p.muted{font-size:13px}
.loyalty-member-identity .loyalty-avatar{width:64px;height:64px;background:var(--raised);color:var(--primary);font-size:21px;margin-bottom:14px}.loyalty-member-identity .loyalty-code{margin:4px 0}.loyalty-member-identity .loyalty-qr{border:1px solid var(--line);border-radius:8px}
.loyalty-history-filters{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--line);margin:10px 0}.loyalty-history-filters .button{border:0;border-radius:0;background:transparent;padding:10px 12px;color:var(--muted)}.loyalty-history-filters .button[aria-pressed=true]{color:var(--ink);border-bottom:2px solid var(--primary);font-weight:700}
.loyalty-logo-preview[hidden],#loyalty-studio [data-clear-asset][hidden]{display:none}
.pos-loyalty-drawer .panel-body{min-height:0;overflow:auto;overscroll-behavior:contain}.pos-loyalty-drawer .loyalty-form{gap:18px}.pos-loyalty-drawer #pos-loyalty-results{display:grid;gap:8px}.pos-loyalty-drawer #pos-loyalty-results .button{justify-content:flex-start;text-align:left;min-height:48px}

.loyalty-privacy p{overflow-wrap:anywhere}.loyalty-privacy .button,.loyalty-privacy summary,.loyalty-check{min-height:44px}.loyalty-privacy .loyalty-check{align-items:start;line-height:1.5}.loyalty-privacy input[type=checkbox]{flex:none;margin-top:4px}.loyalty-privacy details{margin-top:20px}.loyalty-privacy-inbox{margin-top:20px}.loyalty-privacy-inbox .loyalty-row{flex-wrap:wrap}.loyalty-privacy [hidden]{display:none}

/* Restaurant-owned customer surface. Operational workspaces retain their theme. */
.loyalty-experience{--bg:var(--loyalty-page);--surface:var(--loyalty-surface);--ink:var(--loyalty-surface-ink);--muted:var(--loyalty-surface-ink);--primary:var(--loyalty-action);--on-primary:var(--loyalty-action-ink);--line:#d8d9d3;--red:var(--loyalty-surface-ink);background:var(--loyalty-page);color:var(--loyalty-ink);min-height:100dvh;padding:28px 16px 40px;overflow-wrap:anywhere;color-scheme:light}
.loyalty-home{max-width:480px;margin:auto}.loyalty-experience h1{font-family:inherit;font-size:clamp(26px,6vw,36px);line-height:1.15;letter-spacing:-.025em;text-align:center;margin:24px 0 10px;text-wrap:balance}.loyalty-home-tagline{text-align:center;font-size:16px;line-height:1.5;margin:0 0 24px}.loyalty-brand{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.loyalty-brand>strong{font-size:20px}.loyalty-brand>span:not(.loyalty-monogram){font-size:14px}.loyalty-brand-logo{width:80px;height:80px;border-radius:50%;object-fit:cover;background:var(--loyalty-surface);color:var(--loyalty-surface-ink)}.loyalty-monogram{display:grid;place-items:center;font-size:32px;font-weight:700}.loyalty-home-banner{width:100%;height:160px;object-fit:cover;border-radius:16px;margin-top:12px}.loyalty-experience .loyalty-panel{color:var(--loyalty-surface-ink);background:var(--loyalty-surface);border:0;border-radius:var(--loyalty-radius);padding:24px;margin:16px 0}.loyalty-experience .loyalty-signup{box-shadow:0 12px 35px #00000012}.loyalty-experience form{display:grid;gap:16px}.loyalty-experience .field{display:grid;gap:6px;font-size:14px;font-weight:600}.loyalty-experience input:not([type=checkbox]),.loyalty-experience select{width:100%;min-width:0;min-height:48px;background:var(--loyalty-surface);color:var(--loyalty-surface-ink);border:1px solid #878980;border-radius:10px;font:inherit;font-size:16px;padding:10px 12px;caret-color:var(--loyalty-action)}.loyalty-experience .button{min-height:48px;white-space:normal;border-radius:12px;font-family:inherit;font-weight:600;font-size:16px;line-height:1.4;justify-content:center}.loyalty-experience .button.primary{background:var(--loyalty-action);color:var(--loyalty-action-ink);border-color:transparent}.loyalty-experience .button:hover{filter:brightness(.96)}.loyalty-experience .button:disabled{opacity:.6;cursor:wait}.loyalty-experience :is(button,input,select,a,summary):focus-visible{outline:3px solid currentColor;outline-offset:4px}.loyalty-experience summary{min-height:44px;cursor:pointer;font-weight:700;padding:10px 0}.loyalty-experience p{line-height:1.55}.loyalty-experience a{color:inherit;text-underline-offset:4px}.loyalty-experience ::selection{background:var(--loyalty-action);color:var(--loyalty-action-ink)}.loyalty-experience .loyalty-check{align-items:flex-start;font-size:14px;line-height:1.5;gap:12px;min-height:44px}.loyalty-experience input[type=checkbox]{width:22px;height:22px;flex:none;margin:0;accent-color:var(--loyalty-action)}.loyalty-birthday{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:0;padding:0;margin:0;min-width:0}.loyalty-birthday legend{font-size:14px;font-weight:600;margin-bottom:6px}.loyalty-birthday legend span{font-weight:400}.loyalty-privacy-notice{font-size:12px;margin:0}.loyalty-experience .loyalty-error{font-size:14px;margin:0;min-height:0}.loyalty-experience .loyalty-error:not(:empty){padding:10px 0}.loyalty-recovery{border-top:1px solid var(--line);margin-top:20px;padding-top:10px}.loyalty-recovery p{font-size:14px}.loyalty-reward-panel{box-shadow:0 12px 35px #00000012}.loyalty-member-greeting{margin:0}.loyalty-experience .loyalty-progress{margin:20px 0}.loyalty-experience .loyalty-progress>strong{font-size:22px}.loyalty-experience .loyalty-stamps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:10px 0}.loyalty-experience .loyalty-stamp{width:min(100%,64px);margin:auto;border:2px dashed var(--loyalty-surface-ink);opacity:.65}.loyalty-experience .loyalty-stamp.is-earned{background:var(--loyalty-action);border:2px solid var(--loyalty-action);opacity:1}.loyalty-experience .loyalty-stamp.is-earned span{color:var(--loyalty-action-ink);font-size:28px}.loyalty-experience .loyalty-qr-cta{width:100%;min-height:58px;display:flex;gap:12px;font-weight:700;margin-top:24px}.loyalty-card-help{font-size:13px;text-align:center;margin:10px 0 16px}.loyalty-refresh{width:100%}.loyalty-success,.loyalty-connection{background:var(--loyalty-surface);color:var(--loyalty-surface-ink);padding:16px;border-radius:12px;font-size:14px}.loyalty-connection[hidden]{display:none}.loyalty-experience .loyalty-row{flex-wrap:wrap;gap:8px}.loyalty-experience .loyalty-row time{color:inherit;font-size:13px}.loyalty-offer{padding:12px 0}.loyalty-offer p{font-size:14px}.loyalty-home-links{display:flex;flex-direction:column;gap:8px;text-align:center;margin-top:24px}.loyalty-home-links a{padding:12px}.loyalty-home-footer{text-align:center;font-size:12px;padding-top:30px}.loyalty-experience dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;padding:24px;border:0;border-radius:var(--loyalty-radius);background:var(--loyalty-surface);color:var(--loyalty-surface-ink);text-align:center}.loyalty-experience dialog::backdrop{background:#0009}.loyalty-experience dialog .loyalty-qr{width:min(100%,256px);height:auto;aspect-ratio:1;display:block;margin:20px auto;padding:12px}.loyalty-experience dialog .button{width:100%}.loyalty-experience dialog p{font-size:14px}.loyalty-experience dialog .loyalty-code{font-size:32px;font-variant-numeric:tabular-nums;margin-top:6px}
@media(max-width:360px){.loyalty-experience{padding:20px 12px 32px}.loyalty-experience .loyalty-panel{padding:20px}.loyalty-brand-logo{width:64px;height:64px}.loyalty-experience .loyalty-stamps{gap:10px}}
@media(prefers-reduced-motion:no-preference){.loyalty-success{animation:loyalty-welcome .4s cubic-bezier(.16,1,.3,1)}.loyalty-experience .button{transition:filter .15s ease}}@keyframes loyalty-welcome{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}

.pos-loyalty-confirmation{padding:18px 0}.pos-loyalty-confirmation h2{font-size:18px;margin:0 0 12px}.pos-loyalty-confirmation p{line-height:1.6}.pos-loyalty-confirmation form{display:grid;gap:18px}.pos-loyalty-confirmation :is(.button,.loyalty-check){min-height:48px}.pos-loyalty-confirmation input{width:20px;height:20px;flex:none}.pos-loyalty-identity{overflow-wrap:anywhere}

.loyalty-member-identity .loyalty-actions{flex-wrap:wrap;align-items:stretch}.loyalty-member-identity .loyalty-actions .button{white-space:normal;max-width:100%}

/* Full experience studio shares the existing owner workspace and public renderer. */
.loyalty-design-studio{align-items:start}.loyalty-studio-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.loyalty-studio-title h2{margin:0}.loyalty-template-picker{border:0;padding:0;margin:0;min-width:0}.loyalty-template-picker legend{font-weight:700}.loyalty-template-picker p{font-size:13px;color:var(--muted)}.loyalty-template-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.loyalty-template-option{display:grid;gap:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:10px;font:inherit;text-align:left;cursor:pointer;min-width:0;overflow-wrap:anywhere}.loyalty-template-option:focus-visible{outline:3px solid var(--primary);outline-offset:3px}.loyalty-template-swatch{height:36px;width:100%;border-radius:6px;background:var(--preset-page);position:relative}.loyalty-template-swatch:after{content:'';position:absolute;right:7px;bottom:7px;width:25px;height:12px;background:var(--preset-action);border-radius:3px}.loyalty-template-option strong{font-size:13px;line-height:1.4}.loyalty-design-group>summary{font-size:15px;font-weight:700;cursor:pointer;min-height:44px;line-height:1.5}.loyalty-design-group[open]>summary{margin-bottom:12px}.loyalty-theme-pairs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.loyalty-theme-pairs input[type=color]{width:100%;height:44px;padding:3px}.loyalty-design-studio input,.loyalty-design-studio select,.loyalty-design-studio textarea{max-width:100%;min-width:0}.loyalty-design-studio .button{min-height:44px;white-space:normal}.loyalty-design-studio .loyalty-check{align-items:start;line-height:1.5}.loyalty-design-studio .loyalty-check input{width:20px;height:20px;flex:none}.loyalty-design-actions{display:flex;gap:12px;position:sticky;bottom:0;background:var(--surface);padding:12px 0;z-index:1;flex-wrap:wrap}.loyalty-service-editor{border-top:1px solid var(--line);padding:16px 0;display:grid;gap:12px;min-width:0}.loyalty-service-editor-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between}.loyalty-service-editor-heading>div{display:flex;gap:6px}.loyalty-service-editor-heading .button{padding:7px;font-size:12px}.loyalty-social-editor{display:grid;gap:12px;border-top:1px solid var(--line);padding:16px 0}.loyalty-design-preview{position:sticky;top:20px;min-width:0}.loyalty-preview-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.loyalty-preview-controls .field{display:grid;gap:6px}.loyalty-preview-stage{overflow:auto;max-width:100%;background:var(--surface);border-radius:16px;overscroll-behavior:contain}.loyalty-preview-stage:focus-visible{outline:3px solid var(--primary);outline-offset:3px}.loyalty-preview-stage iframe{display:block;margin:auto;border:0;max-width:none}.loyalty-design-preview>.button{margin-top:12px;width:100%}@media(max-width:700px){.loyalty-design-preview{position:static}.loyalty-template-options{grid-template-columns:1fr}.loyalty-template-option{grid-template-columns:55px 1fr;align-items:center;min-height:64px}.loyalty-theme-pairs{gap:10px}.loyalty-design-studio{min-width:0}.loyalty-design-preview{padding:16px}.loyalty-preview-stage iframe{margin:0}}
.loyalty-experience .loyalty-service-tiles{display:grid;gap:12px;margin:20px 0}.loyalty-experience .loyalty-service-tile{display:flex;align-items:center;gap:14px;padding:18px 20px;background:var(--loyalty-surface);color:var(--loyalty-surface-ink);border-radius:var(--loyalty-radius);min-height:78px;text-decoration:none}.loyalty-service-tile>span:nth-child(2){flex:1;min-width:0;display:grid;gap:4px}.loyalty-service-tile strong{font-size:16px}.loyalty-service-tile small{font-size:13px;line-height:1.4}.loyalty-service-tile>img{width:52px;height:52px;object-fit:cover;border-radius:8px}.loyalty-service-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none;background:#ffedd5;color:#92400e}.loyalty-service-icon--green{background:#dcfce7;color:#166534}.loyalty-service-icon--purple{background:#ede9fe;color:#5b21b6}.loyalty-service-icon--blue{background:#dbeafe;color:#1e40af}.loyalty-service-icon--pink{background:#fce7f3;color:#9d174d}.loyalty-service-tile[aria-disabled=true]{opacity:.7}.loyalty-reward-icon{display:inline-grid;place-items:center;width:44px;height:44px;margin-top:16px;border-radius:50%;color:var(--loyalty-action);background:var(--loyalty-surface)}.loyalty-social-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:20px}.loyalty-social-links a{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px;color:inherit}
.loyalty-drag-handle{display:grid;place-items:center;width:32px;height:44px;padding:0;border:0;background:transparent;color:var(--muted);cursor:grab;flex:none}.loyalty-service-editor-heading>strong{flex:1}.loyalty-service-fields>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}.loyalty-service-fields[open]{display:grid;gap:12px}.loyalty-service-fields .field{margin-bottom:12px}

.loyalty-service-icon--brand{background:var(--loyalty-action);color:var(--loyalty-action-ink)}
#loyalty-studio-fields{display:grid;gap:16px;border:0;padding:0;margin:0;min-width:0}.loyalty-experience .loyalty-service-tile:focus-visible{outline:3px solid var(--loyalty-surface-ink);outline-offset:-6px}

/* Wallet controls inherit the validated customer palette and preserve provider artwork. */
#loyalty-wallet-panel .loyalty-wallet-button{margin-inline:0;max-width:100%}
#loyalty-wallet-panel .loyalty-wallet-button img{max-width:100%;object-fit:contain}
.loyalty-experience #loyalty-wallet-panel button:focus-visible{outline:3px solid var(--loyalty-surface-ink);outline-offset:3px}
#loyalty-wallet-panel .loyalty-actions{align-items:center;flex-wrap:wrap}
#loyalty-wallet-panel p{overflow-wrap:anywhere}

/* Guest services share the published customer palette; owner inbox stays neutral. */
button.loyalty-service-tile{width:100%;text-align:start;font:inherit;cursor:pointer;border:0}
.loyalty-service-tile:focus-visible{outline:3px solid var(--loyalty-surface-ink);outline-offset:3px}
.loyalty-experience .loyalty-service-dialog{text-align:start}
.loyalty-service-dialog .field{margin-block:16px}
.loyalty-service-dialog textarea{width:100%;box-sizing:border-box;min-height:120px;resize:vertical}
.loyalty-service-dialog .button{min-height:44px;margin-block:8px}
.loyalty-preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}
.loyalty-feedback-row{padding-block:20px;border-bottom:1px solid var(--line)}
.loyalty-feedback-row header{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.loyalty-feedback-row p{overflow-wrap:anywhere}
#loyalty-review-feedback .field{display:grid;gap:8px;margin-block:16px}
#loyalty-review-feedback textarea{width:100%;box-sizing:border-box;min-height:100px}

.loyalty-feedback-row time{display:block;margin-block-start:4px;font-variant-numeric:tabular-nums;white-space:nowrap}

/* P7 mail uses the existing owner workspace and form primitives. */
.loyalty-mail-copy{white-space:pre-wrap;overflow-wrap:anywhere;max-width:70ch}
.loyalty-campaign-row{padding:20px 0;border-top:1px solid var(--line)}
.loyalty-campaign-row h3{margin:0 0 8px}
.loyalty-campaign-row details{margin-bottom:16px}

#loyalty-messaging{min-width:0;grid-template-columns:minmax(0,1fr)}
#loyalty-messaging>*{min-width:0;overflow-wrap:anywhere}
#loyalty-campaign-form{display:grid;gap:16px}
#loyalty-campaign-form input,#loyalty-campaign-form textarea,#loyalty-campaign-form select{width:100%;min-width:0}
#loyalty-messaging .loyalty-actions{flex-wrap:wrap;justify-content:flex-start}

#loyalty-campaign-form .loyalty-error:empty{display:none}
#loyalty-campaign-form>button{justify-self:start;min-height:44px}

/* P8: intrinsic report rows remain readable at narrow widths and text zoom. */
.loyalty-engagement table{white-space:normal;font-size:14px;width:100%;table-layout:fixed;border-collapse:collapse}.loyalty-engagement caption{text-align:start;line-height:1.5;color:var(--muted);padding-block:8px}.loyalty-engagement th,.loyalty-engagement td{white-space:normal;font-size:14px;padding:12px 8px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;vertical-align:top}.loyalty-engagement th{width:72%;text-align:start;font-weight:500}.loyalty-engagement td{text-align:end;font-variant-numeric:tabular-nums}.loyalty-engagement p{overflow-wrap:anywhere}

#loyalty-report-filter .field{min-width:0;flex-basis:150px}#loyalty-report-filter input,#loyalty-report-filter select{min-width:0;width:100%}#loyalty-report-stats .loyalty-stat-grid section{min-width:0;overflow-wrap:anywhere}

/* Customer reference layout. All color and brand values come from the published Card Studio design. */
#main.loyalty-reference{--lc-stroke:color-mix(in srgb,var(--loyalty-surface-ink) 12%,var(--loyalty-surface));--lc-shadow:0 9px 24px #162e2809;padding:23px 22px 30px;min-height:100dvh;background-color:var(--loyalty-page);color:var(--loyalty-ink);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#main.loyalty-reference .loyalty-home{width:100%;max-width:386px;margin:0 auto}
#main.loyalty-reference :is(button,input,select,textarea){font-family:inherit}
#main.loyalty-reference .loyalty-brand{display:flex;flex-direction:row;align-items:center;gap:11px;margin:0 0 30px;text-align:left;color:var(--loyalty-ink)}
#main.loyalty-reference .loyalty-brand-logo{display:grid;place-items:center;width:43px;height:43px;flex:none;border-radius:13px;object-fit:contain;background:var(--loyalty-action);color:var(--loyalty-action-ink);font-size:14px;font-weight:800;margin:0;padding:0}
#main.loyalty-reference img.loyalty-brand-logo{background:var(--loyalty-surface)}
#main.loyalty-reference .loyalty-brand-copy{flex:1;min-width:0}
#main.loyalty-reference .loyalty-brand-copy strong{display:block;font-size:14px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#main.loyalty-reference .loyalty-brand-copy p,#main.loyalty-reference .loyalty-brand-copy>span{display:block;font-size:11.5px;line-height:1.5;margin:3px 0 0;color:var(--loyalty-page-muted)}
#main.loyalty-reference .loyalty-home-banner{display:block;width:100%;height:145px;border-radius:var(--loyalty-radius);object-fit:cover;margin:0 0 24px}
#main.loyalty-reference .loyalty-icon-button{height:36px;width:36px;min-height:36px;flex:none;display:grid;place-items:center;padding:8px;border:1px solid var(--lc-stroke);border-radius:12px;background:var(--loyalty-surface);color:var(--loyalty-surface-ink);box-shadow:none;cursor:pointer}
#main.loyalty-reference .loyalty-icon-button svg{width:19px;height:19px}
#main.loyalty-reference .loyalty-eyebrow{color:var(--loyalty-page-accent);text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:750;margin:0 0 9px}
#main.loyalty-reference h1{font-family:inherit;color:inherit;font-size:28px;letter-spacing:-1.15px;line-height:1.2;font-weight:750;margin:0 0 8px;text-align:inherit;text-wrap:balance}
#main.loyalty-reference .loyalty-signup-heading{text-align:center;margin:43px 0 29px}
#main.loyalty-reference .loyalty-signup-heading>p:last-child{font-size:13px;color:var(--loyalty-page-muted);line-height:1.56;margin:0}
#main.loyalty-reference .loyalty-panel{background:var(--loyalty-surface);color:var(--loyalty-surface-ink);padding:20px;border:1px solid var(--lc-stroke);border-radius:var(--loyalty-radius);box-shadow:var(--lc-shadow);margin:0 0 13px}
#main.loyalty-reference form{display:block;margin:0}
#main.loyalty-reference .field{display:block;margin:0 0 15px;color:inherit;font-size:12px;font-weight:680}
#main.loyalty-reference .field>span{display:block;margin:0 0 7px}
#main.loyalty-reference .field :is(input,select),#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog) :is(input:not([type=checkbox]),select,textarea){width:100%;min-width:0;min-height:44px;height:44px;padding:0 13px;border:1px solid var(--lc-stroke);border-radius:11px;background:var(--loyalty-surface);color:var(--loyalty-surface-ink);font-family:inherit;font-size:16px;font-weight:400;line-height:1.5;outline:none;box-shadow:none;caret-color:var(--loyalty-action)}
#main.loyalty-reference .field :is(input,select){font-size:16px;font-weight:400}
#main.loyalty-reference .field input::placeholder{color:var(--loyalty-muted);opacity:1}
#main.loyalty-reference .field :is(input,select):focus,#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog) :is(input,select,textarea):focus{border-color:var(--loyalty-icon);outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--loyalty-icon) 14%,transparent)}
#main.loyalty-reference .loyalty-birthday{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;border:0;padding:0;margin:0 0 15px;min-width:0}
#main.loyalty-reference .loyalty-birthday legend{font-size:12px;font-weight:680;padding:0;margin:0 0 7px}
#main.loyalty-reference .loyalty-birthday legend span{font-weight:400;color:var(--loyalty-muted)}
#main.loyalty-reference .loyalty-birthday .field{margin:0}
#main.loyalty-reference .loyalty-check{display:flex;align-items:start;gap:9px;margin:6px 0 19px;min-height:0;font-size:11.5px;line-height:1.5;font-weight:400;color:var(--loyalty-muted)}
#main.loyalty-reference .loyalty-check input{flex:none;width:15px;height:15px;margin:2px 0 0;accent-color:var(--loyalty-action)}
#main.loyalty-reference .button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 15px;border:1px solid var(--lc-stroke);border-radius:12px;background:var(--loyalty-surface);color:var(--loyalty-surface-ink);font-family:inherit;font-size:12px;font-weight:700;line-height:1.5;white-space:normal;box-shadow:none;text-decoration:none;cursor:pointer}
#main.loyalty-reference .button.primary{min-height:46px;width:100%;background:var(--loyalty-action);color:var(--loyalty-action-ink);border-color:var(--loyalty-action);font-size:13px;font-weight:750}
#main.loyalty-reference .button svg{width:18px;height:18px;flex:none}
#main.loyalty-reference .button:hover{filter:brightness(.96)}
#main.loyalty-reference .button:disabled{opacity:.6;cursor:wait}
#main.loyalty-reference .loyalty-error{font-size:12px;margin:10px 0;line-height:1.5;color:inherit}
#main.loyalty-reference .loyalty-error:empty{display:none}
#main.loyalty-reference .loyalty-privacy-notice{font-size:10.5px;color:var(--loyalty-muted);line-height:1.5;margin:14px 0 0}
#main.loyalty-reference .loyalty-privacy-notice a{color:inherit;text-decoration:underline}
#main.loyalty-reference .loyalty-recovery{padding:0;margin:18px 0 0;border:0;background:transparent;color:var(--loyalty-ink);font-size:12px}
#main.loyalty-reference .loyalty-recovery>summary{font-weight:400;list-style:none;text-align:center;min-height:44px;cursor:pointer;padding:8px 0;color:var(--loyalty-page-muted)}
#main.loyalty-reference .loyalty-recovery>summary::-webkit-details-marker{display:none}
#main.loyalty-reference .loyalty-recovery>summary strong{color:var(--loyalty-ink);font-weight:750}
#main.loyalty-reference .loyalty-recovery[open]{background:var(--loyalty-surface);color:var(--loyalty-surface-ink);border:1px solid var(--lc-stroke);border-radius:var(--loyalty-radius);padding:16px}
#main.loyalty-reference .loyalty-recovery[open]>summary,#main.loyalty-reference .loyalty-recovery[open]>summary strong{color:inherit}
#main.loyalty-reference .loyalty-dashboard-heading{display:flex;align-items:start;justify-content:space-between;gap:10px;margin:13px 0 19px}
#main.loyalty-reference .loyalty-dashboard-heading h1{font-size:25px;overflow-wrap:anywhere}
#main.loyalty-reference .loyalty-dashboard-heading>div>p:last-child{font-size:12px;color:var(--loyalty-page-muted);margin:0}
#main.loyalty-reference .loyalty-member-badge{background:var(--loyalty-surface);color:var(--loyalty-surface-ink);padding:7px 10px;border:1px solid var(--lc-stroke);border-radius:999px;font-size:10px;font-weight:750;white-space:nowrap}
#main.loyalty-reference .loyalty-card-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}
#main.loyalty-reference h2{font-family:inherit;font-size:14px;line-height:1.5;font-weight:800;margin:0;color:inherit;letter-spacing:-.2px}
#main.loyalty-reference .loyalty-card-heading p{font-size:11.5px;color:var(--loyalty-muted);margin:4px 0 0}
#main.loyalty-reference .loyalty-reward-icon{display:grid;place-items:center;margin:0;background:none;color:inherit;width:24px;height:24px;flex:none;border-radius:0}
#main.loyalty-reference .loyalty-progress{margin-top:18px;border:0;padding:0;color:inherit}
#main.loyalty-reference .loyalty-program-name{display:block;font-size:12px;font-weight:700;margin:0 0 12px}
#main.loyalty-reference .loyalty-stamps{display:grid;grid-template-columns:repeat(var(--stamp-columns),minmax(0,1fr));justify-items:center;gap:10px 6px;margin:0 0 17px;padding:0}
#main.loyalty-reference .loyalty-stamp{display:grid;place-items:center;aspect-ratio:1;width:min(39px,100%);height:auto;min-width:0;border:1.6px dashed color-mix(in srgb,var(--loyalty-surface-ink) 40%,var(--loyalty-surface));border-radius:50%;background:transparent;color:var(--loyalty-action)}
#main.loyalty-reference .loyalty-stamp.is-earned{background:var(--loyalty-action);color:var(--loyalty-action-ink);border-style:solid;border-color:var(--loyalty-action)}
#main.loyalty-reference .loyalty-stamp svg{width:21px;height:21px;max-width:75%}
#main.loyalty-reference .loyalty-progress-meta{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin:0 0 11px}
#main.loyalty-reference .loyalty-progress-meta strong{font-weight:800}
#main.loyalty-reference .loyalty-progress-meta>span{font-size:11px;color:var(--loyalty-muted)}
#main.loyalty-reference .loyalty-progress-track{height:6px;background:var(--lc-stroke);border:0;border-radius:20px;margin:0;overflow:hidden}
#main.loyalty-reference .loyalty-progress-track>span{display:block;height:100%;border-radius:20px;background:var(--loyalty-action)}
#main.loyalty-reference .loyalty-total-visits{display:block;font-size:10px;color:var(--loyalty-muted);margin:8px 0 0}
#main.loyalty-reference .loyalty-text-button{background:transparent;color:inherit;border:0;padding:8px 0;min-height:36px;font-family:inherit;font-size:11.5px;font-weight:700;line-height:1.5;cursor:pointer;text-decoration:none}
#main.loyalty-reference .loyalty-refresh{margin:8px 0 -5px;color:var(--loyalty-surface-ink);font-size:11px;font-weight:650}
#main.loyalty-reference .loyalty-next-reward{display:flex;align-items:center;gap:12px;padding:14px;width:100%;margin:0 0 14px;border:1px solid var(--lc-stroke);border-radius:15px;background:var(--loyalty-surface);color:var(--loyalty-surface-ink);text-align:left;font-family:inherit;cursor:pointer}
#main.loyalty-reference .loyalty-next-reward>span:first-child{display:grid;place-items:center;width:42px;height:42px;flex:none;border:1px solid var(--lc-stroke);border-radius:12px;color:inherit}
#main.loyalty-reference .loyalty-next-reward>span:nth-child(2){flex:1;min-width:0}
#main.loyalty-reference .loyalty-next-reward strong{display:block;font-size:12px;font-weight:800}
#main.loyalty-reference .loyalty-next-reward small{display:block;margin-top:4px;font-size:11px;color:var(--loyalty-muted)}
#main.loyalty-reference .loyalty-next-reward>svg{width:18px;height:18px;flex:none}
#main.loyalty-reference .loyalty-qr-cta{margin:0 0 8px;font-size:12px}
#main.loyalty-reference .loyalty-card-help{font-size:10px;color:var(--loyalty-page-muted);line-height:1.5;margin:0 0 19px}
#main.loyalty-reference .loyalty-explore>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 1px 13px;color:var(--loyalty-ink)}
#main.loyalty-reference .loyalty-explore>header>span{font-size:10px;color:var(--loyalty-page-muted)}
#main.loyalty-reference .loyalty-service-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 19px}
#main.loyalty-reference .loyalty-service-tile{min-width:0;min-height:93px;margin:0;padding:12px 5px;border:1px solid var(--lc-stroke);border-radius:15px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;background:var(--loyalty-surface);color:var(--loyalty-surface-ink);text-align:center;font-family:inherit;box-shadow:0 3px 10px #00000004;text-decoration:none}
#main.loyalty-reference .loyalty-service-tile>span:nth-child(2){flex:0 1 auto;display:block;min-width:0}
#main.loyalty-reference .loyalty-service-tile strong{font-size:10.5px;font-weight:670;line-height:1.4}
#main.loyalty-reference .loyalty-service-tile small{display:block;font-size:10px;line-height:1.4;margin-top:4px}
#main.loyalty-reference .loyalty-service-icon{width:25px;height:25px;border-radius:7px;margin:0;flex:none}
#main.loyalty-reference .loyalty-service-icon svg{width:21px;height:21px}
#main.loyalty-reference .loyalty-service-icon--brand{background:transparent;color:var(--loyalty-icon)}
#main.loyalty-reference .loyalty-service-tile>img{width:36px;height:36px;object-fit:cover;border-radius:8px}
#main.loyalty-reference .loyalty-secondary-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 16px;margin:20px 0 0;font-size:11.5px;color:var(--loyalty-ink)}
#main.loyalty-reference .loyalty-secondary-actions a{color:inherit}
#main.loyalty-reference .loyalty-home-footer{font-size:10px;line-height:1.5;color:var(--loyalty-page-muted);text-align:center;margin:18px 0 0;padding:0;border:0}
#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog){position:fixed;inset:0 0 0 auto;margin:0 0 0 auto;width:min(480px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;overflow:hidden;padding:0;border:1px solid var(--lc-stroke);border-right:0;border-radius:20px 0 0 20px;background:var(--loyalty-surface);color:var(--loyalty-surface-ink);box-shadow:-14px 0 48px #00000024;font-family:inherit;font-size:12.5px;scrollbar-width:none}
#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog)::backdrop{background:#1620216b}
#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog)::-webkit-scrollbar{width:0;height:0}
#main.loyalty-reference .loyalty-sheet-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:20px 22px 16px;border-bottom:1px solid var(--lc-stroke);background:var(--loyalty-surface)}
#main.loyalty-reference .loyalty-sheet-heading h2{font-size:18px;font-weight:750;letter-spacing:-.5px}
#main.loyalty-reference .loyalty-sheet-body,#main.loyalty-reference .loyalty-service-body{height:calc(100dvh - 78px);overflow-y:auto;overscroll-behavior:contain;padding:18px 22px 24px;scrollbar-width:none}
#main.loyalty-reference .loyalty-sheet-body::-webkit-scrollbar,#main.loyalty-reference .loyalty-service-body::-webkit-scrollbar{width:0;height:0}
#main.loyalty-reference .loyalty-service-dialog[open]{display:flex;flex-direction:column}
#main.loyalty-reference .loyalty-service-body{flex:1 1 auto;height:auto;min-height:0}
#main.loyalty-reference .loyalty-service-footer{flex:0 0 auto;padding:12px 22px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--lc-stroke);background:var(--loyalty-surface)}
#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog) :is(p,small){color:var(--loyalty-muted);line-height:1.6}
#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog) .loyalty-panel{padding:18px 0;box-shadow:none;border:0;border-radius:0;border-top:1px solid var(--lc-stroke);margin:16px 0 0}
#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog) h3{font-size:14px;font-weight:750;margin:0 0 12px}
#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog) .loyalty-check{margin:14px 0;min-height:44px;align-items:start;font-size:12px}
#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog) .loyalty-qr{display:block;width:190px;height:190px;max-width:100%;padding:13px;margin:16px auto;background:#fff;border:1px solid var(--lc-stroke);border-radius:16px}
#main.loyalty-reference .loyalty-row{display:flex;justify-content:space-between;align-items:start;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--lc-stroke);font-size:12px}
#main.loyalty-reference .loyalty-row>span{color:var(--loyalty-muted)}
#main.loyalty-reference .loyalty-offer{padding:12px 0;border-bottom:1px solid var(--lc-stroke)}
#main.loyalty-reference .loyalty-offer strong{font-size:13px;font-weight:750}
#main.loyalty-reference .loyalty-offer p{margin:6px 0;font-size:12px}
#main.loyalty-reference .loyalty-success,#main.loyalty-reference .loyalty-connection{font-size:12px;line-height:1.5;border:1px solid var(--lc-stroke);border-radius:12px;padding:12px;margin:0 0 18px;background:var(--loyalty-surface);color:var(--loyalty-surface-ink);animation:none}
#main.loyalty-reference :is(button,a,summary):focus-visible{outline:2px solid var(--loyalty-ink);outline-offset:3px}
#main.loyalty-reference .loyalty-panel :is(button,a):focus-visible,#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog) :is(button,a):focus-visible{outline-color:var(--loyalty-surface-ink)}
@media(max-width:600px){#main.loyalty-reference :is(.loyalty-sheet,.loyalty-service-dialog){width:100vw;border-radius:0;border:0}#main.loyalty-reference .loyalty-sheet-heading{padding:calc(16px + env(safe-area-inset-top)) 18px 14px}#main.loyalty-reference .loyalty-sheet-body,#main.loyalty-reference .loyalty-service-body{height:calc(100dvh - 72px);padding:16px 18px calc(20px + env(safe-area-inset-bottom))}#main.loyalty-reference .loyalty-service-body{height:auto}#main.loyalty-reference .loyalty-service-footer{padding-inline:18px}}
@media(max-width:360px){#main.loyalty-reference{padding:20px 16px 30px}#main.loyalty-reference .loyalty-panel{padding:16px}#main.loyalty-reference .loyalty-stamps{gap:8px 5px}#main.loyalty-reference .loyalty-signup-heading h1{font-size:26px}}

#main.loyalty-reference .loyalty-service-dialog>h2{font-size:18px;margin:0 0 14px}

/* Browser offers stay within the published restaurant palette. */
#main.loyalty-reference .loyalty-browser-preferences{margin-top:20px;padding-top:20px;border-top:1px solid var(--loyalty-line,#ddd)}
#main.loyalty-reference .loyalty-browser-preferences h4{margin:0 0 8px;font-size:16px}
#main.loyalty-reference .loyalty-browser-preferences .loyalty-actions{display:flex;flex-wrap:wrap;gap:8px}
#main.loyalty-reference .loyalty-browser-preferences p{font-size:13px;line-height:1.6}

/* Push campaign audience tools follow the neutral management workspace. */
:is(#loyalty-push-messaging,#loyalty-push-review){--surface:var(--mw-surface,var(--pos-surface,#fff));--ink:var(--mw-ink,var(--pos-ink,#24282e));--muted:var(--mw-muted,var(--pos-muted,#646d78));--line:var(--mw-line,var(--pos-line,#e5e7eb));--primary:var(--mw-orange,var(--pos-orange,#ff6500));color:var(--ink)}
#loyalty-push-messaging .field>span,#loyalty-push-messaging .muted{color:var(--muted)}
#loyalty-push-messaging .loyalty-push-modes label,#loyalty-push-review h3{color:var(--ink)}

#loyalty-push-messaging .loyalty-push-compose{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:24px;align-items:start;margin:16px 0}
#loyalty-push-messaging .loyalty-push-copy,#loyalty-push-messaging .loyalty-push-audience{min-width:0}
#loyalty-push-messaging .loyalty-push-copy .field{margin-bottom:14px}
#loyalty-push-messaging .loyalty-push-audience{border-left:1px solid var(--line);padding-left:24px}
#loyalty-push-messaging .loyalty-push-modes{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:0 0 16px;min-width:0}
#loyalty-push-messaging .loyalty-push-modes legend{font-weight:750;font-size:14px;margin-bottom:10px}
#loyalty-push-messaging .loyalty-push-modes label{display:flex;gap:7px;align-items:center;min-height:38px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:8px 10px;cursor:pointer;font-size:12px}
#loyalty-push-messaging .loyalty-push-modes label:has(:checked){border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary);font-weight:750}
#loyalty-push-messaging input[type=radio],#loyalty-push-messaging input[type=checkbox]{accent-color:var(--primary);width:16px;height:16px;flex-shrink:0}
#loyalty-push-messaging .loyalty-push-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
#loyalty-push-messaging .loyalty-push-filters .field{min-width:0}
#loyalty-push-messaging .loyalty-push-filters .field :is(input,select){width:100%;min-width:0}
.loyalty-push-audience-count{display:grid;gap:5px;padding:14px 0;margin:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);line-height:1.5}
.loyalty-push-audience-count strong{font-size:16px;color:var(--ink)}
.loyalty-push-audience-count span{font-size:12px;color:var(--muted)}
.loyalty-push-people{list-style:none;padding:0;margin:8px 0;max-height:320px;overflow-y:auto;scrollbar-width:none}
.loyalty-push-people::-webkit-scrollbar{width:0;height:0}
.loyalty-push-people li{border-bottom:1px solid var(--line);padding:10px 0}
.loyalty-push-people li label{display:flex;align-items:center;gap:10px;min-height:32px;cursor:pointer}
.loyalty-push-people :is(strong,small){display:block;overflow-wrap:anywhere;text-align:left}
.loyalty-push-people strong{font-size:13px}
.loyalty-push-people small{font-size:12px;color:var(--muted);margin-top:3px}
.loyalty-push-picked{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:10px 0}
.loyalty-push-picked>p{flex-basis:100%;margin:0;font-size:12px}
.loyalty-push-person-chip{display:inline-flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:9px;padding:4px 6px 4px 10px;font-size:12px;max-width:100%}
.loyalty-push-person-chip>span{overflow-wrap:anywhere;min-width:0}
.loyalty-push-person-chip .button{font-size:11px;min-height:30px;padding:4px 7px}
#loyalty-push-review .loyalty-pagination{flex-wrap:wrap;justify-content:space-between}
#loyalty-push-review [data-review-refresh]{margin-bottom:12px}
#loyalty-push-messaging [hidden]{display:none!important}
@media(max-width:1000px){#loyalty-push-messaging .loyalty-push-compose{grid-template-columns:minmax(0,1fr)}#loyalty-push-messaging .loyalty-push-audience{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:18px}}
@media(max-width:480px){#loyalty-push-messaging .loyalty-push-filters{grid-template-columns:minmax(0,1fr)}#loyalty-push-messaging .loyalty-push-modes label{flex:1 1 auto}}

/* A gently raised membership card, using each restaurant's published palette. */
#main.loyalty-reference :is(.loyalty-signup,.loyalty-reward-panel) {
  position: relative;
  isolation: isolate;
  margin-top: 6px;
  margin-bottom: 30px;
  border: 1px solid color-mix(in srgb,var(--loyalty-surface-ink) 12%,var(--loyalty-surface));
  border-bottom: 4px solid color-mix(in srgb,var(--loyalty-surface-ink) 20%,var(--loyalty-surface));
  border-radius: 24px;
  background-color: var(--loyalty-surface);
  background-image: linear-gradient(145deg,color-mix(in srgb,#fff 14%,transparent),transparent 44%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb,#fff 42%,transparent),
    0 4px 6px -4px color-mix(in srgb,var(--loyalty-ink) 26%,transparent),
    0 14px 22px -14px color-mix(in srgb,var(--loyalty-ink) 32%,transparent),
    0 30px 42px -25px color-mix(in srgb,var(--loyalty-ink) 35%,transparent);
}
#main.loyalty-reference .loyalty-reward-panel .loyalty-stamp {
  box-shadow: inset 0 2px 4px color-mix(in srgb,var(--loyalty-surface-ink) 8%,transparent),0 1px 0 color-mix(in srgb,#fff 45%,transparent);
}
#main.loyalty-reference .loyalty-reward-panel .loyalty-stamp.is-earned {
  box-shadow: inset 0 1px 0 #ffffff50,0 3px 0 color-mix(in srgb,var(--loyalty-surface-ink) 18%,var(--loyalty-action)),0 5px 9px -5px #00000045;
}
@media(max-width:360px){#main.loyalty-reference :is(.loyalty-signup,.loyalty-reward-panel){border-radius:20px;margin-bottom:26px;}}

#main.loyalty-reference .loyalty-ordering{overflow:auto;padding:20px;color:var(--loyalty-ink,var(--ink));background:var(--loyalty-page,var(--surface))}.loyalty-order-close{float:right;width:36px;height:36px;border:1px solid var(--line);border-radius:9px;background:transparent;color:inherit;font-size:24px}.loyalty-order-categories{position:sticky;top:0;display:flex;gap:16px;overflow:auto;padding:12px 0;background:inherit;z-index:1}.loyalty-order-categories button{white-space:nowrap;border:0;border-bottom:3px solid transparent;background:transparent;color:inherit;font-weight:800;padding:8px 0}.loyalty-order-categories button[aria-pressed=true]{border-color:var(--loyalty-action,var(--primary))}.loyalty-order-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.loyalty-order-products button{display:flex;flex-direction:column;gap:8px;text-align:left;padding:10px;border:1px solid var(--line);border-radius:12px;background:transparent;color:inherit}.loyalty-order-products img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}.loyalty-order-products strong{font-weight:800}.loyalty-order-products span{font-size:12px}.loyalty-ordering .field{display:grid;gap:6px;margin:12px 0}.loyalty-ordering input,.loyalty-ordering select{max-width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:transparent;color:inherit}@media(max-width:600px){.loyalty-order-products{grid-template-columns:repeat(2,minmax(0,1fr))}.loyalty-ordering{padding:14px}}
.loyalty-ordering{color:var(--loyalty-ink);background:var(--loyalty-page);font-family:inherit}.loyalty-ordering .button.primary{background:var(--loyalty-action);color:var(--loyalty-action-ink);border-color:var(--loyalty-action)}.loyalty-ordering .button{min-height:42px}.loyalty-order-nav{display:flex;gap:8px;flex-wrap:wrap;padding:10px 0 18px}.loyalty-order-nav button{background:var(--loyalty-surface);color:var(--loyalty-surface-ink);border:1px solid var(--line);border-radius:9px;padding:9px 12px;font-weight:800}.loyalty-ordering button:focus-visible,.loyalty-ordering input:focus-visible,.loyalty-ordering select:focus-visible{outline:2px solid var(--loyalty-action);outline-offset:2px}.loyalty-ordering [hidden]{display:none!important}.loyalty-ordering h2{font-family:Manrope,sans-serif;font-weight:800}.loyalty-ordering .loyalty-order-close{margin-left:8px}.loyalty-order-upsell .qr-upsell{padding:14px;border:1px solid var(--line);border-top:3px solid var(--loyalty-action);border-radius:12px;margin-bottom:16px;background:var(--loyalty-surface);color:var(--loyalty-surface-ink)}.loyalty-order-upsell .qr-upsell-heading{display:flex;justify-content:space-between;gap:10px}.loyalty-order-upsell h2{font-size:18px;margin:0}.loyalty-order-upsell p{font-size:13px;line-height:1.5}.loyalty-order-upsell button{color:inherit;background:transparent;border:1px solid var(--line);border-radius:8px;padding:8px}.loyalty-order-upsell .qr-upsell-item{width:100%;display:flex;align-items:center;gap:10px;text-align:left;margin-top:8px}.loyalty-order-upsell img{width:54px;height:54px;object-fit:cover;border-radius:8px}.loyalty-order-upsell .qr-upsell-item>span:first-of-type{flex:1}.loyalty-order-upsell strong,.loyalty-order-upsell b{display:block}.loyalty-order-upsell .qr-upsell-action{background:var(--loyalty-action);color:var(--loyalty-action-ink);padding:8px;border-radius:7px;font-weight:800}
.loyalty-order-layout,.loyalty-order-catalogue{min-width:0}.loyalty-order-preview{position:sticky;bottom:-14px;background:var(--loyalty-page);padding:12px 0;z-index:2}.loyalty-order-preview>small{display:block;margin-bottom:7px}.loyalty-order-preview-rows{display:none}.loyalty-order-preview-rows small,.loyalty-order-preview-rows b{display:block;margin-top:4px}@media(min-width:900px){.loyalty-order-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:20px;align-items:start}.loyalty-order-products{grid-template-columns:repeat(3,minmax(0,1fr))}.loyalty-order-preview{top:0;bottom:auto;padding:14px;border:1px solid var(--line);border-radius:12px}.loyalty-order-preview-rows{display:block}.loyalty-order-preview-rows h3{margin-top:0}.loyalty-order-preview-rows p{padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}.loyalty-order-preview-rows strong{overflow-wrap:anywhere}}
/* Ordering is a full app workspace, wider than account/preference drawers. */
#main.loyalty-reference dialog.loyalty-sheet.loyalty-ordering{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:20px;border:0;border-radius:0;scrollbar-width:none}#main.loyalty-reference dialog.loyalty-sheet.loyalty-ordering::-webkit-scrollbar{width:0;height:0}.loyalty-ordering{--line:color-mix(in srgb,var(--loyalty-ink) 16%,transparent)}

/* Restaurant loyalty overview: concise, customer-facing and theme-aware. */
.loyalty-client-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 22px;padding:0}.loyalty-client-metrics>div{min-width:0;padding:15px 16px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.loyalty-client-metrics dt{color:var(--muted);font-size:.82rem;font-weight:650}.loyalty-client-metrics dd{margin:7px 0 0;color:var(--ink);font-size:1.55rem;font-weight:780;letter-spacing:-.035em}.loyalty-client-preview{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,360px);align-items:center;gap:22px;margin:20px 0;padding:20px 22px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.loyalty-client-preview>header{align-self:start}.loyalty-client-preview>header h2{margin:0;font-size:1.1rem}.loyalty-client-preview>header p{margin:6px 0 0;color:var(--muted);font-size:.9rem}.loyalty-live-label{display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-size:.75rem;font-weight:750;letter-spacing:.045em;text-transform:uppercase}.loyalty-client-preview .loyalty-live-label{margin-top:14px;padding:6px 9px;border:1px solid var(--line);border-radius:999px}.loyalty-client-card-frame{min-width:0}.loyalty-client-card-frame .loyalty-card{width:100%;min-height:180px;box-shadow:0 12px 28px color-mix(in srgb,var(--ink) 14%,transparent)}.loyalty-client-rewards{margin:18px 0}.loyalty-client-offer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.loyalty-client-offer{min-width:0;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.loyalty-client-offer>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.loyalty-client-offer h3{margin:0;font-size:1.05rem}.loyalty-client-offer header p{margin:5px 0 0;color:var(--muted)}.loyalty-client-offer .loyalty-live-label{flex:none;padding:5px 8px;color:var(--ink);background:color-mix(in srgb,var(--primary) 12%,var(--surface));border-radius:999px}.loyalty-client-offer h4{margin:16px 0 7px;font-size:.82rem;text-transform:uppercase;letter-spacing:.05em}.loyalty-client-offer ul{margin:0;padding-left:20px}.loyalty-client-offer li{padding:3px 0;font-weight:700}.loyalty-client-offer-rule{margin:12px 0 0;padding-top:11px;color:var(--muted);border-top:1px solid var(--line);font-size:.88rem;line-height:1.5}.loyalty-client-rewards>.loyalty-section-heading{margin-bottom:14px}
@media(max-width:760px){.loyalty-client-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.loyalty-client-metrics>div{padding:12px}.loyalty-client-metrics dd{font-size:1.3rem}.loyalty-client-preview{grid-template-columns:minmax(0,1fr);gap:14px;padding:16px}.loyalty-client-card-frame{max-width:420px;width:100%;margin:auto}.loyalty-client-offer-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:380px){.loyalty-client-metrics dt{font-size:.74rem}.loyalty-client-metrics dd{font-size:1.15rem}}
.loyalty-client-preview{grid-template-columns:minmax(0,1fr) minmax(280px,380px);grid-template-rows:auto 1fr}.loyalty-client-preview>header{grid-column:1/-1}.loyalty-client-preview-info{align-self:center;display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:430px}.loyalty-client-preview-info .loyalty-live-label{margin:0}.loyalty-client-preview-info h3{margin:0;font-size:1.25rem}.loyalty-client-preview-info p{margin:0;color:var(--muted);line-height:1.55}.loyalty-client-preview-info>strong{font-size:.95rem}.loyalty-client-preview-info>a{color:var(--ink);font-weight:750;text-decoration-color:var(--primary);text-underline-offset:4px}.loyalty-client-card-frame{grid-column:2;grid-row:2}.loyalty-client-preview-info{grid-column:1;grid-row:2}@media(max-width:760px){.loyalty-client-preview{grid-template-columns:minmax(0,1fr);grid-template-rows:auto}.loyalty-client-preview>header,.loyalty-client-preview-info,.loyalty-client-card-frame{grid-column:1;grid-row:auto}.loyalty-client-preview-info{max-width:none}}
.loyalty-client-offer{color:var(--ink)}
