.profile-edit-actions,
.interests-actions {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.profile-edit-actions > *,
.interests-actions > * {
    flex: 1 1 0;
}

.interests-actions .button {
    border-radius: 4px;
}

.interests-shell {
    max-width: 1050px;
    margin: 0 auto;
}

.interests-shell > .eyebrow {
    margin: 0 0 0.2rem;
}

.interests-shell > h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.interests-intro {
    margin: 0 0 0.85rem;
}

.interests-form {
    display: grid;
    gap: 1.25rem;
}

.interest-selection-status {
    position: sticky;
    top: .75rem;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-color: var(--accent);
}

.interest-selection-status strong {
    color: var(--brand);
}

.interest-category {
    margin: 0;
    min-width: 0;
    padding-top: 1.15rem;
}

.interest-category legend {
    float: left;
    width: 100%;
    margin: 0 0 .8rem;
    padding: 0;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1.2;
}

.interest-category legend + * {
    clear: both;
}

.interest-category-counter {
    margin: 0 0 0.75rem;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: .7rem;
}

.interest-option {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .72rem .85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.interest-option:has(input:checked) {
    border-color: var(--brand);
    background: #eaf4f5;
}

.interest-option:has(input:disabled:not(:checked)) {
    opacity: .48;
    cursor: not-allowed;
}

.interest-option input {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--brand);
}

@media (max-width: 640px) {
    .profile-edit-actions,
    .interests-actions,
    .interest-selection-status {
        flex-direction: column;
    }

    .interest-grid {
        grid-template-columns: 1fr;
    }
}
