.practice-index-page {
    min-height: calc(100vh - 4rem);
    padding: 2rem 0 4rem;
    background: #f7f9fc;
    color: #17212b;
}

.practice-index-shell {
    width: min(100% - 2rem, 1080px);
    margin: 0 auto;
}

.practice-index-header {
    margin-bottom: 1.2rem;
}

.practice-index-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.practice-index-header h1 {
    margin: 0;
    color: #17212b;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.2;
}

.practice-index-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.8rem;
}

.practice-index-summary p {
    margin: 0;
    color: #536574;
    font-weight: 600;
}

.practice-index-summary a,
.practice-index-complete,
.practice-index-continue {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.practice-index-summary a,
.practice-index-continue {
    background: #eef6ff;
    color: #15467a;
}

.practice-index-complete {
    background: #eefaf3;
    color: #166534;
}

.practice-index-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.practice-index-filter {
    appearance: none;
    border: 1px solid #d8e1e9;
    background: #fff;
    color: #334155;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.practice-index-filter.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.practice-index-filter:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.practice-index-groups {
    display: grid;
    gap: 1.25rem;
}

.practice-index-module {
    padding: 0.7rem 0.9rem;
    border: 1px solid #d8e1e9;
    border-radius: 12px;
    background: #fff;
}

.practice-index-module h2 {
    margin: 0 0 0.7rem;
    color: #243746;
    font-size: 1.05rem;
    line-height: 1.35;
}

.practice-index-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.practice-index-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.55rem;
    border: 1px solid #edf1f6;
    border-radius: 10px;
    background: #fbfdff;
}

.practice-index-challenge {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.7rem;
    flex: 1;
}

.practice-index-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-weight: 800;
    flex-shrink: 0;
}

.practice-index-status-badge.is-passed {
    background: #eafdf1;
    color: #166534;
}

.practice-index-status-badge.is-open {
    background: #f0f4f8;
    color: #475569;
}

.practice-index-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.15rem;
}

.practice-index-title {
    min-width: 0;
    color: #1d4f91;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.practice-index-topic {
    color: #526477;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.practice-index-description {
    color: #526477;
    font-size: 0.82rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.practice-index-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.practice-index-status {
    color: #176236;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.practice-index-action,
.practice-index-button {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 0.8rem;
    border: 1px solid #b9c8d5;
    border-radius: 8px;
    background: #fff;
    color: #314353;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.practice-index-action:hover,
.practice-index-action:focus-visible,
.practice-index-button:hover,
.practice-index-button:focus-visible,
.practice-index-title:focus-visible,
.practice-index-back:focus-visible,
.practice-index-summary a:focus-visible,
.practice-index-continue:focus-visible {
    background: #f2f6f8;
    color: #1d4f91;
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.practice-index-back {
    display: inline-flex;
    align-items: center;
    color: #1d4f91;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 575px) {
    .practice-index-page {
        padding-top: 1.25rem;
    }

    .practice-index-shell {
        width: min(100% - 1rem, 980px);
    }

    .practice-index-topline,
    .practice-index-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .practice-index-item {
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
    }

    .practice-index-actions {
        width: 100%;
        justify-content: space-between;
    }

    .practice-index-action {
        width: auto;
        flex: 1 1 auto;
    }
}
