.market-card .modules a {
  position: relative;
  overflow: visible;
}

.board-regime-tag {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 17px;
  padding: 0 6px;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 84%, #ffffff 16%);
  color: #5d6572;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.board-regime-tag.is-bull { color: #c85f5f; }
.board-regime-tag.is-range { color: #c4872f; }
.board-regime-tag.is-bear { color: #3f946d; }

html[data-theme="dark"] .board-regime-tag {
  background: color-mix(in srgb, var(--panel) 88%, #111827 12%);
  border-color: color-mix(in srgb, currentColor 42%, transparent);
}

.market-card .board-hotspot-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "type phase"
    "name phase";
  align-content: center;
  align-items: center;
  min-height: 52px;
  gap: 3px 10px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid color-mix(in srgb, var(--line) 42%, transparent);
  color: var(--ink);
  text-decoration: none;
}

a.board-hotspot-preview {
  cursor: pointer;
}

.market-card .board-hotspot-preview small {
  grid-area: type;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-card .board-hotspot-preview strong {
  grid-area: name;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  margin: 0;
  overflow: visible;
  line-height: 1.25;
  white-space: normal;
}

.market-card .board-hotspot-preview strong span {
  min-width: 0;
  overflow: visible;
  color: var(--ink);
  font-size: clamp(11px, 1.35vw, 13px);
  font-weight: 800;
  text-overflow: clip;
  white-space: normal;
}

.market-card .board-hotspot-preview strong .board-hotspot-stock-code {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.market-card .board-hotspot-preview strong em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.market-card .board-hotspot-preview strong i {
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.market-card .board-hotspot-preview b {
  grid-area: phase;
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.market-card .board-hotspot-preview.is-pending {
  cursor: default;
}

.market-card .board-hotspot-preview.is-pending strong,
.market-card .board-hotspot-preview.is-pending > span,
.market-card .board-hotspot-preview.is-pending b {
  color: var(--muted);
  font-weight: 600;
}

.market-card .board-hotspot-preview strong .rise {
  color: #b94141;
}

.market-card .board-hotspot-preview strong .fall {
  color: #1f8b62;
}

html[data-theme="dark"] .market-card .board-hotspot-preview strong .rise {
  color: #ff8787;
}

html[data-theme="dark"] .market-card .board-hotspot-preview strong .fall {
  color: #56c596;
}

body.vip-member-active .market-card .board-hotspot-preview {
  border-color: color-mix(in srgb, var(--gold) 14%, transparent);
}

@media (max-width: 700px) {
  .board-regime-tag {
    top: -10px;
    right: -6px;
    min-width: 26px;
    height: 16px;
    padding: 0 5px;
    font-size: 8px;
  }

  .market-card .board-hotspot-preview {
    min-height: 50px;
    margin-top: 10px;
    padding-top: 9px;
  }

  .market-card .board-hotspot-preview small {
    font-size: 10px;
  }

  .market-card .board-hotspot-preview strong,
  .market-card .board-hotspot-preview strong span,
  .market-card .board-hotspot-preview strong i {
    font-size: 12px;
  }

  .market-card .board-hotspot-preview strong em,
  .market-card .board-hotspot-preview b {
    font-size: 10px;
  }

  .market-card .board-hotspot-preview strong .board-hotspot-stock-code {
    flex-basis: 100%;
    font-size: 10px;
  }
}
