.ds-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.ds-page--wide {
  max-width: 1440px;
}

.ds-stack-lg {
  display: grid;
  gap: 1.5rem;
}

.ds-stack-md {
  display: grid;
  gap: 1rem;
}

.ds-header,
.ds-surface,
.ds-toolbar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.ds-header,
.ds-toolbar,
.ds-surface {
  padding: 1.5rem;
}

.ds-header-title,
.ds-section-title {
  margin: 0;
  color: var(--color-text-dark);
}

.ds-header-text,
.ds-section-text,
.ds-muted {
  color: var(--color-text-muted);
}

.ds-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ds-section-link {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.ds-grid-2,
.ds-grid-3,
.ds-grid-4 {
  display: grid;
  gap: 1rem;
}

.ds-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ds-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ds-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ds-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ds-toolbar-grow {
  flex: 1;
  min-width: 280px;
}

@media (max-width: 1024px) {
  .ds-grid-4,
  .ds-grid-3,
  .ds-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ds-page {
    padding: 1rem;
  }
}
