*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

input,
select,
textarea {
    color: var(--text-primary);
    color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    caret-color: var(--text-primary);
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset;
    transition: background-color 5000s ease-in-out 0s;
}

img {
    max-width: 100%;
    display: block;
}

.hidden {
    display: none !important;
}

.empty-state {
    margin: 0;
    padding: 18px 16px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.empty-state__action {
    margin-top: 14px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding: 32px 0;
}

.section__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.section__subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section__head .section__title {
    margin-bottom: 8px;
}

.section__head .section__title--compact {
    margin-bottom: 0;
}

.section__head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.section__head-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    min-width: 0;
}

.section__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-light);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s;
}

.section__link:hover {
    color: #fff;
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-page h1 {
    font-size: 96px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-page p {
    color: var(--text-secondary);
    margin: 16px 0 32px;
}

@media (max-width: 768px) {
    .container {
        padding-inline: 16px;
    }
}
