/* Shared marketplace tokens. Source measurements and optical mappings are in DESIGN-SYSTEM.md. */
:root {
  --unit: 4px;
  --space-1: var(--unit);
  --space-2: calc(2 * var(--unit));
  --space-3: calc(3 * var(--unit));
  --space-4: calc(4 * var(--unit));
  --space-5: calc(5 * var(--unit));
  --space-6: calc(6 * var(--unit));
  --space-8: calc(8 * var(--unit));
  --page-gutter: var(--space-4);
  --card-padding: var(--space-6);
  --control-height: 52px;
  --hit: 44px;
  --tab-height: 62px;
  --icon-row: 24px;
  --icon-tab: 28px;
  --bar-icon: 18.67px;
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-sheet: 40px;
  --radius-input: 8px;
  --radius-avatar: 50%;
  --radius-badge: var(--radius-avatar);
  --ground: #101010;
  --surface: #1c1c1e;
  --surface2: #29292b;
  --ink: #fafafa;
  --muted: #ababaf;
  --line: #353537;
  --money-green: #42db80;
  --on-green: #092618;
  --danger: #eb7979;
  --mascot-green: var(--money-green);
  --radius: var(--radius-card);
  --typeface: Geist, system-ui, sans-serif;
  --money-size: 64px;
  --headline-size: 32px;
  --title-size: 24px;
  --body-size: 16px;
  --caption-size: 14px;
  --display-weight: 750;
  --headline-tracking: -.035em;
  --body-leading: 1.375;
  --title-leading: 1.16667;
  --display-leading: 1.0625;
  --headline-leading: 1;
  --caption-leading: 1.28571;
  --title-weight: 700;
  --body-weight: 450;
  --caption-weight: 500;
  --money-tracking: -.045em;
  --keypad-size: 96px;
  --dock-clearance: 24px;
  font-family: var(--typeface);
  font-variant-numeric: tabular-nums;
}
body, button, input, textarea, select { font-family: var(--typeface); }
body { font-size: var(--body-size); line-height: var(--body-leading);font-weight:var(--body-weight); }
h1, h2, h3, .earn-content :is(h1,h3), .earn-section h2 { font-weight: var(--display-weight); letter-spacing: var(--headline-tracking); line-height: var(--title-leading); }
h1, .flow-page h2, .achievement h2 { font-size: var(--headline-size);line-height:var(--headline-leading); }
h2, .earn-content h3, .earn-section h2 {font-size: var(--title-size);}
.cash-hero-value, .pad-amount, .achievement-money, .cash-receipt-amount { font-size: var(--money-size); font-weight: 800; line-height: var(--display-leading); font-variant-numeric: tabular-nums; }
.mh-total { font: var(--display-weight) var(--headline-size)/var(--title-leading) var(--typeface); font-variant-numeric: tabular-nums; }
.money-tag,.earn-facts,.earn-budget span,.cash-activity-body small,.cash-home-center>small {font-family: var(--typeface); font-size: var(--caption-size);}
.button,.cash-pill,.flow-primary,.achievement-primary {min-height: var(--control-height);border-radius:var(--radius-pill);}
.button.primary,.cash-earn,.flow-primary:not(:disabled),.achievement .flow-primary,.dock button[data-ui="postFlow"] {color:var(--on-green);background:var(--money-green);border-color:transparent;box-shadow:none;}
.cash-gain,.mh-receipt strong,.mh-volume strong {color:var(--money-green);}
.box,.earn-card,.earn-featured,.home-next {border-radius:var(--radius-card);}
.earn-content {padding:var(--card-padding);}
#panel,dialog.market-onboarding {border-radius:var(--radius-sheet);}
input:not([type=radio]):not([type=checkbox]),textarea, select,.flow-content input:not([type=radio]):not([type=checkbox]) {border-radius:var(--radius-input);}
.avatar,.app-avatar,.cash-profile-avatar {border-radius:var(--radius-avatar);}
.cash-medal {border-radius:var(--radius-badge);}
.dock {height:var(--tab-height);bottom:max(var(--dock-clearance),env(safe-area-inset-bottom));}
.dock :is(a,button) svg {width:var(--icon-tab);height:var(--icon-tab);}
.row>svg:first-child,.home-row>svg,.flow-choice>svg {width:var(--icon-row);height:var(--icon-row);}
.top.market-top {position:relative;inset:auto;height:auto;min-height:0;display:flex;align-items:center;justify-content:space-between;padding:var(--space-3) var(--page-gutter);gap:var(--space-3);background:var(--ground);}
.app-actions {display:flex;gap:var(--space-3);align-items:center;}
.market-top :is(.app-back,.app-notifications,.app-avatar,.search-button) {position:relative;inset:auto;transform:none;flex:none;display:grid;place-items:center;padding:0;margin:0;width:var(--hit);height:var(--hit);min-height:var(--hit);background:var(--surface);color:var(--ink);border:0;border-radius:var(--radius-avatar);overflow:hidden;}
.market-top :is(.app-back,.app-notifications,.app-avatar,.search-button) svg {width:var(--icon-row);height:var(--icon-row);}
.market-top .search-button svg {width:var(--bar-icon);height:var(--bar-icon);}
.app-avatar .avatar,.app-avatar img {width:100%;height:100%;margin:0;border-radius:inherit;object-fit:cover;}
.app-notifications.unread::after {content:"";position:absolute;width:8px;height:8px;top:8px;right:8px;border-radius:50%;background:var(--money-green);box-shadow:0 0 0 2px var(--surface);}
.market-top[data-mode=tabs] .app-back,.market-top[data-mode=detail] :is(.app-actions,.app-notifications),.market-top [hidden] {display:none;}
.market-top .mh-start {min-height:var(--hit);padding-inline:var(--space-4);border-radius:var(--radius-pill);font-weight:650;}
.mh-strip {width:auto;margin:0;padding:0 var(--page-gutter);border:0;gap:var(--space-2);justify-content:center;}
button.mh-volume {border:0;padding:0;flex-direction:row;gap:var(--space-2);align-items:center;}
.mh-volume :is(small,strong) {font-size:var(--caption-size);}
.page-money {display:inline-block;margin-block:0 var(--space-2);}
.cash-home .page-money {margin:0 auto var(--space-1);}
.notification-row {display:grid;grid-template-columns:1fr auto;gap:var(--space-1);padding:var(--space-3) 0;border-bottom:1px solid var(--line);}
.notification-row small {color:var(--muted);grid-column:1/-1;}
#main,.foot {padding-inline:var(--page-gutter);}
.cash-home {min-height:0;padding:var(--space-5) 0 var(--space-8);}
.cash-home h1 {font-size:var(--body-size);margin:0 0 var(--space-2);}
.cash-split {margin:var(--space-1) 0 var(--space-3);display:flex;align-items:center;justify-content:center;gap:var(--space-2);flex-wrap:wrap;}
.cash-split>a {min-height:var(--hit);display:inline-flex;align-items:center;gap:var(--space-1);}
.cash-split>span {margin:0;} .cash-split>i {font-style:normal;}
.cash-home-actions {gap:var(--space-2);}
.cash-home-center>small {margin-top:var(--space-2);}
.home-feed {max-width:680px;margin:0 auto;}
.home-section {margin:0 0 var(--space-4);}
.home-section h2 {margin:0 0 var(--space-3);font-size:var(--title-size);}
.home-next {position:relative;padding:var(--card-padding);background:var(--surface);isolation:isolate;overflow:hidden;}
.home-next h3 {font-size:var(--title-size);max-width:75%;margin:0;}
.home-next p {color:var(--muted);max-width:72%;margin:var(--space-2) 0 var(--space-4);}
.home-next img {position:absolute;right:var(--space-3);top:var(--space-4);width:min(24%,100px);height:88px;object-fit:contain;z-index:-1;}
.home-next .button {background:var(--ink);color:var(--ground);border:0;min-width:108px;font-weight:650;}
.home-row {display:flex;width:100%;min-height:80px;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-3) 0;text-align:start;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);}
.home-row span {min-width:0;} .home-row :is(b,small) {display:block;}
.home-row small,.notification-row small {color:var(--muted);font-size:var(--caption-size);font-weight:var(--caption-weight);line-height:var(--caption-leading);}
.home-row>svg {flex:none;color:var(--muted);}
.quest-ring {width:40px;height:40px;border-radius:50%;flex:none;background:conic-gradient(var(--money-green) var(--progress),var(--line) 0);mask:radial-gradient(closest-side,transparent 73%,black 77%);}
.quest-row span:nth-child(2) {flex:1;}
.home-payments .mh-pause svg,.cash-details a svg {height:18px;width:18px;}
.home-shortcuts {display:flex;align-items:center;gap:var(--space-4);flex-wrap:wrap;}
.home-shortcuts button {background:none;border:0;color:inherit;font:inherit;padding:0;}
.home-shortcuts :is(button,a) {font-size:var(--caption-size);min-height:var(--hit);}
@media (max-width:800px) {
  #main,.foot {width:100%;padding-inline:var(--page-gutter);}
  #panel,dialog.market-onboarding[open] {border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;}
  body[data-page=home] #main {padding-top:0;}
}
@media (min-width:801px) {
  #main,.foot,.top.market-top {width:min(100% - 64px,1440px);margin-inline:auto;}
}
@media (prefers-reduced-motion:reduce) {.mh-track{animation:none;}}

.cash-hero-value,.cash-receipt-amount,.achievement-money {letter-spacing:var(--money-tracking);}
.home-section h2 {font-weight:var(--title-weight);}
#main .page-money {width:fit-content;}

.identity-link {display:grid;gap:var(--space-4);justify-items:stretch;}
.identity-code {justify-self:center;}
.identity-code svg {display:block;width:min(210px,55vw);height:auto;aspect-ratio:1;background:white;border-radius:var(--radius-input);}
.identity-link label {display:grid;gap:var(--space-2);}
