/* Home hierarchy: watchlist → stock → chart → overview → related stocks. */
.home-simple { max-width:1040px; padding:16px 20px 100px; }
.home-simple .grow-main-grid { display:block; }
.home-simple .grow-left-column { display:grid; gap:16px; }
.home-simple .grow-watchlist-section { margin:12px 0 22px; }
.home-watchlist-heading { display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.home-watchlist-heading h1 { font-size:20px; margin:0; font-weight:800; }
.home-import-link { margin-left:auto; font-size:14px; font-weight:700; text-decoration:none; color:var(--accent-color); }
.home-watchlist-menu { position:relative; font-size:12px; }
.home-watchlist-menu summary { cursor:pointer; padding:8px; }
.home-watchlist-menu[open] button { position:absolute; right:0; z-index:20; min-width:180px; background:var(--surface-bg); border:1px solid var(--border-color); border-radius:10px; padding:12px; }
.home-simple .grow-watchlist-grid { display:flex; overflow-x:auto; gap:10px; padding:2px 2px 8px; scroll-snap-type:x proximity; }
.home-simple .grow-watch-card { flex:0 0 220px; min-height:84px; scroll-snap-align:start; box-shadow:none; }
.home-simple .grow-watch-main { min-height:82px; padding:12px 16px; gap:8px; flex-wrap:nowrap; }
.home-simple .grow-watch-name { font-size:15px; }
.home-simple .grow-watch-price { font-size:14px; }
.home-simple .grow-change-badge { flex-shrink:0; white-space:nowrap; padding:5px 8px; font-size:12px; }
.home-simple .grow-watch-quote-stamp { display:none; }
.home-simple .grow-watch-quote-time { font-size:10px; line-height:1.3; }
.home-simple .portfolio-watch-method { display:none; }
.home-simple .portfolio-watch-card .grow-watch-identity { flex:1 1 auto; }
.home-simple .portfolio-watch-card .grow-watch-price { white-space:nowrap; }
.home-simple .portfolio-watch-type { font-size:9px; }
.home-simple .portfolio-watch-card > .grow-watch-quote-time { font-size:10px; padding-bottom:5px; }
.home-simple .grow-card-remove { display:none; width:32px; height:32px; top:6px; right:6px; bottom:auto; transform:none; align-items:center; justify-content:center; }
.home-watchlist-footer { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; }
.home-watchlist-summary,.home-quote-details { color:var(--text-muted-color); font-size:12px; }
.home-quote-details summary { cursor:pointer; }
.home-search-follow { color:var(--accent-color); background:var(--accent-tint-bg); border:0; border-radius:8px; padding:8px 12px; }
.home-simple .chart-workspace-header { display:flex; justify-content:space-between; align-items:center; padding:20px 22px 4px; }
.home-simple .chart-workspace-header h2 { font-size:22px; margin:0; }
.home-selected-quote { padding:8px 22px 0; min-height:88px; }
.home-selected-quote > div { display:grid; gap:5px; }
.home-quote-value { font-size:34px; line-height:1.15; letter-spacing:-.04em; }
.home-quote-change { font-size:14px; font-weight:700; }
.home-quote-change[data-direction=up] { color:var(--positive-color); }
.home-quote-change[data-direction=down] { color:var(--negative-color); }
.home-selected-quote small { font-size:11px; color:var(--text-muted-color); line-height:1.5; }
.home-simple .chart-workspace-canvas { height:290px!important; }
.home-simple .chart-inspector { display:none; padding:8px 22px; border-top:1px solid var(--border-color); }
.home-simple .chart-inspector:has([data-inspecting=true]) { display:block; }
.home-simple .chart-inspector-price #chart-touch-value { font-size:20px; }
.home-simple .home-timeframes { border:0; padding:4px 16px 10px; }
.home-simple .chart-ranges { width:100%; justify-content:space-between; }
.home-simple .chart-ranges label { min-height:40px; padding:6px; }
.home-chart-options { margin:0 20px 12px; border-top:1px solid var(--border-color); font-size:13px; }
.home-chart-options > summary { color:var(--accent-color); cursor:pointer; padding:12px 0; font-weight:700; }
.home-options-help { font-size:12px; color:var(--text-muted-color); }
.home-chart-options .chart-study-controls { padding:12px 0; }
.home-chart-options .chart-series-row { padding:8px 0; }
.home-simple .chart-insight { display:none; }
.home-simple .chart-accessible-data { padding:0 20px 12px; }
.home-simple .grow-about-card { padding:20px 22px; }
.home-simple .grow-about-card > h2 { font-size:18px; margin:0 0 10px; }
.home-secondary-identity { display:none; }
.home-simple .grow-company-about { font-size:14px; line-height:1.6; margin:0 0 12px; }
.home-simple .grow-company-meta-row { display:none; }
.home-overview-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }
.home-overview-metrics > div { border-right:1px solid var(--border-color); padding-right:8px; }
.home-overview-metrics > div:last-child { border:0; }
.home-overview-metrics dt { color:var(--text-muted-color); font-size:12px; }
.home-overview-metrics dd { margin:5px 0 0; font-size:17px; font-weight:750; overflow-wrap:anywhere; }
.home-financial-details > summary,.home-simple .grow-investor-details > summary { color:var(--accent-color); font-size:13px; cursor:pointer; padding:10px 0; }
.home-simple .grow-investor-details { margin-top:0; }
.home-simple .grow-ideas-sidebar { margin-top:16px; }
.home-simple .grow-widget-heading { display:flex; justify-content:space-between; align-items:center; padding:16px 20px 8px; }
.home-simple .grow-widget-title { font-size:18px; margin:0; }
.home-simple .grow-similar-section { padding:0; }
.home-simple .grow-idea-list { max-height:none; overflow:visible; padding:0; }
.home-simple .grow-stock-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:14px 20px; }
.home-simple .grow-stock-row .grow-idea-topline { display:contents; }
.home-simple .grow-stock-row .grow-idea-company { min-width:0; }
.home-simple .grow-stock-row .grow-change-badge { display:none; }
.home-simple .grow-stock-row .grow-return-strip,.home-simple .grow-stock-row .grow-idea-reason { display:none; }
.home-simple .grow-idea-actions { margin:0; gap:8px; justify-content:flex-end; }
.home-simple .grow-idea-actions button { padding:8px 10px; min-height:40px; }
.home-simple .grow-idea-name { font-size:14px; }
.home-simple .grow-idea-company { display:grid; gap:3px; }
.home-simple .grow-idea-ticker { font-size:12px; }
.home-similarity-options { margin:0 20px; font-size:11px; color:var(--text-muted-color); }
body:has(.home-simple) #chat-bubble-btn { display:none!important; }
@media(max-width:700px) {
 .home-simple { padding:12px 14px 100px; }
 .home-simple .grow-watch-card { flex-basis:204px; }
 .home-simple .grow-watchlist-section { margin-bottom:16px; }
 .home-simple .chart-workspace-header { padding:16px 16px 2px; }
 .home-simple .chart-workspace-header h2 { font-size:20px; }
 .home-selected-quote { padding:8px 16px 0; min-height:88px; }
 .home-simple .chart-workspace-canvas { height:230px!important; }
 .home-simple .grow-about-card { padding:16px; }
 .home-simple .grow-stock-row { padding:12px 16px; }
 .home-watchlist-heading { gap:8px; }
 .home-watchlist-heading h1 { font-size:18px; }
 .home-import-link { font-size:12px; }
 .home-simple .chart-inspector-price { flex-wrap:wrap; }
}
@media(max-width:360px) {
 .home-watchlist-menu { font-size:11px; }
 .home-import-link { font-size:11px; }
 .home-simple .grow-stock-row { grid-template-columns:1fr; }
 .home-simple .grow-idea-actions { justify-content:flex-start; }
}
.portfolio-follow-panel { border-top:1px solid var(--border-color); padding-top:16px; margin-top:16px; }
.portfolio-follow-panel h3 { margin:0 0 10px; }
.portfolio-follow-panel label { display:block; margin-bottom:8px; }
#portfolio-follow-saved { margin-top:12px; background:var(--accent-color); color:white; }
#portfolio-import { scroll-margin-top:20px; }
/* Trim inherited nested-card padding rather than squeezing type. */
.home-simple .grow-watchlist-section { gap:4px; }
.home-watchlist-heading { margin-bottom:4px; }
.home-simple .grow-watchlist-section > div:has(> #portfolio-watch-feedback:empty) { display:contents; }
.home-simple #portfolio-watch-feedback:empty,.home-simple #watchlist-persist-feedback:empty { display:none; }
.home-simple .grow-watch-quote-time:empty { display:none; }
.home-simple .chart-workspace { padding:0!important; }
.home-simple .grow-about-card { display:block; }
.home-simple .grow-about-card > h2 { margin-bottom:8px; }
.home-simple .grow-company-about { margin-bottom:12px; }
.home-overview-metrics { margin:12px 0; }
.home-simple #home-ask-stock { display:inline-block; min-height:44px; text-align:left; color:var(--accent-color); font-size:12px; padding:8px 0; margin-right:18px; }
.home-financial-details { display:inline-block; vertical-align:top; }
.home-financial-details[open] { display:block; }
.home-simple .chart-accessible-data { padding-bottom:10px; }
.home-simple .portfolio-watch-card { flex-basis:250px; }
.home-simple .portfolio-watch-card .grow-watch-main { flex-wrap:wrap; }
.home-simple .grow-watchlist-section:has(.home-watchlist-menu[open]) .grow-card-remove { opacity:1; }

/* The header search is a flexible slot, including on narrow mobile screens. */
.home-search-slot { flex:1 1 290px; min-width:0; }
.home-search-slot > .grow-search { width:100%; min-width:0; box-sizing:border-box; }
.home-search-slot .grow-search-dropdown { width:100%; }
.home-simple .grow-header-actions { flex:1; }
.home-simple .home-related-list:not(.is-expanded) > .home-related-extra { display:none; }
.home-simple .home-related-list > .grow-stock-row { background:transparent; }
.home-related-toggle { display:block; width:100%; padding:14px 20px; border:0;
 border-top:1px solid var(--border-color); border-radius:0; background:transparent;
 color:var(--accent-color); cursor:pointer; text-align:left; font:inherit; font-size:13px; }
.home-related-toggle:focus-visible { outline:2px solid var(--accent-color); outline-offset:-3px; }
.home-similarity-options { margin-bottom:12px; }
@media(max-width:700px) {
 .home-search-slot { flex-basis:0; width:100%; }
 .home-simple .grow-header { grid-template-columns:minmax(0,1fr) auto; }
}
.home-search-slot .dash-dropdown { border:0!important; background:transparent!important; box-shadow:none!important; }
.home-search-slot > .grow-search:focus-within { border-color:var(--accent-color); box-shadow:0 0 0 2px var(--focus-ring); }

/* Keep unfollow actions in Edit; plot removals live on visible chart chips. */
.home-simple .grow-watchlist-section:has(.home-watchlist-menu[open]) .grow-card-remove { display:flex; opacity:1; }
.home-simple .grow-watchlist-section:has(.home-watchlist-menu[open]) .grow-watch-main { padding-right:44px; }
.home-chart-series { margin:8px 22px 0; padding-top:8px; }
.home-chart-series > .chart-field-label { flex-basis:100%; }
.home-simple .home-chart-series .grow-compare-chip { min-height:40px; display:inline-flex; align-items:center; gap:8px; padding:6px 12px; font-size:12px; }
.home-chart-chip-remove { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:var(--accent-tint-bg); font-size:18px; }
.home-simple .chart-clear { min-height:40px; }
.home-compare-help { margin:8px 22px 12px; font-size:11px; }
.home-simple .home-timeframes { border-top:1px solid var(--border-color); padding-top:8px; }
.home-simple .home-timeframes > div:first-child { flex:1 1 100%; min-width:0; }

@media(max-width:700px) {
 .home-simple .grow-stock-row { grid-template-columns:minmax(0,1fr); }
 .home-simple .grow-idea-actions { justify-content:flex-start; flex-wrap:wrap; }
}
