/* Shared customer appearance tokens; loaded after all customer screen styles. */
.customer-ui .home-pass .home-pass-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 12px;letter-spacing:normal}
.customer-ui .home-pass .home-pass-actions button{min-height:44px;padding:8px 4px;color:#e7eef9;background:transparent}
.customer-ui .home-pass .home-pass-actions button:hover{background:#ffffff12;color:white}
@media(max-width:700px){.home-membership .home-membership-intro{display:none}.home-membership .home-pass .my-pass-bottom{flex-wrap:wrap;gap:12px}.home-membership .home-pass-actions{margin-left:auto}.my-primary{padding-bottom:20px}}
.home-membership{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:40px;align-items:center;margin:26px 0 40px}
.home-membership-intro h2{font-size:28px;line-height:1.4;letter-spacing:-.045em;word-break:keep-all;margin:14px 0}
.home-membership-intro p{font-size:14px;color:var(--muted)}
.home-membership-intro .home-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.home-pass{min-height:250px}.home-pass .my-pass-name{margin:40px 0 30px}
.customer-ui .home-pass .my-pass-bottom button{background:transparent;color:#e7eef9;white-space:nowrap;font-size:12px}
/* Window only the selected asset's built-in white margin; original file stays intact. */
.brand-banner.brand-banner-original{aspect-ratio:1348/992;border-radius:22px;isolation:isolate;background:transparent}
.brand-banner-original>img{position:absolute;inset:auto;width:105.786%;max-width:none;height:111.19%;left:-2.819%;top:-6.553%;object-fit:fill;z-index:0}
@media(max-width:700px){.home-membership{grid-template-columns:minmax(0,1fr);gap:20px;margin:12px 0 32px}.home-pass{order:-1}.home-membership-intro>h2,.home-membership-intro>.eyebrow,.home-membership-intro>p{display:none}.home-membership-intro .home-shortcuts{margin-top:0}.home-pass{min-height:230px}.home-pass .my-pass-name{margin:34px 0 24px}}
body.customer-ui{font-family:system-ui,-apple-system,"Segoe UI","Malgun Gothic","Microsoft YaHei",sans-serif;font-weight:500;--my-border:#dce3eb;--my-surface:#fff}
.customer-ui h1,.customer-ui h2,.customer-ui h3,.customer-ui .benefit-copy strong{font-weight:700}
.customer-ui .my-pass-name,.customer-ui .my-counts strong,.customer-ui .my-next strong,.customer-ui .grade-current>strong{font-weight:650}
.customer-ui .my-identity h2,.customer-ui .my-qr-entry strong,.customer-ui .settings-disclosure>summary,.customer-ui .customer-nav button{font-weight:600}
.customer-ui :is(.my-caption,.my-status,.my-next span,.my-counts span,.benefit-copy>span,.detail-store,.detail-terms p,.journey-content>p,.settings-profile p,.grade-guide li,.grade-guide p){font-size:13px;color:#526175;line-height:1.7}
.customer-ui :is(.my-section-title button,.my-grade summary,.grade-more,.my-settings-row){font-size:12px;font-weight:600}
.customer-ui .benefit-copy small{font-size:10px;font-weight:600}
.appearance-switch{display:none}.customer-ui .appearance-switch{display:block;font-size:12px;padding:8px 10px;white-space:nowrap}
html:has(body.customer-ui){color-scheme:light}
html[data-appearance=dark]:has(body.customer-ui){color-scheme:dark;background:#101722}
html[data-appearance=dark] body.customer-ui{--ink:#eef2f8;--muted:#bac5d4;--teal:#b9cde8;--dark:#dbe7fa;--paper:#101722;--line:#354253;--my-border:#354253;--my-surface:#1b2533;background:#101722;color:var(--ink)}
html[data-appearance=dark] .customer-ui :is(.brand,.my-heading h1,.my-identity h2,.benefit-copy strong,.my-counts strong,.my-empty strong){color:var(--ink)}
html[data-appearance=dark] .customer-ui :is(.brand-word,.eyebrow,.my-caption,.my-status,.my-next span,.my-counts span,.benefit-copy small,.benefit-copy>span,.detail-store,.detail-terms p,.detail-facts dt,.detail-action small,.journey-date,.journey-content>p,.journey-content summary,.settings-profile p,.grade-guide li,.grade-guide p,.home-welcome p,.my-section-title button,.my-grade summary,.my-settings-row,.grade-more,.settings-logout,.my-empty p,.benefit-code-view>p){color:var(--muted)}
html[data-appearance=dark] .customer-ui :is(button,input,select,textarea,.login-card,.panel,.benefit-row,.my-counts>button,.my-layout .my-grade,.customer-grade>.my-grade,.journey-items,.settings-disclosure,dialog,.customer-nav){background:#1b2533;color:var(--ink);border-color:var(--line)}
html[data-appearance=dark] .customer-ui :is(button:hover:not(:disabled),.benefit-row:hover){background:#2a3749;border-color:#6b8099}
html[data-appearance=dark] .customer-ui :is(button.primary,.my-qr-entry,.auth-tabs button.active){background:#dce8fa;color:#172437;border-color:#dce8fa}
html[data-appearance=dark] .customer-ui .my-qr-entry small{color:#364b65}
html[data-appearance=dark] .customer-ui :is(button.quiet,.my-settings-row,.settings-logout){background:transparent;color:var(--muted)}
html[data-appearance=dark] .customer-ui :is(.badge,.detail-status,.journey-status,.settings-avatar){background:#2b3d50;color:#d1e1f1}
html[data-appearance=dark] .customer-ui .journey-status.is-cancelled{background:#46333d;color:#f0c7d7}
html[data-appearance=dark] .customer-ui .customer-nav button{background:transparent;color:#bbc8d9}
html[data-appearance=dark] .customer-ui .customer-nav button[aria-current=page]{background:#34455d;color:#fff}
html[data-appearance=dark] .customer-ui :is(.home-welcome,.my-secondary>.my-panel,.detail-facts,.journey-item,.journey-orders,.settings-language,.settings-logout){border-color:var(--line)}
html[data-appearance=dark] .customer-ui .my-grade progress::-webkit-progress-bar{background:#354253}
html[data-appearance=dark] .customer-ui .my-grade progress::-webkit-progress-value{background:#9fbdda}
/* QR remains a white scanning surface. Never invert images or the brand artwork. */
html[data-appearance=dark] .customer-ui .qr-card{background:#fff;color:#172437;border-color:#fff;color-scheme:light}
html[data-appearance=dark] .customer-ui .qr-card :is(.qr-benefit,.qr-caption,.qr-identity){color:#43546b}
html[data-appearance=dark] .customer-ui .my-pass{border-color:#52627b;box-shadow:0 12px 32px #0004}
.customer-ui .header-actions{flex-wrap:wrap}
@media(max-width:700px){.customer-ui .appearance-switch{font-size:11px;min-height:36px}.customer-ui .header{align-items:flex-start}.customer-ui .header-actions{max-width:240px;justify-content:flex-end}}
html[data-appearance=dark] .customer-ui .my-section-title>strong,html[data-appearance=dark] .customer-ui .my-section-title>span{color:#bac5d4}
html[data-appearance=dark] .customer-ui .language-switch{background:#1b2533;border-color:#354253}
html[data-appearance=dark] .customer-ui .language-switch button{background:transparent;border:0;color:#bac5d4}
html[data-appearance=dark] .customer-ui .language-switch button[aria-pressed=true]{background:#34455d;color:#fff}
/* Compact customer header: one row; account actions live in MY settings. */
.customer-ui .header{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;padding:16px 20px;gap:12px}
.customer-ui .header-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:8px;max-width:none;margin-left:auto}
.customer-ui .header #account{display:none}
.customer-ui .header .brand{flex-shrink:0;font-size:18px}
.customer-ui .header .appearance-switch{width:36px;height:36px;min-height:36px;padding:0;font-size:0;border:0;background:transparent;flex-shrink:0}
.customer-ui .header .appearance-switch:before{content:'◐';font-size:23px;line-height:1}
.customer-ui .header .language-switch{padding:3px;border-radius:12px;gap:2px}
.customer-ui .header .language-switch button{min-height:36px;padding:6px 10px;font-size:12px;border-radius:9px}
@media(max-width:700px){.customer-ui .header{padding:12px 20px;gap:8px}.customer-ui .header .brand-word{font-size:8px;letter-spacing:.08em}.customer-ui .header-actions{gap:4px}.customer-ui .my-heading{margin-top:0}.customer-ui:has(.customer-explore) main{padding-top:10px}}
@media(max-width:360px){.customer-ui .header{padding-left:16px;padding-right:16px}.customer-ui .header .brand{font-size:16px}.customer-ui .header .brand-word{display:none}}
/* Membership identity: one layout, five restrained material finishes. */
[data-grade=MEMBER]{--tier-glow:#7a9bb5;--tier-base:#202e40;--tier-edge:#7895b0}
[data-grade=SILVER]{--tier-glow:#d5e1ed;--tier-base:#354251;--tier-edge:#cedae7}
[data-grade=GOLD]{--tier-glow:#d8bb7d;--tier-base:#393326;--tier-edge:#d6bc85}
[data-grade=DIAMOND]{--tier-glow:#a1cce8;--tier-base:#26354a;--tier-edge:#b0d5ed}
[data-grade=BLACK]{--tier-glow:#87919f;--tier-base:#10131a;--tier-edge:#8e98a8}
.customer-ui .my-pass[data-grade],.customer-ui .grade-current[data-grade]{background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--tier-glow) 45%,transparent),transparent 65%),radial-gradient(ellipse at 0 110%,#ffffff0b,transparent 60%),var(--tier-base);border:1px solid color-mix(in srgb,var(--tier-edge) 55%,transparent);color:#f5f7fb}
.customer-ui .my-pass .my-tier{display:flex;gap:6px;align-items:center;min-height:36px;padding:7px 10px;background:#ffffff0a;border:1px solid #ffffff40;color:#f5f7fb;font-size:10px;font-weight:650;letter-spacing:.1em}
.customer-ui .my-pass .my-tier:hover{background:#ffffff20;color:white}
.grade-current .grade-emblem{display:grid;place-items:center;width:76px;height:76px;margin:24px auto 0;border:1px solid var(--tier-edge);border-radius:22px;transform:rotate(45deg);background:linear-gradient(135deg,#ffffff38,#ffffff04);color:var(--tier-edge);font-size:56px;line-height:1;box-shadow:inset 0 0 24px #ffffff0c}
.grade-current>strong{margin-top:28px}.grade-sequence>span{display:flex;flex-direction:column;align-items:center;gap:10px;flex:1;font-size:9px}.grade-sequence i{display:grid;place-items:center;width:30px;height:30px;font-style:normal;font-size:28px;color:var(--tier-edge)}
.grade-comparison{margin:28px 0;padding:24px;background:var(--my-surface,#fff);border:1px solid var(--line);border-radius:18px}.grade-comparison h2{font-size:18px}.grade-comparison dl{margin-bottom:0}.grade-comparison dl>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.grade-comparison dl>div:last-child{border:0}.grade-comparison dt{display:flex;align-items:center;gap:10px;font-weight:700;font-size:12px}.grade-comparison dd{text-align:right;margin:0;font-size:13px}.grade-comparison dd small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.tier-dot{display:grid;place-items:center;background:var(--tier-base);color:var(--tier-edge);width:28px;height:28px;border-radius:8px;font-size:22px}.grade-comparison [aria-current]{font-weight:700}
.grade-current .grade-emblem{transform:none;font-size:0;border:0;border-radius:0;box-shadow:none;background:conic-gradient(from 30deg,#ffffff99,var(--tier-edge),#ffffff22,var(--tier-edge),#ffffffaa,var(--tier-edge));clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%)}
.grade-current .grade-emblem:after{content:'';width:38px;height:44px;border:1px solid #ffffff88;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:linear-gradient(130deg,#ffffff70,#00000010)}
/* Refined membership composition: typography first, metal accents second. */
.customer-grade{max-width:660px}
.grade-refined{background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--tier-glow) 12%,transparent),transparent 55%),var(--my-surface,#fff);border:1px solid var(--line);border-radius:24px;padding:28px;margin:8px 0 0;box-shadow:0 16px 40px -28px #1d2c3f45,inset 0 1px 0 #ffffffaa;position:relative;overflow:hidden}
.grade-refined:before{content:'';position:absolute;left:28px;right:28px;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--tier-edge),transparent)}
.grade-refined-top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:26px}
.grade-refined-top .eyebrow{font-size:11px;letter-spacing:.04em;color:var(--muted);font-weight:500}
.grade-refined-top h2{font-size:36px;line-height:1.1;letter-spacing:.025em;margin:12px 0 10px;font-weight:650}
.grade-refined-top p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}
.grade-seal{display:grid;place-items:center;width:60px;height:60px;flex-shrink:0;background:linear-gradient(130deg,#f0e6d5,#fff9);border:1px solid #d9cbb5;border-radius:50%;box-shadow:inset 0 1px 0 #fff8,0 6px 16px #5543200a}
.grade-seal svg{width:32px;height:36px;stroke:#8c7448;stroke-width:1.2}
.grade-refined[data-grade]:not([data-grade=GOLD]) .grade-seal{background:color-mix(in srgb,var(--tier-edge) 16%,var(--my-surface,#fff));border-color:var(--tier-edge)}
.grade-refined[data-grade]:not([data-grade=GOLD]) .grade-seal svg{stroke:var(--muted)}
.grade-refined-progress{border-top:1px solid var(--line);padding-top:22px}
.grade-refined-progress .my-section-title,.grade-refined-progress details{display:none}
.grade-refined-progress .my-next{margin:0 0 18px;font-size:13px;display:flex;align-items:baseline;flex-wrap:wrap;gap:5px}
.grade-refined-progress .my-next strong{font-size:28px;font-variant-numeric:tabular-nums;margin-left:auto;letter-spacing:-.03em;font-weight:650}
.grade-refined-progress progress{display:block;width:100%;height:5px;border:0;border-radius:9px;overflow:hidden;accent-color:#7b899a;background:#e9edf2}
.grade-refined-progress progress::-webkit-progress-bar{background:#e9edf2}
.grade-refined-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#738298,var(--tier-edge));border-radius:9px}
.grade-refined-progress .my-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;font-size:11px;margin-top:13px}
.grade-track{display:flex;justify-content:space-between;position:relative;margin:26px 0 32px;padding:0 8px}
.grade-track:before{content:'';position:absolute;top:5px;left:10%;right:10%;height:1px;background:var(--line)}
.grade-track>div{position:relative;display:flex;align-items:center;flex-direction:column;gap:10px;flex:1;font-size:9px;color:var(--muted);letter-spacing:.02em}
.grade-track-dot{width:11px;height:11px;border-radius:50%;background:var(--tier-edge);border:3px solid var(--paper);box-sizing:content-box;margin-top:-3px}
.grade-track [aria-current]{font-weight:750;color:var(--ink)}
.grade-track [aria-current] .grade-track-dot{box-shadow:0 0 0 1px var(--muted)}
.grade-track small{font-size:10px;font-weight:500;color:var(--muted);margin-top:-4px}
.grade-comparison{background:transparent;border:0;border-radius:0;padding:0 4px;margin-top:0}.grade-comparison h2{font-size:16px;margin-bottom:6px}.grade-comparison>.my-caption{font-size:11px;margin-top:0}.grade-comparison dl>div{padding:17px 0}.grade-comparison dd{font-size:12px}.tier-dot{width:24px;height:24px;font-size:17px;border-radius:7px}
.customer-ui .grade-guide{border-top:1px solid var(--line);padding-top:22px;margin-top:24px}.grade-guide h2{font-size:14px}.grade-guide li,.grade-guide p{font-size:12px}
/* Cards keep a consistent navy base; each grade is expressed through subtle light. */
.customer-ui .my-pass[data-grade]{background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--tier-glow) 24%,transparent),transparent 66%),linear-gradient(125deg,#1b2230,#293343);border-color:color-mix(in srgb,var(--tier-edge) 35%,#263140)}
html[data-appearance=dark] .grade-refined{background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--tier-glow) 9%,transparent),transparent 60%),#1b2533;box-shadow:0 16px 40px -28px #0008,inset 0 1px 0 #ffffff0a}
html[data-appearance=dark] .grade-seal{background:#3a352d;border-color:#746448}
html[data-appearance=dark] .grade-seal svg{stroke:#d7bd89}
html[data-appearance=dark] .grade-refined-progress progress::-webkit-progress-bar{background:#344153}
@media(max-width:400px){.grade-refined{padding:23px 20px}.grade-refined-top h2{font-size:31px}.grade-refined-progress .my-next strong{font-size:23px}.grade-seal{width:54px;height:60px}.grade-refined-top{gap:12px}}

/* Final rhythm and current-tier emphasis. */
.grade-comparison dl{margin-top:18px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--my-surface,#fff)}
.grade-comparison dl>div{padding:17px 18px;min-height:64px}
.grade-comparison dl>div[aria-current]{background:color-mix(in srgb,var(--accent) 38%,var(--my-surface,#fff));box-shadow:inset 3px 0 0 #8a99ae}
.grade-current-label{font-size:9px;font-weight:600;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:3px 5px;white-space:nowrap}
.grade-comparison dt{gap:8px}.grade-comparison dd{font-variant-numeric:tabular-nums;font-weight:500}
.grade-guide summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;min-height:44px;font-size:13px;font-weight:600;color:var(--muted)}
.grade-guide summary::-webkit-details-marker{display:none}.grade-guide summary:after{content:'+';font-size:20px;font-weight:400}.grade-guide details[open] summary:after{content:'−'}
.grade-guide summary:focus-visible{outline:2px solid #8398b5;outline-offset:3px;border-radius:5px}
html[data-appearance=dark] .grade-comparison dl>div[aria-current]{background:#253347;box-shadow:inset 3px 0 0 #a5b7cf}
@media(max-width:400px){.grade-comparison dl>div{padding:14px 12px}.grade-comparison dt{font-size:11px;gap:6px}.grade-comparison dd{font-size:11px}.grade-current-label{font-size:8px;padding:2px 3px}.grade-seal{width:54px;height:54px}}

.customer-ui .auth-tabs{display:flex;border-bottom:1px solid var(--line);gap:20px;padding:0;margin-bottom:24px}
.customer-ui .auth-tabs button,.customer-ui .auth-tabs .auth-current{flex:1;text-align:center;padding:12px 8px;font-size:14px;border:0;border-radius:0;min-height:44px;background:transparent;color:var(--muted);font-weight:600}
.customer-ui .auth-tabs .auth-current{border-bottom:2px solid var(--ink);color:var(--ink)}

/* Benefit eligibility uses the existing server-owned minimum grade. */
.customer-ui .benefit-grade-badge{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;width:fit-content;padding:3px 8px;border:1px solid #dce3eb;border-radius:6px;background:#edf1f6;color:#33445b;font-size:11px;font-weight:650;line-height:1.5;letter-spacing:.02em}
html[data-appearance=dark] .customer-ui .benefit-grade-badge{background:#293546;border-color:#46556a;color:#e0e8f4}

.customer-ui .benefit-copy>.benefit-state-label{font-size:12px;font-weight:700;color:#245b48}
.customer-ui .benefit-row[data-benefit-state="ended"] .benefit-thumb,.customer-ui .benefit-row[data-benefit-state="used"] .benefit-thumb{filter:grayscale(1);opacity:.65}
.customer-ui .benefit-row[data-benefit-state="ended"],.customer-ui .benefit-row[data-benefit-state="used"]{background:#f0f2f5;box-shadow:none}
.customer-ui .benefit-row:not([data-benefit-state="available"]) .benefit-state-label{color:#586477}
html[data-appearance="dark"] .customer-ui .benefit-row[data-benefit-state="ended"],html[data-appearance="dark"] .customer-ui .benefit-row[data-benefit-state="used"]{background:#202733}
html[data-appearance="dark"] .customer-ui .benefit-copy>.benefit-state-label{color:#9cdec2}
html[data-appearance="dark"] .customer-ui .benefit-row:not([data-benefit-state="available"]) .benefit-state-label{color:#b5c1d1}
