.ucp-profile-header > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rbl-profile-role {
    --rbl-role-color: #37a99b;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 34px;
    padding: .25rem .7rem;
    border: 1px solid var(--ucp-control, #7c8b9b);
    border-color: color-mix(in srgb, var(--rbl-role-color) 60%, var(--ucp-line, #dfe6ed));
    border-radius: 7px;
    background: var(--ucp-bg, #f3f6fa);
    background: color-mix(in srgb, var(--rbl-role-color) 14%, var(--ucp-surface, #fff));
    color: var(--ucp-ink, #20303e);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
}

.rbl-profile-role--editor { --rbl-role-color: #698cf0; }
.rbl-profile-role--administrator { --rbl-role-color: #e79b55; }
button.rbl-profile-role { cursor: pointer; }
.rbl-profile-role[hidden] { display: none; }
button.rbl-profile-role:hover { border-color: var(--ucp-ink, #20303e); }
button.rbl-profile-role:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.rbl-profile-dialog {
    position: fixed;
    box-sizing: border-box;
    width: min(28rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    margin: auto;
    padding: clamp(1rem, 5vw, 1.75rem);
    border: 1px solid var(--ucp-line, #dfe6ed);
    border-radius: 14px;
    background: var(--ucp-surface, #fff);
    color: var(--ucp-ink, #20303e);
    box-shadow: 0 18px 60px #0004;
}

.rbl-profile-dialog:not([open]) { display: none; }
.rbl-profile-dialog::backdrop { background: #07111b99; }
.rbl-profile-dialog h2 { margin: 0 0 .65rem; }
.rbl-profile-dialog p { margin: 0 0 1rem; }
