/* Homepage v1.0. Existing shop and vault rules stay in styles.css. */
.mfx-mobile-shell,.mfx-sheet{--mfx-page:#f4f5f7;--mfx-ink:#111316;--mfx-muted:#65707d;--mfx-line:#dfe3e8;--mfx-up:#14835c;--mfx-down:#b43a42;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--mfx-ink);line-height:1.5}
body[data-mobile-shell=true]{background:#f4f5f7}
body[data-mobile-shell=true]>.site-header,body[data-mobile-shell=true]>.preview-note,body[data-mobile-shell=true]>.site-footer{display:none}
.mfx-home,.mfx-preview{max-width:480px;margin:auto;padding:0 16px calc(88px + env(safe-area-inset-bottom,0px));background:#f4f5f7;min-height:100vh}
.mfx-icon{width:24px;height:24px;flex:none;display:block}
.mfx-logo{width:30px;height:30px;flex:none}
.mfx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mfx-mobile-shell :where(button,a,input):focus-visible,.mfx-sheet :where(button,a,input):focus-visible{outline:2px solid currentColor;outline-offset:3px}
.mfx-mobile-shell button:hover:not(:disabled),.mfx-sheet button:hover:not(:disabled){color:inherit}
.mfx-brandbar{height:calc(72px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);display:flex;align-items:center;justify-content:space-between;gap:8px}
.mfx-brand{display:flex;align-items:center;gap:10px;min-height:44px;white-space:nowrap}
.mfx-brand b{display:block;font-size:22px;line-height:1.2;font-weight:730;letter-spacing:-.6px}
.mfx-brand small{display:block;font-size:11px;color:#65707d;margin-top:2px;letter-spacing:.05px}
.mfx-brandbar>div{display:flex}
.mfx-brandbar button{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:12px}
.mfx-brandbar button:hover{background:#e7eaee}
.mfx-assets{height:168px;position:relative;isolation:isolate;overflow:hidden;padding:12px 16px 14px;color:#f7f8fa;background:radial-gradient(ellipse at 100% 0%,#272d34 0%,#0e1217 70%);border-radius:18px;box-shadow:0 2px 5px #1113160a}
.mfx-planet{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;opacity:.85}
.mfx-asset-link{position:absolute;inset:0;z-index:1;border-radius:18px}
.mfx-assets-heading{display:flex;align-items:center;gap:3px;font-size:12px;line-height:24px;color:#c1c7d0;pointer-events:none}
.mfx-assets-heading button{display:grid;place-items:center;width:44px;height:44px;margin:-10px 0;padding:0;position:relative;z-index:2;pointer-events:auto}
.mfx-assets-heading .mfx-icon{width:19px;height:19px}
.mfx-demo{font-size:10px;border:1px solid #727b854a;border-radius:4px;line-height:16px;padding:0 5px;margin-left:2px}
.mfx-amount{display:block;height:43px;font-size:34px;line-height:43px;font-weight:620;letter-spacing:-.8px;font-variant-numeric:tabular-nums;pointer-events:none}
.mfx-signed-out{font-size:25px}
.mfx-asset-caption{color:#c1c7d0;font-size:10px;margin-top:0;pointer-events:none}
.mfx-asset-arrow{position:absolute;right:14px;top:64px;pointer-events:none}
.mfx-asset-arrow .mfx-icon{width:19px;height:19px}
.mfx-asset-stats{display:grid;grid-template-columns:1.08fr 1.08fr .9fr;gap:10px;margin-top:14px;pointer-events:none}
.mfx-asset-stats>div{display:flex;align-items:center;gap:7px;min-width:0}
.mfx-asset-stats .mfx-icon{width:19px;height:19px}
.mfx-asset-stats span{font-size:10px;line-height:1.45;color:#c1c7d0;white-space:nowrap}
.mfx-asset-stats b{display:block;color:#f7f8fa;font-weight:550;font-size:12px;font-variant-numeric:tabular-nums;min-height:18px}
.mfx-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.mfx-action{height:94px;min-width:0;border-radius:16px;background:#e9edf2;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:0}
.mfx-action .mfx-icon{width:26px;height:26px;margin-bottom:8px}
.mfx-action b{font-size:14px;white-space:nowrap;font-weight:650;line-height:21px}
.mfx-action small{font-size:11px;color:#65707d;white-space:nowrap}
.mfx-action-dark{background:linear-gradient(145deg,#20262c,#080c10);color:#f7f8fa}
.mfx-action-dark small{color:#c1c7d0}
.mfx-action-dark .mfx-icon{fill:currentColor;stroke-width:1}
.mfx-promotions{width:100%}
.mfx-slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-behavior:smooth;overscroll-behavior-x:contain;border-radius:18px;background:#0e1217}
.mfx-slides::-webkit-scrollbar{display:none}
.mfx-slide{position:relative;flex:0 0 100%;min-width:0;height:148px;scroll-snap-align:start;scroll-snap-stop:always;color:#f7f8fa;background:radial-gradient(ellipse at 90% 20%,#22282f,#080c10 80%);overflow:hidden;isolation:isolate;padding:13px 16px}
.mfx-promo-copy{position:relative;z-index:2;width:76%;pointer-events:none}
.mfx-promo-copy h2{font-size:17px;line-height:1.45;letter-spacing:-.2px;font-weight:650;max-width:220px;min-height:49px}
.mfx-promo-copy p{font-size:11px;color:#c1c7d0;line-height:18px;margin:3px 0 8px;white-space:nowrap}
.mfx-promo-copy button{display:flex;align-items:center;gap:7px;background:#f7f8fa;color:#111316;border-radius:24px;height:44px;min-width:103px;padding:0 14px;font-size:12px;font-weight:650;pointer-events:auto}
.mfx-promo-copy button .mfx-icon{width:16px;height:16px}
.mfx-promo-art{position:absolute;right:-1px;top:0;width:43%;height:100%;opacity:.85;z-index:1;pointer-events:none}
.mfx-black-card{position:absolute;width:91px;height:91px;border:1px solid #606772;border-radius:7px;transform:rotate(-10deg) skewX(-10deg);box-shadow:2px 8px 18px #0008;background:linear-gradient(135deg,#3d434d,#151b22 65%,#070c12)}
.card-back{right:19px;top:31px;opacity:.4;transform:rotate(7deg) skewX(-10deg)}
.card-middle{right:27px;top:27px;opacity:.6;transform:rotate(1deg) skewX(-10deg)}
.card-front{right:34px;top:19px;display:flex;align-items:center;justify-content:center;gap:3px}
.card-front .mfx-logo{width:15px;height:18px;color:#b4bac4}
.card-front span{font-size:11px;font-style:italic;color:#b4bac4;white-space:nowrap}
.mfx-orbit{position:absolute;right:-10px;top:49px;width:174px;height:36px;border:1px solid #d4d8dd;border-bottom-color:#89919b;border-radius:50%;transform:rotate(-24deg);opacity:.7}
.mfx-promo-art>small{position:absolute;right:12px;bottom:9px;text-align:right;font-size:5px;color:#939da9;letter-spacing:.5px}
.mfx-art-builders .card-front{transform:rotate(5deg) skewX(-5deg)}
.mfx-art-support .card-front{transform:rotate(-3deg) skewX(-8deg)}
.mfx-dots{display:flex;justify-content:center;height:44px;align-items:center}
.mfx-dots button{height:44px;width:44px;display:grid;place-items:center;padding:0}
.mfx-dots span{display:block;height:4px;width:10px;background:#c3c9d1;border-radius:5px}
.mfx-dots [aria-pressed=true] span{width:15px;background:#111316}
.mfx-section-heading{display:flex;align-items:center;gap:8px;margin:7px 0 12px;min-height:30px}
.mfx-section-heading h2{font-size:18px;line-height:26px;font-weight:700}
.mfx-section-heading>span{color:#65707d;font-size:10px}
.mfx-section-heading a{display:flex;align-items:center;gap:2px;font-size:12px;color:#65707d;min-height:44px;margin-left:auto;white-space:nowrap}
.mfx-section-heading a .mfx-icon{width:13px;height:13px}
.mfx-market-list{display:grid;gap:8px}
.mfx-market-row{display:flex;align-items:center;gap:8px;min-height:60px;padding:10px;border-radius:13px;background:#e9edf2;min-width:0}
.mfx-model-mark{display:grid;place-items:center;background:#151a20;color:#fff;width:30px;height:30px;flex:none;border-radius:9px;font-size:17px;font-weight:550}
.mfx-model-copy{flex:1;min-width:48px}
.mfx-model-copy b{display:block;font-size:13px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mfx-model-copy small{display:block;font-size:10px;color:#65707d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mfx-chart{width:43px;flex:none}
.mfx-sparkline{display:block;width:43px;height:28px}
.is-up{color:#14835c}
.is-down{color:#b43a42}
.mfx-quote{text-align:right;min-width:68px;font-variant-numeric:tabular-nums}
.mfx-quote b{display:block;font-size:13px;font-weight:600;white-space:nowrap}
.mfx-quote small{display:block;font-size:9px;color:#65707d}
.mfx-change{font-size:11px;text-align:right;width:37px;flex:none;white-space:nowrap;font-variant-numeric:tabular-nums}
#mobile-navigation{display:none}
body[data-mobile-shell=true] #mobile-navigation{display:block}
.mfx-tabs{position:fixed;z-index:30;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:480px;background:#f4f5f7;border-top:1px solid #dfe3e8;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(64px + env(safe-area-inset-bottom,0px));padding:4px 10px env(safe-area-inset-bottom,0px);backdrop-filter:blur(16px)}
.mfx-tabs a{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:54px;min-width:0;color:#65707d;font-size:11px}
.mfx-tabs a>span{display:grid;place-items:center;width:36px;height:32px}
.mfx-tabs .mfx-icon{width:22px;height:22px}
.mfx-tabs b{font-weight:500}
.mfx-tabs [aria-current=page]{color:#111316}
.mfx-tabs [aria-current=page]:not(.mfx-use-tab) .mfx-icon{stroke-width:2.1}
.mfx-tabs [aria-current=page]:first-child .mfx-icon{fill:currentColor}
.mfx-tabs .mfx-use-tab>span{width:44px;height:44px;background:#0e1217;color:#fff;border-radius:50%;margin-top:-12px;border:3px solid #f4f5f7;box-sizing:content-box;box-shadow:0 2px 6px #11131613}
.mfx-use-tab .mfx-icon{width:23px;height:23px;fill:#f7f8fa;stroke-width:1}
.mfx-use-tab[aria-current=page] b{font-weight:750;text-decoration:underline;text-underline-offset:3px}
.mfx-preview-heading{margin:0 0 18px}
.mfx-back{display:flex;align-items:center;gap:7px;color:#65707d;min-height:44px;font-size:12px;margin-bottom:15px;width:max-content}
.mfx-back .mfx-icon{width:17px;height:17px;transform:rotate(180deg)}
.mfx-preview-heading>p{font-size:10px;letter-spacing:1px;color:#65707d}
.mfx-preview-heading h1{font-size:28px;font-weight:650;margin:5px 0 8px;letter-spacing:-.8px}
.mfx-preview-heading>div{font-size:13px;color:#65707d}
.mfx-preview-card{background:#fff;border:1px solid #dfe3e8;border-radius:16px;padding:18px;margin:16px 0;overflow-wrap:anywhere}
.mfx-preview-card h2{font-size:17px;margin:4px 0 8px;font-weight:600}
.mfx-preview-card p{font-size:13px;color:#65707d;line-height:1.7;margin:6px 0}
.mfx-preview-card a,.mfx-preview-card button{display:flex;align-items:center;gap:8px;min-height:44px;margin-top:6px;font-size:13px;font-weight:550;padding:0}
.mfx-preview-card a .mfx-icon,.mfx-preview-card button .mfx-icon{width:17px;height:17px}
.mfx-status{display:inline-block;color:#65707d;background:#eceff3;padding:3px 7px;font-size:11px;border-radius:5px;margin-bottom:10px}
.mfx-market-tabs{display:flex;background:#e9edf2;border-radius:10px;padding:4px;margin-bottom:16px;gap:5px}
.mfx-market-tabs a{flex:1;text-align:center;min-height:44px;line-height:44px;font-size:13px;border-radius:7px}
.mfx-market-tabs [aria-current=page]{background:#fff;box-shadow:0 1px 3px #1113160a}
.mfx-settings{background:#fff;border:1px solid #dfe3e8;border-radius:14px;padding:0 16px}
.mfx-settings a,.mfx-settings button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:56px;border-bottom:1px solid #dfe3e8;padding:0;font-size:14px}
.mfx-settings :last-child{border:0}
.mfx-settings .mfx-icon{width:16px;height:16px;color:#65707d}
.mfx-vault-bridge{margin:16px -16px 0}
.mfx-vault-bridge .vault-shell{padding-top:24px}
.mfx-vault-bridge .vault-heading h1{font-size:26px}
.mfx-vault-bridge .vault-heading{margin-bottom:22px}
.mfx-vault-bridge .vault-overview{margin-bottom:24px}
dialog.mfx-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(480px,100%);max-width:100%;max-height:85dvh;border-radius:20px 20px 0 0;border:0;padding:0;background:#f4f5f7;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -10px 40px #0002}
.mfx-sheet-content{position:relative;padding:28px 20px calc(24px + env(safe-area-inset-bottom,0px))}
.mfx-sheet-close{position:absolute;right:12px;top:12px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#e9edf2}
.mfx-sheet-eyebrow{font-size:10px;letter-spacing:1.4px;color:#65707d;margin-bottom:10px}
.mfx-sheet h2{font-size:23px;font-weight:650;line-height:1.4;margin:0 40px 18px 0;letter-spacing:-.5px}
.mfx-sheet p:not(.mfx-sheet-eyebrow){font-size:14px;line-height:1.8;color:#65707d;margin:12px 0}
.mfx-sheet label{display:block;font-size:12px;margin-bottom:8px;color:#65707d}
.mfx-sheet input{border:1px solid #c8cdd5;background:#fff;width:100%;min-height:48px;border-radius:10px;padding:10px 12px;font-size:16px;color:#111316;margin-bottom:18px;outline-offset:2px}
.mfx-sheet-link{display:flex;align-items:center;min-height:44px;font-size:14px;font-weight:600}
body.has-home-sheet{overflow:hidden}
@media(max-width:760px){#mobile-navigation{display:block}body:not([data-mobile-shell=true]){padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}.toast{bottom:calc(80px + env(safe-area-inset-bottom,0px));z-index:40}}
@media(min-width:761px){.mfx-vault-bridge .vault-shell{padding-left:16px;padding-right:16px}.mfx-vault-bridge .vault-overview{grid-template-columns:1fr 1fr;gap:16px;padding:16px}.mfx-vault-bridge .overview-account{grid-column:1/-1;border:0;padding:0}.mfx-vault-bridge .shelf-row{grid-template-columns:150px 1fr;gap:18px;padding:18px}.mfx-vault-bridge .shelf-actions{grid-column:1/-1;display:flex;gap:10px}.mfx-vault-bridge .compact.card-face,.mfx-vault-bridge .card-stack{width:135px;height:110px}.mfx-vault-bridge .individual-card{grid-template-columns:15px 1fr;gap:10px}.mfx-vault-bridge .expiry{grid-column:2}.mfx-vault-bridge .warehouse-note{flex-wrap:wrap}.mfx-vault-bridge .vault-toolbar .sort-note{display:none}}
@media(max-width:374px){.mfx-actions{gap:10px}.mfx-action b{font-size:13px}.mfx-action small{font-size:10px}.mfx-chart{display:none}.mfx-brand{gap:7px}.mfx-brand b{font-size:21px}.mfx-brand small{font-size:10px}.mfx-logo{width:27px}.mfx-brandbar button{width:44px}.mfx-amount{font-size:31px}.mfx-assets{padding-left:13px;padding-right:13px}.mfx-asset-stats{gap:6px;grid-template-columns:1.1fr 1.1fr .85fr}.mfx-asset-stats>div{gap:4px}.mfx-asset-stats .mfx-icon{width:16px;height:16px}.mfx-asset-stats b{font-size:11px}.mfx-promo-copy h2{font-size:16px;max-width:204px}.mfx-promo-art{right:-15px;width:40%;opacity:.52}.mfx-black-card{width:76px;height:84px}.mfx-orbit{width:145px}.mfx-promo-copy p{font-size:10px}.mfx-section-heading{gap:6px}.mfx-section-heading>span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.mfx-slides{scroll-behavior:auto}}

/* WebKit native select otherwise collapses to a short platform control. */
#dialog select{-webkit-appearance:none;appearance:none;min-height:44px;font-size:16px;padding:10px 34px 10px 12px;background:#fff url("assets/icons/chevron-down.svg") no-repeat right 12px center;background-size:16px;line-height:1.4}
.mfx-card-detail{font-size:12px;line-height:1.6;color:#626d5c;margin:8px 0 0;overflow-wrap:anywhere}
/* Keep the original modal's close action visible while its content scrolls. */
@media(max-width:760px){.mfx-dialog-toolbar{position:sticky;top:0;height:0;z-index:2}.mfx-dialog-toolbar .dialog-close{right:-13px;top:-28px}}

/* Asset entry puts actual cards immediately after the funds summary. */
.mfx-heading-compact{margin-bottom:8px}
.mfx-heading-compact h1{margin:0;font-size:28px;line-height:1.25}
.mfx-assets-page .mfx-vault-bridge{margin:12px -16px 0}
.mfx-assets-page .vault-shell{padding:0 16px 24px}
.mfx-assets-page .vault-heading{display:none}
.mfx-assets-page .vault-toolbar{min-height:44px;margin-bottom:12px;gap:8px;align-items:center}
.mfx-assets-page .filter-tabs{gap:18px}
.mfx-assets-page .filter-tabs button{min-height:44px;padding:8px 0;font-size:13px}
.mfx-assets-page .vault-toolbar>.text-link{min-height:44px;font-size:12px;white-space:nowrap}
.mfx-assets-page .vault-overview{margin:16px 0 0;padding:16px;gap:12px 16px;grid-template-columns:1fr 1fr}
.mfx-assets-page .overview-item{padding-left:16px}
.mfx-assets-page .overview-main strong,.mfx-assets-page .overview-item strong{font-size:24px;line-height:1.3}
.mfx-assets-page .overview-account{grid-column:1/-1;border-left:0;border-top:1px solid #d9e1d2;padding:12px 0 0}
.mfx-assets-page .vault-overview>.sort-note{grid-column:1/-1;padding:0;font-size:12px}

/* The embedded warehouse stays narrow even on desktop. Size the whole card
   within its grid track; miniature printing scales with the card, not viewport. */
.mfx-vault-bridge .shelf-row{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px;padding:16px 14px}
.mfx-vault-bridge .stack-button{width:100%;height:auto;min-height:44px;align-self:center}
.mfx-vault-bridge .card-stack{width:100%;max-width:150px;height:auto;aspect-ratio:206/136;margin:12px auto 0;container-type:inline-size;transform:none}
.mfx-vault-bridge .compact.card-face{width:100%;height:auto;aspect-ratio:206/136}
.mfx-vault-bridge .compact .card-face-top{padding:5.3cqw 6.3cqw 0}
.mfx-vault-bridge .compact .card-face-top span:first-child{font-size:4cqw}
.mfx-vault-bridge .compact .card-face-top span:last-child{font-size:3.4cqw}
.mfx-vault-bridge .compact>.card-art{width:52cqw;height:52cqw;top:3.4cqw;right:0}
.mfx-vault-bridge .compact .card-face-bottom{padding:0 6.3cqw 5.8cqw;gap:3cqw}
.mfx-vault-bridge .compact .card-face-bottom b{font-size:9cqw;letter-spacing:-.25cqw;white-space:nowrap}
.mfx-vault-bridge .compact .card-face-bottom small{font-size:2.4cqw;letter-spacing:.45cqw}
.mfx-vault-bridge .compact .card-face-bottom>span{font-size:10.5cqw;letter-spacing:-.4cqw;white-space:nowrap}
.mfx-vault-bridge .compact .card-face-bottom>span small{font-size:2.9cqw;letter-spacing:0;margin-top:2cqw}
.mfx-vault-bridge .shelf-info{min-width:0}
.mfx-vault-bridge .shelf-info h2{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 6px;line-height:1.3;margin-top:4px}
.mfx-vault-bridge .shelf-info h2>span{margin:0;white-space:nowrap}
.mfx-vault-bridge .shelf-info>p:not(.eyebrow){line-height:1.65;margin:3px 0 0}
.mfx-vault-bridge .expand-link{font-size:12px;gap:4px}
.mfx-vault-bridge .expand-link .icon{width:13px;height:13px}
.mfx-vault-bridge .shelf-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mfx-vault-bridge .shelf-actions .button{font-size:12px;min-height:44px}
.mfx-vault-bridge .shelf-actions:has(.inactive-status){display:flex;justify-content:center;align-items:center}
.mfx-assets-page .card-groups{gap:14px}
