/* Shared mobile palette, matching the approved strategy discovery page. */
html:root[data-surface=mobile][data-theme=light]{--bg:#fff;--panel:#fff;--panel2:#f2f2f2;--surface:#fff;--border:#e8e8e8;--line:#e8e8e8;--text:#3c2753;--muted:#8a7c99;--purple:#8757b5;--green:#008773;--red:#d5384a}
html:root[data-surface=mobile][data-theme=light] body.mobile-app{--hub-accent:#8757b5;--hub-border:#e8e8e8;color:var(--text)}
html:root[data-surface=mobile][data-theme=light] .mobile-app :is(.mobile-sticky-header,.mobile-topbar,.mobile-bottom-nav){background:#fff;border-color:#ededed;box-shadow:none}
html:root[data-surface=mobile][data-theme=light] .mobile-app :is(h1,h2,h3,h4,.mobile-market-more,.mobile-icon-button){color:#573477}
html:root[data-surface=mobile][data-theme=light] .mobile-app .mobile-live-dock{border-color:#fff}
html:root[data-surface=mobile][data-theme=light] .mobile-app .mobile-quote{background:#f2f2f2;border-radius:14px}
html:root[data-surface=mobile][data-theme=light] .mobile-app .mobile-quote h2{color:#573477}
html:root[data-surface=mobile][data-theme=light] .mobile-app .mobile-bottom-nav a{color:#91839f}
html:root[data-surface=mobile][data-theme=light] .mobile-app .mobile-bottom-nav a.active{background:#f4eefb;color:#8653bb}
html:root[data-surface=mobile][data-theme=light] .mobile-app :is(.panel,.strategy-card,.composer,dialog){background:#fff;color:#3c2753;border-color:#e8e8e8;box-shadow:none}
html:root[data-surface=mobile][data-theme=light] .mobile-app :is(.button.primary,.m-home-search button,.mtp-subscribe,.mtp-follow){background:#8757b5;color:#fff;border-color:#8757b5;box-shadow:none}
html:root[data-surface=mobile][data-theme=light] .mobile-app :is(.button.secondary,.button.ghost,.watch-button,.theme-switch,.language-switch){background:#f2f2f2;color:#7947a7;border-color:#e8e8e8;box-shadow:none}
html:root[data-surface=mobile][data-theme=light] .mobile-app :is(input,select,textarea){background:#fff;color:#573477;border-color:#e8e8e8;accent-color:#8757b5}
html:root[data-surface=mobile][data-theme=light] .mobile-app :is(input,textarea)::placeholder{color:#8a7c99}
html:root[data-surface=mobile][data-theme=light] .mobile-app :is(.tabs,.segmented,.feed-tabs,.market-filter,.range-filter) button.active{background:#eee6f7;color:#7947a7}
html:root[data-surface=mobile][data-theme=light] .mobile-app .positive{color:#008773!important}
html:root[data-surface=mobile][data-theme=light] .mobile-app .negative{color:#d5384a!important}
html:root[data-surface=mobile][data-theme=light] .mobile-app .m-home-search{background:#fff;border-color:#e8e8e8}
/* Photos belong to the home carousel, not behind page content. */
html:root[data-surface=mobile] body.mobile-app .mobile-cosmos{background:#14131b}
html:root[data-surface=mobile][data-theme=light] body.mobile-app .mobile-cosmos{background:#fff}
.mobile-app .m-home-carousel{position:relative;height:154px;margin:0 0 20px;border-radius:14px;overflow:hidden;background:#25222f;isolation:isolate}
.mobile-app .m-home-carousel .trading-scenes{display:block}
.mobile-app .m-home-carousel .trading-scene{inset:0;filter:none;background-position:center 45%;transform:scale(1.05)}
.mobile-app .m-home-carousel .trading-scenes::after{background:linear-gradient(180deg,transparent 60%,#14131b25)}
html:root[data-surface=mobile] body.mobile-app .m-home-carousel .trading-scenes::after{background:linear-gradient(180deg,transparent 60%,#14131b25)}
/* Home overview uses the existing theme palette. */
.mobile-app .m-home-news{overflow:hidden;border-radius:14px;background:var(--panel2);margin:0 0 24px}
.mobile-app .m-home-news-track{display:flex;animation:home-tips 21s infinite}
.mobile-app .m-home-news-track>a{flex:0 0 100%;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:19px 18px;min-height:94px;color:var(--text)}
.mobile-app .m-home-news strong{display:block;font-size:18px}.mobile-app .m-home-news small{display:block;margin-top:7px;font-size:12px;color:var(--muted)}
.mobile-app .m-home-news b{font-size:25px;color:var(--purple)}
.mobile-app .m-home-news:focus-within .m-home-news-track,.mobile-app .m-home-news:hover .m-home-news-track{animation-play-state:paused}
.mobile-app .m-home-overview,.mobile-app .m-home-events{margin-bottom:24px;padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--panel)}
.mobile-app .m-home-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-app .m-home-section-title h2{margin:0;font-size:18px}.mobile-app .m-home-section-title>span{font-size:11px;color:var(--muted)}
.mobile-app .m-home-overview-values{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0 18px}.mobile-app .m-home-overview-values span{font-size:12px;color:var(--muted)}.mobile-app .m-home-overview-values strong{display:block;font-size:28px;margin-top:8px;font-weight:600}
.mobile-app .m-home-connect{border-top:1px solid var(--border);padding-top:14px;display:flex;justify-content:space-between;gap:8px;font-size:12px}.mobile-app .m-home-connect>span{color:var(--muted)}.mobile-app .m-home-connect a{color:var(--purple)}
.mobile-app .m-home-event-empty{text-align:center;padding:26px 0 10px;color:var(--muted)}.mobile-app .m-home-event-empty svg{display:block;margin:0 auto 12px;width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.5}.mobile-app .m-home-event-empty strong{font-size:13px;font-weight:500}.mobile-app .m-home-event-empty p{font-size:11px;margin:8px 0 0}
@keyframes home-tips{0%,28%{transform:translateX(0)}33%,61%{transform:translateX(-100%)}66%,94%{transform:translateX(-200%)}100%{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.mobile-app .m-home-news-track{animation:none;overflow-x:auto;scroll-snap-type:x mandatory}.mobile-app .m-home-news-track>a{scroll-snap-align:start}}
.mobile-app .m-home-equity{margin-top:20px}.mobile-app .m-home-equity>span{font-size:12px;color:var(--muted)}.mobile-app .m-home-equity>strong{display:block;font-size:30px;line-height:1.2;margin-top:8px;font-weight:600}
.mobile-app .m-home-overview .m-home-overview-values{margin:18px 0}.mobile-app .m-home-overview .m-home-overview-values strong{font-size:23px;margin-top:6px}
.mobile-app .m-home-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--border);padding:15px 0;gap:8px}.mobile-app .m-home-status-grid a{display:flex;flex-direction:column;gap:6px;color:var(--text)}.mobile-app .m-home-status-grid strong{font-size:19px;font-weight:600}.mobile-app .m-home-status-grid span{font-size:11px;color:var(--muted)}
/* Marketplace conversation, in the existing purple theme. */
.mobile-app:has(.mch-market) :is(.mobile-sticky-header,.mobile-bottom-nav,.mobile-footer){display:none}
.mobile-app:has(.mch-market) #main{padding:0}
.mobile-app .mch-market{padding:0 16px 270px;min-height:100dvh;color:var(--text)}
.mch-market .cd-page-bar{padding:20px 0;margin:0}.mch-market .cd-page-bar h1{font-size:18px}
.mch-product{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--border)}.mch-product-cover{width:64px;height:68px;flex:none;border-radius:12px;background:#573477;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:23px;font-weight:700}.mch-product-cover small{font-size:11px;color:inherit;opacity:.85}
.mch-product>div:nth-child(2){flex:1;min-width:0}.mch-product strong{display:block;font-size:14px}.mch-product>div>small{display:block;font-size:10px;color:var(--muted);margin:5px 0}.mch-product>div>b{color:var(--purple);font-size:20px}.mch-product button{border:0;border-radius:22px;padding:10px 13px;background:var(--purple);color:white;font-size:12px}
.mch-market .mch-notice{text-align:center;font-size:10px;margin:12px 0;color:var(--muted)}
.mch-input-dock{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:520px;background:var(--panel);padding:12px 16px max(12px,env(safe-area-inset-bottom));box-sizing:border-box;border-top:1px solid var(--border);z-index:30}
.mobile-app .mch-market .mch-compose{position:static;transform:none;width:100%;max-width:none;padding:0;background:transparent;display:grid;grid-template-columns:minmax(0,1fr) 40px auto;align-items:center}.mobile-app .mch-market .mch-compose textarea{box-sizing:border-box;height:44px;min-height:44px;max-height:44px;resize:none;border-radius:22px;background:var(--panel2);font-size:16px;line-height:22px;padding:11px 14px}.mobile-app .mch-market .mch-compose button{background:var(--purple);border-radius:22px;padding:0 13px;font-size:13px}.mobile-app .mch-market .mch-compose .mch-plus{background:var(--panel2);color:var(--text)!important;padding:0;font-size:25px}
.mch-tools:not([hidden]){display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:20px}.mch-tools button{border:0;background:none;color:var(--text);display:grid;justify-items:center;gap:9px;font-size:12px}.mch-tools b{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:var(--panel2);font-size:26px;font-weight:400}.mch-tool-status{font-size:11px;color:var(--muted);margin:8px 0 0}.mch-tool-status:empty{display:none}
/* Match quote tiles: neutral surfaces, purple accents. */
html:root[data-surface=mobile][data-theme=light] .mobile-app:is([data-mobile-route=copy],[data-mobile-route=publisher],[data-mobile-route=publisher-preview]) .cd-page{--cd-surface:#fff;--cd-soft:#f2f2f2;--cd-line:#e8e8e8;--cd-text:#3c2753;--cd-muted:#8a7c99;--cd-accent:#8757b5}
html:root[data-theme=light] .mobile-app .cd-page .mc-role-switch{background:#f2f2f2;border-color:#e8e8e8}
.mobile-app:is([data-mobile-route=copy],[data-mobile-route=publisher]) .mc-space-notice{display:none!important}
.mobile-app:has(.sm-page,.sm-detail) .mobile-live-dock,.mobile-app:has(.sm-page,.sm-detail) .mobile-footer{display:none}
.sm-page,.sm-detail{color:var(--text);padding-bottom:20px}.sm-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 20px}.sm-heading h1{margin:0;font-size:24px}.sm-heading a,.sm-heading>span{font-size:12px;color:var(--purple)}
.sm-search{display:flex;align-items:center;gap:10px;border:1.5px solid var(--purple);border-radius:24px;padding:4px 5px 4px 13px}.sm-search svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}.mobile-app .sm-search input{background:none;border:0;box-shadow:none;min-width:0;width:100%;padding:6px 0;font-size:13px;min-height:32px}.sm-search button{background:var(--purple);color:#fff;border:0;border-radius:20px;padding:8px 16px;white-space:nowrap;font-size:12px}
.sm-categories{display:flex;gap:24px;overflow:auto;margin:18px 0}.sm-categories button,.sm-toolbar button,.sm-platform button{border:0;background:none;white-space:nowrap;color:var(--muted);font:inherit;font-size:13px;padding:7px 0}.sm-categories button[aria-pressed=true]{color:var(--purple);font-weight:700;box-shadow:inset 0 -3px var(--purple)}
.sm-banner{background:var(--panel2);border-radius:14px;padding:18px;display:flex;align-items:center;justify-content:space-between}.sm-banner small{color:var(--purple);font-size:9px;letter-spacing:.14em}.sm-banner strong{display:block;font-size:18px;margin:6px 0}.sm-banner span{color:var(--muted);font-size:11px}.sm-banner>b{color:var(--purple);font-size:34px;opacity:.55}
.sm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:17px}.sm-toolbar button[aria-pressed=true]{color:var(--purple);font-weight:600}.sm-platform{display:flex;gap:12px;padding:8px 0}.sm-platform button{padding:6px 15px;background:var(--panel2);border-radius:20px}.sm-platform button[aria-pressed=true]{color:var(--purple)}.sm-preview{font-size:10px;color:var(--muted);margin:12px 0 16px}
.sm-products{display:grid;gap:20px}.sm-item{display:grid;grid-template-columns:132px minmax(0,1fr);gap:13px;color:var(--text)}.sm-item-info{display:flex;flex-direction:column;min-width:0}.sm-item h2{font-size:15px;line-height:1.55;margin:0 0 7px;font-weight:600}.sm-tags{display:flex;flex-wrap:wrap;gap:5px}.sm-tags span{font-size:10px;color:var(--muted);padding:3px 6px;background:var(--panel2);border-radius:4px}.sm-price{display:block;margin:12px 0 9px;color:var(--purple);font-size:23px;line-height:1.2}.sm-price small{font-size:11px;font-weight:400}.sm-seller{display:flex;align-items:center;gap:6px;font-size:11px;margin-top:auto}.sm-seller>span{display:grid;place-items:center;width:23px;height:23px;background:var(--panel2);border-radius:50%;font-size:9px;color:var(--purple)}.sm-seller small{color:var(--muted);font-size:9px}
.sm-cover{position:relative;overflow:hidden;min-height:154px;border-radius:12px;padding:13px 10px;box-sizing:border-box;display:flex;flex-direction:column;background:#302245;color:#eee5ff}.sm-cover.blue{background:#203647;color:#d7edfc}.sm-cover.green{background:#233b38;color:#d9f0e6}.sm-cover small{font-size:7px;letter-spacing:.08em;opacity:.6}.sm-cover strong{font-size:20px;margin-top:20px;letter-spacing:.04em}.sm-cover>span{font-size:9px;letter-spacing:.08em;margin-top:3px;opacity:.65}.sm-cover svg{width:100%;height:35px;margin-top:auto;fill:none;stroke:currentColor;stroke-width:1.5;opacity:.55}.sm-cover em{font-size:8px;font-style:normal;opacity:.65}
.sm-products.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.sm-products.grid .sm-item{display:flex;flex-direction:column;gap:10px}.sm-products.grid .sm-cover{height:165px}.sm-products.grid .sm-item h2{font-size:14px}.sm-products.grid .sm-seller small{display:none}.sm-empty{padding:40px 0;text-align:center;color:var(--muted);grid-column:1/-1}.sm-empty button{display:block;margin:12px auto;border:0;background:var(--panel2);padding:9px 16px;color:var(--purple);border-radius:8px}
.sm-detail>.sm-cover{height:220px;padding:22px}.sm-detail .sm-cover strong{font-size:32px}.sm-detail .sm-cover svg{height:75px}.sm-detail-price{display:block;color:var(--purple);font-size:28px;margin:20px 0 10px}.sm-detail h2{font-size:20px;line-height:1.5}.sm-detail>p{font-size:14px;line-height:1.9;color:var(--muted)}.sm-detail dl{margin:25px 0}.sm-detail dl>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border);padding:13px 0;font-size:12px}.sm-detail dt{color:var(--muted)}.sm-detail dd{margin:0;text-align:right}.sm-detail-actions{display:flex;gap:12px}.sm-detail-actions>*{flex:1;padding:13px;text-align:center;background:var(--purple);color:white;border:0;border-radius:24px;font-size:14px}.sm-detail-actions button{background:var(--panel2);color:var(--muted)}
/* Strategy typography and icon scale follow the development storefront. */
.mobile-app .m-follow-board{font-family:inherit}
.mobile-app .m-follow-board .m-board-heading h1{font-size:24px;font-weight:700;line-height:1.3;letter-spacing:0}
.mobile-app .m-follow-board .m-board-ranking button{font-size:13px;font-weight:400}
.mobile-app .m-follow-board .m-board-ranking button.active{font-weight:700}
.mobile-app .m-follow-board .m-board-periods button{font-size:12px;font-weight:400}
.mobile-app .m-follow-board .m-board-periods button.active{font-weight:600}
.mobile-app .m-follow-board :is(.m-board-summary,.m-board-summary button,.m-board-note,.sb-demo-caption){font-size:10px}
.mobile-app .m-follow-board :is(.m-board-search-toggle,.m-board-filter-open,.m-board-view-switch button) svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mobile-app .m-follow-board .m-board-search-toggle{display:grid;place-items:center}
.mobile-app .m-follow-board :is(.sb-card-person>strong,.sb-row-name strong){font-size:15px;font-weight:600;line-height:1.45;letter-spacing:0}
.mobile-app .m-follow-board .sb-row-name small{font-size:10px;font-weight:400}
.mobile-app .m-follow-board .sb-row-value strong{font-size:23px;font-weight:600;line-height:1.2;letter-spacing:0}
.mobile-app .m-follow-board .sb-card-value{font-size:23px;font-weight:600;line-height:1.2;letter-spacing:0}
.mobile-app .m-follow-board :is(.sb-card-name,.sb-card-period,.sb-card-server){font-size:10px;line-height:1.5}
.mobile-app .m-follow-board .sb-card-server b{font-size:11px;font-weight:500}
.mobile-app .m-follow-board .sb-card-balance strong{font-size:15px;font-weight:600}
.mobile-app .m-follow-board :is(.sb-card-bottom,.sb-list-follow){font-size:11px}
.mobile-app .m-follow-board .sb-card-bottom b{font-size:12px;font-weight:600}
.mobile-app .m-follow-board .avatar{border-radius:10px;font-family:inherit;font-size:15px;font-weight:600;box-shadow:none}
.mobile-app .m-page-title:has(.m-community-messages){gap:12px;flex-wrap:wrap}.mobile-app .m-page-title:has(.m-community-messages)>div{flex:1;min-width:0}.mobile-app .m-community-messages{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:13px;color:var(--purple);padding:9px 0}.mobile-app .m-community-messages svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.mobile-app .m-home-community{margin-top:28px}.mobile-app .m-home-community>.m-page{padding:0}.mobile-app .m-home-community .m-page-title h1{font-size:22px}

/* Message inbox: compact native-style rows, using the approved purple palette. */
.mobile-app:has(.mch-inbox) :is(.mobile-live-dock,.mobile-footer){display:none}
.mobile-app:has(.mch-inbox) #main{padding:0}
.mobile-app .mch-inbox{padding:24px 18px 90px;min-height:calc(100dvh - 70px);color:var(--text)}
.mch-inbox-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 22px}
.mobile-app .mch-inbox-heading h1{font-size:27px;font-weight:700;margin:0;line-height:1.3}
.mch-inbox-heading>span{font-size:10px;color:var(--muted)}
.mobile-app .mch-inbox-search{display:flex;align-items:center;gap:10px;border-radius:25px;background:var(--panel2);padding:0 16px;height:46px}
.mch-inbox-search svg{width:23px;height:23px;stroke:var(--muted);stroke-width:1.6;fill:none;flex:none}
html:root[data-surface=mobile] .mobile-app .mch-inbox-search input{padding:0;width:100%;min-width:0;border:0;background:transparent;box-shadow:none;font-size:16px;height:44px;color:var(--text);outline:none}
.mch-inbox-search:focus-within{outline:2px solid var(--purple);outline-offset:2px}
.mch-inbox-filters{display:flex;gap:9px;padding:16px 0 13px;border-bottom:1px solid var(--border)}
.mch-inbox-filters button{border:0;border-radius:22px;padding:9px 16px;background:var(--panel2);color:var(--muted);font:inherit;font-size:14px;cursor:pointer}
.mch-inbox-filters button[aria-pressed=true]{background:var(--purple);color:#fff}
.mch-inbox-row{display:flex;gap:13px;align-items:center;min-height:95px;padding:16px 0;color:var(--text);text-decoration:none;border-bottom:1px solid var(--border)}
.mch-inbox-avatar{width:52px;height:52px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--panel2);color:var(--purple);font-size:23px;font-weight:600}
.mch-inbox-avatar.support{background:var(--purple);color:#fff}
.mch-inbox-avatar .icon{width:25px;height:25px}
.mch-inbox-copy{flex:1;min-width:0}.mch-inbox-name{display:flex;align-items:center;gap:7px}
.mch-inbox-name strong{font-size:17px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.mch-inbox-name>span{font-size:10px;color:var(--muted);border:1px solid var(--border);border-radius:4px;padding:1px 4px;white-space:nowrap}
.mch-inbox-copy p{font-size:14px;line-height:1.4;color:var(--muted);margin:6px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mch-inbox-copy time{display:block;margin-top:6px;font-size:11px;color:var(--muted)}.mch-inbox-copy time:empty{display:none}
.mch-item-thumb{display:grid;place-content:center;text-align:center;width:54px;height:58px;flex:none;background:var(--panel2);color:var(--purple);border-radius:9px;font-weight:600;font-size:12px}.mch-item-thumb small{font-size:9px;margin-top:4px}
.mch-inbox-empty{text-align:center;padding:70px 0;color:var(--muted);font-size:13px}

/* Shared selection feedback for every mobile navigation and tab. */
.mobile-app :is(button,.mobile-bottom-nav a,[role=tab]){ -webkit-tap-highlight-color:transparent; }
.mobile-app :is(button,[role=tab]):not(:disabled):active{ text-shadow:0 0 12px #a581e0aa; }
.mobile-app :is(button.active,button[aria-pressed=true],[role=tab][aria-selected=true],.mc-role-switch a.active){animation:up-label-glow 460ms ease-out both}
.mobile-app .mobile-bottom-nav a.active>span{display:inline-block;animation:up-nav-label 480ms cubic-bezier(.2,.75,.25,1) both}
.mobile-app .mobile-bottom-nav a.active>.icon{transform-origin:50% 75%;animation:up-nav-wave 560ms cubic-bezier(.2,.75,.25,1) both}
.mobile-app .mobile-bottom-nav a:active>.icon{scale:.9}
.mobile-app .mobile-bottom-nav a>.icon{transition:scale 140ms ease}
@keyframes up-label-glow{0%{text-shadow:0 0 0 transparent}35%{text-shadow:0 0 12px #a581e0bb,0 0 3px #a581e066}100%{text-shadow:0 0 0 transparent}}
@keyframes up-nav-label{0%{translate:0 3px;opacity:.65;text-shadow:none}45%{translate:0 -2px;opacity:1;text-shadow:0 0 12px #a581e0bb}100%{translate:0 0;opacity:1;text-shadow:none}}
@keyframes up-nav-wave{0%{transform:translateY(2px) rotate(0) scale(.92)}30%{transform:translateY(-3px) rotate(-12deg) scale(1.12)}55%{transform:translateY(-2px) rotate(9deg) scale(1.06)}78%{transform:translateY(0) rotate(-4deg) scale(1.02)}100%{transform:translateY(0) rotate(0) scale(1)}}
@media(prefers-reduced-motion:reduce){
 .mobile-app :is(button.active,button[aria-pressed=true],[role=tab][aria-selected=true],.mc-role-switch a.active),.mobile-app .mobile-bottom-nav a.active>span,.mobile-app .mobile-bottom-nav a.active>.icon{animation:none!important}
 .mobile-app .mobile-bottom-nav a>.icon{transition:none}.mobile-app .mobile-bottom-nav a:active>.icon{scale:1}
}

/* One search-field appearance across inbox, marketplace, strategy and account filters. */
html:root[data-surface=mobile] .mobile-app :is(.up-search,.sm-search,.mch-inbox-search,.m-board-search){
 display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;min-width:0;
 height:46px;min-height:46px;padding:0 16px;border:0;border-radius:25px;
 background:var(--panel2);color:var(--muted);box-shadow:none;
}
html:root[data-surface=mobile] .mobile-app :is(.up-search,.sm-search,.mch-inbox-search,.m-board-search)>svg{
 width:23px;height:23px;flex:0 0 23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
html:root[data-surface=mobile] .mobile-app :is(.up-search,.sm-search,.mch-inbox-search,.m-board-search)>input{
 display:block;flex:1;width:100%;min-width:0;height:44px;min-height:0;margin:0;padding:0;
 border:0;border-radius:0;background:transparent;color:var(--text);box-shadow:none;outline:none;
 font:inherit;font-size:16px;font-weight:400;line-height:1.4;
}
html:root[data-surface=mobile] .mobile-app :is(.up-search,.sm-search,.mch-inbox-search,.m-board-search)>input::placeholder{color:var(--muted);opacity:1}
html:root[data-surface=mobile] .mobile-app :is(.up-search,.sm-search,.mch-inbox-search,.m-board-search):focus-within{outline:2px solid var(--purple);outline-offset:2px}
.mobile-app .sm-search>.sr-only{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.mobile-app .m-profile-overview{padding:20px 18px 12px;border:1px solid var(--border);border-radius:18px;background:var(--panel);margin:20px 0;color:var(--text)}
.m-profile-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-app .m-profile-overview-heading h2{font-size:18px;margin:0;font-weight:600}.m-profile-overview-heading a{font-size:12px;color:var(--purple)}
.m-profile-equity{margin:22px 0 18px}.m-profile-equity>span,.m-profile-funds span{font-size:12px;color:var(--muted)}.m-profile-equity strong{display:block;font-size:32px;font-weight:600;margin-top:6px;line-height:1.2}
.m-profile-funds{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.m-profile-funds strong{display:block;margin-top:6px;font-size:22px;font-weight:500}
.m-profile-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border-top:1px solid var(--border);padding:18px 0 8px}.m-profile-overview-grid a{display:grid;gap:7px;color:var(--text);text-align:center}.m-profile-overview-grid strong{font-size:21px;font-weight:600}.m-profile-overview-grid span{font-size:11px;color:var(--muted)}.m-profile-overview>p{font-size:10px;color:var(--muted);margin:12px 0 0}

/* Personal menu: only customer account and copy-trading tasks. */
.mobile-app[data-mobile-route=profile] .mobile-footer{display:none}
.mobile-app[data-mobile-route=profile] .m-menu{margin-bottom:16px;padding:0 16px;background:var(--panel);border-color:var(--border)}
.mobile-app[data-mobile-route=profile] .m-menu>a{min-height:56px;padding:15px 0;gap:13px;border-color:var(--border)}
.mobile-app[data-mobile-route=profile] .m-menu span{font-size:14px;font-weight:500}
.mobile-app[data-mobile-route=profile] .m-menu .icon{width:20px;height:20px;color:var(--purple);stroke-linecap:round;stroke-linejoin:round}
.mobile-app[data-mobile-route=profile] .m-menu b{margin-left:auto;font-size:20px;color:var(--muted)}

.mobile-app .m-profile-overview-grid>div{display:grid;gap:7px;color:var(--text);text-align:center}
.mobile-app[data-mobile-route=profile] .m-menu>button{display:flex;align-items:center;gap:13px;min-height:56px;padding:15px 0;width:100%;font:inherit;text-align:left;color:var(--text);border:0;border-bottom:1px solid var(--border);background:none;cursor:pointer}
.mobile-app[data-mobile-route=bindings] :is(.mobile-live-dock,.mobile-footer){display:none}
.m-binding-heading{display:flex;align-items:center;gap:18px;margin-bottom:24px}.m-binding-heading a{font-size:24px;color:var(--purple)}.mobile-app .m-binding-heading h1{margin:0;font-size:23px}
.m-binding-card{background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:18px;margin:16px 0}.mobile-app .m-binding-card h2{font-size:16px;margin:0 0 18px}.m-binding-card form{gap:16px}.m-binding-card label{font-size:13px;color:var(--muted)}
.m-binding-row{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}.m-binding-row:last-child{border:0}.m-binding-row>span{font-size:13px;flex:none}.m-binding-row>div{text-align:right;min-width:0}.m-binding-row strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}.m-binding-row small{display:block;color:var(--muted);font-size:10px;margin-top:6px}
.m-binding-gate{text-align:center;padding:32px 14px}.m-binding-gate p{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:20px}

.mobile-app .mch-advanced{display:flex;flex-direction:column;height:100dvh;min-height:0;padding:0 16px env(safe-area-inset-bottom);box-sizing:border-box;overflow:hidden}
.mch-advanced>.cd-page-bar,.mch-advanced>.mch-product,.mch-advanced>.mch-notice{flex:none}
.mch-advanced-host{flex:1;min-height:0;overflow:hidden}
.mch-advanced-host>vue-advanced-chat{display:block;height:100%;font-family:inherit}
.mch-product-link{color:inherit;text-decoration:none}
.mch-product-link>span{font-size:12px;color:var(--purple);white-space:nowrap}
.mobile-app:has(.mch-advanced){overflow:hidden}
.mobile-app:has(.mch-advanced) .mobile-device{height:100dvh;min-height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;overflow:hidden}
.mobile-app:has(.mch-advanced) #main{height:100%;min-height:0;overflow:hidden}
.mobile-app .mch-advanced{height:var(--chat-height,100dvh)}

/* Keep both header controls available without the old boxed backgrounds. */
html:root[data-surface=mobile][data-theme] .mobile-app .mobile-top-actions :is(.theme-switch,.language-switch){display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:36px;min-height:36px;padding:0;border:0;background:transparent;box-shadow:none;color:var(--purple);cursor:pointer}
.mobile-app .mobile-top-actions .theme-switch span{display:none}
.mobile-app .mobile-top-actions .theme-switch svg{width:20px;height:20px}
html:root[data-surface=mobile][data-theme] .mobile-top-actions :is(.theme-switch,.language-switch):focus-visible{outline:2px solid var(--purple);outline-offset:2px}

.mobile-app .mobile-market-widget{display:block;padding:10px 16px 4px;min-height:124px;color:var(--text)}
.market-widget-toolbar{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);padding-bottom:5px}
.market-widget-toolbar button{border:0;background:none;color:var(--purple);padding:5px;font:inherit;cursor:pointer}
.market-widget-stage{height:92px;border-radius:12px;overflow:hidden;background:var(--panel2)}
.market-widget-stage iframe{display:block;width:100%;height:92px;border:0;background:transparent}
.mobile-market-widget [data-widget-status]{font-size:12px;color:var(--muted);margin:8px 0;line-height:1.5}
.mobile-market-widget [data-widget-status][hidden]{display:none}
