.list-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
}

/* сетка карточек (мобайл-френдли) */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.list_element {
    width: 100%; /* занимает всю ширину родителя */
    box-sizing: border-box; /* учитывает padding в ширину */
    justify-content: center;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform .05s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.list_element:active {
    transform: scale(0.99);
}

.list_element .name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}

.list_element .meta {
    font-size: 12px;
    color: var(--muted);
}

/* визуал выбора */
.list_element[aria-checked="true"] {
    border-color: #d9ccff;
    background: #f5f0ff;
    box-shadow: 0 2px 12px rgba(150, 52, 235, 0.18);
}

#registerBtn {
    background: #f7f7f9;
    font-weight: 400;
    justify-content: center;
}

/* нижняя панель с кнопкой далее */
.footer-actions {
    position: sticky;
    bottom: 0;
    margin-top: 12px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
    padding: 10px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}


/* состояния */
.state {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 24px 6px;
}

.spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--accent, #6c4be3);
    animation: spin .8s linear infinite;
    display: inline-block;
}

.student-row {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    margin-bottom: 6px;
}

.edit-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
}

.edit-btn:hover {
    color: var(--accent, #6c4be3);
}

.tabs {
    font-size: 11px;
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.tab {
    background: white;
    flex: 1; /* одинаковая ширина у всех вкладок */
    text-align: center;
    align-items: center; /* вертикальное центрирование */
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    box-sizing: border-box;
}

.tab.active {
    border: 1px solid var(--border);
    border-color: #d9ccff;
    background: #f5f0ff;
    box-shadow: 0 2px 12px rgba(150, 52, 235, 0.18);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 560px) {
    .cards {
        grid-template-columns: 1fr;
    }
}