/* The profile editor and conversations share Nexo's identity, not desktop scaling. */
html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub{position:fixed!important;inset:16px!important;width:min(1180px,calc(100vw - 32px))!important;max-width:none!important;height:calc(100dvh - 32px)!important;max-height:none!important;margin:auto!important;padding:24px!important;zoom:1!important;box-sizing:border-box!important;overflow:auto!important;background:#0b1728!important;color:#f5f7ff!important;border:1px solid #4e6188!important;border-radius:20px!important}
#edit-dialog.profile-settings-hub>.eyebrow{font-size:10px;color:#b9a4ec;letter-spacing:.16em}
#edit-dialog.profile-settings-hub>h2{font-size:24px;margin:6px 0}
#edit-dialog.profile-settings-hub>.dialog-description{font-size:13px;color:#b9c9db;margin:0 0 20px}
.settings-profile-preview{position:relative;min-height:180px;isolation:isolate;border:1px solid #627bad66;border-radius:18px;overflow:hidden;margin:0 0 22px;background:#14263d}
.settings-preview-banner{position:absolute;inset:0;z-index:-2;background:linear-gradient(120deg,#11233c,#44276c)}
.settings-preview-banner img{width:100%;height:100%;object-fit:cover}
.settings-profile-preview:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#091526df,#09152666);z-index:-1;pointer-events:none}
.settings-preview-identity{display:flex;align-items:center;gap:24px;padding:36px;min-width:0}
.settings-preview-identity>.avatar{width:88px;height:88px;min-width:88px;position:relative;overflow:visible;border-radius:50%}
.settings-preview-identity>.avatar>img:not(.nexo-avatar-decoration){width:100%;height:100%;border-radius:50%;object-fit:cover}
.settings-preview-identity h3{font-size:24px;margin:0 0 6px;display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.settings-preview-identity p{font-size:13px;margin:0;color:#c3d1e3}
.settings-preview-identity>button{margin-left:auto;flex:none}
.settings-preview-plus{font-size:11px;background:#6943a4;color:white;border-radius:14px;padding:4px 10px;display:inline-block;margin-top:8px}
.profile-settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}
.profile-settings-directory{border:1px solid #39516f;border-radius:18px;padding:12px;position:sticky;top:0;background:#101f35;min-width:0}
.profile-settings-directory>input{box-sizing:border-box;width:100%;min-height:42px;border:1px solid #49607c;border-radius:10px;padding:10px;color:#f5f7ff;background:#0b1728;font-size:14px}
.profile-settings-category{margin-top:12px}
.profile-settings-category>summary{padding:8px;font-size:11px;letter-spacing:.08em;color:#aebfd5;cursor:pointer}
.profile-settings-link{display:flex!important;align-items:center!important;gap:10px!important;width:100%;min-height:40px!important;padding:9px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#d5dfed!important;text-align:left!important;font-size:12px!important}
.profile-settings-link svg{width:18px;height:18px;flex:none}
.profile-settings-link[aria-current]{background:linear-gradient(110deg,#663ba699,#343b6e)!important;color:white!important}
.profile-settings-main{min-width:0;border:1px solid #556594;border-radius:18px;padding:24px;background:#14263d}
.profile-settings-main>h3{margin:0 0 20px;font-size:20px}
#edit-dialog.profile-settings-hub #edit-profile-form{display:grid;gap:16px;min-width:0}
#edit-dialog.profile-settings-hub .edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#edit-dialog.profile-settings-hub input:not([type=file]),#edit-dialog.profile-settings-hub textarea{box-sizing:border-box;max-width:100%;width:100%;background:#0d1c30;color:#f5f7ff;border:1px solid #49607e;border-radius:10px;padding:11px;font-size:15px;min-height:44px}
#edit-dialog.profile-settings-hub label{display:grid;gap:8px;font-size:13px;margin:0}
#edit-dialog.profile-settings-hub #change-banner{height:130px!important;min-height:130px!important;overflow:hidden!important;border-radius:12px!important}
#edit-dialog.profile-settings-hub #edit-banner-preview{height:100%!important}
#edit-dialog.profile-settings-hub .profile-picture-edit-row{gap:18px}
#edit-dialog.profile-settings-hub #change-avatar{width:84px!important;height:84px!important;min-height:84px!important;flex:none}
#edit-dialog.profile-settings-hub #edit-avatar-preview{width:64px!important;height:64px!important}
#edit-dialog.profile-settings-hub .profile-media-remove{display:flex;flex-wrap:wrap;gap:10px}
.profile-settings-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:-24px;background:#14263df5;padding:14px 0;margin-top:4px;border-top:1px solid #39516f;z-index:2}
#edit-dialog.profile-settings-hub .profile-settings-actions button{width:auto!important;min-height:44px!important;padding:10px 20px!important;margin:0!important}
.profile-settings-menu{display:none!important}
.conversation-directory{padding:12px;flex:none}
.conversation-directory>input{width:100%;min-width:0;box-sizing:border-box;border:1px solid #465a78;border-radius:14px;padding:11px;background:#101f35;color:#f5f7ff;font-size:14px;min-height:44px}
.conversation-filters{display:flex;gap:6px;overflow:auto;padding-top:10px;scrollbar-width:thin}
.conversation-filters>button{font-size:11px!important;min-height:36px!important;flex:1;padding:6px 8px!important}
.conversation-filters>button[aria-pressed=true]{background:#6843a1!important;color:white!important;border-color:#a66bff!important}
#workspace.messaging-workspace .dm-channel{position:relative;gap:10px!important;min-height:72px!important;align-items:center!important}
#workspace.messaging-workspace .conversation-copy{display:flex!important;flex:1!important;flex-direction:column!important;min-width:0!important;gap:5px!important;text-align:left}
.conversation-copy>span{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-copy>small{display:block;font-size:12px;color:#aebed4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.conversation-time{position:absolute;right:8px;top:5px;font-size:9px;color:#adbed3}
.conversation-pinned .conversation-copy>span:before{content:'★ ';color:#f5c66d}
#workspace.messaging-workspace .message-content{background:#1b2c46!important;border:1px solid #465674!important;border-radius:16px!important;padding:9px 13px!important;max-width:min(76%,580px)!important;min-width:0!important}
#workspace.messaging-workspace .message-outgoing{flex-direction:row-reverse!important}
#workspace.messaging-workspace .message-outgoing .message-content{background:linear-gradient(125deg,#57388a,#3c306a)!important;border-color:#8962c0!important}
#workspace.messaging-workspace .message-body{font-size:15px!important;line-height:1.5!important;color:#f5f7ff!important;margin:3px 0!important;overflow-wrap:anywhere}
#workspace.messaging-workspace .message-meta{gap:5px!important;margin:0 0 3px!important;line-height:1.25!important}
#workspace.messaging-workspace .message-meta time{font-size:10px!important;color:#b9c9df!important}
.conversation-details{grid-area:people;min-width:0;min-height:0;overflow:auto;border:1px solid #455b7c;border-radius:18px;background:#101f35;padding:16px;box-sizing:border-box;color:#f5f7ff}
.conversation-details-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}
.conversation-details-heading h3{font-size:14px;margin:0}
.conversation-person{display:grid;gap:14px;margin:22px 0}
.conversation-person-profile{display:grid!important;justify-items:center;background:transparent!important;border:0!important;gap:10px;padding:8px!important;color:inherit!important;width:100%}
.conversation-person-profile>.avatar{width:78px!important;height:78px!important;position:relative;overflow:visible!important}
.conversation-person-profile h3{font-size:20px;margin:8px 0 0}
.conversation-person-profile small{color:#b2c9db;font-size:12px}
.conversation-person-actions{display:flex;flex-wrap:wrap;gap:8px}
.conversation-person-actions button{flex:1;min-height:42px;font-size:12px}
.conversation-detail-card{padding:14px;border:1px solid #384f70;border-radius:14px;margin-top:14px;overflow-wrap:anywhere;font-size:13px}
.conversation-detail-card h4{margin:0 0 8px}.conversation-detail-card p{line-height:1.5}.conversation-detail-card>button{display:block;margin-top:8px;width:100%;text-align:left;font-size:12px}
.conversation-back{display:none!important}
[hidden].conversation-directory,[hidden].conversation-details,.conversation-filters [hidden],#channel-list [hidden],.profile-settings-directory [hidden]{display:none!important}
html.nexo-identity.nexo-orbit #workspace.messaging-workspace.chat-details-open{grid-template-columns:250px minmax(0,1fr) 280px!important;grid-template-areas:'navigation navigation navigation' 'sidebar canvas people'!important}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call{position:fixed!important;inset:auto!important;right:auto!important;bottom:auto!important;left:var(--call-left,auto)!important;top:var(--call-top,auto)!important;z-index:160!important;zoom:1!important;width:310px!important;max-width:calc(100vw - 16px)!important;margin:0!important;padding:12px!important;box-sizing:border-box!important;overflow:visible!important;border:1px solid #9875d4!important;border-radius:18px!important;background:linear-gradient(130deg,#14263df5,#242044f5)!important;box-shadow:0 8px 35px #0007!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call[hidden]{display:none!important}
.floating-call-handle{display:flex;align-items:center;gap:10px;cursor:grab;touch-action:none;min-width:0}
.floating-call-handle>div{flex:1;min-width:0}.floating-call-handle b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.floating-call-handle small{display:block;font-size:10px;color:#b6c9e3}
.floating-call-avatar{position:relative!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:4px!important;border:0!important;border-radius:50%!important;background:#14263d!important;flex:none!important;overflow:visible!important}
.floating-call-avatar>.avatar{width:32px!important;height:32px!important;position:relative;overflow:visible!important}
.floating-call-avatar.is-speaking{outline:2px solid #66c7ff;outline-offset:2px}
.floating-call-time{font-size:11px;color:#e0cbff;white-space:nowrap;font-variant-numeric:tabular-nums}
.floating-call #voice-dock-people{display:none!important}.floating-call .voice-controls{display:flex!important;justify-content:center!important;gap:8px!important;flex-wrap:nowrap!important;padding:4px!important}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call .voice-controls{display:flex!important;grid-template-columns:none!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:0!important;gap:6px!important}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call .voice-controls>button,
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call .voice-controls>.call-more-wrap,
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call .voice-controls .call-more-button{display:grid!important;place-items:center!important;min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important;flex:0 0 44px!important;padding:0!important;margin:0!important;box-sizing:border-box!important}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call .voice-controls svg{width:20px!important;height:20px!important;flex:none!important;display:block!important}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call .voice-controls[hidden],
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call.call-bubble>.voice-controls{display:none!important}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call .floating-call-handle{width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px 44px;gap:6px!important}
.floating-call-handle>.floating-call-time{grid-column:2;grid-row:2}
.floating-call-handle>div{grid-column:2;grid-row:1}.floating-call-handle>.floating-call-avatar{grid-column:1;grid-row:1/3}
.floating-call-handle>button:not(.floating-call-avatar){width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;grid-row:1/3;display:grid;place-items:center}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call.call-bubble .floating-call-handle{display:block!important}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call.call-bubble .floating-call-handle>:not(.floating-call-avatar){display:none!important}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call.call-bubble{width:64px!important;height:64px!important;padding:8px!important;border-radius:50%!important;gap:0!important}
.call-bubble .floating-call-handle>:not(.floating-call-avatar),.call-bubble>.voice-controls,.call-bubble>.voice-resume{display:none!important}
@media(max-width:1100px){html.nexo-identity.nexo-orbit #workspace.messaging-workspace.chat-details-open{grid-template-columns:220px minmax(0,1fr)!important;grid-template-areas:'navigation navigation' 'sidebar canvas'!important}.conversation-details{position:fixed;inset:100px 12px 76px auto;width:min(360px,calc(100vw - 24px));z-index:110;box-shadow:0 10px 35px #0007}}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub{inset:0!important;width:100%!important;height:var(--nexo-visual-height,100dvh)!important;max-height:100dvh!important;padding:calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom))!important;border-radius:0!important}
 .profile-settings-layout{display:block}.profile-settings-directory{display:none;position:static;margin-bottom:16px}.directory-open .profile-settings-directory{display:block}.profile-settings-menu{display:block!important;width:100%;margin:0 0 12px;min-height:44px}
 .settings-preview-identity{padding:24px 18px;gap:18px;flex-wrap:wrap}.settings-preview-identity>.avatar{width:64px;height:64px;min-width:64px}.settings-preview-identity h3{font-size:20px}.settings-preview-identity>button{margin:4px 0 0;min-height:40px;font-size:12px;width:100%}.settings-profile-preview{min-height:0}.profile-settings-main{padding:16px}.profile-settings-actions{bottom:-16px}#edit-dialog.profile-settings-hub .edit-fields{grid-template-columns:1fr}
 html.nexo-identity.nexo-orbit #workspace.messaging-workspace.chat-details-open{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'navigation' 'canvas'!important}
 html.nexo-identity.nexo-orbit #workspace.messaging-workspace.phone-chat-open:not(.mobile-sidebar) .conversation-back{display:grid!important;place-items:center!important;width:36px!important;height:40px!important;min-width:36px!important;padding:0!important;font-size:28px!important}
 html.nexo-identity.nexo-orbit #workspace.messaging-workspace.phone-chat-open .chat-header #mobile-menu{display:none!important}
 #workspace.messaging-workspace .message-content{max-width:82%!important;padding:8px 11px!important}#workspace.messaging-workspace .message-body{font-size:15px!important}.conversation-details{inset:calc(60px + env(safe-area-inset-top)) 8px calc(64px + env(safe-area-inset-bottom))!important;width:calc(100vw - 16px)!important}
}
@media(prefers-reduced-motion:reduce){.profile-settings-hub *,.messaging-workspace *,.floating-call *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Server views keep dense conversations and legible, consistent navigation. */
.server-identity-cover{position:relative;isolation:isolate;overflow:hidden;border-bottom:1px solid #405778;flex:none;background:linear-gradient(120deg,#14263d,#31204f);min-height:80px}
.server-identity-cover[hidden]{display:none!important}.server-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.45;z-index:-1}.server-cover-content{display:flex;gap:12px;align-items:center;padding:16px}.server-cover-icon{width:42px;height:42px;border-radius:12px;object-fit:cover;flex:none}.server-cover-content>div{min-width:0}.server-cover-content b{display:block;font-size:14px;overflow-wrap:anywhere}.server-cover-content small{display:block;margin-top:5px;font-size:10px;color:#c0cde0}
html.nexo-identity #workspace .channel-button.active{background:linear-gradient(110deg,#54367a,#233a59)!important;border-color:#9c7bd1!important;color:#f1e9ff!important}
html.nexo-identity #workspace #member-list .member-row{border-radius:12px!important;background:#14263d!important;border-color:#334d6d!important;min-height:64px!important;padding:10px!important}
.member-category-toggle{background:transparent!important;border:0!important;color:inherit!important;width:100%;text-align:left!important;font-size:11px!important;min-height:36px!important;padding:4px 0!important;letter-spacing:.04em}
.member-category-toggle:after{content:'⌄';float:right}.member-category-toggle[aria-expanded=false]:after{content:'›'}
#member-list [hidden]{display:none!important}
html.nexo-identity #server-control-dialog.server-workspace-settings{background:#0b1728!important;color:#f5f7ff!important;border:1px solid #54698a!important;border-radius:18px!important}
.server-settings-search{box-sizing:border-box;width:100%;padding:11px 14px!important;min-height:44px!important;border:1px solid #4c6183!important;background:#14263d!important;color:#f5f7ff!important;border-radius:12px!important;margin-bottom:16px;font-size:14px!important}
#server-control-dialog .settings-nav button{min-height:42px!important;text-align:left!important;border-radius:10px!important;padding:10px!important;font-size:13px!important}
#server-control-dialog .settings-nav button.selected{background:#593b85!important;border-color:#a66bff!important;color:white!important}
#server-control-dialog .settings-nav [hidden]{display:none!important}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 html.nexo-identity.nexo-orbit #workspace #sidebar .server-identity-cover{min-height:64px;max-height:76px}.server-cover-content{padding:10px 16px}.server-cover-icon{width:36px;height:36px}
 html.nexo-identity.nexo-orbit #workspace #sidebar #channel-list .channel-button{border-radius:12px!important}
 html.nexo-identity #server-control-dialog.server-workspace-settings{position:fixed!important;inset:0!important;width:100%!important;height:var(--nexo-visual-height,100dvh)!important;max-height:100dvh!important;box-sizing:border-box!important;border-radius:0!important;margin:0!important;padding:24px 16px!important;zoom:1!important;overflow:auto!important}
 #server-control-dialog .server-settings-layout{display:flex!important;flex-direction:column!important;min-height:0!important}
 #server-control-dialog .settings-nav{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;overflow:visible!important;width:100%!important;max-height:none!important;gap:6px!important;border-right:0!important;padding:0 0 12px!important}
 #server-control-dialog .server-settings-category{width:100%;font-size:10px;color:#b8c9dd}#server-control-dialog .settings-body{min-width:0!important;overflow:visible!important;padding:0!important}
}
html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub .profile-picture-edit-row{display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;gap:16px!important;align-items:center!important}
html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub .profile-media-remove{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important}
html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub .profile-media-remove button{font-size:12px!important;min-height:36px!important;padding:6px 10px!important;flex:0 1 auto!important}
html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub #change-avatar{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:84px!important;height:102px!important;min-height:102px!important;padding:4px!important;overflow:visible!important;background:#101f35!important}
html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub #change-avatar .media-edit-caption{position:static!important;font-size:10px!important;padding:4px!important;width:100%!important;box-sizing:border-box!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace #messages .message-outgoing .message-content{background:linear-gradient(125deg,#57388a,#3c306a)!important;border-color:#8962c0!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace #sidebar #channel-list .conversation-copy>span{font-size:14px!important;color:#edf3fc!important;line-height:1.3!important}
.notice-quiet-hours{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid #405778}.notice-quiet-hours h3,.notice-quiet-hours p{grid-column:1/-1}.notice-quiet-hours label{display:grid;gap:7px;font-size:13px}.notice-quiet-hours input:not([type=checkbox]){box-sizing:border-box;min-width:0;width:100%;min-height:44px;padding:8px;background:#101f35;color:#f5f7ff;border:1px solid #465c80;border-radius:9px}.notice-quiet-hours label:has(input[type=checkbox]){display:flex;align-items:center;grid-column:1/-1}.notice-quiet-hours input[type=checkbox]{width:22px;height:22px;accent-color:#a66bff}

html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub #edit-avatar-preview{position:relative!important;inset:auto!important;display:grid!important;place-items:center!important;flex:none!important;margin:0!important;border-radius:50%!important;overflow:visible!important;font-size:22px!important}
.profile-settings-link svg,.conversation-info svg{fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace:not(.messaging-workspace) .conversation-back,html.nexo-ux.nexo-identity.nexo-orbit #workspace:not(.messaging-workspace) .conversation-info{display:none!important}
@media(min-width:761px){html.nexo-ux.nexo-identity.nexo-orbit #workspace .conversation-back{display:none!important}}
html.nexo-ux.nexo-identity.nexo-orbit #workspace:not(.phone-chat-open) .conversation-back,html.nexo-ux.nexo-identity.nexo-orbit #workspace .conversation-info[hidden]{display:none!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.direct-messaging>.members-panel,html.nexo-ux.nexo-identity.nexo-orbit #workspace.direct-messaging #members-toggle{display:none!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.direct-messaging:not(.chat-details-open){grid-template-columns:250px minmax(0,1fr)!important;grid-template-areas:'navigation navigation' 'sidebar canvas'!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace>.conversation-details:not([hidden]){display:block!important;position:relative!important;grid-area:people!important;z-index:3;align-self:stretch;height:100%;max-height:100%;overflow-y:auto!important;min-height:0;transform:none!important;padding:16px!important;background:#101c32!important;border:1px solid #465a7e!important;border-radius:18px!important;box-sizing:border-box}
@media(max-width:1100px){html.nexo-ux.nexo-identity.nexo-orbit #workspace.direct-messaging:not(.chat-details-open){grid-template-columns:220px minmax(0,1fr)!important}html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace>.conversation-details:not([hidden]){position:fixed!important;inset:100px 12px 76px auto!important;width:min(360px,calc(100vw - 24px))!important;height:auto!important;z-index:110!important;box-shadow:0 10px 35px #0007}}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){html.nexo-ux.nexo-identity.nexo-orbit #workspace.direct-messaging:not(.chat-details-open){grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'navigation' 'canvas'!important}html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace>.conversation-details:not([hidden]){inset:calc(60px + env(safe-area-inset-top)) 8px calc(64px + env(safe-area-inset-bottom))!important;width:calc(100vw - 16px)!important}}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.direct-messaging>#members-panel{display:none!important}
html.nexo-ux #notifications-dialog .notice-quiet-hours .notice-quiet-zone{grid-column:1/-1;min-width:0}
html.nexo-ux #notifications-dialog .notice-quiet-hours input:not([type=checkbox]){width:100%!important;min-width:0!important;max-width:100%!important}
html.nexo-ux #notifications-dialog .notice-quiet-hours>button{grid-column:1/-1;min-height:44px;justify-self:start;white-space:nowrap}

/* Reference pass: the profile cover leads into a compact editor and left directory. */
#edit-dialog.profile-settings-hub>.eyebrow{display:none}
#edit-dialog.profile-settings-hub>h2{margin-top:8px;margin-bottom:8px;font-size:28px}
#edit-dialog.profile-settings-hub>.nexo-customise-profile{display:none!important}
.settings-profile-preview{min-height:230px;border-color:#8f68c7;background:#0c1428;box-shadow:inset 0 -1px 28px #714cc526}
.settings-preview-identity{min-height:210px;padding:28px 36px;box-sizing:border-box}
.settings-preview-identity>.avatar{width:112px;height:112px;min-width:112px}
.settings-preview-identity h3{font-size:28px}
.profile-settings-main{background:linear-gradient(145deg,#102039,#111b30);border-color:#7463a1;padding:24px}
.profile-settings-actions{position:sticky;top:-24px;bottom:auto;z-index:5;margin:0 0 4px;padding:0 0 18px;background:#122039;border-top:0;border-bottom:1px solid #394b6b;align-items:center}
.profile-settings-actions>h3{margin:0 auto 0 0;font-size:22px;color:#f5f7ff}
#edit-dialog.profile-settings-hub .edit-fields{grid-template-columns:minmax(0,1fr)}
#edit-dialog.profile-settings-hub .edit-fields>label,#edit-dialog.profile-settings-hub #edit-profile-form>label{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:16px}
#edit-dialog.profile-settings-hub .profile-settings-link{font-size:14px!important;min-height:46px!important;padding:11px!important}
.profile-settings-link[aria-current]{border:1px solid #a174dd!important;box-shadow:inset 0 0 14px #ad6bff33;background:linear-gradient(105deg,#693eb1,#3c2b69)!important}
.settings-showcase{border-top:1px solid #394b6b;padding-top:18px}.settings-showcase h3{margin:0 0 6px;font-size:19px}.settings-showcase p{font-size:13px;color:#b6c4da}.settings-showcase button{width:100%;text-align:left;min-height:48px;background:linear-gradient(110deg,#202947,#2b2548);border:1px solid #59608a;border-radius:12px}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 .settings-profile-preview{min-height:0}.settings-preview-identity{padding:24px 18px;min-height:0;gap:20px}.settings-preview-identity>.avatar{width:76px;height:76px;min-width:76px}.settings-preview-identity h3{font-size:23px}
 .profile-settings-actions{top:-16px;gap:8px;flex-wrap:wrap;padding:12px 0}.profile-settings-actions>h3{width:100%;margin-bottom:4px;font-size:20px}#edit-dialog.profile-settings-hub .profile-settings-actions button{flex:1;padding:10px!important}
 #edit-dialog.profile-settings-hub .edit-fields>label,#edit-dialog.profile-settings-hub #edit-profile-form>label{grid-template-columns:minmax(0,1fr);gap:8px}
}

/* Match the reference chat: portrait header, separate shared content, compact introduction. */
#workspace.messaging-workspace.conversation-has-messages .channel-welcome,#workspace.messaging-workspace.conversation-has-messages #message-scroll>.date-divider{display:none!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.direct-messaging .chat-header>.hash{display:none!important}
.conversation-header-avatar{width:48px!important;height:48px!important;min-width:48px!important;padding:5px!important;background:transparent!important;border:0!important;display:grid!important;place-items:center!important;overflow:visible!important}
.conversation-header-avatar>.avatar{width:36px!important;height:36px!important;position:relative;overflow:visible!important}
.conversation-header-avatar[hidden]{display:none!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace .chat{background:radial-gradient(ellipse at 100% 0,#49327a1c,transparent 55%),#0c182b!important;border-color:#58487e!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace .chat-header{background:linear-gradient(100deg,#14263d,#171c35)!important;border-bottom:1px solid #51446f!important;min-height:74px!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace #sidebar .nexo-spaces-strip{min-height:60px!important;max-height:60px!important;padding:8px 12px!important;border-bottom:1px solid #3b4262!important}
#workspace.messaging-workspace .nexo-spaces-label,#workspace.messaging-workspace .orbit-space-caption{display:none!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace #message-form{border:1px solid #66568e!important;border-radius:22px!important;background:linear-gradient(110deg,#18263d,#232039)!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace #send-message{border:1px solid #bb9af3!important;border-radius:16px!important;background:linear-gradient(135deg,#b36cf7,#6433b5)!important;color:white!important;box-shadow:0 0 14px #9d61f22b!important}
.conversation-person-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.conversation-person-actions button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;min-width:0}.conversation-person-actions svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8}
.conversation-details{background:radial-gradient(ellipse at 100% 0,#6a39c54a,transparent 45%),#101c32!important}.conversation-detail-card{background:linear-gradient(125deg,#202b43,#1b2239);border-color:#414b72}.conversation-detail-card summary{font-weight:600;font-size:13px;cursor:pointer;min-height:28px}.conversation-detail-card>.settings-note{font-size:10px;display:block;margin-top:8px}.conversation-shared-list{display:grid;gap:6px}.conversation-shared-list button{min-width:0;text-align:left;font-size:12px;overflow:hidden;text-overflow:ellipsis}
.conversation-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}.conversation-media-grid button{height:66px;padding:0;overflow:hidden;min-width:0;border-radius:9px}.conversation-media-grid img{width:100%;height:100%;object-fit:cover}
.conversation-mutual-servers{display:grid;gap:7px}.conversation-mutual-servers button{display:flex;align-items:center;gap:9px;text-align:left;font-size:12px;min-width:0}.conversation-mutual-servers img,.conversation-mutual-servers svg{width:28px;height:28px;flex:none;object-fit:contain;fill:none;stroke:currentColor;stroke-width:1.8}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace .chat-header{min-height:64px!important}.conversation-header-avatar{width:40px!important;height:40px!important;min-width:40px!important;padding:4px!important}.conversation-header-avatar>.avatar{width:30px!important;height:30px!important}}

html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub .settings-preview-identity h3{font-size:28px!important;line-height:1.2!important}
html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub .profile-settings-actions h3{font-size:22px!important}
html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub input:not([type=file]),html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub textarea{font-size:15px!important}
html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub .profile-picture-edit-row{grid-template-columns:130px 84px minmax(0,1fr)!important}
#edit-dialog.profile-settings-hub .settings-banner-row{display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px;align-items:center}
#edit-dialog.profile-settings-hub .settings-media-label{font-size:13px;color:#e0e7f3;font-weight:600}
html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub #change-banner{height:100px!important;min-height:100px!important}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub .settings-preview-identity h3{font-size:23px!important}
 html.nexo-ux.nexo-identity.nexo-orbit body #edit-dialog.profile-settings-hub .profile-picture-edit-row{grid-template-columns:84px minmax(0,1fr)!important}.profile-picture-edit-row>.settings-media-label{grid-column:1/-1}
 #edit-dialog.profile-settings-hub .settings-banner-row{grid-template-columns:minmax(0,1fr);gap:8px}
}

html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace>.conversation-details:not([hidden]){background:radial-gradient(ellipse at 100% 0,#6834b34a,transparent 45%),#101c32!important;border-color:#68518f!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace.messaging-workspace #send-message svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.conversation-person-profile h3{display:flex;align-items:center;justify-content:center;gap:6px}.conversation-person-profile .badges{justify-content:center;flex-wrap:wrap;gap:4px}

.conversation-person-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.conversation-person-actions button{flex-direction:column;padding:9px 3px;gap:6px;font-size:10px;min-height:60px}

html.nexo-identity.nexo-orbit body>#voice-dock.floating-call.call-bubble>.voice-connection-row{display:none!important}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call .voice-controls>button,
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call .voice-controls .call-more-button{max-width:44px!important;max-height:44px!important}

/* The floating dock is no longer the sidebar's two-column connection grid. */
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call>*{grid-area:auto!important;grid-column:1!important;min-width:0!important}
html.nexo-identity.nexo-orbit body>#voice-dock.floating-call>.voice-connection-row{justify-content:flex-end;min-height:0;margin:0}
