/* Homepage summaries and the stock research handoff share the existing workbench theme. */
body.workspace-theme #view-dashboard .dashboard-grid { grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; }
body.workspace-theme .dashboard-section { min-width: 0; border: 1px solid #30465b; border-radius: 12px; background: #111b29; overflow: clip; }
body.workspace-theme .dashboard-section > summary { padding: 14px 18px; cursor: pointer; color: #d9eee9; font-size: 17px; font-weight: 650; min-height: 48px; }
body.workspace-theme .dashboard-section > summary:hover { background: #18303b; }
body.workspace-theme .dashboard-section > .panel { border: 0 !important; border-radius: 0 !important; min-height: 0 !important; max-height: none !important; height: auto !important; padding-top: 0 !important; }
body.workspace-theme .dashboard-section .panel-title > div:first-child:has(h2) { display: none !important; }
body.workspace-theme .dashboard-section .panel-title { margin-bottom: 10px !important; }
body.workspace-theme .dashboard-section .panel-title:empty { display: none; }
body.workspace-theme .dashboard-preference, body.workspace-theme .stock-next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
body.workspace-theme .dashboard-preference > span { color: #9eb2c5; font-size: 13px; }
body.workspace-theme :is(.dashboard-preference,.stock-next-actions) button,
body.workspace-theme .home-show-all { border: 1px solid #365364; background: #162b39; color: #cbeae3; border-radius: 8px; min-height: 44px; padding: 9px 14px; font-size: 14px; cursor: pointer; }
body.workspace-theme .dashboard-preference button[aria-pressed=true] { background: #255049; border-color: #73c4b0; color: #edfff9; }
body.workspace-theme .stock-next-actions { padding-bottom: 12px; border-bottom: 1px solid #2b4356; }
body.workspace-theme .research-handoff-note { border-left: 3px solid #80cbbb; padding: 10px 14px; background: #142e35; color: #ccebe4; }
body.workspace-theme #view-dashboard [data-preview-limit] { max-height: none !important; height: auto !important; overflow: visible !important; }
body.workspace-theme #alertList[data-preview-limit]:not(.home-expanded) > :nth-child(n+5),
body.workspace-theme :is(#radarCards,#buyList)[data-preview-limit]:not(.home-expanded) > :nth-child(n+7) { display: none !important; }
body.workspace-theme #alertList { display: grid !important; grid-template-columns: repeat(auto-fit,minmax(min(250px,100%),1fr)) !important; gap: 10px !important; }
body.workspace-theme #radarCards:not(.list) { display: grid !important; grid-auto-flow: row !important; grid-auto-columns: auto !important; grid-template-columns: repeat(auto-fit,minmax(min(250px,100%),1fr)) !important; }
body.workspace-theme #radarCards .radar-card { min-height: 0 !important; padding: 14px !important; }
body.workspace-theme .home-show-all { display: block; margin: 12px 0 0; }
body.workspace-theme .home-show-all[hidden] { display: none !important; }
body.workspace-theme #view-dashboard .portfolio-metrics { display: flex !important; flex-wrap: wrap; gap: 8px; }
body.workspace-theme #view-dashboard .portfolio-metrics > .metric-card { flex: 1 1 150px; }
body.workspace-theme .buy-panel { container-type: inline-size; }
@container (max-width:1000px) {
  body.workspace-theme #view-dashboard .buy-row { grid-template-columns: minmax(0,1fr) auto !important; }
  body.workspace-theme #view-dashboard .buy-row > .zone-line { grid-column: 1/-1 !important; grid-row: 2 !important; }
  body.workspace-theme #view-dashboard .buy-row > div:last-child { grid-column: 1/-1 !important; grid-row: 3 !important; display: flex; align-items: baseline; gap: 8px; }
}
@media(max-width:720px) {
  body.workspace-theme .dashboard-section > summary { padding: 13px 14px; }
  body.workspace-theme .dashboard-preference button { padding: 8px 10px; }
  body.workspace-theme .dashboard-preference > span { flex-basis: 100%; }
  body.workspace-theme .stock-next-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.workspace-theme .stock-next-actions button[data-return-research] { grid-column: 1/-1; }
  body.workspace-theme #view-dashboard .portfolio-metrics > .metric-card { flex: 1 1 calc(50% - 8px); }
  body.workspace-theme #view-dashboard .metric-card { padding: 10px !important; }
  body.workspace-theme #view-dashboard .metric-card strong { font-size: 19px !important; }
}
