:root{--bg:#313338;--dark:#1e1f22;--panel:#2b2d31;--panel2:#232428;--panel3:#383a40;--muted:#949ba4;--text:#f2f3f5;--brand:#5865f2;--green:#23a559;--green2:#31d17c;--red:#da373c;--line:#3f4147;--shadow:#1119}*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);height:100vh;height:100dvh;overflow:hidden}button,input,select{font:inherit}.hidden{display:none!important}.mobile-only,.drawer-backdrop{display:none}button{touch-action:manipulation}.auth-shell{min-height:100vh;min-height:100dvh;display:grid;place-items:center;background:radial-gradient(circle at 18% 20%,#7356d8 0,transparent 32%),radial-gradient(circle at 85% 75%,#396fc9 0,transparent 35%),#17213a}.auth-card{width:min(480px,calc(100vw - 32px));background:#313338;padding:34px;border-radius:10px;box-shadow:0 18px 50px #10111a99}.brand{display:flex;justify-content:center;align-items:center;gap:10px;font-size:22px;font-weight:800;margin-bottom:25px}.logo{width:38px;height:38px;display:grid;place-items:center;background:var(--brand);border-radius:13px;font-weight:900}.auth-card h1{text-align:center;margin:0 0 7px}.auth-card>p{text-align:center;color:var(--muted);margin:0 0 22px}.auth-card label,dialog label{display:grid;gap:8px;color:#b5bac1;font-weight:700;font-size:12px;margin:16px 0}.auth-card input,dialog input,dialog select{background:#1e1f22;color:#fff;border:1px solid transparent;border-radius:5px;padding:12px;outline:0;min-width:0}.auth-card input:focus,dialog input:focus,dialog select:focus{border-color:var(--brand)}select{appearance:auto}.primary{border:0;background:var(--brand);color:#fff;border-radius:5px;padding:11px 14px;font-weight:650;cursor:pointer}.primary:hover{background:#4752c4}.primary:disabled{opacity:.55;cursor:not-allowed}.auth-card .primary{width:100%}.link{border:0;background:none;color:#b5bac1;cursor:pointer}.link span,.link:hover{color:#00a8fc}.error{color:#fa777c!important;font-size:13px;min-height:16px;text-align:left!important;margin:8px 0!important}.app{display:grid;grid-template-columns:240px minmax(420px,1fr) 240px;height:100vh;height:100dvh}.channels-panel{background:var(--panel);display:flex;flex-direction:column;min-width:0}.channels-panel>header,.content-header{height:48px;border-bottom:1px solid #1f2023;box-shadow:0 1px 3px #1115;display:flex;align-items:center;padding:0 16px}.channels-panel>header{justify-content:space-between}.channels-panel button,.content-header button,.user-panel button{background:none;color:#b5bac1;border:0;cursor:pointer}.channels-panel>header button{font-size:12px;background:#393c43;border-radius:4px;padding:5px 8px}.channel-scroll{flex:1;overflow:auto;padding:12px 8px}.section-title{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:700;padding:12px 8px 5px}.section-title button{font-size:20px}.channel{width:100%;border:0;background:none;color:#949ba4;text-align:left;border-radius:4px;padding:7px 9px;font-size:16px;cursor:pointer}.channel:hover,.channel.active{background:#35373c;color:#dbdee1}.channel.connected{color:#fff;background:#3b3d44}.channel span{font-size:18px;margin-right:7px}.voice-members{padding:2px 8px 8px 35px}.voice-member{display:flex;gap:8px;align-items:center;color:#b5bac1;font-size:13px;padding:4px}.voice-member .avatar{width:22px;height:22px;font-size:10px}.voice-member .avatar.mic-open{box-shadow:0 0 0 2px var(--green2)}.voice-member .avatar.speaking{box-shadow:0 0 0 3px var(--green2),0 0 0 6px #31d17c35}.voice-state-icon{margin-left:auto;color:var(--green2);font-size:12px}.voice-status{padding:8px;border-top:1px solid #202124;display:flex;align-items:center;justify-content:space-between;gap:6px}.return-call{min-width:0!important;flex:1;text-align:left}.voice-status b{display:block;color:#2dc770;font-size:13px}.voice-status small,.user-panel small{display:block;color:#b5bac1;font-size:11px;overflow:hidden;text-overflow:ellipsis}.voice-status>button:last-child{font-size:19px}.user-panel{height:57px;background:var(--panel2);display:flex;align-items:center;gap:8px;padding:8px}.avatar{width:32px;height:32px;border-radius:50%;background:#ed4245 center/cover no-repeat;display:grid;place-items:center;font-weight:700;flex:none}.avatar.has-image{color:transparent}.user-panel>div:nth-child(2){min-width:0;flex:1}.user-panel b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis}.user-panel>button{font-size:17px;padding:4px}.content{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--bg)}.content-header{justify-content:space-between;flex:none}.channel-heading{display:flex;align-items:center}.hash{font-size:24px;color:#80848e;margin-right:8px}.header-actions{display:flex;gap:10px}.header-actions button{position:relative;font-size:18px}.badge{position:absolute;top:-5px;right:-7px;min-width:15px;height:15px;padding:0 3px;border-radius:8px;background:var(--red);color:white;font-size:9px;display:grid;place-items:center;border:2px solid var(--bg)}.chat{flex:1;min-height:0;overflow-y:auto;padding:20px 16px 6px}.chat.drag-active{outline:2px dashed var(--brand);outline-offset:-8px}.welcome{margin:20px 0}.welcome div{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:#41434a;font-size:42px;font-weight:600}.welcome h2{font-size:30px;margin:12px 0 4px}.welcome p{color:#b5bac1;margin:0}.message-row{display:grid;grid-template-columns:42px 1fr;gap:10px;padding:9px 0}.message-row:hover{background:#2e3035}.message-row>.avatar{width:40px;height:40px}.message-head b{font-size:15px}.message-head time{font-size:11px;color:#949ba4;margin-left:8px}.message-text{color:#dbdee1;margin-top:3px;white-space:pre-wrap;overflow-wrap:anywhere}.message-file{display:flex;align-items:center;gap:12px;width:min(520px,100%);margin-top:8px;padding:12px;border:1px solid #45474d;background:#2b2d31;border-radius:8px;color:inherit;text-decoration:none}.message-file:hover{border-color:#5c61b9}.file-icon{width:42px;height:42px;border-radius:8px;background:#3b3e46;display:grid;place-items:center;font-size:20px}.message-file>div:nth-child(2){min-width:0;flex:1}.message-file b,.message-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-file small{color:var(--muted);margin-top:3px}.inline-preview{display:block;width:min(560px,100%);max-height:380px;object-fit:contain;margin-top:8px;border-radius:8px;background:#111}.composer{margin:0 16px 20px;min-height:46px;background:#383a40;border-radius:8px;display:flex;align-items:center;gap:8px;padding:0 12px;flex:none}.composer input{flex:1;min-width:0;background:none;border:0;color:#dbdee1;outline:0}.composer button{border:0;background:none;color:#b5bac1;font-size:20px;cursor:pointer}.composer .send-button{font-size:12px;background:var(--brand);color:#fff;border-radius:4px;padding:6px 9px}.members{background:var(--panel);padding:20px 10px;overflow:auto}.members h3{font-size:12px;color:var(--muted);padding:0 8px}.member{display:flex;align-items:center;gap:9px;padding:7px;color:#b5bac1}.member .avatar{width:32px;height:32px;font-size:13px}.stage{background:#1c1d20;min-height:55%;display:flex;flex-direction:column;border-bottom:1px solid #111}.stage-top{display:flex;justify-content:space-between;padding:12px 16px}.stage-top span{color:var(--muted);font-size:12px;margin-left:10px}.stage-top button{border:0;background:none;color:#b5bac1;font-size:24px;cursor:pointer}.streams{flex:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:10px;align-items:stretch;padding:12px;min-height:250px;overflow:auto}.stage-empty{grid-column:1/-1;display:grid;place-content:center;justify-items:center;color:#b5bac1;gap:6px;text-align:center}.stage-empty span{font-size:44px}.stage-empty small{color:#777d86}.stream-card{position:relative;width:100%;height:100%;min-height:240px;background:#0e0f10;border-radius:8px;overflow:hidden}.stream-card video{width:100%;height:100%;object-fit:contain;display:block}.stream-label{position:absolute;left:9px;bottom:9px;background:#111c;padding:5px 8px;border-radius:4px;pointer-events:none}.stream-offer{align-self:center;justify-self:center;border:1px solid #484b52;border-radius:8px;background:#232428;padding:25px;text-align:center}.stream-offer button{display:block;margin:14px auto 0}.pointer-layer{position:absolute;inset:0;pointer-events:auto;overflow:hidden}.remote-cursor{position:absolute;transform:translate(-2px,-2px);transition:left 50ms linear,top 50ms linear;filter:drop-shadow(0 1px 2px #000);pointer-events:none;z-index:3}.remote-cursor::before{content:"";display:block;width:0;height:0;border-top:17px solid var(--cursor);border-right:10px solid transparent;transform:rotate(-18deg)}.remote-cursor span{display:block;margin:1px 0 0 8px;background:var(--cursor);color:#fff;border-radius:3px;padding:2px 5px;font-size:10px;white-space:nowrap}.call-controls{display:flex;justify-content:center;gap:10px;padding:10px}.control{height:40px;min-width:40px;border:0;border-radius:20px;background:#383a40;color:#fff;padding:0 13px;cursor:pointer}.control.share{background:var(--green)}.control.danger,.control.off{background:var(--red)}.control.unsupported{background:#4a4c52;color:#aeb1b7}.mic-level-ring{box-shadow:0 0 0 3px var(--green2)}dialog{border:0;border-radius:10px;background:#313338;color:#fff;padding:0;box-shadow:0 20px 80px #0009;max-height:min(90dvh,850px)}dialog::backdrop{background:#000a}dialog form{margin:0}.compact-dialog{width:min(470px,92vw)}.compact-dialog>form{padding:25px}.compact-dialog h2{margin:0 35px 4px 0}.compact-dialog p{color:#b5bac1}.dialog-close{position:absolute;right:15px;top:10px;background:none;border:0;color:#aaa;font-size:25px;cursor:pointer}.dialog-actions{background:#2b2d31;margin:22px -25px -25px;padding:16px 25px;display:flex;justify-content:flex-end;gap:12px}.form-grid{display:grid;gap:14px}.two-col{grid-template-columns:1fr 1fr}.toggle-list{display:grid;gap:10px;margin:18px 0}.toggle-list label{display:flex;align-items:center;gap:9px;margin:0;font-size:13px;text-transform:none}.toggle-list input{accent-color:var(--brand);width:17px;height:17px}.settings-note{color:#949ba4;font-size:12px;line-height:1.45}.settings-dialog{width:min(850px,94vw)}.settings-dialog>form,.shared-dialog>form{min-height:min(620px,85dvh);display:flex;flex-direction:column}.dialog-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.dialog-header h2,.dialog-header p{margin:0}.dialog-header p{color:var(--muted);font-size:13px;margin-top:3px}.dialog-header .dialog-close{position:static}.settings-layout{display:grid;grid-template-columns:190px 1fr;min-height:0;flex:1}.settings-nav{padding:18px 10px;background:#2b2d31}.settings-nav button{width:100%;border:0;background:none;color:#b5bac1;text-align:left;padding:10px;border-radius:4px;cursor:pointer}.settings-nav button.active{background:#404249;color:#fff}.settings-panel{display:none;padding:24px 30px;overflow:auto}.settings-panel.active{display:block}.settings-panel h3{margin-top:0}.settings-panel>label{max-width:520px}.setting-block{max-width:520px;margin:18px 0}.range-label{display:flex;justify-content:space-between;align-items:center}.range-label label{margin:0}.range-label output{color:var(--muted);font-size:12px}.setting-block>input[type=range]{width:100%;accent-color:var(--brand)}.setting-block small,label small{color:var(--muted);font-weight:400}.input-meter{position:relative;height:8px;background:#1e1f22;border-radius:5px;overflow:hidden;margin:5px 0}.input-meter i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--green),#f0b232,var(--red));transition:width 80ms}.input-meter span{position:absolute;top:0;bottom:0;width:2px;background:#fff;left:30%}.profile-editor{display:flex;align-items:center;gap:14px;padding:16px;background:#2b2d31;border-radius:8px;max-width:520px}.avatar-large{width:72px;height:72px;border:0;color:#fff;font-size:25px;cursor:pointer}.profile-editor small{display:block;color:var(--muted);margin-top:4px}.shared-dialog{width:min(900px,94vw)}.shared-toolbar{display:flex;justify-content:space-between;gap:15px;padding:14px 20px;border-bottom:1px solid var(--line)}.shared-tabs{display:flex;gap:5px}.shared-tab{border:0;background:none;color:#b5bac1;padding:8px 10px;border-radius:5px;cursor:pointer}.shared-tab.active{background:#404249;color:#fff}.shared-files{padding:18px 20px;overflow:auto;display:grid;align-content:start;gap:8px;flex:1}.shared-empty{display:grid;place-items:center;align-content:center;min-height:280px;text-align:center;color:var(--muted);gap:7px}.shared-empty b{color:#dbdee1}.shared-file{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px;border:1px solid #404249;border-radius:8px}.shared-file .file-icon{width:44px;height:44px}.shared-file-info{min-width:0}.shared-file-info a{display:block;color:#dfe2ff;font-weight:650;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shared-file-info small{display:block;color:var(--muted);margin-top:3px}.file-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.file-actions button{border:0;background:#404249;color:#ddd;padding:6px 8px;border-radius:4px;font-size:11px;cursor:pointer}.file-actions .delete-file{background:#5a292c;color:#ffb8bb}.drop-overlay{position:fixed;z-index:90;inset:12px;border:3px dashed #8da0ff;background:#25273aee;border-radius:14px;display:grid;place-items:center;pointer-events:none}.drop-overlay>div{text-align:center;font-size:23px}.drop-overlay small{display:block;color:#b5bac1;font-size:14px;margin-top:7px}.upload-status{position:fixed;right:20px;bottom:20px;z-index:100;width:min(360px,calc(100vw - 30px));background:#1e1f22;padding:13px 15px;border-radius:8px;box-shadow:0 10px 35px #0008}.upload-status>div{display:flex;justify-content:space-between;gap:10px}.upload-status b,.upload-status small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-status small{color:var(--muted)}.upload-status progress{width:100%;height:6px;margin-top:9px;accent-color:var(--brand)}.toasts{position:fixed;right:20px;top:20px;z-index:120;display:grid;gap:8px}.toast{max-width:min(390px,calc(100vw - 30px));background:#17181bcc;color:#fff;border-left:4px solid var(--brand);padding:11px 14px;border-radius:5px;box-shadow:0 8px 25px #0008;animation:toast-in .2s ease}.toast.error-toast{border-color:var(--red)}@keyframes toast-in{from{opacity:0;transform:translateY(-8px)}}
@media(max-width:900px){.app{grid-template-columns:220px minmax(0,1fr)}.members{position:fixed;display:block;z-index:40;right:0;top:48px;bottom:0;width:min(280px,82vw);transform:translateX(100%);transition:transform .2s ease;box-shadow:-10px 0 30px #0006}.members.mobile-open{transform:translateX(0)}}

/* Selected Harmony UI typeface; system fallbacks keep it crisp offline. */
body{font-family:"Atkinson Hyperlegible",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}

/* Theme-aware, low-profile scrolling. */
*{scrollbar-width:thin;scrollbar-color:var(--panel3) transparent}
*::-webkit-scrollbar{width:9px;height:9px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{background:var(--panel3);border:2px solid transparent;border-radius:999px;background-clip:padding-box}
*::-webkit-scrollbar-thumb:hover{background:var(--brand);border:2px solid transparent;background-clip:padding-box}

/* Keep stream previews fitted unless the viewer deliberately zooms them. */
.channels-panel{position:relative}.stream-media-viewport{overflow:hidden}.stream-media-viewport video{max-width:100%;max-height:100%;object-fit:contain;object-position:center}
@media(max-width:650px){.app{grid-template-columns:minmax(0,1fr)}.mobile-only{display:inline-grid;place-items:center}.content-header{padding:0 10px}.channel-heading{min-width:0}.channel-heading b{overflow:hidden;text-overflow:ellipsis}.hash{margin-left:4px}.channels-panel{position:fixed;display:flex;z-index:40;left:0;top:0;bottom:0;width:min(310px,88vw);transform:translateX(-102%);transition:transform .2s ease;box-shadow:12px 0 32px #0008}.channels-panel.mobile-open{transform:translateX(0)}.drawer-backdrop{position:fixed;display:none;z-index:30;inset:0;border:0;background:#0009}.drawer-backdrop.open{display:block}.stage{min-height:0;height:min(60dvh,540px)}.streams{min-height:150px;padding:8px;grid-template-columns:1fr}.stream-card{min-height:150px}.call-controls{padding:8px;position:sticky;bottom:0;background:#1c1d20}.control{height:44px;min-width:44px}.control.share span:not(.share-icon){display:none}.chat{padding:12px 10px 4px}.welcome{margin:8px 0 18px}.welcome div{width:48px;height:48px;font-size:30px}.welcome h2{font-size:23px}.composer{margin:0 8px calc(8px + env(safe-area-inset-bottom));height:48px}.message-row{grid-template-columns:36px 1fr}.message-row>.avatar{width:34px;height:34px}.auth-card{padding:24px}.dialog-actions{flex-wrap:wrap}.settings-dialog,.shared-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.settings-dialog>form,.shared-dialog>form{height:100%;min-height:0}.settings-layout{grid-template-columns:1fr;grid-template-rows:auto 1fr}.settings-nav{display:flex;padding:7px 10px;gap:6px}.settings-nav button{text-align:center}.settings-panel{padding:18px}.two-col{grid-template-columns:1fr}.shared-toolbar{align-items:stretch;flex-direction:column}.shared-tabs{overflow-x:auto}.shared-toolbar>.primary{align-self:flex-start}.shared-file{grid-template-columns:40px minmax(0,1fr)}.file-actions{grid-column:1/-1;justify-content:flex-start}.toasts{right:10px;top:10px}.upload-status{right:10px;bottom:10px}.stage-top{padding:9px 11px}.stage-top span{display:block;margin:2px 0 0}.message-file{padding:9px}}

.message-content{position:relative;min-width:0}.message-actions{position:absolute;right:6px;top:-7px;opacity:0;transition:opacity .12s}.message-row:hover .message-actions,.message-actions:focus-within{opacity:1}.delete-message{border:1px solid #4b4d53;background:#292b2f;color:#f0b3b6;border-radius:4px;padding:4px 8px;font-size:11px;cursor:pointer}.delete-message:hover{background:#5a292c;color:#fff}.message-deleted{color:var(--muted);font-style:italic;margin-top:3px}
@media(max-width:650px){.message-actions{position:static;float:right;opacity:1;margin:-2px 0 2px 8px}.delete-message{min-height:30px;padding:5px 9px}}

/* Harmony navigation and control redesign */
.app{grid-template-columns:78px 240px minmax(420px,1fr) 240px}.dm-rail{background:#18191c;border-right:1px solid #111;display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px 5px;min-width:0;overflow:hidden}.dm-rail-brand,.dm-rail-new{width:52px;height:52px;border-radius:18px;border:0;display:grid;place-items:center;font-weight:900;font-size:18px}.dm-rail-brand{background:linear-gradient(145deg,#6f78ff,#3f49c8);color:white}.dm-rail-new{background:#292b30;color:#56d28d;cursor:pointer;font-size:27px}.dm-rail-new:hover{background:#2f8f60;color:white;border-radius:14px}.conversation-list{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}.conversation-item{position:relative;width:68px;border:0;background:none;color:#aaa;display:flex;flex-direction:column;align-items:center;gap:4px;padding:3px 1px;cursor:pointer;border-radius:8px}.conversation-item:hover{background:#292b30;color:white}.conversation-item .avatar,.conversation-item .group-avatar{width:46px;height:46px;border-radius:16px;font-size:16px}.conversation-item>span{width:100%;font-size:10px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.conversation-item>i{position:absolute;right:3px;top:2px;width:9px;height:9px;border-radius:50%;background:#efb44b;font-size:0}.conversation-item.muted{opacity:.58}.conversation-empty{font-size:9px;line-height:1.25;text-align:center;color:#686d75;padding:8px 3px}.group-avatar{display:grid;place-items:center;background:var(--group-color,#5865f2);color:white;font-weight:800}.channels-panel>header{height:76px}.content-header{height:76px;padding:0 14px}.channel-heading{gap:9px}.room-heading-mark,.room-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:linear-gradient(145deg,#8b92ff,#5865f2);box-shadow:0 0 0 3px #5865f226;flex:none}.room-dot{width:8px;height:8px;margin:0 9px 0 2px!important}.channel-row{display:flex;align-items:stretch;gap:4px}.channel-row .channel{min-width:0;display:flex;align-items:center}.channel-copy{display:flex;flex-direction:column;min-width:0;overflow:hidden;text-overflow:ellipsis}.channel-expiry{font-size:9px;color:#7d828a;white-space:nowrap}.channel-room.stale{opacity:.52;filter:grayscale(.7)}.join-voice{width:36px;border:0;border-radius:6px;background:#34363c;color:#aeb3bc;cursor:pointer;flex:none}.join-voice:hover,.join-voice.connected{background:#315b45;color:#6ee7a0}.header-actions{height:100%;gap:7px}.header-actions .feature-button{position:relative;width:64px;height:64px;padding:4px;border:0;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#d3d6dc;background:transparent;cursor:pointer}.header-actions .feature-button:hover{background:#3a3d44;color:#fff}.feature-label{font-size:10px;font-weight:700}.header-icon{position:relative;display:block;width:31px;height:31px}.icon-sign::before{content:"";position:absolute;left:2px;right:2px;top:3px;height:18px;border-radius:2px;background:#c6c8cc;box-shadow:inset 0 0 0 2px #696d74}.icon-sign::after{content:"";position:absolute;left:13px;top:20px;width:5px;height:10px;background:#c6c8cc;box-shadow:-7px 9px 0 -1px #c6c8cc,7px 9px 0 -1px #c6c8cc}.icon-cabinet{border:3px solid currentColor;border-radius:3px;margin-top:1px}.icon-cabinet::before,.icon-cabinet::after{content:"";position:absolute;left:2px;right:2px;height:10px;border:2px solid currentColor}.icon-cabinet::before{top:2px}.icon-cabinet::after{bottom:2px}.icon-cabinet{background:linear-gradient(currentColor,currentColor) center 8px/7px 2px no-repeat,linear-gradient(currentColor,currentColor) center 21px/7px 2px no-repeat}.icon-flame-pawn::before{content:"";position:absolute;left:6px;top:1px;width:19px;height:28px;background:currentColor;clip-path:polygon(52% 0,76% 28%,67% 25%,82% 53%,70% 48%,86% 76%,67% 71%,78% 100%,22% 100%,34% 72%,14% 77%,29% 48%,18% 53%,34% 24%,27% 28%)}.icon-flame-pawn::after{content:"";position:absolute;left:11px;top:9px;width:10px;height:17px;background:#2b2d31;border-radius:50% 50% 38% 38%;box-shadow:0 8px 0 2px #2b2d31}.feature-button:hover .icon-flame-pawn::after{background:#3a3d44;box-shadow:0 8px 0 2px #3a3d44}.header-actions .badge{top:4px;right:3px;min-width:20px;height:20px;border-radius:10px;font-size:12px;font-weight:900;background:#e13a42}.pinned-panel{flex:none;background:#25272c;border-bottom:1px solid #17181a;padding:8px 14px;max-height:150px;overflow:auto}.pinned-panel>div:first-child{display:flex;justify-content:space-between;align-items:center;color:#c7cad0;font-size:12px}.pinned-panel button{border:0;background:#383b42;color:#d9dce1;border-radius:4px;padding:4px 7px;cursor:pointer}.pinned-panel>div:last-child{display:flex;gap:7px;overflow-x:auto;margin-top:7px}.pinned-panel>div:last-child button{min-width:190px;max-width:320px;text-align:left;display:grid;gap:2px}.pinned-panel>div:last-child span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#b6bac2}.pinned-panel.collapsed>div:last-child{display:none}.pinned-message{box-shadow:inset 3px 0 #e8b13d}.message-actions{display:flex;gap:4px}.pin-message{border:1px solid #4b4d53;background:#292b2f;color:#e6c46d;border-radius:4px;padding:4px 8px;font-size:11px;cursor:pointer}.chat-link{color:#70a7ff}.remote-gif{max-width:min(520px,100%);max-height:420px}.call-controls{gap:12px;padding:12px}.control.tall-control{height:78px;min-width:92px;border-radius:18px;padding:9px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.control-icon{font-size:25px;line-height:1}.control-label{font-size:11px;font-weight:750;white-space:nowrap}.touch-ptt{width:min(620px,calc(100% - 28px));min-height:82px;margin:0 auto 14px;border:2px solid #56cf8d;border-radius:24px;background:#244f3a;color:#dfffee;font-size:22px;font-weight:850;touch-action:none;user-select:none;-webkit-user-select:none}.touch-ptt span{color:#75e6a7}.touch-ptt.talking{background:#2e9e62;transform:scale(.985);box-shadow:0 0 0 5px #55d88c33}.stream-label{left:auto;right:9px;bottom:9px}.stream-actions{position:absolute;left:10px;bottom:10px;z-index:7;opacity:.28;transition:opacity .18s}.stream-actions:hover,.stream-actions:focus-within{opacity:1}.stream-menu-toggle,.stream-action-list button{border:0;background:#24262bcc;color:white;box-shadow:0 3px 14px #0008;cursor:pointer}.stream-menu-toggle{width:44px;height:44px;border-radius:50%;font-weight:900;font-size:16px}.stream-action-list{position:absolute;left:0;bottom:52px;display:flex;flex-direction:column-reverse;gap:7px;opacity:0;transform:translateY(8px);pointer-events:none;transition:.16s}.stream-actions:hover .stream-action-list,.stream-actions:focus-within .stream-action-list{opacity:1;transform:none;pointer-events:auto}.stream-action-list button{min-width:112px;border-radius:18px;padding:10px 13px;text-align:left}.stream-action-list button:last-child{background:#7d2930e8}.pointer-layer{position:absolute;inset:auto;cursor:crosshair}.remote-cursor{width:18px;height:18px;border:2px solid #fff;border-radius:50%;background:radial-gradient(circle,var(--cursor) 0 3px,#fff 3px 4px,transparent 4px);transform:translate(-50%,-50%);filter:drop-shadow(0 1px 2px #000);pointer-events:none;z-index:8;transition:left 40ms linear,top 40ms linear}.remote-cursor::before{content:"";position:absolute;inset:-7px;background:linear-gradient(var(--cursor),var(--cursor)) center top/2px 6px no-repeat,linear-gradient(var(--cursor),var(--cursor)) center bottom/2px 6px no-repeat,linear-gradient(90deg,var(--cursor),var(--cursor)) left center/6px 2px no-repeat,linear-gradient(90deg,var(--cursor),var(--cursor)) right center/6px 2px no-repeat;border:0;transform:none}.remote-cursor::after{content:"";position:absolute;left:50%;top:50%;width:3px;height:3px;border-radius:50%;background:#111;transform:translate(-50%,-50%)}.remote-cursor span{position:absolute;left:17px;top:15px;display:block;margin:0;background:var(--cursor);color:#fff;border:1px solid #fff8;border-radius:4px;padding:2px 5px;font-size:10px;white-space:nowrap}.remote-cursor.tap-dot{width:26px;height:26px;transform:translate(-50%,-50%)}.remote-cursor.tap-dot::before{inset:-8px;width:auto;height:auto;border:0;border-radius:0;background:linear-gradient(var(--cursor),var(--cursor)) center top/2px 7px no-repeat,linear-gradient(var(--cursor),var(--cursor)) center bottom/2px 7px no-repeat,linear-gradient(90deg,var(--cursor),var(--cursor)) left center/7px 2px no-repeat,linear-gradient(90deg,var(--cursor),var(--cursor)) right center/7px 2px no-repeat;box-shadow:none}.remote-cursor.tap-dot span{margin:0}.shared-upload-tools{display:flex;align-items:center;gap:10px}.shared-upload-tools span{color:var(--muted);font-size:11px}.group-member-options{max-height:250px;overflow:auto;display:grid;gap:5px;margin:12px 0;padding:8px;background:#25272b;border-radius:7px}.group-member-options label{display:flex;align-items:center;gap:8px;margin:0;padding:6px;text-transform:none}.group-member-options .avatar{width:30px;height:30px}.conversation-actions,.bulletin-dialog-actions{display:flex;align-items:center;gap:7px}.conversation-actions>button:not(.dialog-close),.bulletin-dialog-actions>button:not(.dialog-close){border:0;border-radius:5px;background:#40434a;color:#fff;padding:7px 9px;cursor:pointer}.admin-user{grid-template-columns:minmax(160px,1fr);}.admin-quota{display:flex;align-items:end;gap:8px}.admin-quota label{margin:0;display:grid;gap:4px;font-size:10px;color:var(--muted)}.admin-quota input{width:120px;background:#1e1f22;color:white;border:1px solid #494c53;border-radius:4px;padding:6px}.admin-quota button{border:0;border-radius:4px;background:#4a4e56;color:white;padding:7px 9px;cursor:pointer}
@media(max-width:900px){.app{grid-template-columns:78px 220px minmax(0,1fr)}.members{top:76px}.feature-label{display:none}.header-actions .feature-button{width:52px}.content-header{padding:0 8px}}
@media(max-width:650px){.app{grid-template-columns:64px minmax(0,1fr)}.dm-rail{grid-column:1;width:64px;padding:7px 3px}.dm-rail-brand,.dm-rail-new{width:44px;height:44px;border-radius:15px}.conversation-item{width:58px}.conversation-item .avatar,.conversation-item .group-avatar{width:40px;height:40px;border-radius:14px}.channels-panel{left:64px;width:min(310px,calc(100vw - 64px))}.content{grid-column:2}.content-header{height:68px}.header-actions{gap:1px}.header-actions .feature-button{width:42px;height:58px;padding:2px}.header-icon{transform:scale(.85)}.channel-heading b{font-size:13px}.room-heading-mark{display:none}.call-controls{gap:7px}.control.tall-control{height:70px;min-width:76px;padding:7px}.control-label{font-size:9px}.touch-ptt{min-height:92px;font-size:21px}.pinned-panel{padding:7px 9px}.stream-actions{opacity:.55}.conversation-actions{flex-wrap:wrap;justify-content:flex-end}.conversation-actions>button:not(.dialog-close){font-size:10px;padding:5px 6px}.dm-dialog .dialog-header{padding:12px}.shared-upload-tools{justify-content:space-between}.shared-upload-tools span{max-width:150px}.message-actions{opacity:1}}
.attach-wrap{position:relative;display:flex;align-items:center}.attach-menu{position:absolute;left:-5px;bottom:44px;z-index:25;width:240px;padding:8px;background:#18191c;border:1px solid #3e4148;border-radius:9px;box-shadow:0 10px 30px #0009}.attach-menu>button{width:100%;border:0;border-radius:6px;background:#2e3036;color:#fff;text-align:left;padding:10px;cursor:pointer}.attach-menu>button:hover{background:#3a3e47}.attach-menu b,.attach-menu span{display:block}.attach-menu span,.attach-menu small{color:var(--muted);font-size:11px;margin-top:3px}.attach-menu>small{display:block;padding:8px 5px 2px}
.inline-image-link{display:block;width:fit-content;max-width:100%;margin-top:8px;border-radius:8px;overflow:hidden}.inline-image-link .inline-preview{margin-top:0}.inline-image-link:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.stream-label{pointer-events:auto;display:flex;align-items:center;gap:8px;z-index:4}.stream-label button{border:0;background:#3d4048;color:#fff;border-radius:3px;padding:3px 6px;font-size:10px;cursor:pointer}
.stream-label{max-width:calc(100% - 18px);flex-wrap:wrap}.stream-label>span{font-weight:650;margin-right:2px}.stream-card.popped video,.stream-card.popped>.pointer-layer{visibility:hidden}.popout-placeholder{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:12px;color:#b5bac1;background:#111;font-weight:650}.popout-placeholder button{border:0;border-radius:5px;padding:8px 11px;background:#3d4048;color:white;cursor:pointer}.control:disabled{cursor:not-allowed;opacity:.65}
.control.enable-audio{width:auto;background:#5865f2;font-size:12px;font-weight:700}
.policy-warning{display:grid;gap:4px;max-width:520px;padding:13px 15px;margin:0 0 16px;border:1px solid #d98e38;background:#5a3b1f;color:#fff;border-radius:7px}.policy-warning span{font-size:12px;color:#f5d4aa}.admin-unlock{max-width:520px;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.admin-unlock h4,.admin-unlock p,.admin-card h4,.admin-card p{margin:0}.admin-unlock p,.admin-card p{color:var(--muted);font-size:12px;line-height:1.45;margin-top:5px}.admin-unlock>div{display:flex;gap:8px;margin-top:12px}.admin-unlock input{flex:1}.admin-card{background:#2b2d31;border:1px solid #414349;border-radius:8px;padding:16px;margin-bottom:14px}.admin-card textarea{width:100%;min-height:95px;resize:vertical;margin-top:13px;padding:11px;background:#1e1f22;border:1px solid transparent;border-radius:5px;color:#fff;font:inherit;outline:0}.admin-card textarea:focus{border-color:var(--brand)}.admin-actions,.admin-users-head,.restart-card{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-actions{margin-top:10px}.admin-actions select{background:#1e1f22;color:#fff;border:1px solid #4b4e55;border-radius:5px;padding:10px}.danger-button{border:0;background:#b52b31!important;color:#fff!important;border-radius:5px;padding:8px 10px;cursor:pointer}.danger-button:disabled{opacity:.45;cursor:not-allowed}.admin-users-head>button,.admin-user-actions button{border:0;background:#404249;color:#e6e6e6;border-radius:4px;padding:7px 9px;cursor:pointer}.admin-users{display:grid;gap:8px;margin-top:13px}.admin-user{display:grid;grid-template-columns:minmax(160px,1fr) auto;gap:12px;padding:11px;background:#232428;border-radius:7px}.admin-user-identity{display:flex;align-items:center;gap:10px;min-width:0}.admin-user-identity>div:last-child{min-width:0}.admin-user-identity b,.admin-user-identity small{display:block;overflow:hidden;text-overflow:ellipsis}.admin-user-identity small{color:var(--muted);font-size:11px;margin-top:3px}.admin-user-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.admin-user-actions button{font-size:11px}.queued-bulletins{display:grid;gap:7px}.queued-bulletin{display:grid;gap:3px;padding:10px;background:#232428;border-radius:6px}.queued-bulletin b{font-size:11px;color:#f0b232;text-transform:uppercase}.queued-bulletin span{white-space:pre-wrap}.queued-bulletin small{color:var(--muted)}.bulletins{padding:18px 20px;overflow:auto;display:grid;align-content:start;gap:10px;flex:1}.bulletin{padding:14px 15px;border:1px solid #42454c;border-radius:8px;background:#2b2d31}.bulletin header{display:flex;justify-content:space-between;gap:12px}.bulletin time{color:var(--muted);font-size:11px}.bulletin p{margin:10px 0 0;color:#dbdee1;white-space:pre-wrap;overflow-wrap:anywhere}.notifications-dialog{width:min(720px,94vw)}
@media(max-width:650px){.settings-nav{overflow-x:auto}.settings-nav button{min-width:max-content;white-space:nowrap}.admin-actions,.restart-card,.admin-users-head{align-items:stretch;flex-direction:column}.admin-actions>*{width:100%}.admin-user{grid-template-columns:1fr}.admin-user-actions{justify-content:flex-start}.admin-unlock>div{flex-direction:column}.stream-label{bottom:6px;left:6px;right:6px;max-width:none}.stream-label button{font-size:9px}.notifications-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.notifications-dialog>form{height:100%;min-height:0}}
.user-panel>button.audio-toggle-active{color:#fff;background:var(--red);border-radius:4px}.user-panel>button:disabled{opacity:.45;cursor:not-allowed}.user-name,[data-user-name]{color:var(--user-color);font-weight:700}.voice-member,.member,[data-user]{cursor:context-menu}.muted-message{margin-top:4px;color:var(--muted);font-size:12px;font-style:italic}.pointer-layer{touch-action:manipulation}.remote-cursor.tap-dot{transform:translate(-50%,-50%)}.remote-cursor.tap-dot::before{width:18px;height:18px;border:3px solid #fff;border-radius:50%;background:var(--cursor);box-shadow:0 0 0 3px #ffffff55;transform:none}.remote-cursor.tap-dot span{margin:6px 0 0 11px}.identity-color-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;align-items:end;max-width:520px;margin:15px 0;padding:14px;background:#2b2d31;border-radius:8px}.identity-color-editor label{margin:0}.identity-color-editor input[type=color]{width:100%;height:42px;padding:4px;cursor:pointer}.identity-color-editor>div{display:flex;gap:8px}.identity-color-editor>div>button{border:0;border-radius:5px;padding:10px 12px;background:#404249;color:#fff;cursor:pointer}.identity-color-editor>div>.primary{background:var(--brand)}.identity-color-editor>small{grid-column:1/-1;color:var(--muted)}.user-context-menu{position:fixed;z-index:180;width:220px;padding:7px;background:#111214;border:1px solid #34363c;border-radius:8px;box-shadow:0 12px 35px #000b}.user-menu-heading{display:flex;align-items:center;gap:9px;padding:7px 8px 10px;border-bottom:1px solid #303238;margin-bottom:4px;min-width:0}.user-menu-heading b{overflow:hidden;text-overflow:ellipsis}.user-context-menu>button{width:100%;border:0;background:none;color:#dbdee1;text-align:left;border-radius:4px;padding:9px 10px;cursor:pointer}.user-context-menu>button:hover,.user-context-menu>button:focus{background:var(--brand);outline:0}.user-context-menu>button.active{color:#ffb5b8}.user-context-menu>button:disabled{opacity:.4;cursor:not-allowed}.profile-dialog{text-align:center}.profile-dialog-avatar{width:88px;height:88px;margin:5px auto 14px;font-size:32px}.profile-dialog h2{margin-right:0}.profile-dialog .dialog-actions{justify-content:center}.dm-dialog{width:min(650px,94vw)}.dm-dialog>form{height:min(720px,84dvh);display:flex;flex-direction:column}.dm-heading{display:flex;align-items:center;gap:11px}.dm-heading h2,.dm-heading p{margin:0;text-align:left}.dm-messages{flex:1;min-height:220px;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:10px}.dm-message{max-width:78%;padding:9px 11px;border-radius:9px;background:#3a3d44;align-self:flex-start}.dm-message.mine{align-self:flex-end;background:#4752c4}.dm-message header{display:flex;gap:8px;align-items:baseline;margin-bottom:3px}.dm-message time{font-size:10px;color:#c1c4cb}.dm-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.dm-empty{margin:auto;color:var(--muted);text-align:center}.dm-composer{display:flex;gap:8px;padding:12px 18px 4px;border-top:1px solid var(--line)}.dm-composer input{flex:1}.dm-dialog>.error{padding:0 18px 10px}.dm-dialog form>.error{padding:0 18px 10px}.dm-dialog .error{flex:none}.voice-muted-indicator{margin-left:auto;color:var(--muted);font-size:11px}
@media(max-width:650px){.user-panel{gap:5px}.user-panel>button{padding:4px 3px}.identity-color-editor{grid-template-columns:1fr}.identity-color-editor>div{justify-content:flex-start}.dm-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.dm-dialog>form{height:100dvh}.dm-message{max-width:90%}}
.auth-card .remember-login{display:flex;align-items:center;gap:9px;margin:4px 0 16px;color:#b5bac1;font-size:13px;font-weight:500;text-transform:none;cursor:pointer}.auth-card .remember-login input{width:17px;height:17px;min-width:17px;margin:0;padding:0;accent-color:var(--brand);cursor:pointer}.shared-filter-stack{display:grid;gap:7px}.shared-category{border:0;background:none;color:#b5bac1;padding:8px 10px;border-radius:5px;cursor:pointer}.shared-category.active{background:#5865f2;color:#fff}.file-type-tabs{padding-bottom:7px;border-bottom:1px solid #414349}.shared-category span{font-size:10px;opacity:.78}
.auth-card .remember-login+.remember-login{margin-top:-9px}
@media(max-width:650px){.shared-filter-stack{min-width:0}.file-type-tabs{overflow-x:auto}.shared-category{white-space:nowrap}}
.shared-file.admin-draggable{cursor:grab}.shared-file.admin-draggable:active{cursor:grabbing}.shared-file.dragging{opacity:.35;border-style:dashed}.file-drag-active .shared-category{outline:1px dashed #70747d;outline-offset:-2px}.shared-category.drop-target{background:#238d58;color:#fff;outline:2px solid #63e49d;transform:translateY(-1px)}

/* Voice workspace, collaboration, and durable upload UI */
.dm-rail-new{font-size:0;gap:1px;align-content:center}.dm-rail-new svg{width:25px;height:25px;fill:currentColor}.dm-rail-new span{display:block;font-size:9px;font-weight:800;letter-spacing:.05em}.chat-shell{display:flex;flex:1;min-height:0;flex-direction:column;position:relative}.side-panel{background:var(--panel);min-width:0;display:flex;flex-direction:column;border-left:1px solid #202125}.side-tabs{height:44px;display:none;grid-template-columns:1fr 1fr;gap:4px;padding:6px;border-bottom:1px solid #202125}.side-tabs button{border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer}.side-tabs button.active{background:#41444b;color:#fff}.right-chat-host{display:none;min-height:0;flex:1}.members{flex:1;min-height:0}.app.voice-workspace .side-tabs{display:grid}.app.voice-workspace .right-chat-host{display:flex}.app.voice-workspace .right-chat-host>.chat-shell{width:100%;min-width:0}.app.voice-workspace .right-chat-host .chat{padding:12px 10px 4px}.app.voice-workspace .right-chat-host .welcome{margin:8px 0 16px}.app.voice-workspace .right-chat-host .welcome>div{width:44px;height:44px;font-size:27px}.app.voice-workspace .right-chat-host .welcome h2{font-size:20px}.app.voice-workspace .right-chat-host .message-row{grid-template-columns:34px minmax(0,1fr);gap:7px}.app.voice-workspace .right-chat-host .message-row>.avatar{width:32px;height:32px}.app.voice-workspace .right-chat-host .composer{margin:0 8px 10px;padding:0 8px}.app.voice-workspace .right-chat-host .composer .send-button{display:none}.app.voice-workspace .right-chat-host .message-file{grid-template-columns:auto;max-width:100%;font-size:12px}.app.voice-workspace .content>.stage{flex:1;min-height:0;border-bottom:0}.app.voice-workspace .content>.stage .stage-pane.active{flex:1;min-height:0}.stage-top{align-items:center;gap:12px}.stage-top>div:first-child{min-width:0}.stage-tabs{display:flex;gap:5px;margin-left:auto}.stage-tabs button{display:flex;align-items:center;gap:6px;border:0;border-radius:7px;background:#292b30;color:#aeb3bc;padding:7px 10px;font-size:12px;font-weight:700;cursor:pointer}.stage-tabs button.active{background:#4b55cf;color:#fff}.stage-tabs svg{width:16px;height:16px;fill:currentColor}.stage-pane{display:none;min-height:0}.stage-pane.active{display:flex;flex-direction:column}.sketch-pane{flex:1;background:#17181b}.sketch-toolbar{display:flex;align-items:center;gap:5px;padding:7px 10px;background:#26282d;border-bottom:1px solid #101114;overflow-x:auto}.sketch-toolbar button,.sketch-toolbar label{flex:none;border:0;border-radius:6px;background:#393c43;color:#d2d5db;padding:7px 9px;font-size:11px;font-weight:700;cursor:pointer}.sketch-toolbar button.active{background:#5865f2;color:#fff}.sketch-toolbar .danger-text{color:#ff9da1}.sketch-color,.sketch-size{display:flex;align-items:center;gap:6px}.sketch-color input{width:24px;height:20px;padding:0;border:0;background:none}.sketch-size input{width:80px;accent-color:#7681ff}.sketch-surface{position:relative;flex:1;min-height:260px;overflow:hidden;background-color:#f7f7f4;background-image:linear-gradient(#d9dce155 1px,transparent 1px),linear-gradient(90deg,#d9dce155 1px,transparent 1px);background-size:24px 24px}.sketch-surface canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;z-index:2}.sketch-empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#777;pointer-events:none}.sketch-empty b{font-size:18px;color:#45484e}.sketch-empty span{font-size:12px;margin-top:6px}.sketch-surface.has-content .sketch-empty{display:none}.typing-indicator{height:27px;display:flex;align-items:center;gap:7px;padding:1px 16px;color:var(--muted);flex:none}.typing-avatars{display:flex;padding-left:9px}.typing-avatars .avatar{width:22px;height:22px;font-size:8px;margin-left:-9px;border:2px solid var(--bg)}.typing-dots{display:flex;gap:3px;align-items:center}.typing-dots i{width:4px;height:4px;border-radius:50%;background:#b5bac1;animation:typing-bounce 1.15s infinite ease-in-out}.typing-dots i:nth-child(2){animation-delay:.14s}.typing-dots i:nth-child(3){animation-delay:.28s}@keyframes typing-bounce{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}.typing-indicator small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-picker{position:absolute;z-index:25;right:8px;bottom:54px;width:min(390px,calc(100vw - 30px));height:390px;background:#202226;border:1px solid #474a52;border-radius:12px;box-shadow:0 18px 45px #0009;display:flex;flex-direction:column;overflow:hidden}.media-picker-tabs{display:grid;grid-template-columns:1fr 1fr;padding:7px;gap:5px;border-bottom:1px solid #3d4047}.media-picker-tabs button{font-size:12px;padding:8px;border-radius:6px}.media-picker-tabs button.active{background:#5865f2;color:#fff}.emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:3px;padding:10px;overflow:auto}.emoji-grid button{height:38px;border-radius:7px;font-size:23px}.emoji-grid button:hover{background:#3a3d44}.gif-panel{display:flex;flex-direction:column;min-height:0;flex:1}.gif-panel>input{margin:10px;background:#111318;color:#fff;border:1px solid #444851;border-radius:7px;padding:9px}.gif-results{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:0 10px 8px;overflow:auto}.gif-results button{border:0;padding:0;background:#111;border-radius:7px;overflow:hidden;min-height:90px}.gif-results img{width:100%;height:100%;object-fit:cover;display:block}.giphy-credit{color:#7d828a;text-align:right;padding:5px 10px;font-size:9px}.upload-placeholder .upload-card{margin-top:6px;max-width:520px;background:#2a2c31;border:1px solid #484b53;border-radius:9px;padding:11px}.upload-placeholder .upload-title{display:flex;justify-content:space-between;gap:10px}.upload-placeholder .upload-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-placeholder progress{width:100%;height:7px;margin-top:9px;accent-color:var(--brand)}.upload-placeholder small{color:var(--muted)}.text-preview{max-width:680px;margin-top:8px;border:1px solid #474a52;border-radius:8px;overflow:hidden;background:#17181b}.text-preview>button{width:100%;border:0;background:#303238;color:#d7dae0;text-align:left;padding:8px 10px;cursor:pointer}.text-preview header{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;background:#25272c;color:var(--muted);font-size:11px}.text-preview header button{border:0;border-radius:4px;background:#41444b;color:#fff;padding:4px 7px;cursor:pointer}.text-preview pre{margin:0;max-height:380px;overflow:auto;padding:12px;font:12px/1.55 "Cascadia Code",Consolas,monospace;color:#c9d1d9;white-space:pre}.syntax-keyword{color:#ff7b72}.syntax-string{color:#a5d6ff}.syntax-number{color:#79c0ff}.syntax-comment{color:#8b949e;font-style:italic}.member{justify-content:flex-start}.member-copy{min-width:0}.member-copy b,.member-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-copy small{font-size:10px;color:#7f858f;margin-top:2px}
@media(max-width:900px){.side-panel{position:fixed;z-index:40;right:0;top:76px;bottom:0;width:min(340px,92vw);transform:translateX(102%);transition:transform .2s ease;box-shadow:-10px 0 30px #0008}.side-panel.mobile-open{transform:translateX(0)}.members{position:static;width:auto;transform:none;box-shadow:none;padding-top:12px}.app.voice-workspace .side-panel{width:min(420px,96vw)}.app.voice-workspace .right-chat-host .composer .send-button{display:block}}
@media(max-width:650px){.channels-panel{transform:translateX(calc(-100% - 64px))}.side-panel{top:68px}.stage-tabs button{padding:7px;font-size:0}.stage-tabs svg{width:19px;height:19px}.stage-top{padding:7px 9px}.sketch-toolbar{padding:6px}.sketch-size span,.sketch-color span{display:none}.media-picker{position:fixed;left:6px;right:6px;bottom:calc(64px + env(safe-area-inset-bottom));width:auto;height:min(460px,68dvh)}.emoji-grid{grid-template-columns:repeat(7,1fr)}.typing-indicator{padding:1px 9px}.app.voice-workspace .side-panel{width:calc(100vw - 64px)}}

/* Interaction pass: resizable side panel, explicit voice states, and full emoji search. */
:root{--side-panel-width:280px}
.app{grid-template-columns:78px 240px minmax(420px,1fr) var(--side-panel-width)}
.side-panel{position:relative}
.side-resizer{position:absolute;z-index:8;left:-5px;top:0;bottom:0;width:10px;cursor:col-resize;touch-action:none;outline:none}
.side-resizer::after{content:"";position:absolute;left:4px;top:0;bottom:0;width:2px;background:transparent;transition:background .15s}
.side-resizer:hover::after,.side-resizer:focus-visible::after,.resizing-side-panel .side-resizer::after{background:#7180ff}
.resizing-side-panel,.resizing-side-panel *{cursor:col-resize!important;user-select:none!important}
.voice-state-icons{display:flex;align-items:center;gap:3px;margin-left:auto;min-height:18px}
.voice-state-badge{width:18px;height:18px;display:grid;place-items:center;border-radius:5px;background:#202226;color:#aeb3bc}
.voice-state-badge svg{width:13px;height:13px;fill:currentColor}
.voice-state-badge.mic,.voice-state-badge.sound{color:#f08287}
.voice-state-badge.local{color:#f2c46d;border:1px solid #f2c46d55}
.typing-indicator{height:31px;min-height:31px;padding:2px 16px 3px;background:linear-gradient(90deg,#2e3035,#313338 55%);gap:8px}
.typing-indicator small{color:#d5d8de;font-size:12px;font-weight:600}
.typing-avatars .avatar{box-shadow:0 0 0 1px #1118}
.typing-dots{min-width:22px}
.typing-dots i{width:5px;height:5px;background:#d9dce2}
.emoji-panel{display:flex;flex-direction:column;min-height:0;flex:1}
.emoji-panel>input{flex:none!important;width:auto;height:38px;margin:10px 10px 5px;background:#111318;color:#fff;border:1px solid #444851;border-radius:7px;padding:9px}
.emoji-summary{height:24px;display:flex;align-items:center;justify-content:space-between;padding:0 11px;color:#8d939d;font-size:10px}
.emoji-summary button{border:0;background:none;color:#9cacf8;font-size:10px;cursor:pointer}
.emoji-grid{flex:1;min-height:0;align-content:start;overflow-x:hidden}
.emoji-grid button{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}

@media(max-width:900px){
  .app{grid-template-columns:78px 220px minmax(0,1fr)}
  .side-resizer{display:none}
}
@media(max-width:650px){.app{grid-template-columns:64px minmax(0,1fr)}}
@media(orientation:landscape) and (pointer:coarse) and (max-height:650px){
  body.mobile-stream-fullscreen{background:#000}
  body.mobile-stream-fullscreen .app{display:block;position:fixed;inset:0;z-index:200;background:#000}
  body.mobile-stream-fullscreen .channels-panel,body.mobile-stream-fullscreen .side-panel,body.mobile-stream-fullscreen .content-header,body.mobile-stream-fullscreen .chat-shell,body.mobile-stream-fullscreen .stage-top,body.mobile-stream-fullscreen .call-controls,body.mobile-stream-fullscreen .touch-ptt,body.mobile-stream-fullscreen .drawer-backdrop{display:none!important}
  body.mobile-stream-fullscreen .content{position:fixed;inset:0;background:#000}
  body.mobile-stream-fullscreen .stage{display:flex!important;position:fixed;inset:0;min-height:0;border:0;background:#000}
  body.mobile-stream-fullscreen #screen-pane{display:flex!important;position:absolute;inset:0;background:#000}
  body.mobile-stream-fullscreen .streams{display:block;position:absolute;inset:0;padding:0;overflow:hidden;min-height:0;background:#000}
  body.mobile-stream-fullscreen .stream-card{position:absolute;inset:0;border-radius:0;min-height:0;background:#000}
  body.mobile-stream-fullscreen .stream-card:not(.mobile-primary-stream){display:none}
  body.mobile-stream-fullscreen .stream-card video{will-change:transform}
  body.mobile-stream-fullscreen .stream-label{left:max(8px,env(safe-area-inset-left));bottom:max(8px,env(safe-area-inset-bottom));opacity:.72}
  body.mobile-stream-fullscreen .stream-actions{right:max(8px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top))}
  body.mobile-stream-fullscreen .pointer-layer{touch-action:none}
}

/* Selected Harmony header emblems. */
.header-icon svg{display:block;width:100%;height:100%}
.header-icon .raster-icon{display:block;width:100%;height:100%;object-fit:contain}
.raster-nav-icon{display:block;width:25px;height:25px;object-fit:contain}
.logo{overflow:visible;background:transparent;box-shadow:none;border-radius:0}
.logo img{display:block;width:100%;height:100%;padding:0}
.dm-rail-brand{overflow:visible;background:transparent;box-shadow:none;border-radius:0}
.dm-rail-brand img{display:block;width:100%;height:100%;padding:0}
.bulletin-unread-mark{display:none}
#notifications-button.has-unread .bulletin-unread-mark{display:block}
#notifications-button.has-unread .header-icon{filter:drop-shadow(0 0 6px #ff526066)}
.header-icon .bulletin-unread-mark{position:absolute;right:-4px;top:-5px;width:15px;height:15px;border-radius:50%;display:none;place-items:center;background:#e13a42;color:#fff;font:bold 11px/15px system-ui;box-shadow:0 0 0 2px var(--bg)}
#notifications-button.has-unread .header-icon .bulletin-unread-mark{display:grid}
.header-actions .feature-label{display:none}
.header-actions .feature-button{padding:0}
.header-actions .feature-button .header-icon{width:100%;height:100%;display:grid;place-items:center}
.header-actions .feature-button .raster-icon{width:100%;height:100%;object-fit:contain}
.dm-rail-new{padding:0;gap:0}
.dm-rail-new .raster-nav-icon{width:100%;height:100%;object-fit:contain}
.dm-rail-new>span{display:none}

/* Channel and user action menus. */
.channel-row .channel{font-size:15px;padding-left:7px;padding-right:5px}.channel-copy{flex:1;white-space:nowrap}.channel-copy>small{white-space:nowrap}.channel-options{width:22px!important;min-width:22px;align-self:center;flex:none;border:0;border-radius:6px!important;background:transparent!important;color:#9ca1aa!important;font-size:18px!important;line-height:1;cursor:pointer;transform:rotate(90deg)}
.channel-options:hover,.channel-options:focus-visible{background:#3c3f46!important;color:#fff!important;outline:0}
.room-chat.channel-access-required{color:#d7989c}.room-chat.channel-access-required .room-dot{background:#bc626a;box-shadow:0 0 0 3px #bc626a20}.room-chat.channel-access-required:hover,.room-chat.channel-access-required.active{color:#efb0b4}.room-chat.channel-access-granted{color:#a5cdb0}.room-chat.channel-access-granted .room-dot{background:#62a879;box-shadow:0 0 0 3px #62a87920}.room-chat.channel-access-granted:hover,.room-chat.channel-access-granted.active{color:#bfe5c9}
.channel-context-menu{width:230px}
.channel-menu-heading{display:grid;gap:3px;padding:7px 8px 10px;border-bottom:1px solid #303238;margin-bottom:4px}
.channel-menu-heading small{color:#7f858f;font-size:10px}
.menu-separator{height:1px;background:#303238;margin:5px 4px}
.danger-menu-item{color:#ff9da1!important}
.danger-menu-item:hover,.danger-menu-item:focus{background:#a92f38!important;color:white!important}

@keyframes harmony-unread-pulse{0%,58%,100%{transform:scale(1);filter:none}72%{transform:scale(1.13);filter:drop-shadow(0 0 4px #ffd45f) drop-shadow(0 0 10px #f0a82f)}84%{transform:scale(1.04);filter:drop-shadow(0 0 2px #ffd45f)}}.channel.unread-pulse .room-dot,.conversation-item.unread-pulse .avatar,.conversation-item.unread-pulse .group-avatar{animation:harmony-unread-pulse var(--unread-duration,2s) ease-in-out var(--unread-delay,0ms) infinite;will-change:transform,filter}.channel.unread-pulse{color:#fff}.conversation-item.unread-pulse>span{color:#ffd978;font-weight:800}
@media(prefers-reduced-motion:reduce){.channel.unread-pulse .room-dot,.conversation-item.unread-pulse .avatar,.conversation-item.unread-pulse .group-avatar{animation:none;filter:drop-shadow(0 0 5px #ffd45f);box-shadow:0 0 0 2px #ffd45f}}

/* Harmony palette pass: neutral blue-gray panels with restrained logo accents. */
:root{--bg:#2b2e35;--dark:#1c1f25;--panel:#343840;--panel2:#24272e;--panel3:#40454f;--brand:#8493c9;--line:#484d57;--muted:#b0b4bd}
body{background:var(--bg)}.channels-panel,.members,.side-panel{background:var(--panel)}.content{background:var(--bg)}.content-header,.channels-panel>header{background:var(--panel2);border-color:var(--line)}.user-panel{background:var(--panel2)}.composer{background:var(--panel3)}.stage{background:var(--dark)}.settings-nav{background:color-mix(in srgb,var(--panel) 78%,var(--dark))}.settings-nav button.active,.side-tabs button.active{background:var(--panel3)}.control.share{background:#349987}.primary{background:var(--brand)}
.dm-rail{background:var(--dark);border-right:1px solid var(--line)}

/* Alternate palette presets. Blue Slate is the default. */
:root[data-theme="blue-slate"]{--bg:#2b2e35;--dark:#1c1f25;--panel:#343840;--panel2:#24272e;--panel3:#40454f;--brand:#8493c9;--line:#484d57;--muted:#b0b4bd}
:root[data-theme="current-indigo"]{--bg:#252b3c;--dark:#151a28;--panel:#2b3348;--panel2:#20283b;--panel3:#39445e;--brand:#6879f5;--line:#414d6a;--muted:#a5aec2}
:root[data-theme="violet-dusk"]{--bg:#292a39;--dark:#191923;--panel:#373348;--panel2:#232331;--panel3:#49415c;--brand:#9a7be8;--line:#514a64;--muted:#b4abc7}
:root[data-theme="ocean-mint"]{--bg:#202d37;--dark:#142029;--panel:#29404a;--panel2:#19252e;--panel3:#35535b;--brand:#65b9cf;--line:#3e6267;--muted:#a3b9bd}
:root[data-theme="soft-graphite"]{--bg:#2b2b2c;--dark:#1b1a1c;--panel:#383638;--panel2:#242324;--panel3:#484548;--brand:#a68ee8;--line:#504c50;--muted:#b5afb0}

/* Thin Discord-style unread marker beside each DM icon. */
.conversation-item{position:relative}.conversation-item>.dm-unread-pill{display:none;position:absolute;left:-4px;top:26px;width:5px;height:36px;transform:translateY(-50%);border-radius:0 999px 999px 0;background:linear-gradient(180deg,#fff5b8,#ffd45f 52%,#ffb938);box-shadow:0 0 5px #fff4bd,0 0 12px #ffd45fcc,0 0 22px #ffb93888}.conversation-item.unread-pulse>.dm-unread-pill{display:block;animation:dm-unread-glow 1.8s ease-in-out infinite}.conversation-item.unread-pulse>.avatar,.conversation-item.unread-pulse>.group-avatar{animation:harmony-unread-pulse var(--unread-duration,2s) ease-in-out var(--unread-delay,0ms) infinite}@keyframes dm-unread-glow{0%,100%{filter:brightness(1);opacity:.9}50%{filter:brightness(1.4);opacity:1}}
@media(max-width:650px){.conversation-item>.dm-unread-pill{top:23px;height:32px}}

.user-volume-control{padding:9px 8px 11px;border-bottom:1px solid #303b54;margin-bottom:4px}.user-volume-control .range-label{display:flex;justify-content:space-between;align-items:center}.user-volume-control label{margin:0;color:#aeb8cf;font-size:10px;font-weight:800}.user-volume-control output{color:#aeb8cf;font-size:11px}.user-volume-control input{width:100%;accent-color:var(--brand)}
.volume-settings{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:720px}.volume-setting{margin:8px 0}.volume-setting>input{width:100%}
@media(max-width:650px){.volume-settings{grid-template-columns:1fr;gap:2px}}

/* Cursor viewport and larger in-channel audio status emblems. */
.pointer-layer{inset:0!important;width:auto!important;height:auto!important}
.voice-state-icons{gap:4px;min-height:27px}
.voice-state-badge{width:27px;height:27px;border-radius:7px}
.voice-state-badge svg{width:20px;height:20px}

/* Media zoom, upload controls, and compact-height call safety. */
.stream-media-viewport{position:absolute;inset:0;display:grid;place-items:center;transform-origin:center center;will-change:transform;backface-visibility:hidden}
.stream-media-viewport video{width:100%;height:100%;object-fit:contain;display:block}
.stream-card>video{display:none}
.stage,.stage-pane,.streams{min-height:0}
.call-controls{flex:none;position:relative;z-index:9;padding-bottom:max(12px,env(safe-area-inset-bottom))}
.self-preview-toggle{display:flex;align-items:center;gap:7px;margin-left:auto;color:#d5d8de;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}.self-preview-toggle input{width:16px;height:16px;accent-color:var(--brand)}.self-preview-toggle+.stage-tabs{margin-left:0}.remote-cursor{transition:left 16ms linear,top 16ms linear}
.stream-card{contain:layout paint}.remote-cursor{left:0;top:0;width:58px;height:40px;border:0;border-radius:0;background:transparent;transform:translate3d(var(--cursor-x,0px),var(--cursor-y,0px),0) translate(-3px,-3px);transition:none;will-change:transform;contain:layout paint}.remote-cursor::before{content:"";position:absolute;left:3px;top:3px;display:block;width:2px;height:22px;border:0;border-radius:2px;background:var(--cursor);box-shadow:0 0 0 1px #0009;transform-origin:1px 1px;transform:rotate(-34deg)}.remote-cursor::after{content:"";position:absolute;left:0;top:0;width:6px;height:6px;border:1px solid #fff;border-radius:50%;background:var(--cursor)}.remote-cursor span{position:absolute;left:15px;top:19px;margin:0;background:var(--cursor);color:#fff;border-radius:4px;padding:2px 5px;font-size:10px;white-space:nowrap}.cursor-pulse{position:absolute;left:0;top:0;width:12px;height:12px;margin:-6px 0 0 -6px;border:2px solid var(--cursor);border-radius:50%;box-shadow:0 0 0 1px #0008;transform:translate3d(var(--cursor-x,0px),var(--cursor-y,0px),0);pointer-events:none;z-index:4;animation:cursor-pulse .68s cubic-bezier(.15,.72,.28,1) forwards}@keyframes cursor-pulse{from{opacity:1;scale:.45}to{opacity:0;scale:4.2}}
.room-dot{visibility:hidden;background:linear-gradient(145deg,#8b92ff,#5865f2)!important;box-shadow:0 0 0 3px #5865f226!important}.channel.unread-pulse .room-dot{visibility:visible}
.mic-monitor-test{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;align-items:center;max-width:520px;margin:18px 0;padding:14px;border:1px solid #474a52;border-radius:9px;background:#292b30}
.mic-monitor-test b,.mic-monitor-test small{display:block}.mic-monitor-test small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}.mic-monitor-test button{grid-column:2;grid-row:1;border:0;border-radius:6px;background:#4b55cf;color:#fff;padding:9px 12px;cursor:pointer}.mic-monitor-test>span{grid-column:1/-1;color:#8d939d;font-size:11px}.upload-title>div{display:flex;align-items:center;gap:8px;flex:none}.cancel-upload-inline,.upload-status button{border:0;border-radius:5px;background:#5a292c;color:#ffbec1;padding:4px 7px;font-size:10px;cursor:pointer}.cancel-upload-inline:hover,.upload-status button:hover{background:#84343a;color:#fff}.upload-status>div{align-items:center}.upload-status>div>b{flex:1;min-width:0}.upload-status>div>small{flex:none}.upload-status>div>button{flex:none}
.download-status{position:absolute;left:8px;right:8px;bottom:65px;width:auto;max-width:none;z-index:12}
@media(max-width:650px){.mic-monitor-test{grid-template-columns:1fr}.mic-monitor-test button{grid-column:1;grid-row:auto;justify-self:start}.upload-title{align-items:flex-start}.upload-title>div{align-items:flex-end;flex-direction:column}.upload-status>div{flex-wrap:wrap}.upload-status>div>b{flex-basis:55%}}
.transfer-memory-note{display:grid;gap:5px;max-width:520px;margin:18px 0;padding:13px 14px;border-left:3px solid #7180ff;border-radius:6px;background:#292b30}.transfer-memory-note b{font-size:12px}.transfer-memory-note span{color:var(--muted);font-size:11px;line-height:1.45}

/* Mobile drawer correction: the desktop grid rule must not turn the right
   drawer back into a normal-flow item, which made it appear at the bottom. */
@media(max-width:900px){
  .side-panel{position:fixed;z-index:40;right:0;top:76px;bottom:0;width:min(340px,92vw);max-height:calc(100dvh - 76px);display:flex;transform:translateX(102%);transition:transform .2s ease;box-shadow:-10px 0 30px #0008;overflow:hidden}
  .side-panel.mobile-open{transform:translateX(0)}
  .side-panel .members,.side-panel .right-chat-host{min-height:0;flex:1;overflow:auto}
}
@media(max-width:650px){
  .side-panel{top:68px;bottom:0;width:calc(100vw - 64px);max-width:none;max-height:calc(100dvh - 68px)}
  .app.voice-workspace .side-panel{width:calc(100vw - 64px)}
  .side-panel .side-tabs{flex:none}
  .dm-rail{position:relative;z-index:80;isolation:isolate}
}
.embedded-share-viewer{position:fixed;z-index:210;right:auto;bottom:auto;min-width:360px;min-height:300px;margin:0;padding:0;max-width:100vw;max-height:100dvh;overflow:auto;resize:both;border:1px solid #263746;border-radius:18px;background:#101821;box-shadow:0 22px 70px #000c}.embedded-share-viewer.dragging{user-select:none}.embedded-share-viewer iframe{display:block;width:100%;height:100%;border:0;border-radius:inherit;background:#101821}.embedded-share-tab{position:fixed;z-index:211;left:50%;bottom:12px;display:flex;align-items:center;gap:7px;max-width:min(420px,calc(100vw - 24px));height:38px;padding:0 14px;border:1px solid #37516a;border-radius:10px;background:#152331;color:#eaf3fa;box-shadow:0 10px 30px #000a;transform:translateX(-50%);cursor:pointer}.embedded-share-tab i{width:7px;height:7px;border-radius:50%;background:#ff6874;box-shadow:0 0 0 3px #ff687426}.embedded-share-tab b{font-size:10px;letter-spacing:.08em;color:#ff8b94}.embedded-share-tab span{overflow:hidden;color:#9db2c4;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.embedded-share-viewer:fullscreen{width:100vw!important;height:100dvh!important;max-width:none;max-height:none;left:0!important;top:0!important;border-radius:0;resize:none}@media(max-width:650px){.embedded-share-viewer{width:100vw!important;height:100dvh!important;min-width:0;min-height:0;max-width:none;max-height:none;left:0!important;top:0!important;border-radius:0;resize:none}}
.android-app-card{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:520px;margin:22px 0;padding:15px;border:1px solid #3b5168;border-radius:10px;background:#222f3d}.android-app-card>div{min-width:0}.android-app-card b,.android-app-card span,.android-app-card small{display:block}.android-app-card span{margin-top:4px;color:#c2cfda;font-size:12px}.android-app-card small{margin-top:5px;color:var(--muted)}.android-app-card a{text-decoration:none;white-space:nowrap}@media(max-width:650px){.android-app-card{align-items:stretch;flex-direction:column}.android-app-card a{text-align:center}}
.member-copy{flex:1}.member-stream-link{flex:none;border:1px solid #466782;border-radius:6px;padding:5px 7px;background:#1d3040;color:#bcd8ee;font-size:9px;font-weight:700;white-space:nowrap;cursor:pointer}.member-stream-link:hover{border-color:#74a4ca;background:#27445a;color:#fff}.member-stream-link.pending,.member-stream-link:disabled{opacity:.62;cursor:wait}
