@font-face{font-family:Canela;src:url('/fonts/CanelaLCG-NormalThin.ttf') format('truetype');font-weight:100;font-style:normal;font-display:swap}
@font-face{font-family:Canela;src:url('/fonts/CanelaLCG-TextLight.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:Canela;src:url('/fonts/CanelaLCG-TextMedium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Canela Condensed';src:url('/fonts/CanelaLCG-CondensedThinItalic.ttf') format('truetype');font-weight:100;font-style:italic;font-display:swap}
:root {
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-synthesis:none;font-weight:400;color-scheme:light dark;
  --brand-sun:#f16138;--brand-milk:#fff5e5;--brand-night:#3d162f;
  --brand-sand:#f4e1bb;--brand-water:#d7e9ea;--brand-flower:#ffd1d1;
  --page:#f3f4f6;--surface:#fff;--ink:var(--brand-night);--muted:#6e6873;
  --line:#ececf0;--accent:var(--brand-sun);--card-ink:var(--brand-night);
  --glass:#ffffffef;--shadow:0 8px 30px #2520330b;
  --safe-top:0px;--safe-bottom:0px;
  background:var(--page);color:var(--ink);
}
:root[data-theme=dark]{--page:var(--brand-night);--surface:#4b263f;--ink:var(--brand-milk);--muted:#ddc9d4;--line:#6a4b5f;--glass:#4b263ff2;--shadow:0 8px 30px #18091330;color-scheme:dark}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--page:var(--brand-night);--surface:#4b263f;--ink:var(--brand-milk);--muted:#ddc9d4;--line:#6a4b5f;--glass:#4b263ff2;--shadow:0 8px 30px #18091330}}
*{box-sizing:border-box}
html{scrollbar-width:none}
body{margin:0}
button,a,input{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default;opacity:.42}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #1670dc;outline-offset:4px}
[hidden]{display:none!important}
main{max-width:440px;margin:auto;padding:calc(24px + max(env(safe-area-inset-top,0px),var(--safe-top))) 20px calc(14px + max(env(safe-area-inset-bottom,0px),var(--safe-bottom)))}
header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
header h1{font-size:31px;line-height:1.15;letter-spacing:-1px;margin:0;font-weight:700}
header p{font-size:13px;line-height:1.5;color:var(--muted);margin:5px 0 0}
body[data-demo=true] #greeting{display:none}
.icon-button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:transparent}
.icon-button img{width:24px;height:24px}
.glass{background:var(--glass);border:1px solid #ffffff70;box-shadow:var(--shadow)}
.loyalty-card{position:relative;overflow:hidden;border-radius:28px;min-height:200px;width:100%;background:var(--accent);color:var(--card-ink)}
.card-logo{position:absolute;top:20px;left:24px;width:98px;height:auto}

.balance-block{position:relative;padding:76px 24px 18px}
.balance-block>span{font-size:13px;font-weight:500;line-height:1.5}
.balance{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin-top:8px}
.balance strong{font-size:clamp(40px,12vw,48px);font-weight:650;line-height:1;letter-spacing:-1.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%}
.balance span{font-size:14px;font-weight:500}
.balance-block p{font-size:12px;line-height:1.5;margin:12px 0 0}
.qr-panel{background:var(--surface);border-radius:28px;margin-top:20px;padding:12px 20px 0}
.qr-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.qr-heading h2{font-size:20px;line-height:1.3;letter-spacing:-.45px;margin:0;font-weight:650}
.qr-heading .icon-button{opacity:.65}
.qr-area{text-align:center;padding:4px 0 16px}
.qr-area>img{display:block;width:222px;max-width:100%;aspect-ratio:1;margin:0 auto 8px;background:#fff;border-radius:12px}
.qr-hint{font-size:14px;line-height:1.5;color:var(--muted);margin:0}
.qr-area #card-number{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 0;overflow-wrap:anywhere}
.sync{display:flex;align-items:center;gap:8px;padding:13px 0;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.4}
.status-dot{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#448f3b}
.sync[data-stale=true] .status-dot{background:#a36511}
.toolbar-space{position:sticky;bottom:calc(12px + max(env(safe-area-inset-bottom,0px),var(--safe-bottom)));z-index:2;padding-top:16px}
.toolbar{display:grid;grid-template-columns:1.12fr 1fr;min-height:64px;border-radius:36px;padding:8px 5px;isolation:isolate}
.toolbar button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;background:transparent;border:0;padding:9px 8px;font-size:14px;font-weight:600;border-radius:28px;line-height:1.4}
.toolbar button span{white-space:nowrap}
.toolbar button+button{border-left:1px solid var(--line);border-top-left-radius:0;border-bottom-left-radius:0}
.toolbar img{height:24px;width:24px;flex:0 0 auto}
.toolbar button:hover:not(:disabled){background:#7771}
.toolbar button:active:not(:disabled){background:#7772}
.demo-note{font-size:11px;line-height:1.5;text-align:center;color:var(--muted);margin:12px 0 0}
@supports(backdrop-filter:blur(20px)){.glass{background:color-mix(in srgb,var(--surface) 82%,transparent);backdrop-filter:blur(24px) saturate(140%);-webkit-backdrop-filter:blur(24px) saturate(140%)}}
:root[data-theme=dark] .icon-button img,:root[data-theme=dark] .toolbar img{filter:invert(1)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .icon-button img,:root:not([data-theme=light]) .toolbar img{filter:invert(1)}}
h2{font-size:24px;line-height:1.25;letter-spacing:-.5px}
p{font-size:16px;line-height:1.55}
.panel{padding:20px 4px;min-height:280px}
.panel h1{font-size:32px;line-height:1.12;letter-spacing:-.8px;font-weight:650}
.loading{display:grid;place-content:center;text-align:center}
.hero{background:var(--brand-water);border-radius:28px;padding:26px 24px 148px;position:relative;overflow:hidden}
.welcome-logo{display:block;width:106px;height:auto;margin-bottom:30px}
.hero h2{font-family:Canela,Georgia,serif;font-size:38px;line-height:1.05;letter-spacing:-.6px;font-weight:100;margin:0}
.hero em{font-family:'Canela Condensed',Canela,serif;font-weight:100;font-style:italic}
.hero-oasis{position:absolute;bottom:22px;right:24px;width:144px;height:auto}
.pill,.section-label{font-size:12px;font-weight:600;color:var(--muted)}
.intro{margin-top:28px}
.intro h2{font-size:22px;font-weight:650;margin-bottom:10px}
.intro p{color:var(--muted);margin-top:0}
.steps{display:grid;gap:15px;margin:26px 0}
.steps span{display:flex;gap:14px;align-items:center;font-size:14px}
.steps b{color:var(--muted);font-size:12px;font-weight:500}
.consent{display:flex;align-items:flex-start;gap:12px;font-size:13px;line-height:1.6;margin:28px 0 20px;min-height:44px}
.consent input{width:23px;height:23px;flex-shrink:0;accent-color:var(--brand-night);margin:0}
.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:54px;padding:15px 18px;border:0;border-radius:18px;text-decoration:none;font-size:16px;font-weight:600}
.primary{background:var(--ink);color:var(--surface)}
.secondary{background:var(--surface);color:var(--ink);margin-top:12px}
.muted{color:var(--muted);font-size:13px}
.center{text-align:center}
.notice{background:var(--brand-sand);color:var(--brand-night);border:1px solid #d4bc99;border-radius:18px;padding:16px;font-size:14px;line-height:1.5;margin-top:20px}
.error{background:var(--brand-flower);color:var(--brand-night);border-color:#e7b9c1}
dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:30px;padding:22px;width:min(100% - 24px,422px);max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 20px 60px #0003}
dialog::backdrop{background:#160d175c;backdrop-filter:blur(10px)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}
.dialog-heading h2{margin:0;font-size:22px;font-weight:650}
.large-qr{width:100%;display:block;aspect-ratio:1;background:#fff;border-radius:16px}
body:has(dialog[open]){overflow:hidden}
dialog p{overflow-wrap:anywhere}
@media(max-width:350px){main{padding-left:16px;padding-right:16px;padding-top:24px}header h1{font-size:29px}.balance-block{padding-left:20px;padding-right:20px}.card-logo{left:20px}.balance span{font-size:13px}.qr-panel{padding-left:16px;padding-right:16px}.toolbar button{gap:6px;font-size:12px;padding-left:6px;padding-right:6px}.toolbar img{width:22px;height:22px}.qr-hint{font-size:13px}}
@media(prefers-reduced-transparency:reduce){.glass{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}dialog::backdrop{backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
@media(prefers-contrast:more){.glass{border-color:var(--ink)}.qr-panel{border:1px solid var(--muted)}}

/* Approved six-screen composition. Content stays opaque; only navigation floats. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
main{max-width:430px;padding:calc(25px + max(env(safe-area-inset-top,0px),var(--safe-top))) 20px calc(28px + max(env(safe-area-inset-bottom,0px),var(--safe-bottom)))}
body.linked main{padding-bottom:calc(116px + max(env(safe-area-inset-bottom,0px),var(--safe-bottom)))}
header{gap:8px;margin-bottom:20px}header>div{flex:1}header h1{font-size:30px;letter-spacing:-1.05px}header #demo{font-size:10px;line-height:1.3;margin-top:6px}header #greeting{font-size:12px}
.loyalty-card{min-height:0;border-radius:25px}.card-logo{width:125px;top:20px;left:22px}
.balance-block{padding:91px 22px 15px}.balance-block>span{font-size:14px}.balance{display:block;margin-top:10px}.balance strong{display:block;font-size:clamp(39px,11.9vw,48px);letter-spacing:-1.6px;line-height:1.08}.balance span{display:block;font-size:17px;margin-top:2px;font-weight:600}.balance-block p{margin:12px 0 0;font-size:13px}
.level-link{display:flex;align-items:center;gap:10px;margin:0 22px;width:calc(100% - 44px);padding:14px 0 15px;background:none;border:0;border-top:1px solid #3d162f45;text-align:left;color:var(--brand-night);font-size:13px;min-height:65px}.level-link>span:first-child{flex:1}.level-link b{display:block;font-size:20px;margin-top:2px}.level-link img{width:17px;height:20px}
.qr-panel{position:relative;margin-top:14px;padding:15px 20px 0;border-radius:25px}.qr-heading{position:absolute;right:10px;top:9px;z-index:1}.qr-heading .icon-button{background:var(--page);border-radius:13px;width:40px;min-width:40px;height:40px;padding:9px;opacity:1}.qr-area{padding:0 0 11px}.qr-area>img{width:198px;margin-bottom:5px}.qr-hint{font-size:14px;max-width:210px;margin:auto;color:var(--ink)}.qr-area #card-number{font-size:10px;margin-top:5px}.sync{font-size:10px;padding:9px 0}.toolbar-space{position:static;padding-top:5px}.toolbar{background:none!important;border:0;box-shadow:none;backdrop-filter:none!important;min-height:44px;padding:0;grid-template-columns:1fr}.toolbar #expand-qr{display:none}.toolbar #refresh{border:0;border-radius:20px;font-size:12px;min-height:44px;padding:8px}.toolbar img{width:17px;height:17px}.demo-note{font-size:10px;margin-top:6px}.primary{background:var(--brand-sun);color:var(--brand-night)}
.tabbar{position:fixed;bottom:calc(12px + max(env(safe-area-inset-bottom,0px),var(--safe-bottom)));left:50%;transform:translateX(-50%);width:calc(100% - 24px);max-width:406px;display:flex;justify-content:space-around;padding:5px;border-radius:32px;z-index:10;min-height:66px;box-shadow:0 5px 25px #3d162f14;border:1px solid var(--line)}
.tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:1;min-width:0;min-height:54px;border:0;border-radius:27px;background:transparent;color:var(--muted);font-size:10px}.tabbar img{width:23px;height:23px}.tabbar [aria-current=page]{background:#f1613814;color:#a93516}.tabbar [aria-current=page] img{filter:invert(40%) sepia(88%) saturate(1850%) hue-rotate(340deg) brightness(94%)}
.chips{display:flex;gap:8px;margin:10px 0 14px;overflow:auto;padding:2px 0;scrollbar-width:none}.chips button{border:0;border-radius:24px;background:color-mix(in srgb,var(--ink) 6%,var(--page));color:var(--ink);padding:10px 15px;min-height:44px;white-space:nowrap;font-size:13px}.chips button[aria-pressed=true]{background:var(--accent);color:var(--brand-night);font-weight:600}
.location{display:flex;align-items:center;gap:8px;background:var(--surface);border:0;border-radius:24px;min-height:44px;width:100%;padding:8px 12px;font-size:13px}.location span{flex:1;text-align:left}.location img{width:20px;height:20px}.location img:last-child{width:16px}.search{display:flex;align-items:center;gap:8px;margin-top:12px;border-radius:18px;background:color-mix(in srgb,var(--ink) 5%,var(--page));padding:0 12px}.search img{width:19px;height:19px}.search input{font:inherit;font-size:13px;min-width:0;width:100%;min-height:44px;background:none;color:var(--ink);border:0}.search input::placeholder{color:var(--muted)}
.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 13px}.product{min-width:0}.product-open{border:0;background:none;padding:0;display:block;text-align:left;width:100%}.product-open>img{width:100%;aspect-ratio:1.28;object-fit:cover;border-radius:15px;display:block;margin-bottom:7px}.product strong{display:block;font-size:14px;line-height:1.2}.product-open>span{display:block;font-size:12px;line-height:1.25;color:var(--muted);margin-top:4px;min-height:32px}.product-footer{display:flex;align-items:center;justify-content:space-between;gap:4px}.product-footer b{font-size:17px}.add-button{border:0;background:#f161381c;color:var(--ink);border-radius:50%;min-width:44px;width:44px;height:44px;display:grid;place-items:center}.add-button img{width:20px;height:20px}.basket{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(91px + max(env(safe-area-inset-bottom,0px),var(--safe-bottom)));width:calc(100% - 40px);max-width:390px;display:flex;align-items:center;gap:12px;min-height:52px;border:0;background:var(--accent);color:var(--brand-night);padding:10px 18px;border-radius:28px;z-index:9;font-size:16px}.basket span{flex:1;text-align:left}.basket b{border-radius:50%;background:var(--brand-milk);padding:5px 9px;font-size:14px}.basket img{width:18px;height:18px}body:has(#basket:not([hidden])) #menu-page{padding-bottom:58px}
.tier{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:22px;border-radius:22px;color:var(--brand-night)}.current-tier{background:var(--brand-sand)}.next-tier{background:var(--surface);color:var(--ink);margin-top:14px}.tier p{font-size:13px;margin:0 0 5px;color:inherit;opacity:.78}.tier h2{font-size:30px;margin:0 0 5px}.tier b{font-size:20px}.tier-badge{background:#f161383b;width:72px;height:72px;border-radius:50%;display:grid;place-items:center;font-size:23px;font-weight:650;flex-shrink:0}.next-tier .tier-badge{background:#7771}.progress-block{padding:10px 10px 40px}.progress-block>p{font-size:17px;margin:14px 0 8px}.progress-block>p.muted{font-size:13px}.progress-block progress{display:block;appearance:none;width:100%;height:14px;border:0;border-radius:12px;overflow:hidden;background:var(--line)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--accent);border-radius:12px}progress::-moz-progress-bar{background:var(--accent);border-radius:12px}
.offer{position:relative;overflow:hidden;border-radius:22px;margin-bottom:18px;background:var(--brand-flower);color:var(--brand-night);padding:20px 18px 14px}.offer.water{background:var(--brand-water)}.offer-copy{position:relative;z-index:1;max-width:80%;min-height:144px}.offer h2{font:100 40px/.99 Canela,Georgia,serif;letter-spacing:-1px;margin:0 0 12px;max-width:225px}.offer p{font-size:15px;line-height:1.3;max-width:210px;margin:0}.offer>img{display:block;width:calc(100% + 36px);margin:0 -18px -7px;aspect-ratio:1.65;object-fit:cover}.offer-button{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;background:var(--accent);color:var(--brand-night);border:0;border-radius:26px;padding:10px 20px;font-size:17px}.offer-button img{width:20px;height:20px}.offer.water h2{font-size:31px}.offer.water .offer-copy{min-height:95px}
.date-group>h2{font-size:14px;font-weight:500;margin:23px 4px 12px;letter-spacing:0}.history-group{background:color-mix(in srgb,var(--surface) 65%,transparent);border-radius:20px;padding:0 10px}.purchase{display:flex;align-items:center;gap:10px;padding:14px 0;width:100%;background:none;border:0;text-align:left}.purchase+.purchase{border-top:1px solid var(--line)}.purchase>img:first-child{width:53px;height:61px;object-fit:cover;border-radius:10px}.purchase-copy{flex:1;min-width:0}.purchase b{font-size:14px;display:block}.purchase small{font-size:12px;line-height:1.35;display:block;color:var(--muted);margin-top:4px}.purchase-value{text-align:right}.purchase-value .earned{color:#00805a}.purchase>img:last-child{width:12px;height:18px}.profile-identity{display:flex;align-items:center;gap:16px;width:100%;border:0;background:none;text-align:left;padding:10px 0 24px}.profile-identity>span:nth-child(2){flex:1;min-width:0}.profile-identity b{font-size:21px;overflow-wrap:anywhere}.profile-identity small{display:block;font-size:12px;margin-top:7px;color:var(--muted)}.profile-identity>img{width:18px}.avatar{width:86px;height:86px;background:var(--brand-flower);border-radius:50%;display:grid;place-items:center;flex-shrink:0}.avatar img{width:45px;height:45px}.settings-group{background:var(--surface);border-radius:23px;padding:0 17px;margin:0 0 20px}.settings-row{display:flex;gap:15px;align-items:center;width:100%;background:none;border:0;padding:17px 0;min-height:72px;text-align:left;font-size:15px}.settings-row+.settings-row{border-top:1px solid var(--line)}.settings-row>img{width:26px;height:26px}.settings-row>img:last-child{width:15px;height:18px}.settings-row>span{flex:1}.settings-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.empty-state{padding:55px 18px;text-align:center}.empty-state>img{width:40px;height:40px;opacity:.6}.empty-state h2{font-size:23px}.empty-state p{font-size:15px;color:var(--muted)}.detail-photo{display:block;width:100%;max-height:300px;object-fit:cover;border-radius:20px}.cart-row{display:flex;gap:10px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.cart-row>img{width:48px;height:55px;object-fit:cover;border-radius:10px}.cart-row>div:nth-child(2){flex:1}.cart-row b{font-size:13px}.cart-row p{font-size:12px;margin:5px 0}.stepper{display:flex;align-items:center;gap:4px}.stepper button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--page)}.stepper img{width:18px;height:18px}.cart-total{display:flex;justify-content:space-between}
:root[data-theme=dark] .tabbar img,:root[data-theme=dark] .settings-row img,:root[data-theme=dark] .location img,:root[data-theme=dark] .search img,:root[data-theme=dark] .purchase>img:last-child,:root[data-theme=dark] .empty-state>img,:root[data-theme=dark] .stepper img,:root[data-theme=dark] .add-button img,:root[data-theme=dark] .profile-identity>img{filter:invert(1)}
:root[data-theme=dark] .tabbar [aria-current=page]{color:var(--brand-milk);background:#f1613830}:root[data-theme=dark] .earned{color:#80dfb5}
.toolbar-space{display:none}.sync{padding:0;min-height:44px}.sync #updated{flex:1}.sync #refresh{display:flex;align-items:center;gap:5px;border:0;background:none;min-height:44px;font-size:11px;padding:5px 0 5px 10px}.sync #refresh img{width:16px;height:16px}.linked #demo-note{display:none}
:root[data-theme=light] .qr-panel,:root[data-theme=light] .settings-group,:root[data-theme=light] .next-tier{border:1px solid var(--line);box-shadow:0 5px 24px #25203304}
:root[data-theme=light] .current-tier{background:#fff3eb}
:root[data-theme=light] .chips button:not([aria-pressed=true]),:root[data-theme=light] .search{background:#f5f5f7}
:root[data-theme=light] .history-group{background:#fafafb}
:root[data-theme=light] .location{background:#f7f7f9}
:root[data-theme=light] .hero{background:#edf5f5}
:root[data-theme=light] .offer.flower{background:#ffe5e5}
:root[data-theme=light] .offer.water{background:#eaf4f5}
header h1{font-size:32px}.product strong{font-size:16px}.product-open>span{font-size:13px;min-height:36px}.product-footer b{font-size:19px}.settings-row{font-size:17px;min-height:80px}.purchase b{font-size:16px}.purchase small{font-size:13px}.purchase>img:first-child{width:56px;height:66px}.date-group>h2{font-size:16px}.purchase{padding:16px 0}.progress-block>p{font-size:20px}.tabbar button{font-size:11px}.offer p{font-size:16px}.chips button{font-size:14px}
header:has(#back-screen:not([hidden])) h1{font-size:22px;text-align:center}header:has(#back-screen:not([hidden])) #demo{text-align:center}
:root[data-theme=dark] .sync #refresh img{filter:invert(1)}
@media(max-width:350px){main{padding-left:16px;padding-right:16px}.balance-block{padding-top:85px}.balance strong{font-size:39px}.level-link{font-size:12px}.level-link b{font-size:18px}.qr-area>img{width:180px}.tabbar button{font-size:9px}.product-grid{gap:15px 10px}.product-footer b{font-size:16px}.purchase{gap:6px}.purchase>img:first-child{width:40px;height:50px}.purchase b{font-size:12px}.purchase small{font-size:10px}.cart-row{gap:6px}.cart-row>img{width:36px}.stepper{gap:0}.stepper button{width:44px}.tier{padding:18px}.tier b{font-size:18px}.offer h2{font-size:36px}}

/* Shared surface hierarchy: cool canvas, opaque content, floating controls. */
:root {
  --edge:#e2e3e9;
  --field:#ffffff;
  --pressed:#eeeff3;
  --warm:#ffede4;
  --elevation:0 2px 4px #271a3003,0 8px 24px #271a3005;
}
:root[data-theme=dark] {
  --edge:#725368;
  --field:#553148;
  --pressed:#654259;
  --warm:#6a3a3a;
  --elevation:0 8px 24px #160c2018;
}
header {align-items:center;margin-bottom:22px}
header h1 {line-height:1.12;letter-spacing:-1px}
.brand-line {display:flex;align-items:center;gap:10px;min-height:25px;margin-top:7px}
.brand-mark {width:61px;height:24px;object-fit:contain;flex-shrink:0}
header #demo {font-size:11px;line-height:1.4;margin:0;color:var(--muted)}
body[data-screen=card] .brand-mark {display:none}
body[data-screen=card] .brand-line {min-height:18px;margin-top:5px}
body[data-screen=card] header {margin-bottom:18px}
body:not(.linked) .brand-mark {display:none}
header #help {border:1px solid var(--edge);background:var(--surface);box-shadow:var(--elevation)}
header #back-screen {background:var(--surface);border:1px solid var(--edge)}
:root[data-theme=dark] .brand-mark {filter:brightness(0) invert(.96)}
.loyalty-card {box-shadow:0 10px 24px #f1613819;border:1px solid #ffffff33}
.balance-block>span,.balance-block p {font-weight:500}
.balance-block {padding-top:80px}
.level-link {border-top-color:#3d162f35;padding-top:12px;padding-bottom:13px}
.level-link:hover {background:#ffffff10}
.qr-panel,.settings-group,.next-tier,.product,.history-group,.profile-identity {
  border:1px solid var(--edge);box-shadow:var(--elevation);
}
:root[data-theme=light] .qr-panel,:root[data-theme=light] .settings-group,:root[data-theme=light] .next-tier {
  border-color:var(--edge);box-shadow:var(--elevation);
}
.qr-panel {padding-top:14px}
.qr-area {padding-bottom:8px}
.qr-heading .icon-button {border:1px solid var(--edge);background:var(--surface)}
.qr-area #card-number {font-size:11px}
.sync {font-size:11px;gap:6px}
.sync #refresh {font-size:12px;font-weight:550}
.qr-hint {font-size:15px;font-weight:500;line-height:1.4}
.tabbar {border:1px solid var(--edge);box-shadow:0 2px 5px #25172b06,0 12px 32px #25172b12;padding:5px 6px}
.tabbar button {font-weight:500;transition:background-color .16s ease,color .16s ease}
.tabbar [aria-current=page] {background:var(--warm);color:#923514;font-weight:650}
:root[data-theme=dark] .tabbar [aria-current=page] {background:var(--warm);color:#fff5e5}
.chips {gap:8px;padding:3px 1px;margin:13px 0 16px}
.chips button {border:1px solid var(--edge);font-size:13px;font-weight:500;min-height:44px;padding:10px 15px;transition:background-color .16s ease,border-color .16s ease}
:root[data-theme=light] .chips button:not([aria-pressed=true]),:root[data-theme=dark] .chips button:not([aria-pressed=true]) {background:var(--surface)}
.chips button[aria-pressed=true] {border-color:#bd4524;box-shadow:0 3px 8px #f1613818}
.search,:root[data-theme=light] .search {background:var(--field);border:1px solid var(--edge);border-radius:16px}
.search {margin-top:11px;transition:border-color .16s ease,box-shadow .16s ease}
.search:focus-within {border-color:var(--accent);box-shadow:0 0 0 3px #f1613820}
.search input {min-height:48px;font-size:14px}
.location,:root[data-theme=light] .location {background:var(--surface);border:1px solid var(--edge);border-radius:16px;min-height:48px;font-size:14px;font-weight:500}
.product-grid {gap:13px}
.product {background:var(--surface);padding:8px;border-radius:23px;display:flex;flex-direction:column;min-width:0}
.product-open {flex:1;border-radius:16px}
.product-open>img {aspect-ratio:1.15;border-radius:16px;margin-bottom:11px}
.product strong {font-size:16px;line-height:1.25;padding:0 4px;letter-spacing:-.25px}
.product-open>span {font-size:13px;line-height:1.35;padding:0 4px;margin-top:5px;min-height:52px}
.product-footer {padding:5px 2px 0 4px;gap:0}
.product-footer b {font-size:18px;font-weight:650;letter-spacing:-.4px}
.add-button {background:var(--warm);border:1px solid #f1613830;color:var(--ink);font-weight:600}
.add-button:active {background:var(--accent)}
.basket {border:1px solid #bd4524;box-shadow:0 7px 22px #96331525;font-weight:600}
.tier {padding:24px;border-radius:25px;border:1px solid var(--edge)}
:root[data-theme=light] .current-tier {background:#fff0e6;border-color:#f0d8ca}
.tier p {font-size:13px;font-weight:500;opacity:1}
.tier-badge {border:1px solid #f1613830;background:#ffd4be;font-size:24px;color:var(--brand-night)}
.next-tier .tier-badge {background:var(--page);border-color:var(--edge);color:var(--ink)}
.progress-block {padding:12px 6px 28px}
.progress-block progress {height:12px;background:var(--edge)}
.progress-block .muted {line-height:1.5}
.settings-group {padding:0 16px;overflow:hidden;margin-bottom:18px}
.settings-row {gap:12px;min-height:78px;font-size:16px;font-weight:500;padding:15px 0;line-height:1.35}
.settings-row small {font-size:12px;font-weight:400;line-height:1.35;margin-top:3px}
.settings-row .row-icon {flex:0 0 37px;width:37px;height:37px;display:grid;place-items:center;border-radius:12px;background:var(--warm)}
.row-icon img {width:23px;height:23px}
.settings-row .row-label {flex:1;min-width:0}
.settings-row>img:last-child {opacity:.5;width:14px;flex-shrink:0}
.settings-row[data-action=help] .row-icon {background:#e7f1f2}
.settings-row[data-action=notifications] .row-icon {background:#ffe5e8}
:root[data-theme=dark] .row-icon img {filter:none}
:root[data-theme=dark] .row-icon {background:#ffdbca}
:root[data-theme=dark] .settings-row[data-action=help] .row-icon {background:#c7e1e3}
:root[data-theme=dark] .settings-row[data-action=notifications] .row-icon {background:#ffd1d1}
:root[data-theme=dark] .settings-row>img:last-child,:root[data-theme=dark] .purchase>img:last-child,:root[data-theme=dark] .profile-identity>img {opacity:.8}
.profile-identity {background:var(--surface);padding:21px 17px;border-radius:26px;margin:0 0 24px;gap:14px}
.profile-identity b {font-size:23px;font-weight:650;letter-spacing:-.5px}
.profile-identity small {font-size:12px;line-height:1.45}
.avatar {width:66px;height:66px;background:#ffe4d5;border:1px solid #f1613820}
.avatar img {width:35px;height:35px}
.profile-identity>img {opacity:.5;width:14px}
.date-group>h2 {font-size:14px;font-weight:550;line-height:1.5;color:var(--muted);margin:24px 6px 10px}
.history-group,:root[data-theme=light] .history-group {background:var(--surface);border-radius:24px;padding:0 12px}
.purchase {gap:10px;padding:17px 0;border-radius:0}
.purchase>img:first-child {width:50px;height:59px;flex-shrink:0;border-radius:12px}
.purchase b {font-size:15px;font-weight:650;line-height:1.3}
.purchase small {font-size:12px;line-height:1.45;color:var(--muted)}
.purchase-value {max-width:43%;flex-shrink:0;font-variant-numeric:tabular-nums}
.purchase-value .earned {color:#007653}
.purchase>img:last-child {opacity:.5;flex-shrink:0}
.offer {border:1px solid #e9ced0;border-radius:27px;padding:22px 14px 14px;box-shadow:var(--elevation)}
.offer.water {border-color:#c8dfe2}
.offer-copy {padding:0 8px;max-width:100%;min-height:166px}
.offer-eyebrow {display:block;font:600 11px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:.7px;text-transform:uppercase;margin-bottom:14px}
.offer h2 {font-size:39px;max-width:240px;margin-bottom:12px}
.offer p {font-size:16px;line-height:1.4;max-width:250px}
.offer>img {width:100%;margin:4px 0 12px;border-radius:17px;aspect-ratio:1.6}
.offer-button {border:1px solid #bd4524;font-size:16px;font-weight:600;min-height:52px}
.offer.water .offer-copy {min-height:150px}
.empty-state {border:1px solid var(--edge);border-radius:26px;background:var(--surface);margin-top:14px;padding:44px 22px;box-shadow:var(--elevation)}
.empty-state h2 {font-size:22px;line-height:1.25}
.empty-state p {font-size:15px;line-height:1.55}
.product-grid>.empty-state {grid-column:1/-1}
dialog {border-color:var(--edge);box-shadow:0 20px 70px #25172b26}
.dialog-heading h2 {letter-spacing:-.6px}
.dialog-heading .icon-button {background:var(--page);border:1px solid var(--edge)}
.primary {border:1px solid #bd4524}
button:active:not(:disabled) {filter:brightness(.97)}
@media(hover:hover) { .settings-row:hover,.purchase:hover {background:color-mix(in srgb,var(--accent) 4%,var(--surface))} }
@media(max-width:350px) {
  main {padding-left:14px;padding-right:14px}
  header h1 {font-size:29px}.brand-mark {width:55px}header #demo {font-size:10px}
  .product-grid {gap:10px}.product {padding:6px;border-radius:20px}
  .product strong {font-size:14px}.product-open>span {font-size:12px;min-height:52px}
  .product-footer {padding-left:2px}.product-footer b {font-size:16px}
  .purchase {gap:7px}.purchase>img:first-child {width:37px;height:47px}
  .purchase b {font-size:14px}.purchase small {font-size:11px}
  .purchase>img:last-child {width:10px}.history-group {padding:0 10px}
  .settings-row {font-size:15px;gap:9px}.tier {padding:20px}
  .offer h2 {font-size:36px}.profile-identity {padding:19px 14px}
}
@media(prefers-reduced-motion:reduce) { .tabbar button,.chips button,.search {transition:none} }
@media(prefers-contrast:more) { .product,.history-group,.settings-group,.profile-identity,.chips button,.search,.location {border-color:var(--muted)} }

/* Card-first home: one compact card, progress, and a single large QR target. */
body.linked header {display:none}
body.linked main {padding-top:calc(18px + max(env(safe-area-inset-top,0px),var(--safe-top)))}
body.linked[data-screen=card] main {
  min-height:100dvh;display:flex;flex-direction:column;
  padding-top:calc(18px + max(env(safe-area-inset-top,0px),var(--safe-top)));
  padding-bottom:calc(96px + max(env(safe-area-inset-bottom,0px),var(--safe-bottom)));
}
body[data-screen=card] #card-page {display:flex;flex:1;flex-direction:column;gap:12px}
body[data-screen=card] .loyalty-card {height:176px;min-height:176px;flex-shrink:0;border-radius:23px;overflow:hidden;box-shadow:0 7px 18px #f1613812}
body[data-screen=card] .card-logo {width:80px;top:18px;left:20px}
body[data-screen=card] .balance-block {position:absolute;left:20px;bottom:20px;padding:0;max-width:calc(100% - 130px)}
body[data-screen=card] .balance-block>span {font-size:12px;line-height:1.4}
body[data-screen=card] .balance {display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;margin-top:4px}
body[data-screen=card] .balance strong {font-size:37px;line-height:1.1;letter-spacing:-1.4px}
body[data-screen=card] .balance span {display:inline;font-size:11px;margin:0;font-weight:500}
body[data-screen=card] .level-link {position:absolute;right:16px;top:12px;bottom:20px;width:112px;margin:0;padding:0;border:0;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:4px;font-size:12px;line-height:1.4;text-align:right;border-radius:12px}
body[data-screen=card] .level-link:hover {background:transparent}
body[data-screen=card] .level-link .tier-cup {width:76px;height:88px;object-fit:contain;flex:0 0 auto}
.tier-cup[data-metal=bronze] {filter:sepia(.7) saturate(1.35) hue-rotate(345deg) brightness(.83)}
.tier-cup[data-metal=silver] {filter:saturate(.15) brightness(.92)}
.tier-cup[data-metal=gold] {filter:sepia(.85) saturate(1.6) hue-rotate(3deg) brightness(.98)}
.tier-cup[data-metal=platinum] {filter:saturate(.15) brightness(1.18) contrast(.9)}
.home-progress {display:flex;flex-direction:column;gap:9px;justify-content:center;min-height:48px;width:100%;padding:1px 3px;background:none;border:0;color:var(--muted);text-align:left;font-size:12px;line-height:1.4;flex-shrink:0;border-radius:8px}
.home-progress progress,.detail-progress {appearance:none;display:block;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;background:var(--edge)}
body[data-screen=card] .qr-panel {display:flex;flex-direction:column;flex:1;margin:0;padding:12px 16px 0;min-height:310px;border-radius:25px;box-shadow:0 4px 18px #271a3004}
.qr-open {position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:250px;width:100%;padding:10px 0 12px;border:0;border-radius:16px;background:none;color:var(--ink)}
.qr-open:disabled {opacity:1;cursor:default}
.qr-open #qr {display:block;width:min(74vw,280px);height:auto;aspect-ratio:1;background:#fff;border-radius:9px}
.qr-open #card-number {display:block;max-width:100%;overflow-wrap:anywhere;font-size:10px;color:var(--muted);font-weight:500;line-height:1.4}
.qr-expand-hint {position:absolute;right:0;top:0;display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:var(--page);border:1px solid var(--line)}
.qr-expand-hint img {width:16px;height:16px}
.qr-open:disabled .qr-expand-hint {opacity:.4}
body[data-screen=card] .sync {min-height:48px;gap:5px;border-top:1px solid var(--line);font-size:10px}
body[data-screen=card] .sync #refresh {font-size:11px;padding-left:7px}
body[data-screen=card] .sync #refresh img {width:15px;height:15px}
body[data-screen=card] .notice {margin-top:0}
.tier-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0 24px}
.tier-option {display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 2px 12px;border:1px solid var(--edge);border-radius:17px;background:var(--page);text-align:center}
.tier-option.is-current {background:var(--warm);border-color:var(--accent)}
.tier-option .tier-cup {width:54px;height:68px;object-fit:contain}
.tier-option b {font-size:18px;font-variant-numeric:tabular-nums}
.tier-option span {font-size:10px;line-height:1.3;overflow-wrap:anywhere;max-width:100%}
:root[data-theme=dark] .qr-expand-hint img {filter:invert(1)}
@media(max-width:350px) {
  body[data-screen=card] .balance strong {font-size:32px}
  body[data-screen=card] .balance-block {left:17px;max-width:calc(100% - 113px)}
  body[data-screen=card] .card-logo {left:17px}
  body[data-screen=card] .level-link {right:14px;width:98px;font-size:11px}
  .tier-option span {font-size:9px}
  .qr-open #qr {width:200px}
}
@media(max-height:650px) {
  body.linked[data-screen=card] main {padding-top:12px;padding-bottom:88px}
  body[data-screen=card] #card-page {gap:9px}
  body[data-screen=card] .loyalty-card {height:148px;min-height:148px}
  body[data-screen=card] .level-link .tier-cup {width:62px;height:67px}
  body[data-screen=card] .balance-block {bottom:15px}
  body[data-screen=card] .level-link {bottom:15px}
  body[data-screen=card] .home-progress {min-height:40px;gap:7px}
  body[data-screen=card] .qr-panel {min-height:245px;padding-top:8px}
  body[data-screen=card] .qr-open {min-height:190px;padding:4px 0}
  body[data-screen=card] .qr-open #qr {width:178px}
}

/* Shared finishing rules: one radius scale, quiet depth, readable orange actions. */
:root {
  --radius-card:24px;--radius-inset:16px;--radius-control:16px;--radius-pill:999px;
  --action-top:#f16138;--action-bottom:#e85732;
  --action-fill:linear-gradient(130deg,var(--action-top) 0%,var(--action-top) 80%,var(--action-bottom) 100%);
  --card-ink:#fff5e5;
}
body.linked main {padding-bottom:calc(110px + max(env(safe-area-inset-bottom,0px),var(--safe-bottom)))}
body[data-screen=card] .loyalty-card {
  border-radius:var(--radius-card);background:var(--action-fill);color:#fff;
  border:1px solid #ffffff24;box-shadow:0 5px 16px #b7442110;
}
body[data-screen=card] .balance-block,
body[data-screen=card] .level-link {color:#fff}
body[data-screen=card] .balance-block>span {color:#fff}
body[data-screen=card] .balance span {font-size:12px;color:#fff}
body[data-screen=card] .level-link {font-size:13px;font-weight:500}
body[data-screen=card] .qr-panel {border-radius:var(--radius-card)}
.qr-panel,.product,.profile-identity,.settings-group,.history-group,.empty-state {
  border-radius:var(--radius-card);box-shadow:0 2px 12px #21152403;
}
:root[data-theme=light] .product,:root[data-theme=light] .profile-identity,
:root[data-theme=light] .settings-group,:root[data-theme=light] .history-group,
:root[data-theme=light] .qr-panel {
  background:linear-gradient(145deg,#fff 55%,#fcfcfd);
  border-color:#e8e8ed;
}
.search,.location {border-radius:var(--radius-control)}
.search {margin-top:12px}
.search input {font-size:15px}
.location {padding:12px 14px}
.location img,.search>img {width:20px;height:20px;opacity:.7}
.location>img:last-child {width:14px;height:16px;opacity:.45}
.chips {margin:12px 0 16px;padding:0;gap:8px}
#offers-page>#offer-filters .chips,#history-page>#history-filters .chips {margin-top:0}
.chips button {border-radius:var(--radius-pill);min-height:44px;padding:10px 15px}
.chips button[aria-pressed=true],.primary,.offer-button,.basket {
  background:var(--action-fill);color:#fff;border-color:transparent;box-shadow:none;
}
.chips button[aria-pressed=true] {font-weight:600}
.primary,.secondary,.offer-button {border-radius:var(--radius-control)}
.offer-button img,.basket>img {filter:brightness(0) invert(1)}
.basket {border-radius:var(--radius-pill);min-height:54px}
.basket b {background:#ffffff20;color:#fff;min-width:30px;text-align:center}
.product-grid {gap:14px}
.product {padding:8px}
.product-open,.product-open>img {border-radius:var(--radius-inset)}
.product-open>img {margin-bottom:12px}
.product-open>span {min-height:48px;line-height:1.45}
.product-footer {padding:8px 2px 2px 4px}
.add-button {width:44px;height:44px;min-width:44px;border-radius:50%;background:var(--warm);border:0}
.add-button img {width:19px;height:19px;opacity:.8}
.add-button:active {background:var(--warm)}
.offer {border-radius:var(--radius-card);padding:20px 12px 12px;margin-bottom:20px}
:root[data-theme=light] .offer.flower {background:linear-gradient(145deg,#ffe8e6,#ffe2e0)}
:root[data-theme=light] .offer.water {background:linear-gradient(145deg,#edf6f6,#e4f0f1)}
.offer-copy,.offer.water .offer-copy {padding:0 8px;min-height:0}
.offer-eyebrow {letter-spacing:.6px;font-size:10px;margin-bottom:12px;opacity:.75}
.offer h2 {font-size:36px;line-height:1.05;margin-bottom:12px}
.offer.water h2 {font-size:34px}
.offer p {font-size:15px;line-height:1.5;max-width:280px}
.offer>img {border-radius:var(--radius-inset);margin:18px 0 12px;aspect-ratio:1.6}
.offer-button {min-height:50px;font-size:15px;padding:12px 16px}
.date-group>h2 {margin:24px 4px 10px;font-size:13px}
#history-list>.date-group:first-child>h2 {margin-top:20px}
.history-group {padding:0 14px}
.purchase {padding:18px 0;gap:12px}
.purchase>img:first-child {width:44px;height:52px;border-radius:12px}
.purchase>img:last-child {width:10px;opacity:.35}
.purchase b {font-size:14px}
.purchase small {font-size:12px}
.profile-identity {padding:20px 16px;margin-bottom:16px;gap:14px}
.profile-identity b {font-size:22px}
.avatar {width:56px;height:56px;background:linear-gradient(145deg,#fff0e7,#ffe4d5);border:0}
.avatar img {width:29px;height:29px}
.settings-group {margin-bottom:16px;padding:0 16px}
.settings-row {min-height:72px;padding:16px 0;gap:12px}
.settings-row .row-icon {width:34px;height:34px;flex-basis:34px;border-radius:11px}
.row-icon img {width:21px;height:21px;opacity:.8}
.settings-row>img:last-child,.profile-identity>img {width:12px;opacity:.35}
.tabbar {border-radius:var(--radius-pill);padding:5px;box-shadow:0 4px 20px #25172b0b}
.tabbar button {border-radius:var(--radius-pill);gap:5px}
.tabbar img {width:22px;height:22px;opacity:.7}
.tabbar [aria-current=page] img {opacity:1}
.tabbar [aria-current=page] {background:var(--warm)}
dialog {border-radius:var(--radius-card);padding:22px}
.detail-photo,.qr-open {border-radius:var(--radius-inset)}
.tier-option {border-radius:var(--radius-control)}
:root[data-theme=dark] .avatar {background:linear-gradient(145deg,#ffe7d7,#ffdbca)}
@media(max-width:350px) {
  .product-grid {gap:12px}.product {padding:7px}
  .product-open>img {border-radius:17px}
  .product strong {font-size:14px}.product-open>span {font-size:12px;min-height:52px}
  .purchase {gap:8px}.history-group {padding:0 12px}
  .purchase>img:first-child {width:36px;height:44px}
  .purchase b {font-size:13px}.purchase small {font-size:11px}
  .profile-identity {padding:18px 14px}
  .settings-row {font-size:15px}
}

/* Fabrista metal collection: shared silhouette, distinct materials, quiet lift. */
.tier-cup[data-metal=bronze] {
  --metal-shade:#89462f;--metal-mid:#c78658;--metal-light:#e7b88c;--metal-edge:#7e442d;
  filter:drop-shadow(0 9px 7px #56301e25);
}
.tier-cup[data-metal=silver] {
  --metal-shade:#697780;--metal-mid:#a0afb8;--metal-light:#dce4e7;--metal-edge:#61747d;
  filter:drop-shadow(0 9px 7px #33434d20);
}
.tier-cup[data-metal=gold] {
  --metal-shade:#a87622;--metal-mid:#e1b64f;--metal-light:#ffe5a0;--metal-edge:#9b722d;
  filter:drop-shadow(0 9px 7px #8e651f22);
}
.tier-cup[data-metal=platinum] {
  --metal-shade:#a1b6c9;--metal-mid:#dae8f2;--metal-light:#f8fdff;--metal-edge:#90a8bf;
  filter:drop-shadow(0 9px 7px #6e90ac25);
}
.tier-cup {display:block;flex-shrink:0;line-height:0;pointer-events:none}
.tier-cup svg {display:block;width:100%;height:100%;overflow:visible}
body.linked[data-screen=card]:has(#tier-cup:not([hidden])) main {
  padding-top:calc(32px + max(env(safe-area-inset-top,0px),var(--safe-top)));
}
body[data-screen=card] .loyalty-card {overflow:visible}
body[data-screen=card] .level-link {top:-18px;right:18px;width:112px}
body[data-screen=card] .level-link .tier-cup {
  width:94px;height:118px;transform:rotate(9deg);transform-origin:center 75%;
}
.tier-grid {gap:8px;margin-top:18px}
.tier-option {padding:0 3px 14px;gap:7px;position:relative;overflow:visible}
.tier-option .tier-cup {width:66px;height:90px;margin-top:-12px;margin-bottom:3px;transform:rotate(-5deg)}
.tier-option:nth-child(even) .tier-cup {transform:rotate(5deg)}
.tier-option.is-current {background:var(--warm);border-color:#e8b99f}
.tier-option span:not(.tier-cup) {font-size:10px;line-height:1.35}
@media(max-width:350px) {
  body[data-screen=card] .level-link {right:15px;width:98px}
  body[data-screen=card] .level-link .tier-cup {width:84px;height:110px}
  .tier-grid {gap:5px}.tier-option .tier-cup {width:54px;height:76px}
  .tier-option span:not(.tier-cup) {font-size:8px;letter-spacing:-.1px;white-space:nowrap}
}
@media(max-height:650px) {
  body[data-screen=card] .level-link {top:-18px}
  body[data-screen=card] .level-link .tier-cup {width:76px;height:96px}
  body.linked[data-screen=card]:has(#tier-cup:not([hidden])) main {padding-top:28px}
}
/* Pickup demo extends the existing menu/dialog styling. */
.pickup-field{display:grid;gap:8px;margin:20px 0;font-size:14px}
.pickup-field select{width:100%;min-height:48px;padding:12px;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px}
.pickup-field select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.pickup-summary{display:grid;grid-template-columns:minmax(70px,1fr) minmax(0,2fr);gap:18px 14px;line-height:1.5}
.pickup-summary dt{color:var(--muted)}
.pickup-summary dd{margin:0;overflow-wrap:anywhere}
.pickup-summary small{color:var(--muted)}
.pickup-lines{list-style:none;padding:0;margin:24px 0}
.pickup-lines li{display:flex;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);line-height:1.5}
.pickup-lines li span{min-width:0;overflow-wrap:anywhere}
.pickup-lines b{white-space:nowrap;font-variant-numeric:tabular-nums}
.pickup-status{font-size:24px;line-height:1.25;margin:24px 0 12px}
.pickup-controls{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}
.pickup-order-link{width:100%;margin-bottom:16px}
#detail-body .secondary{min-height:44px;margin-top:12px;width:100%}
.menu-placeholder{height:132px;display:grid;place-items:center;background:var(--brand-sand);border-radius:12px;margin-bottom:12px}
.menu-placeholder img{width:36px;height:36px;opacity:.45}
#menu-state{font-size:13px;line-height:1.5;color:var(--muted)}
.modifier-group{margin:20px 0;padding:12px 0;border:0;border-top:1px solid var(--line)}
.modifier-group legend{font-weight:650;padding:0 8px 0 0}
.modifier-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;line-height:1.4}
.modifier-row span{min-width:0;overflow-wrap:anywhere}
.modifier-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.modifier-row input{width:68px;min-width:68px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit}
#modifier-error{color:var(--ink);font-size:14px;line-height:1.5}
