/* TAGS.PASS appearance v1. Dark preserves the existing visual design. */
html[data-pass-theme="dark"] {color-scheme:dark}
html[data-pass-theme="light"] {
  color-scheme:light;
  --pt-bg:#f1f5f3; --pt-bg2:#e2f1ea; --pt-card:#ffffff; --pt-soft:#e9f1ee;
  --pt-ink:#14252e; --pt-muted:#455e66; --pt-line:#c1d3cf;
  --pt-accent:#126b58; --pt-mint:#96f3db; --pt-lavender:#665090;
  background:var(--pt-bg);
}
.pass-theme-select {font:inherit;font-size:.8rem;font-weight:700;min-height:38px;max-width:112px;width:auto;appearance:auto;cursor:pointer;padding:7px 8px;border:1px solid #4e6b70;border-radius:10px;background:#192c35;color:#e8f5f3;box-sizing:border-box;flex:none}
.pass-theme-select[hidden]{display:none!important}
.pass-theme-select:focus-visible{outline:2px solid #96f3db;outline-offset:3px}
html[data-pass-theme="light"] .pass-theme-select{background:#fff;color:var(--pt-ink);border-color:#8da8a1}
html[data-pass-theme="light"] .pass-theme-select:focus-visible{outline-color:var(--pt-accent)}
.topbar:has(.pass-theme-select){flex-wrap:wrap}
.topbar-actions:has(.pass-theme-select){flex-wrap:wrap}
@media(max-width:480px){.pass-theme-select{font-size:.78rem;min-height:36px;padding:5px 6px}.topbar:has(.pass-theme-select){gap:8px}.topbar-actions:has(.pass-theme-select){gap:6px}}
@media screen {
html[data-pass-theme="light"] body {background:radial-gradient(ellipse at 85% 0%,#d9eee6 0,transparent 60%),var(--pt-bg)!important;color:var(--pt-ink)!important}
html[data-pass-theme="light"] body :is(.topbar,footer,.staff-entry,.line,.section-nav,.activity-row,.team-row){border-color:var(--pt-line)}
html[data-pass-theme="light"] body :is(h1,h2,h3,h4,.wordmark,.profile-address,.profile-description,.progress-title,.reward-name,.session-label,.activity-actor,.activity-note,.stat,.wallet-top strong){color:var(--pt-ink)}
html[data-pass-theme="light"] body :is(p,small,.muted,.small,.lead,.wallet-intro,.wallet-bottom,.ux-program,.ux-reassurance,.copy-status,.qr-label){color:var(--pt-muted)}
html[data-pass-theme="light"] body :is(a,.text-link,.eyebrow,.wallet-kicker,.wallet-arrow,.wallet-ready,.ss-free,.wordmark b,.pass-symbol,.pills span,.link-button){color:var(--pt-accent)}
html[data-pass-theme="light"] body :is(.card,.wallet-card,.lang-field-card,.lang-selector-box,.profile-links-editor,.stat,.reward-item,.install-dialog,dialog){background:var(--pt-card);color:var(--pt-ink);border-color:var(--pt-line);box-shadow:0 3px 12px #173d3510}
html[data-pass-theme="light"] body :is(.languages a,.languages span,.chip,.chip-link,.section-nav a,.wallet-nav-link,.secondary,.button.secondary){background:var(--pt-soft);color:var(--pt-ink);border-color:var(--pt-line)}
html[data-pass-theme="light"] body :is(.languages .selected,.section-nav .active,.chip,.wallet-nav-link){background:#d8eee5;color:#155c4e;border-color:#a1c9ba}
html[data-pass-theme="light"] body :is(button,.button).primary,html[data-pass-theme="light"] body .header-install{background:var(--pt-mint);color:#102b25;border-color:#80d8be}
html[data-pass-theme="light"] body :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]),textarea,select):not(.pass-theme-select){background:#fff;color:var(--pt-ink);border-color:#91aaa5}
html[data-pass-theme="light"] body :is(input,textarea)::placeholder{color:#62787e;opacity:1}
html[data-pass-theme="light"] body :is(input[type=checkbox],input[type=radio],progress){accent-color:#187a63}
html[data-pass-theme="light"] body :is(.short-code,code,.mono,.referral-url){background:#e8f0ed;color:var(--pt-ink);border-color:var(--pt-line)}
html[data-pass-theme="light"] body :is(.notice,.view-guide){background:#e3f3e9;border-color:#82bba6;color:#185741}
html[data-pass-theme="light"] body :is(.notice.success,.referral-accepted){background:#e0f3e9;color:#155940;border-color:#8cc5aa}
html[data-pass-theme="light"] body :is(.notice.warning,.demo-note,.recovery,.ux-recovery,.demo-help){background:#fff5df;color:#744713;border-color:#d4ab6c}
html[data-pass-theme="light"] body :is(.notice.error,.code-error){background:#fce8e8;color:#992b2b;border-color:#d79c9c}
html[data-pass-theme="light"] body :is(.notice,.demo-note,.view-guide,.recovery,.ux-recovery) :is(p,span,strong,small){color:inherit}
html[data-pass-theme="light"] body :is(.wallet-demo){color:#805017}
html[data-pass-theme="light"] body .wallet-card{background:linear-gradient(145deg,#fff,#f0f7f3 66%,#f0edf9);border-color:#b3cbc5}
html[data-pass-theme="light"] body .wallet-card h2{color:var(--pt-accent)}
html[data-pass-theme="light"] body .wallet-card:hover,html[data-pass-theme="light"] body .wallet-card:focus-visible{border-color:var(--pt-accent)}
html[data-pass-theme="light"] body .wallet-icon{background:#c4f2df;color:#183b32}
html[data-pass-theme="light"] body :is(progress,.progress-bar,.progress-track){background:#d1e2dc;border-color:var(--pt-line)}
html[data-pass-theme="light"] body progress::-webkit-progress-bar{background:#d1e2dc}
html[data-pass-theme="light"] body progress::-webkit-progress-value{background:#27866f;border-radius:99px}
html[data-pass-theme="light"] body progress::-moz-progress-bar{background:#27866f;border-radius:99px}
html[data-pass-theme="light"] body.customer-ux-v1 .ux-hero{background:linear-gradient(125deg,#e0f2e9,#fff 64%,#f0ebfa);border-color:#b5ccc5}
html[data-pass-theme="light"] body.customer-ux-v1 .ux-demo-hero{background:linear-gradient(90deg,#eaf5ef 0%,#eaf5eff5 38%,#eaf5ef80 67%,#eaf5ef10 100%),url('demo-coffee.webp') right center / auto 100% no-repeat,#eaf5ef;border-bottom:3px solid #ad96dd}
html[data-pass-theme="light"] body.customer-ux-v1 .ux-hero h1{color:var(--pt-ink)}
html[data-pass-theme="light"] body.customer-ux-v1 .ux-hero .text-link{color:var(--pt-accent)}
html[data-pass-theme="light"] body.customer-ux-v1 :is(.ux-business-mark,.ux-hero .business-logo){background:#d7eee5;color:var(--pt-accent)}
html[data-pass-theme="light"] body.customer-ux-v1 .guest-grid .pass-card,html[data-pass-theme="light"] body .pass-card{background:linear-gradient(135deg,#e2f4eb,#fff 60%,#f1edfa);border-color:#b1cdc3;color:var(--pt-ink)}
html[data-pass-theme="light"] body.customer-ux-v1 .ux-kicker{color:var(--pt-lavender)}
html[data-pass-theme="light"] body.customer-ux-v1 .ux-reward-title{color:var(--pt-accent)}
html[data-pass-theme="light"] body.customer-ux-v1 .ux-target{color:var(--pt-ink)}
html[data-pass-theme="light"] body.customer-ux-v1 .stamp-grid .stamp,html[data-pass-theme="light"] body .stamp-grid .stamp{background:#fff;color:#36545a;border-color:#92b3a9}
html[data-pass-theme="light"] body.customer-ux-v1 .stamp-grid .stamp.filled,html[data-pass-theme="light"] body.customer-ux-v1 .ux-preview-stamps .ux-goal-stamp,html[data-pass-theme="light"] body .stamp-grid .stamp.filled{background:#96f3db;color:#153c30;border-color:#59ba9d}
html[data-pass-theme="light"] body.customer-ux-v1 .ux-remaining{background:#d6eee3;color:#155c4b}
html[data-pass-theme="light"] body.customer-ux-v1 .ux-refresh{background:#fff;color:var(--pt-accent);border-color:#83b7a9}
html[data-pass-theme="light"] body.customer-ux-v1 .ux-referral .card{background:transparent;box-shadow:none}
/* QR panels stay light, including in dark mode. Do not recolor the QR SVG itself. */
html[data-pass-theme="light"] body.customer-ux-v1 .guest-grid .ux-scan-card,html[data-pass-theme="light"] body .qr-panel{background:#fff;color:#15252e;border-color:#b9d1c9}
html[data-pass-theme="light"] body .qr-panel :is(h3,summary,.short-code){color:#15252e}
html[data-pass-theme="light"] body .qr-panel .qr{background:#fff}
html[data-pass-theme="light"] body .ss-main label:not(.ss-tile):not(.ss-consent) input,html[data-pass-theme="light"] body .ss-main textarea{background:#fff;color:var(--pt-ink);border-color:#91aaa5}
html[data-pass-theme="light"] body .ss-tile{color:#14212b}
html[data-pass-theme="light"] body .ss-tile:has(input:checked){border-color:#183c34;outline-color:#27947a}
/* Print sheet remains white in both modes. */
html[data-pass-theme="light"] body .sheet{background:white;color:#101c24}
html[data-pass-theme="light"] body .sheet :is(h1,h2,p,.terms,.print-url){color:#101c24}
html[data-pass-theme="light"] body .actions a[aria-current]{outline-color:#126b58}
}
@media print{.pass-theme-select{display:none!important}html[data-pass-theme]{color-scheme:light;background:white}}

/* TAGS.PASS unified single-row header. No changes to page content. */
header.pass-header.topbar{position:sticky!important;top:0;z-index:1000;display:flex!important;align-items:center;justify-content:space-between;flex-wrap:nowrap!important;gap:clamp(4px,1vw,12px);width:100%;max-width:none!important;min-width:0;box-sizing:border-box;margin:0!important;padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left))!important;background:rgba(16,28,36,.97);border-bottom:1px solid #34474f;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);overflow:visible!important;box-shadow:0 3px 12px #00000012;color:#eaf5f3}
html[data-pass-theme=light] header.pass-header.topbar{background:rgba(245,250,247,.97);border-color:#b7cec5;color:#14252e}
.pass-header .pass-brand{display:flex;align-items:center;gap:7px;flex:0 1 auto;min-width:0;white-space:nowrap;text-decoration:none;color:inherit!important;font-size:15px;font-weight:800;line-height:1.1;letter-spacing:-.02em}
.pass-header .pass-brand img{width:32px;height:32px;object-fit:contain;border-radius:8px;flex:none;display:block}
.pass-header .pass-brand b{color:#96f3db}html[data-pass-theme=light] .pass-header .pass-brand b{color:#126b58}
.pass-header .pass-brand-short{display:none}
.pass-header .pass-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap!important;gap:6px;min-width:0;flex:none}
.pass-header .pass-header-control,.pass-header .pass-theme-button,.pass-header .header-install{display:inline-flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;min-height:34px;min-width:34px;width:auto;margin:0!important;padding:5px 8px!important;border:1px solid #4e6b70;border-radius:8px;background:transparent;color:inherit!important;font:inherit;font-size:13px;font-weight:700;line-height:1;white-space:nowrap;text-decoration:none;cursor:pointer}
.pass-header .pass-header-control svg,.pass-header .pass-theme-button svg{width:17px;height:17px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pass-header .pass-header-control:focus-visible,.pass-header button:focus-visible,.pass-header summary:focus-visible{outline:2px solid #7edcc3;outline-offset:2px}
.pass-header .pass-language{position:relative;margin:0;padding:0;flex:none}
.pass-header .pass-language summary{list-style:none;user-select:none}.pass-header .pass-language summary::-webkit-details-marker{display:none}
.pass-header .pass-language-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:106px;z-index:1001;padding:6px;background:#192c35;border:1px solid #4e6b70;border-radius:10px;box-shadow:0 5px 20px #0003}
.pass-header .pass-language-menu .languages{display:flex!important;flex-direction:column;align-items:stretch;gap:3px;margin:0!important;padding:0!important;white-space:nowrap}
.pass-header .pass-language-menu .languages a,.pass-header .pass-language-menu .languages span{display:block;padding:9px!important;margin:0!important;font-size:13px;white-space:nowrap;text-decoration:none}
.pass-header .pass-theme-select{display:none!important}
.pass-header .pass-theme-group{display:flex;align-items:center;gap:1px;flex:none;padding:2px;border:1px solid #4e6b70;border-radius:9px}
.pass-header .pass-theme-button{width:32px;min-width:32px;height:32px;min-height:32px;border:0;padding:0!important;border-radius:6px}
.pass-header .pass-theme-button[aria-pressed=true]{background:#96f3db!important;color:#14252e!important}
.pass-header .header-install{font-size:0!important;min-width:34px;width:34px;padding:0!important}
.pass-header .header-install::before{content:'↓';font-size:22px;font-weight:800;line-height:1}
.pass-header .header-install[hidden],.pass-header .header-install.is-hidden-pwa{display:none!important}
html[data-pass-theme=light] .pass-header :is(.pass-header-control,.pass-theme-group,.pass-language-menu){border-color:#a7c2b9;background:#f5faf7}
html[data-pass-theme=light] .pass-header .pass-theme-button[aria-pressed=true]{background:#c2ecdc!important;color:#125c4c!important}
@media(max-width:620px){.pass-header .pass-brand-full,.pass-header .pass-wallet-label{display:none}.pass-header .pass-brand-short{display:inline}.pass-header .pass-brand{gap:4px;font-size:12px}.pass-header .pass-header-actions{gap:4px}.pass-header .pass-header-control{padding:4px 6px!important}.pass-header .pass-theme-button{width:30px;min-width:30px;height:32px}.pass-header .pass-brand img{width:30px;height:30px}}
@media(max-width:350px){.pass-header .pass-brand-short{display:none}.pass-header .pass-header-actions{gap:3px}.pass-header .pass-theme-button{width:28px;min-width:28px}.pass-header .pass-header-control{padding:4px!important}.pass-header .pass-brand img{width:28px;height:28px}}
@media print{header.pass-header{display:none!important}}

/* Single theme switch: show the destination, not the current mode. */
.pass-header .pass-theme-toggle{width:34px;min-width:34px;padding:0!important;flex:none}
.pass-header .pass-theme-toggle [data-theme-icon="sun"]{display:none}
html[data-pass-theme="dark"] .pass-header .pass-theme-toggle [data-theme-icon="sun"]{display:block}
html[data-pass-theme="dark"] .pass-header .pass-theme-toggle [data-theme-icon="moon"]{display:none}

/* Package 4: customer experience, no header or payment changes. */
@media screen {
  .home-entry-card .button { margin-top:auto; }
  @media(min-width:721px) {
    .home-entry-card:not(.home-business-entry)::after { content:""; display:block; min-height:1.25rem; }
    .home-business-entry > .text-link { min-height:1.25rem; line-height:1.25rem; margin:0; }
  }
  html[data-pass-theme="light"] body .home-demo-steps,html[data-pass-theme="light"] body footer,html[data-pass-theme="light"] body footer :is(span,a,b) {color:#455e66;}
  .customer-ux-v1 .ux-hero.ux-with-cover {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);padding:0;gap:0;min-height:220px;align-items:stretch;}
  .customer-ux-v1 .ux-hero-content {padding:clamp(16px,3vw,26px);min-width:0;align-self:center;}
  .customer-ux-v1 .ux-cover-image {width:100%;height:100%;min-height:220px;max-height:340px;object-fit:cover;display:block;}
  .customer-ux-v1 .ux-hero.ux-with-cover h1 {font-size:clamp(1.65rem,4vw,2.4rem);overflow-wrap:break-word;}
  .customer-ux-v1 .guest-grid.ux-public-grid {grid-template-columns:minmax(0,1fr);max-width:100%;gap:12px;}
  .customer-ux-v1 .ux-public-grid .pass-card {width:100%;box-sizing:border-box;}
  .customer-ux-v1 .ux-public-grid .ux-main-action {max-width:100%;}
  .customer-ux-v1 .ux-earned-first {border:1px solid #65b69f;background:#193e37;}
  .customer-ux-v1 .ux-earned-first h2 {margin-top:0;font-size:1.25rem;color:#96f3db;}
  .customer-ux-v1 .ux-earned-first .reward-item {margin-top:8px;}
  html[data-pass-theme="light"] body.customer-ux-v1 .ux-earned-first {background:#e2f4eb;border-color:#76b9a2;}
  html[data-pass-theme="light"] body.customer-ux-v1 .ux-earned-first h2 {color:#126b58;}
  .cover-editor {border-bottom:1px solid currentColor;padding-bottom:18px;margin-bottom:20px;}
  .cover-editor h2 {margin-top:0;font-size:1.2rem;}
  .cover-preview {display:block;width:100%;max-height:220px;object-fit:cover;border-radius:12px;margin:12px 0;}
  .cover-editor form + form {margin-top:10px;}
  .wallet-card:has(.wallet-ready) {border-color:#65b69f;}
  html[data-pass-theme="light"] body .wallet-card:has(.wallet-ready) {border-color:#509e86;}
  @media(max-width:759px) {
    .customer-ux-v1 .ux-hero.ux-with-cover {grid-template-columns:minmax(0,1fr);min-height:0;}
    .customer-ux-v1 .ux-cover-image {grid-row:1;height:auto;min-height:0;aspect-ratio:16/9;max-height:230px;}
    .customer-ux-v1 .ux-hero-content {padding:15px 17px 18px;}
    .customer-ux-v1 .ux-hero.ux-with-cover h1 {font-size:clamp(1.5rem,6.2vw,2rem);}
    .customer-ux-v1 .ux-reward-title {font-size:clamp(1.55rem,6vw,2.1rem);overflow-wrap:break-word;}
    .customer-ux-v1 .ux-hero.ux-with-cover .profile-description {margin-bottom:0;}
  }
}

/* Keep the expanded language menu inside small mobile viewports. */
.pass-header .pass-language-menu{max-height:calc(100vh - 76px);max-height:calc(100dvh - 76px);overflow-y:auto;overscroll-behavior:contain;}
