:root {
  --bg-side: #2b2d31; --bg-dark: #1e1f22; --bg-main: #313338; --bg-input: #383a40;
  --text: #dbdee1; --muted: #949ba4; --accent: #5865f2; --hover: #35373c; --active: #404249;
  --green: #23a559; --red: #f23f42;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg-main); color: var(--text); font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 4px; color: inherit; background: transparent; }
input { font: inherit; color: var(--text); }
a { color: #00a8fc; }

/* ---------- login / sign up ---------- */
#auth { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg-side); padding: 16px; }
#authForm { background: var(--bg-main); padding: 32px; border-radius: 8px; width: min(380px, 100%); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
#authForm h1 { margin: 0 0 4px; font-size: 24px; }
#authForm p { margin: 0 0 18px; color: var(--muted); }
#authForm label { display: block; margin: 12px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
#authForm input { width: 100%; padding: 11px 12px; border: 0; border-radius: 4px; background: var(--bg-dark); outline: none; }
#authForm input:focus { box-shadow: 0 0 0 2px var(--accent); }
#authError { color: var(--red); min-height: 1.4em; margin: 10px 0 4px; font-size: 13px; }
button.primary { width: 100%; padding: 11px; background: var(--accent); color: #fff; font-weight: 600; }
button.primary:hover { filter: brightness(1.1); }
button.primary:disabled { opacity: .6; cursor: wait; }
.switch { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- app layout ---------- */
#app { height: 100dvh; display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; }
aside { background: var(--bg-side); min-height: 0; }
#sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--bg-dark); min-width: 0; }
.title { padding: 14px 16px; font-weight: 700; border-bottom: 1px solid var(--bg-dark); }
.scroll { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.section { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 4px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
button.add { width: 22px; height: 22px; font-size: 18px; line-height: 1; color: var(--muted); }
button.add:hover { color: #fff; background: var(--hover); }

.item { margin: 1px 8px; padding: 6px 10px; border-radius: 4px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 8px; min-width: 0; }
.item:hover { background: var(--hover); color: var(--text); }
.item.active { background: var(--active); color: #fff; }
.item .icon { width: 18px; text-align: center; flex: none; }
.item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #fff; display: none; flex: none; }
.item.unread { color: #fff; font-weight: 600; }
.item.unread .dot { display: block; }
.presence { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.presence.on { background: var(--green); border-color: var(--green); }
.vmember { display: flex; align-items: center; gap: 8px; margin: 2px 8px 2px 36px; color: var(--muted); font-size: 14px; }

#voiceBar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #232428; border-top: 1px solid var(--bg-dark); }
.vinfo { flex: 1; min-width: 0; }
.vstatus { color: var(--green); font-size: 12px; font-weight: 700; }
#voiceName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
button.small { padding: 5px 9px; font-size: 13px; background: var(--active); }
button.small:hover { filter: brightness(1.2); }
button.small.danger { background: var(--red); color: #fff; }
.me { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 10px 16px; background: #232428; font-weight: 600; }
.me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- main column ---------- */
main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
#conn { background: #f0b232; color: #000; text-align: center; padding: 4px; font-size: 13px; font-weight: 600; }
header { padding: 14px 16px; font-weight: 700; border-bottom: 1px solid var(--bg-dark); }
#messages { flex: 1; overflow-y: auto; padding: 12px 0; }
.empty { color: var(--muted); text-align: center; padding: 40px 16px; }

.msg { display: flex; gap: 12px; padding: 3px 16px; }
.msg:not(.grouped) { margin-top: 12px; }
.msg:hover { background: rgba(0,0,0,.1); }
.avatar { border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.gutter { width: 40px; flex: none; text-align: right; font-size: 11px; color: transparent; padding-top: 3px; white-space: nowrap; }
.msg:hover .gutter { color: var(--muted); }
.body { min-width: 0; }
.meta .author { font-weight: 600; margin-right: 8px; }
.meta .time { font-size: 12px; color: var(--muted); }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }
.attachment { display: block; max-width: min(420px, 100%); max-height: 320px; border-radius: 6px; margin-top: 4px; }

#composer { padding: 0 16px 20px; }
#composer .row { display: flex; align-items: center; background: var(--bg-input); border-radius: 8px; }
#attachBtn { width: 44px; height: 44px; font-size: 22px; color: var(--muted); flex: none; }
#attachBtn:hover { color: #fff; }
#msgInput { flex: 1; min-width: 0; padding: 12px 14px 12px 0; border: 0; background: transparent; outline: none; }
#pending { display: flex; align-items: center; gap: 10px; background: var(--bg-input); border-radius: 8px 8px 0 0; padding: 8px 12px; border-bottom: 1px solid var(--bg-dark); }
#pending img { max-height: 70px; max-width: 120px; border-radius: 4px; }

/* ---------- members ---------- */
#members { border-left: 1px solid var(--bg-dark); overflow-y: auto; padding-bottom: 12px; }
.member { margin: 1px 8px; padding: 4px 8px; border-radius: 4px; display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }
.member:hover { background: var(--hover); }
.member.offline { opacity: .45; }
.member span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); max-width: min(90vw, 460px); background: #111214; color: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.5); z-index: 10; }

/* ---------- typing ---------- */
.typing { padding: 2px 16px 6px; font-size: 12px; color: var(--muted); height: 18px; min-height: 18px; }

/* ---------- message delete ---------- */
.msg { position: relative; }
.msg .del { position: absolute; top: 2px; right: 8px; width: 24px; height: 24px; font-size: 14px; color: var(--muted); opacity: 0; background: var(--bg-input); cursor: pointer; border-radius: 4px; border: none; }
.msg:hover .del { opacity: 1; }
.msg .del:hover { color: #fff; background: var(--red); }

/* --- Profile Modal --- */
.profile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.profile-modal { background: var(--bg-main); border-radius: 8px; width: min(420px, 100%); position: relative; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.6); }
.profile-banner { height: 120px; background: var(--accent); width: 100%; }
.profile-avatar { position: absolute; top: 80px; left: 24px; border: 6px solid var(--bg-main); border-radius: 50%; width: 80px !important; height: 80px !important; font-size: 32px !important; }
.profile-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; }
.profile-close:hover { background: rgba(0,0,0,0.8); }
.profile-details { padding: 60px 24px 24px; }
.profile-details h2 { margin: 0; font-size: 24px; }
.profile-username { margin: 4px 0 16px; color: var(--muted); font-size: 14px; }
.profile-divider { height: 1px; background: var(--bg-dark); margin: 16px 0; }
.profile-joined { font-size: 12px; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  #app { grid-template-columns: 190px minmax(0, 1fr); }
  #members { display: none; }
}
@media (max-width: 560px) {
  #app { grid-template-columns: 140px minmax(0, 1fr); }
  .msg { gap: 8px; padding: 3px 10px; }
}
/* --- Full Settings Page --- */
#settingsPage { position: fixed; inset: 0; background: var(--bg-main); display: flex; z-index: 200; }
#settingsSidebar { width: 280px; background: var(--bg-side); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--bg-dark); }
.settings-sidebar-scroll { flex: 1; overflow-y: auto; padding: 20px 12px; }
.settings-profile-card { background: var(--bg-dark); border-radius: 8px; padding: 12px; margin-bottom: 20px; }
.settings-profile-info { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
.muted { color: var(--muted); font-size: 12px; font-weight: 400; }
.settings-nav-section { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin: 16px 8px 8px; }
.settings-nav-item { padding: 8px 12px; border-radius: 4px; margin-bottom: 2px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 15px; }
.settings-nav-item:hover { background: var(--hover); color: var(--text); }
.settings-nav-item.active { background: var(--active); color: #fff; }
.settings-nav-item.danger { color: var(--red); }
.settings-nav-item.danger:hover { background: var(--red); color: #fff; }
.settings-divider { height: 1px; background: var(--bg-dark); margin: 12px 8px; }
.settings-close-bar { padding: 16px; border-top: 1px solid var(--bg-dark); }

#settingsContent { flex: 1; padding: 40px 60px; overflow-y: auto; max-width: 900px; margin: 0 auto; }
#settingsContent h1 { margin-top: 0; margin-bottom: 24px; font-size: 28px; }
.settings-card { background: var(--bg-dark); border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.settings-card h3 { margin-top: 0; margin-bottom: 16px; font-size: 16px; }
.settings-row { display: flex; align-items: center; gap: 16px; }
.settings-help { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.settings-input { width: 100%; padding: 10px 12px; border-radius: 4px; border: none; background: var(--bg-input); color: #fff; font-size: 15px; outline: none; }
.settings-banner-preview { width: 180px; height: 60px; background: var(--accent); border-radius: 4px; background-size: cover; background-position: center; }

/* --- layout helpers (these replace the inline style="..." attributes that the security policy blocks) --- */
#meName { cursor: pointer; }
.me-actions { display: flex; gap: 4px; }
#closeSettings { width: 100%; }
#settingsAvatarPreview { width: 80px; height: 80px; font-size: 32px; }
.grow { flex: 1; }
.settings-input.grow { width: auto; }
#saveSettingsProfile { width: 120px; }
#saveSettingsAccount { width: auto; padding: 11px 24px; margin-left: auto; white-space: nowrap; }
.settings-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

/* --- forgot / reset password --- */
.forgot { margin-top: 10px; font-size: 13px; }
#authInfo { color: var(--green, #23a559); margin: 10px 0 0; font-size: 13px; }
#authInfo:empty { display: none; }


/* Enclave brand identity */
.enclave-brand-mark {
  display: block;
  object-fit: cover;
  border-radius: 14px;
  flex: none;
}
.auth-brand-mark {
  width: 72px;
  height: 72px;
  margin: 0 0 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.enclave-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.settings-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 18px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
}
.settings-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

#app {grid-template-columns:72px 240px minmax(0,1fr) 220px}
#serverRail{background:#1e1f22;display:flex;flex-direction:column;align-items:center;gap:12px;padding:12px 0}
#serverRail button{position:relative;width:48px;height:48px;border:0;border-radius:16px;background:#313338;color:#fff;font-size:25px;cursor:pointer}
#serverRail button.selected{outline:2px solid var(--accent)}
#serverRail img{width:100%;height:100%;border-radius:inherit}
.verified{position:absolute;right:-4px;bottom:-4px;background:var(--accent);border-radius:50%;font-size:12px;padding:2px 5px;color:white}
#friendPanel{padding:8px;display:grid;gap:8px}
#friendPanel button{cursor:pointer}
@media(max-width:1000px){#app{grid-template-columns:64px 190px minmax(0,1fr)}}
@media(max-width:560px){#app{grid-template-columns:54px 140px minmax(0,1fr)}#serverRail button{width:40px;height:40px}}

#customRail{display:flex;flex-direction:column;gap:10px;align-items:center} #serverRail{overflow-y:auto} #serverRail button img{object-fit:cover} #serverLabel{overflow:hidden;text-overflow:ellipsis}

#auth {overflow:auto;} #authForm {flex-shrink:0;margin:auto;} #togglePassword {margin-top:6px;} #savedAccounts .saved-label {margin:0 0 6px;} #savedAccountList {display:flex;flex-wrap:wrap;gap:6px;} .saved-account {display:inline-flex;align-items:center;gap:5px;background:var(--bg-dark);border-radius:20px;padding:4px 9px;} #passkeyRow {margin-top:10px;} .passkey-login {width:100%;padding:10px;background:var(--bg-dark);border-radius:4px;} #passkeyRow small {display:block;color:var(--muted);font-size:11px;margin-top:5px;} dialog {background:var(--bg-main);color:inherit;border:1px solid var(--accent);border-radius:12px;padding:24px;max-width:95vw;} dialog textarea {display:block;width:100%;min-width:260px;margin-top:12px;} dialog::backdrop {background:#0009;}

/* Voice and video preferences */
.av-field{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;color:var(--text,#eee)}
.av-field select{min-width:190px;max-width:100%}.av-field input[type=range]{width:100%;accent-color:#f253a4}
.voice-volume-menu{position:fixed;z-index:10000;width:240px;padding:14px;border:1px solid #5b4357;border-radius:12px;background:#25252e;color:#fff;box-shadow:0 10px 32px #0009;font-size:13px}
.voice-volume-menu input[type=range]{width:100%;accent-color:#f253a4;margin:10px 0}.voice-volume-label{display:flex;justify-content:space-between;margin-top:12px}
.vmember{cursor:context-menu}

/* v0.17: readable Discord-like member/DM nameplates */
#dmList .item { min-height: 52px; padding: 6px 9px; gap: 10px; }
#dmList .item .dot { margin-left: auto; }
.nameplate-avatar { display: inline-flex; position: relative; flex: none; width: 32px; height: 32px; }
.nameplate-avatar .avatar { flex: none; }
.nameplate-presence { position: absolute; bottom: -2px; right: -2px; width: 11px; height: 11px; background: #747f8d; border: 2px solid var(--bg-side); border-radius: 50%; }
.nameplate-presence.online { background: var(--green); }
.nameplate-info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.nameplate-title { font-size: 13px; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.nameplate-handle { font-size: 11px; font-weight: 400; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#members .member { min-height: 52px; padding: 7px 9px; gap: 10px; border-radius: 7px; }
#members .member.offline { opacity: .68; }
#members .member:hover, #dmList .item:hover { background: var(--hover); }
#voiceTimer { margin-left: 6px; color: var(--text); font-variant-numeric: tabular-nums; }
.voice-quality { font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-quality.good { color: var(--green); }
.voice-quality.fair { color: #e8b45b; }
.voice-quality.bad { color: var(--red); }
.voice-quality.unknown { color: var(--muted); }

/* v0.18 social and settings */
.nameplate-handle:empty{display:none}
.social-shortcuts{padding:8px;display:grid;gap:3px}.social-shortcut{padding:10px 12px;text-align:left;border-radius:5px;color:var(--text)}.social-shortcut:hover{background:var(--hover)}
#socialWorkspace{flex:1;min-height:0;overflow-y:auto;padding:18px 22px}.friends-tabs{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid var(--bg-dark)}.friends-tab{padding:7px 12px;border-radius:5px;color:var(--muted)}.friends-tab.selected{background:var(--active);color:white}.social-body{max-width:780px;padding:12px 0}.social-person{display:flex;align-items:center;gap:12px;padding:12px 6px;border-bottom:1px solid var(--bg-dark)}.social-person>span{flex:1}.notes-editor{display:block;width:100%;max-width:780px;min-height:300px;resize:vertical;background:var(--bg-input);border:1px solid var(--active);border-radius:5px;color:var(--text);padding:14px;font:inherit;margin:16px 0}.settings-footer-brand{font-size:11px;color:var(--muted);letter-spacing:2px;padding:12px 16px}.me{border-radius:0;padding:9px 12px}.me-actions button{border-radius:4px}
#serverSettingsPage{position:fixed;inset:0;z-index:200;display:flex;background:var(--bg-main)}.server-settings-nav{width:270px;padding:25px 12px;background:var(--bg-side);display:flex;flex-direction:column;gap:5px}.server-settings-nav button{text-align:left;padding:11px 13px;border-radius:5px}.server-settings-nav button:hover,.server-settings-nav button.active{background:var(--active)}#serverSettingsContent{flex:1;padding:45px;max-width:760px;overflow:auto}#serverSettingsContent label{display:block;margin:16px 0 7px}#serverSettingsContent .settings-input{display:block;width:100%;padding:10px}#serverSettingsContent textarea{min-height:100px}#serverSettingsContent .primary{max-width:250px;margin-top:20px}

/* v0.19 compact account panel */
.account-panel{position:relative;display:flex;align-items:center;gap:5px;padding:8px;background:#202126;border-top:1px solid #393942;min-height:58px}
.account-identity{display:flex;align-items:center;gap:8px;min-width:0;flex:1;text-align:left;background:transparent;border:0;color:var(--text);padding:2px;cursor:pointer;border-radius:5px}
.account-identity:hover,.account-icon:hover{background:#383940}
.account-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:#f72590 center/cover no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px}
.account-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}.account-text strong,.account-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:110px}.account-text strong{font-size:13px}.account-text small{font-size:10px;color:#a5a6b4;margin-top:3px}
.me-actions{display:flex;gap:2px;flex-shrink:0}.account-icon{border:0;background:transparent;color:#c5c6d0;font-size:16px;width:29px;height:32px;padding:0;border-radius:5px;cursor:pointer}.account-icon.toggled{color:#ff5b7c;background:#4b2737}
.account-popup{position:absolute;bottom:calc(100% + 8px);left:7px;width:min(285px,calc(100vw - 24px));padding:12px;background:#292a31;border:1px solid #484951;border-radius:9px;box-shadow:0 12px 35px #0008;z-index:60}.account-popup[hidden]{display:none}.account-menu-item,.account-status-options button,.account-menu-save{width:100%;text-align:left;background:#34353e;color:#f1f1f5;border:0;padding:9px;border-radius:5px;cursor:pointer}.account-menu-label{display:block;color:#aaaab7;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin:12px 0 6px}.account-status-options{display:grid;grid-template-columns:1fr 1fr;gap:5px}.account-status-options button{font-size:11px;padding:8px}.account-status-options button.selected{outline:1px solid #f72590;background:#493045}.account-popup input{width:100%;box-sizing:border-box;background:#1b1c21;color:white;border:1px solid #4a4b53;border-radius:5px;padding:9px}.account-menu-save{background:#f72590;text-align:center;margin-top:10px;font-weight:700}

/* v0.20: context-sensitive right panel and status indicators */
.nameplate-presence {position:absolute;bottom:-2px;right:-2px;width:11px;height:11px;border:2px solid var(--bg-dark);border-radius:50%;background:#747780}
.nameplate-avatar {position:relative;display:inline-flex;flex-shrink:0}
.nameplate-presence.online{background:#43b581}
.nameplate-presence.idle{background:#faa61a}
.nameplate-presence.dnd{background:#f04747}
.nameplate-presence.offline{background:#747780}
.active-status-text{display:block;color:var(--muted);font-size:12px;margin-top:3px}
#members .member:has(.active-status-text){border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025);margin:7px 9px;border-radius:10px;padding:10px 9px}
#members .member:has(.active-status-text):hover{background:var(--hover)}
.active-empty{padding:12px;color:var(--muted);font-size:13px}
.coming-soon{padding:30px 24px}.coming-soon p{color:var(--muted)}
#friendsRail svg{display:block;margin:auto}

/* v0.21 DM and account polish */
.conversation-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px}
#dmActions{display:flex;align-items:center;gap:5px}#dmActions[hidden]{display:none}
.dm-action{border:0;background:transparent;color:#c4c1d0;font-size:19px;padding:5px 7px;border-radius:6px;cursor:pointer}.dm-action:hover{background:#37333e;color:white}
#dmProfile{padding:8px 12px}#dmProfile[hidden],#memberList[hidden]{display:none}
.dm-profile-card{border-radius:10px;overflow:hidden;background:#26252c;border:1px solid #34323c}
.dm-profile-banner{height:66px;background:#16151a}.dm-profile-person{padding:0 14px 12px;margin-top:-25px;display:flex;flex-direction:column;align-items:flex-start;gap:5px}.dm-profile-person h3{margin:5px 0 0;font-size:16px}.dm-profile-person small,.dm-profile-person p{color:#a8a3b6;margin:0;font-size:12px}.dm-profile-since{margin:0 12px;padding:12px 0;border-top:1px solid #3d3945;font-size:12px}.dm-profile-since strong{display:block;font-size:10px;margin-bottom:8px}.dm-profile-mutual{background:#26252c;border-radius:9px;padding:14px;margin-top:12px;color:#c4c1ce;font-size:12px;display:grid;gap:15px}.dm-profile-view{width:100%;background:#35313e;color:white;border:0;border-radius:6px;padding:11px;margin-top:14px;cursor:pointer}.dm-profile-view:hover{background:#494251}
.dm-search-results{position:sticky;top:0;background:#282630;padding:12px;display:flex;justify-content:space-between;gap:8px;align-items:center}.dm-search-results button{cursor:pointer}.dm-search-hit{padding:12px 16px;border-bottom:1px solid #37333d}.dm-search-hit p{margin:6px 0;white-space:pre-wrap}
.account-popup{width:min(310px,calc(100vw - 24px));border-radius:10px}.account-popup-identity{display:flex;align-items:center;gap:10px;padding:4px 2px 13px}.account-popup-identity>div:last-child{display:flex;flex-direction:column;gap:3px}.account-popup-identity small{color:#aaa4b4}

/* v0.21.1 profile and server settings improvements */
.profile-modal{width:min(780px,calc(100vw - 28px));max-height:min(85vh,850px);overflow-y:auto;border-radius:12px}
.profile-banner{height:175px}.profile-avatar{width:100px!important;height:100px!important}
.profile-details{padding:20px 28px 30px}.profile-details h2{font-size:24px;margin:5px 0}
.profile-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0}.profile-more-menu{display:flex;gap:7px;flex-wrap:wrap}.profile-more-menu[hidden]{display:none}
.profile-tabs{display:flex;gap:20px;border-bottom:1px solid #47434d;margin-top:20px}.profile-tab{background:transparent;border:0;padding:12px 0;color:#aaa5b5;cursor:pointer}.profile-tab.active{color:#fff;border-bottom:2px solid #f72590}.profile-tab-body{min-height:125px;padding:16px 0}
#dmProfile{display:flex;flex-direction:column;min-height:100%;box-sizing:border-box}#dmProfile[hidden]{display:none}#dmProfile .dm-profile-card{border-radius:10px 10px 0 0}#dmProfile .dm-profile-mutual{margin-top:0;border-radius:0;flex:1}#dmProfile .dm-profile-view{margin-top:0;border-radius:0 0 10px 10px}
.server-settings-nav{overflow-y:auto;flex-shrink:0}.server-settings-nav .section{font-size:10px;font-weight:700;letter-spacing:.07em;color:#9692a4;margin:15px 12px 4px}.server-channel-row{display:flex;gap:8px;align-items:center;border-bottom:1px solid #393640;padding:9px 0}.server-channel-row span{flex:1}.server-channel-row button{flex-shrink:0}

/* v0.21.2 shared-connection lists */
.mutual-details{padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.mutual-details summary{cursor:pointer;font-weight:650;list-style-position:inside}
.mutual-items{padding:8px 0}
.mutual-item{display:flex;align-items:center;gap:10px;padding:7px 2px;min-width:0;overflow-wrap:anywhere}
.mutual-item img{width:28px;height:28px;border-radius:50%;object-fit:cover}

/* v0.23 management and image-editing improvements */
.server-image-preview{width:112px;height:112px;border:1px dashed #77717f;border-radius:16px;display:flex;align-items:center;justify-content:center;color:#aaa;overflow:hidden;background:#26232c;margin:12px 0}
.server-image-preview.wide{width:min(100%,520px);height:170px;border-radius:12px}
.server-image-preview img{width:100%;height:100%;object-fit:cover}
.server-image-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.server-role-editor{border:1px solid #393540;border-radius:12px;padding:18px;margin:22px 0}
.server-role-editor h3{margin:22px 0 10px}
#serverSettingsContent .role-permission-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px;border-bottom:1px solid #38333e;margin:0;cursor:pointer}
.role-permission-row span{display:flex;flex-direction:column;gap:4px}
.role-permission-row small{color:#a6a1ad}
.role-permission-row input{width:19px;height:19px;accent-color:#ee3ca2;flex-shrink:0}
.server-settings-nav,#serverSettingsContent{scrollbar-width:thin;scrollbar-color:#514958 transparent}
.server-settings-nav::-webkit-scrollbar,#serverSettingsContent::-webkit-scrollbar{width:5px}
.server-settings-nav::-webkit-scrollbar-thumb,#serverSettingsContent::-webkit-scrollbar-thumb{background:#514958;border-radius:8px}

/* v0.24: independently scrollable member list; header remains visible. */
#members { display:flex; flex-direction:column; min-height:0; overflow:hidden; padding-bottom:0; }
#members > .section { flex:0 0 auto; padding-bottom:12px; }
#memberList, #dmProfile { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#55515f transparent; padding-bottom:12px; }
#memberList::-webkit-scrollbar, #dmProfile::-webkit-scrollbar { width:6px; }
#memberList::-webkit-scrollbar-thumb, #dmProfile::-webkit-scrollbar-thumb { background:#55515f; border-radius:8px; }
#memberList::-webkit-scrollbar-track, #dmProfile::-webkit-scrollbar-track { background:transparent; }

/* v0.25: individual server identity and member role actions */
#sidebarTitle{display:flex;align-items:center;justify-content:space-between;position:relative;min-height:50px;gap:8px}
#sidebarTitleText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#serverHeaderActions{position:relative}#serverHeaderMenu{border:0;background:transparent;color:#ddd;font-size:20px;cursor:pointer;padding:2px 8px}
#serverDropdown{position:absolute;top:33px;left:-180px;width:215px;z-index:500;background:#202027;border:1px solid #45404a;border-radius:12px;padding:7px;box-shadow:0 12px 30px #0008}
#serverDropdown[hidden],#serverHeaderActions[hidden]{display:none!important}
.server-menu-action{display:block;width:100%;text-align:left;border:0;border-radius:7px;background:transparent;color:#eae6eb;padding:10px;cursor:pointer;font-size:13px}.server-menu-action:hover{background:#39313e}
#homeRail img{object-fit:cover;border-radius:inherit}#legacyServerHeader{display:none!important}
.member-role-overlay{position:fixed;inset:0;background:#000a;z-index:10000;display:grid;place-items:center}
.member-role-dialog{width:min(440px,92vw);max-height:75vh;overflow-y:auto;background:#25232b;border:1px solid #56465a;border-radius:16px;padding:22px;box-shadow:0 20px 55px #0009}
.role-member-row{display:block;padding:12px;border-bottom:1px solid #403945;cursor:pointer}.role-member-row input{accent-color:#ed2998}

/* v0.26: contain server rail contents and remove native white horizontal scrollbar */
#app{min-width:0;overflow:hidden}
#serverRail{min-width:0;min-height:0;overflow-x:hidden!important;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}
#serverRail::-webkit-scrollbar{display:none}
#serverRail button{flex:0 0 auto;min-width:0;overflow:visible}
#serverRail button img{display:block;max-width:100%;max-height:100%;object-fit:cover}
#customRail{width:100%;min-width:0;flex-shrink:0}
#customRail button{flex-shrink:0}
#sidebar{overflow:hidden}
/* First-party create/discover dialogs */
.community-overlay{position:fixed;inset:0;z-index:12000;background:rgba(7,7,13,.78);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(5px)}
.community-dialog{width:min(510px,100%);max-height:min(85vh,760px);display:flex;flex-direction:column;overflow:hidden;background:#24232b;border:1px solid #46404e;border-radius:18px;box-shadow:0 20px 80px #0009;color:#f5f2f8}
.community-dialog-head{display:flex;justify-content:space-between;gap:20px;padding:25px 26px 18px;border-bottom:1px solid #38333f}
.community-dialog-head h2{font-size:23px;margin:0 0 8px}.community-dialog-head p{font-size:13px;color:#aaa4b5;margin:0;line-height:1.5}
.community-close{border:0;background:#34313d;color:#ddd;border-radius:9px;width:32px;height:32px;cursor:pointer;font-size:23px;flex-shrink:0}
.community-dialog-body{overflow-y:auto;min-height:0;padding:24px 26px;scrollbar-width:thin;scrollbar-color:#514a5d transparent}
.community-label{display:block;font-size:11px;font-weight:750;letter-spacing:.07em;color:#b9b3c4;margin:0 0 10px}
.community-input{box-sizing:border-box;display:block;width:100%;min-width:0;border-radius:9px;background:#17161d;border:1px solid #4b4555;color:white;padding:12px 13px;margin-bottom:20px;font:inherit}
.community-input:focus{outline:2px solid #fc2e98;outline-offset:1px}
.community-check{display:flex;align-items:center;gap:12px;font-size:13px;cursor:pointer}.community-check input{accent-color:#f72a95;width:17px;height:17px}
.community-dialog-footer{display:flex;justify-content:flex-end;gap:12px;padding:18px 26px;background:#201f26;border-top:1px solid #38333f}
.community-results{max-height:230px;overflow-y:auto;margin-bottom:24px;scrollbar-width:thin;scrollbar-color:#514a5d transparent}
.community-empty{color:#aaa4b5;font-size:13px;line-height:1.6;padding:18px;background:#1d1c24;border-radius:9px}
.community-result-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 8px;border-bottom:1px solid #3a3541}
.community-result-row span{overflow-wrap:anywhere}.community-result{border:1px solid #ee3598;background:#3b2235;color:white;padding:8px 12px;border-radius:8px;cursor:pointer;white-space:nowrap}

/* v0.27 account controls, logo and refined navigation */
#app,#sidebar,#serverRail,#sidebar .scroll{min-width:0;min-height:0}
#sidebar{overflow:hidden}
#serverRail{overflow-x:hidden!important;scrollbar-width:none}
#serverRail::-webkit-scrollbar{display:none}
#serverRail button svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
#homeRail img{display:block;width:100%;height:100%;object-fit:cover}
.account-panel{box-sizing:border-box;width:100%;min-width:0;gap:4px;padding:7px 6px}
.account-identity{min-width:0;flex:1 1 0;overflow:hidden;gap:5px}
.account-avatar{width:30px;height:30px;flex-basis:30px}
.account-text{min-width:0;flex:1}
.account-text strong,.account-text small{max-width:100%;font-size:11px}
.me-actions{flex:0 0 auto;gap:0}
.account-icon{width:27px;min-width:27px;height:30px;display:inline-flex;align-items:center;justify-content:center}
.account-icon svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.self-profile-hover{display:none;position:absolute;left:7px;bottom:calc(100% + 4px);z-index:62;background:#31323a;color:white;border:1px solid #50515a;border-radius:6px;padding:8px 12px;cursor:pointer;box-shadow:0 6px 18px #0008}
.account-panel:has(.account-identity:hover) .self-profile-hover,.self-profile-hover:hover,.self-profile-hover:focus-visible{display:block}
.settings-footer-brand{font-size:13px;font-weight:650;letter-spacing:normal;text-transform:none;padding:12px 16px}

/* v0.28: Keep the full icon inside its rail tile without clipping. */
#serverRail button:has(img){padding:3px;display:flex;align-items:center;justify-content:center;overflow:hidden}
#serverRail button img,#homeRail img,#officialRail img,#customRail button img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:12px;display:block}
#customRail button:has(img){padding:3px}
/* Profile shortcut remains reachable when moving the pointer from avatar to popover. */
.account-panel .account-identity #meAvatar{cursor:pointer}
.account-panel:has(#meAvatar:hover) .self-profile-hover,
.account-panel:has(.self-profile-hover:hover) .self-profile-hover{display:block}
.account-panel .self-profile-hover{bottom:calc(100% - 2px);left:7px}
.account-popup{max-height:min(75vh,560px);overflow-y:auto;overflow-x:hidden}
/* Keep account menu above the sidebar clipping boundary, not inside it. */
#accountPopup{position:fixed;left:clamp(78px,calc(72px + 105px),190px);bottom:68px;width:min(310px,calc(100vw - 195px));z-index:2000;box-sizing:border-box}
@media(max-width:560px){#accountPopup{left:60px;bottom:62px;width:min(310px,calc(100vw - 72px))}}

/* v0.30 discovery directory */
.community-dialog.discover-directory{width:min(1050px,96vw);max-height:92vh}
.discover-directory .community-results{max-height:none;overflow:visible;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.discover-directory .community-result-row{display:flex;flex-direction:column;align-items:stretch;padding:0;overflow:hidden;border:1px solid #40384d;border-radius:14px;background:#211c2a;min-height:255px}
.discover-card-cover{height:96px;background:#302238;overflow:hidden}
.discover-card-cover img{width:100%;height:100%;object-fit:cover}
.discover-card-gradient{width:100%;height:100%;background:linear-gradient(125deg,#f72a95,#43304e 75%)}
.discover-card-info{padding:14px;display:flex;flex-direction:column;gap:8px;flex:1}
.discover-card-info strong{font-size:16px;overflow-wrap:anywhere}
.discover-card-info p{font-size:12px;color:#c2b9ca;line-height:1.45;margin:0;flex:1;overflow-wrap:anywhere}
.discover-card-info small{color:#a9a0b7}
.discover-card-icon,.discover-card-initial{width:42px;height:42px;border-radius:12px;object-fit:cover;border:2px solid #f72a95;margin-top:-34px;position:relative;background:#302535}
.discover-card-initial{display:grid;place-items:center;color:#fff;font-weight:700}
.discover-show-more{display:block;margin:12px auto 24px;background:#393142;border:1px solid #5e4a64;color:#fff;border-radius:9px;padding:11px 28px;cursor:pointer}
.discover-show-more:hover{background:#493b50}
/* v0.35.1: mutual connections stay together beneath the DM profile */
#dmProfile .dm-profile-mutual{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;padding:12px;min-height:0}
#dmProfile .mutual-details{min-width:0;padding:9px 6px;border:1px solid rgba(255,255,255,.09);border-radius:8px}
#dmProfile .mutual-details summary{font-size:11px;overflow-wrap:anywhere}
#dmProfile .mutual-items{overflow-wrap:anywhere}
@media(min-width:1001px){#app.wide-dm{grid-template-columns:72px 240px minmax(0,1fr) 320px}}
#dmProfile .dm-profile-mutual{display:flex;flex-direction:column;gap:0;flex:0;padding:12px 16px}#dmProfile .mutual-details{padding:12px 0;border:0;border-bottom:1px solid #3d3945;border-radius:0}#dmProfile .mutual-details summary{font-size:13px}#dmProfile .mutual-item span{overflow-wrap:normal;word-break:normal}#dmProfile{min-height:0;overflow:auto}#dmProfile .dm-profile-view{flex-shrink:0} .profile-bio{white-space:pre-wrap;overflow-wrap:anywhere}.settings-card label{display:block;margin:12px 0}.settings-card label input,.settings-card label textarea,.settings-card label select{display:block;width:100%;margin-top:8px;padding:10px;background:#35363e;color:#eee;border:1px solid #484851;border-radius:6px}.settings-card textarea{min-height:90px}.account-summary #accountBannerPreview{height:140px;border-radius:8px}.profile-avatar.nameplate-avatar{display:inline-flex}.settings-nav{overflow-y:auto}
/* v0.37: a single full-height DM profile surface with a pinned footer. */
#dmProfile{display:flex;flex:1 1 0;min-height:0;overflow:hidden;padding:8px 12px 12px}
#dmProfile .dm-profile-shell{display:flex;flex-direction:column;flex:1;min-height:0;border-radius:10px;overflow:hidden;background:#26252c;border:1px solid #34323c}
#dmProfile .dm-profile-scroll{flex:1 1 0;min-height:0;overflow-y:auto}
#dmProfile .dm-profile-card{border:0;border-radius:0;overflow:visible}
#dmProfile .dm-profile-mutual{display:block;padding:0 14px;min-height:0}
#dmProfile .dm-profile-view{flex:0 0 auto;margin:0;border-radius:0}
#dmProfile .mutual-item img{flex-shrink:0}
#dmProfile .mutual-item span{overflow-wrap:anywhere}
*{scrollbar-width:thin;scrollbar-color:#68686e transparent}
*::-webkit-scrollbar{width:7px;height:7px}*::-webkit-scrollbar-thumb{background:#68686e;border-radius:8px}*::-webkit-scrollbar-track{background:transparent}
#serverRail{scrollbar-width:none}#serverRail::-webkit-scrollbar{display:none}
#settingsContent,#settingsSidebar .settings-sidebar-scroll,.server-settings-nav,#serverSettingsContent,#memberList,#dmProfile{scrollbar-color:#68686e transparent}
.rgb-picker-row{display:flex;align-items:center;gap:12px;margin-top:8px}.settings-card label .rgb-picker-row input[type=color]{width:90px;height:42px;padding:3px;margin:0;cursor:pointer}.settings-card label input[type=hidden]{display:none}
#callVideo{flex:0 1 auto;max-height:42%;overflow:auto;padding:10px}#callVideo[hidden]{display:none}#callVideo h4{font-size:12px;margin:0 0 8px}#videoTiles{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.video-tile{overflow:hidden;border-radius:8px;background:#17171a;position:relative}.video-tile img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain}.video-tile span{display:block;padding:5px;font-size:12px}
#voiceBar{flex-wrap:wrap}#voiceBar .vinfo{flex:1 1 100%}#voiceBar button{flex:1 1 auto}#dmProfile .nameplate-presence{bottom:2px;right:2px;width:15px;height:15px}
/* v0.38 scoped layout corrections */
.profile-modal .profile-avatar.nameplate-avatar{position:absolute;top:120px;left:28px;border:5px solid var(--bg-main);box-sizing:border-box;align-items:center;justify-content:center;z-index:1}.profile-modal .profile-avatar .avatar{width:90px!important;height:90px!important}.profile-modal .profile-details{padding-top:58px}.profile-modal .profile-avatar .nameplate-presence{bottom:0;right:0;width:15px;height:15px}
.social-person>.nameplate-avatar{flex:none}.friend-identity{display:flex;gap:12px;align-items:center;flex:1;min-width:0;cursor:pointer}.friend-text{display:flex;flex-direction:column;gap:4px;min-width:0}.friend-text small{color:var(--muted)}.friend-text strong,.friend-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pending-count{background:#ff2693;color:white;border-radius:12px;padding:2px 6px;margin-left:6px;font-size:11px}.channel-gear{opacity:0;background:transparent;color:var(--muted);padding:2px 5px}.item:hover .channel-gear,.channel-gear:focus{opacity:1}.item[draggable=true]{cursor:grab}
#main{position:relative}#callVideo{position:absolute;inset:0;z-index:5;background:#17171b;max-height:none;padding:18px;display:flex;flex-direction:column;gap:16px;overflow:auto}#callVideo[hidden]{display:none}#callVideo header,#callVideo footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap}#callVideo header{justify-content:space-between}#callVideo footer{justify-content:center;padding:12px}#callVideo footer button{background:#393940;border-radius:8px;padding:12px}#callVideo footer .danger{background:#e84455}#videoTiles{flex:1;align-content:center;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px}.video-tile{aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;cursor:zoom-in;background:#303038}.video-tile img{width:100%;height:100%;object-fit:contain}.video-tile.placeholder img{width:72px;height:72px;border-radius:20px}.video-tile .call-name{position:absolute;bottom:10px;left:10px;background:#111b;padding:6px;border-radius:5px}.video-tile .call-muted{position:absolute;right:10px;bottom:10px;background:#a52b3d;padding:6px;border-radius:5px}.video-tile .call-muted[hidden]{display:none}.video-tile:fullscreen{width:100%;height:100%;background:#08080a}.video-tile:fullscreen img{object-fit:contain}

/* v0.38.1 */
.video-tile.placeholder img{width:clamp(64px,22%,120px);height:auto;aspect-ratio:1;object-fit:cover;border-radius:50%}
.profile-modal .profile-avatar.nameplate-avatar{position:absolute;top:125px;left:28px;margin:0;transform:none;display:flex;width:100px!important;height:100px!important}.profile-modal .profile-details{padding-top:68px}.profile-modal .profile-close{z-index:3}
.friend-identity>.nameplate-avatar{position:relative;flex:0 0 40px;width:40px!important;height:40px!important}.friend-identity .nameplate-presence{position:absolute;right:0;bottom:0}.friend-identity .friend-text{flex:1}.social-person{flex-wrap:wrap}

.channel-category{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:28px;padding:4px 8px}.channel-category:hover .channel-gear,.channel-category .channel-gear:focus{opacity:1}.channel-category[draggable=true]{cursor:grab}
.ui-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:none}.ui-icon svg{width:100%;height:100%}.item .name{flex:1;min-width:0}.channel-gear{margin-left:auto;flex:none;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}.item .dot:empty{flex:none}.server-menu-action{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:500;color:var(--text);padding:10px 12px}.server-menu-action .ui-icon{color:var(--muted)}.server-menu-action:hover{background:var(--active)}.friend-action{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--bg-dark);color:var(--muted);flex:none}.friend-action:hover{background:var(--active);color:white}.social-person{border-bottom:1px solid var(--active);flex-wrap:nowrap}.voice-member-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-indicators{display:inline-flex!important;align-items:center;gap:4px;flex:none;margin-left:auto;color:#bfc0c8}.call-indicators:empty{display:none!important}.call-indicators .ui-icon{width:16px;height:16px;padding:0}.video-tile .call-muted{background:#111c;color:white;padding:6px;border-radius:6px}.video-tile:not(.placeholder){background:#000}.video-tile:fullscreen{aspect-ratio:auto;width:100vw!important;height:100vh!important;max-width:none;max-height:none;border-radius:0;background:#000!important}.video-tile:fullscreen:not(.placeholder) img{width:100%;height:100%;object-fit:contain}.channel-editor-fields{display:flex;flex-direction:column;gap:12px}.channel-editor-fields[hidden]{display:none}.channel-editor-tabs{display:flex;gap:8px;margin-bottom:14px}.share-audio-option{display:flex;align-items:center;gap:8px}.community-dialog-body>.community-input{margin-bottom:10px}

.create-types{display:grid;gap:8px;margin:10px 0 16px}.create-type{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:12px;background:#303039;border:1px solid transparent;border-radius:8px;color:var(--text)}.create-type small{color:var(--muted)}.create-type.selected,.stream-options .selected{border:1px solid #ff2693;background:#ff269322}.channel-preview{padding:10px;background:#303039;border-radius:7px;margin-top:8px}.friend-more-menu{position:fixed;z-index:10000;background:#212127;border:1px solid #44444d;border-radius:9px;padding:6px;min-width:190px;box-shadow:0 8px 24px #0006}.friend-more-menu button{display:flex;width:100%;justify-content:space-between;align-items:center;padding:9px;background:none;text-align:left;color:#ddd;border-radius:5px}.friend-more-menu button:hover{background:#383842}.friend-more-menu .danger-text{color:#ff5b65}.stream-options{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 18px}.stream-options button:disabled{opacity:.45}.channel-category>span{flex:1}.community-dialog-body [hidden]{display:none!important}

.category-drop-zone{border:1px solid transparent;border-radius:7px;margin:3px 2px;min-height:38px}.category-drop-pad{min-height:18px;font-size:10px;color:transparent;padding:3px 10px}.category-drop-zone.channel-drop-active{border-color:#ff2693;background:#ff269318}.category-drop-zone.channel-drop-active .category-drop-pad{color:#ff8ec5}.item.channel-drop-active{box-shadow:inset 0 2px #ff2693;background:#ff269326}.profile-color-example{display:flex;gap:12px;align-items:center;background:#24242b;border-radius:9px;padding:14px;margin-top:10px}.profile-color-example h3{margin:0 0 3px}.profile-color-example span{font-size:12px;color:#b5b5bf}.stream-focus{position:fixed;inset:0;z-index:20000;background:#000;display:grid;place-items:center}.stream-focus img{width:100%;height:100%;min-height:0;object-fit:contain}.stream-focus-close{position:absolute;top:16px;right:16px;background:#25252b;color:white;padding:10px 16px;border-radius:8px}.sharing-active{background:#982a47!important;color:white}#officialSettingsShortcut{background:none;color:#b9bac4;padding:5px;vertical-align:middle}#officialSettingsShortcut[hidden]{display:none!important}

/* v0.42: consistent channel and call controls */
#serverDropdown{z-index:11000;max-width:calc(100vw - 16px);box-sizing:border-box}
#sidebarTitle{overflow:visible!important}
#serverHeaderMenu{display:grid;place-items:center;min-width:26px}
.channel-category{padding-right:5px}.channel-category .channel-gear{width:23px;height:23px;opacity:.85;background:transparent;border-radius:6px}.channel-category .channel-gear:hover{background:#41414a;opacity:1}
.channel-category .channel-gear .ui-icon{width:17px;height:17px}
#callVideo footer{gap:12px}#callVideo footer button{width:48px;height:48px;padding:0;border-radius:50%;display:grid;place-items:center;font-size:0;transition:background .12s ease}#callVideo footer button .ui-icon{width:23px;height:23px}#callVideo footer button .ui-icon svg{width:23px;height:23px}#callVideo footer button:hover{background:#53535d}#callVideo footer button.call-control-active{background:#853147}#callVideo footer button.danger{background:#d73951}
#callVideo footer #callShare{width:auto;min-width:52px;border-radius:24px;padding:0 15px;font-size:13px;display:flex;gap:8px}#callVideo footer #callShare .ui-icon{width:20px;height:20px}

#textCategorySettings,#voiceCategorySettings{display:inline-flex;align-items:center;justify-content:center;font-size:17px;line-height:1;color:#aeb0bd;min-width:24px}#textCategorySettings:hover,#voiceCategorySettings:hover{color:#fff;background:#3c3c46;border-radius:5px}

/* v0.43: clean category controls, icon-only call buttons, floating in-app call */
#textCategorySettings,#voiceCategorySettings{display:none!important}
.channel-category{cursor:context-menu;min-height:28px;user-select:none}
.channel-category:hover{background:rgba(255,255,255,.055);border-radius:6px}
#callVideo footer button{display:inline-flex;align-items:center;justify-content:center;min-width:48px;width:48px;height:48px;padding:0;border-radius:50%;font-size:0}
#callVideo footer #callShare{width:48px;min-width:48px;padding:0;border-radius:50%;font-size:0;gap:0}
#callVideo footer button .ui-icon{display:inline-flex;width:22px;height:22px;flex:0 0 22px}
#callVideo footer button .ui-icon svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#callVideo.call-minimized{position:fixed!important;inset:auto 18px 18px auto!important;width:310px!important;height:214px!important;max-width:calc(100vw - 36px);z-index:1100;border:1px solid #55515e;border-radius:14px;box-shadow:0 14px 50px #0009;overflow:hidden;background:#19191f;display:flex!important;flex-direction:column}
#callVideo.call-minimized header{min-height:32px;padding:4px 10px;flex:0 0 auto}
#callVideo.call-minimized #videoTiles{flex:1;min-height:0;overflow:hidden;display:flex;gap:4px;padding:4px}
#callVideo.call-minimized #videoTiles>*{flex:1;min-width:0;min-height:0;max-height:100%;overflow:hidden}
#callVideo.call-minimized footer{display:none!important}
#callVideo.call-minimized #callClose{font-size:12px}

/* Account popup: cohesive profile card */
#accountPopup{border:1px solid #45404f;border-radius:15px;overflow:hidden;box-shadow:0 20px 60px #0009;background:#211f28}
#accountPopupIdentity{padding:16px 14px;background:linear-gradient(180deg,#141319 0%,#141319 37%,#292630 37%,#292630 100%);min-height:96px}
#accountPopup .account-menu-item{border-radius:8px;margin:2px 8px;width:calc(100% - 16px);text-align:left}
#accountPopup .account-menu-item:hover{background:#393540}
#accountPopup .account-menu-save{border-radius:8px}
/* v0.44: compact friend preview, reserved invisible badges and resilient stream focus */
.profile-badge-slot[hidden]{display:none!important}
.compact-profile-preview{position:fixed;z-index:12000;width:min(320px,calc(100vw - 16px));background:#25232b;color:#f4f0f5;border:1px solid #514457;border-radius:14px;box-shadow:0 18px 55px #000b;overflow:hidden;padding-bottom:12px}
.compact-profile-banner{height:64px;background:linear-gradient(120deg,#59263f,#e63991 70%,#9a4978)}
.compact-profile-person{display:flex;align-items:center;gap:12px;padding:0 14px;margin-top:-19px;position:relative}
.compact-profile-person>span:first-child{border:4px solid #25232b;border-radius:50%;background:#25232b}
.compact-profile-person strong,.compact-profile-person small{display:block;overflow-wrap:anywhere}
.compact-profile-person small{color:#b9aeba}
.compact-profile-about{margin:12px 14px;font-size:13px;overflow-wrap:anywhere}
.compact-profile-actions{display:flex;gap:8px;margin:14px 12px 0}.compact-profile-actions button{flex:1}
.stream-focus{background:#000!important;overflow:hidden;isolation:isolate}
.stream-focus img{display:block;width:100%;height:100%;object-fit:contain;background:#000;image-rendering:auto}
.stream-focus-toolbar{position:absolute;top:16px;right:16px;z-index:2;display:flex;gap:8px}
.stream-focus-toolbar button{background:#292930;color:#fff;border:1px solid #555;border-radius:8px;padding:9px 14px}
#accountPopup .account-status-options{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:7px 12px}
#accountPopup .account-status-options button{border-radius:8px;text-align:left}

/* v0.45: remove redundant official shortcut, compact channel layout and profile fixes */
#officialSettingsShortcut{display:none!important}
#serverHeaderActions{display:flex;align-items:center;justify-content:flex-end;min-width:25px;flex-shrink:0}
#serverHeaderMenu{flex-shrink:0;min-width:28px}
#serverNav{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:0;min-height:0;height:auto!important}
#serverNav .section{flex-shrink:0}
#textChannels,#voiceChannels{flex:0 0 auto!important;min-height:0!important;height:auto!important;display:flex;flex-direction:column;gap:0}
#serverNav .category-drop-zone{flex:0 0 auto;min-height:0;margin:1px 2px}
#serverNav .category-drop-pad{min-height:3px;padding:0 8px;height:3px}
#serverNav .channel-category{display:flex;align-items:center;gap:5px;min-height:28px}
#serverNav .channel-category>span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
#serverNav .channel-category .channel-gear{display:inline-grid;place-items:center;flex:0 0 22px;width:22px;height:22px;padding:2px;border-radius:5px}
#serverNav .channel-category .channel-gear .ui-icon{width:15px;height:15px}
#callVideo header #callClose{width:34px;height:34px;display:grid;place-items:center;padding:5px;border-radius:9px;font-size:0}
#callVideo header #callClose .ui-icon{width:18px;height:18px}
#callVideo.call-minimized{width:260px!important;height:168px!important;cursor:pointer}
#callVideo.call-minimized header{position:absolute;right:5px;top:5px;z-index:2;background:#17171bbb;border-radius:9px;padding:2px}
#callVideo.call-minimized header #callTitle{display:none}
#callVideo.call-minimized #videoTiles{padding:0;gap:0}
#callVideo.call-minimized .video-tile:not(:has(img[src])){display:none}
.server-owner-crown{display:inline-block;margin-left:6px;font-size:13px;color:#f4f4f6;vertical-align:middle;text-shadow:0 1px 3px #000a}
.compact-profile-preview{width:min(320px,calc(100vw - 16px));max-height:min(540px,calc(100vh - 16px));overflow-y:auto}
.compact-profile-banner{height:100px;background-size:cover;background-position:center}
.compact-profile-person{position:relative;display:flex;align-items:flex-end;gap:12px;padding:0 16px 12px;margin-top:-30px}
.compact-profile-person .nameplate-avatar{width:60px!important;height:60px!important;flex-shrink:0;border:4px solid #1b1a20;border-radius:50%;box-sizing:border-box;overflow:visible}
.compact-profile-person .nameplate-avatar .avatar{border-radius:50%;width:100%!important;height:100%!important;object-fit:cover}
.compact-profile-person>div:last-child{min-width:0;display:flex;flex-direction:column;gap:2px;padding-bottom:2px}
.compact-profile-person strong,.compact-profile-person small{overflow-wrap:anywhere}
.profile-modal .profile-banner{height:168px;background-size:cover;background-position:center}
.profile-modal .profile-avatar.nameplate-avatar{top:120px!important;left:24px!important;width:96px!important;height:96px!important;box-sizing:border-box;border:5px solid #1c1b22;border-radius:50%;overflow:visible;z-index:2}
.profile-modal .profile-avatar .avatar{width:100%!important;height:100%!important;border-radius:50%;object-fit:cover}
.profile-modal .profile-details{padding-top:65px!important}
.profile-badge-slot[hidden]{display:none!important}

/* v0.46: account banner and avatar must occupy independent layers */
#accountPopup{padding:0!important;overflow-x:hidden!important;overflow-y:auto;max-height:min(76vh,670px)}
#accountPopupIdentity{display:block!important;position:relative;padding:0!important;margin:0 0 8px!important;min-height:146px;overflow:visible!important}
.account-popup-cover{height:86px;width:100%;background-color:#19151f;background-image:linear-gradient(115deg,#30202f,#6d3158);background-size:cover;background-position:center;border-radius:10px 10px 0 0}
.account-popup-user{display:flex!important;flex-direction:row!important;align-items:flex-end!important;gap:12px!important;padding:0 14px 10px!important;margin-top:-31px!important;position:relative;min-width:0}
.account-popup-user>.avatar{width:62px!important;height:62px!important;min-width:62px;min-height:62px;flex-shrink:0;border:4px solid #292a31;box-sizing:border-box;background-size:cover!important;background-position:center!important;border-radius:50%;overflow:hidden}
.account-popup-names{display:flex!important;flex-direction:column!important;gap:2px;min-width:0;padding-bottom:5px}
.account-popup-names strong,.account-popup-names small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#accountPopup>.account-menu-item,#accountPopup>.account-menu-label,#accountPopup>.account-status-options,#accountPopup>input,#accountPopup>.account-menu-save{width:calc(100% - 24px);margin-left:12px;margin-right:12px}
#accountPopup>.account-menu-item{margin-bottom:4px}
#accountPopup>.account-menu-save{margin-bottom:12px}
.compact-profile-preview{overflow:hidden!important;padding-bottom:14px!important;max-height:min(80vh,530px)}
.compact-profile-banner{height:106px!important;background-color:#19151f;background-size:cover!important;background-position:center!important}
.compact-profile-person{margin-top:-34px!important;padding:0 16px 10px!important;align-items:flex-end!important;min-height:78px;gap:12px!important}
.compact-profile-person>.nameplate-avatar{width:68px!important;height:68px!important;min-width:68px;min-height:68px;border:4px solid #25232b!important;box-sizing:border-box;overflow:visible!important}
.compact-profile-person>.nameplate-avatar .avatar{width:100%!important;height:100%!important;border-radius:50%;background-size:cover!important;background-position:center!important}
.compact-profile-person>div:last-child{padding-bottom:5px;min-width:0;flex:1}
.compact-profile-person>div:last-child strong,.compact-profile-person>div:last-child small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
.compact-profile-actions{display:flex;gap:8px;padding:0 12px;margin:12px 0 0!important}
.compact-profile-actions button{min-width:0;white-space:normal;min-height:38px;flex:1}
#serverNav .channel-category .channel-gear{margin-left:auto}
#serverNav .category-drop-zone{margin:0 2px!important;padding:0!important}
#serverNav .category-drop-pad{height:0!important;min-height:0!important;padding:0!important;overflow:hidden}
#serverNav>.section{padding-top:9px!important;padding-bottom:3px!important}
#serverNav #textChannels,#serverNav #voiceChannels{margin:0!important;padding:0!important;flex:0 0 auto!important}
.server-owner-crown{display:inline-flex!important;align-items:center;justify-content:center;line-height:1!important;font-size:16px!important;margin-left:6px!important;vertical-align:middle!important;transform:translateY(0)!important}
.nameplate-title{display:inline-flex;align-items:center;gap:2px;min-width:0}
.image-adjust-frame{width:220px;height:220px;margin:8px auto 12px;overflow:hidden;border-radius:50%;background:#111;touch-action:none;cursor:grab;user-select:none}
.image-adjust-frame.image-adjust-banner{width:min(100%,480px);height:auto;aspect-ratio:3/1;border-radius:8px}
.image-adjust-frame canvas{display:block;width:100%;height:100%}
.image-adjust-zoom{display:block;width:100%;accent-color:#f72590}

/* v0.47: compact profile card with distinct banner/avatar/info layers */
.compact-profile-preview{width:min(340px,calc(100vw - 20px))!important;max-height:calc(100vh - 24px)!important;overflow-y:auto!important;border-radius:16px!important;background:#17151b!important;padding:0!important;box-shadow:0 22px 60px #000b!important}
.compact-profile-banner{height:122px!important;border-radius:15px 15px 0 0!important;background-size:cover!important;background-position:center!important;flex:none}
.compact-profile-person{margin:-44px 0 0!important;padding:0 16px 12px!important;display:flex!important;align-items:flex-end!important;min-height:100px!important;gap:12px!important;position:relative!important;background:transparent!important}
.compact-profile-person>.nameplate-avatar{width:84px!important;height:84px!important;min-width:84px!important;min-height:84px!important;overflow:visible!important;border:5px solid #17151b!important;border-radius:50%!important;box-sizing:border-box!important;align-self:flex-start!important;flex-shrink:0!important}
.compact-profile-person>.nameplate-avatar .avatar{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;box-sizing:border-box!important;border-radius:50%!important;background-position:center!important;background-size:cover!important}
.compact-profile-identity{display:flex;flex-direction:column;min-width:0;gap:2px;padding-bottom:8px;flex:1}
.compact-profile-identity strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-profile-identity small{font-size:12px;color:#b9b5c0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-profile-info{background:#25222d;border-radius:12px;margin:0 12px 12px;padding:14px;min-width:0;overflow-wrap:anywhere}
.compact-profile-about{margin:5px 0 10px!important;line-height:1.45;font-size:13px}
.compact-profile-pronouns{margin:0 0 8px;font-size:12px;color:#c4bfcb}
.compact-profile-divider{height:1px;background:#ffffff22;margin:12px 0}
.compact-profile-section-title{font-size:10px;letter-spacing:.07em;font-weight:700;color:#bcb6c4;margin:12px 0 6px}
.compact-profile-date,.compact-profile-role{font-size:12px;color:#e8e5eb}
.compact-profile-actions{padding:0!important;margin:14px 0 0!important;display:flex!important;gap:8px!important}
.compact-profile-actions button{min-height:38px!important}
.server-owner-crown{font-size:12px!important;line-height:1!important;margin-left:3px!important;display:inline-flex!important;align-self:center!important;vertical-align:baseline!important;transform:none!important;flex-shrink:0!important;color:#fff!important}
.nameplate-title{display:inline-flex!important;align-items:center!important;gap:3px!important;line-height:1.3!important}
/* Hover action anchored to the actual bottom-left avatar */
.account-panel .self-profile-hover{display:none;left:4px!important;bottom:calc(100% + 6px)!important;z-index:3000!important;white-space:nowrap}
.account-panel:has(.account-identity:hover) .self-profile-hover{display:none}
.account-panel:has(#meAvatar:hover) .self-profile-hover,.account-panel:has(.self-profile-hover:hover) .self-profile-hover,.account-panel .self-profile-hover:focus-visible{display:block!important}
#meAvatar{cursor:pointer}

/* v0.48 targeted corrections: no oversized crowns, proper account banner/avatar and profile hover */
#serverRail,#officialRail,#customRail{overflow:visible!important}
#officialRail{position:relative;overflow:visible!important}
#officialRail .verified{right:-5px!important;bottom:-5px!important;z-index:5;line-height:1;padding:3px 5px;box-shadow:0 0 0 2px var(--bg-side)}
.server-owner-crown{font-size:0!important;display:inline-flex!important;width:12px!important;height:12px!important;min-width:12px!important;margin-left:4px!important;line-height:0!important;vertical-align:middle!important;align-items:center!important;justify-content:center!important;transform:none!important}
.server-owner-crown::before{content:'♛';font-family:Arial,sans-serif;font-size:12px!important;font-weight:400;line-height:12px;display:block;color:#fff}
.nameplate-title{display:inline-flex!important;align-items:center!important;gap:1px!important;line-height:18px!important;vertical-align:middle!important}
#accountPopupIdentity{min-height:145px!important;margin-bottom:8px!important}
#accountPopupIdentity .account-popup-cover{height:100px!important;background-position:center!important;background-size:cover!important;border-radius:14px 14px 0 0!important}
#accountPopupIdentity .account-popup-user{margin-top:-34px!important;padding:0 14px 12px!important;align-items:flex-end!important;min-height:72px!important;gap:12px!important}
.account-avatar-hover-wrap{width:68px;height:68px;flex:0 0 68px;position:relative;border:4px solid #211f28;border-radius:50%;box-sizing:border-box;overflow:hidden;cursor:pointer}
.account-avatar-hover-wrap>.avatar{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;border:0!important;border-radius:50%!important;background-position:center!important;background-size:cover!important}
.account-avatar-hover-action,.profile-avatar-hover-action{position:absolute;inset:0;border:0;border-radius:50%;background:#09080bc7;color:#fff;font-size:9px;font-weight:800;letter-spacing:.01em;display:flex;align-items:center;justify-content:center;opacity:0;cursor:pointer;text-align:center;padding:4px;transition:opacity .15s}
.account-avatar-hover-wrap:hover .account-avatar-hover-action,.account-avatar-hover-wrap:focus-within .account-avatar-hover-action,.profile-avatar-hover-wrap:hover .profile-avatar-hover-action,.profile-avatar-hover-wrap:focus-within .profile-avatar-hover-action{opacity:1}
#accountPopup .account-popup-names{padding-bottom:8px!important;flex:1;min-width:0}
#accountPopup .account-popup-names strong{font-size:15px}
#accountPopup .account-popup-names small{font-size:12px;color:#bcb5c5}
.profile-avatar-hover-wrap{width:84px;height:84px;min-width:84px;flex:0 0 84px;position:relative;border:5px solid #17151b;border-radius:50%;box-sizing:border-box;overflow:hidden;align-self:flex-start}
.profile-avatar-hover-wrap>.nameplate-avatar{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;border:0!important;overflow:hidden!important;box-sizing:border-box!important;border-radius:50%!important}
.profile-avatar-hover-wrap .avatar{width:100%!important;height:100%!important;border-radius:50%!important;background-size:cover!important;background-position:center!important}
.compact-profile-person{align-items:flex-end!important;gap:12px!important;min-height:94px!important}
.compact-profile-preview{border:1px solid #4b4253!important;box-shadow:0 18px 45px #0009!important}
.compact-profile-info{margin:0 12px 12px!important;border-radius:12px!important;padding:15px!important}
.compact-profile-actions .primary{font-size:12px!important}
#serverSettingsExitX{position:fixed;right:24px;top:18px;z-index:210;width:40px;height:40px;border:1px solid #68616e;border-radius:50%;background:#292630;color:#fff;font-size:25px;line-height:1;cursor:pointer}
#serverSettingsExitX:hover{background:#443b4a}
#serverSettingsPage[hidden]{display:none!important}

/* v0.49 account menu layout: compact, status nested, avatar above banner */
#accountPopup{width:294px!important;max-height:min(74vh,590px)!important;overflow:visible!important;border-radius:16px!important}
#accountPopupIdentity{min-height:132px!important;margin-bottom:3px!important}
#accountPopupIdentity .account-popup-cover{height:77px!important;background-color:#17151b!important}
#accountPopupIdentity .account-popup-user{margin-top:-27px!important;min-height:68px!important;align-items:flex-end!important;padding:0 14px 10px!important}
#accountPopupIdentity .account-avatar-hover-wrap{width:64px!important;height:64px!important;min-width:64px!important;flex:none!important;position:relative!important;z-index:2}
#accountPopupIdentity .account-avatar-hover-wrap .avatar{width:64px!important;height:64px!important;min-width:64px!important;border-radius:50%!important;border:4px solid #211f28!important;box-sizing:border-box!important;background-size:cover!important;background-position:center!important}
#accountPopupIdentity .account-popup-names{padding-bottom:5px!important;align-self:flex-end!important}
#accountPopup>.account-menu-item{min-height:35px!important;margin-bottom:3px!important}
#accountPopup .account-presence-toggle{display:flex;align-items:center;gap:8px;justify-content:space-between}
#accountPopup .account-presence-toggle span:nth-child(2){flex:1;text-align:left}
#accountPopup .account-presence-submenu{position:absolute;left:calc(100% + 8px);bottom:40px;width:210px;padding:10px;background:#211f28;border:1px solid #45404f;border-radius:12px;box-shadow:0 15px 40px #0009;z-index:5}
#accountPopup .account-presence-submenu[hidden]{display:none!important}
#accountPopup .account-presence-submenu .account-status-options{display:grid;grid-template-columns:1fr;gap:4px;padding:0}
#accountPopup .account-presence-submenu .account-status-options button{padding:9px;text-align:left}
#accountPopup .account-presence-submenu input{width:100%;box-sizing:border-box;margin:6px 0}
#accountPopup .account-presence-submenu .account-menu-save{width:100%}
#accountPopup .account-edit-main{display:block;width:calc(100% - 24px)!important;margin:8px 12px 12px!important}
@media(max-width:720px){#accountPopup .account-presence-submenu{left:auto;right:0;bottom:calc(100% + 8px)}}

/* v0.50: consolidated account panel layout; override earlier conflicting patches */
#accountPopup{width:300px!important;max-width:calc(100vw - 90px)!important;max-height:calc(100vh - 96px)!important;overflow:visible!important;background:#1e1d25!important;border:1px solid #44414d!important;border-radius:15px!important;box-shadow:0 18px 55px #0009!important}
#accountPopupIdentity{min-height:0!important;margin:0 0 6px!important;padding:0!important;position:relative!important;overflow:visible!important}
#accountPopupIdentity .account-popup-cover{height:76px!important;border-radius:14px 14px 0 0!important;background-size:cover!important;background-position:center!important}
#accountPopupIdentity .account-popup-user{display:flex!important;align-items:flex-end!important;gap:11px!important;margin-top:-29px!important;min-height:70px!important;padding:0 13px 12px!important;position:relative!important}
#accountPopupIdentity .account-avatar-hover-wrap{position:relative!important;display:block!important;width:66px!important;height:66px!important;min-width:66px!important;flex:0 0 66px!important;overflow:hidden!important;border:4px solid #1e1d25!important;border-radius:50%!important;box-sizing:border-box!important;background:#25232b!important}
#accountPopupIdentity .account-avatar-hover-wrap>.avatar{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;border:0!important;margin:0!important;box-sizing:border-box!important;border-radius:50%!important;background-position:center!important;background-size:cover!important;object-fit:cover!important}
#accountPopupIdentity .account-avatar-hover-action{position:absolute!important;inset:0!important;z-index:2!important;border-radius:50%!important}
#accountPopupIdentity .account-popup-names{align-self:flex-end!important;min-width:0!important;flex:1!important;padding:0 0 7px!important;line-height:1.25!important}
#accountPopupIdentity .account-popup-names strong{font-size:14px!important;display:block!important}
#accountPopupIdentity .account-popup-names small{font-size:11px!important;display:block!important;margin-top:4px!important}
#accountPopup>.account-menu-item{display:flex!important;align-items:center!important;gap:8px!important;width:calc(100% - 22px)!important;margin:3px 11px!important;min-height:36px!important;padding:8px 11px!important;border-radius:8px!important;box-sizing:border-box!important;font-size:13px!important}
#accountPopup .account-presence-toggle{justify-content:initial!important}
#accountPopup .account-presence-toggle span:last-child{margin-left:auto!important}
#accountPopup .account-presence-submenu{position:absolute!important;left:calc(100% + 9px)!important;right:auto!important;bottom:10px!important;width:210px!important;box-sizing:border-box!important;max-height:min(360px,80vh)!important;overflow:auto!important;z-index:2100!important}
#accountPopup .account-presence-submenu[hidden]{display:none!important}
#accountPopup .account-edit-main{width:calc(100% - 22px)!important;margin:10px 11px 11px!important;min-height:38px!important;border-radius:8px!important}
@media(max-width:680px){#accountPopup .account-presence-submenu{left:auto!important;right:0!important;bottom:calc(100% + 8px)!important}}
.social-shortcuts .social-shortcut{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;text-align:left!important;padding-left:16px!important;white-space:nowrap!important}
.social-shortcuts .social-shortcut-icon{width:22px!important;min-width:22px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
.enclave-confirm-overlay{position:fixed;inset:0;z-index:30000;display:grid;place-items:center;background:#000a;padding:16px}
.enclave-confirm-dialog{width:min(380px,100%);box-sizing:border-box;border-radius:14px;border:1px solid #55505f;background:#24212c;color:#f6f4fa;padding:22px;box-shadow:0 24px 80px #000b}
.enclave-confirm-dialog h3{font-size:18px;margin:0 0 10px}.enclave-confirm-dialog p{color:#bcb8c6;font-size:14px;margin:0 0 22px;line-height:1.5}
.enclave-confirm-actions{display:flex;justify-content:flex-end;gap:9px}.enclave-confirm-actions button{padding:9px 14px;border-radius:8px}

/* v0.51: unified profile surfaces; scoped overrides avoid touching app grid */
.server-owner-crown{font-size:0!important;display:inline-flex!important;vertical-align:middle!important;align-items:center!important;justify-content:center!important;width:13px!important;height:15px!important;min-width:13px!important;margin:0 0 0 5px!important;position:relative!important;top:0!important;transform:none!important;line-height:1!important}
.server-owner-crown::before{content:'♛'!important;font:normal 12px/1 Arial,sans-serif!important;display:block!important;color:#f6f5f8!important;transform:translateY(-.5px)!important}
.member .nameplate-title{display:inline-flex!important;align-items:center!important;gap:0!important;min-height:19px!important;line-height:19px!important;white-space:nowrap!important}
.compact-profile-preview{width:min(340px,calc(100vw - 20px))!important;background:#17151d!important;border:1px solid #494252!important;border-radius:16px!important;box-shadow:0 24px 72px #000b!important;overflow:hidden!important;max-height:calc(100vh - 24px)!important;overflow-y:auto!important;padding:0!important}
.compact-profile-banner{height:108px!important;background-position:center!important;background-size:cover!important;border-radius:0!important}
.compact-profile-person{display:flex!important;align-items:flex-end!important;gap:12px!important;margin-top:-35px!important;padding:0 16px 12px!important;min-height:87px!important;position:relative!important}
.compact-profile-person .profile-avatar-hover-wrap{width:78px!important;height:78px!important;min-width:78px!important;flex:0 0 78px!important;border:5px solid #17151d!important;box-sizing:border-box!important;border-radius:50%!important;overflow:hidden!important}
.compact-profile-person .profile-avatar-hover-wrap .nameplate-avatar{width:100%!important;height:100%!important;display:block!important;border:0!important;overflow:hidden!important}
.compact-profile-identity{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;padding-bottom:5px!important}
.compact-profile-identity strong{font-size:16px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
.compact-profile-identity small{font-size:12px!important;line-height:1.3!important;color:#aaa5b2!important}
.compact-profile-presence{display:flex!important;align-items:center!important;gap:5px!important}
.compact-profile-info{background:#24212c!important;margin:0 12px 12px!important;padding:14px!important;border-radius:12px!important;box-sizing:border-box!important;overflow-wrap:anywhere!important}
.compact-profile-divider{border-top:1px solid #494352!important;margin:4px 0 12px!important}
.compact-profile-section-title{font-size:10px!important;font-weight:800!important;letter-spacing:.065em!important;color:#b4adbd!important;margin:12px 0 5px!important}
.compact-profile-date,.compact-profile-role{font-size:12px!important;color:#f1eef4!important}
.compact-profile-actions{display:flex!important;gap:7px!important;margin:14px 0 0!important}
.compact-profile-actions button{flex:1!important;min-width:0!important;min-height:36px!important;border-radius:8px!important;padding:7px 8px!important;font-size:12px!important;white-space:normal!important}
.compact-profile-close{position:absolute!important;top:12px!important;right:12px!important;width:28px!important;height:28px!important;border-radius:8px!important;background:#211e2abf!important;color:#fff!important;border:1px solid #ffffff33!important;cursor:pointer!important;font-size:19px!important;line-height:1!important;z-index:3!important}
.compact-profile-close:hover{background:#403647!important}
#accountPopup{width:290px!important}
#accountPopupIdentity .account-popup-cover{height:85px!important}
#accountPopupIdentity .account-popup-user{align-items:center!important;margin-top:-23px!important;min-height:72px!important;padding-bottom:10px!important}
#accountPopupIdentity .account-avatar-hover-wrap{width:66px!important;height:66px!important;min-width:66px!important;flex:0 0 66px!important;border:4px solid #1e1d25!important}
#accountPopupIdentity .account-avatar-hover-wrap>.avatar{inset:0!important;width:100%!important;height:100%!important;box-sizing:border-box!important;border:0!important;background-position:center!important;background-size:cover!important}
#accountPopupIdentity .account-popup-names{align-self:center!important;padding-top:22px!important;padding-bottom:0!important}
#accountPopupIdentity .account-popup-names strong{font-size:15px!important}
#accountPopup .account-menu-item{background:transparent!important;min-height:38px!important;border-radius:7px!important}
#accountPopup .account-menu-item:hover{background:#36313e!important}
#accountPopup .account-edit-main{margin-top:8px!important}
#accountPopup .account-presence-submenu{background:#24212d!important;border-color:#55505f!important}
#accountPopup[hidden],.compact-profile-preview[hidden]{display:none!important}
@media(max-width:760px){.compact-profile-preview{max-width:calc(100vw - 16px)!important}}

/* v0.52 profile menu: replaces redundant X; the preview closes on outside click or Escape. */
.compact-profile-preview{isolation:isolate}
.compact-profile-more{position:absolute!important;right:12px!important;top:12px!important;z-index:5!important;width:34px!important;height:32px!important;border-radius:9px!important;border:1px solid #ffffff38!important;background:#25212dbb!important;color:#fff!important;letter-spacing:2px!important;font-size:14px!important;cursor:pointer!important;display:grid!important;place-items:center!important;padding:0!important}
.compact-profile-more:hover,.compact-profile-more:focus-visible{background:#3b3344!important;outline:1px solid #a68bb0!important}
.compact-profile-more-menu{position:absolute;z-index:6;top:50px;right:12px;width:174px;padding:5px;background:#201d27;border:1px solid #554b61;border-radius:10px;box-shadow:0 10px 30px #0009}
.compact-profile-more-menu[hidden]{display:none!important}
.compact-profile-more-menu button{display:block;width:100%;padding:10px 12px;text-align:left;color:#f5f1f6;background:transparent;border:0;border-radius:6px;font-size:12px;cursor:pointer}
.compact-profile-more-menu button:hover{background:#393342}

/* v0.53: connections display preferences */
.connection-display-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;margin:10px 0;border:1px solid var(--border,#42424b);border-radius:12px;background:rgba(255,255,255,.025);cursor:pointer}
.connection-display-row span{display:flex;flex-direction:column;gap:5px}.connection-display-row small{opacity:.65}.connection-display-row input{width:18px;height:18px;accent-color:#f52790}

/* v0.54: call toggle always visible and clickable */
#callClose .call-minimize-symbol{display:inline-flex;align-items:center;justify-content:center;font-size:23px;line-height:1;color:var(--text,#f2f2f5);width:24px;height:24px}#callVideo.call-minimized #callClose{width:32px;height:32px;min-width:32px;cursor:pointer}#callVideo.call-minimized header{pointer-events:auto}

/* v0.55 account, call and profile refinements */
#tab-account .settings-card{margin-bottom:14px;padding:20px 24px;border:1px solid #393941}
#tab-account .account-summary{overflow:hidden}
#tab-account .account-summary #accountBannerPreview{overflow:hidden;background-size:cover;background-position:center}
.account-settings-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:12px 0 26px;padding:16px 20px;border:1px solid #393941;border-radius:10px;background:#202126}
.account-settings-actions .settings-help{margin:0;max-width:65%}
.account-settings-actions button{flex-shrink:0}
.compact-profile-more-menu .danger-menu-action{color:#ff777f!important}
.compact-profile-more-menu .danger-menu-action:hover{background:#672a32!important;color:white!important}
#callClose .call-minimize-symbol{font-size:20px;font-family:system-ui,sans-serif;font-weight:600}
.vmember{cursor:pointer}
@media(max-width:700px){.account-settings-actions{flex-direction:column;align-items:stretch}.account-settings-actions .settings-help{max-width:none}}

/* v0.56: accessible call window controls and screen-first minimized preview */
#callVideo header #callClose{box-sizing:border-box;flex:0 0 36px;min-width:36px;width:36px;height:36px;overflow:visible;display:flex;align-items:center;justify-content:center;padding:7px;line-height:1}
#callVideo header #callClose svg,#callVideo header #callClose .ui-icon{display:block;flex:none;width:19px;height:19px;max-width:19px;max-height:19px;overflow:visible}
#callVideo.call-minimized.has-active-screen .video-tile.minimize-hidden{display:none!important}
#callVideo.call-minimized.has-active-screen #videoTiles{display:flex!important;align-items:stretch;justify-content:stretch}
#callVideo.call-minimized.has-active-screen .video-tile:not(.minimize-hidden){width:100%;height:100%;flex:1 1 100%}
#callVideo.call-minimized.has-active-screen .video-tile img{width:100%;height:100%;object-fit:contain}

/* v0.57 — Nova, responsive layout, stream replacement and profile actions */
.nova-hero{padding:32px 24px;border-radius:20px;background:radial-gradient(circle at 80% 10%,#8b5cf650,transparent 42%),linear-gradient(135deg,#241c36,#3b244c 55%,#211f30);border:1px solid #7b5ad45e;text-align:center;margin-bottom:24px}
.nova-hero h1{font-size:clamp(27px,5vw,40px);margin:6px 0}.nova-hero p{font-size:17px;color:#e7d9ff}.nova-spark{font-size:46px;color:#d3a9ff}.nova-soon{display:inline-block;background:#ffffff20;border:1px solid #ffffff25;padding:7px 14px;border-radius:30px;font-size:12px}
.nova-tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.nova-tier{min-width:0;background:#222127;border:1px solid #45414e;border-radius:16px;padding:20px;display:flex;flex-direction:column}.nova-tier.featured{border-color:#b78aff;background:linear-gradient(160deg,#31263e,#222127)}.nova-tier-label{color:#c8a8ff;font-size:11px;font-weight:800;letter-spacing:.1em}.nova-tier h2{margin:12px 0}.nova-tier p{color:#aaa4b7}.nova-tier ul{padding-left:20px;line-height:2;flex:1}.nova-tier button{background:#555064;padding:12px;border-radius:9px;opacity:.75}
.profile-save-bar{display:flex;gap:20px;align-items:center;justify-content:space-between;position:sticky;bottom:0;z-index:2;padding:16px 20px;border:1px solid #55505c;background:#24232af5;border-radius:12px;margin:16px 0}.profile-save-bar p{margin:4px 0 0}.profile-save-bar button{width:auto;min-width:210px}
#videoTiles .video-tile.screen-replaces-avatar{display:none!important}
/* Mobile Safari and narrow webviews: preserve chat space and allow panel navigation. */
@media(max-width:800px){
 #app,#app.wide-dm{grid-template-columns:56px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr);width:100%;max-width:100vw;overflow:hidden}
 #serverRail{grid-column:1;grid-row:1;min-width:0;overflow-y:auto;overflow-x:hidden}
 #sidebar{grid-column:2;grid-row:1;min-width:0;max-width:100%;position:relative}
 #main{grid-column:2;grid-row:1;min-width:0;max-width:100%;background:var(--bg-main)}
 #members{display:none!important}
 #app.mobile-sidebar-open #sidebar{z-index:9;display:flex!important}
 #app.mobile-sidebar-open #main{visibility:hidden;pointer-events:none}
 #app:not(.mobile-sidebar-open) #sidebar{display:none!important}
 #settingsPage{overflow:hidden}#settingsSidebar{width:min(42vw,180px);flex-shrink:0}#settingsContent{min-width:0;overflow-y:auto}
 .settings-sidebar-scroll{padding:8px 5px}.settings-nav-item{padding:10px 7px;font-size:12px;overflow-wrap:anywhere}
 .nova-tiers{grid-template-columns:1fr}.profile-save-bar{flex-direction:column;align-items:stretch}.profile-save-bar button{width:100%}
 .compact-profile-preview{max-width:calc(100vw - 16px)!important;left:auto!important;right:8px!important}
 #callVideo:not(.call-minimized){position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:1200}
 #callVideo.call-minimized{right:8px!important;bottom:8px!important;width:min(250px,calc(100vw - 72px))!important}
 #composer{padding:0 8px max(8px,env(safe-area-inset-bottom))}#msgInput{min-width:0}
}
@media(max-width:480px){#settingsSidebar{width:116px}.nova-hero{padding:24px 12px}.profile-save-bar{padding:12px}#settingsPage .settings-tab{padding:12px!important}}
#mobileNavToggle{display:none}@media(max-width:800px){#mobileNavToggle{display:flex;position:fixed;left:64px;top:8px;z-index:30;width:35px;height:35px;align-items:center;justify-content:center;background:#45414d;border:1px solid #68606f;border-radius:9px;color:white;box-shadow:0 4px 12px #0005}#app.mobile-sidebar-open #mobileNavToggle{left:auto;right:12px}}

/* v0.58: mobile Safari navigation, profile controls and unobstructed composer */
.profile-save-bar[hidden]{display:none!important}
#mobileAccountToggle{display:none}
@media(max-width:800px){
 html,body{height:100%;width:100%;overflow:hidden}
 #app{height:100dvh;min-height:0}
 #main{height:100%;min-height:0;overflow:hidden}
 #sidebar{height:100%;min-height:0;overflow:hidden}
 #sidebar .scroll{min-height:0;flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}
 #sidebar .account-panel{flex:0 0 auto;display:flex!important;position:relative!important;bottom:auto!important;z-index:12;min-height:60px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
 #sidebar #voiceBar:not([hidden]){flex-shrink:0;max-height:145px;overflow-y:auto}
 #mobileNavToggle{left:68px!important;top:max(9px,env(safe-area-inset-top))!important;z-index:41!important;width:34px!important;height:34px!important}
 #mobileAccountToggle{display:flex;align-items:center;justify-content:center;position:fixed;right:12px;top:max(9px,env(safe-area-inset-top));z-index:41;width:36px;height:36px;border:1px solid #5b5265;border-radius:50%;background:#302936;color:#fff;font-size:21px}
 #app.mobile-sidebar-open #mobileNavToggle{left:68px!important;right:auto!important}
 #app.mobile-sidebar-open #sidebar{z-index:15!important}
 #app.mobile-sidebar-open #main{visibility:hidden}
 #accountPopup{position:fixed!important;left:64px!important;right:8px!important;bottom:max(72px,env(safe-area-inset-bottom) + 70px)!important;width:min(294px,calc(100vw - 78px))!important;max-height:65dvh!important;overflow-y:auto!important;z-index:100!important}
 #main .title,#main header{padding-left:52px!important;min-width:0}
 #composer{min-height:60px;position:relative;z-index:2;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
 #msgInput{font-size:16px!important}
 #settingsPage{height:100dvh;width:100vw;max-width:100vw}
 #settingsSidebar{width:min(38vw,155px)!important;min-width:104px!important;overflow-y:auto}
 #settingsContent{padding:18px 12px!important;max-width:none!important;min-width:0!important;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}
 #settingsContent input,#settingsContent textarea,#settingsContent select{max-width:100%;min-width:0;font-size:16px}
 #settingsContent .settings-card{max-width:100%;overflow-wrap:anywhere;padding:14px!important}
 .profile-save-bar{position:relative!important;flex-direction:column;align-items:stretch;gap:10px;margin:12px 0!important}
 .nova-tiers{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:420px){#app{grid-template-columns:54px minmax(0,1fr)!important}#mobileNavToggle{left:60px!important}#app.mobile-sidebar-open #mobileNavToggle{left:60px!important}#accountPopup{left:57px!important;width:calc(100vw - 67px)!important}#settingsSidebar{width:110px!important}}

/* v0.59: narrow-screen layout rebuilt around usable full-width panels */
#mobileSettingsMenu{display:none}
@media(max-width:800px){
  #app,#app.wide-dm{grid-template-columns:56px minmax(0,1fr)!important;width:100vw!important;height:100dvh!important}
  #serverRail{width:56px!important;min-width:56px!important}
  #serverRail button{max-width:50px;max-height:50px}
  #app #main{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important}
  #app #sidebar{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important}
  #app:not(.mobile-sidebar-open) #sidebar{display:none!important}
  #app.mobile-sidebar-open #sidebar{display:flex!important;z-index:50!important}
  #app.mobile-sidebar-open #main{visibility:hidden;pointer-events:none}
  #mobileNavToggle{left:62px!important;top:10px!important;z-index:70!important}
  #mobileAccountToggle{right:10px!important;top:10px!important;z-index:70!important}
  #main .title,#main header{padding-left:46px!important;padding-right:42px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #socialWorkspace{min-width:0!important;max-width:100%!important;overflow-y:auto!important}
  .friends-tabs{overflow-x:auto!important;flex-wrap:nowrap!important;max-width:100%;-webkit-overflow-scrolling:touch}
  .friends-tab{flex-shrink:0}
  #settingsPage{display:flex!important;flex-direction:column!important;inset:0!important;height:100dvh!important;overflow:hidden!important}
  #settingsPage[hidden]{display:none!important}
  #mobileSettingsMenu{display:block!important;position:absolute;top:max(8px,env(safe-area-inset-top));left:10px;z-index:2200;background:#393640;color:#fff;border:1px solid #6a6273;border-radius:9px;padding:9px 12px;font-weight:700}
  #settingsSidebar{display:none!important;position:absolute!important;inset:0 auto 0 0!important;width:min(82vw,300px)!important;max-width:300px!important;z-index:2100!important;background:#292a30!important;box-shadow:15px 0 45px #0009;overflow-y:auto!important;padding-top:48px!important}
  #settingsPage.mobile-settings-nav-open #settingsSidebar{display:block!important}
  #settingsContent{width:100%!important;max-width:100vw!important;min-width:0!important;flex:1!important;padding:60px 14px 85px!important;box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important}
  #settingsContent .settings-tab,#settingsContent .settings-card{width:100%!important;max-width:100%!important;box-sizing:border-box!important;min-width:0!important}
  #settingsContent .settings-card>*{max-width:100%;min-width:0}
  #settingsContent input[type=file]{width:100%;font-size:14px;white-space:normal}
  #settingsContent img{max-width:100%;object-fit:cover}
  .profile-save-bar{position:relative!important;max-width:100%;box-sizing:border-box}
  #accountPopup{left:58px!important;bottom:max(76px,env(safe-area-inset-bottom) + 70px)!important;width:min(320px,calc(100vw - 68px))!important}
  #sidebar .account-panel{display:flex!important;visibility:visible!important}
}
@media(max-width:420px){
  #app,#app.wide-dm{grid-template-columns:52px minmax(0,1fr)!important}
  #serverRail{width:52px!important;min-width:52px!important}
  #mobileNavToggle{left:57px!important}
  #accountPopup{left:53px!important;width:calc(100vw - 63px)!important}
}

/* v0.60: hide the Active Now column on non-Friends social pages without hiding DMs. */
.social-side-hidden{display:none!important}

/* v0.62 — New Message picker */
.new-message-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(460px,calc(100vw - 28px));max-height:85vh;max-height:85dvh;padding:0;border:1px solid #48434e;border-radius:14px;background:#25242b;color:#f5f2f8;box-shadow:0 24px 80px #000a;overflow:hidden}
.new-message-dialog[open]{display:flex;flex-direction:column}.new-message-dialog::backdrop{background:#08070bc2}
.nm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 18px}.nm-head h2{margin:0 0 6px;font-size:22px}.nm-head p{margin:0;color:#b8b4c1;font-size:13px;line-height:1.5}.nm-close{background:transparent;color:#b8b4c1;font-size:25px;line-height:1;padding:4px 8px;border-radius:6px}.nm-close:hover{background:#393640;color:white}
.nm-body{display:flex;flex-direction:column;min-height:0;padding:0 24px 16px;gap:12px}.nm-search{box-sizing:border-box;width:100%;padding:12px;background:#17161c;color:#f5f2f8;border:1px solid #494450;border-radius:7px;font-size:14px;outline:none}.nm-search:focus{border-color:#f22c91}.nm-count{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#aaa6b4}.nm-list{min-height:72px;max-height:300px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#514a5d transparent}.nm-person{box-sizing:border-box;display:flex;width:100%;align-items:center;gap:12px;padding:10px 8px;border-radius:8px;background:transparent;color:#eee;text-align:left}.nm-person:hover,.nm-person:focus-visible{background:#3a3541;outline:1px solid #f22c91;outline-offset:-1px}.nm-person .avatar{flex:none}.nm-identity{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.nm-identity strong,.nm-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nm-identity small,.nm-person .ui-icon{color:#b8b4c1}.nm-empty{padding:18px 8px;color:#b8b4c1;text-align:center;font-size:14px}.nm-footer{display:flex;justify-content:flex-end;padding:14px 24px;background:#201f26;border-top:1px solid #38343f}.nm-cancel{padding:9px 18px;border-radius:6px;background:#393640;color:#eee}.nm-cancel:hover{background:#494450}@media(max-width:480px){.nm-head{padding:18px 16px 14px}.nm-body{padding:0 16px 12px}.nm-footer{padding:12px 16px}}
/* v0.63: workspace-specific activity and inline server role controls */
#app.no-activity-panel #members{display:none!important}
@media(min-width:1001px){#app.no-activity-panel{grid-template-columns:72px 240px minmax(0,1fr)!important}}
#members:has(.activity-is-empty){display:flex;flex-direction:column}
#memberList.activity-is-empty{flex:1;display:flex;align-items:center;justify-content:center;min-height:0}
.quiet-activity{text-align:center;padding:16px;color:#e9e7ef;line-height:1.5}
.quiet-symbol{display:block;font-size:30px;font-weight:800;color:#a6a0b4;margin-bottom:8px}
.quiet-activity p{font-size:13px;color:#a6a0b4;margin:6px 0}
.preview-role-pills{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin:7px 0 12px}
.preview-role-pill{display:inline-flex;align-items:center;gap:6px;background:#34313c;border-radius:6px;padding:5px 8px;font-size:12px}
.preview-role-dot{width:10px;height:10px;border-radius:50%}
.preview-role-plus{background:#34313c;border-radius:6px;width:26px;height:26px;font-size:19px;padding:0}
.preview-role-picker{background:#19181e;border:1px solid #48434f;border-radius:8px;padding:8px;max-height:150px;overflow:auto;margin-bottom:10px}
.preview-role-picker[hidden]{display:none!important}
.preview-role-option{display:flex;align-items:center;gap:8px;padding:7px;font-size:13px;cursor:pointer}
.compact-profile-preview{max-height:calc(100dvh - 16px);overflow:auto}
/* v0.64 workspace and shared message controls */
#socialWorkspace.notes-workspace{padding:clamp(16px,3vw,36px);box-sizing:border-box}
.notes-workspace>*{display:block;width:100%;max-width:900px!important;box-sizing:border-box;margin-left:auto!important;margin-right:auto!important}
.notes-workspace .notes-editor{min-height:300px}.notes-workspace .primary{margin-top:12px}
.friends-tabs{justify-content:center;align-items:center;gap:clamp(4px,1.5vw,18px)}
@media(min-width:1001px){#settingsContent{max-width:none;margin:0;min-width:0;box-sizing:border-box;scrollbar-gutter:stable;padding:40px clamp(24px,5vw,80px)}#settingsContent>.settings-tab{max-width:850px;margin-inline:auto}}
#settingsContent::-webkit-scrollbar{width:8px}#settingsContent::-webkit-scrollbar-thumb{background:#55545c;border-radius:8px;border:2px solid var(--bg-main)}
.message-profile-target{cursor:pointer}.author.message-profile-target:hover{text-decoration:underline}
.msg .body{min-width:0;overflow-wrap:anywhere}.message-toolbar{display:flex;align-items:center;gap:2px;position:absolute;right:12px;top:-15px;z-index:5;background:#222128;border:1px solid #44414b;border-radius:8px;padding:3px;box-shadow:0 3px 12px #0005;visibility:hidden}.msg:hover .message-toolbar,.msg:focus-within .message-toolbar,.message-toolbar:has(.message-more-menu:not([hidden])){visibility:visible}.message-toolbar button,.composer-tools button{background:transparent;color:#c4c0cc;border-radius:5px;padding:5px 7px;font-size:15px;line-height:1.2}.message-toolbar button:hover,.composer-tools button:hover{background:#45424c;color:white}.message-more-menu{position:absolute;right:0;top:100%;background:#211f27;border:1px solid #48434f;border-radius:7px;padding:5px;min-width:130px;box-shadow:0 5px 20px #0008}.message-more-menu button{display:block;width:100%;text-align:left;font-size:13px}.message-more-menu[hidden]{display:none!important}
#composer{position:relative}#composer .row{border:1px solid #44414b;border-radius:12px;min-width:0}.composer-tools{display:flex;align-items:center;gap:3px;padding-right:6px;flex:none}.composer-emoji-picker{position:absolute;right:16px;bottom:100%;background:#24212c;border:1px solid #494550;border-radius:10px;padding:10px;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;z-index:20}.composer-emoji-picker button{padding:8px;background:#35323c;border-radius:5px}
@media(max-width:600px){.composer-tools{gap:0;padding-right:2px}.composer-tools button{padding:5px 3px;font-size:12px}.message-toolbar{right:4px;top:-12px}.message-toolbar button{padding:4px;font-size:13px}.friends-tabs{gap:3px}.friends-tab{padding:7px 8px}}@media(hover:none){.msg .message-toolbar{position:relative;top:auto;right:auto;visibility:visible;align-self:flex-start;flex-wrap:wrap;max-width:100px}.msg .message-toolbar>button:nth-child(-n+5){display:none}}
