/* Tables keep native column tracks. Only their wrapper may scroll. */
.etf-performance,.etf-holdings,#stockPerformancePane{min-width:0;max-width:100%}
.etf-performance-wrap,.etf-holdings-wrap,.stock-scroll{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
:root .etf-performance-table,:root .etf-holdings-table{table-layout:auto;border-collapse:separate;border-spacing:0}
.etf-performance-table th,.etf-performance-table td,.etf-holdings-table th,.etf-holdings-table td{box-sizing:border-box;vertical-align:middle;min-width:86px;max-width:none;white-space:nowrap;text-align:right}
.etf-performance-table th,.etf-holdings-table th{white-space:normal;line-height:1.4}
.etf-performance-table th button,.etf-holdings-table th button{display:block;width:100%;min-height:40px;text-align:inherit;white-space:normal;overflow-wrap:normal}
:root .etf-performance-table{min-width:1240px}
:root .stock-table.etf-performance-table,:root .etf-holdings-table{min-width:1280px}
:root .etf-performance-table thead,:root .etf-holdings-table thead{display:table-header-group}
:root .etf-performance-table tbody,:root .etf-holdings-table tbody{display:table-row-group}
:root .etf-performance-table tr,:root .etf-holdings-table tr{display:table-row}
:root .etf-performance-table th,:root .etf-performance-table td,:root .etf-holdings-table th,:root .etf-holdings-table td{display:table-cell}
.etf-holdings-table th:first-child,.etf-holdings-table td:first-child,.stock-table.etf-performance-table th:first-child,.stock-table.etf-performance-table td:first-child{width:44px;min-width:44px;max-width:44px;text-align:center}
:root .etf-holdings-table th:nth-child(2),:root .etf-holdings-table td:nth-child(2){min-width:94px;max-width:none;white-space:nowrap;text-align:left}
.stock-table.etf-performance-table th:nth-child(2),.stock-table.etf-performance-table td:nth-child(2){min-width:94px;text-align:left}
.etf-holdings-card-core>span,.etf-holdings-card-more>span,.stock-mobile-core>span,.stock-mobile-more>span{min-width:0}
.etf-holdings-card-core b span,.etf-holdings-card-more b span,.stock-mobile-core b span,.stock-mobile-more b span{display:inline;flex-direction:initial;font-size:inherit;color:inherit}
.etf-holdings-mobile b .positive,.stock-mobile b .positive{color:#087a42}
.etf-holdings-mobile b .negative,.stock-mobile b .negative{color:#c33434}
.etf-holdings-card,.stock-mobile-card{min-width:0;max-width:100%}
.etf-holdings-card b,.stock-mobile-card b{line-height:1.5;white-space:normal;overflow-wrap:anywhere}
@media(max-width:720px){
 /* Keep one column model on desktop and iPhone Safari; scroll the wrapper. */
 #stockPerformancePane .stock-desktop{display:block;-webkit-overflow-scrolling:touch}
 #stockPerformancePane .stock-mobile,.etf-holdings .etf-holdings-mobile{display:none}
 #stockPerformancePane .stock-desktop::before{content:'Swipe horizontally to view all metrics ↔';display:block;padding:8px;color:#63716a;font-size:12px}
 :lang(zh) #stockPerformancePane .stock-desktop::before{content:'左右滑动查看更多指标 ↔'}
 #stockPerformancePane .stock-table th:nth-child(2),#stockPerformancePane .stock-table td:nth-child(2){position:sticky;left:44px;z-index:3;background:#fff;box-shadow:5px 0 8px rgba(10,38,25,.08)}
 #stockPerformancePane .stock-table th:nth-child(2){z-index:4;background:#f1f5f2}
 #stockPerformancePane .stock-mobile-core,#stockPerformancePane .stock-mobile-more,
 .etf-holdings-mobile .etf-holdings-card-core,.etf-holdings-mobile .etf-holdings-card-more{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:start}
 #stockPerformancePane .stock-mobile-core>span,#stockPerformancePane .stock-mobile-more>span,
 .etf-holdings-mobile .etf-holdings-card-core>span,.etf-holdings-mobile .etf-holdings-card-more>span{display:grid;grid-template-rows:minmax(2.8em,auto) auto;gap:4px;align-content:start;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
 #stockPerformancePane .stock-mobile-core>span>b,#stockPerformancePane .stock-mobile-more>span>b,
 .etf-holdings-mobile .etf-holdings-card-core>span>b,.etf-holdings-mobile .etf-holdings-card-more>span>b{display:block;margin:0;font-size:14px;line-height:1.5;font-variant-numeric:tabular-nums}
 #stockPerformancePane .stock-mobile-head strong,.etf-holdings-card-head>strong{flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums}
 #stockPerformancePane .stock-mobile-card>small{overflow-wrap:anywhere}
 :root .etf-holdings-wrap{display:block}
 :root .etf-holdings .etf-holdings-scroll-hint{display:flex}
 :root .etf-holdings-wrap{-webkit-overflow-scrolling:touch}
 .etf-performance{width:calc(100% - 24px);max-width:calc(100% - 24px);margin-left:12px;margin-right:12px}
 .etf-performance-table th,.etf-performance-table td{padding:9px 8px}
 .etf-holdings-head,.etf-holdings-card-head,.stock-mobile-head{min-width:0}
 .stock-mobile-head>a,.etf-holdings-card-head>span{min-width:0;overflow-wrap:anywhere}
 .stock-controls,.holdings-controls,.stock-pagination{flex-wrap:wrap}
 .stock-controls label{min-width:0;max-width:100%}
}
