.profile-sound-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0;
    padding: clamp(16px, 2.5vw, 22px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.profile-sound-copy {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.profile-sound-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--bg-card);
    background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
    color: var(--accent);
}

.profile-sound-copy h2 {
    margin: 0;
    font-size: 1rem;
}

.profile-sound-copy p,
.profile-sound-status {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.profile-sound-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-sound-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
}

.profile-sound-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.profile-sound-preview {
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-elevated, var(--bg-card));
    color: var(--text-primary);
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    transition: border-color 160ms ease, transform 160ms ease;
}

.profile-sound-preview:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.profile-sound-preview:focus-visible,
.profile-sound-toggle:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.toast.is-leaving {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 220ms ease, transform 220ms ease;
}

@media (max-width: 600px) {
    .profile-sound-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-sound-controls {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-sound-preview,
    .toast.is-leaving {
        transition: none;
    }

    .profile-sound-preview:hover {
        transform: none;
    }
}
