.component-overview-panel {
  display: grid;
  gap: 8px;
  padding: 10px 14px;
}

.component-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.component-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 6px;
}

.component-metric {
  min-height: 38px;
  background: #ffffff;
  padding: 6px 10px;
}

.component-metric .metric-label {
  font-size: 12px;
}

.component-metric .metric-value {
  margin-top: 3px;
  font-size: 15px;
}

.component-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.component-filter-panel {
  position: sticky;
  top: 10px;
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
}

.component-filter-head {
  display: grid;
  gap: 10px;
}

.component-kind-tabs {
  justify-content: stretch;
}

.component-kind-tabs button {
  flex: 1 1 0;
  min-width: 0;
}

.component-group-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: calc(100vh - 315px);
  min-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.component-group-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdff;
  color: #071426;
  padding: 8px 10px;
  text-align: left;
}

.component-group-button:hover {
  background: #f3f7fc;
}

.component-group-button.active {
  border-color: #111111;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #111111;
}

.component-group-button span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.component-group-button strong {
  color: #001229;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.component-group-button small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.component-group-button em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  border: 1px solid #c8d5e5;
  border-radius: 999px;
  background: #ffffff;
  color: #001229;
  font-style: normal;
  font-weight: 600;
}

.component-list-panel {
  min-width: 0;
}

.component-list-panel .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.component-main-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.component-table {
  width: max-content;
  min-width: 1280px;
  table-layout: auto;
}

.component-table th,
.component-table td {
  white-space: nowrap;
}

.component-table th:first-child,
.component-table td:first-child {
  min-width: 380px;
  white-space: normal;
}

.component-table th:nth-child(2),
.component-table td:nth-child(2) {
  min-width: 90px;
}

.component-table th:nth-child(3),
.component-table td:nth-child(3) {
  min-width: 160px;
}

.component-table th:nth-child(4),
.component-table td:nth-child(4),
.component-table th:nth-child(5),
.component-table td:nth-child(5) {
  min-width: 110px;
}

.component-table th:nth-child(6),
.component-table td:nth-child(6) {
  min-width: 430px;
}

.component-table .path-code {
  display: inline-block;
  width: max-content;
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
}

.component-table tbody tr:hover {
  background: #f6f9fd;
}

.component-table tbody tr.selected {
  background: #eef5ff;
  box-shadow: inset 3px 0 0 #111111;
}

.component-name-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.component-select-button {
  display: grid;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.component-select-button .cell-title {
  color: #071426;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.component-select-button .cell-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.component-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 78px;
  min-height: 30px;
  border: 1px solid #111111;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
