/* Compact desktop layout keeps more channels and messages in view. */
@media(min-width:1000px){.nexo-identity .workspace{padding:12px;gap:12px;grid-template-columns:250px minmax(0,1fr) 230px}.nexo-identity .server-rail{padding:12px 16px}.nexo-identity .sidebar-header{padding:14px 16px}.nexo-identity .channel-button{font-size:13px;min-height:32px;padding-block:6px}.nexo-identity .chat-header{min-height:60px;padding:12px 18px}.nexo-identity #message-scroll{padding:16px 20px}.nexo-identity .message-body{font-size:14px;line-height:1.45}.nexo-identity #messages .message-content{padding:9px 12px}.nexo-identity .composer-area{padding:8px 16px 12px}.nexo-identity .server-rail .rail-button{font-size:13px}}
.nexo-identity .composer{border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface-hover)!important;box-shadow:none!important;padding:5px 8px!important}
.nexo-identity .composer:focus-within{border-color:var(--accent)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 30%,transparent)!important}
.nexo-identity #message-input{font-size:14px;min-height:38px;line-height:1.4}.nexo-identity #send-message{width:38px;height:38px;border-radius:10px}.nexo-identity .composer-hint{font-size:10px;margin-top:6px}
.category-title::before,.category-title::after{display:none!important}.category-title{cursor:default}.channel-category.collapsed .category-channels{display:block!important}.channel-settings{display:none!important}
/* A voice room and its chat each receive half the conversation canvas. */
.nexo-identity .chat.voice-chat-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:0}
.nexo-identity .chat.voice-chat-split>.chat-header{grid-column:1/-1;grid-row:1}
.nexo-identity .chat.voice-chat-split>#voice-room{grid-column:1;grid-row:2;max-height:none!important;min-height:0;overflow:auto;padding:18px!important;border-right:1px solid var(--line)}
.nexo-identity .chat.voice-chat-split>#conversation{grid-column:2;grid-row:2;min-width:0;min-height:0;display:flex!important}
.nexo-identity .chat.voice-chat-split .channel-welcome,.nexo-identity .chat.voice-chat-split .date-divider{display:none}
.nexo-identity .chat.voice-chat-split #voice-room-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:14px}
.nexo-identity .chat.voice-chat-split .voice-person{min-width:0;max-width:100%}
.nexo-identity .chat.voice-chat-split #voice-room .welcome-mark,.nexo-identity .chat.voice-chat-split #voice-room>.eyebrow,.nexo-identity .chat.voice-chat-split #voice-room>p:not(.voice-occupancy):not(.error){display:none}
/* Replies use a compact reference line, separate from the editable message. */
.nexo-identity .reply-composer{background:transparent!important;border:0!important;border-radius:0!important;padding:4px 0!important;margin:0 0 5px!important;font-size:11px;min-height:24px}
.nexo-identity .reply-composer>span::before{content:'↪ ';color:var(--accent)}
.nexo-identity .message-reply{background:transparent!important;border:0!important;border-radius:0!important;padding:0 0 4px!important;margin:0 0 4px!important;font-size:11px;color:var(--muted)}
.nexo-identity .message-reply::before{content:'↪';color:var(--accent)}
@media(max-width:760px){.nexo-identity .chat.voice-chat-split{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(110px,1fr) minmax(180px,1fr)}.nexo-identity .chat.voice-chat-split>#voice-room{grid-column:1;grid-row:2;border-right:0;border-bottom:1px solid var(--line)}.nexo-identity .chat.voice-chat-split>#conversation{grid-column:1;grid-row:3}.nexo-identity .chat.voice-chat-split #voice-room h1{font-size:18px}.nexo-identity .chat.voice-chat-split .voice-person{padding:8px}.nexo-identity .chat.voice-chat-split #voice-room-people{display:flex;flex-wrap:wrap}.nexo-identity .chat.voice-chat-split .voice-person .avatar{width:34px;height:34px}.nexo-identity .composer{border-radius:12px!important}}
.nexo-identity .reply-composer[hidden]{display:none!important}
/* Keep category labels beside their add action and directly above their channels. */
.nexo-identity #channel-list .channel-category{margin:8px 0 0!important;padding:0}
.nexo-identity #channel-list .channel-category:first-child{margin-top:0!important}
.nexo-identity #channel-list .category-heading{display:flex!important;align-items:center!important;justify-content:space-between;gap:6px;margin:0 6px!important;padding:0!important;min-height:24px}
.nexo-identity #channel-list .category-title{display:block;flex:1;min-width:0;min-height:0!important;margin:0!important;padding:0!important;line-height:18px}
.nexo-identity #channel-list .category-add{display:inline-grid;place-items:center;flex:0 0 24px;width:24px;min-width:24px!important;height:24px;min-height:24px!important;margin:0!important;padding:0!important;line-height:1}
.nexo-identity #channel-list .category-channels{margin:0!important;padding:0!important;min-height:0;border-width:0}
@media(max-width:760px){.nexo-identity #channel-list .category-heading{min-height:32px}.nexo-identity #channel-list .category-add{flex-basis:32px;width:32px;min-width:32px!important;height:32px;min-height:32px!important}}
/* A centered jump control must not inherit the global button press transform. */
.nexo-identity #conversation{position:relative;min-width:0}
.nexo-identity #message-scroll{overflow-x:hidden;overscroll-behavior-x:none}
.nexo-identity .latest-message-button,.nexo-identity .latest-message-button:hover,.nexo-identity .latest-message-button:active{left:0;right:0;margin-inline:auto;width:max-content;max-width:calc(100% - 24px);bottom:calc(var(--composer-height,90px) + 12px);transform:none!important;transition:background-color .16s,color .16s;white-space:nowrap}
/* Borderless composer with one alignment axis for input and actions. */
.nexo-identity .composer,.nexo-identity .composer:focus-within{display:flex!important;align-items:center!important;min-height:48px!important;gap:8px!important;padding:4px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important}
.nexo-identity .composer-area{border:0!important;background:transparent!important}
.nexo-identity .composer #message-input{display:block;flex:1;min-width:0;box-sizing:border-box;min-height:40px!important;height:40px;padding:10px 4px!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;line-height:20px!important;resize:none}
.nexo-identity .composer>button{flex:0 0 40px;align-self:center;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0!important;display:inline-grid!important;place-items:center}
.nexo-identity .composer-hint{margin-top:4px!important;padding:0!important}
/* Keep only the typing area compact and transparent; sent bubbles retain their style. */
.nexo-identity .composer-area{padding-top:4px!important;padding-bottom:6px!important}
.nexo-identity .composer{min-height:44px!important}
/* A modest desktop zoom-out fits more channels and messages in the viewport. */

/* Ordinary unread channels highlight; mentions receive their own red count. */
.nexo-identity #channel-list .channel-button.channel-unread:not(.active){color:var(--ink)!important;font-weight:700;background:var(--surface-hover)!important}
.nexo-identity #channel-list .channel-button.channel-mentioned:not(.active){background:color-mix(in srgb,#ed5268 9%,transparent)!important}
.nexo-identity #channel-list .channel-mention-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:19px;height:19px;margin-left:auto;padding:0 5px;border-radius:999px;background:#d93550;color:#fff;font-size:10px;line-height:1;font-weight:800;box-sizing:border-box}
.nexo-identity #channel-list .channel-button:has(.channel-mention-count)::after{display:none!important}
.nexo-identity #messages .message.unread-mention .message-content{border-left:3px solid var(--accent)!important;background:color-mix(in srgb,var(--accent) 10%,var(--panel))!important}
