.sb-list-block {
  display: grid;
  gap: var(--sb-space-3);
  min-width: 0;
}

.sb-list-block__title {
  margin: 0;
  color: var(--sb-color-text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.sb-list {
  display: grid;
  gap: var(--sb-space-2);
  min-width: 0;
}

.sb-list-item {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--sb-space-3);
  padding: var(--sb-space-3);
  border: 1px solid var(--sb-color-border-soft);
  border-radius: var(--sb-radius-control);
  background: #ffffff;
  color: var(--sb-color-text);
}

.sb-list-item--with-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sb-list-item--link {
  text-decoration: none;
}

.sb-list-item--button {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.sb-list-item--button:focus-visible {
  border-color: var(--sb-color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 105, 255, .14);
}

.sb-list-item--accent {
  border-left-width: 4px;
  border-left-color: var(--sb-list-accent, var(--sb-color-primary));
}

.sb-list-item--link:hover,
.sb-list-item--button:hover,
.sb-list-item--expandable:hover {
  border-color: var(--sb-color-primary);
  background: #fbfdff;
}

.sb-list-item__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sb-list-item__title {
  min-width: 0;
  overflow: hidden;
  color: var(--sb-color-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-list-item__meta {
  min-width: 0;
  overflow: hidden;
  color: var(--sb-color-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-list-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sb-space-2);
  min-width: 0;
}

.sb-list-item__actions > .sb-button {
  width: auto;
  min-height: 34px;
  padding: var(--sb-space-1) var(--sb-space-3);
}

.sb-list-item--expandable {
  padding: 0;
}

.sb-list-item--expandable[open] {
  border-color: var(--sb-color-border);
}

.sb-list-item__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sb-space-3);
  padding: 6px var(--sb-space-3);
  cursor: pointer;
  list-style: none;
}

.sb-list-item__summary::-webkit-details-marker {
  display: none;
}

.sb-list-item__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sb-space-2);
  min-width: 0;
  color: var(--sb-color-primary);
}

.sb-list-item__toggle-text {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-list-item__chevron {
  color: var(--sb-color-primary);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition: transform .16s ease;
}

.sb-list-item--expandable[open] .sb-list-item__chevron {
  transform: rotate(180deg);
}

.sb-list-item__details {
  display: grid;
  gap: var(--sb-space-2);
  padding: 6px var(--sb-space-3);
  border-top: 1px solid var(--sb-color-border-soft);
}

.sb-list-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sb-space-2) var(--sb-space-3);
}

.sb-list-detail {
  display: grid;
  gap: var(--sb-space-1);
  min-width: 0;
}

.sb-list-detail__label {
  color: var(--sb-color-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.sb-list-detail__value {
  color: var(--sb-color-text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
}

.sb-list-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sb-space-2);
}

.sb-list-detail-actions > .sb-button {
  width: auto;
}

.sb-list-empty {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: var(--sb-space-3);
  border: 1px dashed var(--sb-color-border);
  border-radius: var(--sb-radius-control);
  background: #ffffff;
  color: var(--sb-color-muted);
}

.sb-list-empty__message {
  color: var(--sb-color-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.sb-list-empty__hint {
  color: var(--sb-color-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

@media (max-width: 360px) {
  .sb-list-item--with-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .sb-list-item__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .sb-list-item__actions {
    display: flex;
  }

  .sb-list-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sb-list-item__toggle-text {
    max-width: 120px;
  }
}

@media (max-width: 320px) {
  .sb-list-item__actions,
  .sb-list-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sb-list-item__actions > .sb-button,
  .sb-list-detail-actions > .sb-button {
    width: 100%;
  }
}
