/* Compact market cards, aligned with the one-glance data sections. */
body.index-aligned-page.workspace-feature-board .market-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 2px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e9f1;
  color: #102a43;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -.01em;
}

body.index-aligned-page.workspace-feature-board .market-section-head:first-of-type {
  margin-top: 4px;
}

body.index-aligned-page.workspace-feature-board .market-section-head > span {
  display: grid;
  width: 30px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  color: #2b66f6;
  background: #edf4ff;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

body.index-aligned-page.workspace-feature-board .idx-strip {
  gap: 10px !important;
  margin-bottom: 18px !important;
}

body.index-aligned-page.workspace-feature-board .idx {
  min-height: 108px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 14px 10px !important;
  border: 1px solid #e3eaf2 !important;
  border-radius: 12px !important;
  text-align: center !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

body.index-aligned-page.workspace-feature-board .idx::before {
  display: none !important;
  content: none !important;
}

body.index-aligned-page.workspace-feature-board .idx::after { display: none !important; }

body.index-aligned-page.workspace-feature-board .idx.up {
  background: #f8fafc !important;
}

body.index-aligned-page.workspace-feature-board .idx.down {
  background: #f8fafc !important;
}

body.index-aligned-page.workspace-feature-board .idx.up::before { background: #e8202a !important; }
body.index-aligned-page.workspace-feature-board .idx.down::before { background: #12a150 !important; }

body.index-aligned-page.workspace-feature-board .idx.sel {
  border-color: #bfd2e6 !important;
  box-shadow: inset 0 0 0 1px #dbe7f2 !important;
}

body.index-aligned-page.workspace-feature-board .idx:hover {
  border-color: #cdd9e5 !important;
  box-shadow: 0 8px 20px rgba(25,55,90,.06) !important;
  transform: none !important;
}

body.index-aligned-page.workspace-feature-board .idx .nm {
  color: #536a82 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.index-aligned-page.workspace-feature-board .idx .px {
  margin-top: 6px !important;
  font-size: 20px !important;
  font-weight: 850 !important;
  letter-spacing: -.025em !important;
}

body.index-aligned-page.workspace-feature-board .idx .ch {
  margin-top: 4px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body.index-aligned-page.workspace-feature-board .idx.up :is(.px, .ch) { color: #e8202a !important; }
body.index-aligned-page.workspace-feature-board .idx.down :is(.px, .ch) { color: #12a150 !important; }

body.index-aligned-page.workspace-feature-board .kpi-row {
  gap: 10px !important;
  margin-bottom: 18px !important;
}

body.index-aligned-page.workspace-feature-board .kpi {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px !important;
  border: 1px solid #e3eaf2 !important;
  border-radius: 12px !important;
  text-align: center;
  background: #f8fafc !important;
  box-shadow: none !important;
}

body.index-aligned-page.workspace-feature-board .kpi:nth-child(-n+2) {
  border-color: #c5ccea !important;
  background: #e9edff !important;
}

body.index-aligned-page.workspace-feature-board .kpi:nth-child(n+3):nth-child(-n+5) {
  border-color: #bdd1e8 !important;
  background: #e7f0ff !important;
}

body.index-aligned-page.workspace-feature-board .kpi:nth-child(6) {
  border-color: #bdd9dd !important;
  background: #e5f3f5 !important;
}

body.index-aligned-page.workspace-feature-board .kpi::before { display: none !important; }

body.index-aligned-page.workspace-feature-board .kpi span {
  order: -1;
  margin: 0 0 8px !important;
  color: #536a82 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

body.index-aligned-page.workspace-feature-board .kpi b {
  color: #102a43 !important;
  font-size: 25px !important;
  font-weight: 850 !important;
  letter-spacing: -.025em !important;
  font-variant-numeric: tabular-nums;
}

body.index-aligned-page.workspace-feature-board .kpi:nth-child(-n+2) b { color: #555fc8 !important; }
body.index-aligned-page.workspace-feature-board .kpi:nth-child(n+3):nth-child(-n+5) b { color: #176ee0 !important; }
body.index-aligned-page.workspace-feature-board .kpi:nth-child(6) b { color: #0b879d !important; }

body.index-aligned-page.workspace-feature-board .panel:has(.theme-grid) {
  border: 1px solid #e0e8f1 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(25,55,90,.055) !important;
}

body.index-aligned-page.workspace-feature-board .panel:has(.theme-grid) .panel-h h3 {
  color: #102a43 !important;
  font-size: 17px !important;
}

body.index-aligned-page.workspace-feature-board .panel:has(.theme-grid) .panel-h a {
  color: #71849a !important;
}

body.index-aligned-page.workspace-feature-board .theme-grid { gap: 10px !important; }

body.index-aligned-page.workspace-feature-board .theme {
  min-height: 92px;
  display: grid;
  align-content: center;
  padding: 12px 8px !important;
  border: 1px solid #e3eaf2 !important;
  border-radius: 10px !important;
  color: #102a43 !important;
  background: #f8fafc !important;
}

body.index-aligned-page.workspace-feature-board .theme b {
  color: #102a43 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

body.index-aligned-page.workspace-feature-board .theme span {
  margin-top: 6px;
  color: #536a82 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

@media (max-width: 640px) {
  body.index-aligned-page.workspace-feature-board .idx,
  body.index-aligned-page.workspace-feature-board .kpi { min-height: 104px; }
  body.index-aligned-page.workspace-feature-board .market-section-head { margin-top: 18px; }
}
