/* Home is a statement and a market directory. Orders belong to asset pages. */
.trading-home{display:grid;gap:30px}
.worth{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:clamp(24px,6vw,96px);padding:24px 34px;border-radius:26px;background:linear-gradient(115deg,#2a182c,#1e1626 50%,#15151f);border:1px solid #ffffff13}
.worth:before{content:"";position:absolute;z-index:-1;inset:0 54% 0 0;background:url(assets/wealth-glass.webp) center/cover;mask-image:linear-gradient(90deg,black 45%,transparent)}
.worth-title,.worth-cash span,#day-explain,.home-heading,.home-heading :is(a,button){display:flex;align-items:center;gap:7px}
.worth-title h1{font-size:1rem;font-weight:500;color:#eee4ef;margin:0}
.worth-title button{width:44px;height:44px;display:grid;place-items:center;color:#d4c7d8}
.worth strong{display:block;font-size:clamp(2.1rem,4vw,3.15rem);line-height:1.25;font-weight:650}
.worth :is(strong,b) small,.home-heading h2 small{font-size:.82rem;color:#bdb5c7;font-weight:400}
#day-explain,.worth-cash span{font-size:.84rem;color:#ccc3d1}
.worth-cash{padding:10px 0;display:grid;gap:5px}
.worth-cash b{font-size:1.35rem}
.home-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:clamp(30px,5vw,76px)}
.home-columns>section{min-width:0;scroll-margin-top:90px}
.home-heading{justify-content:space-between;margin-bottom:12px}
.home-heading h2{font-size:1.22rem;margin:0}
.home-heading h2 small{margin-inline-start:6px}
.home-heading :is(a,button),.home-guide a,.wealth-empty a{min-height:44px;color:#ffacd1;font-size:.9rem;display:inline-flex;align-items:center}
.wealth-row{display:grid;grid-template-columns:44px 1fr auto 16px;align-items:center;gap:12px;min-height:67px;border-bottom:1px solid #ffffff10}
.wealth-row:last-child{border:0}
.wealth-row>svg{color:#908998}
.wealth-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:color-mix(in srgb,var(--tone) 10%,transparent);overflow:hidden}
.wealth-icon img{position:static;width:100%;height:100%;object-fit:contain}
.wealth-name{display:grid;line-height:1.55}
.wealth-name small,.day-detail p,.wealth-empty p{font-size:.82rem;color:#b4afbe}
.wealth-number{font-size:1.12rem;font-weight:600}
.market-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.market-gallery a{display:flex;align-items:center;justify-content:space-between;padding:6px 10% 6px 6%;min-height:112px;border-radius:18px;border:1px solid #ffffff10;background:linear-gradient(110deg,color-mix(in srgb,var(--tone) 10%,#15151c),#16161f 78%)}
.market-gallery i{order:1;width:min(54%,104px);aspect-ratio:1;background:url(assets/markets.webp) var(--pos)/300% 200% no-repeat;mix-blend-mode:screen}
.market-gallery b{font-size:1.09rem}
@media(hover:hover){
 .market-gallery a:hover{border-color:var(--tone)}
 .wealth-row:hover,.worth-cash:hover,.home-heading :is(a,button):hover{color:#ffcce5}
}
.wealth-empty{padding:26px 0}
.wealth-switch{display:flex;padding:4px;background:#17171f;border-radius:15px;margin-bottom:16px}
.wealth-switch button{flex:1;border-radius:12px;color:#c3bccb;font-size:.88rem}
.wealth-switch button[aria-pressed=true]{background:#492238;color:#ffcee8}
.day-detail>div{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line)}
.day-detail p{line-height:1.95;margin:10px 0}
.home-guide{margin-top:12px}
@media(max-width:950px){
 .home-columns{gap:26px}
 .market-gallery a{min-height:100px;padding-inline:7%}
 .worth:before{right:64%}
}
@media(max-width:760px){
 .trading-home,.home-columns{gap:18px}
 .home-columns{grid-template-columns:minmax(0,1fr)}
 .worth{border-radius:20px;display:block;padding:10px 18px 12px}
 .worth:before{right:44%;opacity:.8}
 .worth-title h1{font-size:.91rem}
 .worth strong{font-size:clamp(1.6rem,7vw,2.1rem)}
 .worth-cash{display:flex;align-items:center;gap:10px;min-height:44px;padding:0;margin-bottom:-6px}
 .worth-cash b,.home-heading :is(a,button){font-size:.85rem}
 .worth-cash :is(span,small),#day-explain{font-size:.77rem}
 .home-heading{margin-bottom:3px}
 .home-heading h2{font-size:1.08rem}
 .wealth-row{grid-template-columns:36px 1fr auto 14px;gap:8px;min-height:55px}
 .wealth-name{font-size:.92rem}
 .wealth-name small,.home-heading h2 small{font-size:.75rem}
 .wealth-number{font-size:1rem}
 .wealth-icon{width:35px;height:35px}
 .market-gallery{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
 .market-gallery a{flex-direction:column-reverse;justify-content:center;padding:4px 0;min-height:72px;background:none;border:0;gap:4px}
 .market-gallery i{width:min(100%,60px);border-radius:14px}
 .market-gallery b{font-size:.82rem}
}
@media(max-width:360px){
 .market-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
 .worth{padding-inline:12px}
 .worth:before{opacity:.42}
}


.order-impact{padding:14px 15px;border:1px solid #37343f;background:#101017;border-radius:13px;margin-top:13px}
.order-impact h3{font-size:.84rem;font-weight:600;margin:0 0 11px}
.impact-line{display:grid;grid-template-columns:1fr auto 18px auto;align-items:center;gap:5px 8px;margin-top:10px;font-size:.81rem}
.impact-line bdi:first-of-type,.impact-line span[aria-label]{color:#aaa7b5}
.impact-line i{grid-column:1/-1;height:5px;border-radius:4px;position:relative;background:linear-gradient(to left,var(--color) var(--after),#34333e var(--after))}
.impact-line i:after{content:"";position:absolute;right:var(--before);width:2px;height:9px;background:#fff;top:-2px}
.lookup-shortcuts{padding:8px 0 12px;border-bottom:1px solid var(--line)}
.lookup-shortcuts strong{font-size:.86rem;color:var(--muted)}
.lookup-shortcuts div{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}
.lookup-shortcuts button,.market-choice button{padding:7px 12px;border-radius:12px;background:#ff75b312;color:#ffbada;min-height:44px}
.market-choice{justify-content:space-between;margin:22px 0 13px}
.market-choice h2{font-size:1.1rem}
.trading-home #day-explain{min-height:44px;margin-block:-5px -7px;align-items:center;text-align:right;border-radius:9px}
#day-explain:hover{color:white}
#day-detail{scroll-margin-block:90px}
.market-board #compare-open{display:flex;align-items:center;min-height:44px;gap:6px}
.view-market .product-card{gap:11px;padding:18px}
.view-market .product-card .product-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.view-market .product-top h2 a{min-height:32px}
.view-market .product-top .coin{width:42px;height:42px}
.view-market .product-card .product-quote{padding-block:6px}
.view-market .product-guide{border-top:1px solid #ffffff12}
@media(max-width:365px){
 .view-market .product-card{padding:13px}
 .view-market .product-card .product-actions{gap:7px}
 .view-market .product-card .product-actions a{font-size:.8rem}
}
/* Hit areas remain usable on narrow touch screens without enlarging glyphs. */
main .ad-desk .ad-chart :is(.periods,.ax-tools) button,
main .trading-home .ad-chart :is(.periods,.ax-tools) button,
main :is(.star,.alert-button),#ai-source{min-height:44px;min-width:44px}
main :is(.page-top,.ad-breadcrumb,.product-top,.market-positions,.profile-header) a,
main .wealth-foot a{display:inline-flex;align-items:center;min-height:44px}
main .market-positions a{display:grid}
main .ad-desk .ad-chart .chart-header{flex-wrap:wrap}
main .ad-desk .ad-chart .ax-tools button{padding-inline:4px}
@media(max-width:410px){
 main .ad-desk .ad-chart .periods{gap:0}
 main .ad-desk .ad-chart .periods button{padding-inline:4px}
 main .ad-desk .ad-chart .ax-tools{margin-inline-start:auto}
}
.market-budget{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;width:100%;margin:0 0 15px;border-radius:12px;border:1px solid #ffffff20;background:#191925;color:#f9cde3}
#budget-lab{width:min(590px,calc(100vw - 24px));max-height:90dvh;overflow:auto;margin:auto;padding:clamp(16px,4vw,26px);border-radius:22px;background:#16161f;color:#f8f6fb;border:1px solid #383541;box-shadow:0 25px 100px #0007}
#budget-lab::backdrop{background:#07070bbd;backdrop-filter:blur(6px)}
#budget-lab header,.budget-input,.budget-pair section>div{display:flex;align-items:center;justify-content:space-between;gap:8px}
#budget-lab h2{font-size:1.2rem}
#budget-lab header button{min-width:44px;font-size:1.6rem}
#budget-lab p{font-size:.88rem;line-height:1.85;color:#c4c0ce;margin:10px 0 16px}
#budget-lab button{min-height:44px;border-radius:11px;padding:6px 11px;color:#ffb9db;background:#322336}
.budget-input{margin:8px 0 20px}
.budget-input input{min-width:0;flex:1;border:1px solid #686073;background:#0e0d15;color:white;padding:9px 12px;font:inherit;font-size:1.2rem;border-radius:12px}
.budget-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.budget-pair section{display:flex;flex-direction:column;gap:8px;padding:15px;background:#1f1f2c;border-radius:14px}
.budget-pair h3{font-size:.95rem}
.budget-pair strong{font-size:1.27rem;margin-bottom:4px}
.budget-pair section>div{font-size:.86rem;color:#c5c1ce;flex-wrap:wrap}
.budget-pair b{color:white}
.budget-pair button{margin-top:auto}
@media(max-width:470px){.budget-pair{grid-template-columns:1fr}.budget-pair section{gap:4px}.budget-pair strong{font-size:1.15rem}.budget-pair button{margin-top:5px}}
.product-actions{align-items:center;flex-wrap:wrap;gap:10px}
.product-actions .product-more{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:.91rem;color:#e5c4d9}
.view-market .product-card{border-color:#ffffff14;background:#15151e;box-shadow:none}
.view-market .product-card p:not(details p){display:none}
.view-market .product-guide summary{min-height:44px}
.view-market .product-actions .btn.primary{background:#3b2034;color:#ffcee6;border:1px solid #8b4168}
.view-market .product-actions .btn.primary:hover{background:#622645}
.view-markets .market-board{box-shadow:none;border-color:#ffffff15}
.view-markets .market-filters button,.view-home .wealth-switch button,.view-home .wealth-foot :is(a,button),.view-home .periods button,.view-home .ax-tools button,.view-markets .star,#quick-search,#account,#close-search{min-height:44px;min-width:44px}
.view-home .periods button{padding-inline:7px;font-size:.85rem}
.view-home .ax-tools{gap:4px}

/* A directory, rather than repeated full quote cards, for large markets. */
.market-choice,.market-choice button,.fund-tools,.fund-row,.fund-row a{display:flex;align-items:center;gap:10px}
.market-choice{flex-wrap:wrap}
.fund-tools .search{flex:1;min-width:0;margin:0;min-height:48px}
.fund-tools .search input{min-width:0}
#fund-type{max-width:48%;min-height:48px;border:1px solid var(--line);color:inherit;background:#181820;border-radius:13px;padding:6px 10px;font:inherit;cursor:pointer}
.fund-caption{margin:12px 0;color:#bdb7c7;font-size:.82rem}
.fund-group{margin-top:0}
.fund-tag{display:inline-block;margin-inline-start:9px;padding:2px 8px;border-radius:8px;color:#f9c4de;background:#352233;font-size:.76rem}
.fund-note{font-size:.92rem;line-height:2;color:#c6c3ce;margin-top:14px}
.fund-note a{color:#ffafd4;text-decoration:underline;text-underline-offset:4px}
.view-market:has(.fund-directory){max-width:960px}
.fund-row{border-bottom:1px solid #ffffff12}
.fund-row .star{order:-1}
.fund-row a{flex:1;min-width:0;padding:14px 0;line-height:1.7}
.fund-name{flex:1;min-width:0;display:grid;gap:2px}
.fund-row small,.fund-row svg{color:#bdb7c7;font-size:.82rem}
.fund-row a:hover b{color:#ffc0df}
.fund-price{text-align:left;font-weight:550}
.fund-price small{font-weight:400}
#lookup-results .instrument small{letter-spacing:normal;font-size:.76rem}
#lookup-results a>span:nth-child(2){flex-shrink:0}
#lookup-results a>svg{flex-shrink:0}
@media(min-width:761px){
 .market-gallery a{min-height:70px;padding:3px 8% 3px 4%}
 .market-gallery i{width:min(38%,64px)}
 .market-gallery b{font-size:1rem}
}
@media(max-width:760px){
 .market-gallery{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px 2px}
 .market-gallery i{width:min(90%,54px)}
 .fund-tools{flex-wrap:wrap}
 .fund-tools .search{flex-basis:170px}
 #fund-type{font-size:.88rem;max-width:100%}
 .fund-row{gap:4px}
 .fund-row a{font-size:.91rem;gap:6px}
 .fund-row small{font-size:.74rem}
 .fund-price{max-width:39%}
 .fund-row .star{min-width:44px;margin-inline-start:-7px}
}
@media(max-width:420px){
 .fund-tools .search,#fund-type{flex:1 0 100%}
 .market-gallery b{font-size:.76rem}
 #lookup-results a{gap:6px;font-size:.79rem}
}

.price-note{display:flex;width:fit-content;align-items:center;gap:6px;min-height:44px;color:#e4bfd4;font-size:.83rem}
.price-report{max-width:840px;margin:auto}
.price-report h2{font-size:1.16rem}
.price-report p{color:#c1bbca;line-height:2;font-size:.9rem}
.price-report a{display:flex;gap:12px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:14px 0}
.price-report a span:last-child{text-align:left;flex-shrink:0}
.price-report small,.quote-date,.wealth-number small{display:block;font-size:.77rem;color:#bcb4c5;font-weight:400}
.fund-caption a,.price-report a:hover{color:#ffb6d8}
.fund-price{overflow-wrap:anywhere}
@media(max-width:500px){.fund-price{max-width:145px}.fund-price .change{display:block}.price-note{font-size:.75rem;max-width:90%}}
.topbar .status a.feed-stamp{pointer-events:auto;min-height:44px;display:inline-flex;align-items:center;color:#e8c1d6}

.archive-bar p{font-size:.8rem;color:#c3becd;line-height:1.85;margin:6px 0}
.archive-switch{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.archive-switch button{min-height:44px;padding:6px 14px;border-radius:12px;color:#c7becb;background:#22222e}
.archive-switch button[aria-pressed=true]{background:#472138;color:#ffb7d7}
.ad-product .ad-chart .chart-header:has(+.archive-bar) h2,.ax-zoom .chart-header h2{display:block;font-size:1rem}
.chart-panel:has(.archive-bar) .periods{flex-wrap:wrap}
.chart-panel:has(.archive-bar) .chart-plot output{max-width:100%;white-space:normal}
.chart-panel:has(.archive-bar) .ad-chart-note{line-height:1.9}
.ax-zoom .chart-header{flex-wrap:wrap}
.ax-zoom .chart-header .periods button{min-height:44px}
.archive-bar p{overflow-wrap:anywhere}
.chart-panel:has(.archive-bar) .ax-stats dd{overflow-wrap:anywhere}
@media(max-width:600px){.chart-panel:has(.archive-bar) .periods{order:3;width:100%;justify-content:space-between;gap:0}.ad-product .ad-chart .chart-header:has(+.archive-bar) .periods button{min-width:0;flex:1;padding-inline:1px}}
