/* Dashboard uses the same Finance data, controls and visual tokens as the research views. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-view { padding-bottom: 14px; }
.home-channel-bar { display:flex; align-items:stretch; gap:0; min-height:38px; margin:-11px 0 14px; padding:0 10px; background:#302d3d; color:#fff; overflow-x:auto; scrollbar-width:none; }
.home-channel-bar::-webkit-scrollbar { display:none; }
.home-channel-bar a { display:flex; align-items:center; padding:0 16px; color:#f6f5f7; text-decoration:none; font-size:12px; white-space:nowrap; border-right:1px solid rgba(255,255,255,.12); }
.home-channel-bar a:hover,.home-channel-bar a.selected { color:#fff; background:rgba(255,255,255,.11); box-shadow:inset 0 -3px #c73536; }
.home-channel-bar > span { display:flex; align-items:center; margin-left:auto; padding:0 10px; color:#dedce5; font-size:12px; white-space:nowrap; }

.home-heading, .home-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.home-heading { margin: 2px 0 23px; }
.home-heading h2 { margin: 0 0 5px; font-size: 25px; font-weight: 650; letter-spacing: -.3px; }
.home-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.home-heading-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; white-space: nowrap; }
.home-heading-meta span { font-size: 12px; color: var(--muted); }
.home-view #overview { margin: 0 0 14px; padding: 20px 22px 16px; border-radius: 8px; }
.home-view .market-head { margin-bottom: 12px; }
.home-view .market-head h2 { font-size: 15px; margin: 0; border-left: 3px solid var(--accent); padding-left: 8px; }
.home-view .market-head .subtle { font-size: 12px; font-weight: 400; margin-left: 7px; }
.home-view .market-head button { padding: 5px 10px; font-size: 12px; }
.home-view .index-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.home-view .index-tile { border: 0; border-right: 1px solid var(--border); border-radius: 0; padding: 3px 23px; background: var(--panel); }
.home-view .index-tile:first-child { padding-left: 11px; }
.home-view .index-tile:last-child { border-right: 0; }
.home-view .index-tile > span { font-size: 13px; color: var(--muted); }
.home-view .index-tile strong { font-size: 25px; font-weight: 600; letter-spacing: -.5px; margin: 6px 0 1px; }
.home-view .index-tile small { font-size: 13px; }
.home-view .market-asof { margin-top: 11px; padding: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.home-panels { display: grid; grid-template-columns: 1.12fr 1.08fr .88fr; gap: 14px; margin-bottom: 14px; }
.home-panel { display: flex; flex-direction: column; padding: 14px 16px 10px; min-width: 0; min-height: 270px; border-radius: 6px; }
.home-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.home-panel-heading h2, .home-table-heading h2 { font-size: 15px; line-height: 1.3; font-weight: 650; margin: 0; border-left: 3px solid var(--accent); padding-left: 8px; white-space: nowrap; }
.home-panel-heading > span, .home-panel-heading a { color: var(--muted); font-size: 12px; }
.home-panel-heading a, .home-panel-link { color: var(--accent-strong); text-decoration: none; }
.home-panel-link { display: block; margin-top: auto; padding-top: 11px; font-size: 12px; border-top: 1px solid var(--border); }
.home-panel-link:hover, .home-panel-heading a:hover { text-decoration: underline; }
.home-breadth-summary { display: flex; justify-content: center; gap: 29px; padding-top: 2px; }
.home-breadth-summary > span { display: flex; align-items: baseline; gap: 7px; font-variant-numeric: tabular-nums; }
.home-breadth-summary small { font-size: 12px; }
.home-breadth-summary strong { font-size: 22px; font-weight: 600; }
.home-distribution { min-height: 145px; flex: 1; display: flex; align-items: center; justify-content: center; }
.home-distribution svg { display: block; width: 100%; max-height: 147px; }
.home-bar.positive { fill: var(--up); }
.home-bar.negative { fill: var(--down); }
.home-bar.neutral { fill: var(--muted); }
.home-bar-count, .home-bar-label { fill: var(--muted); font-family: inherit; font-size: 12px; }
.home-panel-note { color: var(--muted); font-size: 12px; text-align: center; margin: 2px 0 0; }
.home-active { display: flex; flex-direction: column; flex: 1; gap: 6px; margin-bottom: 10px; }
.home-active-tabs { display: flex; gap: 18px; margin: -2px 0 8px; border-bottom: 1px solid var(--border); }
.home-active-tab { position: relative; padding: 0 0 8px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; white-space: nowrap; }
.home-active-tab.selected { color: var(--accent-strong); font-weight: 650; }
.home-active-tab.selected::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); content: ''; }
.home-active-row.positive meter::-webkit-meter-optimum-value { background: var(--up); }
.home-active-row.negative meter::-webkit-meter-optimum-value { background: var(--down); }
.home-active-row.positive meter::-moz-meter-bar { background: var(--up); }
.home-active-row.negative meter::-moz-meter-bar { background: var(--down); }
.home-active-row strong.positive { color: var(--up); }
.home-active-row strong.negative { color: var(--down); }

.home-active-row { display: grid; grid-template-columns: 84px minmax(30px,1fr) 58px; align-items: center; gap: 11px; background: transparent; border: 0; padding: 5px 0; border-radius: 3px; width: 100%; color: var(--text); font-family: inherit; }
.home-active-row:hover { background: var(--accent-soft); }
.home-active-row span { text-align: left; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-active-row strong { font-size: 12px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; color: var(--accent-strong); }
.home-active-row meter { width: 100%; height: 9px; border: 0; background: var(--accent-soft); }
.home-active-row meter::-webkit-meter-bar { border: 0; background: var(--accent-soft); border-radius: 2px; }
.home-active-row meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 2px; }
.home-active-row meter::-moz-meter-bar { background: var(--accent); }
.home-research-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 2px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 11px; }
.home-research-metrics a { display: flex; flex-direction: column; gap: 5px; text-decoration: none; text-align: center; border-right: 1px solid var(--border); }
.home-research-metrics a:last-child { border-right: 0; }
.home-research-metrics span { font-size: 12px; color: var(--muted); }
.home-research-metrics strong { font-size: 25px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.home-research-metrics a:hover strong { color: var(--accent-strong); }
.home-journal { flex: 1; margin-bottom: 10px; }
.home-journal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 6px 2px; background: transparent; border: 0; border-radius: 3px; color: var(--text); text-align: left; font-size: 12px; }
.home-journal-row:hover { background: var(--accent-soft); }
.home-journal-row small { font-size: 12px; color: var(--muted); }
.home-journal-row .home-due { color: var(--warning); }
.home-empty-note { margin: auto 0; padding: 16px 6px; font-size: 12px; color: var(--muted); line-height: 1.8; text-align: center; }
.home-quotes { border-radius: 6px; overflow: hidden; }
.home-table-heading { padding: 19px 20px; }
.home-table-heading p { margin: 7px 0 0 11px; color: var(--muted); font-size: 12px; }
.home-table-tools { display: flex; align-items: center; gap: 8px; }
.home-table-tools select, .home-table-tools button { min-height: 32px; padding: 5px 9px; font-size: 12px; border: 1px solid var(--border); border-radius: 5px; color: var(--text); background: var(--panel); }
.home-table-scroll { overflow: auto; scrollbar-width: thin; }
.home-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.home-table th { text-align: right; font-weight: 500; font-size: 12px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 11px 15px; }
.home-table td { padding: 12px 15px; text-align: right; border-bottom: 1px solid var(--border); }
.home-table th:first-child, .home-table td:first-child { text-align: left; padding-left: 18px; }
.home-table th:last-child, .home-table td:last-child { text-align: center; width: 62px; }
.home-table tbody tr:last-child td { border-bottom: 0; }
.home-table tbody tr:hover { background: var(--accent-soft); }
.home-table th button { color: inherit; font: inherit; background: transparent; border: 0; padding: 0; }
.home-table th[aria-sort=ascending] button, .home-table th[aria-sort=descending] button { color: var(--accent-strong); font-weight: 600; }
.home-stock { padding: 0; text-align: left; background: transparent; border: 0; color: var(--text); display: flex; align-items: baseline; gap: 10px; font: inherit; }
.home-stock strong { font-size: 14px; font-weight: 550; }
.home-stock small, .home-quote-time { font-size: 12px; color: var(--muted); }
.home-stock:hover strong { color: var(--accent-strong); }
.home-star { color: var(--muted); background: transparent; border: 0; padding: 0 6px; font-size: 20px; line-height: 1; }
.home-star[aria-pressed=true] { color: var(--accent-strong); }
.home-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding: 10px 17px; font-size: 12px; color: var(--muted); line-height: 1.65; }
.home-pagination { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.home-pagination button { padding: 4px 7px; font-size: 12px; }
.home-empty-cell { padding: 32px !important; text-align: center !important; }
.home-empty-cell p { color: var(--muted); margin: 0 0 10px; }
.home-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 15px; gap: 20px; padding: 4px 6px; }
.home-shortcuts a { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; color: var(--text); font-size: 12px; }
.home-shortcuts a span { color: var(--muted); font-size: 12px; }
.home-shortcuts a:hover strong { color: var(--accent-strong); }
@media(max-width:1100px) {
  .home-panels { gap: 10px; grid-template-columns: 1.12fr 1.08fr .88fr; }
  .home-panel { padding: 13px 11px 10px; }
  .home-active-row { grid-template-columns: 75px minmax(20px,1fr) 48px; gap: 6px; }
  .home-stock { flex-direction: column; gap: 3px; }
  .home-shortcuts a { align-items: flex-start; flex-direction: column; }
}
@media(max-width:820px) {
  .home-heading { margin: 4px 3px 13px; }
  .home-heading h2 { font-size: 18px; }
  .home-heading-meta { font-size: 12px; }
  .home-heading p { font-size: 12px; }
  .home-view #overview { padding: 12px; margin-bottom: 10px; }
  .home-view .market-head .subtle { display: none; }
  .home-view .index-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 15px; }
  .home-view .index-tile { padding: 0 14px; }
  .home-view .index-tile:nth-child(odd) { padding-left: 5px; }
  .home-view .index-tile:nth-child(2) { border-right: 0; }
  .home-view .index-tile strong { font-size: 23px; }
  .home-view .market-asof { font-size: 12px; }
  .home-panels { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .home-panel { min-height: 0; padding: 14px 15px 12px; }
  .home-distribution { min-height: 145px; }
  .home-active-row { grid-template-columns: 95px minmax(30px,1fr) 60px; padding: 6px 0; }
  .home-table-heading { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px; }
  .home-table-tools { width: 100%; flex-wrap: wrap; gap: 6px; }
  .home-table-tools select { flex: 1; min-width: 110px; }
  .home-table-tools button { flex: 0 0 auto; }
  .home-table { min-width: 810px; }
  .home-table th:first-child, .home-table td:first-child { position: sticky; left: 0; background: var(--panel); z-index: 1; padding-left: 12px; min-width: 125px; border-right: 1px solid var(--border); }
  .home-table th:first-child { background: var(--surface); }
  .home-table-footer { flex-direction: column; align-items: stretch; padding: 10px 13px; gap: 9px; }
  .home-pagination { justify-content: flex-end; }
  .home-shortcuts { grid-template-columns: 1fr; gap: 0; padding: 0 5px; }
  .home-shortcuts a { flex-direction: row; padding: 12px 0; border-bottom: 1px solid var(--border); }
}

