/* Shared close controls. Size may vary; shape and interaction do not. */
:is(.admin-shell, .superadmin-shell, .auth-shell, .user-shell) button.portal-close {
    --close-size: 40px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--close-size);
    height: var(--close-size);
    min-width: var(--close-size);
    min-height: var(--close-size);
    padding: 0;
    margin: 0;
    border: 1px solid #d6e1da;
    border-radius: 8px;
    background: #f7faf8;
    color: #425c4d;
    box-shadow: none;
    cursor: pointer;
    line-height: 1;
    transform: none;
}
:is(.admin-shell, .superadmin-shell, .auth-shell, .user-shell) button.portal-close--compact { --close-size: 32px; }
:is(.admin-shell, .superadmin-shell, .auth-shell, .user-shell) button.portal-close:hover { background: #eaf2ed; border-color: #a8beb0; color: #0f5a3d; box-shadow: none; transform: none; }
:is(.admin-shell, .superadmin-shell, .auth-shell, .user-shell) button.portal-close:focus-visible { outline: 2px solid #0f5a3d; outline-offset: 3px; }
:is(.admin-shell, .superadmin-shell, .auth-shell, .user-shell) button.portal-close:disabled { opacity: .5; cursor: not-allowed; }
.portal-close > svg { width: 20px; height: 20px; pointer-events: none; }
@media (pointer: coarse) {
    :is(.admin-shell, .superadmin-shell, .auth-shell, .user-shell) button.portal-close { min-width: 44px; min-height: 44px; }
}
