.industry-row {
  padding: 14px 4px;
  grid-template-columns: minmax(150px, .85fr) 1.8fr auto;
}

.industry-row .profit-summary {
  margin-top: 3px;
  color: #4e687d;
  font-size: 11px;
}

.industry-row .profit-history {
  margin-top: 4px;
  color: #2f5068;
  font-size: 12px;
}

.company-entry > summary small {
  max-width: 70%;
  text-align: right;
  line-height: 1.45;
}

.company-metrics > span {
  display: block;
}

.chapter a.active,
.chapter-toggle.active {
  background: #e8f1f8;
  color: #2f6f9f;
  font-weight: 700;
}

.chapter-node {
  padding-top: 6px;
  padding-bottom: 7px;
}

.chapter-node::before {
  top: 11px;
}

.chapter-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-right: 2px;
  font-weight: 650;
}

.chapter-label small {
  color: #82909a;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.chapter-note {
  margin-top: 2px;
  display: -webkit-box;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  padding: 1px 4px;
  border: 1px solid #e6e9eb;
  border-radius: 3px;
  background: #f4f6f7;
  color: #8a8a8a;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chapter-l2 > .chapter-node {
  color: #4e5f6b;
}

.chapter-l3 > .chapter-node {
  color: #65727b;
}

.chapter-stock {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.chapter-stock span,
.chapter-stock small {
  display: block;
}

.chapter-stock small {
  color: #999;
  font-size: 9px;
}

.chapter-toggle.loading-tree .chapter-note::after {
  content: " · 正在读取下级目录";
}

@media (max-width: 640px) {
  .industry-row {
    grid-template-columns: 1fr;
  }

  .company-entry > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-entry > summary small {
    max-width: 100%;
    text-align: left;
  }
}
