/* Shared website corner geometry. Keep every existing radius, border,
   overflow, shadow and backdrop-filter; let the browser render the curve.
   Loaded last by web_shell.php, including login and management pages.
   Unsupported engines keep their existing rounded corners without JS work. */
@supports (corner-shape: squircle) {
    *, *::before, *::after, *::backdrop {
        corner-shape: squircle;
    }

    /* A circle is already continuous. Keep portraits and explicitly circular
       controls circular instead of turning them into rounded squares. */
    :is(.avatar, .user-avatar, .profile-avatar, .photographer-avatar,
        .reviewer-avatar, .site-account-avatar, .avatar-frame,
        input[type="radio"], .site-top-bar-btn, .site-account-button),
    :is(.avatar, .user-avatar, .profile-avatar, .photographer-avatar,
        .reviewer-avatar, .site-account-avatar, .avatar-frame) img {
        corner-shape: round;
    }
}

@supports (corner-shape: squircle) {
    html body .bottom-nav-slider::after { corner-shape: round !important; }
    /* Capsules retain round ends, including their highlight layers. */
    html body :is(.bottom-nav, .bottom-nav-slider,
        .badge, .pill, .chip, .tag, .carousel-dot, .pagination-dot),
    html body [style*="border-radius: 999"],
    html body [style*="border-radius:999"],
    html body [style*="border-radius: 50%"],
    html body [style*="border-radius:50%"] {
        corner-shape: round !important;
    }
}
