/* Avatar shape overrides. Loaded AFTER the design stylesheets so these rules
   win the tie-break against e.g. .profile.design-pride .profile-avatar. */

.profile-card .profile-avatar.avatar-shape-squircle {
    border-radius: 25%;
}

.profile-card .profile-avatar.avatar-shape-square {
    border-radius: 0;
}

/* Editor: the hover overlay must follow the chosen shape too. */
.pe-avatar-btn.avatar-shape-squircle .pe-avatar-overlay {
    border-radius: 25%;
}

.pe-avatar-btn.avatar-shape-square .pe-avatar-overlay {
    border-radius: 0;
}

/* Shape selector in the profile editor. */
.shape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.shape-option {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 9px 8px 10px;
    background: var(--bg-soft);
    color: var(--text);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.shape-option:hover {
    border-color: var(--brand-600);
}

.shape-option.selected {
    border-color: var(--brand-600);
    background: color-mix(in srgb, var(--brand-600) 10%, var(--bg-soft));
}

.shape-swatch {
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto 7px;
    background: var(--brand-600);
}

.shape-swatch-round {
    border-radius: 50%;
}

.shape-swatch-squircle {
    border-radius: 25%;
}

.shape-swatch-square {
    border-radius: 2px;
}
