.topbar .portal-presence-button,#teamChatBody .portal-presence-button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-height:40px;
  padding:5px 9px;border:1px solid #335444;border-radius:9px;background:#14291e;color:#d8eedf;
  font:650 .73rem/1.2 system-ui,sans-serif;white-space:nowrap;cursor:pointer
}
#teamChatBody .portal-presence-button{border-color:var(--chat-line);background:var(--chat-chip);color:var(--chat-ink)}
.topbar .portal-presence-button[hidden],#teamChatBody .portal-presence-button[hidden]{display:none!important}
.portal-presence-button i{width:7px;height:7px;border-radius:50%;background:#8e9b94}
.portal-presence-button[data-online="true"] i{background:#49b980}
#portalPresenceDialog{width:min(360px,calc(100vw - 24px));max-height:min(480px,85dvh);padding:18px;border:1px solid #41604f;border-radius:14px;background:#14291e;color:#edf5ee}
#portalPresenceDialog::backdrop{background:#08120cc0}
#portalPresenceDialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
#portalPresenceDialog h2{margin:0;font-size:1rem}
#portalPresenceDialog button{min-width:44px;min-height:44px;border:0;border-radius:8px;background:#263f31;color:#edf5ee;font-size:1.25rem;cursor:pointer}
#portalPresenceList{display:grid;gap:0;padding:0;margin:9px 0 0;list-style:none}
#portalPresenceList li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #314b3c;font-size:.82rem}
#portalPresenceList b{overflow-wrap:anywhere}
#portalPresenceList span{flex:none;color:#adc0b3;font-size:.72rem}
#portalPresenceList span[data-online="true"]{color:#8cddb0}
