/* Investools Pro — layout fixes v3 */
/* Prevent horizontal overflow */
header, .max-w-\[1440px\], [data-testid="card-sp-chart"], [data-testid="card-major-indices"]{overflow-x:visible !important;}
header > div > div:last-child{flex-shrink:1 !important; min-width:0 !important;}
[data-testid="button-signup"]{ padding-left:1rem !important; padding-right:1rem !important;}

/* Fix truncated 52W Range */
[data-testid="card-sp-chart"] .font-mono.text-\[9px\], [data-testid="card-sp-chart"] td{ overflow:visible !important; text-overflow:clip !important;}
[data-testid="card-sp-chart"] [class*="grid-cols-5"]{grid-template-columns:repeat(5,minmax(0,1fr)) !important; gap:0.5rem !important;}

/* Balance hero columns */
[data-testid="card-sp-chart"]{min-height:420px !important;}
[data-testid^="button-view-"]{align-self:flex-start !important; margin-top:0.25rem !important;}

/* Ticker arrow overlap */
[data-testid="button-ticker-next"]{margin-left:0.5rem !important; padding:0.4rem !important; background:rgba(255,255,255,0.9) !important;}
[data-testid="ticker-"]{border-right:1px solid #edf0f5 !important;}

/* Chart axis labels readability */
[data-testid="card-sp-chart"] .text-\[8px\], [data-testid="card-sp-chart"] .text-\[9px\]{fill:#6b7a90 !important; font-size:11px !important;}
[data-testid="card-sp-chart"] line, [data-testid="card-sp-chart"] path{shape-rendering:crispEdges;}

/* Popular searches as real buttons */
[data-testid^="button-popular-"]{border:1px solid #d7e3f4 !important; box-shadow:0 1px 0 rgba(0,0,0,0.04) !important;}

/* Responsive stacking */
@media (max-width:1023px){
  [data-testid="card-sp-chart"]{min-height:auto !important;}
}

/* Wider desktop so columns breathe */
@media (min-width:1280px){
  .max-w-\[1440px\]{max-width:1560px !important;}
  [data-testid="card-sp-chart"] svg{height:240px !important;}
}
[data-testid="button-login"]{white-space:nowrap !important; min-width:auto !important;}
