.chip--active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.chip {
    text-decoration: none;
}

.cat__fallback-icon[hidden] {
    display: none;
}

.cat__fallback-icon {
    display: flex;
}

.home-empty {
    opacity: 0.6;
}

.home-empty--center {
    text-align: center;
}

.home-flash {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.home-flash--success {
    color: #166534;
}

.home-flash--error {
    color: #B91C1C;
}

.events-list--scrollable {
    max-height: 352px;
    overflow-y: auto;
    padding-right: 6px;
}

.event__date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--surface-soft);
    border-radius: 12px;
    color: var(--blue);
    font-weight: 800;
    line-height: 1;
}

.event__title-link {
    color: inherit;
    text-decoration: none;
}

.event__title-link:hover {
    color: var(--blue);
}

.event__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event__registered {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
    cursor: default;
}

.event__registered-icon {
    margin-right: 4px;
}

.expandable-grid__item.is-hidden {
    display: none;
}

.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-toolbar .class-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0 !important;
    justify-content: flex-start !important;
    flex: 1 1 auto;
}

.section-toolbar--end {
    justify-content: flex-end;
}

.section-toolbar__spacer {
    flex: 1 1 auto;
}

.expandable-grid__actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.expandable-grid__toggle {
    min-width: 220px;
}

@media (max-width: 767px) {
    .class-filter {
        justify-content: flex-start !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 4px;
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .section-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .section-toolbar .expandable-grid__toggle {
        width: 100%;
    }

    .event__actions {
        width: 100%;
        flex-direction: column;
    }

    .event__actions .btn,
    .event__actions form {
        width: 100%;
    }

    .event__actions form .btn {
        width: 100%;
    }
}
