@font-face{font-family:'DM Sans';src:url('../fonts/DMSans-Regular.ttf')}@font-face{font-family:'DM Sans';src:url('../fonts/DMSans-Bold.ttf');font-weight:700}
*{box-sizing:border-box}body{margin:0;background:var(--palette-gray);color:var(--palette-ink);font:14px 'DM Sans',sans-serif;display:grid;place-items:center;min-height:100dvh}
.phone{width:430px;height:min(900px,calc(100dvh - 32px));min-height:560px;border:10px solid var(--palette-ink);border-radius:44px;background:var(--palette-white);overflow:hidden;display:flex;flex-direction:column;position:relative;box-shadow:0 25px 60px color-mix(in srgb,var(--palette-shadow) 18.82%,transparent)}
.statusbar{height:32px;padding:9px 24px 0;font-size:12px;display:flex;justify-content:space-between;flex-shrink:0}
#mobile-header,#mobile-bottom{flex-shrink:0}
.content{position:relative;flex:1;min-height:0;background:var(--palette-white)}.content iframe{display:block;width:100%;height:100%;border:0;background:var(--palette-white)}
.loading{position:absolute;inset:0;margin:0;padding:30px;background:var(--palette-white)}.loading[hidden]{display:none}
.home-indicator{height:16px;flex-shrink:0;background:var(--palette-white)}.home-indicator:after{content:'';display:block;margin:5px auto 0;width:110px;height:4px;background:var(--palette-ink);border-radius:4px}
.phone.pull-focused #mobile-header,.phone.pull-focused #mobile-bottom{display:none}
.phone.payment-focused #mobile-bottom{display:none}
.phone.pull-focused .statusbar,.phone.pull-focused .home-indicator{background:var(--pull-color)}
@media(max-width:800px){body{display:block}.phone{width:100%;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}.statusbar,.home-indicator{display:none}}

/* Compact app chrome follows the designer's original handoff. */
.mn-app .mn-top{min-height:56px;padding:4px 12px;gap:6px}
.mn-app .mn-brand img{width:76px}.mn-app .mn-brand{margin-right:auto}
.mn-app .app-search-toggle{display:grid;place-items:center;flex:0 0 40px;width:40px;height:44px;padding:0;border:0;background:transparent;border-radius:var(--radius-surface, 14px)}
.mn-app .app-search-toggle img{width:20px;height:20px}
.mn-app .mn-points{background:var(--palette-yellow);min-width:68px;min-height:36px;padding:5px 7px;border-radius:var(--radius-surface, 14px);font-size:10px;gap:4px;color:var(--palette-on-yellow);}
.mn-app .mn-points progress{height:3px}.mn-app .mn-wallet{min-height:36px;padding:0 9px;background:var(--palette-ink);color:var(--palette-white);border-radius:var(--radius-surface, 14px);font-size:11px}
.mn-app .mn-menu-button{width:36px;flex-basis:36px}.mn-app .mn-menu-button img{width:22px;height:22px}
.mn-app .mn-search-row[hidden]{display:none}.mn-app .mn-search-row{padding:0 12px 12px}
.mn-app .mn-search-row{flex-wrap:wrap}.mn-app .app-search-scan{display:flex;align-items:center;min-height:44px;width:100%;font:600 13px 'DM Sans',sans-serif;color:var(--palette-kelly);text-decoration:underline;text-underline-offset:3px}
/* App destinations: Pull, Market, Scan, Collection, Profile; the logo opens Home. */
.mn-app #mobile-bottom{position:relative;z-index:4}
.mn-app .mn-bottom{grid-template-columns:repeat(5,minmax(0,1fr));min-height:72px;padding:8px 8px max(5px,env(safe-area-inset-bottom));background:var(--palette-white);border-top:1px solid var(--palette-line)}
.mn-app .mn-bottom a{position:relative;color:var(--palette-body);font-size:10px;gap:4px}
.mn-app .mn-bottom a[aria-current]{color:var(--palette-ink)}.mn-app .mn-bottom a[aria-current] .mn-tab-icon{background:transparent}
.mn-app .mn-bottom a[aria-current] img{filter:none}
.mn-app .mn-bottom a[aria-current]:not(.mn-scan-tab)::before{content:'';position:absolute;top:-9px;width:40px;height:3px;background:var(--palette-ink);border-radius:var(--radius-surface,14px)}
.mn-app .mn-bottom .mn-scan-tab{align-self:center;justify-self:center;margin-top:-27px;width:66px;height:66px;min-height:66px;padding:0;background:var(--palette-yellow);color:var(--palette-on-yellow);border:5px solid var(--palette-white);border-radius:50%;box-shadow:0 0 0 1px var(--palette-line)}
.mn-app .mn-bottom .mn-scan-tab svg{width:28px;height:28px}
.mn-app .mn-account-links a,.mn-app .mn-account-links button{border-radius:0;border-bottom:1px solid var(--palette-line);min-height:50px;font-size:14px}
.mn-app .mn-account-links a[aria-current]{background:var(--palette-white);color:var(--palette-kelly)}
.mn-app .mn-sheet-head h2{font-size:22px}.mn-app .mn-summary{padding-top:4px}.mn-app .mn-sheet-head{padding-top:18px}
@media(max-width:360px){.mn-app .mn-top{gap:3px;padding-inline:8px}.mn-app .mn-brand img{width:66px}.mn-app .app-search-toggle{width:34px;flex-basis:34px}.mn-app .mn-points{min-width:64px}.mn-app .mn-wallet{padding-inline:6px}}

/* App chrome has its own sizing, independent of desktop mobile-header overrides. */
body.mn-app .mn-top { gap:6px; padding:6px 12px; min-height:60px; }
body.mn-app .mn-top .mn-brand img { width:80px; }
body.mn-app .mn-top .mn-points { min-width:64px; min-height:32px; height:32px; padding:4px 6px; gap:3px; font-size:10px; }
body.mn-app .mn-top .mn-points progress { height:2px; }
body.mn-app .mn-top .mn-wallet { min-width:60px; min-height:34px; height:34px; padding:0 7px; font-size:11px; }
/* Compact visible pills retain a larger vertical touch area. */
body.mn-app .mn-top :is(.mn-points,.mn-wallet) { position:relative; }
body.mn-app .mn-top :is(.mn-points,.mn-wallet)::before { content:''; position:absolute; inset:-6px 0; }
body.mn-app .mn-menu-button { width:44px; flex-basis:44px; }
body.mn-app .app-search-toggle { width:40px; flex-basis:40px; }
body.mn-app #mobile-header { padding-top:env(safe-area-inset-top); background:var(--palette-white); }
body.mn-app .mn-bottom { padding-bottom:max(8px,env(safe-area-inset-bottom)); }
body.mn-app .content { padding-bottom:12px; }
body.mn-app .phone.payment-focused .content,body.mn-app .phone.pull-focused .content { padding-bottom:0; }
@media(max-width:350px) {
  body.mn-app .mn-top { gap:2px; padding-inline:8px; }
  body.mn-app .mn-top .mn-brand img { width:64px; }
  body.mn-app .mn-top .mn-wallet { padding-inline:5px; }
  body.mn-app .app-search-toggle { width:36px; flex-basis:36px; }
  body.mn-app .mn-top .mn-points { min-width:58px; padding-inline:4px; }
}
@media(max-height:600px) and (min-width:801px) { .phone { min-height:0; height:100dvh; } }
.phone.dialog-focused #mobile-bottom { display:none; }
body.mn-app .phone.dialog-focused .content { padding-bottom:0; }
body.mn-app .app-search-toggle { width:44px; flex-basis:44px; }

/* Compact floating app navigation over the continuing content canvas. */
body.mn-app .content { padding-bottom:0; }
body.mn-app #mobile-bottom { position:absolute; inset:auto 12px 20px; pointer-events:none; }
body.mn-app .mn-bottom {
  position:relative; min-height:56px; height:56px; padding:5px 8px;
  grid-template-rows:44px; border:1px solid #ffffffb3; border-radius:24px;
  background:rgba(255,255,255,.64)!important; backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  box-shadow:0 8px 28px #00000018,inset 0 1px 0 #fff; pointer-events:auto;
}
body.mn-app .mn-bottom .mn-scan-tab {
  margin-top:0; transform:none; width:44px; height:44px; min-height:44px;
  border:2px solid #ffffffdb; box-shadow:0 2px 6px #00000014;
}
body.mn-app .mn-bottom a[aria-current]:not(.mn-scan-tab)::before { display:none; }
body.mn-app .mn-bottom a:not(.mn-scan-tab)[aria-current] { background:#1a1a1a0c; border-radius:20px; }
body.mn-app .home-indicator { position:absolute; bottom:0; left:0; right:0; background:transparent!important; pointer-events:none; }
@media(max-width:800px) { body.mn-app #mobile-bottom { bottom:max(12px,env(safe-area-inset-bottom)); } }
@media(prefers-reduced-transparency:reduce) { body.mn-app .mn-bottom { background:#fffffff5!important; backdrop-filter:none; } }

body.mn-app .mn-bottom a { font-size:10px!important; line-height:13px!important; gap:2px; min-height:44px; }
body.mn-app .mn-bottom .mn-tab-icon { width:32px; height:22px; }
body.mn-app .mn-bottom .mn-tab-icon img { width:18px; height:18px; }
body.mn-app .mn-bottom .mn-scan-tab svg { width:23px; height:23px; }
body.mn-app .mn-top :is(.mn-points,.mn-wallet) { border-radius:4px!important; }

/* Header sheets share the phone bounds, with a stationary title and scrollable body. */
body.mn-app .mn-sheet.mn-sheet-app {
  inset:auto auto var(--app-sheet-bottom,0px) var(--app-sheet-left,0px);
  margin:0;
  width:var(--app-sheet-width,100%);
  max-width:var(--app-sheet-width,100%);
  max-height:var(--app-sheet-height,90dvh);
  min-height:0;
  box-sizing:border-box;
  border-radius:14px 14px var(--app-sheet-bottom-radius,0px) var(--app-sheet-bottom-radius,0px);
  overflow:hidden;
}
body.mn-app .mn-sheet-app .mn-sheet-body { min-height:0; flex:1 1 auto; overflow-y:auto; padding-bottom:max(24px,env(safe-area-inset-bottom)); }
body.mn-app .mn-sheet-app .mn-sheet-head { flex:0 0 auto; }

/* Selected capsule has breathing room within the floating bar. */
body.mn-app .mn-bottom{padding:5px 5px;gap:2px}
body.mn-app .mn-bottom a:not(.mn-scan-tab){padding:4px 5px;min-height:44px;font-size:9px!important;line-height:12px!important;gap:2px}
body.mn-app .mn-bottom a:not(.mn-scan-tab)[aria-current]{border-radius:16px}

html[data-theme=dark] body.mn-app .mn-bottom{background:#20231fe8!important;border-color:#ffffff26!important;color:#fff;box-shadow:0 8px 28px #0004}
html[data-theme=dark] body.mn-app .mn-bottom a:not(.mn-scan-tab){color:#fff!important}
html[data-theme=dark] body.mn-app .mn-bottom a:not(.mn-scan-tab)[aria-current]{background:#ffffff18}

/* Keep the header visible, but inert and dimmed with its modal screen. */
.phone:is(.dialog-focused,.payment-focused) #mobile-header{position:relative;pointer-events:none}
.phone:is(.dialog-focused,.payment-focused) #mobile-header::after{content:'';position:absolute;inset:0;background:color-mix(in srgb,var(--palette-shadow) 40%,transparent);z-index:5}
/* iOS detail navigation occupies the logo slot; Android retains the logo. */
body.mn-app .mn-brand[hidden],body.mn-app .app-ios-back[hidden]{display:none!important}
body.mn-app .app-ios-back{display:flex;align-items:center;gap:5px;min-height:44px;min-width:44px;max-width:116px;padding:0 4px 0 0;border:0;background:transparent;color:var(--palette-ink);font:600 14px/1.2 var(--type-ui);text-transform:none;letter-spacing:0;cursor:pointer}
body.mn-app .app-ios-back>span:first-child{font:400 36px/1 var(--type-ui)}
body.mn-app .app-ios-back>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.mn-app .app-ios-back{margin-right:auto}

body.mn-app .app-ios-back{gap:2px}
body.mn-app .app-ios-back>svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Checkout owns a full app screen, including its own close/back controls. */
.phone.checkout-focused .content{margin-bottom:90px}
@media(max-width:800px){.phone.checkout-focused .content{margin-bottom:calc(84px + env(safe-area-inset-bottom))}}

/* The scanner owns its back control and uses the full phone camera surface. */
.phone.scan-focused :is(#mobile-header,#mobile-bottom,.statusbar,.home-indicator){display:none}

.phone.asset-photo-focused :is(#mobile-header,#mobile-bottom){display:none!important}

#explore-nav { display:flex; flex:none; align-items:stretch; gap:24px; padding:0 16px; height:48px; background:var(--palette-white); box-shadow:inset 0 -1px var(--palette-line); }
#explore-nav a { display:flex; align-items:center; border-bottom:2px solid transparent; color:var(--palette-body,var(--palette-ink)); font:500 14px/20px var(--type-ui,'DM Sans',sans-serif); text-decoration:none; }
#explore-nav a[aria-current] { color:var(--palette-ink); border-color:currentColor; font-weight:700; }
#explore-nav[hidden], .phone:is(.pull-focused,.payment-focused,.dialog-focused) #explore-nav { display:none; }
body.mn-app .mn-brand:has(svg) { display:inline-flex; align-items:center; gap:6px; min-height:44px; color:var(--palette-ink); font-weight:700; text-decoration:none; }
