/* Shared desktop shell. Mobile keeps its existing components and information order. */
.desktop-only{display:none}
.app-header-actions{display:flex;align-items:center;gap:8px}
.ha-asset-desktop-name,.ha-asset-network,.ha-asset-volume,.ha-column-desktop,.ha-action-subtitle{display:none}
@media(max-width:1023px){html body .page-root .navbar-desktop-only{display:none!important}}
@media(min-width:1024px){
 :root{--app-desktop-max:1360px;--app-desktop-gutter:32px;--app-header-height:68px;--ia-bottom-space:0px;--jg-type-control-size:14px}
 html[data-theme] body{--jg-type-control-size:14px;font-size:15px}
 html[data-theme]{scroll-padding-top:88px!important;scroll-padding-bottom:28px}
 html[data-theme] body .page-root{padding-top:0!important;padding-bottom:28px!important;min-width:0}
 html[data-theme] body .page-root .mobile-tabbar{display:none!important}
 html[data-theme] body .page-root .navbar{display:block!important;position:sticky!important;top:0!important;z-index:80!important;width:100%;height:68px!important}
 html[data-theme] body .navbar>.app-header-inner{width:min(calc(100% - 2 * var(--app-desktop-gutter)),var(--app-desktop-max));max-width:var(--app-desktop-max);height:68px!important;min-height:68px!important;padding:0!important;margin:auto;display:grid;grid-template-columns:1fr auto 1fr;gap:20px}
 html[data-theme] body .navbar .desktop-only{display:inline-flex;align-items:center}
 html[data-theme] body .navbar .brand-logo-symbol{width:44px;height:44px;flex-basis:44px}
 html[data-theme] body .navbar .app-header-brand-name{font-size:14px;font-weight:650!important;letter-spacing:.035em;color:#254665;white-space:nowrap}
 html[data-theme] body .navbar .nav-desktop-grid{display:flex!important;gap:3px}
 html[data-theme] body .navbar .nav-link{min-height:44px;padding:9px 14px!important;display:flex;align-items:center;justify-content:center}
 html[data-theme] body .navbar .nav-link.active:after{bottom:-12px}
 html[data-theme] body .navbar .app-header-actions{justify-content:flex-end;gap:10px;min-width:0}
 html[data-theme] body .navbar :is(.app-header-assistant,.app-header-account){min-height:42px;justify-content:center;color:#397292;border:1px solid #dce8f2;border-radius:10px;background:#f8fcff;gap:6px;white-space:nowrap;font-size:13px;padding:0 10px}
 html[data-theme] body .navbar .app-header-account{width:42px;flex:none}
 html[data-theme] body .navbar .app-header-language{flex:none}
 html[data-theme] body .navbar .app-header-language .lang-current{height:42px;min-height:42px;padding:0 9px;gap:6px}
 html[data-theme] body .navbar #wallet-connect-btn{height:42px;padding:0 12px!important;max-width:165px}
 html[data-theme] body .navbar #wallet-btn-text{display:inline!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:125px}
 html[data-theme] body .page-root :is(.ha-shell,.market-page,.td-market-page,.swap-main-section,.radar-page,.ws-shell,.news-discover-shell){box-sizing:border-box;width:min(calc(100% - 2 * var(--app-desktop-gutter)),var(--app-desktop-max))!important;max-width:var(--app-desktop-max)!important;margin-left:auto!important;margin-right:auto!important;min-width:0}
 html[data-theme] body .page-root .market-page{--market-navbar-height:68px}
 html[data-theme] body .page-root :is(input,textarea,select,button){scroll-margin-top:88px}
 html[data-theme] body .page-root :is(a,button,summary,[role=button]){cursor:pointer}
 html[data-theme] body :is(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:2px solid #078be7!important;outline-offset:3px!important}
 html[data-theme] body .page-root :is(a,button){transition:background-color .15s,border-color .15s,box-shadow .15s}
 html[data-theme] body .page-root :is(.ha-asset-row,.news-compact-row,.news-story,.ws-service,.ha-setting-row):hover{background-color:#f4faff;border-color:#b9d9f2}
 html[data-theme] body .page-root :is(.app-header-assistant,.app-header-account,.ha-quick-actions>a):hover{border-color:#9ccdf0;background-color:#edf7ff}
 html body .modal-backdrop{align-items:center!important;justify-content:center!important;padding:32px!important}
 html body .modal-backdrop .modal-content{width:min(100%,640px)!important;max-width:640px!important;max-height:calc(100dvh - 64px)!important;overflow:auto;border-radius:18px!important}
 html body .modal-content :is(button,a,input,select){min-height:40px}
 html[data-page="home"] body .page-root.home-page .ha-shell{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:17px;padding-top:20px;padding-bottom:0!important;align-items:stretch}
 html[data-page="home"] body .page-root.home-page .ha-welcome{grid-column:1/9;grid-row:1;grid-template-columns:1fr;align-content:space-between;min-height:248px;height:100%;padding:22px;gap:16px}
 html[data-page="home"] body .page-root.home-page .ha-brand-copy h1{font-size:32px;line-height:1.35}
 html[data-page="home"] body .page-root.home-page .ha-brand-copy>.ha-muted{font-size:14px;margin-top:8px}
 html[data-page="home"] body .page-root.home-page .ha-eyebrow{font-size:14px;margin-bottom:8px}
 html[data-page="home"] body .page-root.home-page .ha-home-wallet{max-width:630px;padding:14px;gap:12px}
 html[data-page="home"] body .page-root.home-page .ha-home-wallet>.ha-icon{display:none}
 html[data-page="home"] body .page-root.home-page .ha-wallet-copy strong{font-size:14px}
 html[data-page="home"] body .page-root.home-page .ha-wallet-copy span{font-size:12px}
 html[data-page="home"] body .page-root.home-page .ha-radar-feature{grid-column:9/13;grid-row:1;min-height:248px;height:100%;padding:20px;display:flex;flex-direction:column;justify-content:space-between}
 html[data-page="home"] body .page-root.home-page .ha-radar-copy{max-width:100%;z-index:1}
 html[data-page="home"] body .page-root.home-page .ha-radar-copy p{font-size:14px;max-width:calc(100% - 110px);line-height:1.7;white-space:normal!important}
 html[data-page="home"] body .page-root.home-page .ha-radar-eyebrow{font-size:12px}
 html[data-page="home"] body .page-root.home-page #home-radar-title{font-size:24px;margin:10px 0}
 html[data-page="home"] body .page-root.home-page .ha-radar-visual{width:130px;height:130px;right:12px;top:70px}
 html[data-page="home"] body .page-root.home-page .ha-radar-actions{margin-top:18px;gap:8px}
 html[data-page="home"] body .page-root.home-page .ha-radar-actions>a{min-height:40px;font-size:13px;padding:0 13px}
 html[data-page="home"] body .page-root.home-page .ha-quick-actions{grid-column:1/-1;grid-row:2;gap:17px}
 html[data-page="home"] body .page-root.home-page .ha-quick-actions>a{min-height:68px!important;padding:12px 18px!important;gap:12px;background:#fff}
 html[data-page="home"] body .page-root.home-page .ha-shell .ha-quick-actions strong{font-size:17px!important}
 html[data-page="home"] body .page-root.home-page .ha-action-subtitle{display:block;font-size:12px;color:#758497;margin-top:3px}
 html[data-page="home"] body .page-root.home-page .ha-market{grid-column:1/8;grid-row:3;padding:17px;min-width:0;display:flex;flex-direction:column;min-height:520px}
 html[data-page="home"] body .page-root.home-page .ha-news{grid-column:8/13;grid-row:3;padding:17px;min-width:0;display:flex;flex-direction:column;min-height:520px}
 html[data-page="home"] body .page-root.home-page .ha-hot-assets{flex:1;min-height:372px}
 html[data-page="home"] body .page-root.home-page .ha-radar-preview{grid-column:1/-1;grid-row:4;padding:17px 20px;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 16px}
 html[data-page="home"] body .page-root.home-page .ha-radar-preview .ha-section-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0}
 html[data-page="home"] body .page-root.home-page .ha-radar-preview .ha-section-heading h2{white-space:nowrap;margin:0}
 html[data-page="home"] body .page-root.home-page .ha-radar-preview [data-radar-preview-status]{grid-column:1/-1;margin:0}
 html[data-page="home"] body .page-root.home-page .ha-radar-preview-list{grid-column:1/-1;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0}
 html[data-page="home"] body .page-root.home-page .ha-radar-preview-list a{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:6px 8px;padding:12px 14px;border:1px solid #eef2f7;border-radius:10px;min-height:64px}
 html[data-page="home"] body .page-root.home-page .ha-radar-preview-list a b{margin-left:0;font-size:18px}
 html[data-page="home"] body .page-root.home-page .ha-radar-preview-list a strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html[data-page="home"] body .page-root.home-page .ha-radar-preview > a.ha-muted{grid-column:1/-1;justify-self:end}
 html[data-page="home"] body .page-root.home-page .ha-hot-assets[data-home-skeleton]{display:flex;flex-direction:column;min-height:372px}
 html[data-page="home"] body .page-root.home-page .ha-hot-assets[data-home-skeleton] .ha-empty{flex:none;margin:0 0 8px;padding:8px 10px;text-align:left;border-radius:8px;background:#f4f8fd;border:1px solid #dce8f4}
 html[data-page="home"] body .page-root.home-page .ha-hot-assets[data-home-skeleton] .ha-asset-skeleton{flex:1 1 0;min-height:54px}
 html[data-page="home"] body .page-root.home-page .ha-retry:not(.hidden){margin-top:8px;align-self:flex-start}
 html[data-page="home"] body .page-root.home-page .news-preview-list{flex:1}
 html[data-page="home"] body .page-root.home-page :is(.ha-section-heading h2,.news-section-heading h2){font-size:20px;line-height:1.4}
 html[data-page="home"] body .page-root.home-page :is(.ha-section-heading>a,.news-section-heading>a){font-size:13px}
 html[data-page="home"] body .page-root.home-page :is(#home-market-status,.news-status){font-size:12px;line-height:1.6}
 html[data-page="home"] body .page-root.home-page :is(.ha-asset-columns,.ha-asset-row){grid-template-columns:minmax(100px,1fr) 66px 80px 88px 66px;gap:8px;align-items:center}
 html[data-page="home"] body .page-root.home-page .ha-asset-columns{font-size:12px;padding:13px 0 9px}
 html[data-page="home"] body .page-root.home-page .ha-asset-row{min-height:62px;padding:9px 0}
 html[data-page="home"] body .page-root.home-page :is(.ha-asset-network,.ha-asset-volume,.ha-column-desktop){display:block}
 html[data-page="home"] body .page-root.home-page .ha-asset-identity strong{font-size:14px}
 html[data-page="home"] body .page-root.home-page .ha-asset-desktop-name{display:block;font-size:12px;color:#78889b;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html[data-page="home"] body .page-root.home-page .ha-asset-mobile-meta{display:none!important}
 html[data-page="home"] body .page-root.home-page .ha-column-mobile{display:none}
 html[data-page="home"] body .page-root.home-page .ha-asset-network{font-size:12px;white-space:nowrap}
 html[data-page="home"] body .page-root.home-page .ha-asset-network .jg-icon{vertical-align:middle;margin-right:4px}
 html[data-page="home"] body .page-root.home-page :is(.ha-asset-price,.ha-asset-change,.ha-asset-volume){font-size:13px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
 html[data-page="home"] body .page-root.home-page .news-preview-list{display:flex;flex-direction:column;gap:8px}
 html[data-page="home"] body .page-root.home-page .news-headline{display:grid;grid-template-columns:1fr;min-height:0}
 html[data-page="home"] body .page-root.home-page .news-headline>.news-media{width:100%;aspect-ratio:16/9;height:auto;max-height:205px}
 html[data-page="home"] body .page-root.home-page .news-headline-body{padding:12px}
 html[data-page="home"] body .page-root.home-page .news-headline h3{font-size:16px!important;-webkit-line-clamp:2}
 html[data-page="home"] body .page-root.home-page .news-compact-row{padding:10px 0}
 html[data-page="home"] body .page-root.home-page .news-compact-row h3{font-size:14px;line-height:1.55}
 html[data-page="home"] body .page-root.home-page .news-meta{font-size:12px}
}
@media(min-width:1440px){
 :root{--app-desktop-max:1440px;--app-desktop-gutter:28px}
 html[data-page="home"] body .page-root.home-page .ha-shell{gap:16px;padding-top:18px}
}
@media(min-width:1600px){
 :root{--app-desktop-max:1520px;--app-desktop-gutter:32px}
}
@media(min-width:1920px){
 :root{--app-desktop-max:1600px}
}
@media(min-width:1024px) and (max-width:1199px){
 html[data-theme] body .navbar .app-header-brand-name{display:none}
 html[data-theme] body .navbar .nav-link{padding:9px 10px!important}
 html[data-theme] body .navbar>.app-header-inner{gap:12px;grid-template-columns:80px 1fr auto}
 html[data-theme] body .navbar .app-header-assistant{width:42px;padding:0}
 html[data-theme] body .navbar .app-header-assistant span{display:none}
 html[data-theme] body .navbar .nav-desktop-grid{justify-content:center}
 html[data-page="home"] body .page-root.home-page .ha-radar-feature{padding:20px 16px}
 html[data-page="home"] body .page-root.home-page .ha-radar-copy p{max-width:calc(100% - 70px);font-size:13px}
 html[data-page="home"] body .page-root.home-page .ha-radar-visual{width:100px;height:100px;right:5px;top:90px}
 html[data-page="home"] body .page-root.home-page .ha-radar-actions>a{padding:0 9px;font-size:12px}
 html[data-page="home"] body .page-root.home-page :is(.ha-asset-columns,.ha-asset-row){grid-template-columns:minmax(83px,1fr) 53px 69px 76px 58px;gap:6px}
 html[data-page="home"] body .page-root.home-page .ha-market{padding:16px}
}
@media(prefers-reduced-motion:reduce){html body .page-root :is(a,button){transition:none!important}}
/* Keep compact mobile controls usable without changing desktop density. */
@media(max-width:1023px){
 html[data-theme] body .navbar #wallet-connect-btn{height:44px;min-height:44px;min-width:44px}
}
