.ds-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ds-space-6);
}

.ds-container--sm {
    max-width: 640px;
}

.ds-container--md {
    max-width: 860px;
}

.ds-container--fluid {
    max-width: none;
}

.ds-page {
    flex: 1;
    padding-top: var(--ds-space-5);
    padding-bottom: var(--ds-space-10);
}

.ds-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--ds-space-6);
    gap: var(--ds-space-4);
    flex-wrap: wrap;
}

.ds-page-header__content {
    min-width: 0;
}

.ds-page-title {
    font-size: var(--ds-text-2xl);
    font-weight: var(--ds-font-black);
    color: var(--ds-color-text-primary);
    letter-spacing: var(--ds-tracking-tight);
    text-align: center;
    margin: 0 0 var(--ds-space-3);
}

.ds-page-description {
    font-size: var(--ds-text-sm);
    color: var(--ds-color-text-secondary);
    line-height: var(--ds-leading-relaxed);
    margin: 0;
}

.ds-page--alt {
    background: var(--ds-color-surface-sunken);
}

.ds-intro {
    background: var(--ds-color-surface-raised);
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-md);
    padding: var(--ds-space-4) var(--ds-space-5);
    margin-bottom: var(--ds-space-4);
}

.ds-intro p {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-sm);
    line-height: var(--ds-leading-relaxed);
    margin: 0;
}

.ds-section {
    padding: var(--ds-space-12) var(--ds-space-6);
}

.ds-section--sm {
    padding: var(--ds-space-8) var(--ds-space-6);
}

.ds-section--lg {
    padding: var(--ds-space-20) var(--ds-space-6);
}

.ds-section--alt {
    background: var(--ds-color-surface-sunken);
}

.ds-section--white {
    background: var(--ds-color-surface);
}

.ds-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ds-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--ds-space-6);
    gap: var(--ds-space-4);
    flex-wrap: wrap;
}

.ds-section-head h2 {
    font-size: var(--ds-text-xl);
    font-weight: var(--ds-font-extrabold);
    color: var(--ds-color-text-primary);
    letter-spacing: var(--ds-tracking-tight);
    margin: 0 0 4px;
}

.ds-section-head__sub {
    font-size: var(--ds-text-sm);
    color: var(--ds-color-text-muted);
    margin: 0;
}

.ds-grid {
    display: grid;
    gap: var(--ds-space-4);
}

.ds-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.ds-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.ds-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.ds-grid--auto-sm {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.ds-grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ds-grid--auto-lg {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.ds-grid--gap-sm {
    gap: var(--ds-space-2);
}

.ds-grid--gap-md {
    gap: var(--ds-space-3);
}

.ds-grid--gap-lg {
    gap: var(--ds-space-6);
}

.ds-flex {
    display: flex;
    gap: var(--ds-space-4);
}

.ds-flex--center {
    align-items: center;
}

.ds-flex--between {
    justify-content: space-between;
    align-items: center;
}

.ds-flex--end {
    justify-content: flex-end;
}

.ds-flex--wrap {
    flex-wrap: wrap;
}

.ds-flex--col {
    flex-direction: column;
}

.ds-flex--gap-1 {
    gap: var(--ds-space-1);
}

.ds-flex--gap-2 {
    gap: var(--ds-space-2);
}

.ds-flex--gap-3 {
    gap: var(--ds-space-3);
}

.ds-flex--gap-6 {
    gap: var(--ds-space-6);
}

.ds-flex-1 {
    flex: 1;
    min-width: 0;
}

.ds-text-center {
    text-align: center;
}

.ds-text-right {
    text-align: right;
}

.ds-text-left {
    text-align: left;
}

.ds-text-muted {
    color: var(--ds-color-text-muted);
}

.ds-text-secondary {
    color: var(--ds-color-text-secondary);
}

.ds-text-primary-color {
    color: var(--ds-color-primary);
}

.ds-text-danger {
    color: var(--ds-color-danger);
}

.ds-text-success {
    color: var(--ds-color-success);
}

.ds-text-sm {
    font-size: var(--ds-text-sm);
}

.ds-text-xs {
    font-size: var(--ds-text-xs);
}

.ds-font-bold {
    font-weight: var(--ds-font-bold);
}

.ds-font-semibold {
    font-weight: var(--ds-font-semibold);
}

.ds-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.ds-nowrap {
    white-space: nowrap;
}

@media (max-width: 960px) {
    .ds-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ds-container {
        padding: 0 var(--ds-space-4);
    }

    .ds-section {
        padding: var(--ds-space-10) var(--ds-space-4);
    }

    .ds-grid--2,
    .ds-grid--3,
    .ds-grid--4 {
        grid-template-columns: 1fr;
    }

    .ds-page-header {
        flex-direction: column;
    }

    .ds-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .ds-container {
        padding: 0 var(--ds-space-3);
    }

    .ds-section {
        padding: var(--ds-space-8) var(--ds-space-3);
    }
}