.list-page {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-width: 0;
}

.list-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.list-page__title {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text);
}

.list-page__subtitle {
  margin: var(--s-1) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.list-page__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.list-toolbar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.list-toolbar__search {
  flex: 1 1 260px;
  max-width: 360px;
  min-width: 0;
}

.list-toolbar__filters {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.list-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-4);
  background: var(--brand-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text);
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-1);
}

.btn.row-actions__btn--danger:hover {
  color: var(--danger);
}

.cell-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 360px;
  min-width: 0;
}

.cell-title__main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
}

.cell-title__sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

.cell-muted {
  color: var(--text-muted);
}

.cell-actions {
  text-align: right;
  width: 1%;
}

.list-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.list-detail__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}

.list-detail__text {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .list-toolbar__search {
    flex-basis: 100%;
    max-width: none;
  }

  .list-page__actions {
    width: 100%;
  }
}
