/* Role colors shared with the forum header in css/online-users.v2.css. */
/* Forum profile.css .icon-btn and Font Awesome's fa-right-from-bracket. */
.ci-portal .cp-header-account { display:flex; align-items:center; gap:4px; min-width:0; }
.ci-portal .cp-site-header .cp-logout-icon {
  display:flex; align-items:center; justify-content:center; flex:none;
  width:36px; height:36px; min-height:0; padding:0; border:0; border-radius:6px;
  color:#888; background:transparent; box-shadow:none; cursor:pointer;
  transition:color .2s,background .2s;
}
.ci-portal .cp-site-header .cp-logout-icon span::before { content:"\f2f5"; font:900 16px/1 "CI Profile Icons"; }
.ci-portal .cp-site-header .cp-logout-icon:hover { color:#fff; background:rgba(255,255,255,.05); }
.ci-portal .cp-site-header .cp-logout-icon:focus-visible { outline:2px solid #c2c1c7; outline-offset:2px; }
.ci-portal .cp-site-header .cp-logout-icon:disabled { opacity:.5; cursor:wait; }
@media (max-width:740px) {
  .ci-portal .cp-site-header .cp-logout-icon { width:44px; height:44px; }
  .ci-portal .cp-header-account { margin-inline-start:auto; }
}
[data-forum-role="admin"] { --ci-role-color: #f87171; }
[data-forum-role="staff"] { --ci-role-color: #06b6d4; }
[data-forum-role="mod"] { --ci-role-color: #ffc0cb; }
[data-forum-role="svip"] { --ci-role-color: #f97316; }
[data-forum-role="vip"] { --ci-role-color: #fbbf24; }
[data-forum-role="trusted"] { --ci-role-color: #60a5fa; }
[data-forum-role="user"] { --ci-role-color: #22c55e; }
[data-theme="light"] [data-forum-role="admin"] { --ci-role-color: #b91c1c; }
[data-theme="light"] [data-forum-role="staff"] { --ci-role-color: #0e7490; }
[data-theme="light"] [data-forum-role="mod"] { --ci-role-color: #be185d; }
[data-theme="light"] [data-forum-role="svip"] { --ci-role-color: #c2410c; }
[data-theme="light"] [data-forum-role="vip"] { --ci-role-color: #854d0e; }
[data-theme="light"] [data-forum-role="trusted"] { --ci-role-color: #1d4ed8; }
[data-theme="light"] [data-forum-role="user"] { --ci-role-color: #166534; }
body.ci-portal .wp-user-name[data-forum-role] {
  color: var(--ci-role-color);
  text-shadow: none;
}
body.ci-portal .wp-profile[data-forum-role] .wp-avatar-large { border-color: var(--ci-role-color); }
body.ci-portal .wp-profile[data-forum-role] .wp-role-admin {
  color: var(--ci-role-color);
  border-color: color-mix(in srgb, var(--ci-role-color) 35%, transparent);
  background: color-mix(in srgb, var(--ci-role-color) 12%, transparent);
}
body.ci-portal .wp-profile .wp-role-staff {
  color: #06b6d4;
  border-color: #06b6d44d;
  background: #06b6d426;
}
